Fundamentals · browser room
TCP Connection Teardown
Objective
See the four-step close — each direction shuts down with FIN + ACK.
Cyber Flow Explorer · 4 steps · Network / Sequence / Packet / Code.
Answer panel
Challenge workspace
Complete the room tasks, then submit here to mark the room done.
Teaching simulation · not live capture
Lab hosts only.
Real world · Browsers and APIs close idle TCP sockets with FIN; abrupt kills use RST instead.
Attack · Forged FINs/RSTs can disrupt sessions (TCP reset attacks) — out of scope here.
Defense · Stateful firewalls track ESTABLISHED and tear-down sequences.
- Control · Prefer graceful FIN close for application shutdown
- Control · Alert on unusual RST floods
- Control · Do not expose raw sockets to untrusted networks
1. FIN+ACK
Client
192.168.1.10:52344seq=1001 ack=5001
Server
10.0.0.5:80seq=1001 ack=5001
- #1 client → server FIN+ACK seq=1001 ack=5001
Space · ← → · R restart
Hint
Half-close: one side done, the other may still transmit.
Why this is correct
Teardown is typically FIN → ACK → FIN → ACK (four-way close).