- Jun 6, 2020
- 11,559
- 4,422
Yesterday I have watched a video about the NTP protocol and I was completely thrilled by its simplicity and cleverness. I am sure you all or most of you know it but I am mentioning this in case someone does not. The NTP protocol is the protocol with which our computers and devices synchronize their time with NTP servers.
Let's see the plain case. If you send a request to any server at t0 then it will take ΔΤ1 for the packet to go to the server and ΔΤ2 for the server to report to you the time. It is obvious that with this simple case you cannot synchronize at all the two machines.
And here comes the NTP protocol which utilizes four times for synchronization (t0, t1, t2, t3). Here is how it works. The sender marks in the packet the time t0 it sends the request (f.e. 8:29:58). When the NTP server receives the request it marks the t1 which is the time it received it (f.e. 8:30:02). Since it serves a lot of requests it will not respond immediately but will respond after a...
Let's see the plain case. If you send a request to any server at t0 then it will take ΔΤ1 for the packet to go to the server and ΔΤ2 for the server to report to you the time. It is obvious that with this simple case you cannot synchronize at all the two machines.
And here comes the NTP protocol which utilizes four times for synchronization (t0, t1, t2, t3). Here is how it works. The sender marks in the packet the time t0 it sends the request (f.e. 8:29:58). When the NTP server receives the request it marks the t1 which is the time it received it (f.e. 8:30:02). Since it serves a lot of requests it will not respond immediately but will respond after a...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید