CS FundamentalsHardGATE CS · networking placement

A router has four equal-cost paths to a destination and uses ECMP. Why does it usually choose the path by hashing each packet's 5-tuple rather than sending packets round-robin?

  1. A. Hashing spreads load more evenly than round-robin when all packets are equal
  2. B. So that every packet of one flow takes the same path and TCP does not see reordering
  3. C. Round-robin would break the IP checksum, which covers the outgoing interface
  4. D. Hashing lets the router skip the longest-prefix lookup for the remaining packets

Correct answer: B. So that every packet of one flow takes the same path and TCP does not see reordering

Per-packet spraying over paths of slightly different delay reorders a flow's packets, which TCP treats as loss (duplicate ACKs). Per-flow hashing keeps each flow on one path; the price is that a few heavy flows can unbalance the links.

More Computer Networks questions

Exams that ask this topic