COMPUTER NETWORKING

APPLICATION LAYER

SOCKET INTERFACE PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Sockets are different from ports because
A
They included IP addresses
B
They are in the Application Layer
C
They use the OSI model
D
They are just another term for the same thing
Explanation: 

Detailed explanation-1: -A socket uniquely identifies the endpoint of a communication link between two application ports. A port represents an application process on a TCP/IP host, but the port number itself does not indicate the protocol being used: TCP, UDP, or IP.

Detailed explanation-2: -A socket is the door of an apartment. An IP address is the street address of the building.

Detailed explanation-3: -A socket consists of the IP address of a system and the port number of a program within the system. The IP address corresponds to the system and the port number corresponds to the program where the data needs to be sent: Sockets can be classified into three categories: stream, datagram, and raw socket.

Detailed explanation-4: -If two devices on the network had the same IP address, it would not be possible to determine which device the packet is meant for, and the network communication would fail. IP addresses are unique within a network and are not allowed to be repeated for any device connected to that network.

There is 1 question to complete.