Wireshark Lab Solution
Wireshark Lab Solution
Wireshark Lab Solution
Wireshark Lab
2020
Submitted to:
DR. AKMAL KHAN
Submitted by:
Muqaddas Fatima
MSCS (1st Semester)
SP20M2LA054
ADVANCED COMPUTER NETWORK
4. Wait until the “ipconfig /renew” has terminated. Then enter the same
your computer.
your computer.
Figure 1: Command Prompt window showing sequence of ipconfig commands that you should enter.
ADVANCED COMPUTER NETWORK
Questions:
1. Are DHCP messages sent over UDP or TCP?
The DHCP messages sent over UDP.
The port numbers are the same as the example in the Lab.
Figure 4: Ethernet
4. What values in the DHCP discover message differentiate this message from the
DHCP request message?
The values which differentiate the Discover message from the Request message
are in “Option 53: DHCP Message Type”.
ADVANCED COMPUTER NETWORK
6. A host uses DHCP to obtain an IP address, among other things. But a host’s
IP address is not confirmed until the end of the four-message exchange! If the
IP address is not set until the end of the four-message exchange, then what
values are used in the IP datagrams in the four-message exchange? For each
of the four DHCP messages (Discover/Offer/Request/ACK DHCP), indicate the
ADVANCED COMPUTER NETWORK
Discover: 0.0.0.0/255.255.255.255
Offer: 192.168.1.1/192.168.1.6
Request: 0.0.0.0/255.255.255.255
ACK:192.168.1.1/192.168.1.6
Figure 7: IP Addresses
8. What IP address is the DHCP server offering to your host in the DHCP Offer
message? Indicate which DHCP message contains the offered DHCP address.
The DHCP server offered the IP address 192.168.1.6 to my client machine. The
DHCP message with “DHCP Message Type = DHCP Offer” contained the
offered IP.
ADVANCED COMPUTER NETWORK
The “Relay agent IP address” is 0.0.0.0, which indicates that there is no DHCP
Relay used. There was no Relay Agent used in my experiment.
ADVANCED COMPUTER NETWORK
10. Explain the purpose of the router and subnet mask lines in the DHCP offer
message.
The router line indicates to the client what its default gateway should be.
The subnet mask line tells the client which subnet mask it should use.
ADVANCED COMPUTER NETWORK
11. In the DHCP trace file noted in footnote 2, the DHCP server offers a specific
IP address to the client (see also question 8. above). In the client’s response to
the first server OFFER message, does the client accept this IP address? Where
in the client’s RESPONSE is the client’s requested address?
13. What is the purpose of the DHCP release message? Does the DHCP server
issue an acknowledgment of receipt of the client’s DHCP request? What would
happen if the client’s DHCP release message is lost?
The client sends a DHCP Release message to cancel its lease on the IP address
given to it by the DHCP server. The DHCP server does not send a message back
to the client acknowledging the DHCP Release message. If the DHCP Release
message from the client is lost, the DHCP server would have to wait until the
lease period is over for that IP address until it could reuse it for another client.
14. Clear the bootp filter from your Wireshark window. Were any ARP packets
sent or received during the DHCP packet-exchange period? If so, explain the
purpose of those ARP packets.
No there is no Arp packets sent by DHCP packet exchanged period.
ADVANCED COMPUTER NETWORK