Course contents

Unit 5: QoS and AppQoELesson 5.3 (3 of 7 in this unit)24 of 63 in the Advanced Cisco SD-WAN course

Voice, video and interactive traffic design

How to design for voice and video: the one-way delay budget and what is left for the tunnel, sizing the priority class from concurrent calls, a weighted class for video, and a worked case where an all-hands stream froze interactive calls.

Advanced · 15 min read

You'll learn to split a voice delay budget into its parts and find what is left for the WAN tunnel, size a priority class from concurrent calls, say why video belongs in a weighted class, and test a design against a busy-hour event.

Technical definition

A delay budget is the total one-way delay a conversation can tolerate, split into the parts that add to it: encoding, the LAN, queueing at the edge, the tunnel across the WAN, the far side and the receiver's jitter buffer. Only one of those parts is the WAN. What remains for it after the others are counted is the number to put in the SLA class.

Voice, video and signalling are different loads

A design that treats all real-time traffic the same fails in at least one of its parts. Voice is small and steady. Interactive video is large and changes with the picture. Streaming video is buffered by the player. Signalling is small but must arrive, or calls do not start. The class and the queue follow from the pattern.

Diagram
Four loads, four kinds of queue
Four loads, four kinds of queue

Voice goes in a priority queue with a limit. Video calls go in a weighted class with a guaranteed share. Streaming video goes in a weighted class kept apart from the calls. Signalling goes in a small weighted class.

Real-time traffic
  • Voicepriority,with a limit
  • Video callsweighted,guaranteed share
  • Streamingweighted,kept apart
  • Signallingsmall weightedclass
The queue follows from the traffic pattern, not from how important the traffic feels.
Diagram
Real-time traffic and where it belongs
Real-time traffic and where it belongs
TrafficPacket patternWhat hurts itUsual queue
Voice mediaSmall packets, about 50 per second per call, steadyDelay, jitter and loss, even a littlePriority, with a limit
Interactive videoLarger packets, bursts, rate follows the pictureLoss shows as freezes and blocksWeighted, with a guaranteed share
Streaming videoLarge, buffered by the playerLow throughput, not small delayWeighted, kept apart from interactive video
SignallingSmall burstsLoss delays call set-upA small weighted class
The queue column is a common design, not a rule. The platform and the provider contract can change it.

The one-way delay budget

A commonly quoted planning target for voice is 150 ms one way. The budget is spent in several places, and the tunnel across the WAN is only one of them. The table uses assumed values to show the arithmetic.

Diagram
Where the 150 ms are spent (assumed values)
Where the 150 ms are spent (assumed values)
PartOne-way delayRunning total
Packetisation and codec25 ms25 ms
LAN and edge5 ms30 ms
Edge queue and serialisation15 ms45 ms
Tunnel across the WAN50 ms95 ms
Far edge5 ms100 ms
Far LAN5 ms105 ms
Receiver jitter buffer40 ms145 ms
The total is 145 ms, which leaves 5 ms of margin. A path that adds a 40 ms detour through a regional hub takes the total to 185 ms.

Work backwards for the SLA class. The parts outside the tunnel add up to 95 ms, so the tunnel may use at most 55 ms of a 150 ms budget. That is the number the SLA class has to enforce, not 150. Check whether your release reports latency as one way or as a round trip. If it is a round trip, the same limit reads 110 ms.

Diagram
Same call, two paths
Same call, two paths

The direct path leaves the call within its budget at 145 milliseconds. A path through a regional hub adds 40 milliseconds and takes the call to 185 milliseconds, which is over the 150 millisecond target.

Direct path145 ms total5 ms margin
Hub detour185 ms total35 ms over
A path decision spends delay budget. The SLA latency limit is what stops AAR from choosing the detour for voice.

Size the priority class from concurrent calls

The priority class has to hold the busiest number of calls at once, at the rate each call takes on the wire. From the earlier lesson, with 70 bytes of encapsulation assumed, a G.711 call takes about 108 kbps and a G.729 call about 52 kbps. Estimate the peak concurrency for the site, multiply, add headroom for growth and signalling, and round up.

Diagram
From users to a priority limit
From users to a priority limit

Start with 600 users and assume 12 percent are on a call at the peak, which is 72 calls. At 108 kilobits a call that is 7.78 megabits. Add 20 percent headroom for 9.33 and round up to a limit of 10 megabits.

  1. Users600 at thesite
  2. Calls12 percent:72 at the peak
  3. Voice72 x 108 kbps= 7.78 Mbps
  4. Headroomplus 20 percent= 9.33 Mbps
  5. Limitround up:10 Mbps
The assumed peak share is the number that moves the answer most.
Diagram
Sizing for a 600-user site (assumed values)
Sizing for a 600-user site (assumed values)
StepG.711G.729
Users600600
Peak share on a call (assumed 12 percent)72 calls72 calls
Rate per call on the wire108 kbps52 kbps
Voice at the peak7.78 Mbps3.74 Mbps
With 20 percent headroom9.33 Mbps4.49 Mbps
Priority limit, rounded up10 Mbps5 Mbps
On a link shaped to 95 Mbps, a 10 Mbps limit is 10.5 percent of the rate. A commonly quoted design guideline caps all priority traffic at about a third of the link, which here is 31.7 Mbps.

The assumed peak share is a guess, so it is worth seeing how far the answer moves when the guess is wrong. The table repeats the sizing for four peak shares at the same 600-user site.

Diagram
How the priority limit moves with the peak share (computed)
How the priority limit moves with the peak share (computed)
Peak share on a callCallsG.711 limitG.729 limit
8 percent487 Mbps (7.4 percent of 95)3 Mbps
12 percent7210 Mbps (10.5 percent of 95)5 Mbps
16 percent9613 Mbps (13.7 percent of 95)6 Mbps
20 percent12016 Mbps (16.8 percent of 95)8 Mbps
Computed by script with 20 percent headroom, 108 kbps for G.711 and 52 kbps for G.729, rounded up to whole megabits. The limit roughly doubles when the peak share goes from 8 to 16 percent, and every row stays well under the one-third guideline of 31.7 Mbps.

The limit does two jobs. It is what voice can use, and it is the most that voice can take from everyone else. A limit far above the real peak leaves room for other traffic to be pushed into the priority class by mistake, which the scheduling lesson showed is how voice gets hurt.

Video: size for the busy meeting, share by weight

Video needs a share of the weighted classes, not a priority cap. Take the shaped 95 Mbps, less the 10 Mbps priority limit, which leaves 85 Mbps. With weights of 25 for video, 35 for business data and 20 for default, the video class is guaranteed 85 times 25 divided by 80, which is 26.6 Mbps whenever the other classes are busy. It can use more when they are quiet. Compare that guarantee with the busiest video demand at the site, for example eight calls at 2 Mbps in each direction, which is 16 Mbps and fits.

Diagram
Checking a video class
Checking a video class

Find the shaped rate, subtract the priority limit, apply the video weight to get the guaranteed share, and compare it with the busiest video demand.

  1. Shaped rate95 Mbps
  2. Less priority95 - 10 =85 Mbps
  3. Video weight25 of 80 =26.6 Mbps
  4. Busy demand8 x 2 =16 Mbps
  5. Compare16 is under26.6, fits
If the demand is larger than the guarantee, the design needs a bigger weight or less video, before the first meeting.

Worked example: the all-hands that froze the calls

Voice is clean all week. At 10:00 on Thursday the company streams an all-hands meeting, and 20 viewers at the branch each pull a 3 Mbps stream. At the same moment, interactive video calls freeze. The stream is marked the same as interactive video, so both are in the video class.

Diagram
Branch demand at 10:00 on Thursday (example values)
Branch demand at 10:00 on Thursday (example values)
DemandCalculationResult
Interactive video, busy8 calls times 2 Mbps16 Mbps
All-hands stream20 viewers times 3 Mbps60 Mbps
Total in the video class16 plus 6076 Mbps
Guaranteed share when others are busy85 times 25 divided by 8026.6 Mbps
Shortfall in the class76 minus 26.649.4 Mbps
The class receives about 35 percent of what it is asked for. The calls and the stream lose packets together because they share one queue.
Diagram
Evidence from the all-hands case
Evidence from the all-hands case

Interactive video freezes only at 10:00 on Thursday. The all-hands stream adds 60 megabits to a video class whose guaranteed share is 26.6. Calls and stream share one queue, so both lose packets. The fix keeps the stream in a class of its own.

  1. SymptomCalls freeze only at 10:00 on Thursdayvoice and the tunnel look clean
  2. Demand16 Mbps of calls plus 60 Mbps of stream76 Mbps in one class
  3. ShareGuaranteed 26.6 Mbps when others are busy49.4 Mbps short
  4. CauseCalls and stream share one queueso both lose packets
  5. FixOwn class for the stream, with its ownweight, and fewer viewers at the branch
The class was sized for calls. A broadcast is a different load and needs its own class.

The fix has three parts. Give the stream a class of its own so that it can lose packets without taking the calls with it. Set that class's weight or cap from what the business accepts for an all-hands, which may be less than every viewer at full rate. And reduce the load at the source: many video platforms have a way to distribute the stream inside a site, so that one copy crosses the WAN, and the platform documentation says what is available.

It is tempting to raise the video weight instead. The table shows what that would take. With business data at weight 35 and default at 20, the video weight needed to guarantee a load out of the 85 Mbps is the load times 55 divided by what is left over.

Diagram
Video weight needed to guarantee a load (computed)
Video weight needed to guarantee a load (computed)
Load in the classWeight neededShare of the 85 MbpsLeft for business and default
16 Mbps (the calls alone)12.8, so the 25 in use is enough18.8 percent69 Mbps
36 Mbps (calls plus a stream held to 20 Mbps)40.442.4 percent49 Mbps
76 Mbps (calls plus 20 viewers at 3 Mbps)464.489.4 percent9 Mbps
Computed by script from 85 Mbps after the priority limit and a combined weight of 55 for business data and default. A guarantee of 76 Mbps would leave 9 Mbps for everything else, which is why the fix is a separate class and a smaller load, not a bigger weight.

Learn more: Classification and SchedulingSLA Classes and Policy Thresholds

Test yourself

Predict · scenario 1

A voice budget is 150 ms one way. The parts outside the tunnel add up to 95 ms. What is the most the tunnel can use?

Predict · scenario 2

A site has 600 users and 12 percent are on a call at the busiest moment. Each G.711 call takes 108 kbps. What is the voice load at the peak?

Predict · scenario 3

Why is interactive video not placed in the priority queue?

Predict · scenario 4

The shaped rate is 95 Mbps, the priority limit is 10 Mbps, and video has weight 25 out of 80. What does the video class receive when the other classes are busy?

Predict · scenario 5

Interactive calls freeze during a company stream that shares their class. What is the best first fix?

Predict · scenario 6

At the 600-user site the peak share on a call rises from 12 to 16 percent. With G.711 at 108 kbps a call and 20 percent headroom, what priority limit, rounded up to a whole megabit, is needed?

Predict · scenario 7

A voice budget is 150 ms one way, and the parts outside the tunnel use 95 ms. The release reports tunnel latency as a round trip. What latency limit belongs in the SLA class?

Predict · scenario 8

To guarantee 76 Mbps to the video class by weight alone, the weight would have to be about 464 against 55 for business data and default together. What does that show?

FAQ

Where does the 150 ms figure come from?
It is a commonly quoted design target for one-way delay in voice, from ITU guidance. Conversations above it start to feel awkward, though many users cope with more. Treat it as a planning number, not a measured limit for your users.
Why size the priority class from calls, not from users?
Only some users are on a call at the same time. The load is the busiest number of simultaneous calls, so the estimate needs a peak concurrency for the site. Using every user would oversize the class, which then takes room from other traffic.
Should video go in the priority queue?
Not usually. Its rate changes with the picture and it comes in large bursts, so it is hard to bound. A class with a limit that is too small drops it, and one that is large enough takes room from voice. A weighted class with a guaranteed share suits it better.
Does the SLA limit equal the whole delay budget?
No. The tunnel's measurement covers only the WAN part. The limit has to leave room for the parts that the probes do not see, which is why it is lower than the budget.