临时端口号:建立后相同的服务器端口?

Ephemeral port numbers: Same server port after establishment?

如果在端口 80 上有一个网络服务器 运行 并且有人使用随机分配的端口 x 从客户端连接,那么服务器知道要回复哪个端口。但是,从那时起,与服务器的通信是否从那时起继续在端口 80 上进行(将文件描述符分配给 socket-pair ip:x),或者服务器是否也将进一步的通信委托给另一个随机分配的端口本身;是吗?

所以我真正想问的是:当服务器回复时 - 它是否回复了 80 源端口以进行进一步通信?

If have a webserver running at port 80 and someone connects from a client using randomly assigned port x

客户端。

then the server knows on what port to reply.

服务器通过接收请求的同一连接进行回复。下面发生的事情取决于 TCP。它不是服务器应用程序的 'knowledge'。

However, at that time on, does the communication to the server continue on port 80 from then on

是的。

(assigned a file descriptor to socket-pair ip:x)

到套接字 quad {local-IP, local-port, remote-IP, remote port}.

or does the server also delegate further communication onto another randomly assigned port of itself;

没有

So what I am really asking is: When the server replies -does it reply with a source port of 80 back for further communication?

是的。