Net Speed set to 512 Kbit/s: still in global zone, but almost no traffic

Hi everyone,

I’m running an NTP server in Italy (185.14.78.115) and recently reduced its Net Speed setting to the minimum value of 512 Kbit/s.
From what I’ve read in previous discussions, setting the Net Speed to 512 Kbit/s should automatically remove the server from the global zone (@), keeping it available only in regional zones.

However, my server’s page still shows three zones:@ (Global) europe it (Italy) .

My intention is to keep the server available only in the Italian pool, rather than making it available globally.
Is this the expected behavior? Does the Net Speed setting affect only the global zone, or should the continental zone also be removed?

I’ve also noticed something interesting: with the Net Speed set to 512 Kbit/s, the number of incoming NTP requests is extremely low, around 30–40 requests per second.

This is practically the same amount of traffic I receive when the server is set to monitoring only.

This doesn’t seem entirely normal to me, especially considering that there are relatively few IPv4 servers available in the Italian pool (only 39 servers)

I would therefore expect my server to receive at least some noticeable traffic from the Italian pool, even with the minimum Net Speed setting.

Out of curiosity, I also ran a small (long…) test querying nine authoritative DNS servers for it.pool.ntp.org, performing 200 queries per server. The queries were deliberately rate-limited, with a 1000 ms delay between consecutive requests, to avoid generating excessive DNS traffic.

Out of 1800 valid authoritative responses, my IP address did not appear even once.

I realize this isn’t necessarily a statistically representative test, since DNS responses may be influenced by geographic selection and other factors, but the result caught my attention.

This makes me wonder whether setting the Net Speed to 512 Kbit/s effectively prevents the server from being included in DNS responses, despite it still being listed in the it zone.

So, I have a few questions:

  1. Is it normal for a server configured at 512 Kbit/s to remain listed in the global (@) and continental (europe) zones?

  2. Does the minimum Net Speed setting significantly reduce DNS selection probability, even in a country with relatively few available servers?

  3. Is receiving only 30–40 NTP requests per second at this setting expected, or could it indicate that the server is effectively not being selected?

  4. Is there a way to restrict participation exclusively to the Italian zone?

Thanks in advance!

The “client distribution” metrics at the bottom of the page - pool.ntp.org: Statistics for 185.14.78.115 (I’m including it because you already told above which server is yours) says how many 10000’s of the requests the IP is in for queries from Italy. It looks like about 1/2000?

As you pointed out there aren’t that many servers in Italy, so the 1/2000 is actually 39x MORE than what “512kb” should work out to, but the system needs more servers to that accurately in some cases.

On average the system gets 2600 queries a second from Italy, so about once a second someone is getting your IP (~100k times a day!)

The hourly peak (for a few seconds) is 5-10x more than the average.

Thanks for the detailed explanation! That makes much more sense now.

Just one more question: is it normal that my server still shows all three zones (@, europe, and it) with Net Speed set to 512 Kbit/s?

Hi

I am not running the pool but just a server operator who does some monitoring so others may have a different point of view.

I am reading that to be that you only want requests from ip addresses in Italy. My answer would be no it is not possible - that I know of.

The problem is that when the pool receives a DNS request for pool.ntp.org it needs to work out where the request is coming from so it can reply with what it thinks is a nearby NTP server ip addresses. The pool uses GeoDNS to work that out but the problem is GeoDNS is not that reliable in picking the source location based on the ip address. For example if a user in France makes a request and the pool thinks the source ip address is in Italy then it could send the request from France to your Itialian server. Think of it this way - A user in France makes a DNS request to Cloudflare. The France Cloudflare site is under mantenance so the anycast request ends up going to Cloudflare Italy which looks in its cache and/or asks the pool. The pool “thinks” the request is from Italy so replies with your server IP address in Italy.

Take https://community.ntppool.org/t/problems-with-cloudflare-dns-in-nz/3512 for example. A while back asking Cloudflare for an NTP server from New Zealand would return addresses from Argentina.

Another example is that every few hours I ask the pool DNS servers where they think a request is coming from. A sample of the results from yesterday for an Alibaba server in Manila -

======== Pool Geodns guess for for ph-mnl-alibaba...
      6  8.8.8.8 ph asia @
      4  9.9.9.9 us north-america @
      2  9.9.9.9 ph asia @
      5  1.1.1.1 ph asia @
      1  1.1.1.1 hk asia @

All six of the requests to Google DNS said the source ip was in Manila. Asking Quad9 and 4 of the 6 requests said the request was from the US with 2 in Manila. For Cloudflare 5 in Manila and one in Hong Kong.

Based on that I do not think it would be possible to restrict your server to only receive requests from inside Italy if that was the question you were asking :grinning_face:

No, that was a bug since the recent system upgrade. Now fixed, thank you for reporting it!

mmm.. I just checked my server and, unless I’m missing something, it still shows @ europe it on the page, with Net Speed set to 512 Kbit/s

Such wishes are being brought forward time and time again, and nothing wrong with that as such. It is just based on the misconception that the “global” zone “@” would bring any signifcant amounts of traffic that keeping out of that zone would avoid - it does not. Simply for the reason that there are almost no clients in the global zone. I tried it, and the traffic from the “global” zone “@” was somewhat on the order of the traffic that the pool monitors are causing, i.e., almost unnoticeable.

And it is also clear from a theoretical perspective when consequently following the logic of how the pool’s geo-targeting works, i.e., how the pool selects the scope from which to draw servers for a client when the client did not indicate a specific geographic zone in the name it queried for.

There’s three hierarchies in the algorithm*:

  • Country
  • Continent
  • “Global”

Now the targeting mechanism tries to be as specific as possible. I.e., it first tries to assign servers from the local/country zone of the client (as well as that can be determined). If there are no servers in a country zone, the mechanism tries to allocate servers from the continent zone next. And if there are no servers in the continent zone, it will pick servers from the “global” zone.

And this last part is why there is basically no traffic coming from the “global” zone: Because all continent zones, with the exception of Antarctica, have servers in them.

So unless a client really is from Antarctica (I’ve seen a few requests from addresses that are geolocated to Antarctica), or the database simply does not have any (usable) geolocation information for a client (e.g., private addresses that escaped to the public Internet, or location known to the level of “Asia/Pacific”, which is not something the geoserver is configured to handle), if it cannot be served from a country zone, it will pretty much definitely be served from a continent zone.

With that in mind, not sure why the pool has this automatism of adding or removing the “global” zone from a server based on “netspeed” setting, as it is basically a no-op as far as the scope of clients that can be assigned to a server is concerned. Instead, if any distinction worthwhile of making it is to be made (in the sense of making an actual difference in the amount of clients assigned to a server, and their geographic location), it would be adding and removing the continent zone based on the “netspeed” setting. At least for some continent zones, that could make a noticeable difference.

@ask

I wouldn’t be as strict as saying it is not possible at all. What is certainly true is that there’s always going to be stray clients from all over the place ending up on a server for a multitude of reasons, as discussed previously, or with some aspects described in @gombadi’s post. E.g., there’s regions where many people explicitly select a country zone, and thus bypass the geo-location based server assignment altogether. China is such a zone, where there are servers, but they are typically overloaded, so many people there manually configure other country zones (various forums seem to have instructions as to how to do that).

However, with a continent zone assigned to each server by default, and depending on the specific continent zone a server is located in, having the continent zone assigned to a server, or not, can make a noticeable difference in traffic. Perhaps not in Europe, for example, where the only “country” zones not having any servers in them are rather small territories such as Andorra, San Marino, the Vatican, or the British Channel islands. But, e.g., in Asia, it can make a noticeable difference. In the sense of seeing a difference between the server having the continent zone assigned to it, or not having it assigned. However, the amount of traffic will still be comparatively small in many cases in comparison to the amount of traffic that many country zones can generate.

E.g., because the pool does not allow “netspeed” settings below 512Kbit, some of my servers in Asia would have overrun their monthly traffic quota in about half a month, so I could not have kept them in the pool with the country zone assigned to it. However, by sending an e-mailt to server-owner-help@ntppool.org, one can request to have the country zone, or the continent zone, or even both removed from the server. So multiple of my servers in Asia currently are in the Asia continent zone only, and the traffic has become much more manageable. The other way round, keeping the country zone and removing the continent zone, would not have sufficed, though.

* Actually, the geoserver software itself knows more than three, but the assignment of NTP clients to NTP servers only uses the three mentioned.

Maybe the fix hasn’t been rolled out yet. And the @ does not disappear on its own, I guess, but you’d have to make the transition to > 10Mbit and then back to < 10Mbit for the logic responsible for managing that aspect to be actually executed.

Yes, I didn’t change any existing servers just fixed the logic for when the zone is removed and added! (The rules have been different over the years and it seemed too convoluted to apply it to just servers that had been changed recently, and still would include people not reading this thread).

And given that there isn’t much of a difference in terms of traffic between having the global zone assigned, or not, people would’t even notice the difference if it weren’t for the @ symbol. It’s essentially just a cosmetic issue.