CDN Network Topology: Flat, Hierarchical, and Hybrid Models

· James Thornton · 9 min read

CDN network topology defines how Points of Presence are organized, interconnected, and layered between end users and origin servers. The three dominant models—flat, hierarchical, and hybrid—each represent fundamentally different tradeoffs between latency, cache efficiency, origin load, and operational complexity. Understanding these architectural patterns is essential for evaluating CDN providers and designing content delivery strategies that match your traffic profile.

What Is CDN Network Topology and Why Does It Matter?

Network topology in the context of a CDN describes the logical arrangement of cache nodes, the relationships between them, and the rules governing how content flows from origin to edge. Unlike traditional network topology, which focuses on physical connectivity, CDN topology is primarily about cache hierarchy—which nodes fetch from which, and how cache misses propagate back toward the origin.

CDN Network Architecture — Multi-tier content deliveryCDN Network Architecture — Multi-tier content delivery CDN Network Topology — Content Delivery Flow U User A Tokyo U User B London U User C New York Edge Server Tokyo PoP Edge Server London PoP Edge Server New York PoP Mid-Tier Cache Origin Shield Origin Server Your Server Request Cache Miss Fetch Cache Hit → Instant Response
Figure 1: CDN Network Architecture — Multi-tier content delivery

The topology you choose (or that your CDN provider has chosen) affects three critical metrics:

How Does a Flat CDN Topology Work?

In a flat (or single-tier) topology, every PoP operates independently and has equal status within the network. When a user requests content, the nearest PoP checks its local cache. On a cache hit, the response is served immediately. On a cache miss, the PoP fetches directly from the origin server, caches the response, and delivers it to the user.

Performance Comparison: Edge vs Origin Processing
Metric Edge Processing Origin Processing Improvement
Latency (p50)8–15 ms120–300 ms15–20x faster
Cache Hit Ratio85–95%N/AReduces origin load
TLS Handshake1–5 ms (nearby PoP)50–150 ms10–30x faster
Bandwidth Cost$0.01–0.04/GB$0.05–0.12/GB3–5x cheaper
Availability99.99% (multi-PoP)99.9% (single DC)10x fewer outages

Characteristics of Flat Topology

When Flat Topology Excels

Flat topologies work best when content is highly popular and accessed frequently across all PoPs. With a small content library that fits entirely in each PoP cache, every edge node maintains a warm cache and serves nearly all requests locally. Cloudflare built its early infrastructure on this model, leveraging anycast routing across 310+ PoPs to minimize the distance between users and cached content.

The primary weakness is the thundering herd problem: when a popular piece of content expires simultaneously across all PoPs, every edge node sends a revalidation request to the origin at the same time. With 300+ PoPs, this can create brief but intense origin load spikes.

How Does a Hierarchical CDN Topology Work?

Hierarchical (or multi-tier) topology introduces intermediate cache layers between edge PoPs and the origin. The most common configuration uses three tiers:

  1. Edge tier — User-facing PoPs that handle TLS termination, compression, and local caching
  2. Mid-tier (parent) caches — Regional cache nodes that aggregate requests from multiple edge PoPs
  3. Origin shield — A single cache node positioned directly in front of the origin server

When an edge PoP misses, it requests content from its assigned mid-tier parent. If the parent also misses, the request goes to the origin shield. Only the origin shield contacts the actual origin server. This funneling effect dramatically reduces origin load.

Origin Load Reduction in Practice

Consider a CDN with 200 edge PoPs, 20 mid-tier nodes, and 1 origin shield. Without hierarchy, a cache miss for a new piece of content generates 200 origin requests (one per PoP). With hierarchy, it generates at most 1 origin request (the origin shield fetch), plus 20 mid-tier requests to the shield, plus 200 edge requests to mid-tier nodes—but only the single shield request reaches the origin.

MetricFlat (200 PoPs)Hierarchical (200/20/1)Improvement
Origin requests per new asset200199.5%
Origin bandwidth (10 TB/day total)1.2 TB/day180 GB/day85%
Cache fill latency (edge miss)80-250ms120-350ms-40ms avg
Overall cache hit ratio82-88%94-98%+10-12%
Invalidation propagation time2-5 seconds5-15 secondsSlower

Akamai pioneered this approach and operates the deepest hierarchy in the industry, with over 4,200 PoPs organized into multiple tiers. Their architecture embeds cache servers directly inside ISP networks, creating an additional tier below the standard edge layer. Learn more about this approach in our CDN peering and interconnection guide.

What Is a Hybrid CDN Topology?

Hybrid topology combines elements of both flat and hierarchical models, typically using flat routing within geographic regions and hierarchical tiering across regions. This approach recognizes that latency sensitivity and cache efficiency have different priorities at different scales.

Edge Server Components — Internal architecture of a CDN nodeEdge Server Components — Internal architecture of a CDN node CDN Edge Server Architecture Load Balancer L4/L7 + Health Checks TLS Termination Certificate Management OCSP Stapling Cache Engine SSD + RAM Cache Cache-Control Parser WAF Engine Rule Processing Bot Detection Request Router URL Rewriting + Edge Logic Logging & Metrics Real-time Analytics Origin Fetch Module Connection Pooling · Retry Logic · Timeout Management
Figure 2: Edge Server Components — Internal architecture of a CDN node

Regional Flat, Global Hierarchical

The most common hybrid pattern works as follows:

This hybrid approach captures the low-latency benefit of flat routing for same-region requests (which represent 70-85% of all traffic) while still reducing origin load through hierarchical consolidation for cross-region cache fills.

How Do Major CDN Providers Differ in Topology?

Each major CDN provider has evolved a distinct topology shaped by their history, scale, and target market. Understanding these differences helps explain performance characteristics across different use cases.

Cloudflare: Flat Anycast with Smart Routing

Cloudflare operates 310+ PoPs using a predominantly flat anycast topology. Every PoP announces the same IP addresses via BGP, and the internet routing system directs users to the nearest PoP. Cache misses go to the origin, but Cloudflare Argo Smart Routing optimizes the path using their private backbone, reducing latency by 30% on average. Their Tiered Cache feature adds optional hierarchical behavior by designating certain PoPs as upper-tier caches. Read the full analysis in our Cloudflare architecture deep dive.

Akamai: Deep Hierarchical with ISP Embedding

Akamai uses the most deeply hierarchical topology with 4,200+ PoPs across 1,400+ networks in 136 countries. Their architecture includes edge clusters embedded inside ISP last-mile networks, parent clusters at metropolitan interconnection points, and regional hubs that aggregate traffic before it reaches origin shields. This deep embedding reduces cross-network hops and keeps traffic on private peering paths.

AWS CloudFront: Hierarchical with Regional Edge Caches

CloudFront operates 600+ PoPs organized into edge locations and 13 Regional Edge Caches (RECs). Edge locations handle user-facing requests, while RECs serve as mid-tier caches with larger storage capacity and longer TTLs. Cache misses from edges go to the nearest REC before reaching the origin. The REC layer is transparent to users but significantly improves hit ratios for long-tail content.

Provider Topology Comparison

FeatureCloudflareAkamaiCloudFront
Primary modelFlat anycastDeep hierarchicalTwo-tier hierarchical
PoP count310+4,200+600+
Cache tiers1-2 (Tiered Cache optional)3-42 (edge + REC)
ISP embeddingNoYes (1,400+ networks)No
Private backboneYes (Argo)Yes (SureRoute)Yes (AWS backbone)
Best forWeb apps, APIsMedia, enterpriseAWS-native workloads

How Does Topology Affect Bandwidth Optimization?

Bandwidth costs represent the largest operating expense for CDN providers, and topology directly determines how efficiently bandwidth is used. Each cache tier reduces the volume of data that must traverse expensive long-haul network links.

Inter-PoP Traffic Patterns

In a flat topology, all cache-miss traffic flows directly between edge PoPs and the origin, typically crossing multiple autonomous systems and incurring transit fees at each hop. In a hierarchical topology, most cache-fill traffic stays within the CDN provider network:

Akamai reports that their hierarchical topology reduces cross-network transit by 70% compared to what a flat model would require at the same scale. This efficiency is one reason they can profitably operate servers in 1,400+ networks—the per-server cost is low because most traffic stays local.

How Should You Choose a CDN Topology for Your Use Case?

The right topology depends on your content profile, audience distribution, and performance requirements. Consider these factors when evaluating CDN providers or designing a multi-CDN strategy:

Content Profile Match

Audience Geography

Understanding topology is a key component of CDN architecture. It informs decisions about cache configuration, TTL strategies, and invalidation approaches. A topology mismatch—using a flat CDN for a 50 TB media library, or a deeply hierarchical CDN for a 5-page marketing site—wastes money and degrades performance.

What Are the Emerging Trends in CDN Topology?

CDN topology continues to evolve as edge computing blurs the line between content delivery and application execution.

The general trend favors hybrid approaches where the topology adapts based on content type, traffic pattern, and geographic demand. Rigid flat or hierarchical models are giving way to software-defined topologies that optimize dynamically.

External References

References & Standards: Cloudflare documentation · HTTP/2 specification