System Configuration: DHCP and Autoconfiguration Chapter 6.

Slides:



Advertisements
Similar presentations
DHCPv6.
Advertisements

CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
Host Autoconfiguration ALTTC, Ghaziabad. IPv4 Address and IPv6 equivalents ALTTC, Ghaziabad.
8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding.
Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol  datagram format  IPv4.
Dynamic Host Configuration Protocol (DHCP)
IP Addressing: introduction
ICMP: Internet Control Message Protocol used by hosts, routers, gateways to communication network-level information –error reporting: unreachable host,
CSE452:Computer Networks
Host Configuration: BOOTP and DHCP
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
1 Dynamic Host Configuration Protocol (DHCP). 2 Dynamic Assignment of IP addresses Dynamic assignment of IP addresses is desirable for several reasons:
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 16 Dynamic Host Configuration Protocol (DHCP)
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Dynamic Host Configuration Protocol (DHCP)
DHCP: Dynamic Host Configuration Protocol
Lecture 3a Mobile IP 1. Outline How to support Internet mobility? – by Mobile IP. Our discussion will be based on IPv4 (the current version). 2.
Bootstrap and Autoconfiguration (DHCP)
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
COMS W COMS W Lecture 8. NAT, DHCP & Firewalls.
Adapted from: Computer Networking, Kurose/Ross 1DT066 Distributed Information Systems Chapter 4 Network Layer.
1 Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about dynamic assignment of IP addresses with DHCP.
Multicasting  A message can be unicast, multicast, or broadcast.
DHCP Dynamic Host Configuration Protocol Zhiqi Chen April 12, 2006.
Network Layer4-1 DHCP: Dynamic Host Configuration Protocol Goal: allow host to dynamically obtain its IP address from network server when it joins network.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
Configuring DNS and DHCP Chapter 20 powered by DJ 1.
Dynamic Host Configuration Protocol (DHCP). History Diskless workstations –needed to know configuration parameters like IP address, netmask, gateway address.
DHCP Dynamic Host Configuration Protocol (RFC 2131) Michael Sadowsky CISC University of Delaware October 12, 2004 BOOTP Bootstrap Protocol (RFC.
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
Network Layer4-1 Subnets How many?
Wednesday, December 04, Dynamic Host Configuration Protocol CSI 5321 Presented by Junaid Taqui.
1 Chapter 4: Network Layer r 4.4 IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP m IPv6 r 4.5 Routing algorithms m Hierarchical routing.
1 CS 4396 Computer Networks Lab Dynamic Host Configuration Protocol (DHCP)
1 of 18 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0: Module 1; 1.2.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
BZUPAGES.COM BOOTP and DHCP The Bootstrap Protocol (BOOTP) is a client/server protocol that configures a diskless computer or a computer that is booted.
Lectu re 1 Recap: “Operational” view of Internet r Internet: “network of networks” m Requires sending, receiving of messages r protocols control sending,
Dynamic Host Configuration Protocol Avanthi Koneru Uttara Sawant Srikanth Palla.
Chapter 17 BOOTP and DHCP.
Chapter 18 Host Configuration : DHCP
1 Network Address Translation (NAT) and Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about private networks and NAT.
CIS 856: TCP/IP and Upper Layer Protocols Karthik Ravindra Nov 11, 2008 Dynamic Host Configuration Protocol [DHCP] - RFC 2131.
Allocating IP Addressing by Using Dynamic Host Configuration Protocol.
Multicasting  A message can be unicast, multicast, or broadcast. Let us clarify these terms as they relate to the Internet.
Dynamic Host Configuration Protocol (DHCP) DHCP provides a temporary IP address for a limited period of time DHCP has two databases. First one has static.
Wide Area Networks and Internet CT1403 Lecture3: Internet Network Layer 1.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
CHAPTER 10: DHCP Routing & Switching. Objectives 10.0 Introduction 10.1 Dynamic Host Configuration Protocol v Dynamic Host Configuration Protocol.
1 Kyung Hee University Chapter 16 Host Configuration : BOOTP and DHCP.
Network Layer 4-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note.
Dynamic Host Configuration Protocol (DHCP)
Host Configuration: BOOTP and DHCP
Instructor Materials Chapter 8: DHCP
Chapter 4: Network Layer
Dynamic Host Configuration Protocol (DHCP)
Net 431 D: ADVANCED COMPUTER NETWORKS
Chapter 18 Host Configuration : DHCP
Wide Area Networks and Internet CT1403
Chapter 16 Host Configuration : BOOTP and DHCP
DHCP and NAT.
Chapter 18 Host Configuration : DHCP
Dynamic Host Configuration Protocol (DHCP)
DHCP: Dynamic Host Configuration Protocol
Lecture 4a Mobile IP 1.
Chapter 5: Link Layer 5.1 Introduction and services
Presentation transcript:

System Configuration: DHCP and Autoconfiguration Chapter 6

DHCP: Dynamic Host Configuration Protocol Goal: allow host to dynamically obtain its IP address from network server when it joins network can renew its lease on address in use allows reuse of addresses (only hold address while connected/“on”) support for mobile users who want to join network (more shortly) DHCP overview: host broadcasts “DHCP discover” msg [optional] DHCP server responds with “DHCP offer” msg [optional] host requests IP address: “DHCP request” msg DHCP server sends address: “DHCP ack” msg

DHCP client-server scenario / / / DHCP server arriving DHCP client needs address in this network

DHCP server: arriving client DHCP discover src : , 68 dest.: ,67 yiaddr: transaction ID: 654 DHCP offer src: , 67 dest: , 68 yiaddrr: transaction ID: 654 lifetime: 3600 secs DHCP request src: , 68 dest:: , 67 yiaddrr: transaction ID: 655 lifetime: 3600 secs DHCP ACK src: , 67 dest: , 68 yiaddrr: transaction ID: 655 lifetime: 3600 secs DHCP client-server scenario

DHCP: more than IP addresses DHCP can return more than just allocated IP address on subnet:  address of first-hop router for client  name and IP address of DNS sever  network mask (indicating network versus host portion of address)

 connecting laptop needs its IP address, addr of first-hop router, addr of DNS server: use DHCP router with DHCP server built into router  DHCP request encapsulated in UDP, encapsulated in IP, encapsulated in Ethernet  Ethernet frame broadcast (dest: FFFFFFFFFFFF ) on LAN, received at router running DHCP server  Ethernet demuxed to IP demuxed, UDP demuxed to DHCP DHCP UDP IP Eth Phy DHCP UDP IP Eth Phy DHCP DHCP: example

DHCP server formulates DHCP ACK containing client’s IP address, IP address of first-hop router for client, name & IP address of DNS server  encapsulation of DHCP server, frame forwarded to client, demuxing up to DHCP at client DHCP: example router with DHCP server built into router DHCP UDP IP Eth Phy DHCP UDP IP Eth Phy DHCP  client now knows its IP address, name and IP address of DSN server, IP address of its first-hop router

Highlights Address Pools Leases Lease duration: minutes or days Client’s request requested lease duration, a copy of the address it is already using or last used, and other parameters Server’s response Based on client’s information (including the requesting MAC address) in addition to other exogenous information (e.g., the time of day, the interface on which the request was received)

DHCP Key difference from old BOOTP Leases Address Allocation Automatic Dynamic Manual

DHCP/BOOTP Message Format

Some options Common options include Pad (0) Subnet Mask (1) Router Address (3) Domain Name Server (6) Domain Name (15) Requested IP Address (50) Address Lease Time (51) DHCP Message Type (53) Server Identifier (54) Parameter Request List (55) DHCP Error Message (56) Lease Renewal Time (58) Lease Rebinding Time (59) Client Identifier (61) Domain Search List (119) End (255).

DHCP Message Types DHCPDISCOVER (1) DHCPOFFER (2) DHCPREQUEST (3) DHCPDECLINE (4) DHCPACK (5) DHCPNAK (6) DHCPRELEASE (7) DHCPINFORM (8) DHCPFORCERENEW (9) DHCPLEASEQUERY (10) DHCPLEASEUNASSIGNED (11) DHCPLEASEUNKNOWN (12) DHCPLEASEACTIVE (13)

Protocol Operation The IPv6 header is of fixed size (40 bytes) and contains 128-bit source and destination addresses. The Next Header field is used to indicate the presence and types of additional extension headers that follow the IPv6 header, forming a daisy chain of headers that may include special extensions or processing directives. Application data follows the header chain, usually immediately following a transport-layer header.

DHCP Message Types T: Lease Time T1: Renewal Time: start renewal with same server after this time expires Typically T/2 T2: Rebinding Time: renewal must be done with same server by T2. If not, then rebinding of the address is needed which means doing it from scratch while indicating that the client already has an IP address (in the client addr) Typically 7T/8

Lease Timers: An Example (tcpipguide.com)

DHCP client state machine

IPv6 Address Lifecycle Tentative: can be used only for IPv6 Neighbor Discovery DAD: Duplicate Address Detection is performed in this state Optimistic: It is like Tentative, but an address is allocated for some limited use Deprecated: can be used for existing connections, but not for new connections DAD: Duplicate Address Detection

Duplicate Address Detection (DAD) send one or more ICMPv6 Neighbor Solicitation messages If a Neighbor Advertisement message is received in response, DAD has failed, and the address being checked is abandoned

DHCPv6

Location Information GEOCONF option(“Geographical configuration”) Latitude, longitude, altitude GEOCONF_CIVIC option Country, city, district etc. More complex as the categories vary by country and characters in different languages have complex representations Why are these options needed?

Mobility and Handoff Information DHCP options to convey information about cellular configuration and handovers between different networks Types of such options Information Services available networks Command Services functions for controlling link parameters Event Services notification of link status changes

DHCP Snooping Implemented in some switches which limits DHCP traffic to those addresses that are in a list Two problems can be potentially addressed Rogue DHCP server is limited in the damage it can do Allocation limited to a set of MAC addresses

Stateless Address Autoconfiguration (SLAAC) Consider a network that has a single link and suppose there are no DHCP servers Single-Link or Link Local Addresses Automatic Private IP Addressing Generate a random address ( through using the 16-bit subnet mask ) Check for conflicts using ACD (Address Conflict Detection)