The Architecture of the Internet with Erik Seidel

6 Nov 2025 · 51 min

Ask about this episode

Ask anything about it. ChatGPT or Claude reads this page and answers with the times it was said.

Connect VO and ask about every podcast you hear, including the moments you saved. Add to ChatGPT · Add to Claude

In short

Podcast Notes: The Architecture of the Internet with Erik Seidel

Overview In this episode of Software Engineering Daily, Erik Seidel, a network engineer at Cloudflare, discusses the complexities of the modern internet architecture, including fundamental concepts such as routing, peering, and DDoS mitigation. The conversation also delves into Seidel's unique journey into the tech field and Cloudflare's network infrastructure.

Key Themes and Concepts

The Internet's Architecture

  • The internet is a vast network of independent networks, functioning through billions of routing decisions made every second.
  • Autonomous Systems (AS): Independent networks identified by unique numbers (ASN) that connect to each other.
  • Tier One Providers: Major networks like Telia and GTT that can reach the entire internet without paying for transit, engaging in settlement-free peering.

Erik Seidel's Background

  • Seidel has a non-traditional background, transitioning from classical studies and language learning to tech.
  • His journey included teaching English in China, where he developed an interest in networking and built his own ASN.

Core Networking Concepts

  • Border Gateway Protocol (BGP): Protocol used by edge routers to exchange routing information and provide a roadmap for data packets.
  • Edge routers connect networks, facilitating data transfer and communication.
  • The stability of BGP sessions can vary based on network size and customer interactions.

Peering vs. Transit

  • Peering: Settlement-free exchange of prefixes between networks, allowing direct connection to each other's customers.
  • Transit: Purchasing a connection to the entire internet, providing a full view of all reachable networks.

Cloudflare's Role and Architecture

  • Cloudflare started as a CDN provider, evolving to offer comprehensive security services and edge computing.
  • The company operates over 300 global points of presence (PoPs) to ensure efficiency and redundancy.
  • Data Center Design: Cloudflare's infrastructure is strategically placed in high interconnectivity areas to minimize latency.

DDoS Mitigation Strategies

  • DDoS attacks are typically executed using botnets, overwhelming targeted IP addresses with traffic.
  • Anycast: A routing mechanism where the same IP address is advertised by multiple servers, dispersing attack traffic and minimizing overload on any single location.
  • Cloudflare's infrastructure allows for the absorption and filtering of substantial DDoS attacks without service disruption.

Networking in China

  • Networking in mainland China operates differently due to government regulations and control (e.g., Great Firewall).
  • Cloudflare partners with local Chinese providers to navigate these complexities and ensure service delivery.

Key Takeaways

  • The architecture of the internet is complex yet remarkably robust, enabling effective global communication.
  • Understanding routing, peering, and transit is essential for comprehending how data flows across networks.
  • DDoS attacks are a prevalent threat, but technologies like Anycast offer effective mitigation strategies.
  • Erik Seidel's journey highlights the diverse pathways into the tech industry and the importance of maintaining work-life balance.

Closing Thoughts The episode presents a deep dive into the intricacies of internet architecture and Cloudflare's pivotal role in maintaining its reliability and security. Seidel's insights remind us of the ongoing evolution of networking technologies and the importance of adaptability in the tech field.

For more insights, refer to the full episode [here](https://softwareengineeringdaily.com/2025/11/06/the-architecture-of-the-internet-with-erik-seidel/).

Written by AI. May contain mistakes. Listen to the episode to check what was said.

Hear the part that matters, and keep it.Open this episode in VO. Double tap your headphones to save a moment as you listen.
Get VO free

Transcript

Automatic transcript. May contain errors.

0:00The modern internet is a vast web of independent networks bound together by billions of routing decisions made every second. It's an architecture so reliable we mostly take it for granted, but behind the scenes, it represents one of humanity's greatest engineering achievements. Today's internet is also dramatically more complex and capable than in its early years. Eric Seidel is a network engineer at Cloudflare, where he focuses on automating global network infrastructure. He joins the show to discuss his unique journey into tech, the fundamentals of how the internet works, the border gateway protocol, peering versus transit, Cloudflare's architecture, networking in China, and much more.

0:45Gregor Vand is a security-focused technologist, having previously been a CTO across cybersecurity, cyber insurance, and general software engineering companies. He is based in Singapore and can be found via his profile at van.hk or on LinkedIn.

1:15Hello and welcome to Software Engineering Daily. My guest today is Eric Seidel. So welcome, Eric. Hello, nice to be here. Yeah, great to have you here, Eric. We've met very briefly a couple of years ago. I say back in Singapore. I'm still in Singapore. You're now in Austin. You were then and still are working for Cloudflare as a network engineer. And we're going to be hearing all about how Cloudflare works, as well as just kind of general principles of how the internet works today, which is going to be very interesting. But as per usual, we'd love to just hear a little bit about your background before sort of leading up to Cloudflare.

1:52I gather you have spent a lot of time in Asia, but also like China specifically, which is obviously very interesting from an internet perspective. So yeah, can you just give us a brief history? I think like a lot of people in the tech industry, and I found I'm not unique as this, I have a rather non, I'm what you might call a non-traditional, non-standard background, very varied background. I came into the tech industry a little later. It's not my first go at tech or understanding tech or working with tech. I mean, I've been doing tech-related jobs since I was a student worker back in university in the late 90s, early 2000s.

2:31And then I kind of drifted off away from like computing and internet altogether and towards a lot of language learning. I was classic students, Latin, Greek. I mean, I was training to be a classics teacher at one point, actually. And then I ended up going to China for a while, teaching English there and learning the Chinese language. Spent a while there learning Chinese because I just really enjoyed a whole thing of learning languages. And then after a few years in China, I kind of drifted back towards tech. And within a year of coming back to America, I found in March 2020, about less than a year after I came back to America, I found myself at Cloudflare.

3:11And I've been working at Cloudflare ever since. I first kind of started as a customer support engineer at Cloudflare, very much networking focused, helping customers with their networking related issues and how to use Cloudflare networking related services, in particular, our Magic Transit product. And then from there, I kind of migrated into engineering as a network engineer. And since then, I've actually become a systems engineer on the networking team where I focus more full-time on just automating networks or automating our network, I should say. And I mean, so through that time in China, were you sort of like keeping up with tech or doing any kind of network related things?

3:52That's how I developed my interest in networking. Actually, I started doing a lot of networking related things in China. I ended up building up my own ASN in China and running it with like public IP addresses and stuff while I was in China and things like that. That's really where I got into networking to begin with. Yeah, because I think most of the audience are probably aware, but the Great Chinese Firewall, so just networking in China when it comes especially to anything that needs to leave the country or come into the country from a network perspective is just a whole different kind of ballgame, right?

4:23Yeah, I think we might be getting to this later in the podcast, but yeah, networking in China works very different from the way it works in mainland China, I should say. works very differently from the rest of the world. And that like very much influences how we deliver our products in China versus like ROW, rest of the world, as we say. Got it. Okay. Yeah. And as you say, yeah, we will get to that in more detail later on. Awesome. So let's start kind of with the fundamentals. So kind of we might term it sort of just internet fundamentals and sort of where Cloudflare fits into all this. So yeah, where do we start with this?

5:00I mean, at the most basic level, the internet is just a big collection of networks. We've got tons of different networks that make them up. I've made previous reference to ASN, Autonomous System Number. The network is divided into what are called autonomous systems, which are like kind of freestanding independent networks in their own right, identified by a unique number called ASN. And they all connect to each other. They all peer with each other. and all together in aggregate, that makes up the internet. Now, once you get a little lower though, what you have is you have different tiers of networks, things like that.

5:35At the very top, you have kind of what are like tier one providers. These are very big networks like Telia as an example, GTT as an example, Nippon Telephone and Telegraph, NTT in Japan is a big example. And they are what we call transit provider networks. And they have networks that though they might have certain focus on certain regions, like NTT might be more APAC-focused, GTT, I think, might be more EMEA-focused, Europe-focused, that area. Cogent might be more like North America-focused. Initially, they run networks that span the globe, big networks that span the globe. And they engage and they're called tier ones because they are networks that can reach the entire internet without having to pay any money.

6:22They basically engage in settlement-free peering with each other. It's like their mutual benefit. Like, yeah, we all connect to each other, exchange our customers' data with each other. And by connecting to each other and exchanging our customers' data with each other, that's the internet. And in addition, you have all sorts of other networks. You have smaller regional ISPs that connect to one or more tier one transit providers. They might have downstream customers of them too. Like their customers connect to them that then connect to like the transit providers. Then you have tech companies like Cloudflare is an example of one.

6:55Google, AWS are examples of others where big content provider networks. We connect to tier one networks too for transit. And in addition, we do lots of interconnections with all sorts of other networks on the internet to like broaden our connection base and reduce the latency. It just reduced the general cost and increased the efficiency of delivery to customers. And so, you know, we've talked about tier one. And then if we, I guess, look at edge routers, edge routing, like they, I believe, use the BGP routing protocol. Could you maybe just, what even is that? And how does that sort of then fit into things?

7:30So I find the best way to explain BGP, like with a lot of things, is to like start with the problem that it solves. Like what's the problem that it solves? You mentioned edge routers. Edge routers, like we have all these networks. These networks have the concept of an edge and a core. The core of the network is like it's all their network, like right deep in the bowels of their network. If you're an AT &T customer in America like I am, I'm deep in the bowels of their network. Like my local internet connection connects to something deep in their core. The edge or the border, we call it the border as well, the edge of the network or the border, that's where it's actually connecting to other networks, where traffic is leaving and entering their network from other networks.

8:11And the routers that do that, we call them edge routers. Now, when we have that, we have these networks connecting, like their edge routers are connecting to routers on other networks. They have to basically provide a roadmap to the other routers. We all know the internet is made up of IP addresses and IP prefixes, even like the most basic examples, 192.168.1.0 slash 24. That's, of course, a private IP network, but it works. Public IP networks are numbered and work the same way in that respect. With their public networks, they have all these public networks, like your public IP address, like my public AT &T IP address.

8:50It is part of an AT &T prefix. Now, how do other networks know that I'm an AT &T? How do they know? Like, yeah, I have to send my traffic to AT &T, not only AT &T, but maybe it's best to send it to this AT &T router in this region. How do they know that? That's where BGP comes in. BGP, it stands for Border Gateway Protocol. It runs on these edge routers. And what basically do is you establish BGP, these edge routers, like AT &T edge routers, CloudFlare edge routers, whatever they might be, if they have a direct connection to each other, like if the AT &T router has, say, a direct connection to a CloudFlare edge router, like a direct point-to-point fiber optic Ethernet circuit, then these two networks will run a BGP session over that point-to-point connection, and they will exchange their prefixes, like in the CloudFlare case.

9:45These are our prefixes that you can reach here to the AT &T router. And the AT &T will say, these are all of our prefixes that you can reach these prefixes through me through that same session. And that kind of provides the roadmap. And it's made for all of these point-to-points. We generally have one with the exception of IXP sessions. IXP is where we have multiple sessions. Each point-to-point, it's one BGP session. And that's what BGP basically is. It's building the roadmap of the internet. It's telling everyone where the IP addresses are. Got it. And this might be quite a basic question for some of our listeners, but not for me anyway.

10:23How often do these change? Because if this protocol is all about exchanging the roadmap, yeah, how often do they change? Do they change? You have to look at it in terms of individual sessions versus aggregate. Individual sessions, maybe not much. All in all, aggregate, it's changing all the time. The internet is whole. Like the IPv4 internet right now has, I think, over a million unique prefixes. The IPv6 internet has, I think, about 200 ,000 unique prefixes. That's changing all the time in aggregate. And it also can depend how far up the chain you are. If you're like a small regional network, maybe you're a customer of, say, you're like a small office network maybe, and you're a customer of AT &T and you've got a BGP session with AT &T.

11:06Or not even AT &T, just your regional ISP. Your session with your regional ISP might not change that much. It might be very stable. Once you get to your regional ISP, the sessions with all of their customers will be very stable, but some of their customers may be changing, which means their sessions with their upstreams might be a little less stable, a little more dynamic, because every time one of their customers makes a change, they make a change. It gets propagated to their upstream, and their upstream sessions make a change. Once you get to the tier ones, like Telia and AT &T is a tier one, two, Telia, GTT, NTT, all these, they're having a lot of changes.

11:46It's very dynamic because anytime, not just one of their customers, anytime a customer of a customer of a customer of a customer makes a change, that'll get propagated up to one of their sessions. So they've got sessions where like, yeah, there's lots of changes. It can be very dynamic. So it really depends where you are on the internet. The closer you get to the tier one, the heart of the internet, if you will, and what we call the default free zone, the DFC, it gets more dynamic. So many questions I could be asking, but I know we're always going to run out of time if I ask everything. But one sidebar question here is tier one, AT &T sounds like the main US player.

12:22Does that mean that they're just sitting on a massive asset that at some point someone else could come and buy? Could another tier one be created in some way? The basic standard of tier one, from at least the way I understand it, and I think that's the standard way, is that tier one is a network that it can reach anywhere on the internet without having to pay another network. Okay. That's a good definition. Yeah, that's basically what it is. And AT &T can reach, from what I understand, if they're still tier one, I understand they are, they can reach any other part of the internet without paying.

12:53And the reason they can do that is because they have such a large network, such a large customer base. And I'm not really the finances person or the business decisions person, but it's reached the point where like, yeah, other networks, they've all made the business decision that this is a network that it's worth doing settlement free peering with. Okay. Well, that kind of actually leads us pretty nicely then into peering versus transit. And you did touch on it briefly earlier, but yeah, let's talk about that. And obviously we're going to get into what that means from a basic financial standpoint as well, I guess.

13:26So we have our edge routers. They're connected with lots of other networks with fiber optic ethernet and those BGP sessions I mentioned. A lot of them are peers. We do settlement-free peering with them. What they do is we send them our prefixes. They send us their prefixes and maybe the prefixes of their direct customers, which means we can use that connection to reach like their network and other networks that are their customers maybe, right? What we cannot do through such a session, what if there's like some other network out there that's not their customer at all? It's a customer of some other network.

14:02We can't reach it through them. Like they're only going to provide us with the reachability to their network and their customer networks? If we've got, say we've got some other network way out there and we're not directly connected to them and that other network is not a customer of any of our peer networks, how do we reach them? That's where transit comes in. Basically, when you're buying a transit session, buying a transit service, you are buying a connection to the entire internet. You pay them and they give you what we call a full table or a full view of the internet. They won't just send you like maybe a thousand prefixes of just like their network and their customers.

14:39They will send you a million IPv4 prefixes containing like every other network on the internet. They will send you all 200 plus thousand IPv6 prefixes of the whole internet. And they've given you that full view of the network's internet so you can reach any other network on the internet through them if you so choose. And I guess in Cloudflare's context, this is sort of table stakes because Cloudflare to provide, we can maybe do a very brief history of Cloudflare in a second, but the product provided initially and then a massive suite of products now, Cloudflare has to assume it can know where to go across the entire internet or to be able to provide its services effectively.

15:21Yeah, we have to make sure all of our data centers' basic requirements. We have to have a fully functional connection to the internet that has a full view of the internet. Yeah. Tired of babysitting autoscalers and overspending on cloud costs? Meet Thoris, the platform that makes engineers heroes to their finance and business leaders. Thoris intelligently manages Kubernetes clusters, automatically right-sizing and scaling workloads while preventing downtime from traffic spikes. It anticipates usage and capacity needs, so systems stay fast, reliable, and efficient, without constant tuning. Teams using Thoris cut cloud spend by 40-60%.

16:00Thoris predicts compute and GPU demand before it happens, keeping performance smooth and costs in check. Stop wasting compute and guessing your resource needs. Let Thoris handle your autoscaling, so your teams can focus on building. Find out how much you can save with Thoris. visit thoris.ai and try our cloud savings calculator. So let's move on to the global scale, the architecture of Cloudflare. I mean, I definitely didn't prime you to be a history expert on Cloudflare today, but maybe you could just from any basic information, where did Cloudflare start? Where is it kind of now? Maybe sort of from a product perspective or just product suite, I guess.

16:40And then we can talk more about like how that's actually then manifested at a technical level through architecture. Sure. I'll focus on the part of Cloudflare I know the best, based on not only my networking team, but previously in customer support. The aspect I'm most familiar with for Cloudflare, I think a lot, is the security aspect. We provide a lot of security services. And I guess you could say the classic way we do it, which is kind of the OG way of doing it, Cloudflare-wise, is we provide like the CDN edge where basically we sit between our customers' origin servers, like their web servers, our edge servers are between them.

17:17And their customers will not directly connect to their web servers. They'll connect to our edge servers. And then we might provide services like caching, like we'll cache some of that for them. We provide a lot of security services for them to make sure like, yeah, if there's a DDoS attack, not only do we strive to absorb it, we strive to like filter it as well. As much bad traffic as possible, drop it as much good traffic as possible, make sure the customer gets or make sure it's served by cash or whatever means. That's the OG, like I said, from there. I worked a lot in customer support on a product called Magic Transit, which is kind of expanding that philosophy to layer three, which is basically networks like with their own ASNs, like I mentioned.

17:59They can put themselves behind our metals where we basically establish using PNI or using GRE tunnels or some other means to like connect from our edge servers to their edge routers. and we sit in front of them. And before any of their traffic, layer three traffic reaches them, it goes through our metals first and our metals filter it and then send it to them. That's another product. And that's kind of where I came to Cloudflare. Yeah, where we are very much, at least from the perspective I see in Cloudflare, we are very much a security oriented company providing security services to our customers in addition to CDN services and even like edge compute services as well.

18:40And speaking of edge compute, in addition to our workers' product, we're moving more and more into the AI realm as well. Yeah. So let's talk about then the sort of pure infrastructure that's required to drive this. I believe just a couple of numbers off the top of the charts, if you like, as over, I mean, this was what, two years ago, at least, was over 300 global points of presence. And I think it'd be interesting to understand what those are in over 100 countries, 44 million HTTP requests a second on average. These are just sort of numbers to help the audience maybe just get a vague sense of scale here.

19:12And again, this is two years ago, so it's only probably gone up since then. We've gotten bigger. I'm sorry, I can't provide you with the exact numbers. No, no, it's fine. We're getting bigger. It gets bigger all the time. Yeah. So let's talk about point of presence. What does that even kind of mean and what are they handling? So that goes back to that edge networking concept. So we have these networks, they want to connect to each other, right? Where do they connect to each other? The point of presence. It's like a data center someplace where like, yeah, we've got routers there. We've got infrastructure there.

19:41The other network has routers there. They have infrastructure there. We can connect to each other there. And it's not just case of points of presence. Like with us, it's not just edge routers as well. Like we'll have our fleet, we'll have some of our servers as well there. The thing about our service, the way we've got them configured is we like to have them configured generally to run the whole Cloudflare stack. Basically any of our Cloudflare services should be able to handle any of our customers' needs and services. Got it. So how does this then like flow through to data center, I guess, design, if you like?

20:13I believe it's sort of the concept idea of traditional versus multi-colo POP or MCP, which is a different MCP to what maybe a lot of our audience are used to hearing about. So yeah, so let's talk about those. Yeah. So the way I like to conceptualize it, to understand how we approach it, you kind of get an idea of the internet topology itself. is like, just with like human topology, you've got areas where population density is very low, relatively low, like rural areas. And then you have areas more urban where population density is very high. The internet interconnectivity on the edge is kind of like that as well.

20:49You have areas, like Austin is an example, even though it's a big urban area, like where there's not as much interconnectivity happening, right? Not many networks connect to each other, peer with each other in Austin, where a lot of the peering, a lot of the internet connectivity happens, closest to me, is the DFW, the Dallas-Fort Worth area. There you have like lots of networks coming together at lots of data centers in that area, all connecting to each other and peering with each other. Now, the internet almost works the same with the city metaphor. If you've all these networks connecting to each other, guess what?

21:24You've got lots of companies, including us, including all sorts of other companies. They want to park their servers and infrastructure there. They want to park their infrastructure close to where the connections are happening because the closer you are to where you're connecting to other networks, the quicker it is to get your data onto the customer network and to the customer. Like if you're some area where it's like you're far away from where interconnectivity is happening, then you end up at the core of your provider network. You have to go through your provider network before you reach the customer's network.

21:54Whereas at the edge, like, Yeah, it's easier to just immediately start going to the customer network. And that's why data centers and points of presence will follow those contours. So like DFW, lots of data centers, lots of interconnectivity. We have a big point of presence there with lots of servers there. One of our biggest IAD, Ashburn in Northern Virginia, that's another huge area where there's just tons of network interconnectivity, which leads to tons of data centers, tons of infrastructure, everyone parked where all the networks are meeting each other to get to the customers quicker. So, I mean, I seem to remember this from a talk you gave a couple of years ago.

22:34This was a bit of an eye-opening moment for me to sort of understand, I think, why we were in Singapore at that point in time. And I still am. And Singapore is a listed region, for example, when you go to AWS or GCP. and i think i was always wondering why all the regions effectively kind of the same across different products and across different providers they can't always offer all the regions if you want to call it that but but a lot of them do still follow like you know southeast one is singapore and southeast one is is the same in gcp aws etc and this is kind of i guess what you're explaining here which is same building pretty much just where all the providers kind of have there same building or if not same building close enough that you can get like a metropolitan network connectivity in the form of dark fiber or like waves connections relatively inexpensively yeah and it does still require agreements between everyone to kind of say like i'll connect to you you connect to me and that kind of all helps yeah it's still based on that basic system and it comes together like where this happens it's most efficient if there are certain points on a map where it all happens.

23:42Yeah, I guess if we then bring back in the edge router aspect to this, which is that's edge routers are just so I'm getting this clear, like not the opposite of a data center, but they are the bits that do sit outside of these sort of mass transit areas. Is that correct? Well, I mean, they're the ones that are actually doing the connectivity. So we try to get them close to the most convenient places to connect them to as many other networks as possible. Okay. And just in terms of redundancy, we did actually have an episode a couple months ago, just talking about subsea cables and just how, you know, when they get cut and like, what can cutter damaged.

24:18And we were focusing a bit more on how they actually get repaired. We had someone on from one of the big news outlets who'd gone and been on one of these boats and just seen what work is needed to actually repair these fiber optic cables. But either those or any other kind of problems, I guess, because we're still talking about a lot of cabling for most to this, how do you factor in redundancy and how to even think about that? Yeah, I mean, you pointed out a tricky question. Subsea cables can be tricky because they carry a ton of capacity. There's only so many of them. And when they get knocked out, it can take a long time sometimes to fix them because they're under the ocean.

24:57You have to go out there with boats and things like that to fix them. So we do run a global backbone network. And the thing about it It does span the globe. It circumscribes the entire globe. Basically, we try to make sure we have a lot of diversity. We have backbone links going through multiple different sub-C cable networks. And then we have lots of transit providers as well, too. Like if we lose some backbone capacity because of a sub-C cable deal problem, we can move to transit. Where the trickiness comes in is sometimes with some of these bigger sub-C cables, not only does it impact us, not only does it take us out, take out some of our capacity.

Read the full transcript

25:35It takes out some of the capacity of our transit providers because they're running over the same sub-sea cable. Other big networks as well, content provider networks and stuff where some of our customers are based, they get hit by the same thing because sub-sea cables have so many different networks running through them. It can be really tricky and it does at times lead to real capacity issues and difficulties that impact the whole internet, impact lots of networks and really are felt until they're fully repaired. Yeah. You're a professional software engineer. Vibes won't cut it. Augment Code is the only AI assistant built for real engineering teams.

26:15It ingests your entire repo, millions of lines, tens of thousands of files. So every suggestion lands in context and keeps you in flow. Where other tools stall, AugmentCode sprints. Unlike Vibe coding tools, AugmentCode is built for shipping to production. And you don't have to switch tooling. Keep using VS Code, JetBrains, Android Studio, or even Vim. Don't hire an AI for vibes. Get the agent that knows you and your code base best. Start your free trial at AugmentCode.com. So let's move on to a sort of, I guess, mini case study just around China specifically. So we touched on this beginning that you had already spent a lot of time there but i don't think you were you ever worked for cloudflare in china but obviously just that knowledge that you could probably bring to the table in that respect but how does the china network part of cloudflare work because it has to be quite different so again like starts with a problem like the way that networking normally works here the way we handle it is it's not something that really knows national boundaries by that i mean We operate a global network with not just our edge colors, but our backbone network.

27:24When I talk about our backbone network, like the big connections we have between our own data centers, our own network, we operate this big global backbone network. And we're not the only ones. All those transit providers, those tier ones I mentioned, they all operate those big global networks. and like other content providers like AWS, Google, et cetera. They also operate like big global, globe-spanning networks. And when we manage these networks and when we move traffic through them, our general approach is, you know, unless there's special exception and those special exceptions are few and far between, we're not thinking about national boundaries.

28:02What we've got is a whole system with lots of different paths we can choose to send our data. Like, okay, we've got data center A and data center D, right? And we have a path via data center B or data center C to go from data center A to D. But say the path via data center B or point of presence B, whatever you want to call it, starts to congest, then we might shed some traffic, move it to the path via data center C. If you notice, we're not really thinking about, oh, what country is it in? like what countries aren't passing through. No, we're just thinking like, yeah, we've got this globe-spanning network.

28:42What's the best path? Like it's all treated basically equally without concern for national boundaries unless there's like some special case about how data has to be treated. China's a different story. Mainland China, I should say. Hong Kong itself still is very much, it's connected to the rest of the world network where we've got data centers there, we've got our backbone running through there and same with other networks. But mainland China is, One, you've got three major networks there. You've got China Telecom, China Unicom, China Mobile. And if you want to get in and out of China, unless it's a special case, you're going through their networks.

29:22Like you're not running your own network in there. You're not running your own backbone network there. You're not transiting your own traffic through there or anything like that. Like you're going through like those big three networks. And that in itself creates a special case because, again, we've moved away from just operating our own globe-spanning network that grows into China. And now we're like stopping and saying, okay, at this point we kind of have to go into like the Chinese provider networks. And that doesn't just apply for us. Of course, that applies generally. And then, of course, you do have the firewall of China, the great firewall of China, I think they call it.

29:58That involves a lot of packet inspection. Now, the thing you have to understand about our edge routers is, at a basic level, they're kind of dumb. They're not very smart. They're not very complicated things. They basically learn each other's prefixes. Then they install it onto a hardware route table, all hardware ASICs. And basically their only job is like they're forwarders. Like they get an IP packet, they see the destination IP address, or in the case of in the backbone network when we've already got it encapsulated in MPLS, they see the MPLS label. And based on that IP address or MPLS label, like they say, okay, I need to send it to this next hop.

30:38I need to send it to this next hop router. And that's all it's doing, right? There's no real packet inspection there. It's just kind of mindlessly forwarding traffic to wherever it's programmed to forward the traffic. But when you've got something like the Great Firewall of China, you're adding a lot of overhead to that. All of a sudden, it's more at the Chinese edge or near the Chinese edge. It's more than just mindlessly forwarding packets to wherever, not caring. No, you're starting to look what's inside the packets. What's inside the packets? What protocols are the packets? Like what's maybe the DNS address?

31:17Like the packet was, you know, originally destined for things like that. And then that in itself adds so much more overhead because, you know, whereas we can just like do more with less. So just because we're not doing the filtering and inspecting. They're doing less with more because they need so much infrastructure just to do that. and the result of that together you know the kind of big three always having to go to through those big three networks plus the filtering and inspection they do on the edge leads to a situation where if you're in China and I've experienced this for myself yes connecting to the outside internet the rest of the world it's not the smoothest experience like when I'm in America and I connect to infrastructure stuff in Europe like I might feel a little bit of latency but it's generally, it's okay.

32:08And when you're in China going through that, even when the great firewall of China is not blocking it or anything like that, even when they're saying, this is fine, we don't want to filter that, even then it can kind of be a lot of loss, a lot of connectivity issues because of overloads and things like that. And it can be generally not the most enjoyable experience. Now that means we've got lots of customers who are global companies. They use Cloudflare to serve their customers all over the world, and Cloudflare works great for them, right? But then the exception is, well, we've got these customers in China.

32:46Our stuff, the Cloudflare edge is outside of China. Our Chinese users are having a bad experience of having to get out of China, having to send their traffic outside of China to connect to us. And the answer to that, we give them, okay, we're going to put Cloudflare infrastructure in China. Now, when you put Cloudflare infrastructure in China, the way we do it, and I think it's the fairly standard ways, like you partner with local providers, local networks. And we have our local partner, and we basically host our infrastructure on their network. And I should add at this point, like, yeah, I'm on the network engineering team now.

33:26I don't really do anything with China Network because we do not manage the network. Like we've got Cloudflare servers and stuff there. And our SRE team, for example, will work with our partner SREs to solve any problems with the Cloudflare stack. But when it comes to the actual networking stuff, yeah, that's not ours. That's like, that is our partner's network and our partner's networking team handling it for us. and they have the specific like China specific experience to know how to handle that well. And just to clarify, I mean, this is anything I think to my understanding sort of that does run, I guess, on this partnership model.

34:02It's really just an enterprise product. This is not something that like your average developer would have any interaction with. Yeah, we do offer like our free tier services. Like, you know, you can use Cloud for it's a free user and we welcome, we really get a lot from our free users. That's like a real big part of our network. but not China Network. China Network is an enterprise product. You have to basically buy it and sign a contract for that. So yeah, we're dealing with like enterprise people who can afford enterprise, you know, services. Yeah, exactly. Where the sort of just the need is absolutely there.

34:35I mean, likewise, I've had a lot of probably almost over 10 years ago at this point, but yeah, a lot of experience with, as you say, it's not even just the great China firewall, but it is just the sort of latency involved with the in and the outs. Yeah. Which was just painful to deal with so yeah so anyway i think that's been a great understanding of what goes on there i think it's really great throughout this whole episode you've you're always framing as well what's the problem before we're even talking about like what do we do i think this is a problem that most developers are at least aware of which is ddos and i'm sure most developers have either experienced it you know i can't access a website or literally had it to happen to their own service or at least at the very least read about it as to why something went quote down it's a big kind of cloudflare quite frankly handles so many of these attacks these days and i think i was almost sort of analogizing it in my head to like cloudflare is a bit of a government service at this point in terms of you know if if cloudflare went away i think we would have a much worse internet at least in the western world if you want to call it that so let's talk about how does cloudflare mitigate ddos and i believe we're going to talk about anycast and i remember you you saying any in the presentation so i'd love to go back there sure so first let's talk about a little more like what a ddos attack looks like right now ddos attacks are normally launched by what are called botnets botnets are basically like malware a lot of the malware we run into is like viruses that, you know, take to a certain or lesser extent, take over your computer, or maybe not even your computer can even be like your mobile phone, or even maybe as something as dumb as like a smart fridge or something like that, whatever they can, if it's, if it's connected to the internet, and it has a CPU on it, it has a computer on it, like, yeah, there's a chance it can be become part of a botnet.

36:27So like, basically, the malware, like, implants itself in your computer or whatever thing it might be. And it will usually try to do it without the user, like if it's on your phone or whatever, without you even being aware of it, because it doesn't want you removing it, of course. And the software, the malicious software, maintains a connection, you know, with like a command and control. And then whoever owns that botnet, so to speak, they can use that command and control to order maybe like, I think up to hundreds of thousands of device, it might be closer to millions. Now, I'm not sure what the exact numbers are anymore, but I think last I heard in the hundreds of thousands, hundreds of thousands of compromised devices spread throughout the whole world.

37:12And each of those devices can just use whatever internet connection has to just send whatever it can, like to target, like target this IP address, just send garbage, some attack traffic to this IP address. And it sends in all these, you know compromised systems over 100 000 maybe just at the same time send a bunch of attack traffic to the same ip address now like in aggregate that can be overwhelming you're talking like terabits per second of multiple i think i've seen over 100 ter of my my i think yeah like maybe 100 terabits per second or more than that of traffic just like going at a certain ip address Now, this is where Anycast comes in.

37:56So the idea of Anycast in our network is Anycast is like traditionally with Unicast, one IP address for one computer, right? There's only one computer in the world that has that IP address. Anycast is different. The idea behind Anycast is we've got thousands, in the case of Cloudflare, our fleet, like well over 10 ,000 servers spread throughout the world, throughout hundreds of data centers that each have that IP address in data centers that are each advertising that same prefix to all of our peers. and which means when you do that, when you have it so like over 10 ,000 computers spread through a server, spread out through the entire world, like behind hundreds of edge routers, each with like dozens, maybe hundreds of peer networks, and we're all advertising that prefix out and that IP address out, means that when this botnet attacks, its strength, its distributed network kind of almost in a way becomes a weakness because the way the internet works, like it's all spread out, it's not aggregated, it's not hierarchical, it's just best path, whatever's the best path.

39:08All of these hundreds of thousands of devices will be taking different paths, ending up at different Cloudflare data centers depending on where they are and ending up on different Cloudflare metals and whereas like, oh, one data center getting 100 terabits per second of traffic or like, you know, not even that because it overloads. No, what you get is hundreds of data centers may be getting under a terabit a second of traffic. Maybe not quite that even, that's ideal. Might be some bigger data centers might be getting a few terabits and some might be getting significantly less and then lots of metals just, you know, getting in the order of gigabits per second of traffic.

39:49So we basically, with Anycast, take an advantage of the architecture of the internet, just the topology of the internet to kind of naturally disaggregate and unfocus that attack. So it just spreads out into smaller bite-sized chunks that we can absorb. And that's key because as an anti-DDOS network, if we want to be able to filter our customers' traffic and make sure they get all the good traffic we can give them and as little of the bad traffic as we can, We ourselves need to be able to absorb that attack. If we can't absorb it, if our network is getting overloaded, then we can't filter it for our customer then because we're already losing it.

40:33But we've gotten to the point where I've done network edge on call. If we get congested, we get a page and we have to fix it. I've been on call before where we've had 100 terabit per second attacks and I never get a page. I didn't even know it happened because we were able to just absorb it without having any congestion events at any data center. There have been other times where maybe it's just like we see one link, like one PNI congest. And we're like, well, what's going on here? And I'll put aside that engine that sometimes you're like, let's back out, look at the forest. When it looks weird, I'm like, okay, let's look at the forest for the trees, look at our global DDoS metrics.

41:15And I'm like, oh, wait, this is a big attack. Okay, we're absorbing it just fine everywhere. except like this one link somewhere. And that's the only reason I knew what happened at all. Yeah, that's fascinating. Just to read some of that back is, I'm almost thinking like water is quite a good analogy here in the sense, like if you were to like pour in water in the top of like a container and this container still has a sort of out at the end of it and out would be where the water is trying to get to. It's trying to get to, you know, what I'm getting at here is like, that's the site, you know, that somebody thinks they're trying to target.

41:45The problem is they've got all these rivers, you know, in the container and these rivers do a lot of them actually end up like they flow through effectively what we're talking about is like cloudflare architecture and so the water is just like dispersed across all these different rivers before it even has a chance of getting to the end point and so i mean let's talk about because that sort of is like ddos filtering pipeline effectively just sort of i guess briefly like what kind of happens then during that process of the data is naturally you It's hitting this one address effectively from the Anycast principle, but it's then filtering through and being filtered.

42:22Are we talking it's the same filtering process that goes on across all the data or is there any kind of differences, I guess? So, I mean, like the other side of the Anycast, in order for Anycast to work, you basically have all of our, say, 10 ,000 plus servers have that IP address assigned to them and are like handling requests destined for that IP address. they basically have to be configured identically. They have to be running the same services like www.acme.com is our customer and it has to be served from all of those servers. It has to be the same. You don't want an experience where like, oh, but depending on what server, you get a different website.

43:02Definitely don't want that. Unless the customer themselves does something special to configure that. And some customers will create like regional specific things like that. But basically the idea is like, yeah we need a system that can propagate all of this out globally and keep all of those servers in sync and make sure they're serving the same thing yeah looking ahead like ipv6 is obviously a sort of big transition that's going to be that's sort of in the works and will be i guess propagated over the next few months etc how is that affecting how any of this works or like how is just maybe at a general level like your day-to-day how are you having to sort of think about that transition?

43:43So, I mean, we're well into the transition. I mean, I wouldn't, from our perspective, I wouldn't even consider us like still in the process of transitioning. I mean, we run a dual stack network, IPv4, IPv6, and they're aligned. Like, you know, our IPv6 network follows the same topology as our IPv4. And in many ways, like for a lot of our internal services, we're already IPv6 first. IPv4, like we support like a lot of our customers, a lot of eyeballs are still on IPv4 networks. So we serve them with IPv4. We sell plenty of customers who like their infrastructures, IPv4. So we connect to them with IPv4.

44:21I generally find from my experience, like a lot of the DDoS attacks still seem to be like, at least last I checked, last I handled a major DDoS attack was I guess like six, seven months ago, but they do seem to be more IPv4 heavy than IPv6. But internally, like we're fully dual stack. were fully go on IPv6. Got it. And going back to DDoS just for a second, just because you sort of mentioned like the latest you at least had to handle, but I did see like Cloudflare puts out a very good sort of, I believe it's quarterly. No, I think it's like yearly maybe, but they obviously talk about it in quarters in terms of the DDoS attacks that have been witnessed by Cloudflare.

45:01And basically Q2 this year was quite a way up on last year. And Q1 this year had an exceptional number. Or do you have any sort of, I guess, I mean, there's some insights in that article, but like, I don't know, just as someone who then actually is dealing with it, like, do you have any insights as to why this is just only increasing, I guess? I mean, I don't have any particular insights. I guess it just seems to be following. There's the same general pattern that, yeah, they've been getting bigger and bigger as time goes by. As more devices are connected to the internet, there's just more devices that can be compromised.

45:37Yeah. And interestingly, I believe in that blog post, one of the people that had experienced this, it was something like 63 % of the respondents believed it was actually a competitor that was initiating. And I mean, they talked about specific industries like gaming, gambling. That's the thing. Yeah, gaming is the thing. And that's not a new thing, by the way. Back when I was at customer support, there were cases where DDoS attacks and the suspicion was, I mean, I'm not in a position to confirm or deny, but the suspicion was that some competitor hired a botnet herder. I think bot herder is one slang for them, but hired out a botnet to launch an attack on them.

46:18And that's one reason we provide one product called Spectrum, which is it's a CDN-like product. It's an edge network product. It's a proxy, but it's not an HTTP, HTTPS proxy. It's a generic proxy for any arbitrary layer 4 protocol on TCP or UDP. And one use case for that, one problem that is fixing is customers who are like gaming networks, and they want to put their game servers behind Cloudflare and oh, well, these game server protocols are not HTTP. Well, that's where like Spectrum comes in and they're like, whatever their gaming protocol is, they can use Spectrum to proxy and that kind of help protect that from that kind of like, yeah, attacking game networks phenomenon.

47:04So yeah, I mean, for anyone interested, that is just double checked. It is, yeah, it's a quarterly report. So it's just Cloudflare's 2025 Q2 DDoS threat report. So that's on the Cloudflare blog. as well, which is quite a great read as well. Eric, great to have you on. I often ask this question to guests just before we head out, which is a pretty simple question, but always get a range of answers, which is just, you know, what do you know now that you might have, if you could tell Eric of, you know, I don't know, coming out of college and going off to China, for example, like what do you know now that you might tell that person?

47:39I think it's interesting here, especially because as you say you kind of left tech for a while but you know you obviously got kept quite interested in it in in the network side and then you sort of have come back to tech in a big way but yeah what would you tell yourself so one thing i've learned when i was you know that i wish i knew i was younger is like when you're in an engineering role regardless of you know what company you work for it's not like a good employer bad employer thing or like that regardless of what industry you're in. Burnout is a real thing. That's something when I was young, I kind of took a sort of a blasé attitude to burn.

48:19I didn't really take it seriously. I'm young. I'm strong. I can do this. I can do lots of all-nighters. And well, yeah, by the end of, before I even was able to enter the industry, right out of university, I already kind of burnt myself out. I spent some time doing like, you know, studying classics and doing the Latin Greek thing. And then time in China doing the China, you know, learning Chinese thing is only much later that I came back to tech. And by the time I came back to tech, like I learned like, yeah, you need work life balance. You know, the thing I've learned now is to have a like much better work life balance.

48:57I'm much hard. You know, I'm still very hard worker, still push really hard. But the old days where it was like so much unbalanced towards like 100 % tech, 100 % of the time. Yeah. Like looking back, I think I'm glad I've lived the life the way I have. I really enjoyed all my time, not in tech and like learning all those other things. But had I done it again, I probably would have like taken a more work-life balanced approach just from the get-go and not have gone through that odyssey of burnout and then kind of recovery and back and, you know, working my way back to tech from, you know, my excursion, my travels outside of tech.

49:37I think that's a great call out. And the burnout thing is, as you say, it is real. And I would also agree just as you get older, you, one, at least I think starts to understand it more for you because burnout can mean slightly different things to different people in terms of, it's not just, oh, are you working 12 hour days, 12 to 18 hour days or whatever, you know, it is actually often about sort of so many other factors that play into it as well. So yeah, I love that answer as well as just, I think it's great advice for many people. And yeah, I mean, fun fact, my grandfather was a Latin teacher, actually.

50:11So I'm also quite into languages. I'm terrible at most of them, but I love just trying to learn them, try to learn a bit of Cantonese, which is a very tonal language, which is very difficult. That's on the hard end of the Chinese language. That is on the hard end, yeah. Yeah, no shock that I didn't exactly become fluent, but I was able to have myself understood. So that's always a fun one. Well, thank you, Eric, so much. We've learned a ton today. And anywhere people can find you, whether it's like LinkedIn or anything like that, you want to talk about? Sure, I mean, I just got a LinkedIn at just Eric J Seidel.

50:46I think it's just LinkedIn dash slash Eric J Seidel, E-R-I-K-J-S-E-I-D-E-L. Okay, awesome. Well, again, thanks so much for coming on. And if I'm in Austin, I'll come say hi as well. I'd be glad to have you here. Show you around. Thanks so much.

From the publisher

The modern internet is a vast web of independent networks bound together by billions of routing decisions made every second. It’s an architecture so reliable we mostly take it for granted, but behind the scenes it represents one of humanity’s greatest engineering achievements. Today’s internet is also dramatically more complex and capable than in its

The post The Architecture of the Internet with Erik Seidel appeared first on Software Engineering Daily.

More from Software Engineering Daily

All 195 episodes
The Architecture of the Internet with Erik SeidelSoftware Engineering Daily · 51 min
Listen in VO