Why Does RTP use UDP instead of TCP?

前端 未结 11 1384
南旧
南旧 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:38

    UDP is used wherever data is send, that does not need to be exactly received on the target, or where no stable connection is needed.

    TCP is used if data needs to be exactly received, bit for bit, no loss of bits.

    For Video and Sound streaming, some bits that are lost on the way do not affect the result in a way, that is mentionable, some pixels failing in a picture of a stream, nothing that affects a user, on DVDs the lost bit rate is higher.

提交回复
热议问题