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
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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
To allow two hosts to communicate and exchange data reliably, TCP performs a three step handshake before any of the data is sent. This is when TCP guarantees that the data will arrive in tact by using a sequence and acknowledgement numbers. After all data is sent, TCP then performs a four step shutdown that concludes the session.
Three Step Startup
|
PC |
—————- SYN —————-> |
Server |
| <———— SYN ACK————– | ||
| —————- ACK —————-> |
Four Step Shutdown
|
PC |
—————FIN ACK ————-> |
Server |
| <—————ACK—————— | ||
| <———— FIN ACK————— | ||
| —————- ACK —————-> |
I am a Computer and Network Technician. I love what I do for a living, as my work is also my hobby.
All of the technical information from the original Aleeya.net site became this site - GirlGeekette dotNet - and the remaining became what is now known as Aleeya dotNet. This site is where I store all of my notes related to computers and Technology so I may share it with others.
Powered by WordPress with a modified version of Ragiels Dream theme.
36 queries complete in 0.990 seconds.