Dhcp Packet Format - Huawei Quidway S3900 Series Operation Manual

Hide thumbs Also See for Quidway S3900 Series:
Table of Contents

Advertisement

Operation Manual - DHCP
Quidway S3900 Series Ethernet Switches-Release 1510
By default, a DHCP client updates its IP address lease automatically by unicasting a
DHCP-REQUEST packet to the DHCP server when half of the lease time elapses. The
DHCP server responds with a DHCP-ACK packet to notify the DHCP client of a new IP
lease if the server can assign the same IP address to the client. Otherwise, the DHCP
server responds with a DHCP-NAK packet to notify the DHCP client that the IP
address will be reclaimed when the lease time expires.
If the DHCP client fails to update its IP address lease when half of the lease time
elapses, it will update its IP address lease by broadcasting a DHCP-REQUEST packet
to the DHCP server again when seven-eighths of the lease time elapses. The DHCP
server performs the same operations as those described in the previous section.

1.3 DHCP Packet Format

DHCP has eight types of packets. They have the same format, but the values of some
fields in the packets are different. The DHCP packet format is based on that of the
BOOTP packets. The following table describes the packet format (the number in the
brackets indicates the field length, in bytes):
Figure 1-2 DHCP packet format
The field meanings are illustrated as follows:
op: Operation types of DHCP packets: 1 for request packets and 2 for response
packets.
htype, hlen: Hardware address type and length of the DHCP client.
hops: Number of DHCP relays which a DHCP packet passes. For each DHCP
relay that the DHCP request packet passes, the field value increases by 1.
xid: Random number that the client selects when it initiates a request. The
number is used to identify an address-requesting process.
secs: Elapsed time after the DHCP client initiates a DHCP request.
op(1)
op(1)
htype(1)
htype(1)
secs(2)
secs(2)
Huawei Technologies Proprietary
hlen(1)
hlen(1)
xid(4)
xid(4)
ciaddr(4)
ciaddr(4)
yiaddr(4)
yiaddr(4)
siaddr(4)
siaddr(4)
giaddr(4)
giaddr(4)
chaddr(16)
chaddr(16)
sname(64)
sname(64)
file(128)
file(128)
option(variable)
option(variable)
1-3
Chapter 1 DHCP Overview
hops(1)
hops(1)
flags(2)
flags(2)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents