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%

2.5 Traffic Conditioning and Performance Metrics

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

2.5.1 Traffic Conditioning Functions

Before a packet enters a high-speed core, it passes through a traffic conditioner which performs four main tasks:

  1. Classification: Identifying the packet type based on Port, IP, or Protocol.
  2. Metering: Measuring the current flow rate.
  3. Marking: Setting the priority bits (DSCP/CoS).
  4. Shaping/Dropping: Ensuring the flow stays within the SLA (Service Level Agreement).

2.5.2 Effective Bandwidth

In high-speed networks, we often calculate the Effective Bandwidth. It is a value between the average rate and the peak rate.

  • If an app sends 1 Mbps average but 10 Mbps burst, the effective bandwidth might be 4 Mbps.
  • If you reserve 10 Mbps, you waste space. If you reserve 1 Mbps, you lose data. Effective bandwidth calculation minimizes this trade-off.

2.5.3 The Impact of TCP Window Size on Throughput

Throughput of a TCP connection is limited by both the link speed and the Receive Window.

  • Throughput <= WindowSize / RTT
  • Example: If a window is 64KB and RTT is 100ms, max throughput is only 5.2 Mbps, even on 10 Gbps fiber! This is why "Window Scaling" is required for high-speed networks.

2.5.4 RED (Random Early Detection)

Instead of waiting for the buffer to be 100% full (Tail Drop), RED starts dropping packets randomly when the buffer is 50-80% full.

  • Goal: This "signals" some TCP senders to slow down early, preventing global synchronization where all senders stop and start at the same time.

2.5.5 Fairness in Traffic Management

  • Max-Min Fairness: No flow gets more than it requests, and all flows that are bottlenecked at the same point get an equal share of the leftover bandwidth.
  • Weighted Fair Queuing (WFQ): Shares bandwidth based on a "weight" (e.g., Platinum users get 3x more than Bronze users).