Latest Posts »
Latest Comments »
Popular Posts »

TCP Packet Structure

Written by The Geekette on July 9, 2006 – 2:48 pm
Posted in Networking |

The diagram shown below demonstrates the fixed packet structure that is use by TCP/ This fixed packet structure is used to provide flow control, maintain the reliability of the communication and ensure that any data that is missing is resent buy sequencing and acknowledgement.

The Flag field is a 1 byte field. Common flags in this field include

SYN Synchronize
ACK Acknowledgement
PSH Push
FIN Finish
RST Reset
URG Urgent
Source Port Destination Port
Sequence Number
Acknowledgement Number
Data Offset Reserved U
R
G
A
C
K
P
S
H
R
S
T
S
Y
N
F
I
N
Window
Checksum                                              Urgent Pointer
Options      Padding
Data

These flags are used to manage the TCP sessions. SYN and ACK are used in the three way Handshakes . RST and FIN flags are used to denote the finish of a connection. FIN is used during the normal four step setup, but the RST is used to signal the end of a session that is not a normal one.

The checksum is used to ensure the integrity of the packet is intact


§


Email This Post Email This Post | Print This Post Print This Post |


Leave a Comment

Girl Geekette uses Thank Me Later

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.