TCP and UDP Differences

I'm not going to list ALL the differences between TCP and UDP but just the fundamental ones. This article will list them along with the pros and cons of each. Main Characterises of TCP TCP is reliable  - This means it guarantees the delivery packets uncorrupted. This is all done by controlling the session with flow control, error detection, congestion control and re-transmission of lost packets. TCP is a connection orientated protocol - This means a connection or socket must first be established before data can flow. Data travels both ways. TCP  is ordered - TCP uses sequence numbers to ensure that packets are re-constructed in the correct order. TCP is slower than UDP - Because TCP does all the above there is additional overhead needed and processing time which makes TCP slower than UDP. Main Characteristics of UDP UDP is unreliable - UDP does not guarantee delivery of packets. There is no error detection, flow control or re-transmission of lost packets. It just sends them and doesn't care whether they arrive or not. UDP is a connection-less protocol -  Data is just sent and no socket needs to be established first. Data can flow one way (as in a radio broadcast)

By |2020-02-02T18:17:45+10:00March 9th, 2011|Categories: TCP/IP|Tags: , |0 Comments