A policy is a list of questions and answers
An application-aware routing policy is a list of numbered sequences. Each one asks a question about a flow and, if the answer is yes, says what to do with it. The question is the match: which application, which marking, which addresses. The answer is the action: which SLA class the path must meet and which transport colors to prefer. The first sequence that matches decides, and later ones are not checked for that flow.
The edge checks the sequences in order, the first match selects an SLA class, the class gives the eligible tunnels, the preferred color picks among them, and the flow is forwarded.
- Matchfirst sequencethat fits
- SLA classlimits forthis traffic
- Eligibletunnels insidethe limits
- Preferredcolor firstif eligible
- Forwardon the chosentunnel
policy
lists
app-list VOICE-APPS
app webex-audio
!
app-list VIDEO-APPS
app webex-meeting
app ms-teams-video
!
vpn-list CORP-VPN
vpn 10
!
!
app-route-policy BRANCH-AAR
vpn-list CORP-VPN
sequence 10
match
app-list VOICE-APPS
!
action
sla-class VOICE preferred-color mpls
backup-sla-preferred-color lte
!
!
sequence 20
match
app-list VIDEO-APPS
!
action
sla-class VIDEO preferred-color biz-internet
!
!
!
!Controller policy in outline: voice must meet the VOICE class, prefers mpls and falls back to lte when nothing qualifies; video must meet the VIDEO class and prefers biz-internet. Built in the policy builder in the Manager. The layout of the action lines, the application names and the options differ between releases.
| Match on | Example | Care |
|---|---|---|
| Application list | Voice and video applications by name | Depends on the application being recognised, and on the names in your release |
| DSCP marking | The marking that voice endpoints set | Only as reliable as the marking is; check where it is set or rewritten |
| Addresses and ports | A prefix list and a destination port | Precise, and a change of server address silently stops the match |
| Protocol | TCP or UDP | Broad; usually combined with another field |
From the eligible set to one tunnel
The SLA class decides which tunnels qualify. The colors decide which of those carries the flow. The edge works down a short list: tunnels of the preferred color that qualify, then qualifying tunnels of any other color, then, if nothing qualifies, the backup color if the policy names one, and finally normal forwarding or a drop when the policy is strict. The measured values below are the ones used in the earlier lessons for the branch BR-04.
BR-04#show sdwan app-route stats TUNNEL (remote) LOSS LATENCY JITTER mpls to HUB-01 mpls 0 46 7 biz-internet to HUB-01 biz-inet 4 58 41 lte to HUB-01 lte 1 120 35
| Tunnel | VOICE (loss 2, latency 150, jitter 30) | VIDEO (loss 3, latency 200, jitter 50) |
|---|---|---|
| mpls | Passes. Closest limit: latency, at 31% of it | Passes. Closest limit: latency, at 23% of it |
| biz-internet | Fails: loss over by 2, jitter over by 11 | Fails: loss over by 1 |
| lte | Fails: jitter over by 5 | Passes. Closest limit: jitter, at 70% of it |
| Situation | Eligible set | Voice (prefers mpls, backup lte) | Video (prefers biz-internet) |
|---|---|---|---|
| All three tunnels as measured | Voice: mpls. Video: mpls and lte | mpls | Not biz-internet, which fails the class. Flows are spread over mpls and lte |
| mpls goes down | Voice: none. Video: lte | No tunnel qualifies, so the backup color lte is used | lte, the only qualifying tunnel |
| mpls goes down and no backup color is set | Voice: none | Normal forwarding over biz-internet and lte, both outside the class | lte |
The same policy treats different flows differently. The table applies the sample policy, with BR-04's measured values, to five flows.
| Application the edge sees | Sequence that matches | Where it goes at BR-04 |
|---|---|---|
| webex-audio | 10 (VOICE-APPS) | mpls, the only tunnel that meets the VOICE class |
| webex-meeting | 20 (VIDEO-APPS) | mpls or lte, the tunnels that meet the VIDEO class |
| ms-teams-video | 20 (VIDEO-APPS) | mpls or lte, the tunnels that meet the VIDEO class |
| ms-teams-audio | None | Normal forwarding, because the voice list does not name it |
| Web browsing | None | Normal forwarding, because no sequence describes it |
The preferred color is used first among the tunnels that meet the SLA class. The backup color is used only when no tunnel meets the class.
A worked case: the policy that matched nothing
At BR-04 the voice sequence exists, the policy is applied to the site, and the SLA class is sound. Calls are still choppy, and they use biz-internet although mpls is healthy. The policy is correct for the applications it names, so the question is whether the traffic is one of them. The flows on the edge show the application name that the edge actually recognised.
BR-04#show sdwan app-fwd cflowd flows SRC IP DEST IP DSCP APPLICATION TUNNEL 10.4.1.21 198.51.100.50 46 ms-teams-audio biz-internet 10.4.1.22 198.51.100.51 46 ms-teams-audio biz-internet
Calls are choppy and use the internet tunnel although mpls is healthy. The flows are recognised as Teams audio. The voice list holds only Webex audio. The sequence does not match, so the flows follow normal forwarding.
- SymptomChoppy calls at BR-04Calls use biz-internet, mpls is healthy
- FlowsApplication: ms-teams-audioDSCP 46 on every flow
- PolicyVOICE-APPS holds webex-audio onlyThe voice sequence does not match
- FixAdd the Teams audio application to the listRead the flows again
The repair is to add the Teams audio application to the voice list, or to match on the marking if the endpoints mark voice reliably, then confirm in the flow output that the calls now sit on the mpls tunnel. Allow for the measurement window, since a flow moves only after the edge has settled on the new eligible set. Add a step to the change checklist: when a new application is rolled out, find the name the edge gives it before the policy is written, not after the first complaint.
Match problems and the first check
| Symptom | First check | Common cause |
|---|---|---|
| Policy applied but the application ignores it | The application name in the flow output against the list | A different application name, or an incomplete list |
| The first sequence catches traffic meant for a later one | The order and breadth of the sequences | A broad match placed early |
| Voice leaves the preferred color when it is healthy | Is that tunnel in the eligible set for the class? | The class fails on one of its three limits |
| A flow uses a tunnel that fails the class | Does the policy have a backup color or strict? | No tunnel qualified and normal forwarding took over |
The flow matches no sequence, an earlier broader sequence takes it, the preferred color fails the class, or no tunnel qualifies and normal forwarding takes over.
- No matchname or markingdiffers
- Earlier matcha broad rulecomes first
- Color failspreferred tunneloutside limits
- None qualifyfallback orstrict applies
Learn more: SLA Classes and Policy ThresholdsBFD-derived Loss, Latency and JitterSD-WAN Policy Types
Test yourself
A flow matches sequence 10 and would also match sequence 20. Which one applies?
Voice prefers mpls and falls back to lte. mpls goes down, and biz-internet (loss 4, jitter 41) and lte (loss 1, jitter 35) both fail the voice class. Which tunnel carries voice?
Calls are recognised as ms-teams-audio. The policy applies to the site and the voice list holds only webex-audio. What happens to the calls?
Where do you read the application name that the edge assigned to a flow?
Against the VIDEO class (loss 3, latency 200, jitter 50), biz-internet measures loss 4, latency 58 and jitter 41. How far from the class is it?
A flow is recognised as webex-meeting, which is in VIDEO-APPS (sequence 20). At BR-04 biz-internet is preferred for video but fails the class. Which tunnels can carry the flow?
A new video application is about to be rolled out. When should its name, as the edge recognises it, be found?