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.
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.
- Lossat most2 percent
- Latencyat most150 ms
- Jitterat most30 ms
- Ruleall threemust hold
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.
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 | Measured | VOICE 2, 150, 30 | VIDEO 3, 200, 50 | DEFAULT 10, 500, 100 |
|---|---|---|---|---|
| mpls | loss 0, latency 46, jitter 7 | Eligible | Eligible | Eligible |
| biz-internet | loss 4, latency 58, jitter 41 | No: loss and jitter | No: loss | Eligible |
| lte | loss 1, latency 120, jitter 35 | No: jitter | Eligible | Eligible |
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.
- Measureaveraged loss,latency, jitter
- Compareagainst allthree limits
- Eligible settunnels thatpass all three
- Choosepreferred colorinside the set
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.
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.
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.
| Situation | Result | Design note |
|---|---|---|
| At least one tunnel is eligible | Traffic uses an eligible tunnel; the preferred color wins when it is eligible | The normal case |
| The preferred color is not eligible but another is | An eligible tunnel in another color is used | Preference is a wish, not a guarantee |
| No tunnel is eligible, policy not strict | Traffic is not dropped; it follows normal forwarding, which can use a tunnel that fails the limits | A poor call is usually better than no call |
| No tunnel is eligible, policy strict | Traffic is dropped | Only for traffic that must not use a poor path |
With fallback, traffic keeps flowing over a path that may be poor. With strict, traffic stops when no path is good enough.
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.
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.
- Baselinemeasure eachtunnel
- Draftlimits abovenormal
- Checkeligible setper tunnel
- Fail onetest thefallback
- Recordvalues andreasons
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.
| Voice class (loss, latency, jitter) | Eligible tunnels | What changed |
|---|---|---|
| 2, 150, 30 (the course voice class) | mpls | The baseline: only mpls meets all three limits |
| 2, 150, 40 | mpls and lte | Only the jitter limit moved, which admits lte (jitter 35) |
| 1, 50, 10 | mpls | Tight, but mpls still meets it: latency 46 against 50 leaves 4 ms |
| 1, 40, 10 | None | The case below: mpls misses latency by 6 ms |
| 4, 150, 45 | mpls, biz-internet and lte | Loose enough that biz-internet (loss 4, jitter 41) qualifies, so a poor tunnel stays in the set |
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.
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
| Tunnel | Measured | VOICE 1, 40, 10 | Result |
|---|---|---|---|
| mpls | loss 0, latency 46, jitter 7 | Fails latency: 46 is above 40 | Not eligible |
| biz-internet | loss 4, latency 58, jitter 41 | Fails all three | Not eligible |
| lte | loss 1, latency 120, jitter 35 | Fails latency and jitter | Not eligible |
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.
- SymptomAll calls from BR-04 failData traffic is fine
- Class on the edgeVOICE: loss 1, latency 40, jitter 10Tightened that day
- MeasurementsBest tunnel mpls: latency 46No tunnel meets all three
- FixSet limits the underlay can meetCheck the eligible set, then activate
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
| Symptom | First check | Common cause |
|---|---|---|
| All calls from one site fail after a policy change | The class limits on the edge against the measured tunnels | A limit tighter than any tunnel can meet, with strict set |
| Voice sits on a poor tunnel | The class limits and the tunnel measurements | A limit looser than the quality users need |
| Traffic moves between tunnels all day | How close the measurements sit to the limit | A threshold inside the normal variation of a healthy tunnel |
| A preferred color is not used | Is that tunnel in the eligible set for the class? | The preferred color fails one of the three limits |
Learn more: QoS, AAR and Application PerformanceSD-WAN Policy TypesSD-WAN Root-Cause Framework
Test yourself
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?
No tunnel meets the limits of a class and the policy is not strict. What happens to the traffic?
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?
Why check the eligible set on every tunnel before activating new limits?
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)?
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?
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?