Quality of Service (QoS) and Improving Techniques
1. What is Quality of Service (QoS)?
Quality of Service (QoS) is a set of technologies, protocols, and architectural mechanisms that enable a network to provide differentiated service guarantees to selected network traffic over diverse underlying technologies.
In traditional "Best-Effort" IP networks, all packets are treated equally with zero delivery guarantees. For interactive multimedia (Zoom calls, VoIP telephony, financial high-frequency trading), best-effort delivery causes voice distortion, buffering, and packet dropouts.
2. Four Core QoS Metrics
Flow Sensitivity Comparison:
- Real-Time Voice (VoIP): Extremely sensitive to Delay () and Jitter (), but tolerates minor packet loss ().
- File Transfer (FTP) / Email: Completely insensitive to delay and jitter, but demands Packet Loss (absolute reliability).
3. Queue Scheduling Techniques
When router buffers experience congestion, scheduling algorithms decide which packet to transmit next:
- FIFO (First-In First-Out): Packets are served strictly in order of arrival. High-priority voice packets are delayed behind massive bulk file downloads.
- Priority Queueing (PQ): Packets are classified into priority queues (High, Medium, Low). Higher queues are always completely emptied before lower queues are served (can lead to queue starvation for low-priority traffic).
- Weighted Fair Queueing (WFQ): Allocates a percentage of the link's bandwidth to each traffic class dynamically, preventing starvation while ensuring low-latency delivery for real-time streams.
4. QoS Architectures: IntServ vs. DiffServ
To implement end-to-end QoS across the Internet, two primary frameworks were standardized by the IETF:
1. Integrated Services (IntServ - RFC 1633)
- Hard QoS Guarantees: Guarantees explicit bandwidth and maximum delay bounds for individual application flows.
- RSVP (Resource ReSerVation Protocol): The host sends an RSVP control packet to reserve buffers and bandwidth along the entire router path before transmitting data.
- Fatal Flaw (Scalability Collapse): Intermediate backbone routers must maintain state tables for hundreds of thousands of individual user flows, causing CPU and memory exhaustion in the Internet core.
2. Differentiated Services (DiffServ - RFC 2475)
- Soft Class-Based QoS: Replaced per-flow reservation with coarse class tagging.
- DSCP (Differentiated Services Code Point): A 6-bit field in the IPv4 Type-of-Service (ToS) / IPv6 Traffic Class byte, defining up to 64 classes of service.
- Per-Hop Behaviors (PHB):
- Expedited Forwarding (EF - DSCP 46): Premium low-latency service for voice (virtual leased line).
- Assured Forwarding (AF): 4 distinct classes with 3 drop precedence levels each.
- Best Effort (BE - DSCP 0): Default standard Internet traffic.
Frequently Asked Questions
QDefine Jitter and explain why it disrupts real-time video conferencing.
Jitter is the statistical variance in packet arrival delay. If consecutive video packets arrive at irregular intervals (), the video player's playout buffer either underflows (causing freezing) or overflows (causing skipped frames).
QWhy did DiffServ succeed commercially where IntServ failed?
IntServ required every router in the global transit path to store state information and maintain reservations for every individual flow, collapsing router scalability. DiffServ pushes packet classification to the network edge and uses simple 6-bit DSCP labels in packet headers, allowing core routers to forward traffic rapidly based solely on class priority without per-flow state.
QWhat is the function of RSVP?
Resource ReSerVation Protocol is a signaling protocol used in IntServ to request and establish specific bandwidth and delay reservations across all intermediate routers along a packet flow's path.
QWhat are the four QoS metrics?
Throughput (bits delivered per second), latency (end-to-end delay), jitter (variation in delay) and packet loss (percentage of packets dropped).