Zephyrnet Logo

Why you shouldn’t use Global Anycast DNS in China – IBM Blog

Date:


Why you shouldn’t use Global Anycast DNS in China – IBM Blog

<!—->


<!– –>


Developer sitting in chair in between storage shelves working on laptop and wearing headphones and smiling

December 18, 2023
By Ben Ball

3 min read

Anycast is a standard, table-stakes feature of every authoritative DNS service. It makes sense: inbound queries should always be routed to the best available servers—usually the ones that are geographically closest. Yet, there is one glaring exception: China.

The internet in mainland China is walled off from the rest of the world. Any DNS query that crosses into or out of mainland China must pass through a series of filters and other controls before it can be passed along for resolution. These filters and controls impose a gigantic performance hit—if the query is allowed to resolve at all. 

The risks of Global Anycast DNS in China

Several authoritative DNS providers deal with this issue by extending their network into mainland China so they can resolve traffic inside mainland China. These additional points of presence (PoPs) are attached to a global anycasted network but primarily serve users in mainland China due to the use of geographic traffic steering.

At first look, this approach seems logical. Since anycast DNS queries in mainland China will be answered by the nearest server, the more PoPs in China you have, the more likely you are to respond from a server that sits inside the system of filters and controls.

This approach isn’t foolproof. Global brands serve up applications, services and content from nearby countries as well. Even with a large number of PoPs in mainland China, the Border Gateway Protocol (BGP) often sends users in mainland China to resolving servers in neighboring countries based on prevailing internet conditions and the number and cost of “hops” needed to find the resolver. When that traffic goes across the system of filters and controls, the performance hit is significant.

In this sense, anycasting an authoritative DNS service in mainland China is a bit of a crapshoot. If you’re not deliberately directing users in China to a domestic server, there’s always going to be a risk of poor performance.

The NS1 Connect approach: Nameserver Acceleration

IBM® NS1® offers a distinctive approach to resolving DNS queries in China—one that removes the risk of anycast-induced performance issues by geolocating the query source. We call it Nameserver Acceleration.

NS1’s DNS infrastructure is essentially two separate but related networks: NS1’s anycasted Managed DNS service and our Managed DNS for China offering. Instead of blindly relying upon BGP to find a resolver, we use our own traffic steering technology to figure out which network should respond to a query. 

If a request comes from China (as determined by geolocating the source IP), it is answered by one of our DNS servers in China. If not, the request is answered by a server on our global anycasted network.

How Nameserver Acceleration works

When a user in mainland China initiates a DNS query, the first “hop” goes to a local resolver. In the second “hop”, the resolver does an IP address lookup.

This second hop is where BGP often routes traffic to a nearby country. NS1 adds a step to the resolution process to ensure that doesn’t happen. 

Normally, the nameserver for the top-level domain (TLD) returns both a domain name and an IP address, stored in a “glue record”, to reduce the number of lookups. Nameserver acceleration is configured to remove this glue record.

When the recursive resolver doesn’t get the glue record it needs, it performs a separate lookup to find the missing IP address. When the resolver looks up the IP address of the authoritative nameserver at NS1, we respond with an IP address based on the resolver’s location. 

If that resolver is in China, NS1 responds with an IP address of a China-based nameserver. If the resolver is outside of China, the response goes back with an IP address for a server on NS1’s global anycast network.

Performance impact

Now, you may be asking, “doesn’t that extra lookup actually degrade performance?” It is true that inserting an additional step into the query resolution process takes extra time. However, we’ve found that the impact on performance is so negligible that it’s hardly worth mentioning. And in comparison to the drag on performance produced by the system of filters and controls, it’s clearly worth doing.

The numbers clearly bear this out. Here’s some data we pulled on DNS response times in mainland China from IBM NS1 Connect® and its primary competitors. As you can see, our approach yields significant dividends—on average, our service is over three times faster than any other network.

The DNS management angle

If you’re a global business with a significant user base in mainland China, Nameserver Acceleration makes NS1 the clear choice for DNS services. But it’s not the only reason. 

NS1’s Managed DNS for China does all of this through a single control plane. All of the technical magic and fancy traffic steering happens within our platform. From a management perspective, queries from China sit right alongside the rest of your network. 

Not all DNS providers can say that. Due to Chinese regulations around serving content, many of them require entirely separate accounts and credentials to specifically manage queries that originate in China. Since NS1 is a pure play DNS provider, we can offer a single control plane without the need for an ICP license.

Learn more about the distinctive benefits of NS1 Managed DNS for China.

Explore NSI Managed DNS for China here


More from Automation




Anomaly detection in machine learning: Finding outliers for optimization of business functions

5 min readAs organizations collect larger data sets with potential insights into business activity, detecting anomalous data, or outliers in these data sets, is essential in discovering inefficiencies, rare events, the root cause of issues, or opportunities for operational improvements. But what is an anomaly and why is detecting it important? Types of anomalies vary by enterprise and business function. Anomaly detection simply means defining “normal” patterns and metrics—based on business functions and goals—and identifying data points that fall outside of an…




Troubleshoot your network with DNS Insights

4 min readIt is relatively simple to see that something is wrong with your network using DNS data. A spike in NXDOMAIN responses or other errors usually serves as a clear indication that something is amiss. The next step—diagnosing the source of the problem and then actually doing something about those errors—is often a heavier lift. It is a data problem. Any authoritative DNS provider worth its salt will show you how many NXDOMAIN responses you are getting. Yet, few provide the…




How to optimize application performance with NS1 traffic steering

2 min read“I want it now!”—This isn’t just a phrase spoiled children sing; it’s what we demand every time we click a link, stream video content or access an online application. As internet traffic grows in volume and complexity, our expectations for faster response times from the services and content we use rises. We often click away if instant results aren’t provided. For businesses delivering applications and services, the fierce urgency of “now” is a logistical headache. Internet traffic must navigate different…




What Is Rum data and why does it matter?

3 min readWhat is RUM data? Contrary to what you might think, RUM data isn’t a performance indicator for Captain Morgan, Cuban tourism or a Disney film franchise. Real User Monitoring (RUM) data is information about how people interact with online applications and services. Think of it like an always-on, real-time survey of what your users experience online. RUM data is a critical component of optimizing the performance of online applications and services. By analyzing information on where users are going and…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.

Subscribe now

More newsletters

spot_img

Latest Intelligence

spot_img