0% found this document useful (0 votes)
25 views2 pages

Lab4a Wireshark

Uploaded by

dokhang2489
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Lab4a Wireshark

Uploaded by

dokhang2489
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Select one UDP packet from your trace.

From this packet, determine how many


fields there are in the UDP header. (You shouldn’t look in the textbook! Answer
these questions directly from what you observe in the packet trace.) Name these
fields.
The header only contains 4 fields: the source port, destination port, length, and
checksum.

2. By consulting the displayed information in Wireshark’s packet content field for


this packet, determine the length (in bytes) of each of the UDP header fields.
Each of the four fields in the UDP header is exactly 2 bytes long, totaling 8 bytes
for the entire UDP header.

3. The value in the Length field is the length of what? (You can consult the text for
this answer). Verify your claim with your captured UDP packet.
If the Length field value is, for my example, 41, it means the UDP header is 8
bytes and the UDP payload is therefore:
𝟒𝟏 − 𝟖 = 𝟑𝟑 𝒃𝒚𝒕𝒆𝒔

4. What is the maximum number of bytes that can be included in a UDP payload?
(Hint: the answer to this question can be determined by your answer to 2. above)
𝟐𝟏𝟔 − 𝟖 (𝑼𝑫𝑷 𝑯𝒆𝒂𝒅𝒆𝒓) − 𝟐𝟎 (𝑰𝑷𝒗𝟒 𝑯𝒆𝒂𝒅𝒆𝒓) = 𝟔𝟓𝟓𝟎𝟕

5. What is the largest possible source port number? (Hint: see the hint in 4.)
𝟐𝟏𝟔 − 𝟏 = 𝟔𝟓𝟓𝟑𝟓

6. What is the protocol number for UDP? Give your answer in both hexadecimal
and decimal notation. To answer this question, you’ll need to look into the
Protocol field of the IP datagram containing this UDP segment (see Figure 4.13 in
the text, and the discussion of IP header fields).
17 in decimal or 0x11 in hexadecimal.

7. Examine a pair of UDP packets in which your host sends the first UDP packet
and the second UDP packet is a reply to this first UDP packet. (Hint: for a second
packet to be sent in response to a first packet, the sender of the first packet
should be the destination of the second packet). Describe the relationship
between the port numbers in the two packets

The relationship between port numbers is that the source port on the send
message is the destination port of the receive message. The destination port for
the send message is also the source port for the receive message.

You might also like