Clear Filters
Clear Filters

if NTG affect the TCP communication between the server and the client in the LAN.

1 view (last 30 days)
I want to use NTG to achieve time synchronization of multiple computers in the LAN. I want to ask if NTG will affect the tcp communication between the server and the client in the LAN?aprricating if you have any idea or advice.
  5 Comments
Guillaume
Guillaume on 27 Oct 2018
NTP uses UDP at the transport layer, not TCP.
I'm not sure I understand the question. NTP is fairly lightweight, so it's not going to use much bandwidth but obviously it's going to reduce slightly the bandwidth available for any other communication including anything over TCP.
sen sun
sen sun on 28 Oct 2018
I need to do a collaborative system that requires a high degree of time synchronization and is accurate to the millisecond level. In other words, the data collected by the sensors at the same time is aggregated to the server, and the data collected by multiple sensors at the same time is uniformly processed. Sensors and server use TCP to transfer data. Time synchronization, I want to achieve through NTG, use the server as a time server to synchronize time. I don't know if my plan is feasible? English is not my native language. I may not express it very clearly. I hope to hear from you.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 28 Oct 2018
Edited: Walter Roberson on 28 Oct 2018
Wikipedia: "NTP can usually maintain time to within tens of milliseconds over the public Internet, and can achieve better than one millisecond accuracy in local area networks under ideal conditions. Asymmetric routes and network congestion can cause errors of 100 ms or more."
This suggests to me that the answer to your question is probably that you will not be able to achieve your aims, as chances are that your system is not ideal enough to be consistently accurate to the millisecond level.
In a rather small lan with quality equipment, it just might be good enough. But if your lan is small enough then perhaps a different approach might be appropriate, such as a dedicated time synchronization wire, perhaps together with some Time Domain Reflectometry.
Or see https://www.masterclock.com/support/library/network-timing-ntp-vs-ptp/

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!