Three kinds, two places to run
A WAN Edge follows the default behaviour of the fabric until policy changes it. Cisco SD-WAN has three families of policy, and the quickest way to tell them apart is to ask where they run and what they touch. Control policy runs on the Controller (formerly vSmart) and touches routing information. Data policy and application-aware routing policy are built centrally, but the Controller sends them to the edges, which apply them to packets. Localized policy is built centrally but belongs to one device.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
| Family | Runs on | Touches | Typical use |
|---|---|---|---|
| Centralized control policy | Controller | Routes, TLOCs and services sent by OMP | Hub-and-spoke topology, steering by TLOC preference, route filtering between sites |
| Centralized data policy | WAN Edge, from the Controller | Packets going into or out of the overlay | Direct internet access for some traffic, pinning an application to a colour |
| Application-aware routing policy | WAN Edge, from the Controller | Path choice against an SLA | Move voice off a lossy transport |
| Localized policy | One WAN Edge | Packets and routes on that device | ACLs, QoS, policers, route policy for a local protocol |
Control policy: shaping what sites learn
A control policy matches routes or TLOCs and then accepts, rejects or changes them, for sites in a site list. Because the Controller sits between all edges, a change here alters what every affected site believes about the network. That is how a hub-and-spoke topology is built on a fabric that would otherwise form a mesh: spokes are only told about the hub's TLOCs, or are told to reach other spokes through the hub.
Default sharing against a filtered view.
Data policy: acting on packets
A data policy matches traffic using fields such as source and destination prefix, protocol, port or an application list, in a given VPN, and then takes an action. The action may be to send the traffic out directly to the internet, to set a preferred colour, or to count it. Application-aware routing policy is similar but adds a check: it measures loss, latency and jitter on each tunnel and picks among paths that meet an SLA class.
Built, activated, distributed, applied.
- Buildin the Manager
- Activateto Controller
- Distributeto edges
- Applyto matchingtraffic
Localized policy: one router
Localized policy covers features that belong to a device's own interfaces and routing, such as access lists, QoS maps and shaping, policers, and route policy for OSPF or BGP on the service side. It is attached to the device in the template or group, so it reaches the router with the rest of its configuration, not through the Controller.
A centralized data policy is sent by the Controller to the edges in its site list. A localized policy is attached to the device in its template or group and arrives with the rest of its configuration.
BR-01#show sdwan policy from-vsmart from-vsmart data-policy DATA-DIA direction from-service vpn-list VPN-10 sequence 10 match source-ip 192.168.20.0/24 action accept nat use-vpn 0
Choosing the type
Start from the need. If the need is about which routes or paths sites know about, use control policy. If it is about what happens to packets or which path an application takes, use data or application-aware routing policy. If it is about one router, such as an ACL on one interface, use localized policy. A mistake here is costly: a data policy cannot filter a route, and a control policy cannot send one application out directly.
Ask what the need touches. If it is which routes or TLOCs sites know, the answer is control policy. If it is what happens to packets or which path an application takes, the answer is data or application-aware routing policy. If it concerns one router, the answer is localized policy.
- Routes or TLOCsControl policy
- Packets or pathsData or AAR policy
- One routerLocalized policy
| Need | Policy type |
|---|---|
| Spokes should not build tunnels to each other | Centralized control policy |
| Prefer HUB-01 over HUB-02 for one prefix | Centralized control policy |
| Send guest traffic straight to the internet | Centralized data policy |
| Move voice to the transport with lower loss | Application-aware routing policy |
| Block telnet on one LAN interface | Localized policy (ACL) |
| Shape to the circuit speed on one WAN interface | Localized policy (QoS) |
From the Manager to the packet: five checkpoints
A policy that was built correctly can still do nothing, or the wrong thing. It passes five checkpoints on its way to affecting traffic, and each one has its own place to look. One fact saves a lot of time: a centralized control policy runs on the Controller and is not sent to the edges, so an empty policy listing on an edge is normal for control policy and a fault only for data policy.
Built in the Manager, activated, applied to the right site list and direction, received by the edge if it is a data policy, and matching traffic or routes.
- 1 BuiltThe sequences say what you meantManager policy builder
- 2 ActivatedOne centralized policy is activeManager, then the Controller
- 3 AppliedRight site list, right directionapply-policy on the Controller
- 4 ReceivedEdge holds a data policyshow sdwan policy from-vsmart
- 5 MatchingTraffic or routes hit a sequencecounters, routes, TLOCs
| Policy type | Where it can be seen | What an empty result means |
|---|---|---|
| Centralized control policy | On the Controller, in the apply-policy part of its configuration | Not applied. An empty listing on an edge is normal |
| Centralized data policy | On the edge, with show sdwan policy from-vsmart | Not activated, or the site is not in the site list |
| Application-aware routing policy | On the edge, in the same from-vsmart listing | Not activated, or the site is not in the site list |
| Localized policy | In the device's own configuration | Not attached in the template or group |
Worked example: the right policy, applied in the wrong direction
The plan is hub-and-spoke: BR-01 and BR-02 should build tunnels only to HUB-01. The control policy HUB-ONLY accepts only the hub's TLOCs and rejects the rest, and it is meant to be applied to the site list SPOKES. After activation, all three spoke tunnels to HUB-01 are down. Before the change there were three: two for BR-01, which has two transports, and one for BR-02, which has the internet transport only.
Applied outbound to the spokes, HUB-ONLY tells them about the hub's TLOCs only, so they build three tunnels, all to the hub. Applied inbound, it rejects the spokes' own TLOCs on arrival, so nobody can build a tunnel to them and no tunnels remain.
Controller#show running-config apply-policy apply-policy site-list SPOKES control-policy HUB-ONLY in ! !
| Direction | The policy acts on | Effect of HUB-ONLY on the spokes |
|---|---|---|
| out (toward SPOKES) | What the Controller sends to those sites | Spokes are told only about the hub's TLOCs, so they build tunnels to the hub only |
| in (from SPOKES) | What the Controller receives from those sites | The spokes' own TLOCs are rejected, so nobody learns them, the hub included |
The lab has four possible tunnels with no policy: two between HUB-01 and BR-01, one between HUB-01 and BR-02, and one between BR-01 and BR-02. The table below was computed by script from the colours each pair shares.
| Case | HUB-01 | BR-01 | BR-02 | Tunnels |
|---|---|---|---|---|
| No policy, default mesh | 3 | 3 | 2 | 4 |
| HUB-ONLY outbound, as planned | 3 | 2 | 1 | 3 |
| HUB-ONLY inbound, the fault | 0 | 0 | 0 | 0 |
The fix is to apply HUB-ONLY outbound to SPOKES, activate again, and repeat the check: three spoke tunnels up on HUB-01. The lesson for the change note is that the direction is part of the policy, and the apply step is where it is chosen. A review of the build step alone would have passed this change.
Learn more: Hub-and-Spoke versus Mesh TopologyApplication-Aware Routing Introduction
Test yourself
Branches should reach each other only through HUB-01. Which policy type builds this?
Where is a centralized control policy enforced?
You need an ACL on one interface of BR-02. Which type fits?
A branch shows an empty show sdwan policy from-vsmart. The only policy in use is a centralized control policy. What does that mean?
A hub-and-spoke control policy that accepts only hub TLOCs is applied inbound to the spokes. What is the likely result?
You review a policy that is built correctly, but it has no effect on traffic. Which checkpoint is the cheapest to check first after the build?
HUB-ONLY is applied outbound to SPOKES, as planned. How many tunnels does the lab show, given that BR-01 has two transports and BR-02 has one?
In the five checkpoints between a built policy and its effect, what comes straight after the policy is activated?
A request says: send guest traffic straight to the internet from the branch LANs. Which family fits, and where does it run?