DEV Community

Sebastiaan Deckers for Commons Host

Posted on

Udon Thani, Thailand 🇹🇭

Commons Host expands in Thailand with a new edge location to serve low-latency web and DNS traffic.

Thailand is the second largest economy in South East Asia. It has a population of over 68 million people, slightly more than France or the United Kingdom.

The new edge server is located in the north-eastern city of Udon Thani. Routing is conservatively configured to receive only traffic from within Thailand.

The server hardware and hosting are sponsored by Dr Alex, founder of Singapore based WebRTC specialists CoSMo Software. He is a long-time supporter of Commons Host who previously sponsored the Los Angeles edge server as well as my first in-person attendance to an IETF conference. Huge thanks for his support and mentorship.

Street view in Udon Thani, Thailand

Photo: Street view Udon Thani, Thailand (Source: Insights Unspoken)

Regional Peering Surprises

From Udon Thani the Laotian capital Vientiane is geographically closer than Thai capital Bangkok, respectively 60 km and 460 km. However network latency tells a different story.

Route Distance Round Trip Time
Udon Thani to Bangkok 460 km 12 ms
Udon Thani to Vientiane 60 km 25 ms

Map of traffic flow from Udon Thani to Vientiane via Bangkok

Map: Geographical distance (green) vs Network distance (red)

As another example let's look at the edge server in Udon Thani and two different ISPs in Singapore. One has direct peering, at an IX in Singapore, while the other does not. Without peering they must fall back to a carrier in Palo Alto, California; literally an ocean away.

Before this new edge server was deployed, traffic from users on this ISP in Thailand to the Singapore edge servers would sometimes travel halfway around the world.

ISP ISP Round Trip Time Internet Exchange
Commons Host @ Udon Thani (Thailand) StarHub (Singapore) 42 ms Singapore
Commons Host @ Udon Thani (Thailand) MyRepublic (Singapore) 218 ms California, USA

Map of traffic flow from Udon Thani to Singapore via California

Map: Network distance from Udon Thani to Singapore with peering (1,800 km in green) or via long-haul transit (26,000 km in orange)

Bypassing Internet Exchanges

Network providers physically interconnect at Internet Exchanges (IX). In this case the IX is located in Bangkok, so all traffic between Udon Thani and Vientiane does an additional ~900 km round trip.

The problem is even worse between smaller ISPs. Since there may not be much traffic flowing between them, direct peering agreements are sometimes not in place. In those cases traffic can only be exchanged via a mutual peering partner.

Simply by deploying more servers in many locations worldwide we can side-step the lack of peering between ISPs. Deploying smaller servers in larger numbers is the brute force way to achieve ultra-low latency. It eliminates expensive & slow transit traffic.

Being able to deploy small-scale edge servers is a key advantage of the Commons Host CDN model.

CDN Provider Nearest edge to Udon Thani Round Trip Time
Commons Host Udon Thani <1 ms
Cloudflare Bangkok ~12 ms
AWS Cloudfront Singapore >40 ms

The ability to achieve lower latency is inversely proportional to the minimum size of an edge server deployment. Micro-servers < server racks < data centres.

Consumer ISP Port Blocking, Not So Bad After All?

When Commons Host first started one of the fears was that ISPs would never allow it. Fortunately that has been mostly overcome by simply purchasing a static IP and having a friendly chat with the ISP support desk.

To deploy the Udon Thani edge server on a consumer fibre connection required obtaining a static IP address. In theory a dynamic IP address would suffice, but in reality those tend to be private addresses (10.x.x.x or 192.168.x.x) behind an ISP-wide Network Address Translator (NAT) and therefore inaccessible to the rest of the Internet.

Once the static, public IP address was activated, the next obstacle was a mysterious blocking of ports 80 and 443, for HTTP and HTTPS respectively. A simple call to the ISP by Dr Alex resolved the issue. Turns out all we had to do was ask and they happily opened the ports, allowing the edge server to go live in Thailand.

People are mostly good; this is a victory of the commons.

Top comments (5)

Collapse
 
apichan profile image
Apichan

Hello Sebastiaan,

It's quite interesting that you have selected Udon Thani to install your edge server. I am Udon Thani native people and working in a university here. Since Udon Thani is far from Bangkok, may I ask you what the reason you have selected Udon Thani instead of other places in Thailand?

Collapse
 
sebdeckers profile image
Sebastiaan Deckers

The location is by chance, not by choice. The server is at a home fibre connection. The home happens to be in Udon Thani. I hope to have edge servers in many more cities in Thailand.

Sadly the home fibre connection has been mostly offline in recent months. Probably due the difficulty of talking to the ISP. Alex and I are remote and there is a language barrier. Would you be interested in helping?

Collapse
 
apichan profile image
Apichan

Certainly, I will if you need help.

Thread Thread
 
sebdeckers profile image
Sebastiaan Deckers

Thanks! I hope we can get the connection restored. Can you please email me? sebdeckers83@gmail.com or Telegram/Twitter: @sebdeckers

Thread Thread
 
apichan profile image
Apichan

I have sent you email.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.