Presentation is loading. Please wait.

Presentation is loading. Please wait.

Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU1 Configuring Hosts through DHCP Configuring Hosts through DHCP.

Similar presentations


Presentation on theme: "Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU1 Configuring Hosts through DHCP Configuring Hosts through DHCP."— Presentation transcript:

1 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU1 Configuring Hosts through DHCP Configuring Hosts through DHCP

2 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU2 Configuring Hosts through DHCP In its present form, DHCP concentrates on providing network addresses to hosts. Although a host can always form a link-local address, such a addresses confine traffic to the local link. If a host wants to communicate across an internet with other hosts not on its local link, the host needs additional network addresses.

3 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU3 Configuring Hosts through DHCP Address autoconfiguration has a few shortcomings. All networks that use autoconfiguration must have a router generating router advertisements, and administrators must make sure that all such routers have the correct prefix information. Autoconfiguration also ties network addresses to particular hosts. An autoconfigured address is built from the host’s link address. Two host with different link addresses cannot share a network address, even if they are never on the network together.

4 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU4 Configuring Hosts through DHCP Furthermore, this binding prevents an administrator from assigning network addresses based on a more natural identifier, such as the name of the person using the host. DHCP resolves all of these issues with a more flexible and a more controllable method of autoconfiguring network addresses. The protocol also has the capability to relay other configuration information.

5 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU5 Configuring Hosts through DHCP Assigning Network Addresses Network administrators use DHCP to assign network addresses to hosts on their networks. DHCP gives these administrators the flexibility to assign addresses in one of three ways. The approaches represent different allocation strategies. Manual Allocation The most rigid method: Through this method, the administrator explicitly assigns specific addresses to specific hosts. When these hosts use DHCP to discover their addresses, DHCP provides them with the manually allocated values.

6 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU6 Configuring Hosts through DHCP Assigning Network Addresses Automatic Allocation Automatic allocation provides the same service as ICMP’s address autoconfiguration. It combines a link address with an address prefix to create a network address. DHCP uses a different approach to achieve that result, though. Instead of waiting for router advertisements, hosts actively request an address from a special computer acting as a DHCP server.

7 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU7 Configuring Hosts through DHCP Assigning Network Addresses Automatic Allocation Administrators may choose to use DHCP’s automatic allocation instead of address autoconfiguration for at least two reasons. First, DHCP does not require configuration and maintenance of routers on every network. Instead, address administration can be concentrated in a single host. Second, DHCP lets an administrator change allocation strategies easily. If the administrator changes some hosts from automatic allocation to another strategy, those hosts need never even know of the change.

8 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU8 Configuring Hosts through DHCP Assigning Network Addresses Dynamic Allocation Dynamic allocation represents the most adaptive allocation strategy. It lets a group of hosts share from a smaller pool of network addresses. This strategy is useful if addresses are in demand and only a limited number of the hosts need an address at any one time.

9 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU9 Configuring Hosts through DHCP Assigning Network Addresses Only two IP addressees are needed instead of six.

10 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU10 Configuring Hosts through DHCP Client-Server Interactions DHCP derives much of its power from making the allocation strategy transparent to the hosts it serves. A host that needs a network address takes exactly the same steps, regardless of the allocation strategy the administrator has selected. DHCP interactions follow a simple client-server model. A host that needs a network address becomes a client by asking for that address. The system that answers the requests acts as a DHCP server.

11 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU11 Configuring Hosts through DHCP Client-Server Interactions

12 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU12 Configuring Hosts through DHCP If a host knows the address of a DHCP server, it can send its request directly to that server. Otherwise, DHCP relies on a well-known multicast address. The address FF02::1:0 refers to all DHCP servers. Client-Server Interactions

13 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU13 Configuring Hosts through DHCP When the server and client are not on the same link, since the DHCP server multicast address has a link-local scope, messages addressed to FF02::0:1 cannot travel beyond the link on which they first appear. DHCP solves this problem by defining a third role beyond that of server and client. The new role is a DHCP relay. Relay Agents

14 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU14 Configuring Hosts through DHCP Relay Agents

15 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU15 Configuring Hosts through DHCP DHCP and the Domain Name Service DHCP servers also support their clients by interacting with the DNS. One thing that DHCP servers can do is autoregister their client’s names. If a client knows its domain name, it can supply that name when it requests an address. The DHCP server queries DNS for the client’s address. If DNS has no entry for the client, or if the server needs to assign the client a different address, it can update DNS through the DNS dynamic update mechanism.

16 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU16 Configuring Hosts through DHCP DHCP and the Domain Name Service

17 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU17 Configuring Hosts through DHCP DHCP and the Domain Name Service A DHCP server can also provide a domain name to its client. If the client does not know its name beforehand, it may find it convenient to get a name the same way it finds its address. The DHCP server must coordinate with the domain name server in this case as well.

18 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU18 Configuring Hosts through DHCP DHCP Message Formats 1:server detects an error 2:server could not support dynamic DNS update See next slide Number of addresses already had Typically, address of NIC 0: request an IP address Otherwise: request for a domain name

19 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU19 Configuring Hosts through DHCP DHCP Message Formats

20 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU20 Configuring Hosts through DHCP DHCP Message Formats The address count and interface token fields help keep clients and servers synchronized. In general, a client may request multiple addresses for the same interface. To make sure that the server knows that all such addresses belong to the same interface, the client supplies a value for its interface token. This value must be unique among all other interfaces to the network.

21 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU21 Configuring Hosts through DHCP DHCP Message Formats When the client makes a request for an address, it includes the number of addresses it already has in the address count field. The server also keeps track of this value, and it can detect when the two systems lose synchronization.

22 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU22 Configuring Hosts through DHCP DHCP Message Formats The most common cause of this error would be a reboot of the client’s computer. When the client restarts after the reboot, it will ask for a network address. Since it does not remember that it had an address before the reboot, it will set the address count to zero. When the server sees this address count, it returns an error to the client. At the same time, it removes any addresses previously assigned to the client, freeing them for reassignment elsewhere.

23 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU23 Configuring Hosts through DHCP DHCP Message Formats The transaction identifier associates requests and responses, as well as confirmation and rejection messages, with each other. Clients pick a value for this field, and servers reflect that value in their response.

24 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU24 Configuring Hosts through DHCP DHCP Message Formats Source IP address of the request

25 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU25 Configuring Hosts through DHCP DHCP Message Formats Cannot use the address after this Cannot use on new connection after this Client: name for address Server: return name for address Future extension to include various servers

26 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU26 Configuring Hosts through DHCP DHCP Message Formats An Example

27 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU27 Configuring Hosts through DHCP DHCP Message Formats Client sends to relay router

28 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU28 Configuring Hosts through DHCP DHCP Message Formats 2. Relay router sends to DHCP server

29 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU29 Configuring Hosts through DHCP DHCP Message Formats 3. DHCP server replied to relay router

30 Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU30 Configuring Hosts through DHCP DHCP Message Formats 4. Relay router replies to client


Download ppt "Next Generation Internet by R.S. Chang, Dept. CSIE, NDHU1 Configuring Hosts through DHCP Configuring Hosts through DHCP."

Similar presentations


Ads by Google