What is the difference between TCP and UDP?

Q.  What is the difference between TCP and UDP?
- Published on 23 Sep 15

a. TCP guarantees that a packet will reach the destination without any duplication while UDP does not provide this guarantee.
b. The order of data will be same in TCP but that won't be so in UDP.
c. TCP is unreliable protocol but UDP is a reliable protocol.
d. Only a and b
e. Only b and c

ANSWER: Only a and b
 

    Discussion

  • Prajakta Pandit   -Posted on 14 Oct 15

    - TCP gives guarantee that a packet will reach on the destination without any duplication and the order of data will be same.

    - On the other hand UDP does not give guarantee that data will reach on destination.

    - TCP is a reliable protocol but UDP is unreliable protocol.

    - Data transmission is more dependable on TCP than UDP.

    - TCP is a connection oriented protocol, it means that connection must be open between two ends before sending data. But in UDP when you send the data from one end then we cannot know whether data is reaching on the other end or not.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)