This figure shows the structure of the TCP segment. The width of the entire segment is indicated as comprising 32 bits.
| Source port # | Dest port # | ||||||||
| Sequence number | |||||||||
| Acknowledgment number | |||||||||
| Header | |||||||||
| Length (& unused space) | |||||||||
| C W R | |||||||||
| E C E | |||||||||
| U R G | |||||||||
| A C K | |||||||||
| P S H | |||||||||
| R S T | |||||||||
| S Y N | |||||||||
| F I N | |||||||||
| Receive window | |||||||||
| Internet checksum | Urgent data pointer | ||||||||
| Options | |||||||||
| Data | |||||||||