ProtoStackv0.1

Interactive Protocol Visualizer

Back to all protocols
NTPUDP
Transport LayerCore trackIntermediateOSI: Transport LayerDefault Port: VariableStandard: RFC 793, RFC 9293

TCP

— Transmission Control Protocol

TCP 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.

Read first: IPv4Content reviewed 2026-11-18

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

Simulated

Defensive education. Every step runs in this page; no traffic is generated or sent.

Attack library

SYN flood

Denial of service

Half-open connections exhaust the server backlog so legitimate clients cannot complete the handshake.

Attackersimulated
TCPtarget
Attack step 1 of 3
Flood SYNs

The attacker sends many SYNs, often with spoofed sources.

What a defender can see

Backlog queue growth and many SYN_RECEIVED states.

Impact if unmitigated

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