📜  UDP和RTP之间的区别

📅  最后修改于: 2021-08-24 16:42:57             🧑  作者: Mango

1.用户数据报协议(UDP):
UDP是传输层协议。它是Internet协议套件(称为UDP / IP套件)的一部分。它是不可靠且无连接的协议。因此,不需要在数据传输之前建立连接。 UDP套接字是数据报套接字的一个示例。它在多播和广播中效率更高。

2.实时传输协议(RTP):
实时传输协议(RTP)是一种Internet协议,用于通过网络传递音频和视频。它基本上用于涉及流媒体的通信和娱乐系统中。

UDP和RTP之间的区别:

S.No. UDP RTP
1. UDP stands for User Datagram Protocol. RTP stands for Real-time Transport Protocol.
2. UDP is the Datagram oriented protocol. It is because there is no overhead for opening a connection, maintaining a connection, and terminating a connection. RTP is a internet protocol which is used for delivering audio and video over networks.
3. It is a connection-less protocol. It is a stateless protocol.
4. UDP is slower, simpler and less efficient as compared. RTP is faster, simpler and more efficient than UDP.
5. UDP is used for real-time streaming. RTP is used for real-time streaming.
6. It has no retransmission of lost packets. It can tolerate packet loss.
7. It supports broadcasting and multicasting. It also supports broadcasting and multicasting.
8. UDP is unreliable. RTP is less reliable.