Lesson 7 Ports
Lesson 7 Ports
When communicating via the Internet, the two protocols TCP and UDP
establish the connection, compile data packages again after transfer, and then hand
them over to the programs addressed on the recipient’s device. For this handover to
work, the operating system must create entrances and open them for the
transfer. Every entrance has a specific code number. After the transfer, the
receiving system knows where the data has to be delivered based on the port number.
The data package always includes two port numbers: the sender’s and the recipient’s.
Among the over 65,000 ports, there are few code numbers that are essential for
Internet communication. We want to show you the most important well-known ports
and registered ports. Some of these ports are only authorized for one of the two
protocols (TCP or UDP). There are also ports that were not officially registered for
the service in question, but have established themselves unofficially. Some ports have
double assignments.
Well-known ports
Port TCP UDP Name Description
Port numbers can run from 0 to 65353. Port numbers from 0 to 1023 are
reserved for common TCP/IP applications and are called well-known ports. The use of
well-known ports allows client applications to easily locate the corresponding server
application processes on other hosts. For example, a client process wanting to contact
a DNS process running on a server must send the datagram to some destination port.
The well-known port number for DNS is 53, and that’s where the server process
should be listening for client requests. These ports are sometimes called “privileged”
ports, although a number of applications that formerly ran in “privileged” mode, such
as HTTP servers, do not run this way anymore except when binding to the port. It
should be noted that it is getting harder and harder to register new applications in the
space below 1023 (these often use registered ports in the range 1024 to 49151).
Ports used on servers are persistent in the sense that they last for a long time, or
at least as long as the application is running. Ports used on clients
are ephemeral (“lasting a short time,” although the term technically means “lasting a
day”) in the sense that they “come and go” as the user runs client applications.
Technically, UDP port numbers are independent from TCP port numbers. In
practice, most of the applications indexed by port numbers are the same in UDP or
TCP (although a few applications can use either protocol), excepting a handful that
are maintained for historical reasons. This does not imply that applications can use
TCP or UDP as they choose. It just means that it’s easier to maintain one list rather
than two. But no matter what port numbers are used, UDP port 1000 is a different
application than TCP port 1000, even though both applications might perform the
same function.
Some of the more common well-known port numbers are shown in Table 3. In
the table, the UDP and TCP port numbers are identical.
Port
Number Service Meaning
Table 3. Some well-known ports used by UDP and TCP Services and Functions
Port numbers above 1023 can be either registered or dynamic (also
called private or non-reserved). Registered ports are in the range 1024 to 49151.
Dynamic ports are in the range 49152 to 65535. As mentioned, most new port
assignments are in the range from 1024 to 49151.
Registered port numbers are non–well-known ports that are used by vendors for
their own server applications. After all, not every possible application capability will
be reflected in a well-known port, and software vendors should be free to innovate. Of
course, if another vendor chooses the same port number for a server process, and they
are run on the same system, there would be no way to distinguish between these two
seemingly identical applications.
Dynamic ports—Ports in the range 49152 to 65535 are not assigned, controlled,
or registered. They are used for temporary or private ports. They are also known as
private or non-reserved ports. Clients should choose ephemeral port numbers from
this range, but many systems do not.
Vendors can register their application’s ports with ICANN. Other software
vendors are supposed to respect these registered values and register their own server
application port numbers from the pool of unused values. Some registered UDP and
TCP protocol numbers are shown in Table 4.
Port Number Service Brief Description of Use
Table 4. Selected registered UDP and TCP ports with service and brief
description of meaning
VOCABULARY
TECHNICAL NON-TECHNICAL
UDP (User Datagram Protocol) ̶ hand them over ̶ передати їх
протокол користувальницьких
датаграм
compile data packages ̶ компілювати a wide range of ̶ широкий
пакети даних асортимент
recipient’s device ̶ пристрій afterwards ̶ згодом
одержувача
consecutive numbers ̶ послідовні for the service in question ̶ за
числа відповідну послугу
are assigned to ̶ призначаються privileged ̶ привілейований
Internet Assigned Numbers Authority binding to the port ̶ прив'язка до
(IANA) ̶ Орган з присвоєння порту
номерів Інтернету (IANA)
to have double assignments ̶ мати persistent ̶ стійкий
подвійні присвоєння
multiplexer ̶ мультиплексор ephemeral ̶ ефемерний
SOCKS (Socket Secure) proxy ̶ to innovate ̶ впроваджувати
проксі SOCKS (мережевий протоко̶л інновації
сеансового рівня моделі OSI)
2. What is a port? 3. What do ports do? 4. What does every entrance have? 5. When
does the receiving system know where the data has to be delivered based on the port
number? 6. What does the data package always include? 7. What numbers do ports
have? 8. What is a standardized code number? 9. What type of ports can you name?
10. What organization is responsible for registration? 11. What is a dynamically
assigned port number? 12. How many code numbers are essential for communication?
13. What ports are also there? 14. What do some ports have? 15. Are dynamic ports
numbers assigned by IANA? 16. Port numbers can run from 0 to 65353, can’t they?
17. What ports are reserved for common TCP applications? 18. What does the use of
well-known ports allow client applications to do? 19. What are privileged ports?
20. What are the ports used on servers persistent? 21. What are ephemeral ports?
22. Are UDP port numbers independent from TCP port numbers? Explain. 23. What
can port numbers above 1023 be? 24. Who uses registered port numbers? 25. Where
can vendors register their application ports? 26. What are other software vendors
supposed to do? 27. Who uses private port numbers? 28. Where are datagrams sent?
29. What can be said of server applications and client processes? 30. Where do
operating systems hold information about well-known ports?
Exercise 3. Fill in the gaps with the correct word from the box
SMTP, sync, tunneling, possible, remotely, setting up, human-readable,
transferring, conceptual, maintains, establishing, common, encrypted,
associated, encryption
The OSI model is a ……. model of how the Internet works. It divides different
Internet services and processes into 7 layers.
There are 65,535 possible port numbers, although not all are …..in use. Some
of the most commonly used ports, along with their …… networking protocol, are:
Ports 20 and 21: File Transfer Protocol (FTP). FTP is for ……. files between a
client and a server.
Port 53: Domain Name System (DNS). DNS is an essential process for the
modern Internet; it matches ….. domain names to machine-readable IP addresses,
enabling users to load websites and applications without memorizing a long list of IP
addresses.
Port 80: Hypertext Transfer Protocol (HTTP). HTTP is the protocol that makes
the World Wide Web …….
Port 123: Network Time Protocol (NTP). NTP allows computer clocks to …..
with each other, a process that is essential for encryption.
Port 179: Border Gateway Protocol (BGP). BGP is essential for …. efficient
routes between the large networks that make up the Internet (these large networks are
called autonomous systems). Autonomous systems use BGP to broadcast which IP
addresses they control.
SPEAKING
Why do firewalls sometimes block specific ports?
What can hardware port be divided into?
Speak about types of ports.
Give some tips for using computer ports.
Factoid
Serial port - known in the trade as RS-232C, the serial connection is the oldest
"legacy" port on your computer (the industry's term for ancient technology).
A serial port is also called a communication port and they are used for connection
of external devices like a modem, mouse, or keyboard (basically in older PCs).