Ch. 22 Bootstrap And Autoconfiguration (DHCP, NDP or IPv6-ND)

Similar documents
Ch.6 Mapping Internet Addresses to Physical Addresses (ARP)

Ch.9 Internet Protocol: Error And Control Messages (ICMP)

Chapter 10 User Datagram Protocol (UDP)

Ch.7 Internet Protocol: Connectionless Datagram Delivery (IPv4, IPv6)

Address Resolution: BOOTP & DHCP

Ch.5 Internet Addressing 吳俊興 國立高雄大學資訊工程學系

CSF645 Mobile Computing 行動計算. IPv6. (Internetworking With TCP/IP vol Part 31) 吳俊興國立高雄大學資訊工程學系

BootP and DHCP. Flexible and Scalable Host Configuration 2005/03/11. (C) Herbert Haas

by Douglas Comer, Purdue University

DHCP Technology White Paper

IP/MAC Address Translation

Troubleshooting DHCP server configuration 28

Dynamic Host Configuration

Introduction to DHCP. DHCP Overview

The Netwok Layer IPv4 and IPv6 Part 2

DHCP Overview. Introduction to DHCP

Table of Contents 1 DHCP Overview DHCP Server Configuration 2-1

DHCP Basics (Dynamic Host Configuration Protocol) BUPT/QMUL

TSIN02 - Internetworking

HP 5120 SI Switch Series

Understanding and Troubleshooting DHCP in Catalyst Switch or Enterprise Networks

Part I: INTRODUCTION 吳俊興 國立高雄大學資訊工程學系. Fall 2006

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

Guide to TCP/IP Fourth Edition. Chapter 6: Neighbor Discovery in IPv6

HP A3100 v2 Switch Series

Wireshark Lab: DHCP SOLUTION

TSIN02 - Internetworking

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

IPv6 ND Configuration Example

HP FlexFabric 5930 Switch Series

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Fixed Internetworking Protocols and Networks. IP mobility. Rune Hylsberg Jacobsen Aarhus School of Engineering

Addressing protocols. TELE3118 lecture notes Copyright by Tim Moors Aug-09. Copyright Aug-09, Tim Moors

Dongsoo S. Kim Electrical and Computer Engineering Indiana U. Purdue U. Indianapolis

Operation Manual DHCP H3C S3600 Series Ethernet Switches-Release Table of Contents

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

IP: Addressing, ARP, Routing

TCP/IP Protocol Suite

TCP/IP Protocol Suite and IP Addressing

Introduction to routing in the Internet

EEC-684/584 Computer Networks

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Networking Potpourri: Plug-n-Play, Next Gen

Dynamic Host Configuration DHCP. DHCP Process Flow. Overview. DHCP Process Flow, cont. DHCP Process Flow, cont.

Enterprise Data Communication Products. Feature Description - IP Service. Issue 05 Date HUAWEI TECHNOLOGIES CO., LTD.

Address Management in IP Networks

IPv6: An Introduction

Introduction to routing in the Internet

Configuring IP Unicast Routing

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

Chapter 7. ARP and RARP MGH T MGH C I 20

6 Chapter 6. Figure 1 Required Unique Addresses

Protocol Configuration

Guide to TCP/IP, Third Edition. Chapter 8: The Dynamic Host Configuration Protocol

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

IPv6 Neighbor Discovery

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

The Netwok Layer IPv4 and IPv6 Part 2

Introduction to IPv6. IPv6 addresses

Operation Manual DHCP. Table of Contents

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

IPv6 Neighbor Discovery

Mobile IP. rek. Petr Grygárek Petr Grygarek, Advanced Computer Networks Technologies 1

Chapter 7. IP Addressing Services. IP Addressing Services. Part I

IPv6 Associated Protocols. Athanassios Liakopoulos 6DEPLOY IPv6 Training, Skopje, June 2011

Operation Manual DHCP H3C S5500-SI Series Ethernet Switches. Table of Contents. Table of Contents

Frame Transmission. Frames are transmitted using physical addresses within a network. N Z : network address (same scheme globally) ß R2,N R2 ß B,N B

12. Name & Address 최양희서울대학교컴퓨터공학부

H3C S5120-SI Switch Series

Lecture Computer Networks

Introduction to Internetworking

DHCP and DDNS Services for Threat Defense

IPv6 Neighbor Discovery

DHCP and DDNS Services

HP A5830 Switch Series Layer 3 - IP Services. Configuration Guide. Abstract

Introduction to IPv6. IPv6 addresses

Using AutoInstall and Setup

Internet Protocols (chapter 18)

Internet Protocol, Version 6

Acknowledgments. Part One - Introduction to the TCP/IP Protocol

Introduction to IPv6 - II

The trace is here:

IPv6 Client IP Address Learning

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Operation Manual DHCP. Table of Contents

Internet Control Message Protocol

Internetworking. different kinds of network technologies that can be interconnected by routers and other networking devices to create an internetwork

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

DHCP Configuration. Page 1 of 14

Chapter 1 Computer Networks and the Internet

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

HPE FlexFabric 5940 Switch Series

CSc Outline. Basics. What is DHCP? Why DHCP? How does DHCP work? DHCP

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

Configuring IP Unicast Routing

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Configuring IP Unicast Routing

operating system, must be downloaded from the network. clients, diskless workstations, and small embedded systems.

Transcription:

CSC521 Communication Protocols 網路通訊協定 Ch. 22 Bootstrap And Autoconfiguration (DHCP, NDP or IPv6-ND) 吳俊興國立高雄大學資訊工程學系 Internetworking With TCP/IP, Vol I: Sixth Edition, Douglas E. Comer

Outline 1 Introduction 2 History Of IPv4 Bootstrapping 3 Using IP To Determine An IP Address 4 DHCP Retransmission And Randomization 5 DHCP Message Format 6 The Need For Dynamic Configuration 7 DHCP Leases And Dynamic Address Assignment 8 Multiple Addresses And Relays 9 DHCP Address Acquisition States 10 Early Lease Termination 11 Lease Renewal States 12 DHCP Options And Message Type 13 DHCP Option Overload 14 DHCP And Domain Names 15 Managed And Unmanaged Configuration 16 Managed And Unmanaged Configuration For IPv6 17 IPv6 Configuration Options And Potential Conflicts 18 IPv6 Neighbor Discovery Protocol (NDP) 19 ICMPv6 Router Solicitation Message 20 ICMPv6 Router Advertisement Message 21 ICMPv6 Neighbor Solicitation Message 22 ICMPv6 Neighbor Advertisement Message 23 ICMPv6 Redirect Message 24 Summary 2

System Startup To keep protocol software general IP stack designed with many parameters Values filled in when system starts Two possible sources of information Local storage device (e.g., disk) Server on the network 3

Bootstrapping RARP (Reverse ARP) BOOTstrap Protocol (BOOTP) Early alternative to RARP Provided more than just an IP address Obtained configuration parameters from a server Used UDP Dynamic Host Configuration Protocol (DHCP) Replaces and extends BOOTP Provides dynamic address assignment 4

Apparent Contradiction Contradiction: stack must be initialized before being initialized DHCP used to obtain parameters for an IP stack DHCP uses IP and UDP to obtain the parameters Solution: using limited broadcast IP address DHCP runs as application, bud only needs basic facilities An application program can use the limited broadcast IP address to force IP to broadcast a datagram on the local network before IP has discovered the IP address of the local network or the machine's IP address. destination: 255.255.255.255 Note: server cannot use ARP when replying to client because client does not know its own IP address 5

Using IP to Determine an IP Address Example: Suppose client A wants to use DHCP to find bootstrap information and B is the server on the same network A does not know B s IP address or the IP address of the network. How to issue a request? Broadcast using IP limited broadcast address IP destination: 255.255.255.255 Mac destination: FF:FF:FF:FF:FF:FF Can B send a directly reply? Client A does not recognize its IP address yet. B can know Client A s IP, but A can t response to ARP request from B. Two alternatives: either broadcast the reply or use information from the request packet to manually add an entry to its ARP cache (does not work) 6

DHCP Retransmission DHCP places all responsibility for reliable communication on the client Client handles retransmission DHCP requires that UDP use checksums IP sent with the do not fragment bit Allow multiple replies: accept and process the first Handling datagram loss: timeout and retransmission When the client transmits a request, it starts a timer Initial timeout selected at random (0 to 4 seconds) to avoid simultaneous retransmission Timeout for successive retransmissions doubled After reaching a large value, 60 seconds, it does not increase the timer, but continues to use randomization 7

Two-Step Bootstrap DHCP provides information, not data Client receives Name of file that contains boot image Address of server Client must use another means to obtain the image to run typically TFTP using UDP port 69 It is used to read files from, or write files to, a remote server That transfer is performed in lock-step, with only one packet (either a block of data, or an 'acknowledgement') ever in flight on the network at any time It cannot list directory contents It has no authentication or encryption mechanisms 8

DHCP Address Assignment Backward compatible with BOOTP Can assign addresses in three ways Manual (manager specifies binding as in BOOTP) Automatic (address assigned by server, and machine retains same address) permanent assignment Dynamic (address assigned by server, but machine may obtain new address for successive request) for a limited time Manager chooses type of assignment for each address Support for autoconfiguration To use DHCP, a host becomes a client by broadcasting a message to all servers on the local network The host then collects offers from servers, selects one of the offers, and verifies acceptance with the server 9

Dynamic Address Assignment Assign dynamic address or information to a client host Not all clients connect to the net simultaneously Needed by ISPs Client obtains an IP address and uses temporarily When client finishes, address is available for another client Also used on many corporate networks Basic mechanism Client is granted a lease on an address Server specifies length of lease At end of lease, client must renew lease or stop using address Actions controlled by finite state machine 10

Dynamic Host Configuration Protocol RFC2131 UDP port 67 supplying each network client with an IP address, subnet mask, default gateway, an IP address for a WINS server, an IP address for a DNS server, and address lease time 11

DHCP Finite State Machine 12

DHCP Message Format OP: request(1) or reply(2) HTYPE and HLEN: as in ARP (Ethernet: HTYPE=1, HLEN=6) HOPS: client places 0 increase if forwarded by a machine SECONDS: seconds since boot FLAGS: only the highest bit used ask to response by broadcast Address Fields: clients fill in as much as they know Client IP: filled if the client has known its IP but to ask other information Your IP: a server returns the client s IP here if it finds Client IP is zero Server IP or Host Name nonzero: only the matched server will answer it zero: any server can answer it 13

DHCP Options and Message Type Field Type-Length-Value (TLV) style Message: Code(53)+Length(1)+Type Subnet Mask: Code (1) 0x01 0x04 0xff 0xff 0xff 0x00 Time Offset: Code (2) 0x02 0x04 0x00 0x00 0xff 0xff Pad: Code(0) End: Code(255) 14

Questions For Discussion Explain the relationship among ARP, DHCP and DNS. What basic facility is needed? Why? 15

Summary Two protocols available for bootstrapping BOOTP (static binding of IP address to computer) DHCP (extension of BOOTP that adds dynamic binding of IP addresses) DHCP Server grants lease for an address Lease specifies length of time Host must renew lease or stop using address when lease expires Actions controlled by finite state machine 16