UDP Protocol

UDP (User Datagram Protocol) is an alternative communications protocol to Transmission Control Protocol (TCP) used primarily for establishing low-latency and loss-tolerating connections between applications on the internet.
It is a transport layer protocol and is used in number of applications such as Domain Name System (DNS), where queries must be fast and only consist of a single request followed by a single reply packet, the Simple Network Management Protocol (SNMP), the Routing Information Protocol (RIP) and the Dynamic Host Configuration Protocol (DHCP)
Watch the Video lecture on UDP (click here)
You are invited to raise queries by writing your question in the the box given below

Published by Expert_Talk

I like sharing article and discussion on emerging technologies. Love to share my knowledge on various latest trends and technologies.

21 thoughts on “UDP Protocol

  1. Generally, I would like to get more specific differences in use and connection of both TCP and UPD protocols?

    1. TCP is most commonly used protocol on the Internet. TCP guarantees the recipient will receive the packets in order by numbering them.The recipient sends messages back to the sender saying it received the messages.
      When using UDP, packets are just sent to the recipient. The sender will not wait to make sure the recipient received the packet — it will just continue sending the next packets. UDP is frequently used for live broadcasts and online games.

      1. To summarize the reply of u1710105, we can also say the TCP protocol provide more reliable and acknowledged services whereas UDP is unrealiable, unacknowledged services.
        UDP is faster than TCP for reason that it does not care for concerns related to security and reliability.

  2. Most implementations today allow
    two options for connection termination. Those are three-way handshaking and four-way handshaking with a half-close option, right? Then why do we need to use half-close option, three way hand shaking provides the almost method?

    1. TCP provides a full duplex communication and both communicating entity need to allocate resources like buffer space, CPU cycles etc. to each other before they start the actual data sharing.
      Half close option provides better utilization of resources, in such scenario one of the communicating entity free it resourses while the connection remains active.

  3. If UDP is not a suitable transport layer for donwloading a very large text file from the internet without missing part of file.
    1.Is UDP for only simple communication?
    2.Which transport layer is the best one for this moment?

    1. UDP is a connectionless, unreliable transport protocol, and also it is used only for process-to-process communication. If you use UDP for sending a small message it will save more time than TCP, but you shouldn’t take care of the reliability of your data.
      1. Yes, it is used almost for small message delivery.
      2. It depends if you send large data, TCP is the best option, otherwise UDP.

  4. Header of UDP is using only 16 bits form one of the fourth parts or 64 bits in total?

    1. The total 64 bits is the size of Header of UDP itself, and Header format of UDP is divided into four parts, 16 bits each which are source port number, destination port number, total length, and checksum

    2. The UDP datagram header consists of 4 fields, each of which is 2 bytes (16 bits). So, in total UDP header consists of 32 bits. The data section follows the header and is the payload data carried for the application.

    1. The major difference is that TCP is a connection-oriented protocol while UDP is a connection-less protocol. Moreover, TCP establishes connection between sender and receiver before sending data. However, UDP does not establish connection before sending data

    2. The major difference is that TCP is a connection-oriented protocol while UDP is a connection-less protocol.
      Moreover, TCP establishes connection between sender and receiver before sending data. However, UDP does not establish connection before sending data

    1. I assume you mean to ask gathering IP packet information that is referred as pseudo-header.

      pseudo-header is used for checksum calculation purposes, this information is provided by the IP layer. TCP first requests the missing IP header info (source IP) from the IP layer. Kindly note, generally Destination IP Address is already known to the transport layer. Once the IP Address from the IP layer is received it can complete the checksum calculation and pass UDP user datagram ) (without the IP pseudo-header) to the IP layer.

    1. UDP mainly used in cases when u need speed and do not care about reliability and error-control, like routing and broadcasting.

    1. Performance is the primary reason as TCP is slow becauseTCP requires connection establishment formalities through 3 way handshaking. With UDP, DNS servers don’t have to keep connections. Moreover, DNS requests are generally very small and does not much care for confidentiallity.

Leave a comment