Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Name: Hoàng Vũ Tĩnh Student No.: 1814355 Computer Networks Lab 4b Wireshark Lab: DHCP v8.0 1. Are DHCP Messages Sent Over UDP or TCP?

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

Name: Hoàng Vũ Tĩnh

Student No.: 1814355

Computer Networks Lab 4b

Wireshark Lab: DHCP v8.0

1. Are DHCP messages sent over UDP or TCP?

DHCP messages are sent over UDP (User Datagram Protocol )


2. Draw a timing datagram illustrating the sequence of the first four-packet
Discover/Offer/Request/ACK DHCP exchange between the client and server. For
each packet, indicated the source and destination port numbers. Are the port
numbers the same as in the example given in this lab assignment?

3. What is the link-layer (e.g., Ethernet) address of your host?

Address of my host is (38:ba:f8:68:84:74)

4. What values in the DHCP discover message differentiate this message from the
DHCP request message?
DHCP Message Type and Column Info

5. What is the value of the Transaction-ID in each of the first four


(Discover/Offer/Request/ACK) DHCP messages? What are the values of the
Transaction-ID in the second set (Request/ACK) set of DHCP messages? What is
the purpose of the Transaction-ID field?

First four (Discover/Offer/Request/ACK) DHCP messages :

Discover :0xff1d81f3

Offer:0xff1d81f3

Request:0xff1d81f3

ACK:0xff1d81f3
Second two (Request/ACK) DHCP messages :

Request:0xb290d9fb

ACK:0xb290d9fb

The transaction ID identifies if a message is part of a set of messages related to one


transaction

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 source and
destination IP addresses that are carried in the encapsulating IP datagram.

Discover: source 0.0.0.0 Destination 255.255.255.255

Offer: source 172.16.0.1 Destination 255.255.255.255

Request: source 0.0.0.0 Destination 255.255.255.255

Ack: DHCP172.16.0.1 Destination 255.255.255.255

7. What is the IP address of your DHCP server?

172.16.0.1

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 172.20.14.236 to my client machine

The DHCP message with “DHCP Message Type(Offer) contained that.

9. In the example screenshot in this assignment, there is no relay agent between


the host and the DHCP server. What values in the trace indicate the absence of a
relay agent? Is there a relay agent in your experiment? If so what is the IP
address of the agent?

The ip address being 0.0.0.0 indicates the absence of a relay agent. There is no relay
agent in my experiment.

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.

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?

The client does not accepted this


12. Explain the purpose of the lease time. How long is the lease time in your
experiment?

The lease time in my experiment is 18600s. The purpose of this is the amount of time
the DHCP server assigns an IP address to a client.

13. What is the purpose of the DHCP release message? Does the DHCP server
issue an acknowledgement of receipt of the client’s DHCP request? What would
happen if the client’s DHCP release message is lost?

A DHCP release message is sent by the client to to cancel the lease on an 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

You might also like