Lab 5 Udp

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Lab 5(Wireshark): Exploring UDP 1

Lab5:
Wireshark: Exploring UDP
Gayatri
0878834
Computer network and security
IT-6003-7B3-24/SP
Prof. Hoell
04/21/2024
Lab 5(Wireshark): Exploring UDP 2

1 Answer: There are 4 fields in the UDP header namely source port, destination port, length, and
checksum.

2 Answer: By consulting the displayed information in Wireshark’s packet content field for
this packet, the length of UDP header is 8 bytes and the length (in bytes) of each of the UDP
header fields is 2 bytes long.
Lab 5(Wireshark): Exploring UDP 3

3 Answer: the length field defines the number of bytes in the UDP segment. The length of UDP
payload is 58-8 (bytes) = 50 bytes.
Lab 5(Wireshark): Exploring UDP 4

4 Answer: The maximum size of the UDP datagram determines the maximum number of
bytes that can be contained in a UDP payload. A UDP datagram can have a maximum size of
65,535 bytes, which comprises the data plus the header. Since the UDP header consists of 8
bytes, the maximum size of the UDP payload can be determined using the following formula:

Maximum UDP datagram size - UDP header size equals Maximum UDP payload size.
65,535 bytes is the maximum UDP payload size - 8 bytes =65,527 bytes.
Maximum size for a UDP payload is 65,527 bytes. Consequently, 65,527 bytes is the maximum
number of bytes that can be a part of a UDP payload.

5 Answer: 65,535 is the maximum source port number that can be used in UDP.

6 Answer: The protocol number for UDP is 17 in decimal value and 0x11 in hexadecimal value.
Lab 5(Wireshark): Exploring UDP 5

7 Answer: The destination port of the UDP packet sent by the host is the same as the source port
of the reply packet, and vice versa. The source port and destination port of the UDP packet sent
by the host are the same.
Lab 5(Wireshark): Exploring UDP 6

You might also like