๐ค What is Quality of Service? (Basic Idea)
In a network:
Not all data is equally important โ
Voice calls ๐ and video ๐ฅ need fast delivery
Emails ๐ง and downloads can wait a little
๐ QoS ensures that important traffic gets better service than less important traffic.
๐ง Simple Definition
๐ Quality of Service (QoS) is a set of techniques used to manage network resources by prioritizing certain types of traffic to ensure reliable performance.
๐ง One-Line Understanding
QoS decides who gets priority when the network is busy.
๐ง Real-Life Analogy
๐ฅ Hospital Emergency Room
Critical patients ๐ treated first
Minor cases wait โณ
๐ QoS works the same way:
Voice/video = emergency
File download = waiting patient
๐จ Why QoS Is Needed
Without QoS โ:
Voice calls break
Video buffers
Online meetings fail
With QoS โ :
Clear voice ๐
Smooth video ๐ฅ
Stable applications
๐ Especially important in congested networks.
๐งญ Where QoS Is Applied
QoS is implemented in:
Routers
Switches
Wireless networks
ISP backbone
๐ Mostly at network edges.
๐ฏ Goals of Quality of Service
QoS aims to:
๐ Reduce delay
๐ฆ Reduce packet loss
โฑ๏ธ Control jitter
๐ Improve throughput
โ๏ธ Ensure fairness
๐ง Key QoS Performance Parameters
โฑ๏ธ 1. Delay (Latency)
๐ Time taken for a packet to travel from sender to receiver
Voice/video need low delay
High delay causes lag โ
๐ 2. Jitter
๐ Variation in packet delay
Uneven arrival times
Causes choppy audio/video
๐ QoS minimizes jitter.
๐ฆ 3. Packet Loss
๐ Packets dropped due to congestion
Data apps can retransmit
Voice/video cannot โ
๐ 4. Throughput
๐ Actual data successfully delivered
QoS ensures required bandwidth
Especially for streaming apps
๐งฉ QoS Techniques
QoS is implemented using four main techniques:
1๏ธโฃ Traffic Classification
2๏ธโฃ Traffic Marking
3๏ธโฃ Traffic Shaping & Policing
4๏ธโฃ Scheduling & Queuing
๐งพ 1. Traffic Classification
๐ง What is Classification?
๐ Identifying packets based on:
Application type
Port number
IP address
Example:
Port 80 โ Web
Port 5060 โ VoIP
๐ First step of QoS โ๏ธ
๐ท๏ธ 2. Traffic Marking
๐ง What is Marking?
๐ Mark packets with priority values
Common marking methods:
DSCP (DiffServ)
ToS bits
๐ Routers read these marks and give priority.
๐ฆ 3. Traffic Shaping & Policing
(You already studied traffic shaping, now see it in QoS context)
๐ฐ Traffic Shaping
Delays excess packets
Smooths traffic
Prevents congestion
๐ Traffic Policing
Drops excess packets
Enforces strict limits
๐ Shaping = soft control
๐ Policing = strict control
๐งฎ 4. Scheduling & Queuing
Scheduling decides which packet is sent first.
๐ฅ Common Queuing Algorithms
๐ฆ a) FIFO (First In First Out)
Simple
No priority
Not suitable for QoS
โญ b) Priority Queuing
High priority packets sent first
Voice/video prioritized
โ Risk of starvation for low priority traffic
โ๏ธ c) Weighted Fair Queuing (WFQ)
Fair bandwidth sharing
Each flow gets a weight
๐ Most balanced approach โ๏ธ
๐ QoS Models
๐ข 1. Best Effort Service
๐ Default Internet service
๐ No guarantee
๐ All packets treated equally
๐ต 2. Integrated Services (IntServ)
Resource reservation
Uses RSVP protocol
High overhead
๐ Rarely used today.
๐ฃ 3. Differentiated Services (DiffServ)
Traffic classified into classes
Uses DSCP marking
Scalable & efficient
๐ Most widely used QoS model โ๏ธ
โ๏ธ IntServ vs DiffServ
Feature | IntServ | DiffServ |
|---|---|---|
Resource reservation | Yes | No |
Scalability | Low | High |
Complexity | High | Low |
Usage | Limited | Widely used |
๐ฅ Applications That Require QoS
VoIP calls ๐
Video conferencing ๐ฅ
Online gaming ๐ฎ
Live streaming ๐บ
๐ง QoS vs Congestion Control
Feature | QoS | Congestion Control |
|---|---|---|
Focus | Priority & guarantees | Prevent overload |
Scope | Application-based | Network-wide |
Example | VoIP priority | TCP slow start |
๐ Both work together.
๐ง Advantages of QoS
Improved user experience
Reliable real-time communication
Efficient resource usage
Business-critical traffic protected
โ Limitations of QoS
Complex configuration
Requires network-wide support
Misconfiguration causes issues
๐ง Memory Tricks
QoS = Quality over Quantity โญ
Delay + Jitter = Voice killers
DiffServ = Different priorities
โญ One-Line Summary
๐น Quality of Service (QoS) prioritizes network traffic to ensure reliable performance for delay-sensitive applications like voice and video.