📜  套接字和端口的区别?

📅  最后修改于: 2021-09-11 04:17:35             🧑  作者: Mango

套接字和端口都是传输层中使用的术语。端口是分配给网络进程的逻辑结构,以便可以在系统内识别它们。套接字是端口和 IP 地址的组合。传入的数据包有一个端口号,用于标识需要使用该数据包的进程。
编号最低的 1024 端口号用于最常用的服务。这些端口称为众所周知的端口。编号较高的端口可供应用程序一般使用,称为临时端口。

Socket Port
The word “Socket” is the combination of port and IP address. The word “Port” is the number used by particular software.
It is used to identify both a machine and a service within the machine. The same port number can be used in different computer running on same software.