Port Number



 ◆ ポート番号とは

 ポート番号はTCP/UDP上のサービスを識別するための番号。TCP/UDPヘッダに16ビットの情報にあります。
 例えば、ポート番号が 25 はSMTPであり、69 はTFTPとなります。ポート番号の枠は 0 〜 65535 ですが、
 ポート番号には以下の3つの種類があります。※ IANAによるポート番号の最新情報はここで確認できます。

ポート番号の種類 ポート番号 ポート番号の意味
@ Well Known Port Number 0 〜 1023

IANAで正式に登録されているポート番号

A Registered Port Number 1024 〜 49151

IANAで正式に登録されているポート番号

B Dynamic Port Number 49152 〜 65535 IANAで正式に登録されていないポート番号

 @、Aのポート番号はサービスを提供するサーバ側で主に使用されるのに対して、Bはクライアント側で主に使用されるポート番号。

 @ウェルノウンポート番号はサーバのアプリケーションに割り当てられます。A登録済みポート番号は独自に
 作成されたアプリケーションに割り当てられます。Bのダイナミックポート番号はサーバとのプロセスに応じ
 クライアントのアプリケーションに動的に割り当てられます。Aはクライアントに割り当てる時もあります。

 TCP/UDPのポート番号について詳しく知りたい方、TCP/IPをはじめから分かりやすく知りたい方はマスタリングTCP/IPがお勧めです。
 マスタリングTCP/IPはネットワークエンジニア、サーバエンジニアなど全てのIT技術者が大絶賛しているTCP/IP参考書のバイブル本。



 ◆ 
TCPの代表的なウェルノウン番号


     


ポート番号 TCP/UDP サービス名 説明
1 TCP tcpmux TCP Port Service Multiplexer
7 TCP echo Echo
9 TCP discard Discard
11 TCP systat Active Users
13 TCP daytime Daytime (RFC 867)
17 TCP qotd Quote of the Day
19 TCP chargen Character Generator
20 TCP ftp-data File Transfer [Default Data]
21 TCP ftp File Transfer [Control]
22 TCP ssh SSH Remote Login Protocol
23 TCP telnet Telnet
25 TCP smtp Simple Mail Transfer
37 TCP time Time
42 TCP nameserver Host Name Server
43 TCP nicname Who Is
49 TCP tacacs+ TACACS+
53 TCP domain Domain Name Server
70 TCP gopher Gopher
79 TCP finger Finger
80 TCP http ( www-http) World Wide Web HTTP
88 TCP krb5 kerberos-sec Kerberos
95 TCP supdup SUPDUP
101 TCP hostname NIC Host Name Server
102 TCP iso-tsap ISO-TSAP Class 0
109 TCP pop2 Post Office Protocol - Version 2
110 TCP pop3 Post Office Protocol - Version 3
111 TCP sunrpc SUN Remote Procedure Call
113 TCP auth ( ident ) Authentication Service
115 TCP sftp Simple File Transfer Protocol
117 TCP uucp-path UUCP Path Service
119 TCP nntp Network News Transfer Protocol
123 TCP ntp Network Time Protocol
143 TCP imap Internet Message Access Protocol
163 TCP cmip-man CMIP/TCP Manager
164 TCP cmip-agent CMIP/TCP Agent
177 TCP xdmcp X Display Manager Control Protocol
179 TCP bgp Border Gateway Protocol
194 TCP irc Internet Relay Chat Protocol
220 TCP imap3 Interactive Mail Access Protocol v3
389 TCP ldap Lightweight Directory Access Protocol
443 TCP https http protocol over TLS/SSL
465 TCP smtps SMTP over SSL
515 TCP printer Printer spooler ( lpr )
587 TCP submission Submission
636 TCP ldaps ldap protocol over TLS/SSL
989 TCP ftps-data ftp protocol, data, over TLS/SSL
990 TCP ftps ftp protocol, control, over TLS/SSL
993 TCP imaps imap4 protocol over TLS/SSL
995 TCP pop3s pop3 protocol over TLS/SSL



 ◆ UDPの代表的なウェルノウン番号


    


ポート番号 TCP/UDP サービス名 説明
7 UDP echo Echo
9 UDP discard Discard
11 UDP systat Active Users
13 UDP daytime Daytime (RFC 867)
17 UDP qotd Quote of the Day
19 UDP chargen Character Generator
37 UDP time Time
39 UDP rlp Resource Location Protocol
42 UDP Nameserver Host Name Server
49 UDP tacacs Login Host Protocol (TACACS)
53 UDP domain Domain Name Server
67 UDP bootps Bootstrap Protocol Server
68 UDP bootpc Bootstrap Protocol Client
69 UDP tftp Trivial File Transfer
88 UDP krb5 kerberos-sec Kerberos
111 UDP sunrpc SUN Remote Procedure Call
123 UDP ntp Network Time Protocol
137 UDP netbios-ns NETBIOS Name Service
138 UDP netbios-dgm NETBIOS Datagram Service
139 UDP netbios-ssn NETBIOS Session Service
161 UDP snmp SNMP
162 UDP snmptrap SNMPTRAP
177 UDP xdmcp X Display Manager Control Protocol
201 UDP at-rtmp AppleTalk Routing Maintenance
202 UDP at-hbp AppleTalk Name Binding
204 UDP at-echo AppleTalk Echo
206 UDP at-zis AppleTalk Zone Information
213 UDP ipx IPX
520 UDP router RIP
546 UDP dhcpv6-client DHCPv6 Client
547 UDP dhcpv6-server DHCPv6 Server



TCP/IP 入門

ネットワークエンジニアとして

Copyright (C) 2002-2024 ネットワークエンジニアとして All Rights Reserved.