|
Networking HowTo's -
Introduction to Networking
|
|
Written by Tim Inkpen
|
|
Sunday, 27 April 2008 10:07 |
|
TCP
Create a connection
It uses a three-way handshake
- The
client [a machine/device requesting a service/connection] sends a SYN flag
& the server port number of the service it wants to communicate (i.e.
Port 80 for http/web services)
The packet also includes the client’s Initial Sequence Number (ISN)
- Server
– Resplies with it’s own SYN flag & ISN to the client’s TCP port
An ACK flag is included in the packet in reply to the client’s SYN flag
- Client
replies with an ACK flag that acknowledges the server’s SYN Flag
Terminate a
connection
After all data is sent or session no longer needs the
session is terminated. This can be done either by client or server. Here is an
example of what is called an active
close
- The
application (i.e. Web browser –Firefore) on the client sends a close command to the application
(i.e. Web Server – Apache) on the
server
- Server
sends a FIN flag to client
- Client
sends an ACK flag to acknowledge the FIN flag
- Client
sends a FIN flag to server
- Server
replies with ACK flag –acknowledging the termination of the TCP connection
Flags used in TCP
Connections?
SYN Synchronized sequence number
FIN Sender FINished sending data –end connection
RST Reset Connection
PSH Push the data
ACK Acknowledgment
URG Urgent
|
|
Last Updated ( Monday, 12 May 2008 20:09 )
|