UDP header format in Transport Layer in computer network in bangla |User Datagram Protocol in bangla



UDP header format in Transport Layer in computer network in bangla |User Datagram Protocol in bangla

UDP header format in Transport Layer in computer network in bangla |User Datagram Protocol in bangla

UDP Protocol or User Datagram Protocol : https://youtu.be/2EjWAZ5id3Y
TCP vs UDP : https://youtu.be/tG7Dpqh5K8g
TCP protocol: https://youtu.be/0lDm3dJ7j5o
TCP header format: https://youtu.be/1EzJxOLXiRg
TCP 3 way handshake: https:https: //youtu.be/dDeBXGaIcGg
TCP connection termination: //youtu.be/zM-bv0xnbLQ

Computer Network Playlist : https://youtube.com/playlist?list=PLW7fU_8SZVruBsFfULu9QRDsFfFSg77Cu

Wireless Ad Hoc Network Playlist:https://youtube.com/playlist?list=PLW7fU_8SZVrtgOkfjZFLh_46QvOR6Di5y

Machine Learning full Playlist: https://youtube.com/playlist?list=PLW7fU_8SZVrv3ZsJ-XsPA0RrriR1mlQlA

Management Information System Playlist: https://youtube.com/playlist?list=PLW7fU_8SZVrs0h1gOsZRokHzlYmcShvjp

Algorithm Playlist: https://youtube.com/playlist?list=PLW7fU_8SZVrv12r_JAXHNOGF1av6eqPbS

Data Structure Playlist: https://youtube.com/playlist?list=PLW7fU_8SZVrtXC0wsG7_X4onIDuKvapXH

The UDP does have any acknowledgment mechanism, i.e., there is no handshaking between the UDP sender and UDP receiver. If the message is sent in TCP, then the receiver acknowledges that I am ready, then the sender sends the data. In the case of TCP, the handshaking occurs between the sender and the receiver, whereas in UDP, there is no handshaking between the sender and the receiver.

It is a stateless protocol that means that the sender does not get the acknowledgement for the packet which has been sent.
Why do we require the UDP protocol?

As we know that the UDP is an unreliable protocol, but we still require a UDP protocol in some cases. The UDP is deployed where the packets require a large amount of bandwidth along with the actual data. For example, in video streaming, acknowledging thousands of packets is troublesome and wastes a lot of bandwidth. In the case of video streaming, the loss of some packets couldn’t create a problem, and it can also be ignored.
UDP Header Format
UDP Protocol

In UDP, the header size is 8 bytes, and the packet size is upto 65,535 bytes. But this packet size is not possible as the data needs to be encapsulated in the IP datagram, and an IP packet, the header size can be 20 bytes; therefore, the maximum of UDP would be 65,535 minus 20. The size of the data that the UDP packet can carry would be 65,535 minus 28 as 8 bytes for the header of the UDP packet and 20 bytes for IP header.

The UDP header contains four fields:

Source port number: It is 16-bit information that identifies which port is going t send the packet.
Destination port number: It identifies which port is going to accept the information. It is 16-bit information which is used to identify application-level service on the destination machine.
Length: It is 16-bit field that specifies the entire length of the UDP packet that includes the header also. The minimum value would be 8-byte as the size of the header is 8 bytes.
Checksum: It is a 16-bits field, and it is an optional field. This checksum field checks whether the information is accurate or not as there is the possibility that the information can be corrupted while transmission. It is an optional field, which means that it depends upon the application, whether it wants to write the checksum or not. If it does not want to write the checksum, then all the 16 bits are zero; otherwise, it writes the checksum. In UDP, the checksum field is applied to the entire packet, i.e., header as well as data part whereas, in IP, the checksum field is applied to only the header field.

Concept of Queuing in UDP protocol
UDP Protocol

In UDP protocol, numbers are used to distinguish the different processes on a server and client. We know that UDP provides a process to process communication. The client generates the processes that need services while the server generates the processes that provide services. The queues are available for both the processes, i.e., two queues for each process. The first queue is the incoming queue that receives the messages, and the second one is the outgoing queue that sends the messages. The queue functions when the process is running. If the process is terminated then the queue will also get destroyed.

UDP handles the sending and receiving of the UDP packets with the help of the following components:

It produces a minimal number of overheads. .

Comments are closed.