Course contents

Unit 1: WAN and SD-WAN fundamentalsLesson 1.4 (4 of 7 in this unit)4 of 27 in the Cisco SD-WAN course

Traditional routing versus policy-led SD-WAN

How a router picks a path by destination, and how an SD-WAN edge adds policy, application and measured quality to that choice.

Intermediate · 11 min read

You'll learn to contrast destination-based routing with policy-led forwarding, say what extra information an SD-WAN edge uses to choose a path, and explain why the overlay still needs a routing protocol.

Technical definition

Policy-led forwarding is forwarding in which the path for a flow is chosen by rules the administrator has written, such as the application, the sender or the measured quality of each path, on top of the destination address. The routing table still says where a prefix is. Policy says which of the possible ways to get there is acceptable.

How a traditional router decides

A router receiving a packet looks at the destination address and finds the longest matching prefix in its routing table. If several routes match equally, an administrative distance and a metric break the tie. The packet leaves by the chosen next hop. Nothing in this process looks at who sent the packet, what application it belongs to, or how the path has been behaving.

A traditional decision
A traditional decisionLook up the destination and forward.PacketRouting tablelongest matchNext hop

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Policy-based routing is an exception.
  1. Routing protocols fill the table. OSPF, EIGRP or BGP exchange prefixes with neighbours and each router computes its own result.
  2. The longest match wins. A more specific prefix beats a less specific one.
  3. Ties go to distance and metric. These are numbers, built into the protocol or set by the administrator.
  4. Equal results can share load. Equal-cost paths may be used together, but the split is by flow hash, not by what suits the application.

This works well on a LAN, where the paths are similar. On a WAN with an MPLS line and an internet line, it gives a blunt result: one path is preferred by metric, and the other waits as a backup.

Hop-by-hop routing against policy pushed from the centre
Hop-by-hop routing against policy pushed from the centreOn the left, a traditional network: three routers each decide the next hop on their own from their own routing table, so a change means touching each router. On the right, a policy-led design: the Manager and Controller hold one policy and push it to every WAN Edge, so the path rules are written once and applied everywhere.Traditional: each router decidesR-AR-BR-COwn table, own config, per routerPolicy-led: one policy, pushedManager + ControllerHUB-01BR-01BR-02Rules written once, applied to every edge

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Routing still exists in both designs. What changes is where the rules for choosing a path are written and how they reach the devices.

What changes in a policy-led design

An SD-WAN edge still performs a route lookup. Around it, three kinds of extra information come into the decision.

A policy-led decision
A policy-led decisionMatch the application, check the policy, then pick a path.PacketMatchapplicationPolicySLA and pathTunnel

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Routing is still present.
What changes in a policy-led design
What changes in a policy-led designInput; Traditional router; SD-WAN edge. Destination prefix: Yes Yes, learned through the overlay routing protocol Application or traffic class: Only with extra features such as PBR or access lists on each device Yes, in policy written centrally Source site or segment: Rarely, and with per-device configuration Yes, policy can match sites, VPNs and sources Measured path quality: Not by default Yes, from probes sent through each tunnel Administrator intent for the whole fabric: Spread across many configurations Held centrally and pushed to the edgesInputTraditional routerSD-WAN edgeDestination prefixYesYes, learned through the overlayrouting protocolApplication or trafficclassOnly with extra features such as PBRor access lists on each deviceYes, in policy written centrallySource site or segmentRarely, and with per-deviceconfigurationYes, policy can match sites, VPNs andsourcesMeasured path qualityNot by defaultYes, from probes sent through eachtunnelAdministrator intentfor the whole fabricSpread across many configurationsHeld centrally and pushed to theedges

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Read each row across: the left box names the item, the others describe it.

Two kinds of policy

Cisco SD-WAN separates policy by what it changes. The words differ between releases and documentation, so check the names in your own release, but the idea is stable.

Control and data policy
Control and data policyDifferent scope.Control policyWhich routes existData policyHow traffic is sentand

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Choose by what you need to change.
  • Control policy acts on the routing information the Controller holds. It decides what routes and TLOCs (the addresses of an edge's attachments to a transport) each edge is told about. A hub-and-spoke topology is built this way: the spokes are shown only the hub's routes.
  • Data policy acts on user traffic as it passes through an edge. It matches packet fields and can send a flow out a specific transport, mark it, or send it directly to the internet.
  • Application-aware routing uses the probe measurements to keep a flow on a path that meets stated limits for loss, delay and jitter. A later lesson covers it in detail.

The idea underneath all three is the same: the administrator writes intent once, and the fabric turns it into behaviour at every edge.

The overlay still needs routing

Policy does not replace routes. If an edge does not know that 10.20.0.0/16 (an example prefix) is behind another site, no policy can send traffic there. Cisco SD-WAN uses its own protocol, OMP (the Overlay Management Protocol), to carry the routes between edges and Controllers. It is described in a later lesson. For now, treat it as a routing protocol for the overlay that runs between each edge and the Controller.

At the edge of the LAN, ordinary routing still applies. A branch may use OSPF or BGP with its LAN switch, and the SD-WAN edge brings those prefixes into the overlay and the overlay's prefixes back to the LAN.

One flow, compared

A user at BR-01 starts a voice call to a server behind HUB-01, with two transports available.

One flow, compared
One flow, comparedStep; Traditional router; Policy-led edge. Lookup: Finds the prefix, sees two next hops Finds the prefix, sees two tunnels to HUB-01 Choice: Takes the one with the better metric Applies the policy for voice, keeps only tunnels that meet its limits Path gets worse: No change while the neighbour stays up Probes show loss, and the flow moves to the other tunnel Who decided: Local config on each device Central policy, applied at every edgeStepTraditional routerPolicy-led edgeLookupFinds the prefix, sees two next hopsFinds the prefix, sees two tunnels toHUB-01ChoiceTakes the one with the better metricApplies the policy for voice, keepsonly tunnels that meet its limitsPath gets worseNo change while the neighbour staysupProbes show loss, and the flow movesto the other tunnelWho decidedLocal config on each deviceCentral policy, applied at every edge

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Read each row across: the left box names the item, the others describe it.

The example is simplified. Real behaviour depends on the policy written, the thresholds set and your release, so treat the table as a model of the idea and not as a record of what any device does.

Where the trade-off sits

  • Central control means central mistakes. One wrong policy reaches every edge it is applied to, so changes need care and a plan to undo them.
  • Policy adds things to debug. When traffic takes an unexpected path, the answer may be in a policy, not in the routing table.
  • More choice needs more measurement. Probes use a little bandwidth, and thresholds set too tight can make flows move more often than users would like.

Mistakes when comparing the two

  • Describing SD-WAN as having no routing. It has routing tables and the OMP protocol. Policy works on top of them.
  • Thinking policy can reach a prefix the edge does not know. Routes come first, policy shapes the choice.
  • Treating control policy and data policy as one thing. One changes what routes are advertised, the other changes how packets are forwarded.

Test yourself on routing and policy

Predict · scenario 1

Which input does a plain routing table lookup on a traditional router use to choose a next hop?

Predict · scenario 2

An administrator wants spoke sites to learn routes only from the hub, so spoke-to-spoke traffic goes through the hub. Which kind of policy fits?

Predict · scenario 3

An edge has no route to a remote prefix because the Controller did not send it. A data policy says to send that traffic via the internet transport. What happens?

FAQ

Does SD-WAN stop using routing tables?
No. An SD-WAN edge still has routing tables, one for each VPN (the overlay's word for a separate routing instance). The difference is where the entries come from and what can influence the path chosen from them. The overlay has its own routing protocol, and policy can override or limit the result.
Is policy-led forwarding the same as policy-based routing (PBR)?
They are related, but PBR is configured on one device at a time and matches on packet fields. SD-WAN policy is written once, centrally, and delivered to many edges. It can also use path measurements, which PBR on its own cannot.
Can a router choose paths by application at all?
Yes, with features such as PBR or Performance Routing, where the platform supports them. The SD-WAN difference is that the feature is part of the design and is managed centrally, not added router by router.