Home >Common Problem >What are the applicable scenarios for UDP?
UDP is applicable to scenarios that emphasize output performance rather than completeness, such as audio and multimedia applications.
UDP applicable scenarios:
The UDP protocol is sent directly and does not determine whether to receive or send. Success, application scenario: When output performance is emphasized rather than completeness, such as audio and multimedia applications.
UDP communication protocol
No connection;
UDP uses best effort delivery, no To ensure reliability, UDP is packet-oriented. UDP neither merges nor splits the packets delivered by the application layer, but retains the boundaries of the packets;
Application No matter how long the message is handed to UDP by the layer, UDP will still send it, that is, send one message at a time;
UDP has no congestion control;
UDP supports one-to-one, one-to-many, many-to-one and many-to-many interactive communication.
UDP header overhead is small, only 8 bytes.
Related learning recommendations: PHP Programming from beginner to master
The above is the detailed content of What are the applicable scenarios for UDP?. For more information, please follow other related articles on the PHP Chinese website!