Course contents

Unit 4: Advanced AARLesson 4.4 (4 of 7 in this unit)18 of 63 in the Advanced Cisco SD-WAN course

Application match, eligibility and preferred TLOC

How a policy sequence matches traffic, how the SLA class and the preferred and backup colors pick one tunnel, and how to find a policy that exists but does not match the application in use.

Advanced · 17 min read

You'll learn to read an application-aware routing policy as a list of sequences, work out which tunnel carries an application from the measured values and the preferred and backup colors, and find a policy that exists but does not match the traffic.

Technical definition

Application-aware routing sequence is one numbered rule in an application-aware routing policy. It has a match, which says what traffic the rule covers, and an action, which names an SLA class and the colors to prefer. Sequences are checked in order, and the first match decides what happens to a flow.

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.

Diagram
What happens to one flow
What happens to one 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.

  1. Matchfirst sequencethat fits
  2. SLA classlimits forthis traffic
  3. Eligibletunnels insidethe limits
  4. Preferredcolor firstif eligible
  5. Forwardon the chosentunnel
A flow that matches no sequence skips every step after the first and follows normal forwarding.
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.

Diagram
What a sequence can match
What a sequence can match
Match onExampleCare
Application listVoice and video applications by nameDepends on the application being recognised, and on the names in your release
DSCP markingThe marking that voice endpoints setOnly as reliable as the marking is; check where it is set or rewritten
Addresses and portsA prefix list and a destination portPrecise, and a change of server address silently stops the match
ProtocolTCP or UDPBroad; usually combined with another field
The exact fields differ between releases. The more precise the match, the more it needs maintenance when the application or network changes.

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.

Example output written for this lesson, simplified; real output has more fields and a different layout
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
Against the VOICE class of loss 2, latency 150 and jitter 30, only mpls qualifies. Against the VIDEO class of loss 3, latency 200 and jitter 50, mpls and lte qualify and biz-internet does not, because its loss of 4 is above 3. The numbers are examples.
Diagram
Each tunnel against each class
Each tunnel against each class
TunnelVOICE (loss 2, latency 150, jitter 30)VIDEO (loss 3, latency 200, jitter 50)
mplsPasses. Closest limit: latency, at 31% of itPasses. Closest limit: latency, at 23% of it
biz-internetFails: loss over by 2, jitter over by 11Fails: loss over by 1
lteFails: jitter over by 5Passes. Closest limit: jitter, at 70% of it
Worked out by script from the example values above. A tunnel must meet all three limits. Biz-internet misses the VIDEO class by one point of loss, so a small change in measured loss can move it in or out of the eligible set.
Diagram
Which tunnel carries each application
Which tunnel carries each application
SituationEligible setVoice (prefers mpls, backup lte)Video (prefers biz-internet)
All three tunnels as measuredVoice: mpls. Video: mpls and ltemplsNot biz-internet, which fails the class. Flows are spread over mpls and lte
mpls goes downVoice: none. Video: lteNo tunnel qualifies, so the backup color lte is usedlte, the only qualifying tunnel
mpls goes down and no backup color is setVoice: noneNormal forwarding over biz-internet and lte, both outside the classlte
Read each column as a separate policy sequence. A preferred color that fails the class is skipped, which is why video does not use biz-internet here.

The same policy treats different flows differently. The table applies the sample policy, with BR-04's measured values, to five flows.

Diagram
Where each flow goes
Where each flow goes
Application the edge seesSequence that matchesWhere it goes at BR-04
webex-audio10 (VOICE-APPS)mpls, the only tunnel that meets the VOICE class
webex-meeting20 (VIDEO-APPS)mpls or lte, the tunnels that meet the VIDEO class
ms-teams-video20 (VIDEO-APPS)mpls or lte, the tunnels that meet the VIDEO class
ms-teams-audioNoneNormal forwarding, because the voice list does not name it
Web browsingNoneNormal forwarding, because no sequence describes it
Worked out by applying the sample policy to example flows. Application names and what counts as a match differ between releases.
Diagram
Preferred color and backup color
Preferred color and backup color

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.

Preferred colorfirst choice amongtunnels that qualify
Backup colorused only whennothing qualifies
Set a backup color when losing the best tunnel should still leave a chosen second choice.

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.

Example output written for this lesson, simplified; real output has more fields and a different layout
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
The calls are recognised as ms-teams-audio. The VOICE-APPS list in the policy holds webex-audio only. The sequence does not match these flows, so they follow normal forwarding and are shared over both transports. The marking is DSCP 46 on every flow, so a match on the marking would have covered them.
Diagram
Evidence from the case
Evidence from the case

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.

  1. SymptomChoppy calls at BR-04Calls use biz-internet, mpls is healthy
  2. FlowsApplication: ms-teams-audioDSCP 46 on every flow
  3. PolicyVOICE-APPS holds webex-audio onlyThe voice sequence does not match
  4. FixAdd the Teams audio application to the listRead the flows again
The policy and the class are fine. The match describes a different application from the one in use.

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

Diagram
Symptoms and the first check
Symptoms and the first check
SymptomFirst checkCommon cause
Policy applied but the application ignores itThe application name in the flow output against the listA different application name, or an incomplete list
The first sequence catches traffic meant for a later oneThe order and breadth of the sequencesA broad match placed early
Voice leaves the preferred color when it is healthyIs 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 classDoes the policy have a backup color or strict?No tunnel qualified and normal forwarding took over
Start with what the edge recognised, because that is what the sequences are compared with.
Diagram
Why a flow is not steered as planned
Why a flow is not steered as planned

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.

Flow not steered
  • No matchname or markingdiffers
  • Earlier matcha broad rulecomes first
  • Color failspreferred tunneloutside limits
  • None qualifyfallback orstrict applies
Check them in this order. The first two are about the match, the last two about the paths.

Learn more: SLA Classes and Policy ThresholdsBFD-derived Loss, Latency and JitterSD-WAN Policy Types

Test yourself

Predict · scenario 1

A flow matches sequence 10 and would also match sequence 20. Which one applies?

Predict · scenario 2

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?

Predict · scenario 3

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?

Predict · scenario 4

Where do you read the application name that the edge assigned to a flow?

Predict · scenario 5

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?

Predict · scenario 6

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?

Predict · scenario 7

A new video application is about to be rolled out. When should its name, as the edge recognises it, be found?

FAQ

What does preferred color do?
It names the transport colors to use first among the tunnels that already meet the SLA class. It is a preference inside the eligible set, not a guarantee. If no tunnel of that color is eligible, an eligible tunnel of another color is used.
What is the backup color for?
It names the colors to use when no tunnel meets the SLA class at all. Without it, a flow that finds no eligible tunnel follows normal forwarding, or is dropped if the policy is strict. Check your release for how it picks among the backup tunnels.
Why can a flow be outside every sequence?
A sequence matches only the traffic it describes. A flow that matches no sequence is not touched by the policy and follows normal forwarding, however carefully the other sequences were written.
Do application names stay the same across releases?
Not necessarily. Applications are recognised by a signature set that is updated over time, and names, groupings and coverage change with it. Read the application names in your release, from the traffic itself, before you write a list.