TCP Listener Backlog Threat Scenario

TCP Listener Backlog Threat Scenario

Transmission Control Protocol (TCP) carries data between network programs. A listener is a program waiting for connections, and its backlog is the short queue for connection attempts. A client sends a SYN (synchronise) request to start a three-message handshake, the exchange that establishes a connection; until it completes, a half-open connection can occupy one queue entry. Many unfinished requests can fill that space and delay a valid client. With SYN cookies, the server encodes information in its reply and waits for the client’s valid response before saving normal connection details. In the simulation, compare queue use, rejected clients, expiry, and cookie mode. Cookies reduce saved connection state, but unwanted traffic still consumes network and processing capacity.

Use the occupancy, drop, expiry, and cookie-check counters in the denied-case record. They make the mitigation claim testable while keeping the lesson defensive: the goal is to prove bounded service behavior and legitimate-client outcome, not to provide an attack recipe.

TCP Listener Backlog Threat Scenario

Back to the chapter