demultiplexing

Sorting incoming traffic to the right program, which the kernel does by looking at the protocol, destination address and port of each packet.

In more detail

Many programs share one network interface; ports are what let the kernel hand each packet to the right socket. For TCP, the remote address and port are used too, so many clients can connect to one listening port at once.

Related terms

Taught in

References