UDP Protocol in Hindi: Lec-75 User Datagram Protocol Header in Computer Networks

695.5K views
•
April 24, 2018
by
Gate Smashers
YouTube video player
UDP Protocol in Hindi: Lec-75 User Datagram Protocol Header in Computer Networks

TL;DR

UDP protocol in Hindi is explained as a connectionless, unreliable transport protocol that sends data without establishing a connection or guaranteeing packet order. Its fixed 8-byte header contains source port, destination port, length, and checksum fields, and its maximum segment size is 65,535 bytes. Read on to understand each header field, payload limits, ports, and error detection.

Transcript

Hello friends! Welcome to Gate Smashers The topic is UDP That is User Datagram Protocol In transport we have seen that two protocols are very important. That is TCP and UDP So we are talking about UDP in this video. That where we use User Datagram Protocol We'll discuss about UDP header. So first I want to tell you about UDP It is a connection less... Read More

Key Insights

  • UDP is a connectionless transport protocol, which means data is sent without first creating a connection between the communicating machines. The lecture compares this behavior to posting a letter, where the sender prepares the data and dispatches it directly to its destination.
  • UDP is described as unreliable because it does not respond when one or more transmitted packets are lost. Reliability mechanisms associated with establishing a connection and ensuring delivery are not provided, so an application using UDP cannot assume that every sent packet reached the receiver.
  • UDP provides no packet-ordering guarantee because its header does not include a sequence number. If packets numbered 1, 2, 3, and 4 are transmitted, packets 3 or 4 may arrive before packet 2, especially when packets travel across different network paths.
  • The UDP header contains four fields: source port, destination port, length, and checksum. Source and destination ports identify the sending and receiving applications, supporting the transport layer's responsibility for end-to-end delivery between processes rather than merely between machines.
  • Port numbers range from 0 to 65,535 because a port field uses 16 bits. Ports from 0 to 1,023 are identified as well-known ports, while later values include registered and ordinary ports that applications and operating systems can use.
  • The UDP length field is 16 bits and represents the total size of the segment, including both its header and payload. Its maximum represented segment size is 65,535 bytes, rather than 65,536, because the 16-bit numeric range begins at zero.
  • The UDP header is always 8 bytes, leaving a maximum payload of 65,527 bytes when the total segment reaches 65,535 bytes. Payload means the pure application-layer data placed after the compulsory header, and smaller payloads can also be transmitted.
  • The UDP checksum detects errors by calculating a hash-like value from the UDP header, payload, and IP pseudo header. The receiver performs the calculation again and compares the values. The field is optional with IPv4 but mandatory with IPv6.

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is UDP protocol in Hindi, and how does it work?

UDP, or User Datagram Protocol, is a connectionless transport protocol. It sends data to another machine without first establishing a connection, similar to posting a letter without creating a dedicated link to its destination.

Q: Why is UDP called a connectionless protocol?

UDP does not establish a connection between the client and server before transferring data. The sender prepares the data and sends it directly to the other machine.

Q: Why is UDP considered unreliable?

UDP does not guarantee that every transmitted packet will reach its destination. If one or two packets are lost, UDP does not handle or recover that loss.

Q: Does UDP guarantee packet ordering?

No, UDP does not guarantee that packets arrive in their original order because it has no sequence-number field. Packets sent as 1, 2, 3, and 4 may arrive with packet 3 or 4 before packet 2.

Q: What fields are present in the UDP header?

The UDP header has four fields: source port, destination port, length, and checksum. The header has a fixed size of 8 bytes.

Q: What do the source and destination ports do in UDP?

The source port identifies the application sending the data, while the destination port identifies the receiving application or service. These fields support end-to-end delivery, and port numbers range from 0 to 65,535.

Q: What does the UDP length field represent?

The 16-bit length field represents the total UDP segment size, including the header and payload. The maximum segment size is 65,535 bytes, leaving up to 65,527 bytes of payload after the compulsory 8-byte header.

Q: How does the UDP checksum detect errors?

The checksum is used for error detection. It is calculated by combining values from the UDP header, the data, and the IP pseudo header.

Summary & Key Takeaways

  • UDP is a connectionless transport protocol that sends data without first establishing a path between the client and server. It resembles postal service because a sender can dispatch data directly. This approach provides no assurance that every packet will arrive, and UDP does not recover packets that are lost during transmission.

  • UDP does not maintain packet ordering because its header has no sequence-number field. Packets may travel through different network paths and reach the receiver in a different order. Unlike the many options available in a TCP header, the UDP header contains only source port, destination port, length, and checksum fields.

  • The UDP header has a fixed size of 8 bytes. Its 16-bit length field describes the total segment size, including both header and payload, with a maximum value of 65,535 bytes. The checksum detects data errors by using the UDP header, payload, and selected unchanging fields from the IP pseudo header.


Read in Other Languages (beta)

Share This Summary 📚

Explore More Summaries from Gate Smashers 📚