Tuesday, 24 May 2016

Wireshark Lab DHCP Solution

Link to download document down below! (Microsoft Word format)

1.  Are DHCP messages sent over UDP or TCP?

Answer: 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?

Answer: The port numbers are the same as the example given in this lab assignment.


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

Answer: The link-layer address of my host is (00:25:64:e7:3b:2e)


4.  What values in the DHCP discover message differentiate this message from the DHCP request message?

Answer: The values which differentiate the Discover message from the Request message are in “Option: (t=53,l=1) DHCP Message Type”



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?

Answer: 
Discover - Transaction ID 0x752c8ad1
Offer    - Transaction ID 0x752c8ad1
Request - Transaction ID 0x752c8ad1
ACK      - Transaction ID 0x752c8ad1


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.

Answer: The DCHP client and server both use 255.255.255.255 as the destination address. The client uses source IP address 0.0.0.0, while the server uses its actual IP address as the source.


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

Answer: The IP address of the DHCP server is 172.18.218.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.

Answer: The DHCP server offered the IP address 172.18.218.105 to my client machine. The DHCP message with “DHCP Message Type = DHCP Offer” contained the offered IP.


9.  Explain the purpose of the router and subnet mask lines in the DHCP offer message.

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



10.  In the example screenshots in this assignment, the host requests the offered IP address in the DHCP Request message. What happens in your own experiment?

Answer: In my experiment, the host requests the offered IP address in the DHCP Request message.



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

Answer: The lease time is the amount of time the DHCP server assigns an IP address to a client. During the lease time, the DHCP server will not assign the IP given to the client to another client, unless it is released by the client. Once the lease time has expired, the IP address can be reused by the DHCP server to give to another client. In my experiment, the lease time is 8 days.




12.  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?

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

Download Link:

How To Download:
Please disable any Ad Block software if any beforehand or this may not work properly.

1. Please wait for 5 seconds.


2. Click on "Skip Ad".


3. Click on "Download through your browser".


5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thank you 3000 <3 This helps me a lot

    ReplyDelete
  3. Hello everyone. Am here to testify how I got my loan from Mr. Pedro after I applied several times from various loan lenders who promised to help but they never gave me the loan. Until a friend of mine introduced me to Mr.Pedro Jerome promised to help me and indeed he did as he promised without any form of delay.I never thought there are still reliable loan lenders until I met Mr. Pedro, who indeed helped with the loan and changed my belief. I don't know if you are in any way in need of a genuine and urgent loan, Be free to contact Mr. Pedro via WhatsApp +1-8632310632 and his email: pedroloanss@gmail.com thank you.

    ReplyDelete

  4. I want to use this little time before i live for for work to recommend the right company you can take out a loan from here in the US or any part of the world(NEW AMERICAN FUNDING)i got my loan of $15,000 from NEW AMERICA FUNDING COMPANY without upfront fee if you need a loan you can email them here for a loan here on Email: crown_technology@yahoo.com OR Whatsapp: +12134218707

    ReplyDelete
  5. HAVE YOU LOST YOUR MONEY TO BINARY OPTION SCAM OR ANY ONLINE SCAM WHATSOEVER?.DO YOUR DESIRE CREDIT REPAIR[EQUIFAX, EXPERIAN, TRANSUNION? WELL, YOU HAVE FOUND REDEMPTION.


    BEWARE OF FRAUDSTERS looking to hoax.
    if you have been a VICTIM, contactEmail:creditcards.creditscoreupgrade@gmail.com
    whatsapp:+1(437) 536-6082 for directives.
    Here, it's always a win for you.

    ��OUR SERVICES��
    Binary Option funds recovery
    Social media hack
    Recovery of loan scam
    Credit repair (Equifax,Experian,Transunion)
    Email hack
    College score upgrade
    Android & iPhone Hack
    Website design
    Website hack
    And lots more.
    We have specially programmed ATMs that can be used to withdraw money at ATMs, shops and points of sale. We sell these cards to all our customers and interested buyers all over the world, the cards have a withdrawal limit every week.

    CONTACT INFO:
    Email:creditcards.creditscoreupgrade@gmail.com
    whatsapp:+1(437) 536-6082
    Copyright ©️ 2022.

    ReplyDelete