TCP diagram template

Draw the segments of a TCP connection and fill in their fields. Each row is one tick; a segment reaches the other end half a tick after it leaves. Save your exercises in the browser or export them.

About this visualization

A blank worksheet for solving TCP exercises by hand (connection establishment and teardown, sequence and acknowledgment numbers, window, MSS, losses and retransmissions). Time runs downwards in ticks: each row has, on each side, the table of fields of the segment that host sends in that tick (SN, AN, Flags, W, MSS and Data) and, in the middle, the time lines of the two hosts. Clicking a point on the sender's line draws the segment, which reaches the other end half a tick later; each arrow can be marked as lost (it is cut with a cross), labelled (for example, RTO or duplicate ACK), coloured, reversed or deleted. Timers (such as the RTO) are drawn on a host's line in half-tick steps, with their start, duration and label. The host names and the number of ticks can be changed, and each exercise has a name and a box for the statement and notes. It neither grades nor gives the solution: it is the medium in which the student reasons. Exercises are saved in the browser, exported and imported as JSON files to move them to another computer or hand them in, and printed on A4. It includes an example with the three-way handshake and one data segment with its ACK and its RTO.

Concepts: TCP segment, sequence number, acknowledgment number, SYN, ACK, FIN and RST flags, three-way handshake, connection teardown, receive window, MSS, loss and retransmission, retransmission timer (RTO), timing diagram.

Network Architecture I, Session 3.3 · Enrique de la Hoz, University of Alcalá · License CC BY-SA 4.0 · Source and catalogue on GitHub · DOI 10.5281/zenodo.23285664