Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

4.3 Differentiated Services (DiffServ) Architecture

Lesson 26 of 34 in the free High Speed Networks notes on Siksha Sarovar, written by Rohit Jangra.

4.3.1 The DiffServ Philosophy

DiffServ (RFC 2475) moves complexity to the edge of the network. Core routers only look at a 6-bit DSCP (Differentiated Services Code Point) in the IP header.

Study Deep: DSCP Code Points

The 6-bit DSCP field replaced the older 3-bit IP Precedence. It allows for much finer control:

  • EF (Expedited Forwarding): Code 46. "Strict Priority." Used for VoIP.
  • AF (Assured Forwarding): Codes like 11, 12, 13... These allow for "Gold, Silver, Bronze" tiers where some packets are dropped before others during a crunch.
  • CS (Class Selector): Used for backward compatibility with older routers.

The DS Field and Per-Hop Behaviors (PHB)

  1. Expedited Forwarding (EF): "Hard" QoS. Low loss, low latency, guaranteed bandwidth. Perfect for VoIP.
  2. Assured Forwarding (AF): "Soft" QoS. 4 classes (1-4) with 3 drop priorities each.
  • Example: AF11 (Low drop), AF12 (Medium drop), AF13 (High drop).
  1. Class Selector (CS): Backward compatibility with IP Precedence.

4.3.3 The Traffic Conditioner Pipeline

Conditioning happens at the ingress (entry) of the DiffServ domain:

  1. Classifier: Selects packets based on rules.
  2. Meter: Compares the stream to a Token Bucket ($r, b$).
  3. Marker: Sets the DSCP bit (e.g., mark as AF11 if compliant, AF13 if non-compliant).
  4. Shaper/Dropper: Delays cells or drops them to meet the SLA.

4.3.4 Token Bucket Math for DiffServ:

$B(t) = min(Bucket_Size, B(t-Delta t) + r Delta t)$ If $Packet_Size leq B(t)$, the packet is Green (compliant).