User Datagram Program (UDP)
Transcript of User Datagram Program (UDP)
![Page 1: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/1.jpg)
1
User Datagram Program
(UDP)
![Page 2: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/2.jpg)
2
Position of UDP in the TCP/IP protocol suite
![Page 3: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/3.jpg)
3
USER DATAGRAM
UDP packets, called user datagrams, have a fixed-
size header of 8 bytes.
![Page 4: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/4.jpg)
4
User datagram format
![Page 5: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/5.jpg)
5
The following is a dump of a UDP header in hexadecimal
format.
Example
a. What is the source port number?
b. What is the destination port number?
c. What is the total length of the user datagram?
d. What is the length of the data?
e. Is the packet directed from a client to a server or vice versa?
f. What is the client process?
![Page 6: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/6.jpg)
6
Example - Continued
Solution
a. The source port number is the first four hexadecimal digits
(CB84)16 or 52100.
b. The destination port number is the second four hexadecimal
digits (000D)16 or 13.
c. The third four hexadecimal digits (001C)16 define the length of
the whole UDP packet as 28 bytes.
d. The length of the data is the length of the whole packet
minus the length of the header, or 28 – 8 = 20 bytes.
e. Since the destination port number is 13 (well-known port), the
packet is from the client to the server.
f. The client process is the Daytime.
![Page 7: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/7.jpg)
7
Topics Discussed in the Section (UDP Services)
Process-to-Process Communication
Connectionless Service
Flow Control
Error Control
Congestion Control
Encapsulation and Decapsulation
Queuing
Multiplexing and Demultiplexing
Comparison between UDP and Generic Simple
Protocol
![Page 8: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/8.jpg)
8
Well-Known Port used with UDP
![Page 9: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/9.jpg)
9
Pseudoheader for checksum calculation
![Page 10: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/10.jpg)
10
Figure 14.4 Checksum calculation for a simple UDP user datagram
![Page 11: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/11.jpg)
11
Encapsulation and decapsulation
![Page 12: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/12.jpg)
12
Queues in UDP
![Page 13: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/13.jpg)
13
Multiplexing and demultiplexing
![Page 14: User Datagram Program (UDP)](https://reader031.fdocuments.net/reader031/viewer/2022012411/616b325cb3abe45521131c0d/html5/thumbnails/14.jpg)
14
UDP is an example of the
connectionless simple protocol with the
exception of an optional checksum
added to packets for error detection.
Note