



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lab exercise provides a comprehensive guide to understanding the user datagram protocol (udp), a transport protocol used in the internet. It covers key concepts like udp message structure, header fields, and practical applications. The exercise includes step-by-step instructions for capturing and analyzing udp traffic using wireshark, a network protocol analyzer. It also explores the relationship between udp and other protocols like ip and dns, and examines the use of broadcast and multicast addresses in udp communication.
Typology: Schemes and Mind Maps
1 / 7
This page cannot be seen from the preview
Don't miss anything!




To look at the details of UDP (User Datagram Protocol). UDP is a transport protocol used throughout the Internet as an alternative to TCP when reliability is not required. It is covered in §6.4 of your text. Re- view that section before doing this lab. The trace file is here: https://kevincurran.org/com320/labs/wireshark/trace-udp.pcap
There are many ways to cause your computer to send and receive UDP messages since UDP is widely used as a transport protocol. The easiest options are to:
Proceed as follows to capture a trace of UDP traffic; alternatively, you may use a supplied trace:
To check your understanding of UDP, you should sketch a figure of the UDP message structure as you ob- served. It should show the position of the IP header, UDP header, and UDP payload. Within the UDP header, show the position and size of each UDP field you can observe using Wireshark. Your figure can simply show the message as a long, thin rectangle. Try not to look at the figure of a UDP segment in the answer on next page. To work out sizes, observe that when you click on a protocol block in the middle panel (the block itself, not the “+” expander) then Wireshark will highlight the bytes it corresponds to in the packet in the lower panel and display the length at the bottom of the window. By looking at the details of the UDP messages in your trace, answer these questions:
Solutions – Step 3 UDP Message Structure Figure 1 : Structure of a UDP message This drawing shows the same UDP header fields as in the book in a slightly different format and with lengths given in bytes, not bits. It also shows the relation of the IP header and UDP payload to the UDP header. The answers to the questions are:
Solutions to Step 4: UDP Usage The answers to the questions are: