TCP vs UDP · Lesson 7 of 8 · 3 min read
Security: floods and amplification
- SYN flood — attackers send many SYNs without completing handshakes, filling the server's half-open connection backlog. Mitigations: SYN cookies (
net.ipv4.tcp_syncookies=1), larger backlogs, putting load balancers/CDNs in front, AWS Shield. (More in the handshake topic.) - UDP flood — overwhelming a target with UDP packets; no handshake means source IPs are easily spoofed.
- Reflection/amplification — attackers send small UDP queries with the victim's spoofed source IP to open servers (DNS, NTP, memcached, SSDP) that reply with much larger responses — amplification factors of 50× or more. Never run open resolvers or open UDP services on the internet; rate-limit responses.
- AWS Shield Standard (free, automatic) protects against common layer 3/4 attacks like SYN and UDP floods and reflection attacks for AWS edge and regional resources; Shield Advanced adds DDoS response team support, cost protection and application-layer integration with WAF.
Enlarge diagram
Swipe sideways to see all of it, or tap to open it full screen.