TCP vs. UDP

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and this is sunny welcome back today my topic is TCP and UDP TCP and UDP are two protocols at the transport layer of the OSI model TCP stands for transmission control protocol and a UDP stands for user Datagram protocol let's look at their difference first reliability TCP is a reliable transmission protocol while UDP is not when TCP delivers data segments to his destination the protocol makes sure that each segment is received no error occurs and all segments are put together in the correct order on the other hand when UDP delivers data to his destination it does not guarantee or even not hear if the data reaches the destination once the data is the same off goodbye and a good luck therefore UDP is not reliable the second difference is TCP is a connection-oriented while UDP is connectionless let me explain why TCP uses a three-way handshake to make sure the connection is established before data transmission after data is delivered TCP will follow a four-step procedure to make sure every bit of data is delivered and received before closing the connection on the other hand UDP is a connectionless no handshake to establish the connection no procedure to close the connection there is no way to know if the data is received once data is taking off no string attached tcp is like a formal interview while UDP is like a shouting at someone in a sports arena you don't really care about if the person hears you or not here are some jokes about a TCP and UDP a TCP walks to a bar and it says I want a beer the bartender says you want a beer TCP replies yes I want a beer a UDP walks to a bar and it says I want a beer it really doesn't care if the bartender hears him or not he might never get a beer well his UDP he doesn't hear I have been married for 26 years for the first of five years communications between my wife and me is like TCP I talked and she listened she talked and I listened but in the past several years our communications were becoming more like UDP I showed it to her and she shot it to me but I guarantee that neither of us listened well the only listeners are our neighbors if I were TCP I would ask you about my joke did you get it did you get it did you get it until you said yes if I were UDP I would not even bother you with this stupid question did you get it did you get it finally let's look at the TCP header and a UDP header here I do not want to go to detail to bore you to death you can easily see the difference I simply want to point out that even though UDP has checksum - but is optional for IP version 4 and it's only quiet for IP version 6 and it is much simpler than that would TCP at this point you might ask is there any good things about the UDP yes UDP is a faster and more efficient than TCP UDP is useful for live streaming audio or streaming video when we watch our movies online yes we hear about reliability but we do not want to delay UDP is also good for multicast and broadcast such as DNS queries or DHCP broadcast or voice over IP but only a few applications use UDP TCP is still the dominant transport protocol web browsing telnet FTP and email are using TCP thank you very much and I'll see you next time [Music]
Info
Channel: Sunny Classroom
Views: 66,285
Rating: 4.9754725 out of 5
Keywords: sunnyclassroom, networking+, cybersecurity, security+, networking +, cyber threats, cyber defense, IoT, Wi-Fi security, UDP, TCP, User datagram protocol, Transmission Control Protocol
Id: SLY4Ud53UGs
Channel Id: undefined
Length: 5min 37sec (337 seconds)
Published: Thu Feb 22 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.