cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9650
Views
5
Helpful
4
Replies

Difference between Session, Connections & Socket

Hi All,

         Difference between Session, Connections & Socket.

Thanks

Venkat              

4 REPLIES 4
Cisco Employee

Re: Difference between Session, Connections & Socket

Hi Venkat,

The same subject has been explained beautifully in below thread.

https://supportforums.cisco.com/thread/2120387

The combination of an IP address and a port is strictly known as an endpoint and is sometimes called a socket.A TCP connection is defined by two endpoints aka sockets.

An endpoint (socket) is defined by the combination of a network address and a port identifier.

Regards,
Kanwal


Sent from Cisco Technical Support iPhone App

Re: Difference between Session, Connections & Socket

Hi,

      Still I am not getting.

Can you explin me with Easy & Nice examples.

Cisco Employee

Difference between Session, Connections & Socket

Hi Venkat,

The terms session and connection are used to refer a communication between client and a server or two end points and they are used in same context. If you look at pure  theory then:

Connection:

Client--------------->Server

Client<------------->Server

The bidirectional flow between client and server is a connection.

Client Src IP(1.1.1.1) Client Port(12345)  TCP --------->  Server Src IP(2.2.2.2) Server Port (80)

Server Src IP(2.2.2.2) Server Port(80)      TCP ---------->Client Src IP(1.1.1.1.) Client Port (12345)

The above is a "Connection" when you consider both flows.

When you consider a SINGLE flow:

Client Src IP(1.1.1.1) Client Port(12345) TCP ---------> Server Src IP(2.2.2.2) Server Port (80)

The above is "TCP SOCKET". It can be UDP as well.

Session would be:

The same birdirectional flow illustrated in first example but with different Client src ports so a client establishing many connections to the same server. So series of interactions between client and server will amount to a SESSION. A single bidirectional FLOW would be a CONNECTION and a SINGLE UNIDIRECTIONAL FLOW would be a SOCKET.

Let me know if that helps.

Regards,

Kanwal

Highlighted

Re: Difference between Session, Connections & Socket

Hi,

 

First wanna say thanks to you as you explained perfectly. one thing is missing which is same but related with NAT (Network Address Translation). can you please explain what would happens when thousands of clients with private IP surfing internet behind single Global IP and why SYN Flood attack can block sessions.

 

Regards,

Noor.

 

 

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards