CDN Network Topology: Flat, Hierarchical, and Hybrid Models
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.
The topology you choose (or that your CDN provider has chosen) affects three critical metrics:
- Cache hit ratio — Hierarchical topologies consolidate requests, improving hit ratios by 15-25% compared to flat models for long-tail content
- Origin bandwidth — A well-designed cache hierarchy reduces origin egress by 60-90%
- Edge latency — Flat topologies serve cache hits with 5-15ms less latency because there are no intermediate hops
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.
| Metric | Edge Processing | Origin Processing | Improvement |
|---|---|---|---|
| Latency (p50) | 8–15 ms | 120–300 ms | 15–20x faster |
| Cache Hit Ratio | 85–95% | N/A | Reduces origin load |
| TLS Handshake | 1–5 ms (nearby PoP) | 50–150 ms | 10–30x faster |
| Bandwidth Cost | $0.01–0.04/GB | $0.05–0.12/GB | 3–5x cheaper |
| Availability | 99.99% (multi-PoP) | 99.9% (single DC) | 10x fewer outages |
Characteristics of Flat Topology
- Independent PoPs — Each edge server maintains its own cache without coordination with other PoPs
- Direct origin fetch — Cache misses go straight to the origin, with no intermediate layers
- Anycast routing — Anycast BGP directs users to the closest PoP by network distance
- Simple operations — Fewer moving parts mean easier debugging and faster cache invalidation propagation
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:
- Edge tier — User-facing PoPs that handle TLS termination, compression, and local caching
- Mid-tier (parent) caches — Regional cache nodes that aggregate requests from multiple edge PoPs
- 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.
| Metric | Flat (200 PoPs) | Hierarchical (200/20/1) | Improvement |
|---|---|---|---|
| Origin requests per new asset | 200 | 1 | 99.5% |
| Origin bandwidth (10 TB/day total) | 1.2 TB/day | 180 GB/day | 85% |
| Cache fill latency (edge miss) | 80-250ms | 120-350ms | -40ms avg |
| Overall cache hit ratio | 82-88% | 94-98% | +10-12% |
| Invalidation propagation time | 2-5 seconds | 5-15 seconds | Slower |
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.
Regional Flat, Global Hierarchical
The most common hybrid pattern works as follows:
- Within a region (e.g., US-East) — PoPs operate as flat peers, sharing cache state or using consistent hashing to distribute content across nodes
- Across regions (e.g., US-East to EU-West) — A regional hub acts as the parent cache, consolidating cross-region fetches through mid-tier nodes
- Global origin shield — A single shield node (or shield cluster) sits in front of the origin, regardless of which region originated the request
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
| Feature | Cloudflare | Akamai | CloudFront |
|---|---|---|---|
| Primary model | Flat anycast | Deep hierarchical | Two-tier hierarchical |
| PoP count | 310+ | 4,200+ | 600+ |
| Cache tiers | 1-2 (Tiered Cache optional) | 3-4 | 2 (edge + REC) |
| ISP embedding | No | Yes (1,400+ networks) | No |
| Private backbone | Yes (Argo) | Yes (SureRoute) | Yes (AWS backbone) |
| Best for | Web apps, APIs | Media, enterprise | AWS-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:
- Edge to mid-tier — Short-distance, high-bandwidth links within the same region (low cost)
- Mid-tier to shield — Cross-region backbone links (moderate cost)
- Shield to origin — Single connection, often via private peering (minimal cost)
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
- Small, popular content library (under 100 GB total) — Flat topology. Every PoP can cache your entire library, making hierarchy unnecessary overhead.
- Large content library with long tail (10 TB+, media, UGC) — Hierarchical topology. Mid-tier and shield caches keep long-tail content warm without requiring origin fetches.
- Mixed workload (static site + API + media) — Hybrid topology. Static assets benefit from flat caching, while media benefits from hierarchical consolidation.
Audience Geography
- Single-region audience (e.g., US only) — Flat topology within that region provides lowest latency
- Global audience — Hierarchical or hybrid topology prevents redundant cross-ocean origin fetches
- Concentrated + scattered (80% one region, 20% global) — Hybrid topology with flat in the primary region and hierarchical for secondary regions
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.
- Mesh topologies — PoPs share content directly with nearby peers rather than fetching from parent tiers, reducing fill latency for regionally popular content
- Adaptive tiering — Machine learning models dynamically adjust which PoPs serve as parents based on real-time traffic patterns and cache utilization
- Edge compute integration — Edge servers run application logic alongside cache serving, creating a topology where compute and cache tiers are combined
- Customer-controlled topology — Providers like Fastly and Cloudflare allow customers to configure tiered caching behavior rather than accepting a single global topology
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.