Listen Established

192.168.1.20:7777, *.*_192.168.1.20:7777, 192.168.1.10:3506

Although the sockets of both server processes have the same IP address/port number combination, they are differentiated by the 4-tuple.

Consequently, the kernel must note all four connection parameters when distributing incoming and outgoing TCP/IP packets to ensure that assignments are made correctly. This task is known as multiplexing.

The netstat tool displays and checks the state of all TCP/IP connections on the system. The following sample output is produced if two clients are connected to the server:

[email protected]> netstat -na

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.168.1.20:7777 0.0.0.0:* LISTEN

tcp 0 0 192.168.1.20:7777 192.168.1.10:3506 ESTABLISHED

tcp 0 0 192.168.1.20:7777 192.168.1.10:3505 ESTABLISHED

Continue reading here: Datagram Sockets

Was this article helpful?

0 0