Wonder
Log in
Research Outline
Prepared for Mark T. | Delivered November 2, 2019
Pros & Cons of UDP vs TCP
Review your project details
Goals
Gain an understanding of the pros and cons of using UDP vs TCP for delivering large bandwidth video streams in order to
help inform decision-making about which protocol to build a service around
View less
Early Findings
TCP
The key goal of TCP is
trustworthy process of transmission.
TCP works on something called
'flow control principle'
which means it won't transmit new data if previous packages haven't been fully transmitted.
Thus, the pro of TCP protocol is that it's guaranteed all data packages will be delivered, and no
part of the media stream
will be lost.
However, because of this TCP for video stream can be
time-consuming
and have
more delays than UDP.
UDP
UDP doesn't spend effort fixing delivery efforts, and prioritizes
uninterrupted flow of information.
Thus, one source notes that UDP is more
desirable for streaming video.
Another source
notes that the use case is likely relevant.
Streaming sports would be better for UDP as even a few second lag may make people miss a major game event, whereas for streaming where the quality including having no gaps is of higher priority, for example, streaming or downloading a video for quality playback, TCP may be better.
View less