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.
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.
- Voicepriority,with a limit
- Video callsweighted,guaranteed share
- Streamingweighted,kept apart
- Signallingsmall weightedclass
| Traffic | Packet pattern | What hurts it | Usual queue |
|---|---|---|---|
| Voice media | Small packets, about 50 per second per call, steady | Delay, jitter and loss, even a little | Priority, with a limit |
| Interactive video | Larger packets, bursts, rate follows the picture | Loss shows as freezes and blocks | Weighted, with a guaranteed share |
| Streaming video | Large, buffered by the player | Low throughput, not small delay | Weighted, kept apart from interactive video |
| Signalling | Small bursts | Loss delays call set-up | A small weighted class |
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.
| Part | One-way delay | Running total |
|---|---|---|
| Packetisation and codec | 25 ms | 25 ms |
| LAN and edge | 5 ms | 30 ms |
| Edge queue and serialisation | 15 ms | 45 ms |
| Tunnel across the WAN | 50 ms | 95 ms |
| Far edge | 5 ms | 100 ms |
| Far LAN | 5 ms | 105 ms |
| Receiver jitter buffer | 40 ms | 145 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.
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.
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.
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.
- Users600 at thesite
- Calls12 percent:72 at the peak
- Voice72 x 108 kbps= 7.78 Mbps
- Headroomplus 20 percent= 9.33 Mbps
- Limitround up:10 Mbps
| Step | G.711 | G.729 |
|---|---|---|
| Users | 600 | 600 |
| Peak share on a call (assumed 12 percent) | 72 calls | 72 calls |
| Rate per call on the wire | 108 kbps | 52 kbps |
| Voice at the peak | 7.78 Mbps | 3.74 Mbps |
| With 20 percent headroom | 9.33 Mbps | 4.49 Mbps |
| Priority limit, rounded up | 10 Mbps | 5 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.
| Peak share on a call | Calls | G.711 limit | G.729 limit |
|---|---|---|---|
| 8 percent | 48 | 7 Mbps (7.4 percent of 95) | 3 Mbps |
| 12 percent | 72 | 10 Mbps (10.5 percent of 95) | 5 Mbps |
| 16 percent | 96 | 13 Mbps (13.7 percent of 95) | 6 Mbps |
| 20 percent | 120 | 16 Mbps (16.8 percent of 95) | 8 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.
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.
- Shaped rate95 Mbps
- Less priority95 - 10 =85 Mbps
- Video weight25 of 80 =26.6 Mbps
- Busy demand8 x 2 =16 Mbps
- Compare16 is under26.6, fits
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.
| Demand | Calculation | Result |
|---|---|---|
| Interactive video, busy | 8 calls times 2 Mbps | 16 Mbps |
| All-hands stream | 20 viewers times 3 Mbps | 60 Mbps |
| Total in the video class | 16 plus 60 | 76 Mbps |
| Guaranteed share when others are busy | 85 times 25 divided by 80 | 26.6 Mbps |
| Shortfall in the class | 76 minus 26.6 | 49.4 Mbps |
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.
- SymptomCalls freeze only at 10:00 on Thursdayvoice and the tunnel look clean
- Demand16 Mbps of calls plus 60 Mbps of stream76 Mbps in one class
- ShareGuaranteed 26.6 Mbps when others are busy49.4 Mbps short
- CauseCalls and stream share one queueso both lose packets
- FixOwn class for the stream, with its ownweight, and fewer viewers at the branch
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.
| Load in the class | Weight needed | Share of the 85 Mbps | Left for business and default |
|---|---|---|---|
| 16 Mbps (the calls alone) | 12.8, so the 25 in use is enough | 18.8 percent | 69 Mbps |
| 36 Mbps (calls plus a stream held to 20 Mbps) | 40.4 | 42.4 percent | 49 Mbps |
| 76 Mbps (calls plus 20 viewers at 3 Mbps) | 464.4 | 89.4 percent | 9 Mbps |
Learn more: Classification and SchedulingSLA Classes and Policy Thresholds
Test yourself
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?
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?
Why is interactive video not placed in the priority queue?
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?
Interactive calls freeze during a company stream that shares their class. What is the best first fix?
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?
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?
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?