Sub topic 1
What a WAN is and what it must deliver
Prerequisites
This chapter assumes you know the OSI and TCP/IP models, IPv4 addressing and subnetting, and the basics of static and dynamic routing. You should be able to read a simple router configuration. Later chapters use BGP at a conceptual level.
What a WAN is
A wide area network (WAN) connects networks that are far apart, such as a head office, branch offices, data centers, and cloud regions. A local area network (LAN) is usually owned and cabled by one organization inside a building or campus. A WAN usually crosses land the organization does not own, so it relies on circuits and services from a carrier or service provider.
Two things follow from this:
- You rent capacity instead of owning cable. You pay recurring fees, and you depend on the provider's lead times and repair times.
- Distance adds delay. Light in fiber travels at roughly 200,000 km per second, so a 4,000 km path costs about 20 ms one way before any equipment adds delay.
The requirements that drive WAN design
Every WAN design balances the same five requirements.
| Requirement | Question it answers | Typical measure |
|---|---|---|
| Bandwidth | How much data can each site send and receive? | Mbps or Gbps per site |
| Latency | How long does a packet take to arrive? | One-way or round-trip time in ms |
| Availability | How often is the service usable? | Percent uptime, for example 99.9% |
| Security | Is traffic kept private and intact? | Isolation, encryption, authentication |
| Cost | What does it cost to buy and run? | Monthly fee per site and per Mbps |
Loss and jitter (the variation in delay) also matter. Voice and video degrade quickly when either one rises, while file transfers tolerate both.
Availability in numbers
Availability figures sound close together but differ a lot in practice.
| Availability | Downtime per year |
|---|---|
| 99% | about 3.65 days |
| 99.9% | about 8.8 hours |
| 99.99% | about 53 minutes |
A single circuit rarely reaches the higher rows. Designs get there by adding a second circuit, a second provider, or a second router.
How the requirements trade off
You cannot maximize all five at once. A dedicated circuit gives predictable latency and privacy, but it costs more per Mbps. Ordinary internet access is cheap and fast to order, but it gives no delay guarantee. Later chapters show that leased lines, MPLS, and SD-WAN each sit at a different point in this trade-off.
A worked example
A company has 20 branches. Each branch runs voice, point-of-sale traffic, and file backups to a data center 1,500 km away.
- Voice needs low delay, low jitter, and loss under about 1%. A one-way delay target of 150 ms is common.
- Point-of-sale traffic is small but business-critical, so it needs high availability.
- Backups need bandwidth but tolerate delay, so they can use cheaper capacity.
The distance alone adds about 7.5 ms one way, so propagation delay is not the problem. The risks are congestion and outages. The design must therefore prioritize voice, give point-of-sale traffic a backup path, and keep backups from crowding out the other two.
# Estimate one-way propagation delay and yearly downtime.
SPEED_IN_FIBER_KM_PER_S = 200_000
def one_way_delay_ms(distance_km):
return distance_km / SPEED_IN_FIBER_KM_PER_S * 1000
def downtime_hours_per_year(availability_pct):
return (1 - availability_pct / 100) * 365 * 24
print(round(one_way_delay_ms(1500), 1)) # 7.5
print(round(downtime_hours_per_year(99.9), 1)) # 8.8Common mistakes
- Sizing only for bandwidth. A fast link with high jitter still produces poor voice quality.
- Trusting a provider's availability figure without reading what it covers. Many service level agreements (SLAs) exclude planned maintenance or measure only the provider's core network.
- Assuming one circuit is enough for critical sites.
Exercise
A branch needs 99.99% availability. One circuit offers 99.9%. Roughly how much downtime per year does the single circuit allow, and what design change would you consider first?
Show answer
A 99.9% circuit allows about 8.8 hours of downtime per year, while 99.99% allows about 53 minutes. The first change to consider is a second circuit, ideally from a different provider and on a different physical path, so one failure does not take both down.
Exercise
Why is propagation delay rarely the main problem on a 1,500 km WAN path, and what usually causes delay-related problems instead?
Show answer
Propagation delay over 1,500 km is only about 7.5 ms one way, which is small compared with typical targets such as 150 ms for voice. Queuing delay from congestion, and jitter caused by variable queues, are the usual causes of problems.