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

Họ và tên: Trần Nhật Huy MSSV: 1913566: Solution

The document summarizes the key fields in a UDP header based on analysis of a packet trace: - The UDP header contains 4 fields - Source Port, Destination Port, Length, and Checksum - each 2 bytes long for a total header length of 8 bytes. - The Length field specifies the number of bytes in the UDP segment (header plus data). - The maximum number of bytes that can be included in a UDP payload is 65535 bytes. - The largest possible source port number is 65535. - The IP protocol number for UDP is 17 in hexadecimal and decimal notation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Họ và tên: Trần Nhật Huy MSSV: 1913566: Solution

The document summarizes the key fields in a UDP header based on analysis of a packet trace: - The UDP header contains 4 fields - Source Port, Destination Port, Length, and Checksum - each 2 bytes long for a total header length of 8 bytes. - The Length field specifies the number of bytes in the UDP segment (header plus data). - The maximum number of bytes that can be included in a UDP payload is 65535 bytes. - The largest possible source port number is 65535. - The IP protocol number for UDP is 17 in hexadecimal and decimal notation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Họ và tên: Trần Nhật Huy

MSSV: 1913566
LAB_3A
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.
SOLUTION

UDP header contains 4 fields:


 Source Port
 Destination Port
 Length
 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.
SOLUTION
The UDP header has a fixed length of 8 bytes. Each of these 4 header fields is 2
bytes long.
(From 00 to f2)
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.
SOLUTION
The length field specifies the number of bytes in the UDP segment (header plus
data). An explicit length value is needed since the size of the data field may differ
from one UDP segment to the next. 
The length of UDP payload for selected packet is 51 bytes. (59 bytes - 8 bytes = 51
bytes).

4) What is the maximum number of bytes that can be included in a UDP payload?
SOLUTION
The maximum number of bytes that can be included in a UDP payload is (2^16 –
1) bytes plus the header bytes. This gives 65535 bytes – 8 bytes = 65527 bytes.

5) What is the largest possible source port number?


SOLUTION
The largest possible source port number is (2^16 – 1) = 65535.

6) What is the protocol number for UDP? Give your answer in both hexadecimal
and decimal notation.
SOLUTION
The IP protocol number for UDP is 0x11 hex, which is 17 in decimal value.

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. 
SOLUTION
The relationship between port numbers is that the source port on the send message
is the destination port of the receive message. The destiantion port for the send
message is also the source port for the receive message.
UDP sent by my Host
UDP reply to Host

You might also like