Does YouTube stream Videos via TCP?

Sebastian picture Sebastian · Oct 27, 2013 · Viewed 40.8k times · Source

I just sniffed some traffic using wireshark and noticed, that the YouTube traffic relies on TCP. I thought, they were using UDP? But it seems like as if they would use HTTP octet streams. Is YouTube really using TCP for streams or am i missing something?

Answer

David Schwartz picture David Schwartz · Oct 27, 2013

Because they need everything TCP provides (slow start, transmit pacing, exponential backoff, receive windows, reordering, duplicate rejection, and so on) they would either have to use TCP or try to do all those things themselves. There's no way they could do that better than each operating system's optimized TCP implementation.