This resides on the network device receiving the network packet.
Multiplexing occurs when multiple applications want to send packets to the same destination port.