Computer Networking 3--Transport

Overview

Demultiplexing with Ports

IP 协议只能看到 IP。如果一台主机上同时有两个应用在和一个 server 通信,那么二者在 IP 层面是完全一样的(有相同的 source/destination IP)

我们该如何区分这两个应用,将数据正确的交给他们?

解决方案就是 port,每个应用走不同的 port 出去。

Because the transport layer is implemented in the operating system, these ports (sometimes called logical ports) are the attachment point where the application connects to the operating system’s network stack.

TCP