##
WAN & SD-WAN
Connecting sites across distance — from dedicated circuits and MPLS to transport-agnostic SD-WAN overlays.
// MPLS label-switched path
CE
→ PE
push
17 → push
P
swap
22 → swap
PE
pop (PHP)
→ pop (PHP)
CE
The ingress PE pushes a label; P routers swap labels (fast switching, no IP lookup); the penultimate hop pops it.
// MPLS shim header (32 bits)
Label
20 bit
EXP / TC
3 bit
S
1 bit
TTL
8 bit
Sits between the L2 and L3 headers ("frame mode"). Label distributed by LDP (TCP/UDP 646).
// SD-WAN
- Overlay across any transport (MPLS, broadband, LTE)
- Centralized controller & policy
- Application-aware path selection
- Cheaper and more resilient than pure MPLS
username R2 password S3cret
!
interface Serial0/0
encapsulation ppp
ppp authentication chap
ip address negotiated
compress stac
ppp multilink group 1 ip cef
mpls label protocol ldp
!
interface Gi0/0
ip address 10.0.0.1 255.255.255.252
mpls ip
mpls mtu 1512 show ppp multilink
show mpls interfaces
show mpls ldp neighbors
show mpls forwarding-table