Determining network latency

This is a discussion on Determining network latency within the Tech Board forums, part of the Community Boards category; Out of curiosity, is there a way to determine network latency between two computers with unsynced clocks? Roundtrip time is ...

  1. #1
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183

    Determining network latency

    Out of curiosity, is there a way to determine network latency between two computers with unsynced clocks?

    Roundtrip time is easy, but what about one way time? (assuming they are more or less constant)

    I'm guessing there's theoretically a way to do it, since there's NTP that can synchronize clocks (if clocks can be synchronized, measuring latency would be easy).

    Thanks

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    assuming you think the latency is different in each direction, yes, but it takes 4 packets to do it, because only the far client can initiate a sequence that results in the local client having enough info, which requires 3 additional packets

    I'm working out the maths now, although i'm probably reinventing the wheel.

    It still requires coordinated clocks, meaning both clocks have to agree on how long a second is.
    Attached Images Attached Images  
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    Ah, thanks.

    Excuse my ignorance, but I have gone through it quite a few times, and I still don't see an algorithm from it. I do understand all the algebra, though. Could you give me a few more hints?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 3D Network Analysis Tool
    By durban in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 11-08-2005, 05:33 PM
  2. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 12:58 AM
  3. Determining status of a network connection?
    By Cat in forum Windows Programming
    Replies: 0
    Last Post: 06-04-2003, 05:30 PM
  4. Determining Latency of Web Sites
    By mmondok in forum C Programming
    Replies: 4
    Last Post: 04-23-2003, 06:47 AM
  5. Determining Data Size For Network Send/Rec :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 6
    Last Post: 05-07-2002, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21