Transport Layer · Computer Networks

QoS Improving Techniques

Watch lectures
SVGVector Architecture Diagram (SVG)
COMPUTER NETWORKS · Module 4★ High PriorityQoS Improving TechniquesIT Sem 6 · Code 100602 · Quality of ServiceMNEMONICQoS metrics = Throughput, Latency, Jitter, Loss.Tools = queue scheduling + shaping + reservation / marking (IntServ, DiffServ).Core BreakdownMeaningQoS gives chosen traffic better service than plain best-effort IP delivery.Needed for VoIP, video calls and trading, which break under delay and loss.4 metricsThroughput (bits/s), latency (delay), jitter (delay variation), packet loss (%).VoIP: delay < 150 ms, jitter < 30 ms. File transfer: needs 0% loss.FIFOFirst in, first out: simple, but voice waits behind big downloads.No priority and no isolation between flows.Priority QClasses High / Medium / Low; higher queues are emptied first.Risk: queue starvation of the low-priority traffic.WFQWeighted fair queueing gives each class a share of the link (e.g. 50/30/20).No starvation, and real-time traffic still gets low delay.ArchitecturesIntServ: per-flow RSVP reservation, hard guarantee, poor scaling.DiffServ: 6-bit DSCP class tag, per-hop behaviour EF / AF / BE, scalable.Diagram: QoS ToolkitThroughputbits per secondLatencyend-to-end delayJitterdelay variationPacket loss% droppedQueue schedulersFIFOarrival orderPriorityHigh firstWFQweighted shareIntServ (RSVP)per-flow, hardDiffServ (DSCP)per-class, softVoIP: delay < 150 ms, jitter < 30 msDSCP = 6 bits · EF = 46 · BE = 0⚠️ Exam Traps & Viva Favorites① Four QoS metrics?Throughput, latency, jitter, packet loss.Jitter = variation in delay; it ruins audioand video playout buffers.② Priority queue drawback?Starvation: a busy high queue means low-classpackets are never served. WFQ fixes this withweighted shares.③ Why did DiffServ win?IntServ keeps state for every flow in everyrouter (RSVP). DiffServ tags a 6-bit DSCP at theedge; core routers stay stateless.Tip: IntServ per flow · DiffServ per classMaster Revision Table(learn it row by row!)TechniqueTypeHow it worksWeaknessFIFOSchedulingServe in arrival orderNo priority for voicePriority queueingSchedulingHigher class always firstStarves low classWFQSchedulingWeighted share of bandwidthMore complexIntServArchitectureRSVP reserves resources per flowPoor scalabilityDiffServArchitectureDSCP class marked per packetSoft guarantee onlyEF / AF / BEDiffServ PHBPremium (46) / assured / default (0)Needs correct markingQUICK FACTSVoIP: delay < 150 ms, jitter < 30 ms · FTP and e-mail need zero lossIntServ: RFC 1633 + RSVP · DiffServ: RFC 2475 + 6-bit DSCP (64 classes)EF = DSCP 46 (low delay) · AF = 4 classes x 3 drop levels · BE = DSCP 0VERIFIED★ Golden rule: classify at the edge, schedulein the core, keep core routers stateless.

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

MermaidDiagram
Rendering diagram…

Flow Sensitivity Comparison:

  • Real-Time Voice (VoIP): Extremely sensitive to Delay (<150 ms< 150\text{ ms}) and Jitter (<30 ms< 30\text{ ms}), but tolerates minor packet loss (1−2%1 - 2\%).
  • File Transfer (FTP) / Email: Completely insensitive to delay and jitter, but demands 0%0\% Packet Loss (absolute reliability).

3. Queue Scheduling Techniques

When router buffers experience congestion, scheduling algorithms decide which packet to transmit next:

MermaidDiagram
Rendering diagram…
  1. FIFO (First-In First-Out): Packets are served strictly in order of arrival. High-priority voice packets are delayed behind massive bulk file downloads.
  2. 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).
  3. 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:

MermaidDiagram
Rendering diagram…

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 (10 ms,120 ms,30 ms10\text{ ms}, 120\text{ ms}, 30\text{ ms}), 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).

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.

← All Computer Networks modules