📜  插座和端口之间的区别?

📅  最后修改于: 2021-06-28 20:06:26             🧑  作者: 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.