📜  TCP和RTP的区别

📅  最后修改于: 2021-09-28 10:27:45             🧑  作者: Mango

1. TCP:
TCP是一种面向连接的协议,其中通信设备在传输数据之前建立连接并在传输数据后关闭连接。

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

以下是 TCP 和 RTP 之间的区别:

TCP RTP
TCP stands for Transmission Control Protocol. RTP stands for Real-time Transport Protocol.
TCP is a connection-oriented protocol that means the communicating devices establish a connection before transmitting data and close the connection after transmitting the data. RTP is a network protocol which is used for delivering audio and video over networks.
It is a lossless protocol. It is a stateless protocol.
It is a slow process. It is faster than TCP.
TCP also provides flow control. It does not provide flow control.
It cannot tolerate packet loss. It can tolerate packet loss.
TCP is not generally used for real-time streaming. RTP is used for real-time streaming.
TCP is more reliable. RTP is less reliable.