udp vs tcp

Sun, 03 May 2026 19:38:27 +0000

TCP and UDP are transport layer protocol, Layer 4 protocol in OSI (open systems interconnection model). The main difference along with pros and cons are as following. For general protocol message exchange, which can tolerate some packet loss. How much more efficient is UDP over TCP? TCP vs UDP for streaming and real time communications is a long running and ongoing discussion. I suspect you'll find there is no single 'right' answer. In very high level terms UDP does. I just came home from my exam in network-programming, and one of the question they asked us was "If you are going to stream video, would you use TCP or UDP? Give an explanation for both stored vide...