11.1 | TCP/IP Transport Layer | |||
11.1.9 | TCP and UDP port numbers |
Both TCP and UDP use port (socket) numbers
to pass information to the upper layers. Port numbers are used to keep
track of different conversations crossing the network at the same
time.
Application software developers agree to use well-known port numbers that are issued by the Internet Assigned Numbers Authority (IANA). Any conversation bound for the FTP application uses the standard port numbers 20 and 21. Port 20 is used for the data portion and port 21 is used for control. Conversations that do not involve an application with a well-known port number are assigned port numbers randomly from within a specific range above 1023. Some ports are reserved in both TCP and UDP, but applications might not be written to support them. Port numbers have the following assigned ranges:
End systems use port numbers to select the proper application. The source host dynamically assigns originating source port numbers. These numbers are always greater than 1023.
|