Interview Prep/Networking/Network Models, TCP, UDP & Ports

What is a SYN flood and how do you mitigate it?

IntermediateConceptNetwork Models, TCP, UDP & Ports
Answer

An attacker sends many SYNs with spoofed sources and never completes the handshake, exhausting the SYN queue. Linux mitigates with SYN cookies, which encode state in the sequence number so no queue entry is needed (net.ipv4.tcp_syncookies=1).

At scale you mitigate upstream: cloud providers' DDoS protection (AWS Shield, Cloudflare), rate limits at the edge, and proxies like an NLB or ALB that terminate TCP before it reaches your instances.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports