0% found this document useful (0 votes)
7 views

Udp Ip

The document discusses the User Datagram Protocol (UDP) and how it differs from the Transmission Control Protocol (TCP). UDP provides connectionless and unreliable data transmission over IP networks. It is preferred for real-time applications where packet loss is acceptable. UDP does not guarantee delivery or order packets but has low overhead, making it suitable for time-sensitive applications like streaming.

Uploaded by

gohola9880
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Udp Ip

The document discusses the User Datagram Protocol (UDP) and how it differs from the Transmission Control Protocol (TCP). UDP provides connectionless and unreliable data transmission over IP networks. It is preferred for real-time applications where packet loss is acceptable. UDP does not guarantee delivery or order packets but has low overhead, making it suitable for time-sensitive applications like streaming.

Uploaded by

gohola9880
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1. What does UDP/IP stand for? 9. What is a UDP port?

UDP/IP stands for User Datagram Protocol/Internet Protocol. A UDP port is a 16-bit number used to identify different
applications or services running on a device. It helps direct UDP
2. What is the purpose of UDP in UDP/IP?
datagrams to the correct application.
UDP (User Datagram Protocol) is a connectionless protocol that
10. What is a socket in UDP?
provides unreliable, low-overhead communication, suitable for
applications that prioritize speed over reliability. A socket in UDP is an endpoint for sending or receiving UDP
datagrams. It consists of an IP address and a port number.
3. How does UDP differ from TCP?
11. Does UDP provide error detection or correction?
UDP does not establish a connection before sending data, does
not guarantee packet delivery or order, and does not perform UDP provides basic error detection through the inclusion of a
retransmissions. TCP, on the other hand, provides reliable, checksum in the UDP header, but it does not perform error
connection-oriented communication. correction or retransmissions.
4. What is the role of IP in UDP/IP? 12. What is multicast in UDP?
IP (Internet Protocol) in UDP/IP is responsible for addressing Multicast in UDP refers to the ability to send a single datagram
and routing datagrams (packets) across the network. to multiple recipients simultaneously. It is often used for
streaming and real-time applications.
5. When is UDP preferred over TCP?
13. What is the advantage of using UDP for time-sensitive applications?
UDP is preferred over TCP when real-time communication is
more important than reliability, such as in audio/video streaming, UDP's low overhead and absence of connection setup make it
online gaming, or DNS queries. ideal for time-sensitive applications where small delays or
occasional lost packets are acceptable, such as real-time
6. What is a datagram?
audio/video streaming.
A datagram is a self-contained unit of data transmitted over a
14. What is UDP hole punching?
network. In UDP, each datagram is treated as an individual
message. UDP hole punching is a technique that allows two devices
behind NATs (Network Address Translations) to establish a
7. What is the maximum size of a UDP datagram?
direct UDP connection by exploiting the NAT's mapping
The maximum size of a UDP datagram is 65,507 bytes, behavior.
considering the 8-byte UDP header.
15. Can UDP be used for reliable data transfer?
8. Does UDP support flow control or congestion control?
While UDP itself does not provide reliability, it can be used in
No, UDP does not support flow control or congestion control. It combination with application-layer techniques to implement
relies on the application layer to handle these aspects. reliability, such as adding sequence numbers, acknowledgments,
and retransmissions.

You might also like