TCP Segment format:
The figure below show the TCP segment format. It show the different
field within the TCP header.
bit 0 bit 16 bit 32
------------------------------------------------------------------
Source port (16) Destination port (16)
________________________________________________________________
Sequence number (32)
_________________________________________________________________
Acknowledgement number (32)
_________________________________________________________________
Header Reserved Code Bits Window (16)
Length (6) (6)
(4)
______________________________________________________________
Checksum (16) Urgent (16)
________________________________________________________________
Options (0 or 32 if any)
_________________________________________________________________
Data (varies)
The figure below show the TCP segment format. It show the different
field within the TCP header.
bit 0 bit 16 bit 32
------------------------------------------------------------------
Source port (16) Destination port (16)
________________________________________________________________
Sequence number (32)
_________________________________________________________________
Acknowledgement number (32)
_________________________________________________________________
Header Reserved Code Bits Window (16)
Length (6) (6)
(4)
______________________________________________________________
Checksum (16) Urgent (16)
________________________________________________________________
Options (0 or 32 if any)
_________________________________________________________________
Data (varies)