In centos, udp is the abbreviation of "User Datagram Protocol", which means User Datagram Protocol. It is a connectionless transport layer protocol in the open system interconnection reference model, providing a simple transaction-oriented Unreliable messaging service.
The operating environment of this article: centos 7 system, Dell G3 computer.
Introduction to UDP
UDP is the abbreviation of User Datagram Protocol. The Chinese name is User Datagram Protocol, which is OSI (Open System Interconnection, Open System Interconnection) A connectionless transport layer protocol in the reference model that provides simple and unreliable transaction-oriented information transmission services. IETF RFC 768 is the formal specification of UDP. The protocol number of UDP in IP packets is 17. Like the well-known TCP (Transmission Control Protocol) protocol, the UDP protocol sits directly on top of the IP (Internet Protocol) protocol. According to the OSI (Open Systems Interconnection) reference model, both UDP and TCP are transport layer protocols. The main function of the UDP protocol is to compress network data traffic into data packets. A typical data packet is a transmission unit of binary data. The first 8 bytes of each data packet are used to contain header information, and the remaining bytes are used to contain specific transmission data.
The difference between UDP and TCP protocols:
1. Difference in connection
TCP object-oriented connection (such as making a phone call You need to dial up to establish a connection first).
UDP is connectionless, that is, there is no need to establish a connection before sending data.
2. Differences in security
TCP provides reliable services. The data transmitted through the TCP connection has no errors, no loss, no Repeat and arrive in order.
UDP is delivered on a best effort basis, i.e. reliable delivery is not guaranteed. The safety factor is low.
3. The difference in transmission efficiency
TCP transmission efficiency is relatively low.
UDP has high transmission efficiency and is suitable for communications or broadcast communications that require high-speed transmission and real-time performance.
4. The difference in the number of connection objects
TCP connections can only be point-to-point and one-to-one.
UDP supports one-to-one, one-to-many, many-to-one and many-to-many interactive communications.
Recommended tutorial: "centos tutorial"
The above is the detailed content of What does udp mean in centos. For more information, please follow other related articles on the PHP Chinese website!