In protocol design, why would you ever use 2 ports?

前端 未结 12 963
一个人的身影
一个人的身影 2021-01-17 07:43

When a TCP Server does a socket accept on a port, it gets a new socket to work with that Client.
The accepting socket remains valid for that port and can accept further

12条回答
  •  醉梦人生
    2021-01-17 08:07

    The IETF has banned the practice of allocating more than one port for new protocols so we likely won't be seeing this in the future.

    Newer IP protocols such as SCTP are designed to solve some of the shortcommings of TCP that could lead one to use multiple ports. TCPs 'head-of-line' blocking prevents you from having multiple separate requests/streams in flight which can be a problem for some realtime applications.

提交回复
热议问题