Port number that identifies the service

Port number that identifies the service

 Email software such as Outlook or Thunderburd has a field for you to enter the port number.

 Email software requires you to specify port numbers such as POP3 and SMTP. These numbers are included in the configuration information you received when you subscribed to your Internet service provider.

What do you need this number for?

 In communication, data of various applications are exchanged. For example, when a mailer and a browser are running at the same time, the mail data is passed to the mailer, and the browsing result data of the homepage is passed to the browser.

 The mail should be displayed in the browser, and the browsing result of the homepage should not be displayed in the mailer. In IP communication, it is possible to identify the computer of the communication partner, but there is no mechanism to identify various services exchanged between computers.

 So how was it possible to identify the received data and pass it to the correct destination application?

 That’s because it uses a number to identify a service called a port number. Conversely, without a port number, it is impossible to know which application to pass incoming application data to.

In other words, when the client software on the user side tries to receive the service of the server

●IP address ・・・ “Which computer”
●Port number ・・・ “Which service”

is determined.

 This is the basic principle of communication in TCP/IP. In this way, the port number that identifies the service plays an important role in the network system.

Main protocol and port number

 Some port numbers are called well-known ports. This number is a reserved port for an existing service that is commonly used, and is defined in the range “0 to 1,023”.

Typical well-known port numbers are as follows.

◆Typical well-known TCP ports

port numberService nameexplanation
20ftp-dataFile Transfer [Default Data]
twenty oneftpFile Transfer [Default Data]
twenty twosshSSH Remote Login Protocol
twenty threetelnetTelnet
twenty fivesmtpSimple Mail Transfer
53domainDomain Name Server
67bootpsBootstrap Protocol Server
68bootpcBootstrap Protocol Client
70gopherGopher
79fingerFinger
80www-httpWorld Wide Web HTTP
88kerberosKerberos
110pop3Post Office Protocol – Version 3
119nntpNetwork News Transfer Protocol
one two threentpNetwork Time Protocol
137netbios-nsNETBIOS Name Service
138netbios-dgmNETBIOS Datagram Service
139netbios-ssnNETBIOS Session Service
161snmpSNMP
162snmptrapSNMPTRAP
179bgpBorder Gateway Protocol
443httpshttp protocol over TLS/SSL
445microsoft-dsMicrosoft-DS
636ldapsldap protocol over TLS/SSL

The port number is 2 bytes and takes an integer value from “0 to 65,535”.

The numbers are divided into three categories by range.

port numbercategory
0 to 1,023Well-Known Port
1,024 to 49,15Registered port
*Reserved in advance. Assigned by applying to IANA.
49,152 to 65,535They are called Dynamic Ports or Private Ports.

 Users should avoid reserved port numbers when setting port numbers for their own services.

Then, since port numbers are only 2 bytes long, won’t they soon run out?

 You may think that, but unlike IP addresses, port numbers are complete numbers within a single computer, so there is almost no need to worry about exhaustion.