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.
More on Network Models, TCP, UDP & Ports
What are the layers of the OSI model, and why does a DevOps engineer care?BeginnerHow does the TCP/IP model map to the OSI model?BeginnerWhat is the difference between TCP and UDP?BeginnerDescribe the TCP three-way handshake.BeginnerHow does TCP close a connection, and what is TIME_WAIT?IntermediateWhat is a port, and what are well-known, registered and ephemeral ranges?Beginner