Tuesday, January 16, 2018

Praktikum WireShark Lab:UDP




WireShark Lab UDP

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.
Jawab :

Ada 4 kolom : source port , destination port, length dan 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.
Jawab :

Header UDP memiliki panjang 8 byte. Masing-masing dari 4 kolom header ini berukuran 2 byte

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.
Jawab :


Panjang filed menentukan jumlah byte di segmen UDP (header plus data). Nilai panjang eksplisit diperlukan karena ukuran field data mungkin berbeda dari satu segmen UDP ke yang berikutnya.
Panjang muatan UDP untuk paket yang dipilih adalah 43 bytes.51 bytes - 8 bytes = 43 bytes.
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)


Jumlah byte maksimum yang dapat disertakan dalam muatan UDP adalah (2 ^ 16 - 1) byte ditambah byte header.
(2^16-1) = ( 65536 – 1)  = 65535 bytes
65535 – panjang header UDP =  65535 bytes – 8 bytes = 65527 bytes

5.      What is the largest possible source port number? (Hint: see the hint in 4.)
Jawab : (2^16 – 1) = 65535.
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).
Jawab :
Protocol number UDP decimal adalah 17 , sedangkan hexadecimal adalah  0x11 hex
     




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.
Jawab :
Source Port dari paket UDP yang dikirim oleh host sama dengan destination port dari paket reply, dan sebaliknya, destination port dari paket UDP yang dikirim oleh host sama dengan source port dari paket reply.





                                Paket Reply
                       
                               


















No comments:

Post a Comment