PC上的端口号在[color=blue !important]网络技术中,端口包括逻辑端口和物理端口两种类型。 物理端口:是用于连接物理设备之间的接口,如[color=blue !important]ADSL Modem、[color=blue !important]集线器、[color=blue !important]交换机、[color=blue !important]路由器上用于连接其他网络设备的接口,如[color=blue !important]RJ-45端口、SC端口等等 [2] 。 逻辑端口:是指逻辑意义上用于区分服务的端口,比如用于浏览网页服务的80端口,用于FTP服务的21端口等。如[color=blue !important]TCP/IP协议中的服务端口,通过不同的逻辑端口来区分不同的服务。一个IP地址的端口通过16bit进行编号,范围是从0 到65535;
well-known ports: 0 to 1023 (0 to 210 − 1); used by system processes that provide widely used types of network services. On [color=blue !important]Unix-like operating systems, a process must execute with [color=blue !important]superuser privileges to be able to bind a [color=blue !important]network socket to an [color=blue !important]IP address using one of the well-known ports; Registered ports: 1024 to 49151; They are assigned by [color=blue !important]IANA for specific service upon application by a requesting entity.[ On most systems, registered ports can be used without superuser privileges. Dynamic, private or ephemeral ports: 49152 to 65535; used for private or customized services, for temporary purposes, and for automatic allocation of [color=blue !important]ephemeral ports.
|