Web Technologies
Users prefer to stream high quality videos (e.g., watch YouTube) without lagging (i.e., slow loading). In this context, explain how UDP is better than TCP when streaming videos?
UDP is connection less protocol, where packets can be sent out of order and can be reconstructed at receiver end.UDP is suitable for YouTube like video streaming application because they can provide fast response time which is achieved because of no order of delivery.
Udp doesn’t need end to end conmections and its a non-reliable protocol. So, it doesn’t have any acknowledgement. So any packet that needs to sent doesn’t want to wait for acknowledgment of previous packet. And so, udp can send packets without any delays
TCP is connection orientated which requires packets need to be sent in order with start and end sequence which will induce delay in streaming
Get Answers For Free
Most questions answered within 1 hours.