Girl Geekette dotNet

Where the Girl Ends and the Geekette Begins

TCP Packet Structure

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

Permanent link to this post (227 words, 0 images, estimated 54 secs reading time)




Search: Cosmos | BlogPulse
Submit: Digg This | Shout this! | Slashdot
Bookmark: Del.icio.us | Furl It | Spurl | Tag!RawSugar | Simpy This! | Shadows Tag! | Blink It | My Web
GirlGeekteete dotNet Tags: , ,
Technorati Tags: , ,
No Comments »

Top of the Page Top of the Page



TCP Handshakes

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 —————->
Permanent link to this post (92 words, 0 images, estimated 22 secs reading time)




Search: Cosmos | BlogPulse
Submit: Digg This | Shout this! | Slashdot
Bookmark: Del.icio.us | Furl It | Spurl | Tag!RawSugar | Simpy This! | Shadows Tag! | Blink It | My Web
GirlGeekteete dotNet Tags: , , ,
Technorati Tags: , , ,
No Comments »

Top of the Page Top of the Page




About the Geekette

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.

  Google


Web This site

Feeds

Validations

Ratings

Computer Links

Blog Links

Security Links

Geek Links

You Are Here

Archives

Powered by WordPress with a modified version of Ragiels Dream theme.

36 queries complete in 0.990 seconds.