Traffic engineering and real-time quality
Define the real-time requirement
Voice and interactive video care about latency, delay variation and packet loss, not just average bandwidth. One-way delay includes processing, queueing, serialization and propagation. A playback buffer absorbs some variation at the cost of extra latency. Define a measurement interval, clock assumptions and application-specific targets before making changes; do not assume one threshold suits every codec or service.
Include the packet overhead
Suppose a fictional voice stream sends 160 payload bytes every 20 ms, using 12-byte RTP, 8-byte UDP and 20-byte IPv4 headers without options. There are 50 packets/s. Payload rate is 64 kbit/s; IP packet rate is 80 kbit/s (200 × 8 × 50). If the lab budget includes 38 additional Ethernet wire byte-times per packet (header, FCS, preamble/SFD and interframe gap; no VLAN), the accounted rate is 95.2 kbit/s. Ten streams in one direction need 952 kbit/s before other traffic and margin. A 1,500-byte accounted frame at 10 Mbit/s occupies 1.2 ms. Real tunnels, IPv6, encryption and different packetization change these values.
Calculate loss and variation
In a synthetic window, 100 unique packets were sent and 97 distinct packets arrived before a stated deadline. Deadline loss is 3%. For three consecutive received packets, measured one-way delays are 20, 26 and 23 ms with synchronized clocks. Signed consecutive delay differences are +6 and −3 ms. Our teaching metric, mean absolute consecutive difference, is (6+3)/2 = 4.5 ms. This is not the RTP interarrival jitter estimator, which smooths transit-time differences with a 1/16 update in RTP timestamp units (RFC 3550). RTP sequence numbers and RTCP reports help monitor media but do not reserve capacity.
Sent: 100; distinct on-time received: 97Delays (ms): 20, 26, 23Signed differences: +6, -3Mean absolute difference: 4.5 msEngineer the bottleneck
Traffic engineering plans where traffic travels and how scarce resources are assigned. Suppose two paths have equal delay when idle: A has 10 Mbit/s capacity and 9 Mbit/s existing demand, B has 20 Mbit/s capacity and 8 Mbit/s demand. A new 4 Mbit/s stream aggregate would overload A by 3 Mbit/s but fits B with 8 Mbit/s spare afterward. Check policy, failure capacity, actual path delay and both directions before choosing B. Admission control, routing policy and capacity upgrades complement QoS. Reservation requires an actual mechanism and participating domains; a priority mark alone is not a reservation.
Validate service quality end to end
Run a paper comparison using the same traffic contract and supplied observations at each bottleneck. Track per-class delay percentiles, loss, offered and delivered rate, plus lower-priority service. A local EF queue cannot guarantee treatment across an ISP or Wi-Fi segment. Report clock error, sampling and missing packets; distinguish synthetic results from measurements. Practice with 200 packets, 194 on time and delays 15, 19, 17 ms. Calculate loss and the same absolute-difference metric, then propose one capacity or queue change and a verification test.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Traffic engineering and real-time quality Quiz
Apply QoS concepts to synthetic offline scenarios.
A 160-byte payload every 20 ms has what payload rate?
200 unique packets sent, 194 distinct on time. What is deadline loss?
For delays 15, 19, 17 ms, what is mean absolute consecutive difference?
What does an RTP stream guarantee by itself?
A 20 Mbit/s path has 8 Mbit/s demand. After adding 4 Mbit/s, how much spare capacity remains?