Skip to main content

What are the Advantages and Disadvantages of TCP/UDP ?? Difference between TCP and UDP



As in previous blog we have define and explain about what is TCP and UDP and from now we are moving ahead with Advantages, Disadvantages and Difference of TCP and UDP but for this you have to know about TCP and UDP hence to understand it go for a What is TCP and UDP.

What are the Advantages and Disadvantages of TCP/UDP ?? Difference between TCP and UDP


Advantage of TCP

Here, are pros/benefits of TCP:
  • It helps you to establish/set up a connection between different types of computers.
  • It operates independently of the operating system.
  • It supports many routing-protocols.
  • It enables the internetworking between the organizations.
  • TCP/IP model has a highly scalable client-server architecture.
  • It can be operated independently.
  • Supports several routing protocols.
  • It can be used to establish a connection between two computers.



Disadvantages of TCP

Here, are disadvantage of using TCP:
  • TCP never conclude a transmission without all data in motion being explicitly asked.
  • You can't use for broadcast or multicast transmission.
  • TCP has no block boundaries, so you need to create your own.
  • TCP offers many features that you don't want. It may waste bandwidth, time, or effort.
  • In this, model the transport layer does not guarantee delivery of packets.
  • Replacing protocol in TCP/IP is not easy.
  • It doesn't offer clear separation from its services, interfaces, and protocols.



Advantage of UDP

Here are the pros/benefits of UDP:
  • It never restricts you to a connection-based communication model; that's why startup latency in distributed applications is low.
  • The recipient of UDP packets gets them unmanaged, which also includes block boundaries.
  • Broadcast and multicast transmission are also available with UDP
  • Data loss can be made
  • Small transaction ( DNS lookup)
  • Bandwidth intensive app which endures packet loss


Disadvantages of UDP

Here, are important cons/drawback of UDP:
  • In UDP protocol, a packet may not be delivered or delivered twice. It may be delivered out of order, so you get no indication.
  • Routers are quite careless with UDP, so they never retransmit it if it collides.
  • UDP has no Congestion Control, and flow control, so implementation is the job of a user application.
  • UDP mostly like to suffer from worse packet loss



Difference between TCP and UDP

TCP:
  1. TCP is a connection-oriented protocol.
  2. TCP reads data as streams of bytes, and the message is transmitted to segment boundaries.
  3. TCP messages make their way across the internet from one computer to another.
  4. TCP rearranges data packets in the specific order.
  5. The speed for TCP is slower.
  6. TCP Header size is 20 bytes
  7. TCP is heavy-weight.
  8. TCP does error checking and also makes error recovery.
  9. Acknowledgment segments are there in TCP
  10. Using handshake protocol like SYN, SYN-ACK, ACK in TCP
  11. TCP is reliable as it guarantees delivery of data to the destination router.
  12. TCP offers extensive error checking mechanisms because it provides flow control and acknowledgment of data.


UDP:
  1. UDP is a connectionless protocol.
  2. UDP messages contain packets that were sent one by one. It also checks for integrity at the arrival time.
  3. UDP is not connection-based, so one program can send lots of packets to another.
  4. UDP protocol has no fixed order because all packets are independent of each other.
  5. UDP is faster as error recovery is not attempted.
  6. UDP Header size is 8 bytes.
  7. UDP is lightweight. There are no tracking connections, ordering of messages, etc.
  8. UDP performs error checking, but it discards erroneous packets.
  9. UDP has No Acknowledgment segments
  10. UDP have No handshake (so connectionless protocol)
  11. The delivery of data to the destination can't be guaranteed in UDP.
  12. UDP has just a single error checking mechanism which is used for checksums.


Comments

Popular posts from this blog

What is STP? - Explain Advantages and Disadvantages

The Spanning Tree Protocol is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. STP is a protocol. It actively monitors all links of the network. To finds a redundant link, it uses an algorithm, known as the STA (spanning-tree algorithm). The STA algorithm first creates a topology database then it finds and disables the redundant links. Once redundant links are disabled, only the STP-chosen links remain active. If a new link is added or an existing link is removed, the STP re-runs the STA algorithm and re-adjusts all links to reflect the change. STP (Spanning Tree Protocol) automatically removes layer 2 switching loops by shutting down the redundant links. A redundant link is an additional link between two switches. A redundant link is usually created for backup purposes. Just like every coin has two sides, a redundant link, along with