CS FundamentalsVery hardGATE CS (PYQ pattern)
A WFQ scheduler (bit-by-bit round robin approximation) serves three flows backlogged at time 0 with weights A = 2, B = 1, C = 1. Packet sizes: A: 100, 100; B: 150, 50; C: 60, 60, 60. Each packet's finish number is the previous finish of its flow plus size/weight. In what order are the first four packets served?
- A. A1, C1, A2, C2
- B. A1, B1, C1, A2
- C. A1, C1, C2, A2
- D. C1, A1, A2, B1
Correct answer: A. A1, C1, A2, C2
Finish numbers: A1 = 50, A2 = 100; B1 = 150, B2 = 200; C1 = 60, C2 = 120, C3 = 180. Ascending order: A1 (50), C1 (60), A2 (100), C2 (120), B1 (150), C3 (180), B2 (200).
More Computer Networks questions
- Four flows share links: a uses L1; b uses L1 and L2; c uses L2 and L3; d uses L3. Link capacities (Mbps): L1 = 12, L2 = 6, L3 = 10. What…
- A router has four routes to the same prefix (local-pref, AS-path length, origin type, MED, learned via, IGP cost to next hop): R1 (100, 3…
- A TCP sender starts with cwnd = 1 MSS and ssthresh = 16 MSS. Each round trip: if cwnd < ssthresh the window doubles (but never beyond…
- Two TCP flows (Tahoe and Reno) both start with cwnd = 1 MSS and ssthresh = 16 MSS and grow identically (doubling up to ssthresh, then +1…
- Using the Mathis approximation, throughput = 1.22 x MSS / (RTT x sqrt(p)), what is the steady-state throughput of a TCP flow with MSS =…
- A TCP sender sends a segment at t = 0 with RTO = 1 s, and no ACK ever arrives. After each timeout it retransmits and doubles the RTO, but…