LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP IP latency calculation between two computers

Hi everyone,

 

I need to perform the TCP/IP Data streaming for the duration of 30 min at 2000 packets per second. each packet consist of 500 bytes of data. I made the simple TCP connection and the data via TCP write function. but, i need to check the latency (< 2 ms) of each packets the problem is both the system is having different clock time. im not having any source to perform the time sync between PC's. and suggest the minimum latency level of TCP in windows (LabVIEW).

0 Kudos
Message 1 of 2
(1,024 Views)

You could synchronize the clocks, using for instance NTP. That should be reasonably accurate.

 

Or, send the data and then send it back. That should give you (more or less) 2X the 'worse case' latency. There will be overhead, but if you measure <2ms, it's probably better in real life.

0 Kudos
Message 2 of 2
(908 Views)