Course contents

Unit 11: Lifecycle and deep troubleshootingLesson 11.5 (5 of 7 in this unit)55 of 63 in the Advanced Cisco SD-WAN course

QoS, AAR and application performance

A slow or choppy application, traced through four layers: classification, the path decision, measured loss, latency and jitter, and the local egress queue.

Advanced · 17 min read

You'll learn to troubleshoot a slow or choppy application in four steps (classification, path decision, path quality, local queue), read the evidence for each, and tell a policy that is not applied from a path that is genuinely bad.

Technical definition

Application performance troubleshooting in SD-WAN means finding which of four layers is responsible when an application is slow, choppy or unreliable. The traffic must be recognised and marked correctly, the application-aware routing policy must choose a path that meets the application's loss, latency and jitter limits, that path must actually be meeting them, and the local egress queue must not be discarding the packets.

Four layers, in order

"The application is slow" can mean at least four different things, and the cheapest checks come first. Start where the packet starts and move outward. Is the application recognised and marked as intended? Does the policy choose a sensible path for it? Is that path really meeting its limits right now? And is the local interface discarding packets before they reach the provider?

Diagram
Application troubleshooting order
Application troubleshooting order

Classification, the path decision, measured path quality, then the local queue.

  1. Classifyrecognised andmarked right?
  2. Decidepolicy applied,path chosen?
  3. Measureloss, latency,jitter on path
  4. Queuedrops on theegress interface
A fault at an early step makes the later steps look wrong, so do not skip ahead.
Diagram
Where an application complaint can come from
Where an application complaint can come from

The traffic is not recognised, the policy is not applied or chooses badly, the path itself is poor, or the local queue drops packets.

Slow or choppy application
  • Not recognisedwrong class orno marking
  • Bad decisionpolicy missingor too loose
  • Bad pathloss, delay,jitter high
  • Local dropsqueue full onthe WAN link
Each branch has its own command, shown in the table below.
Diagram
One command for each layer
One command for each layer
LayerQuestionCommand on the edgeWhat a problem looks like
ClassificationIs the traffic marked as planned?show sdwan app-fwd cflowd flowsVoice flows with a default marking
DecisionIs a policy applied to this site?show sdwan policy from-vsmartNo application-aware policy listed
DecisionWhat are the limits for each class?show sdwan app-route sla-classLimits looser than the application needs
Path qualityWhat is each tunnel measuring?show sdwan app-route statsLoss, latency or jitter above the class limit
QueueIs the egress interface dropping?show policy-map interface GigabitEthernet1Drops in the class that carries the application
Command names and columns differ between releases. Check the guide for yours.

Read the path quality first

Measured quality is the fastest way to split "the path is bad" from "the policy chose badly". The edge keeps loss, latency and jitter for every tunnel, taken from the probes that run inside it. Each class of traffic has limits, and a tunnel is eligible for that class only while it stays inside them.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan app-route sla-class
INDEX  NAME      LOSS  LATENCY  JITTER
0      VOICE     2     150      30
1      VIDEO     3     200      50
2      DEFAULT   10    500      100
Three classes with their limits: loss as a percentage, latency and jitter in milliseconds. Voice is the strictest, which is why it is usually the first application to complain. The numbers here are examples; the right limits come from the application vendor and from what the underlay can really deliver.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#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
The mpls tunnel meets every class. The biz-internet tunnel has 4 percent loss and 41 ms of jitter, so it is outside the voice limits but inside the default class. Voice should be on mpls. The next step is to find out which tunnel the voice calls actually use.
Diagram
Which classes each tunnel meets
Which classes each tunnel meets
TunnelVoice (2, 150, 30)Video (3, 200, 50)Default (10, 500, 100)
mpls to HUB-01 (0, 46, 7)MeetsMeetsMeets
biz-internet to HUB-01 (4, 58, 41)Fails: loss, jitterFails: lossMeets
Each figure is loss percent, latency in ms and jitter in ms, compared by script with the example limits above. A tunnel meets a class only when all three values are inside its limits.
Diagram
One tunnel fits voice, the other does not
One tunnel fits voice, the other does not

The MPLS tunnel has no loss and low jitter and meets the voice class. The internet tunnel has four percent loss and high jitter and fits only the default class.

mpls to the hubloss 0, jitter 7Meets voice,video and default
biz-internet to the hubloss 4, jitter 41Fails voice,fits default only
AAR can only help when at least one tunnel meets the limits. Here one does.

A worked case: the policy that was not applied

At 15:00, users at the new branch BR-02 report choppy calls to the hub. The measured quality above shows that mpls is healthy and biz-internet is poor, so the path exists. The calls are still choppy, so the decision layer is the next place to check: either no policy steers voice, or it steers it wrongly.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan policy from-vsmart
from-vsmart sla-class VOICE
 loss 2  latency 150  jitter 30
(no app-route-policy is applied to this site)
The SLA class is known, because the Controller sends the definitions to every edge. But no application-aware routing policy is attached to this site. Without it, voice follows the normal forwarding behaviour and is spread over both transports, so about half of the calls use the lossy internet path.

This is a common fault in a growing network. Policies are attached to site lists, and a branch built after the policy was written is not in the list. The policy is correct and active for every older site, so nobody looks at it again. The test is cheap: read the applied policy on the affected edge, not the policy in the Manager.

Diagram
Evidence from the case
Evidence from the case

Voice is choppy at BR-02, the mpls path is healthy, the internet path is poor, and no application-aware policy is applied to BR-02.

  1. SymptomChoppy calls from BR-02 to the hubOther branches are fine
  2. Path qualitympls: loss 0, jitter 7biz-internet: loss 4, jitter 41
  3. Policy on the edgeNo app-route-policy appliedSLA class definitions are present
  4. CauseBR-02 is missing from the policy's site listVoice is spread over both transports
The path is not the problem. The decision is, and the evidence is on the affected edge.

The repair is to add BR-02's site ID to the site list and activate the policy again. Then verify twice: read the applied policy on the edge, and check that the voice flows now sit on the mpls tunnel. Allow for the averaging window described earlier, since flows move only after the measurements settle.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan policy from-vsmart
from-vsmart sla-class VOICE
 loss 2  latency 150  jitter 30
from-vsmart app-route-policy VOICE-ON-MPLS
 vpn-list CORP-VPN
  sequence 1
   match app-list VOICE
   action sla-class VOICE preferred-color mpls
After the site list is corrected and the policy is activated again, the edge lists the application-aware routing policy. This is the first of the two checks. The second is to confirm that the voice flows sit on the mpls tunnel once the measurements settle.
Diagram
How long the averaging window lasts
How long the averaging window lasts
Poll intervalMultiplierWindowReading
120 seconds6720 seconds12 minutes
300 seconds61,800 seconds30 minutes
600 seconds63,600 seconds60 minutes
600 seconds31,800 seconds30 minutes
Example values multiplied by script. The window is the poll interval times the multiplier. Defaults differ between releases, so read the values on the edge before judging how long a change should take.

When the path and the policy are fine

If the policy is applied and the chosen path meets the limits but the application still suffers, look at the local queue. The measurements describe the tunnel. They do not describe packets that were discarded in your own egress queue before they left the router, and those drops hit user traffic and the tunnel probes alike.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show policy-map interface GigabitEthernet1
GigabitEthernet1
  Service-policy output: WAN-QOS
    Class-map: VOICE (match-any)
      Priority: 20% (2000 kbps)  drops 0
    Class-map: class-default (match-any)
      queue limit 64 packets     drops 4812
The voice class has no drops, because it has priority treatment. The default class has 4,812 drops, so the link is congested and bulk traffic is losing packets. If the voice class were dropping instead, the next questions would be how much bandwidth is reserved for it and whether the marking puts the right traffic in that class.
Diagram
Symptom and the layer to check first
Symptom and the layer to check first
What users reportFirst layerWhy
Only the newest branch has choppy callsDecisionA site left out of the policy's site list has no application-aware policy
Every branch on one transport is choppyPath qualityThe measured loss or jitter on that transport is above the class limit
Choppy at busy hours while tunnel statistics look cleanQueueDrops happen on the egress interface before the tunnel measures anything
One application is slow and others are fineClassificationThe application may be marked or matched into the wrong class
Each row names where to start. Walk the four layers in order if the first guess shows nothing.

Do not read a clean tunnel measurement as proof that the interface is healthy, and do not read queue drops as proof that the provider is at fault. They are two separate places where packets can be lost, and the measured path quality and the queue counters answer different questions.

Learn more: QoS Concepts in SD-WANSD-WAN Policy TypesSD-WAN Root-Cause Framework

Test yourself

Predict · scenario 1

Voice is choppy at one new branch. Measured quality shows the mpls tunnel is healthy. show sdwan policy from-vsmart on that branch lists the SLA classes but no application-aware routing policy. What is the most likely cause?

Predict · scenario 2

The chosen path meets the voice limits, but show policy-map interface shows drops in the voice class on the WAN interface. Where is the problem?

Predict · scenario 3

Both tunnels fail the voice limits. What can application-aware routing do?

Predict · scenario 4

Why does the switch to a better path take a while after a problem starts?

Predict · scenario 5

A tunnel measures loss 4 percent, latency 58 ms and jitter 41 ms. The classes are voice (2, 150, 30), video (3, 200, 50) and default (10, 500, 100). Which classes does it meet?

Predict · scenario 6

With example values of a 300 second poll interval and a multiplier of 6, how long is the averaging window?

Predict · scenario 7

BR-02 has been added to the policy's site list and the policy is activated again. Which check confirms the fix on the edge?

FAQ

Does application-aware routing fix a congested link?
Not directly. It moves flows to a path that meets the application's limits, so it helps when another path is healthier. It does not add bandwidth, and it does not control the local egress queue, where QoS decides which traffic is delayed or dropped when the interface is full.
Why can a policy exist and still not affect a branch?
A centralised policy applies only to the sites in the site list it is attached to. A new branch left out of that list has no application-aware policy, so its traffic follows the default behaviour even though the policy looks correct in the Manager.
Why is the switch to a better path not instant?
The edge measures loss, latency and jitter in intervals and compares several of them before it changes the path, so that a single bad sample does not move traffic back and forth. That averaging window can be minutes on default settings. Read the values in your release before you tune them.
Are queue drops counted in the tunnel measurements?
They hurt the measurements indirectly. The tunnel probes share the same egress interface as user traffic, so a congested queue can delay or drop probes as well as user packets. Check the queue counters before you blame the provider.