TCP
— Transmission Control ProtocolTCP is the core transport protocol powering the World Wide Web, email, and file transfers. It provides reliable, ordered, and error-checked delivery of a stream of bytes between computers connected to an IP network.
Interactive Session: How TCP Works
Step through the packet exchange sequence between nodes.
Interactive Execution Sandbox
Interact with a live or clearly-labelled simulated instance of TCP.
Threat Model & Attack Simulation
How this protocol is attacked in practice, what defenders can see, and which control stops it.
Threat model & attack simulation
SimulatedDefensive education. Every step runs in this page; no traffic is generated or sent.
SYN flood
Denial of serviceHalf-open connections exhaust the server backlog so legitimate clients cannot complete the handshake.
Flood SYNs
The attacker sends many SYNs, often with spoofed sources.
Backlog queue growth and many SYN_RECEIVED states.
Service unavailability for legitimate users.
Defences that matter
- SYN cookies
- Edge rate limiting and DDoS scrubbing
- Backlog tuning and connection limits
This is a conceptual model for defenders, not an exploit toolkit. It contains no payloads, tooling or instructions for attacking systems you do not own.
Protocol Specification & Architecture
Key characteristics, real-world deployment patterns, and trade-offs.
Core Technical Features
- 3-Way Handshake (SYN, SYN-ACK, ACK) for connection setup
- Sequence and Acknowledgement numbers for in-order reassembly
- Sliding Window algorithm for dynamic flow control
- Congestion control algorithms (Cubic, BBR, Reno)
- Connection teardown via FIN and ACK flags
Real-World Use Cases
- Web browsing (HTTP/1.1 and HTTP/2)
- SSH Remote Shell
- Database connections
- File transfers (FTP/SFTP)
Advantages & Strengths
- Guaranteed packet delivery with automated retransmission
- Prevents network congestion and buffer overflow
Limitations & Vulnerabilities
- Head-of-Line (HoL) blocking if a packet is lost
- Connection setup requires at least 1-RTT