0% found this document useful (0 votes)
8 views3 pages

CH 18

This document contains exercises about DHCP configuration. 1. DHCP packets have a minimum length of 236 bytes without options and a maximum of 300 bytes with options. 2. An example packet shows the efficiency of a DHCP packet is 81.38% due to encapsulation overhead. 3. An example DHCP packet includes the cookie, subnet mask option, and end of list option with padding to fill the packet. 4. Another example packet includes the cookie, subnet mask, time of day options, and uses padding and end of list options. 5. The time field in the time of day option can store up to 65,535 seconds.

Uploaded by

nnnn403010
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

CH 18

This document contains exercises about DHCP configuration. 1. DHCP packets have a minimum length of 236 bytes without options and a maximum of 300 bytes with options. 2. An example packet shows the efficiency of a DHCP packet is 81.38% due to encapsulation overhead. 3. An example DHCP packet includes the cookie, subnet mask option, and end of list option with padding to fill the packet. 4. Another example packet includes the cookie, subnet mask, time of day options, and uses padding and end of list options. 5. The time field in the time of day option can store up to 65,535 seconds.

Uploaded by

nnnn403010
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Chapter18.

fm Page 1 Saturday, June 13, 2009 6:10 PM

CHAPTER 18
Host Configuration: DHCP

Exercises
1. The minimum length of a DHCP packet is 236 (without the option field). The max-
imum is 300 bytes (with the option field).

2. We assume there is no option:

BOOTP packet 236 bytes


UDP header 8 bytes
IP header 20 bytes
Ethernet frame with preamble 26 bytes
Total 290 bytes

Efficiency = 236 / 290 = 0.8138 or 81.38%

3. Figure 18.E3 shows an example of the padding option. The option section starts
with the cookie (90.130.83.99) followed by the subnet mask option (included to
show the use of the padding option. We also need the end of list option (tag 255).
Figure 18.E3 Solution to Exercise 3

Base header
(236 bytes)

99.130.83.99
1 4 Subnet mask
Subnet mask 0 255

Padding option

4. Figure 18.E4 shows an example of the end of list option. The option section starts
with the cookie (90.130.83.99) followed by the subnet mask and time of day
options. We need three padding options and one end of list option.

1
Chapter18.fm Page 2 Saturday, June 13, 2009 6:10 PM

Figure 18.E4 Solution to Exercise 4

Base header
(236 bytes)

99.130.83.99
1 4 Subnet mask
Subnet mask 0 0
2 4 Time of day
Time of day 0 255
End-of-list option

5. The second field is 16 bits long. It can store up to 216 1 = 65,535 seconds.

6. Figure 18.E6 shows the solution. The left section shows the DHCP request packet
and its encapsulation in UDP and IP (parts a, b, and c). The right section shows the
reply DHCP packet and its capsulation in UDP and IP (parts d, e, and f).
Figure 18.E6 Solution to Exercise 4

IP header
Identification 0 0 Identification 0 0
TTL 17 Header checksum TTL 17 Header checksum
68 0x00000000 67 68 Server IP address 67
0xFFFFFFFF Client IP address

68 67 67 68

UDP
52 Checksum 52 Checksum
Code: 1 1 6 Hop count Code: 2 1 6 Hop count
Transaction ID Transaction ID
No. of seconds 0 No. of seconds 0
0 0

DHCP packet
0 0
0 0
0 0
0x00112115 0x00112115
0xEA21 0xEA21
Server name Server name

Boot file name Boot file name

Parts a, b, and c Parts d, e, and f

7.
A newly added host needs to know its subnet mask because this allows the host to
find out which subnet it is on.

8. A newly added host needs to know the address of a router in order to send a mes-
sage outside of its own local network.

9. A newly added host needs to know the address of a name server in order to resolve
a domain name to an IP address.

10. DHCP needs the services of TFTP because the DHCP packet is of a set size and
format. If a DHCP client needs more information than a packet can hold, the client
must retrieve the information using some other method.
Chapter18.fm Page 3 Saturday, June 13, 2009 6:10 PM

11. See Figure 18.E11. We assume that the server is 4 hops away. We also use transac-
tion ID of 1456. The messages between the client and the relay agent are broad-
cast. The messages between the relay agent and the server are unicast.
Figure 18.E11 Solution to Exercise 11

1 2

198.42.65.23 198.42.65.40 Server 142.53.19.25


Relay
Client

Internet
4
3

1 2
1 1 6 1 1 1 6 4
1456 1456
No. of seconds No. of seconds
0 0
0 0
0 142.53.19.25
0 198.42.65.40
Rest of the packet Rest of the packet

4 3
2 1 6 1 2 1 6 4
1456 1456
No. of seconds No. of seconds
198.42.65.23 198.42.65.23
198.42.65.23 198.42.65.40
142.53.19.25 142.53.19.25
198.42.65.40 198.42.65.40
Rest of the packet Rest of the packet

You might also like