Course contents

Unit 4: Advanced AARLesson 4.3 (3 of 7 in this unit)17 of 63 in the Advanced Cisco SD-WAN course

SLA classes and policy thresholds

Define an SLA class from loss, latency and jitter limits, work out which tunnels qualify from measured values, see what strict and fallback do when none qualifies, and test thresholds before they cause an outage.

Advanced · 17 min read

You'll learn to define an SLA class from loss, latency and jitter limits, work out which tunnels qualify for each class from measured values, explain what happens when none qualifies, and choose thresholds that the underlay can actually meet.

Technical definition

SLA class in Cisco SD-WAN is a named set of three limits for loss, latency and jitter. An application-aware routing policy refers to a class by name. A tunnel is eligible for the class only while its measured values stay inside all three limits.

One class, three limits

Application-aware routing needs a way to say what a good path means for an application. An SLA classis that statement: a name and three limits. Voice tolerates little loss, delay and jitter. A file transfer tolerates far more. Each class holds the limits for one kind of traffic, and the policy refers to the class by name.

Diagram
What an SLA class holds
What an SLA class holds

An SLA class holds a loss limit, a latency limit and a jitter limit. A tunnel must meet all three to be eligible for the class.

SLA class VOICE
  • Lossat most2 percent
  • Latencyat most150 ms
  • Jitterat most30 ms
  • Ruleall threemust hold
The example is the voice class used in this course. The numbers are examples, not a recommendation for every network.

Design guides for voice commonly quote about one percent loss, 150 ms of one-way delay and 30 ms of jitter as targets. This course uses two percent loss for voice, to leave some room for an Internet transport. The right values come from the application vendor and from what the underlay can really deliver, and the next sections show why the second part matters as much as the first.

policy sla-class VOICE loss 2 latency 150 jitter 30 ! sla-class VIDEO loss 3 latency 200 jitter 50 ! app-route-policy BRANCH-AAR vpn-list CORP-VPN sequence 10 match app-list VOICE-APPS ! action sla-class VOICE preferred-color mpls ! ! ! !

Controller policy in outline: two classes, and one sequence that sends the voice applications to the VOICE class and prefers the mpls color among the tunnels that qualify. Built in the policy builder in the Manager, and the exact layout differs between releases.

Which tunnels qualify

The edge measures each tunnel and compares the result with every class. The result is a set of eligible tunnels for each class, and the policy chooses among that set. Start by reading the measurements for one branch, BR-04, which has three transports.

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
Loss is a percentage, latency and jitter are in milliseconds. These are the values the edge compares with each class. They are the averages the edge uses, not the last single sample.
Diagram
Measurements against each class
Measurements against each class
TunnelMeasuredVOICE 2, 150, 30VIDEO 3, 200, 50DEFAULT 10, 500, 100
mplsloss 0, latency 46, jitter 7EligibleEligibleEligible
biz-internetloss 4, latency 58, jitter 41No: loss and jitterNo: lossEligible
lteloss 1, latency 120, jitter 35No: jitterEligibleEligible
Each class is listed as loss in percent, then latency and jitter in milliseconds. Only mpls qualifies for voice, mpls and lte for video, and all three for the default class.
Diagram
How the edge tests a tunnel
How the edge tests a tunnel

The edge measures the tunnel, compares loss, latency and jitter with the class, builds the set of tunnels that pass all three, and the policy then picks from that set using its preferred color.

  1. Measureaveraged loss,latency, jitter
  2. Compareagainst allthree limits
  3. Eligible settunnels thatpass all three
  4. Choosepreferred colorinside the set
Preference works only inside the eligible set. A preferred color that fails the limits is skipped.

Read the table by rows to see which transports a class admits, and by columns to see how a class treats the transports. Voice has one tunnel to use. If mpls fails, voice has no eligible tunnel at all, and what happens next depends on the policy, which is the subject of the next section.

Diagram
Too tight and too loose
Too tight and too loose

A class that is too tight admits few or no tunnels, so traffic falls back or is dropped. A class that is too loose admits poor tunnels, so users suffer before the policy reacts.

Too tightfew or no tunnelsqualify, so trafficfalls back or drops
Too loosepoor tunnels stayeligible, and usersnotice first
Set limits from what users need and what the underlay can deliver. Check the result against every tunnel before you activate.

When no tunnel qualifies

A class can end up with an empty eligible set: all providers have a bad hour, or a limit was set tighter than any transport can meet. The policy then has no tunnel that satisfies the class, and the result depends on whether the policy is marked strict.

Diagram
What the policy does in each case
What the policy does in each case
SituationResultDesign note
At least one tunnel is eligibleTraffic uses an eligible tunnel; the preferred color wins when it is eligibleThe normal case
The preferred color is not eligible but another isAn eligible tunnel in another color is usedPreference is a wish, not a guarantee
No tunnel is eligible, policy not strictTraffic is not dropped; it follows normal forwarding, which can use a tunnel that fails the limitsA poor call is usually better than no call
No tunnel is eligible, policy strictTraffic is droppedOnly for traffic that must not use a poor path
Some releases add a best-path fallback between the last two rows. Read the policy options in your release and test the behaviour in the lab.
Diagram
Fallback or strict
Fallback or strict

With fallback, traffic keeps flowing over a path that may be poor. With strict, traffic stops when no path is good enough.

Fallbacktraffic keepsflowing, qualitymay suffer
Stricttraffic stopswhen nothingis good enough
Choose per class. Most voice designs keep fallback. Strict suits flows that must not travel over a poor path.

Choosing and testing thresholds

Thresholds that look sensible on paper fail on a real network when they are set without a baseline. A threshold that sits inside the normal variation of a healthy tunnel makes the eligible set change all day. A threshold far above normal makes the class meaningless. The reliable method is to measure first and set the limit above normal variation and below the point where users complain.

Diagram
Set a threshold in five steps
Set a threshold in five steps

Collect a baseline for each tunnel, draft the limits, check the eligible set on every tunnel, test a failure, and record the values and the reason.

  1. Baselinemeasure eachtunnel
  2. Draftlimits abovenormal
  3. Checkeligible setper tunnel
  4. Fail onetest thefallback
  5. Recordvalues andreasons
Step three is the one most often skipped, and it is the one that would have caught the case below.

To see how much one limit matters, the table tries five what-if voice classes against BR-04's three tunnels from the measurements above.

Diagram
What-if limits and the eligible set
What-if limits and the eligible set
Voice class (loss, latency, jitter)Eligible tunnelsWhat changed
2, 150, 30 (the course voice class)mplsThe baseline: only mpls meets all three limits
2, 150, 40mpls and lteOnly the jitter limit moved, which admits lte (jitter 35)
1, 50, 10mplsTight, but mpls still meets it: latency 46 against 50 leaves 4 ms
1, 40, 10NoneThe case below: mpls misses latency by 6 ms
4, 150, 45mpls, biz-internet and lteLoose enough that biz-internet (loss 4, jitter 41) qualifies, so a poor tunnel stays in the set
Worked out by script from the measurements above, reading each limit as at most. These are what-if values for the lesson, not recommendations: the right limits come from what users need and what the underlay can deliver.

Keep the number of classes small. A voice class, a video or interactive class and a default class cover many designs. Applications that need the same quality share a class, and the policy sequences decide which applications go to which. Each extra class is another set of limits to tune and another table to read during an incident.

A worked case: the class that nothing could meet

An engineer tightened the voice class to protect call quality: loss 1, latency 40 and jitter 10, and marked the policy strict. After the policy was activated, every call from the branch BR-04 failed at once. Data traffic was fine. The class limits on the edge and the measurements for the tunnels explain it.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-04#show sdwan app-route sla-class
INDEX  NAME      LOSS  LATENCY  JITTER
0      VOICE     1     40       10
1      VIDEO     3     200      50
2      DEFAULT   10    500      100
The voice class now has a latency limit of 40 ms. The measurements from the previous section are still the same: the best tunnel, mpls, has a latency of 46 ms.
Diagram
The new voice class against the same tunnels
The new voice class against the same tunnels
TunnelMeasuredVOICE 1, 40, 10Result
mplsloss 0, latency 46, jitter 7Fails latency: 46 is above 40Not eligible
biz-internetloss 4, latency 58, jitter 41Fails all threeNot eligible
lteloss 1, latency 120, jitter 35Fails latency and jitterNot eligible
Not one tunnel qualifies, and the best one misses by 6 ms. With the policy marked strict, voice has nowhere to go.
Diagram
Evidence from the case
Evidence from the case

Calls from BR-04 failed after a policy change. The voice class was tightened to a latency of 40 milliseconds. The best tunnel measures 46. No tunnel qualifies and the policy is strict, so the calls are dropped.

  1. SymptomAll calls from BR-04 failData traffic is fine
  2. Class on the edgeVOICE: loss 1, latency 40, jitter 10Tightened that day
  3. MeasurementsBest tunnel mpls: latency 46No tunnel meets all three
  4. FixSet limits the underlay can meetCheck the eligible set, then activate
The underlay did not change. The limit moved past what the best transport can deliver.

The repair is to set limits that the best transport can meet, such as the earlier 2, 150 and 30, and to check the table above before activating. The strict setting was the right tool in the wrong place: it turned a limit that was too tight into an outage. Verify twice after the change: read the class on the edge, and confirm that the voice flows sit on the mpls tunnel again. Allow for the averaging window, since the eligible set changes only after the measurements settle.

Threshold problems and the first check

Diagram
Symptoms and the first check
Symptoms and the first check
SymptomFirst checkCommon cause
All calls from one site fail after a policy changeThe class limits on the edge against the measured tunnelsA limit tighter than any tunnel can meet, with strict set
Voice sits on a poor tunnelThe class limits and the tunnel measurementsA limit looser than the quality users need
Traffic moves between tunnels all dayHow close the measurements sit to the limitA threshold inside the normal variation of a healthy tunnel
A preferred color is not usedIs that tunnel in the eligible set for the class?The preferred color fails one of the three limits
Compare the class on the edge with the measured values before you change a policy. The numbers show which side is wrong.

Learn more: QoS, AAR and Application PerformanceSD-WAN Policy TypesSD-WAN Root-Cause Framework

Test yourself

Predict · scenario 1

The voice class allows loss 2, latency 150 and jitter 30. A tunnel measures loss 1, latency 120 and jitter 35. Is it eligible for voice?

Predict · scenario 2

No tunnel meets the limits of a class and the policy is not strict. What happens to the traffic?

Predict · scenario 3

An engineer sets the voice latency limit to 40 ms to be safe. The best tunnel measures 46 ms and the policy is strict. What do users see?

Predict · scenario 4

Why check the eligible set on every tunnel before activating new limits?

Predict · scenario 5

The voice class is loss 2, latency 150 and jitter 30. Which single change admits lte (loss 1, latency 120, jitter 35) without admitting biz-internet (loss 4, latency 58, jitter 41)?

Predict · scenario 6

A voice class of loss 1, latency 50 and jitter 10 is tested against BR-04's tunnels (mpls: 0, 46, 7; biz-internet: 4, 58, 41; lte: 1, 120, 35). Which tunnels are eligible?

Predict · scenario 7

biz-internet measures loss 4, latency 58 and jitter 41. Its loss improves to 3. The VIDEO class is loss 3, latency 200 and jitter 50. What changes?

FAQ

Must a tunnel meet all three limits?
Yes. Loss, latency and jitter are tested together, and a tunnel that fails any one of them is not eligible for that class at that moment. A tunnel with perfect latency and loss can still be excluded by jitter.
What does strict change?
Without it, a flow that finds no eligible tunnel is not dropped; it follows normal forwarding, which can include a tunnel that fails the limits. With strict, the flow is dropped when nothing qualifies. The option names and any best-path fallback differ between releases, so read the policy builder in yours.
Should every application get its own class?
No. Group applications that need the same quality and share one class. A device supports a limited number of classes in a policy, and every extra class is one more set of limits to tune and explain.
Where do the measurements come from?
From probes that run inside each tunnel. The edge collects loss, latency and jitter in intervals and averages several of them before it changes the set of eligible tunnels, so a short bad moment does not move traffic. Check whether your release reports latency as round trip or one way before you compare it with a limit.