# Certain servers are not replying

**URL:** <https://community.ntppool.org/t/certain-servers-are-not-replying/3238>\
**Category:** GeoDNS Server\
**Created:** [February 12, 2024, 12:15pm UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238 "2024-02-12T12:15:33Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![mon](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mon](https://community.ntppool.org/u/mon)\
**Post date:** [March 20, 2024, 6:48am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/21 "2024-03-20T06:48:48Z")

</div>

> [@Sebhoster](#):
>
> So either the Philippines have a lot more devices per capita that query the pool than other countries and most of them behind some kind of NAT

Aren’t most people behind a CGNAT these days? We used to have a public IP address 10 years ago. Now it has a premium price.

> [@Sebhoster](#):
>
> Do you have any ideas where to start? I was thinking of writing mails to the abuse teams of the IP addresses with the largest request rates, since those are only a couple dozen addresses from a handful of ISPs.

I don’t know any better than you do in this regard. I appreciate you helping out on this issue though.

---

<div class="post-metadata">

**Author:** ![Badeand](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@Badeand](https://community.ntppool.org/u/Badeand)\
**Post date:** [March 20, 2024, 10:15am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/22 "2024-03-20T10:15:22Z")

</div>

> [@mon](#):
>
> Aren’t most people behind a CGNAT these days?

Doesn’t seem to be the case where I live, in Norway. But maybe it’s more common in Asia than Europe?

---

<div class="post-metadata">

**Author:** ![stevesommars](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/stevesommars/32/2075_2.png) [@stevesommars](https://community.ntppool.org/u/stevesommars)\
**Post date:** [March 21, 2024, 4:45pm UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/23 "2024-03-21T16:45:53Z")

</div>

I looked at a 60-second pcap from [Sebhoster’s](https://community.ntppool.org/u/Sebhoster) server. Typical caveats: only examined one server for a short time, traffic may vary over time, etc.

Preliminary analysis below. The behavior is unlike other high-request rate systems that I’ve looked at.

NTP requests were sent by 17,564 clients during the 60-seconds. 99.6% of the requests were sent by 152 clients! Most clients sent requests at a steady rate of 300-1500 during the entire period.

This is probably not a NAT/VM related situation.

Except for the absolute rate, all 152 clients exhibit similar behavior: UDP source port is constant, the requests show alarm=0, version=4, stratum=0. The NTP request transmit time (set by the client when it sends the request) are all in error by either 20.5, 41, or 82 years.

Looking again at the NTP request transmit time stamp the fractional part is always \<= 0.232 seconds. A similar behavior was seen in recent years due to a bug in systemd’s timesyncd service. The Philippines situation differs in other aspects.

My guess is buggy client software is to blame.

---

<div class="post-metadata">

**Author:** ![Kets\_One](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@Kets\_One](https://community.ntppool.org/u/Kets_One)\
**Post date:** [March 21, 2024, 5:08pm UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/24 "2024-03-21T17:08:13Z")

</div>

Just block these clients?

---

<div class="post-metadata">

**Author:** ![Sebhoster](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Sebhoster](https://community.ntppool.org/u/Sebhoster)\
**Post date:** [March 25, 2024, 11:07am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/25 "2024-03-25T11:07:40Z")

</div>

That only solves the symptom, not the problem. And it would need to be done by every operator of any pool-joined server in the Phillipines.

I think I’ll start writing emails to the providers responsible for the IP addresses and see if that helps

---

<div class="post-metadata">

**Author:** ![florfoto](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@florfoto](https://community.ntppool.org/u/florfoto)\
**Post date:** [May 19, 2024, 4:29pm UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/26 "2024-05-19T16:29:33Z")

</div>

Hi o/

Did you have any reply to your emails?

We’re still having the same problem:

```auto
# ntpdate -d 0.rhel.pool.ntp.org
mail.fortunetobacco.com forward check lookup fail: Success
host found : 222.127.1.19 (mail.fortunetobacco.com)
transmit(222.127.1.19)
transmit(222.127.1.20)
transmit(222.127.1.27)
transmit(222.127.1.18)
transmit(222.127.1.19)
transmit(222.127.1.20)
transmit(222.127.1.27)
transmit(222.127.1.18)
transmit(222.127.1.19)
transmit(222.127.1.20)
transmit(222.127.1.27)
transmit(222.127.1.18)
transmit(222.127.1.19)
transmit(222.127.1.20)
transmit(222.127.1.27)
transmit(222.127.1.18)
222.127.1.19: Server dropped: no data
222.127.1.20: Server dropped: no data
222.127.1.27: Server dropped: no data
222.127.1.18: Server dropped: no data

```

Can these servers be removed from the pool?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![stevesommars](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/stevesommars/32/2075_2.png) [@stevesommars](https://community.ntppool.org/u/stevesommars)\
**Post date:** [May 20, 2024, 4:06am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/27 "2024-05-20T04:06:27Z")

</div>

I ran mtr (traceroute) from New York City for two of these server addresses: 122.127.1.20 and 122.127.1.22. Both addresses showed the same behavior:  
Target port 123 (NTP) No packets reach server  
Target port 122 or 124 At least 80% of the packets reach NTP server  
Ports 122 and 124 are used for comparison.  
It looks like AS4775 is intentionally blocking NTP messages from New York.

I checked NTP connectivity from another client located in suburban Chicago and saw zero loss (NTP connectivity was 100%)

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [May 20, 2024, 6:52am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/28 "2024-05-20T06:52:43Z")

</div>

> [@stevesommars](#):
>
> intentionally blocking NTP messages from New York

Last night from ~200 vantage points in the Philippines and beyond towards 122.127.1.26: [not a single response](https://atlas.ripe.net/measurements/72006544/).

At the same time, the [score was 20](https://www.ntppool.org/scores/222.127.1.26). But it is interesting to see that multiple monitors have score -100.

Looks indeed like there is heavy selective filtering.

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [May 20, 2024, 7:27am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/29 "2024-05-20T07:27:16Z")

</div>

> [@PoolMUC](#):
>
> Last night from ~200 vantage points in the Philippines and beyond towards 122.127.1.26

[New measurement](https://atlas.ripe.net/measurements/72026702/) with the same vantage points, and some more, probing 122.127.1.26 once an hour for the next 24 hours to see whether there is any variation throughout the day.

---

<div class="post-metadata">

**Author:** ![Bas](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Bas](https://community.ntppool.org/u/Bas)\
**Post date:** [May 21, 2024, 4:09pm UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/30 "2024-05-21T16:09:20Z")

</div>

Works fine here:

> root@workstation:~# ntpdate -q 222.127.1.26  
> server 222.127.1.26, stratum 2, offset +0.004966, delay 0.34708  
> 21 May 18:06:19 ntpdate[20110]: adjust time server 222.127.1.26 offset +0.004966 sec

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [May 21, 2024, 7:41pm UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/31 "2024-05-21T19:41:23Z")

</div>

> [@PoolMUC](#):
>
> same vantage points, and some more, probing 122.127.1.26 once an hour for the next 24 hours

- [~335 probes/vantage points in the Philippines, Asia, and beyond](https://atlas.ripe.net/measurements/72026702#probes)
- 23520 requests overall
- no response whatsoever

I know the system worked in the past, but seeing no response whatsoever got me wondering. But [it does work](https://atlas.ripe.net/measurements/72101499/).

---

<div class="post-metadata">

**Author:** ![Bas](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Bas](https://community.ntppool.org/u/Bas)\
**Post date:** [May 22, 2024, 4:35pm UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/32 "2024-05-22T16:35:29Z")

</div>

Maybe networks are blocked because of bigh number of requests?

My server does this if an IP(gateway) is polling too much.

It simply stops responding.

I see ISP’s request massive over 1 IP to my server, they are out of luck and block themselves.

---

<div class="post-metadata">

**Author:** ![davehart](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/davehart/32/1411_2.png) [@davehart](https://community.ntppool.org/u/davehart)\
**Post date:** [May 28, 2024, 7:08am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/33 "2024-05-28T07:08:37Z")

</div>

> [@stevesommars](#):
>
> Except for the absolute rate, all 152 clients exhibit similar behavior: UDP source port is constant, the requests show alarm=0, version=4, stratum=0. The NTP request transmit time (set by the client when it sends the request) are all in error by either 20.5, 41, or 82 years.
> 
> Looking again at the NTP request transmit time stamp the fractional part is always \<= 0.232 seconds. A similar behavior was seen in recent years due to a bug in systemd’s timesyncd service. The Philippines situation differs in other aspects.
> 
> My guess is buggy client software is to blame.

Nice work. Two different magic number fingerprints should be a big help in tracking down the problematic firmware or software.

Can you help me find more about the \<= 0.232 bug in timesyncd? My admittedly poor web search skills have failed me so far.

---

<div class="post-metadata">

**Author:** ![mlichvar](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mlichvar](https://community.ntppool.org/u/mlichvar)\
**Post date:** [May 28, 2024, 7:46am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/34 "2024-05-28T07:46:14Z")

</div>

It was a feature. timesyncd put nanoseconds directly in the fractional part of the timestamp. It was changed recently in this commit:

> <https://github.com/systemd/systemd/commit/678bd12cfc1a7f3f0d074ac9c52f0b06ec601618>
>
> This improves security against off-path attackers, and avoids leaking
> the curren…t system time.

This means it’s now more difficult to identify the timesyncd client when it it’s flooding its server due to this bug:

> <https://github.com/systemd/systemd/issues/17470>
>
> \*\*systemd version the issue has been seen with\*\*
> \> 246.6
> 
> \*\*Used distributio…n\*\*
> \> Fedora
> 
> \*\*Linux kernel version used\*\* (\`uname -a\`)
> \> 5.8.16-300.fc33.x86\_64
> 
> \*\*Unexpected behaviour you saw\*\*
> \> timesyncd sending NTP requests at a very high rate
> 
> \*\*Steps to reproduce the problem\*\*
> \> 1. set \`NTP\` in /etc/systemd/timesyncd.conf to 127.0.0.1 to avoid flooding public servers
> \> 2. \`systemctl restart systemd-timesyncd\`
> \> 3. start \`tcpdump -i lo port 123\` in another terminal
> \> 4. \`while true; do date -s '+0 sec'; done\`
> 
> I'm running a few public NTP servers in pool.ntp.org. Recently, I had a broken client that was sending ~2000 requests per second for three weeks continously, consuming almost as much traffic as all other clients combined. From the packet capture it looked like timesyncd. I wasn't able to contact the owner of the address, so I'm not sure what exactly was happening there. This is just my best guess.
> 
> I think the problem is that timesyncd sends a new request whenever it detects the system clock was set, using a timer specified with the \`TFD\_TIMER\_CANCEL\_ON\_SET\` flag. Normally there shouldn't be anything else except timesyncd touching the clock, but that's unreasonable to expect it to be always true. There can be another application, e.g. a different NTP/PTP client, or maybe just a test suite that is running some clock-related tests. In the case I saw I suspect it was a 32-bit system where the system clock somehow got out of the 32-bit range (aka Y2038), i.e. the timer expired and caused an endless stream of events on the descriptor. I can reproduce this on a Debian i386 machine.
> 
> Please add a separate safety mechanism to limit the rate of NTP requests, one that doesn't use timers. For example, there could be a check with each request that the \`tv\_sec\` value of the \`CLOCK\_MONOTONIC\` clock has changed. If something is messing with the \`CLOCK\_REALTIME\` clock, there will be at most one request per second.

---

<div class="post-metadata">

**Author:** ![davehart](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/davehart/32/1411_2.png) [@davehart](https://community.ntppool.org/u/davehart)\
**Post date:** [May 28, 2024, 10:37am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/35 "2024-05-28T10:37:37Z")

</div>

Thank you, Miroslav! You are a priceless resource to the community.

I still wonder about 20.5 years and its multiples. It’s probably something to do with whatever else is setting the clock on the systems plaguing the Philippines pool (and who knows which other parts of the pool are affected but not so severely).

---

<div class="post-metadata">

**Author:** ![keny](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@keny](https://community.ntppool.org/u/keny)\
**Post date:** [June 28, 2024, 6:51am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/36 "2024-06-28T06:51:50Z")

</div>

Hello, everyone,

We are still encountering this issue in the Philippines. What possible actions can we take to address it?

In the Philippines, is it necessary for us to temporarily abandon the use of [pool.ntp.org](http://pool.ntp.org) and rely on other NTP servers such as [time.aws.com](http://time.aws.com)?

---

<div class="post-metadata">

**Author:** ![alica](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/alica/32/337_2.png) [@alica](https://community.ntppool.org/u/alica)\
**Post date:** [June 28, 2024, 7:11am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/37 "2024-06-28T07:11:14Z")

</div>

NTP Service by local authority should be usable.  
[https://bagong.pagasa.dost.gov.ph/astronomy#philippine-standard-time](https://bagong.pagasa.dost.gov.ph/astronomy#philippine-standard-time)

---

<div class="post-metadata">

**Author:** ![keny](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@keny](https://community.ntppool.org/u/keny)\
**Post date:** [June 28, 2024, 8:29am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/38 "2024-06-28T08:29:10Z")

</div>

@alica  
Thank you!  
“ntp.pagasa.dost.gov.ph” works.

But we are happy if we can continue using “[pool.ntp.org](http://pool.ntp.org)” in the Philippines.

---

<div class="post-metadata">

**Author:** ![keny](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@keny](https://community.ntppool.org/u/keny)\
**Post date:** [June 28, 2024, 11:12am UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/39 "2024-06-28T11:12:42Z")

</div>

We don’t use “[ph.pool.ntp.org](http://ph.pool.ntp.org)” but rather “[pool.ntp.org](http://pool.ntp.org)”. However, we always get 4 addresses ranging from “222.127.1.18 to 222.127.1.27”.

If even one of these 4 addresses could be from another source, such as “[asia.pool.ntp.org](http://asia.pool.ntp.org)”, our problem would be resolved.  
Is implementing this countermeasure difficult for you?

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [June 28, 2024, 12:49pm UTC](https://community.ntppool.org/t/certain-servers-are-not-replying/3238/40 "2024-06-28T12:49:57Z")

</div>

Try [asia.pool.ntp.org](http://asia.pool.ntp.org). The global pool @ [pool.ntp.org](http://pool.ntp.org) will try to detect your location via GeoIP, either based on your IP address, or, lacking that, based on your resolver’s IP address, and will then _only_ provide you with servers from the zone it thinks you are in. (In a way, the term “global” seems misleading, because one does _not_ get servers from all over the world.)

As per some testing I did previously, [asia.pool.ntp.org](http://asia.pool.ntp.org) should also return addresses from Asia beyond a single country zone, in a few cases even from outside Asia (just as this can happen with a country zone in case a server’s location was misdetected at registration time, or, arguably more frequently, because it was manually added to the Asia zone, or some country zone considered to be in Asia, to add capacity to the respective zone).

Or you pick one or more explicit country zones apart from your own which have a sufficient number of stable servers in them, and which are “close” enough to your location (with “close” put in quotes because it is not primarily about geographic or network topology proximity, but about providing good time service).

[Previous page](https://community.ntppool.org/t/certain-servers-are-not-replying/3238.md?page=1)

[Next page](https://community.ntppool.org/t/certain-servers-are-not-replying/3238.md?page=3)
