Thread: Determining network latency

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

    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,195
    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.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    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, 06:33 PM
  2. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 01: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