Skip to main content

Difference Between TCP Vs. UDP and it's working.

                             TCP vs. UDP


This article describes how TCP and UDP work, the difference between them, and why you would choose one over the other.


Overview

TCP(Transmission Control Protocol) is the most commonly used protocol on the Internet. The reason for this is because TCP offers error correction. When the TCP protocol is used there is a "guaranteed delivery." This is due largely in part to a method called "flow control". Flow control determines when data needs to be re-sent, and stops the flow of data until previous packets are successfully transferred. This works because if a packet of data is sent, a collision may occur. When this happens, the client re-requests the packet from the server until the whole packet is complete and is identical to its original.

UDP(User Datagram Protocol) is anther commonly used protocol on the Internet. However, UDP is never used to send important data such as webpages, database information, etc; UDP is commonly used for streaming audio and video. Streaming media such as Windows Media audio files (.WMA) , Real Player (.RM), and others use UDP because it offers speed! The reason UDP is faster than TCP is because there is no form of flow control or error correction. The data sent over the Internet is affected by collisions, and errors will be present. Remember that UDP is only concerned with speed. This is the main reason why streaming media is not high quality.When you are watching You Tube then UDP method is used to send the packets.









 DIFFERENCE BETWEEN TCP AND UDP WITH HELP OF IMAGES.....






On the contrary, UDP has been implemented among some trojan horse viruses. Hackers develop scripts and trojans to run over UDP in order to mask their activities. UDP packets are also used in DoS (Denial of Service) attacks. It is important to know the difference between TCP port 80 and UDP port 80. If you don't know what ports are go here.

Frame Structure :

As data moves along a network, various attributes are added to the file to create a frame. This process is called encapsulation. There are different methods of encapsulation depending on which protocol and topology are being used. As a result, the frame structure of these packets differ as well. The images below show both the TCP and UDP frame structures.

TCP FRAME STRUCTURE

UDP FRAME STRUCTURE



The payload field contains the actually data. Notice that TCP has a more complex frame structure. This is largely due to the fact the TCP is a connection-oriented protocol. The extra fields are need to ensure the "guaranteed delivery" offered by TCP.

Comments

Popular posts from this blog

hacking windows administration password

Changing Administrator Password using Command Prompt(CMD) A fter reading this post, you’ll be able to change your and anyone’s Administrator account password in windows OS(7,XP AND OLDER VERSION)  without asking him the previous one. Usually, for changing the passwords, we go to User Accounts in Control Panel and then option for changing the passwords. But windows doesn’t permit us to do so, till we enter the previous password. So, it’s clear that we can’t change the password from this method. Because, the current password is also required here, which we don’t know. But, the same thing can become possible, if perform the same task through Windows Command Prompt(CMD). In this method, we are not prompted to enter the current/old password. But for that, we first need to be logged in as an Administrator (see step 2 below), unless you will be shown an error message. So, I don’t want you to get any type of error, that’s why I was focussing on this point. ...

How to hack anyone System in seconds and Create viruses

G et some knowledge about virus... What is Virus ?  A computer virus is a program or piece of code that is loaded onto your computer without your knowledge and runs against your wishes. All computer viruses are man-made. A simple virus that can make a copy of itself over and over again is relatively easy to produce. Even such a simple virus is dangerous because it will quickly use all available memory and bring the system to a halt. An even more dangerous type of virus is one capable of transmitting itself across networks and bypassing security systems   Create Virus on Notepad : It is very easy to create a virus on notepad   H ow to open notepad follow these steps 1. P ush win + R then new window will open then type notepad and click on OK . After that notepad will open then type or paste these command and make a virus.   1 -> Virus Creation Tricks 1 Just open the Notepad and type the paste the following Code. set ws=createobje...

How to Use WHATSAPP On PC For Windows And MAC

How to Use WHATSAPP On PC For Windows And MAC Guys as you know Whatsapp is the most Popular Messanger available in the Market for Mobile Phones. Unfortunately if you dont own a Smart phone then you might not be able to use whatsapp. But don’t worry today I will Tell you how to use WHATSAPP on PC very easily.  You can Use it On Both Windows and Mac. Let us See How to Use Whatsapp On Windows and Mac PC. To Run Whatsapp on Pc, We will Require Android Emulator , Android Emulator Helps us to Run Whatsapp on PC.   To Follow these two step:- Step 1: -   Youwave And Bluestack are the Two Android Emulator which enable us to Run Whatsapp or any other Android App on PC . Step 2:- If you Go for Bluestack then Download and install it, then run the Bluestack and Click on ” Apps “                 Step 3:- Then Click on the Tab ” Social ” and select ” Whatsapp ” and Install it. ...