Sub topic 13
Overlay Tunnels Across Multiple Transports
This chapter assumes you know IPv4 addressing, basic routing, and how an IPsec VPN protects traffic over the internet. It covers how an SD-WAN builds an overlay on top of several transports, and the errors that come up most often.
Underlay and overlay
The underlay is the set of physical or provider-supplied connections that carry packets between sites. In a WAN these are transports such as MPLS, broadband, and LTE. The overlay is a set of logical tunnels built on top of the underlay. Customer traffic travels inside the tunnels, so the underlay only needs to deliver IP packets between the tunnel endpoints.
Each SD-WAN edge router has one address per transport. This address is often called the transport locator. The edge builds a tunnel from each of its locators to the matching locators on remote edges. Two sites with two transports each can therefore have up to four tunnels between them, or two if the design only pairs transports of the same type.
What the tunnel carries
An overlay tunnel wraps the original packet in a new outer header. The outer addresses are the transport locators, which the underlay can route. The inner packet keeps its private addresses. Most SD-WAN products encrypt the inner packet with IPsec, or with a similar scheme, so the tunnel is safe on the public internet.
The encapsulation adds bytes. IPsec with a new outer header commonly adds 50 to 70 bytes per packet. A 1500-byte packet then no longer fits in a 1500-byte link MTU (maximum transmission unit, the largest packet a link carries without fragmenting).
Why multiple transports help
Because every tunnel is just IP between locators, the edge can treat different transports the same way. This gives three benefits:
- Resilience. If broadband fails, the tunnel over LTE stays up and the site keeps its connectivity.
- Cost. Cheap internet links can carry bulk traffic, and MPLS is kept for traffic that needs it.
- Independence. The overlay does not depend on one provider's routing, so you can add or drop a transport without redesigning the sites.
The overlay tunnels are also the measurement points. The edge sends probes through each tunnel to record latency, loss, and jitter. The next chapter uses those measurements to choose paths.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Small pings work, large transfers stall | Tunnel overhead pushes packets over the path MTU, and fragments or ICMP messages are dropped | Lower the tunnel MTU and clamp TCP MSS (maximum segment size) |
| Tunnel never comes up on one transport | NAT or a firewall blocks the tunnel ports, or the locator is not reachable | Check the underlay path and allow the tunnel ports |
| Tunnel flaps | Underlay loss or a keepalive timer that is too aggressive | Check the underlay quality before tuning timers |
| Traffic uses only one tunnel | Equal-cost paths are not enabled, or policy prefers one path | Review the routing and path policy |
Exercise
A branch has broadband and LTE, and the hub has broadband and MPLS. Users report that web pages load but file uploads hang. Ping works. Name the most likely cause and one fix.
Show answer
The most likely cause is an MTU problem. The tunnel adds IPsec and outer-header overhead, so full-size packets exceed the path MTU and are dropped, while small packets such as pings pass. Lower the tunnel interface MTU (for example to about 1400 bytes) and clamp the TCP MSS so hosts send smaller segments.
Exercise
Why can an overlay run over a transport that has no knowledge of the customer's private addresses?
Show answer
The underlay only routes the outer header, which uses the transport locators. The private inner packet is carried as payload, so the underlay never needs to see or route the customer's addresses.