C Datastructures Networking OS

Wednesday 10 April 2013

Socket vs Port...

SOCKET : -

A TCP connection is a 5-tuple organisation.
      It consists of Client Ip,Client port number,Server Ip,Server port,protocol.
     Combination of IP address and Port number is known as endpoint and sometimes called as socket.
    
PORT:-
    The purpose of ports is to differentiate multiple endpoints on a given network address. You could say that     a port is a virtualised endpoint. This virtualisation makes multiple concurrent connections on a single         network interface possible.

No comments:

Post a Comment