| |
IP-TCP
Reference standard: RFC 793 - Transmission Control Protocol
TCP segment structure: fields
bits 0 _ _ _ _ _ _ 7 |
Segment field |
octets 1- n |
Header |
octets (n+1)-p |
Data |
Bit 0 is the most significant bit.
Header
bits 0 _ _ _ _ _ _ 7 |
Header |
octets 1-2 |
Source port |
octets 3-4 |
Destination port |
octets 5-6-7-8 |
Sequence Number |
octets 9-10-11-12 |
Acknowledgement Number |
octet 13, bits 0-3 |
Data offset |
octet 13, bits 4-7 |
Reserved |
octet 14, bits 0-1 |
Reserved |
octet 14, bit 2 |
URG: Urgent Pointer field significant |
octet 14, bit 3 |
ACK: Acknowledgement field significant |
octet 14, bit 4 |
PSH: Push function |
octet 14, bit 5 |
RST: Rest the connection |
octet 14, bit 6 |
SYN: synchronise sequence number |
octet 14, bit 7 |
FIN: no more data from sender |
octets 15-16 |
Window |
octets 17-18 |
Checksum |
octets 19-20 |
Urgent Pointer |
octets 21-(n-1) |
Options |
octet n |
Padding |
|