Skip to main content

TCP vs UDP Comparison

whenever a computer wants to communicate with another computer the communication between those two computers needs to be good and reliable so we can guarantee that the data is received correctly for example when you want to view a webpage or download a file or look at an email you'd expect to view the webpage intact and in order with nothing missing or if you're downloading a file you would want the entire file and not just a part of the file because if data is missing or out of order then it wouldn't be of any benefit to you so this is where TCP comes in TCP stands for transmission control protocol and this is one of the main protocols used in a tcp/ip network and TCP is what is used to guarantee that all the data is received and in order because without TCP then some of the data could be missing or out of order because if you view a web page without TCP your web page could be all messed up the images could be missing or the text could be backwards and out of order or if you download a file then you might not get the entire file or you could get the file out of order which would render the file useless so again this is where TCP comes in now TCP is a connection-oriented protocol which basically means that it must first acknowledge a session between the two computers that are communicating so the two computers verify a connection before any communication takes place and it does this by using a three-way handshake so the first step is that a computer will send a message called a syn sy n then the receiving computer will send back an acknowledgement message telling the sender that it has received the message and then finally the sender computer sends another acknowledgment message back to the receiver and then once this has taken place data can be delivered another important thing to remember about TCP is that it guarantees the delivery of the data so if a data packet goes astray and doesn't arrive then TCP will resend it you now UDP is very similar to TCP UDP is also for sending and receiving data but the main difference is that UDP is connectionless which means that it does not establish a session and it does not guarantee data delivery so when a computer sends their data it doesn't really care if the data is received at the other end and that's why UDP is known as the fire-and-forget protocol because it sends data and it doesn't really care what happens to it as this demonstration will show another point to remember is because of the less overhead that's involved of not guaranteeing data delivery UDP is faster than TCP so thank you for watching this video on the comparison between TCP and UDP please subscribe and I'll see you in the next video thank you

Comments

Popular posts from this blog

Printers Explained - Laser, Inkjet, Thermal, & Dot Matrix

hello everyone in this article we're going to talk about different types of printers now printers allow the ability to print copies of documents or photos onto paper from a computer now there are several different types of printers but the most common types that are used in homes and businesses are inkjet and laser printers and there are also a couple of less common printers such as thermal printers and dot matrix printers which we'll talk about later so let's first talk about inkjet printers now inkjet printers are the most common printers that are used in homes they are affordable and they produce photo quality results and they are enough to suit the needs of a typical home user now an inkjet printer works by the printhead moving back and forth across the paper during printing and during this process the printhead places ink on the paper in very tiny dots in fact these dots are so tiny that they are smaller in diameter than a human hair and as these dots are precisely pla

NAT Explained - Network Address Translation

nat stands for network address translation and this is a service that is used in routers and its purpose is to translate a set of IP addresses to another set of IP addresses and the reason for having the nat service is to help preserve the limited amount of IP version for public IP addresses that we have available around the world when the IP version 4 address was created engineers didn't realize how big the internet will become because even though there were over 4 billion IP version 4 addresses available the engineers thought that that would be enough but obviously they were wrong so in order to prevent a shortage of public IP version 4 addresses engineers developed private IP addresses and network address translation now there are two different types of IP version 4 addresses there's public and there is private public IP addresses are publicly registered on the Internet you have to have a public IP address if you want to go on the internet and there are approximately 4 billi

Port Forwarding Explained

what is port forwarding now maybe you've heard about it but you weren't exactly sure what it was or how it works so basically port forwarding allows computers over the Internet to connect to a specific computer or service within a private network it's basically making your computer accessible over the Internet even though you're behind a router so for example let's say a friend of yours at their home wants to remotely control your computer at your home using a service such as remote desktop connection now remote desktop connection is a service built into Microsoft Windows that enables you to connect to another computer running Microsoft Windows and then once you're connected to the remote computer you can use that computers programs and files just as if you were sitting in front of it so now your friend is ready to connect to your computer so we starts up the remote desktop connection and sends the request to your public IP address with a specific port number no