Почему мой NTP-пакет не получил ответа от NTP-сервера.
Я протестировал ntpd с несколькими NTP-серверами, но некоторые NTP-серверы не отвечают. Я также использую свой windows ноутбук, и NTP-сервер Google / Taiwan STD может получить NTP syn c. Так что не так с моей Linux доской для синхронизации c NTP-сервера?
root@linuxboard:/tmp# ntpd --help
ntpd - NTP daemon program - Ver. 4.2.8p11
root@CAX30:/tmp# cat UpdateNTPSync.sh
#!/bin/sh
killall ntpd
/usr/sbin/ntpd -u ntp:ntp -p /run/ntpd.pid -g
timeout -t 10 tcpdump -i erouter0 udp port 123 -G 10 -nnvv > /tmp/NTP_tcpdump
root@CAX30:/tmp# sh UpdateNTPSync.sh
- Google NTP-сервер (time.google.com) => не получил ответ
root@linuxboard:/tmp# cat NTP_tcpdump
02:26:31.907821 IP6 (flowlabel 0xf8eab, hlim 64, next-header UDP (17) payload length: 56) 2001:10:8:4:40c6:fd99:1013:f95f.123 > 2001:4860:4806::.123: [udp sum ok] NTPv4, length 48
Client, Leap indicator: clock unsynchronized (192), Stratum 0 (unspecified), poll 6 (64s), precision -21
Root Delay: 0.000000, Root dispersion: 0.000045, Reference-ID: (unspec)
Reference Timestamp: 0.000000000
Originator Timestamp: 0.000000000
Receive Timestamp: 0.000000000
Transmit Timestamp: 3789483991.907740671 (2020/02/01 02:26:31)
Originator - Receive Timestamp: 0.000000000
Originator - Transmit Timestamp: 3789483991.907740671 (2020/02/01 02:26:31)
Тайваньская стандартная лаборатория NTP-сервера => не получила ответа
root@linuxboard:/tmp# cat NTP_tcpdump
02:33:00.872278 IP6 (class 0x50, flowlabel 0x78366, hlim 64, next-header UDP (17) payload length: 56) 2001:10:8:4:40c6:fd99:1013:f95f.123 > 2001:b031:5c02:ff00::5.123: [udp sum ok] NTPv4, length 48
Client, Leap indicator: clock unsynchronized (192), Stratum 0 (unspecified), poll 6 (64s), precision -21
Root Delay: 0.000000, Root dispersion: 0.000000, Reference-ID: (unspec)
Reference Timestamp: 0.000000000
Originator Timestamp: 0.000000000
Receive Timestamp: 0.000000000
Transmit Timestamp: 3789484380.872168398 (2020/02/01 02:33:00)
Originator - Receive Timestamp: 0.000000000
Originator - Transmit Timestamp: 3789484380.872168398 (2020/02/01 02:33:00)
Apple NTP-сервер (time.asia.apple.com) => получить ответ
root@linuxboard:/tmp# cat NTP_tcpdump
02:27:44.538149 IP (tos 0x50, ttl 64, id 17224, offset 0, flags [DF], proto UDP (17), length 76)
10.8.4.104.123 > 17.253.116.125.123: [udp sum ok] NTPv4, length 48
Client, Leap indicator: clock unsynchronized (192), Stratum 0 (unspecified), poll 6 (64s), precision -20
Root Delay: 0.000000, Root dispersion: 0.000000, Reference-ID: (unspec)
Reference Timestamp: 0.000000000
Originator Timestamp: 0.000000000
Receive Timestamp: 0.000000000
Transmit Timestamp: 3789484064.538063246 (2020/02/01 02:27:44)
Originator - Receive Timestamp: 0.000000000
Originator - Transmit Timestamp: 3789484064.538063246 (2020/02/01 02:27:44)
02:27:44.551081 IP (tos 0x0, ttl 55, id 28478, offset 0, flags [DF], proto UDP (17), length 76)
17.253.116.125.123 > 10.8.4.104.123: [udp sum ok] NTPv4, length 48
Server, Leap indicator: (0), Stratum 1 (primary reference), poll 6 (64s), precision -21
Root Delay: 0.000000, Root dispersion: 0.000122, Reference-ID: SHM^@
Reference Timestamp: 3789455265.259730569 (2020/01/31 18:27:45)
Originator Timestamp: 3789484064.538063246 (2020/02/01 02:27:44)
Receive Timestamp: 3789455266.018886944 (2020/01/31 18:27:46)
Transmit Timestamp: 3789455266.018899177 (2020/01/31 18:27:46)
Originator - Receive Timestamp: -28798.519176301
Originator - Transmit Timestamp: -28798.519164068
Microsoft NTP server => получить ответ
root@linuxboard:/tmp# cat NTP_tcpdump
02:35:29.109847 IP (tos 0x50, ttl 64, id 45653, offset 0, flags [DF], proto UDP (17), length 76)
10.8.4.104.123 > 20.189.79.72.123: [udp sum ok] NTPv4, length 48
Client, Leap indicator: clock unsynchronized (192), Stratum 0 (unspecified), poll 6 (64s), precision -21
Root Delay: 0.000000, Root dispersion: 0.000045, Reference-ID: (unspec)
Reference Timestamp: 0.000000000
Originator Timestamp: 0.000000000
Receive Timestamp: 0.000000000
Transmit Timestamp: 3789484529.109759157 (2020/02/01 02:35:29)
Originator - Receive Timestamp: 0.000000000
Originator - Transmit Timestamp: 3789484529.109759157 (2020/02/01 02:35:29)
02:35:29.135482 IP (tos 0x0, ttl 113, id 40352, offset 0, flags [none], proto UDP (17), length 76)
20.189.79.72.123 > 10.8.4.104.123: [udp sum ok] NTPv3, length 48
Server, Leap indicator: (0), Stratum 3 (secondary reference), poll 6 (64s), precision -23
Root Delay: 0.001983, Root dispersion: 0.102523, Reference-ID: 25.66.230.1
Reference Timestamp: 3789455715.103147499 (2020/01/31 18:35:15)
Originator Timestamp: 3789484529.109759157 (2020/02/01 02:35:29)
Receive Timestamp: 3789455730.494146399 (2020/01/31 18:35:30)
Transmit Timestamp: 3789455730.494148099 (2020/01/31 18:35:30)
Originator - Receive Timestamp: -28798.615612757
Originator - Transmit Timestamp: -28798.615611057
Настройка NTP-сервера моим P C (111.2.1.152) => получить ответ
root@linuxboard:/tmp# cat NTP_tcpdump
02:31:23.975753 IP (tos 0x50, ttl 64, id 20521, offset 0, flags [DF], proto UDP (17), length 76)
10.8.4.104.123 > 111.2.1.152.123: [udp sum ok] NTPv4, length 48
Client, Leap indicator: clock unsynchronized (192), Stratum 0 (unspecified), poll 6 (64s), precision -21
Root Delay: 0.000000, Root dispersion: 0.000015, Reference-ID: (unspec)
Reference Timestamp: 0.000000000
Originator Timestamp: 0.000000000
Receive Timestamp: 0.000000000
Transmit Timestamp: 3789484283.975676201 (2020/02/01 02:31:23)
Originator - Receive Timestamp: 0.000000000
Originator - Transmit Timestamp: 3789484283.975676201 (2020/02/01 02:31:23)
02:31:23.986865 IP (tos 0x0, ttl 124, id 11762, offset 0, flags [none], proto UDP (17), length 76)
111.2.1.152.123 > 10.8.4.104.123: [udp sum ok] NTPv3, length 48
Server, Leap indicator: (0), Stratum 3 (secondary reference), poll 6 (64s), precision -6
Root Delay: 0.031661, Root dispersion: 0.090728, Reference-ID: 118.163.81.61
Reference Timestamp: 3789455337.029417299 (2020/01/31 18:28:57)
Originator Timestamp: 3789484283.975676201 (2020/02/01 02:31:23)
Receive Timestamp: 3789455485.542417299 (2020/01/31 18:31:25)
Transmit Timestamp: 3789455485.542417299 (2020/01/31 18:31:25)
Originator - Receive Timestamp: -28798.433258901
Originator - Transmit Timestamp: -28798.433258901