Network fundamentals / Interactive lab
Inside a TCP connection
See how two endpoints connect, recover lost bytes, and close gracefully. Follow every segment through a routed network.
What you will learn
- Relate SYN, ACK, and FIN to TCP sequence space and endpoint state.
- Distinguish lost data from a lost acknowledgment using retransmissions.
- Explain how the receive window limits new application data.
- Compare timeout, refusal, reset, and an orderly four-segment close.
Continue learning
Model scope
A deterministic teaching model based on RFC 9293. IPv4 addressing, Ethernet forwarding and routing are assumed ready. Endpoint states are end-of-event snapshots; animation illustrates each message path. Sequence arithmetic wraps modulo 2³². The server drains its receive buffer after each acknowledged segment. Segments are at most 256 bytes; stop-and-wait simplifies receive-window behavior. This does not implement congestion control, SACK, delayed ACK, out-of-order reassembly, window scaling or persist probes. Retransmission timeouts and TIME-WAIT are conceptual events, not real elapsed TCP timers. SYN retry count is a teaching choice. Packet headers show endpoint TCP fields, not a complete Ethernet/IP capture. Review this visual prototype before rollout to other labs.