CS FundamentalsHardGATE CS · Product company CS fundamentals

An attacker floods a server with SYNs from spoofed addresses and never completes the handshake. Which defence lets the server keep NO per-connection state until the final ACK arrives?

  1. A. Increasing the TIME_WAIT duration on the server
  2. B. Disabling Nagle's algorithm on the listening socket
  3. C. Advertising a larger receive window in the SYN-ACK
  4. D. SYN cookies, which encode the state in the server's initial sequence number

Correct answer: D. SYN cookies, which encode the state in the server's initial sequence number

The SYN backlog is what fills up. With SYN cookies the SYN-ACK's ISN is a keyed hash of the 4-tuple, a timestamp and the MSS, so no entry is stored; a genuine client's ACK (ISN + 1) lets the server verify and recreate the state.

More Computer Networks questions

Exams that ask this topic