2.1 SocketsAndPorts

2.1 SocketsAndPorts - Ports Definition: A number assigned...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sockets Definition: A socket or Internet socket or network socket defines one endpoint of a two-way communication link between two programs/processes running on the network. A socket is a combination of an IP address and a port number. The socket is necessary so that the transport layer can identify the destination application. TCP Sockets In connection-oriented TCP, both source and destination sockets uniquely identify a connection. Thus, you can have multiple connections between your host and the server. In TCP, a 4-tuple (i.e., <local IP, local Port #, remote IP, remote Port #> is used to uniquely identify both ends of the connection. UDP Sockets In connectionless UDP, a 2-tuple (i.e., <remote IP, remote Port #>) is used to identify transmission to a destination since the communication is one-way, best-effort.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Ports Definition: A number assigned to user sessions and server applications in an IP network . The port number resides in the TCP or UDP header of the packet. Source Ports The source port, which can be a random number, is assigned to the client and is used to keep track of user sessions. Destination Ports The destination port is used to route packets on a server to the appropriate network application. For example, port 80 is the standard port number for HTTP traffic, and port 80 packets are processed by a Web server. Destination ports are typically well-known ports (0-1023) for common Internet applications such as HTTP, FTP and SMTP. It can also be a registered port (1024-49151) that vendors use for proprietary applications. Modified from PC Magazine on-line dictionary (www.pcmag.com). (2010)...
View Full Document

This note was uploaded on 03/24/2011 for the course CECS 572 taught by Professor Maples,t during the Spring '08 term at CSU Long Beach.

Ask a homework question - tutors are online