A SYN flood (also known as TCP SYN flood or half-open attack) is a form of denial-of-service (DoS) attack against systems that provide services over the Transmission Control Protocol (TCP). It exploits the way many TCP implementations handle incoming connection requests by causing a server to retain state for large numbers of incomplete ("half-open") connections, leaving insufficient resources to accept new legitimate connections.
Mechanism
A SYN flood exploits the TCP three-way handshake, which normally proceeds as follows:
- The client sends a SYN (synchronize) packet to request a connection.
- The server responds with a SYN-ACK packet to acknowledge the request.
- The client completes the handshake by sending an ACK packet, establishing the connection.
In a SYN flood attack, the attacker sends a rapid stream of TCP SYN packets—often using spoofed source IP addresses—to a target server. The server replies with SYN-ACK packets and allocates resources (e.g., memory in a connection backlog table) for each pending connection. However, the attacker never sends the final ACK to complete the handshake, leaving each connection in a half-open state. If enough such requests are received, the server's backlog of pending connections is exhausted, causing legitimate connection attempts to be delayed or rejected.
History
SYN flooding was publicly described in 1996, although some sources indicate it was documented as early as 1994. It became a widely recognized network attack during the same period. RFC 4987 ("TCP SYN Flooding Attacks and Common Mitigations"), published in August 2007 by the Internet Engineering Task Force, describes the attack and surveys common countermeasures and their trade-offs.
Mitigation Techniques
Several countermeasures have been developed to defend against SYN flood attacks:
- Ingress filtering: Blocks packets with spoofed source IP addresses at network boundaries.
- Increasing backlog limits: Allows the server to accommodate more pending connections (a limited measure).
- Reducing timeouts: Shortens the time a server waits for the final ACK, freeing resources more quickly.
- SYN caches: Defers full state allocation until the connection is established.
- SYN cookies: Encodes connection information in the SYN-ACK sequence number so the server does not need to retain state for half-open connections. SYN cookies are included in most major operating systems.
- Firewall and proxy-based defenses: Intercept and validate connection attempts before they reach the target server.
Prevalence
As of 2025, Cloudflare reported that SYN floods were the second most common Layer 3/4 DDoS attack vector, accounting for 27% of attacks. Despite being a well-known and long-documented attack method, SYN floods remain a significant threat in modern networking environments.