TCP/IP Ports: TCP/UDP Addressing
A typical host on a TCP/IP internetwork has many different software application processes running concurrently. Each process generates data that it sends to either TCP or UDP, which then passes it to IP for transmission. The IP layer sends out this multiplexed stream of datagrams to various destinations. Simultaneously, each device's IP layer is receiving datagrams that originated in numerous application processes on other hosts. These datagrams need to be demultiplexed so that they end up at the correct process on the device that receives them.
Multiplexing and Demultiplexing Using Ports
The question is how do we demultiplex a sequence of IP datagrams that need to go to many different application processes? Let's ...