Sub topic 1
What a WAN is and what it must deliver
Prerequisites
This chapter assumes you already know the following:
- The OSI and TCP/IP models, enough to tell Layer 2 from Layer 3.
- IPv4 addressing and subnetting, including /30 and /24 prefixes.
- Static routes, default routes, and the idea of a dynamic routing protocol.
- BGP at a conceptual level (autonomous systems, neighbors, route exchange).
- How to read a basic router CLI configuration.
You do not need to have configured a WAN before. This chapter sets the vocabulary and the design requirements that the later chapters on leased lines, MPLS, and SD-WAN build on.
What a WAN is
A wide area network (WAN) is a network that connects sites across distances or administrative boundaries that a single organization cannot cover with its own cabling. A LAN usually lives inside one building or campus, and the organization owns every cable and switch. A WAN crosses public property, city streets, and borders, so the organization almost always rents the connection from a service provider (SP).
That difference in ownership shapes everything else. On a LAN you choose the speed, install the cable, and fix faults yourself. On a WAN you buy a service, accept the provider's terms, and depend on the provider's network for capacity, repair times, and security.
| Property | LAN | WAN |
|---|---|---|
| Distance | Meters to a campus | Kilometers to continents |
| Ownership | The organization | Usually a service provider |
| Typical speed | 1 to 100 Gbps | 1 Mbps to 10 Gbps, limited by cost |
| Cost model | Mostly one-time hardware | Recurring monthly fee |
| Latency | Under a millisecond | Milliseconds to hundreds of milliseconds |
| Failure handling | You repair it | You open a ticket and wait |
Common WAN topologies
Before choosing a technology, decide how sites connect to each other. Three layouts cover most designs.
- Point-to-point: two sites joined by one dedicated link. It is simple but does not scale, because connecting many sites this way needs many links.
- Hub-and-spoke: branch sites connect to one central site (the hub). Branch-to-branch traffic passes through the hub. This keeps the link count low and puts security and shared services in one place, but the hub adds latency and becomes a single point of failure.
- Full mesh: every site connects directly to every other site. It gives the shortest paths and the best resilience, but the number of links grows as n(n-1)/2, so 20 sites need 190 links.
A partial mesh sits between hub-and-spoke and full mesh. It adds direct links only where traffic volume or latency justifies the cost.
The requirements a WAN must meet
A WAN design starts from requirements, not from a product. Five of them appear in nearly every project.
Bandwidth
Bandwidth is the maximum amount of data a link can carry per second. WAN bandwidth is expensive and often asymmetric in price, so you size it to measured demand rather than to what is available. Plan for the busiest period and for growth, such as moving a branch to cloud applications or video calls.
Latency and jitter
Latency is the time a packet takes to travel from source to destination. Part of it is fixed by physics: light in fiber travels roughly 200 km per millisecond, so a 4,000 km path costs about 20 ms one way before any equipment adds delay. Jitter is the variation in latency from packet to packet. Voice and video tolerate some delay but handle jitter badly, because the receiver must buffer packets to play them smoothly.
Loss
Packet loss is the share of packets that never arrive. TCP recovers by retransmitting and slowing down, so even 1% loss can sharply reduce throughput on a long path. Real-time voice cannot wait for retransmission and simply drops the audio.
Availability
Availability is the fraction of time the service works. It is usually quoted as a percentage in a service level agreement (SLA).
| Availability | Downtime per year (approx.) |
|---|---|
| 99% | 3.65 days |
| 99.9% | 8.8 hours |
| 99.99% | 53 minutes |
Each extra nine costs more, because it needs redundant links, redundant routers, or diverse paths. A single provider SLA also covers only that provider's network, not your own router or the cable inside your building.
Cost
Cost has several parts: the monthly circuit fee, installation, equipment, and the staff time to run the network. A cheaper link with a worse SLA may cost more overall if an outage stops a revenue-generating site.
Security
Traffic that crosses someone else's network can be observed or altered. A WAN must decide what to trust. A private provider service gives separation, which means customers cannot reach each other's traffic, but it normally does not encrypt. An internet-based link needs encryption such as IPsec, covered in a later chapter.
How the requirements trade off
These requirements pull against each other, and the design work is choosing which to favor.
- Higher availability usually means more links and more cost.
- Strict latency and jitter targets favor private, managed services over the public internet.
- Cheap bandwidth is easier to find on the internet, but with fewer guarantees.
- More control over routing and security often means more operational work for your team.
Different traffic also needs different treatment. A voice call needs low jitter and low loss. A nightly backup needs bandwidth but not low latency. A WAN that treats both the same wastes money on one or fails the other. This is why later chapters return repeatedly to quality of service (QoS) and application-aware path selection.
A worked example
A company has a head office and 12 branches. Each branch needs reliable access to a data center application and supports 10 simultaneous voice calls. Each G.711 voice call uses about 87 kbps on a link once packet headers are included, which is the figure used here.
Voice bandwidth per branch:
calls = 10
kbps_per_call = 87
voice_kbps = calls * kbps_per_call
print(f"Voice needs {voice_kbps} kbps ({voice_kbps / 1000:.2f} Mbps)")
# Link count comparison for 13 sites (head office + 12 branches)
sites = 13
hub_and_spoke_links = sites - 1
full_mesh_links = sites * (sites - 1) // 2
print(f"Hub-and-spoke links: {hub_and_spoke_links}")
print(f"Full mesh links: {full_mesh_links}")Running it prints:
Voice needs 870 kbps (0.87 Mbps)
Hub-and-spoke links: 12
Full mesh links: 78Voice alone is under 1 Mbps, so bandwidth is not the hard part. The hard parts are keeping jitter low and surviving a link failure. Twelve links in a hub-and-spoke layout is affordable, and 78 is not. Because voice and the data center application both pass through the hub, the hub needs enough capacity for all 12 branches and ideally a second connection. The requirements point toward hub-and-spoke with a redundant link at each site, plus QoS to protect voice.
Common mistakes
- Sizing from the advertised link speed alone. A 100 Mbps circuit with 2% loss and high jitter may serve voice worse than a clean 20 Mbps circuit.
- Counting one provider's SLA as end-to-end availability. The SLA covers the provider's core, not your router, power, or last-mile cable.
- Assuming a private service is encrypted. Separation from other customers is not the same as confidentiality.
- Ignoring the hub. In hub-and-spoke, one hub failure affects every branch, so the hub needs the strongest redundancy.
- Designing for today's traffic only. Cloud applications and video change branch demand quickly.
Review
The exercises below check the main ideas of this chapter.
Exercise
A company plans a full mesh of 15 sites. How many links does it need, and why might hub-and-spoke be chosen instead?
Show answer
A full mesh needs n(n-1)/2 = 15 x 14 / 2 = 105 links. Hub-and-spoke needs only 14 links, which lowers cost and simplifies management. The trade-off is added latency for branch-to-branch traffic and a single point of failure at the hub, which can be reduced with a redundant hub connection.
Exercise
Why does a service level agreement of 99.9% availability not guarantee that a branch is reachable 99.9% of the time?
Show answer
The SLA usually covers only the provider's network. The branch's own router, power, inside cabling, and the last-mile access may sit outside it. Overall availability is also lower than any single component's availability, because failures in each part combine.
Exercise
Which requirement matters most for a voice call, and which for a nightly file backup?
Show answer
Voice depends most on low jitter, low latency, and low loss, because it is real-time and cannot wait for retransmission. A nightly backup depends mostly on bandwidth and total transfer time, and it tolerates higher latency and jitter.