Course contents

Unit 8: Management and basic policiesLesson 8.3 (3 of 6 in this unit)49 of 62 in the Cisco SD-WAN course

Centralized control, centralized data and localized policy

Centralized control, centralized data, application-aware routing and localized policy: where each is built, where it runs and how to choose.

Intermediate · 12 min read

You'll learn to tell centralized control, centralized data and localized policy apart, say where each one is built and enforced, and pick the right type for a stated need.

Technical definition

SD-WAN policy is a set of rules built in the Manager that changes default behaviour. Centralized control policy changes the routes and TLOCs the Controller advertises. Centralized data policy and application-aware routing policy change how edges forward traffic. Localized policy changes how one edge behaves, such as ACLs and QoS.

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.

Diagram
Where the three policy types are built and where they run
Where the three policy types are built and where they run
Where the three policy types are built and where they runAll policies are built in the Manager. A centralized policy is activated to the Controller. Control policy is applied by the Controller to routes and TLOCs it sends over OMP. Data policy and application-aware routing policy are sent by the Controller to the edges, which apply them to traffic. Localized policy goes from the Manager to a single edge as part of that edge's configuration.Managerbuild and activateControllercontrol policy runs heredata and AAR policy storedBR-01data policy, AAR, localizedHUB-01data policy, AAR, localizedBR-02data policy, AAR, localizedactivate centralized policyOMP sends data and AAR policyto the edgeslocalized policy,sent with the deviceconfiguration

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

The Manager builds, the Controller distributes, the edge enforces. Control policy is the exception: the Controller enforces it itself, before routes ever reach an edge.
Diagram
The three families side by side
The three families side by side
FamilyRuns onTouchesTypical use
Centralized control policyControllerRoutes, TLOCs and services sent by OMPHub-and-spoke topology, steering by TLOC preference, route filtering between sites
Centralized data policyWAN Edge, from the ControllerPackets going into or out of the overlayDirect internet access for some traffic, pinning an application to a colour
Application-aware routing policyWAN Edge, from the ControllerPath choice against an SLAMove voice off a lossy transport
Localized policyOne WAN EdgePackets and routes on that deviceACLs, QoS, policers, route policy for a local protocol
Names of policy parts differ slightly between releases. The split by where they run does not.

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.

Diagram
Without and with control policy
Without and with control policy

Default sharing against a filtered view.

No policyAll TLOCs and routesshared with all sites
Control policyController filters orrewrites before sending
Control policy changes what is advertised. It does not touch packets.

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.

Diagram
How a data policy reaches a packet
How a data policy reaches a packet

Built, activated, distributed, applied.

  1. Buildin the Manager
  2. Activateto Controller
  3. Distributeto edges
  4. Applyto matchingtraffic
The edge applies the policy only to the site list and direction it was given.

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.

Diagram
How a policy reaches the router
How a policy reaches the router

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.

Centralized data policySent by the Controllerto sites in the site list
Localized policyAttached in the templateor group, with the config
The route to the router decides where to look when the policy seems missing.
Example output written for this lesson, simplified; real output has more fields and a different layout
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
The edge received a data policy from the Controller. It applies to traffic entering from the service side in VPN 10 and sends matching sources out directly through VPN 0. Command name and fields depend on the release. If this output is empty on an edge that should have a data policy, the problem is upstream of the edge, such as activation or site list membership.

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.

Diagram
Start from the need
Start from the need

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.

What does the need touch?
  • Routes or TLOCsControl policy
  • Packets or pathsData or AAR policy
  • One routerLocalized policy
The first question to ask is what the need touches, not which feature sounds closest.
Diagram
Need to policy type
Need to policy type
NeedPolicy type
Spokes should not build tunnels to each otherCentralized control policy
Prefer HUB-01 over HUB-02 for one prefixCentralized control policy
Send guest traffic straight to the internetCentralized data policy
Move voice to the transport with lower lossApplication-aware routing policy
Block telnet on one LAN interfaceLocalized policy (ACL)
Shape to the circuit speed on one WAN interfaceLocalized policy (QoS)
One need rarely needs more than one type.

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.

Diagram
Five checkpoints between a built policy and its effect
Five checkpoints between a built policy and its effect

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. 1 BuiltThe sequences say what you meantManager policy builder
  2. 2 ActivatedOne centralized policy is activeManager, then the Controller
  3. 3 AppliedRight site list, right directionapply-policy on the Controller
  4. 4 ReceivedEdge holds a data policyshow sdwan policy from-vsmart
  5. 5 MatchingTraffic or routes hit a sequencecounters, routes, TLOCs
Work down the list and stop at the first checkpoint that fails.
Diagram
Where to look for each policy type
Where to look for each policy type
Policy typeWhere it can be seenWhat an empty result means
Centralized control policyOn the Controller, in the apply-policy part of its configurationNot applied. An empty listing on an edge is normal
Centralized data policyOn the edge, with show sdwan policy from-vsmartNot activated, or the site is not in the site list
Application-aware routing policyOn the edge, in the same from-vsmart listingNot activated, or the site is not in the site list
Localized policyIn the device's own configurationNot attached in the template or group
Command names and output differ between releases, and the split by where a policy runs does not.

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.

Diagram
Outbound against inbound
Outbound against inbound

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.

Outbound to SPOKESSpokes told only hub TLOCs3 tunnels, all to the hub
Inbound from SPOKESSpoke TLOCs rejected on arrival0 tunnels, hub cannot see them
One policy and one site list, but the direction decides whether the hub-and-spoke plan works.
Example output written for this lesson, simplified; real output has more fields and a different layout
Controller#show running-config apply-policy
apply-policy
 site-list SPOKES
  control-policy HUB-ONLY in
 !
!
The policy is applied in the inbound direction. Inbound means the Controller applies it to what it receives from the sites in SPOKES, before the information goes into its table that every other site is served from. HUB-ONLY accepts only the hub's TLOCs, and the policy builder's default for a custom control policy is to reject the rest, so the spokes' own TLOCs were rejected on arrival. The hub did not learn them, and it cannot build tunnels to TLOCs it does not know.
Diagram
What each direction does to the same policy
What each direction does to the same policy
DirectionThe policy acts onEffect of HUB-ONLY on the spokes
out (toward SPOKES)What the Controller sends to those sitesSpokes 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 sitesThe spokes' own TLOCs are rejected, so nobody learns them, the hub included
Inbound changes the Controller's own table and reaches every site. Outbound changes only the view of the sites in the list.

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.

Diagram
BFD entries per edge in the three cases (computed)
BFD entries per edge in the three cases (computed)
CaseHUB-01BR-01BR-02Tunnels
No policy, default mesh3324
HUB-ONLY outbound, as planned3213
HUB-ONLY inbound, the fault0000
The planned policy removes only the BR-01 to BR-02 tunnel. The wrong direction removes every tunnel, because the spokes' TLOCs do not reach the Controller's table.

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

Predict · scenario 1

Branches should reach each other only through HUB-01. Which policy type builds this?

Predict · scenario 2

Where is a centralized control policy enforced?

Predict · scenario 3

You need an ACL on one interface of BR-02. Which type fits?

Predict · scenario 4

A branch shows an empty show sdwan policy from-vsmart. The only policy in use is a centralized control policy. What does that mean?

Predict · scenario 5

A hub-and-spoke control policy that accepts only hub TLOCs is applied inbound to the spokes. What is the likely result?

Predict · scenario 6

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?

Predict · scenario 7

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?

Predict · scenario 8

In the five checkpoints between a built policy and its effect, what comes straight after the policy is activated?

Predict · scenario 9

A request says: send guest traffic straight to the internet from the branch LANs. Which family fits, and where does it run?

FAQ

What happens in a fabric with no policy at all?
Routes and TLOCs are shared between all sites that are in the same VPN and have usable colours, so the overlay forms a full mesh by default. Policy is what you add to change that.
Can more than one centralized policy be active?
A Controller applies one activated centralized policy at a time. That one policy can contain several control, data and application-aware routing parts, each applied to site lists.
Is localized policy sent through the Controller?
No. Localized policy belongs to one device. The Manager includes it in that device's configuration. It is not distributed by OMP.