2
9.1kviews
Draw the DHCP packet format. With reference to this which fields determine:

i) The no. of hops a packet can travel ?

ii) The command is a request or reply?

iii) Why there is a need of transaction Id apart from IP address and port address?

iv) What is the maximum number of seconds that can be stored in the Number of Seconds field of a DHCP packet?

v) Which field determine that the response from the server is unicast or broadcast?

vi) If DHCP packet is request from client, which fields are used?

vii) If DHCP packet is a reply message from server, which fields are used?

1 Answer
3
463views

enter image description here

1) Flop count: This is an 8 bit field defining the maximum number of hops the packet can travel.

2) Operation code: This 8 bit field defines the type of DHCP packet request (1) or reply (2)

3) Transaction Id: This is a 4 byte field carrying an integer.The transaction identification is set by the client and is used to match a reply with the request. The server returns the same value in its reply.

4) Number of seconds: This is a 16 bit field that indicated the number of seconds elapsed since the time the client started to boot.

5) Flag: This is a 16 bit field in which only the leftmost bit is used and the rest of the bits should be set to Os. A left most bit specifies a forced broadcast reply (instead of uncast) from the server. If the reply mere to be unicast to the client, the destination IP address of the IP packet is the address assigned to the client.

enter image description here

6) Your IP address: This is a 4 byte field that contains the client IP address. It is filled by the server (in the reply message) at the request of the client.

7) Server IP address: This is a 4 byte field containing the server IP address. It is filled by the server in a reply message.

Please log in to add an answer.