Home > Common Problem > body text

What are the UDP port numbers?

青灯夜游
Release: 2023-02-23 14:00:51
Original
21770 people have browsed it

Commonly used port numbers for UDP are 53, 69, 161, 2049, 68, and 520. UDP uses port numbers to reserve their own data transmission channels for different applications: 1. Network File System (NFS), the port number is 2049; 2. Simple Network Management Protocol (SNMP), the port number is 161; 3. Domain Name System (DNS) , the port number is 53; 4. Simple File Transfer System (TFTP), the port number is 69; 5. Dynamic Host Configuration Protocol (DHCP), the port number is 68; 6. Routing Information Protocol, the port number is 520, etc.

What are the UDP port numbers?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

UDP is the abbreviation of User Datagram Protocol. The Chinese name is User Datagram Protocol. It is a connectionless transport layer protocol in the OSI (Open System Interconnection) reference model that provides transaction-oriented Simple and unreliable messaging service. UDP provides a way for applications to send encapsulated IP packets without establishing a connection.

UDP is a connectionless transport layer protocol in the OSI reference model. It is mainly used for transmissions that do not require packets to arrive in sequence. The checking and sorting of packet transmission sequences are completed by the application layer [4], providing A simple transaction-oriented unreliable messaging service. The UDP protocol is basically the interface between the IP protocol and the upper layer protocol. The UDP protocol is suitable for multiple applications running on the same device.

The UDP protocol uses port numbers to reserve their own data transmission channels for different applications. Such as Network File System (NFS, port number 2049), Simple Network Management Protocol (SNMP, port number 161), Domain Name System (DNS, port number 53) and Simple File Transfer System (TFTP, port number 69), dynamic host configuration Protocol (DHCP, port number 68), routing information protocol (RIP, port number 520), etc.

What are the UDP port numbers?

Each UDP message is called a user datagram, which is divided into two parts: UDP header and UDP data area. The header consists of four 16-bit fields, which respectively describe the source port, destination port, length of the message, and checksum of the message.

The source port field and destination field contain the 16-bit UDP protocol port number. The length field records the length of the datagram. Calculated in groups of 8 bits, including header and user data area. The checksum field is optional. If the value of this field is 0, it means no verification is performed. In general, using a checksum field is necessary.

Extended knowledge: Port number

Protocol Port Number (Port) is a method of identifying the target host process. TCP/IP uses a 16-bit port number to identify the port, so the value range of the port is [0,65535].

Ports can be divided into system ports, registration ports, and client usage ports.

(1) System port, the value range of the port is [0,1023]

##FTP- DATAFTP data transfer21FTPFTP Control22twenty three255367686980110##162(2) The registered port is unknown The port used by the application, the port range is [1024, 49151]. These ports must be registered with IANA to avoid duplication.
Protocol number Name Function
##20
##SSH ##SSH login
TELNET Remote login
SMTP Simple Mail Transfer Protocol
DNS Domain Name Resolution
DHCP DHCP server is enabled to monitor and accept client request information
DHCP The client is enabled to accept message replies from the DHCP server
TFTP Simple FTP
HTTP Hypertext transmission
POP3 Post Office Protocol
143 IMAP Interactive Mail Access Protocol
161 ##SNMP Simple Gateway Protocol
##SNMP(trap) SNMP Trap message
(3) The client port uses the port. This type of port is only used dynamically when the client process is running. After use, the process will release the port. The port range is [49152,65535]

For more related knowledge, please visit the

FAQ

column!

The above is the detailed content of What are the UDP port numbers?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!