Why Does RTP use UDP instead of TCP?

前端 未结 11 1182
南旧
南旧 2020-12-24 07:28

I wanted to know why UDP is used in RTP rather than TCP ?. Major VoIP Tools used only UDP as i hacked some of the VoIP OSS.

11条回答
  •  生来不讨喜
    2020-12-24 07:49

    RTP is fairly insensitive to packet loss, so it doesn't require the reliability of TCP.

    UDP has less overhead for headers so that one packet can carry more data, so the network bandwidth is utilized more efficiently.

    UDP provides fast data transmission also.

    So UDP is the obvious choice in cases such as this.

提交回复
热议问题