High-level overview of user datagram protocol
UDPUser Datagram ProtocolIt is a transmission protocol and an alternative to TCP.
The main difference between it and TCP is that it is connectionless.
This means that it is faster, each sent data packet is lighter, because it does not contain all the information required in TCP, and the handshake process is easier.
The disadvantage is that UDP is not as reliable as TCP.
In TCP, if a data packet is lost, the protocol can process it and then resend the data packet.
In UDP, it is not built into the protocol and must be processed at a higher level (built on top of it). There is no built-in check to control whether the data packet is received and whether the data packet is received correctly.
UDP inRFC 768 in 1980.
Some of the most famous application protocols that rely on the UDP layer areDNSAnd DHCP, and more importantlyHTTP/3, The next version of HTTP.
The UDP protocol uses ports to allow communication between processes, such as TCP.
More web tutorials:
- Introduction to WebSockets
- How HTTP requests work
- List of HTTP request headers
- List of HTTP response headers
- HTTP and HTTPS
- What is RFC?
- HTTP protocol
- HTTPS protocol
- The curl guide for HTTP requests
- HTTP cache
- List of HTTP status codes
- What is CDN?
- HTTP/2 protocol
- What is the port
- DNS, Domain Name System
- TCP protocol
- UDP protocol
- Introduction to REST API
- How to install a local SSL certificate in macOS
- How to generate a local SSL certificate
- How to configure Nginx for HTTPS
- A simple Nginx reverse proxy for serving multiple Node.js applications from subfolders
- What is a reverse proxy?