what is TCP and UDP
m8zamm4l 17-March-2008 04:54:28 AM

Comments


CP (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.





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.
Posted by saqlain231


Both are use for transmission of data but TCP use for realibility and UDP provides no realiable Connection.
Posted by crouse


TCP and UDP are both ports

TCP use for reliable,connection-oriented communiication
Posted by mrleo99098


TCP is basically layer 4 transport protocol which is used for reliable communication.
UDP is also layer 4 protocol which is used basically for real time communication no error correction and detection is in UDP
Posted by HamidAliKhan


TCP is a transmission control protocol.its a reliable protocol because in it we received acknowlegements of data packets but in UDP is viceversa.Both protocols work on transport layer of OSI Model.
Posted by Hash007


TCP: Transmission Control Protocol. It offers reliability in data transmission, results it is slow. It is used when connection-oriented data transmission is needed. It is L4 protocol in OSI.
UDP: User Datagram Protocol it is faster than tcp but provide unreliable data transmission. It also a L4 protocol , used when connection-less transmission is needed.

Posted by arunkhokher


TCP means transmission control protocol. reliability is much in tcp, comparing to udp tcp is slow but it is reliable.
UDP means user datagram protocol it is fast than tcp but it is not reliable
Posted by sugankmoorty



Posted: 26-March-2008 08:42:32 AM By: sugankmoorty

TCP means transmission control protocol. reliability is much in tcp, comparing to udp tcp is slow but it is reliable.
UDP means user datagram protocol it is fast than tcp but it is not reliable

Posted: 10-November-2008 02:02:39 AM By: arunkhokher

TCP: Transmission Control Protocol. It offers reliability in data transmission, results it is slow. It is used when connection-oriented data transmission is needed. It is L4 protocol in OSI.
UDP: User Datagram Protocol it is faster than tcp but provide unreliable data transmission. It also a L4 protocol , used when connection-less transmission is needed.

Posted: 15-November-2008 03:06:53 AM By: Hash007

TCP is a transmission control protocol.its a reliable protocol because in it we received acknowlegements of data packets but in UDP is viceversa.Both protocols work on transport layer of OSI Model.

Posted: 16-November-2008 05:36:13 AM By: HamidAliKhan

TCP is basically layer 4 transport protocol which is used for reliable communication.
UDP is also layer 4 protocol which is used basically for real time communication no error correction and detection is in UDP

Posted: 18-November-2008 02:25:33 AM By: mrleo99098

TCP and UDP are both ports

TCP use for reliable,connection-oriented communiication

Posted: 06-February-2009 04:52:33 AM By: crouse

Both are use for transmission of data but TCP use for realibility and UDP provides no realiable Connection.

Posted: 06-June-2009 06:22:31 AM By: saqlain231

CP (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.





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.