Networks 2027 Rank-Decider: Token Bucket Burst Math, TCP Wrap-Around, BGP Policies & DNS RTTs
Token Bucket vs Leaky Bucket maximum burst duration formula, 32-bit TCP sequence wrap-around time on high-speed fiber, Distance-Vector 3-node count-to-infinity, BGP AS valley-free routing, and DNS + HTTP RTTs.
1. Traffic Shaping: Leaky Bucket vs Token Bucket (GATE NAT Classic)
- Leaky Bucket: Smooths bursty traffic into a strictly constant output rate regardless of how full the bucket is (cannot send bursts faster than !).
- Token Bucket (Capacity , Token Rate , Peak Output Link ): Starts full with tokens. Draining at peak rate while refilling at exhausts the bucket at seconds!
- Quick Example: , transmitting at peak speed before throttling to !
2. Routing Nuances: OSPF vs RIP vs BGP-4
| Protocol | Scope & Algorithm | Transport Carrier | Metric & Critical Exam Nuance |
|---|---|---|---|
| RIP | Intra-AS (IGP) • Distance Vector | UDP Port 520 | Hop count (max ; ); Poisoned Reverse fails on -node cycles! |
| OSPF | Intra-AS (IGP) • Link-State (Dijkstra) | Directly over IP (Proto 89) | Bandwidth/cost; floods LSAs to all routers in area |
| BGP-4 | Inter-AS (EGP) • Path-Vector | TCP Port 179 | Policy + AS-PATH attribute (prevents loops in by checking own ASN!) |
3. End-to-End Web Page Load RTT Formula (DNS + TCP + HTTP)
Suppose visiting a page requires uncached iterative DNS lookups (), followed by fetching a base HTML file + embedded images from an origin server at (ignoring transmission delay):
- Non-Persistent HTTP/1.0 (Serial): !
- Persistent HTTP/1.1 without Pipelining: .
- Persistent HTTP/1.1 WITH Pipelining (or HTTP/2 Multiplexing): .
Practice Questions on This Chapter (2)
A Token Bucket shaper has bucket capacity , token refill rate , and maximum output link rate . Starting with a full bucket, what is the maximum burst duration in milliseconds during which the output can transmit continuously at ?
A high-speed TCP connection transmits continuously at (). In how many seconds does the -bit TCP sequence number space () wrap around completely?