The TCP header: field by field
Sign in to read this lesson
TCP is a fairly complex protocol, and its header has a lot more fields than UDP's. In this part we look at the important ones: source/destination port, the 32-bit sequence and acknowledgment numbers, Flags, window size and checksum.
What you will learn
- The TCP header has more fields than UDP: TCP is a more complex protocol.
- The 16-bit source port and destination port tell us which application the data is for — this is how we go from the Transport Layer up to the higher layers.
- 32 bits are used for the sequence number and 32 bits for the acknowledgment number (ACK).
- The Flags field is where TCP sets the message type: SYN, ACK and so on.
- The 16-bit window size says how many bytes will be sent before an acknowledgment is wanted; the 16-bit TCP checksum checks for errors.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.