Sub topic 16
Hybrid WANs and Migrating from MPLS to SD-WAN
This chapter assumes you already know how MPLS L3VPN works (VRFs, route targets, MP-BGP), what an IPsec tunnel does, and how an SD-WAN overlay and application-aware policy choose a path. Here we put those pieces together. You will see what a hybrid WAN looks like, how to plan a phased migration, and which mistakes cause outages.
What "hybrid" means
A hybrid WAN uses more than one transport type at the same time. Most commonly it combines a private service (MPLS or a leased line) with one or more internet circuits (broadband, dedicated internet access, LTE or 5G).
Hybrid is the normal state during migration, and many organizations stay there on purpose. Three common end states exist:
- MPLS-only. The starting point for many enterprises. Predictable, but expensive per megabit.
- Hybrid. MPLS stays at sites that need it, such as data centers and sites running latency-sensitive applications. Internet circuits carry bulk and cloud traffic.
- Internet-only SD-WAN. MPLS is retired. Resilience comes from two diverse internet circuits per site, often with LTE or 5G as a third path.
Hybrid is not simply "both links up." The design must decide which traffic uses which link, what happens when a link degrades, and how routes from the old and new networks avoid contradicting each other.
Why migrate
The drivers are usually these:
- Cost per megabit. Internet bandwidth is cheaper than MPLS bandwidth.
- Cloud access. Backhauling SaaS traffic through a data center over MPLS adds latency. Local internet breakout at the branch avoids that.
- Provisioning time. A new MPLS circuit can take weeks or months. An internet circuit with a zero-touch SD-WAN edge can be live much sooner.
- Visibility and policy. A central controller gives one place to define policy, instead of per-router configuration.
The trade-offs are real. Internet transports have no provider SLA for loss, latency, or jitter. You take on security responsibility that MPLS partly hid, and you depend on a new control system. The migration plan should keep a way back.
The target hybrid design
Key points in this design:
- The edge treats each transport as a separate path to the same destination. Overlay tunnels run over both.
- Business-critical traffic prefers MPLS or whichever path currently meets its SLA. Bulk traffic uses broadband.
- SaaS traffic leaves the branch directly over the internet. This is called local internet breakout.
- The controller distributes policy and keys. It does not carry user traffic.
Phased migration plan
A migration is a sequence of small, reversible steps. Do not cut over every site on one weekend.
Phase 1: Assess
Gather facts before buying anything.
- Inventory each site: circuit type, bandwidth, contract end date, and devices.
- Measure actual utilization and application mix over at least a month, including peaks such as month-end.
- Record routing: which protocol runs between CE and PE, which prefixes each site advertises, and any static routes or route maps.
- Note what depends on MPLS features: provider QoS classes, multicast, or non-IP traffic.
- List contract dates. Early termination fees often decide the order of sites.
Phase 2: Design
- Choose the end state: hybrid or internet-only, per site type.
- Define site templates, for example "large site: two internet circuits plus MPLS," "small site: broadband plus LTE."
- Define the application policy: which classes need which SLA, and the fallback order.
- Plan IP addressing and the VRF or segment mapping. An MPLS VRF such as
CUST_Ausually maps to an SD-WAN segment so that separation survives the move. - Decide where security is enforced: on the edge, in a cloud security service, or in a data center.
Phase 3: Pilot
Pick two or three low-risk sites and one hub. Run them in parallel with MPLS for several weeks. Test failover by pulling cables, not only by reading dashboards. Confirm that voice and video behave under a congested broadband link.
Phase 4: Roll out in waves
Migrate sites in groups, ordered by contract expiry and risk. Keep MPLS connected at each site until the SD-WAN path has proven stable. Hold a rollback plan for each wave.
Phase 5: Retire or right-size MPLS
Remove MPLS circuits only after traffic has run cleanly on the new design through a full business cycle. Some sites keep MPLS as a backup transport. Update documentation and monitoring when you decommission.
Coexistence: the routing problem
During migration, a site can reach another site two ways: through the MPLS provider network and through the SD-WAN overlay. If both paths advertise the same prefixes into the same routing domain, you can get suboptimal paths, asymmetric routing, or loops.
A typical approach is to run the SD-WAN edge at the hub next to the existing MPLS CE router and exchange routes with it. Here is a minimal example of a hub CE that learns branch prefixes from the SD-WAN edge and prefers them over the MPLS-learned ones:
router bgp 65010
neighbor 192.168.10.1 remote-as 65000
neighbor 172.16.0.2 remote-as 65020
address-family ipv4
neighbor 192.168.10.1 activate
neighbor 172.16.0.2 activate
neighbor 172.16.0.2 route-map PREFER_SDWAN in
exit-address-family
!
route-map PREFER_SDWAN permit 10
set local-preference 200Here 192.168.10.1 is the MPLS PE and 172.16.0.2 is the SD-WAN edge. The default local preference is 100, so routes from the SD-WAN edge win. To send a site's traffic back to MPLS, you remove the route map or lower the value. This gives a one-line rollback for the hub.
Watch for these problems:
- Asymmetric routing. Traffic leaves over the overlay but returns over MPLS. Stateful firewalls then drop the return traffic because they never saw the first packet.
- Route redistribution loops. Redistributing between the provider BGP and an internal IGP in both directions can feed a prefix back where it came from. Use tags or prefix filters.
- Overlapping prefixes. If a migrated site and an unmigrated site both advertise the same subnet during a cutover, traffic splits unpredictably. Cut over one site's prefixes at a time.
- MTU. IPsec adds overhead of roughly 50 to 70 bytes, depending on mode and cipher. A 1500-byte packet can fail to fit. Set the tunnel MTU and TCP MSS clamping, then test with large packets.
Policy for the hybrid state
The path selection logic from the previous chapter applies directly. This model prefers the cheapest compliant transport and falls back to the next one:
paths = {
"mpls": {"latency_ms": 35, "loss_pct": 0.1, "jitter_ms": 5},
"broadband": {"latency_ms": 60, "loss_pct": 2.5, "jitter_ms": 20},
"lte": {"latency_ms": 90, "loss_pct": 1.5, "jitter_ms": 35},
}
sla = {"latency_ms": 150, "loss_pct": 1.0, "jitter_ms": 30}
preference = ["broadband", "mpls", "lte"]
def meets_sla(metrics, sla):
return all(metrics[k] <= sla[k] for k in sla)
def choose_path(paths, sla, preference):
for name in preference:
if meets_sla(paths[name], sla):
return name
return None
print(choose_path(paths, sla, preference)) # mplsBroadband is preferred but its loss is 2.5 percent, above the 1.0 percent limit, so the function skips it and returns mpls. This is the hybrid benefit: MPLS acts as a quality fallback only when the cheap path fails the SLA.
Common errors
| Error | Effect | Prevention |
|---|---|---|
| Cutting over all sites at once | No rollback, large outage | Migrate in waves with a pilot |
| Single internet provider at a site | One failure removes the site | Use two diverse circuits, or broadband plus LTE |
| Ignoring MPLS QoS dependencies | Voice quality drops after cutover | Rebuild QoS in SD-WAN policy and test |
| No local security on internet edges | Direct exposure of branches | Enable edge firewall or cloud security |
| Decommissioning MPLS too early | No fallback when the overlay fails | Retire only after a full business cycle |
| Mismatched segmentation | Customers or departments mix | Map each VRF to an SD-WAN segment |
Measuring success
Define pass criteria before each wave. Useful measures include:
- Packet loss, latency, and jitter per transport, compared with the baseline.
- Time to fail over when a link is removed.
- Application performance for the top business applications, measured by users or synthetic tests.
- Circuit cost per site before and after.
- Time to bring up a new site.
Exercise
A branch has MPLS and broadband. Voice calls are routed over broadband because policy prefers the cheaper link. Users report choppy audio during the afternoon, but the controller shows broadband never failed. Name two likely causes and one fix.
Show answer
Likely causes: the SLA thresholds for voice are too loose, so a congested but "up" link still passes (for example a loss limit that allows more loss than voice tolerates), or the probe interval is too long to catch short bursts of loss and jitter. Fix: tighten the voice SLA (for example loss near 1 percent and jitter near 30 ms or lower), shorten the probe interval, and set the policy to fail over to MPLS when the broadband path violates it.
Exercise
During a wave, a hub firewall drops return traffic from a migrated branch. The branch sends traffic over the overlay. What is the likely routing cause, and what do you check?
Show answer
Asymmetric routing: traffic goes out over the SD-WAN overlay but the return path uses MPLS, so the stateful firewall never sees the session start. Check the routes the hub learns for the branch prefix from both the MPLS PE and the SD-WAN edge, and compare their local preference or metric. Make the preferred path the same in both directions, or withdraw the branch prefix from the MPLS side once the branch has migrated.