TCP Header
Byte
Offset 0 1 2 3
0 Source Port Destination Port
4 Sequence Number
20
8 Acknowledgment Number Bytes
Offset
12 TCP Flags
Offset Reserved Window
C E U A P R S F
16 Checksum Urgent Pointer
20 TCP Options (variable length, optional)
1 2 3
Bit 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Nibble Byte Word
TCP Flags Congestion Notification TCP Options Offset
C E U A P R S F ECN (Explicit Congestion 0 End of Options List Number of 32-bit words in
Notification). See RFC 1 No Operation (NOP, Pad) TCP header, minimum value
Congestion Window 3168 for full details, valid 2 Maximum segment size of 5. Multiply by 4 to get
C 0x80 Reduced (CWR) states below. 3 Window Scale byte count.
E 0x40 ECN Echo (ECE) Packet State DSB ECN bits 4 Selective ACK ok
U 0x20 Urgent Syn 00 11 8 Timestamp RFC 793
A 0x10 Ack Syn-Ack 00 01
Ack 01 00
P 0x08 Push Checksum Please refer to RFC 793 for
R 0x04 Reset No Congestion 01 00 the complete Transmission
No Congestion 10 00
S 0x02 Syn Checksum of entire TCP Control Protocol (TCP)
F 0x01 Fin Congestion 11 00 segment and pseudo Specification.
Receiver Response 11 01 header (parts of IP header)
Sender Response 11 11
Copyright 2008 - Matt Baxter - mjb@fatpipe.org - www.fatpipe.org/~mjb/Drawings/