- DCN - Computer Network Security
- DCN - Computer Network Models
- DCN - Computer Network Topologies
- DCN - Network LAN Technologies
- DCN - Computer Network Types
- DCN - Overview
- Data Comm & Networks Home
Physical Layer
- DCN - Network Switching
- DCN - Multiplexing
- DCN - Wireless Transmission
- DCN - Transmission media
- DCN - Analog Transmission
- DCN - Digital Transmission
- DCN - Physical Layer Introduction
Data Link Layer
- DCN - Data Link Control & Protocols
- DCN - Error detection and Correction
- DCN - Data Link Layer Introduction
Network Layer
- DCN - Network Layer Protocols
- DCN - Internetworking
- DCN - Routing
- DCN - Network Addressing
- DCN - Network Layer Introduction
Transport Layer
Application Layer
- DCN - Network Services
- DCN - Application Protocols
- DCN - Client-Server Model
- DCN - Application Layer Introduction
DCN Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
User Datagram Protocol
The User Datagram Protocol (UDP) is simplest Transport Layer communication protocol available of the TCP/IP protocol suite. It involves minimum amount of communication mechanism. UDP is said to be an unrepable transport protocol but it uses IP services which provides best effort depvery mechanism.
In UDP, the receiver does not generate an acknowledgement of packet received and in turn, the sender does not wait for any acknowledgement of packet sent. This shortcoming makes this protocol unrepable as well as easier on processing.
Requirement of UDP
A question may arise, why do we need an unrepable protocol to transport the data? We deploy UDP where the acknowledgement packets share significant amount of bandwidth along with the actual data. For example, in case of video streaming, thousands of packets are forwarded towards its users. Acknowledging all the packets is troublesome and may contain huge amount of bandwidth wastage. The best depvery mechanism of underlying IP protocol ensures best efforts to depver its packets, but even if some packets in video streaming get lost, the impact is not calamitous and can be ignored easily. Loss of few packets in video and voice traffic sometimes goes unnoticed.
Features
UDP is used when acknowledgement of data does not hold any significance.
UDP is good protocol for data flowing in one direction.
UDP is simple and suitable for query based communications.
UDP is not connection oriented.
UDP does not provide congestion control mechanism.
UDP does not guarantee ordered depvery of data.
UDP is stateless.
UDP is suitable protocol for streaming apppcations such as VoIP, multimedia streaming.
UDP Header
UDP header is as simple as its function.
UDP header contains four main parameters:
Source Port - This 16 bits information is used to identify the source port of the packet.
Destination Port - This 16 bits information, is used identify apppcation level service on destination machine.
Length - Length field specifies the entire length of UDP packet (including header). It is 16-bits field and minimum value is 8-byte, i.e. the size of UDP header itself.
Checksum - This field stores the checksum value generated by the sender before sending. IPv4 has this field as optional so when checksum field does not contain any value it is made 0 and all its bits are set to zero.
UDP apppcation
Here are few apppcations where UDP is used to transmit data:
Domain Name Services
Simple Network Management Protocol
Trivial File Transfer Protocol
Routing Information Protocol
Kerberos