TCP connections
TCP reset
A TCP packet that aborts a connection; the answer to a SYN for a port with no listener.
A TCP reset (RST) is a packet that aborts a connection at once. A machine sends one in answer to a SYN for a port where nothing listens, and the client fails immediately with connection refused. A dropping firewall gives silence and a timeout instead; a rejecting one may forge a reset in the server's name. A reset can also kill an open connection: connection reset by peer.
Read next
- TCP Reliable, ordered byte streams between programs: handshake, acknowledgements, retransmission.
- Drop or reject Two ways to refuse a packet: silence, or an explicit answer.
- Port A 16-bit number that picks the program on a device: web 80 and 443, DNS 53, SSH 22.
- Three-way handshake SYN, SYN-ACK, ACK: how TCP opens a connection, each side agreeing on starting sequence numbers.
- Host discovery Finding which addresses on a network belong to a machine that is up, before looking at any port.
- Half-open scan Probing a TCP port with a SYN and hanging up after the reply, so no connection is ever made.
- SYN flood and SYN cookies Forged SYNs that fill a server's half-open connection queue, and the stateless trick that defeats them.
- Packet crafting Building one packet by hand — choosing every flag and field — to probe a target a single reply at a time.