What are the UDP port numbers?
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.
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.
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 |
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics





How to use PHP and UDP protocols to implement asynchronous communication In modern Internet applications, asynchronous communication has become a very important method. By using asynchronous communication, user requests can be processed concurrently without blocking the main thread, improving system performance and response speed. As a popular back-end programming language, PHP how to use UDP protocol to achieve asynchronous communication? This article will introduce how to use the UDP protocol in PHP to implement simple asynchronous communication, and attach specific code examples. 1. Introduction to UDP protocolU

Common UDP port numbers 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.

The port numbers for the DHCP service are 68 and 67. dhcp is a LAN network protocol. It is usually used in large-scale LAN environments. Its main function is to centrally manage and allocate IP addresses and improve address usage. The DHCP protocol uses UDP as the transmission protocol. The host sends a request message to port 68 of the DHCP server, and the DHCP server responds with a response message to port 67 of the host. These two ports are normal DHCP service ports, which can be understood as one sending and one take over.

UDP (User Datagram Protocol) is a lightweight connectionless network protocol commonly used in time-sensitive applications. It allows applications to send and receive data without establishing a TCP connection. Sample Java code can be used to create a UDP server and client, with the server listening for incoming datagrams and responding, and the client sending messages and receiving responses. This code can be used to build real-world use cases such as chat applications or data collection systems.

Commonly used PHP port numbers include HTTP port number (80), HTTPS port number (443), FTP port number (21), SMTP port number (25), POP3 port number (110), IMAP port number (143), etc. Detailed introduction: 1. HTTP port number (80). Through the HTTP port number, the PHP application can receive and process HTTP requests from the client; 2. HTTPS port number (443). The PHP application can communicate with the client through the HTTPS port number. Establish secure connections and more.

UDP provides "connectionless" transport services. The Chinese name of UDP is User Datagram Protocol. It is a connectionless transport layer protocol in the OSI reference model. It provides simple and unreliable transaction-oriented information transmission services; UDP provides applications with a way to send encapsulated data without establishing a connection. IP packet method.

1. Socket: socket: ip address + port number. In the TCP/IP protocol, it uniquely identifies a process in network communication. Sockets are used to describe a one-to-one relationship between network connections. The TCP/IP protocol stipulates that network data flow should use big-endian byte order, that is, (memory) low address high byte (data). 2. UDP_SOCKET related UDP protocol----User Datagram Protocol (non-connection oriented)---SOCK_DGRAMh represents host, n represents network, l represents 32-bit long integer, and s represents 16-bit short integer. The IPv4 address format is defined in netinet/in.h, IPv4 address: sockadd

Basic introduction to UDP programming communication classes DatagramSocket and DatagramPacket [data packet/datagram] implement network programs based on the UDP protocol. UDP datagrams are sent and received through the datagram socket DatagramSocket. The system does not guarantee that the UDP datagram will be safely delivered to the destination, nor is it sure when it will arrive. The DatagramPacket object encapsulates a UDP datagram, which contains the IP address and port number of the sender and the IP address and port number of the receiver. Each datagram in the UDP protocol gives complete address information, so there is no need to establish a connection between the sender and the receiver. The two classes/objects at the core of the basic process Da