DHCP 2000 년 2 학기 이철 (200050649)

Slides:



Advertisements
Similar presentations
IP/MAC Address Translation
Advertisements

DHCP Dynamic Host Configuration Part 7 NVCC Professional Development TCP/IP.
Dynamic Host Configuration Protocol (DHCP)
TDC 375 Winter 2002John Kristoff - DePaul University1 Dynamic Host Configuration Protocol (DHCP) John Kristoff DePaul University.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 BOOTP and DHCP Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
BOOTP and DHCP Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
RFC 2131 DHCP. Dynamic Host Configuration Protocol.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 BOOTP, DHCP and NAT Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Host Configuration: BOOTP and DHCP
COS 420 DAY 22. Agenda Assignment 4 Corrected 2 B’s Assignment 5 posted Chap Due May 4 Final exam will be take home and handed out May 4 and Due.
DHCP (Dynamic Host Configuration Protocol) RD-CSY /09.
Network Layer (Part IV). Overview A router is a type of internetworking device that passes data packets between networks based on Layer 3 addresses. A.
1 Dynamic Host Configuration Protocol (DHCP). 2 Dynamic Assignment of IP addresses Dynamic assignment of IP addresses is desirable for several reasons:
DHCP Dynamic Host Configuration Protocol CIS 856: TCP/IP and Upper Layer Protocols Presented by Kyle Getz October 20, 2005.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 16 Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP)
Bootstrap and Autoconfiguration (DHCP)
COMS W COMS W Lecture 8. NAT, DHCP & Firewalls.
Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 8 The Dynamic Host Configuration Protocol (DHCP)
1 Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about dynamic assignment of IP addresses with DHCP.
CMPT 471 Networking II DHCP © Janice Regan,
Multicasting  A message can be unicast, multicast, or broadcast.
資 管 Lee Application Layer and Client-Server Model A3.
DHCP Dynamic Host Configuration Protocol Information management 2 Groep T Leuven – Information department 2/18 Agenda Introduction BOOTP.
DHCP Dynamic Host Configuration Protocol Zhiqi Chen April 12, 2006.
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Exploring How IP Address Protocols Work INTRO v2.0—4-1.
Guide to TCP/IP, Third Edition Chapter 8: The Dynamic Host Configuration Protocol.
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.
Sublayers Under the Network Layer: BOOTP & DHCP
Wednesday, December 04, Dynamic Host Configuration Protocol CSI 5321 Presented by Junaid Taqui.
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.
Bootstrap and Autoconfiguration Chapter 23. Introduction Each computer attached to a TCP/IP internet needs to know: –its IP address –the address of a.
Module 01: Dynamic Host Configuration Protocol (DHCP)
Why Use DHCP? DHCP reduces the complexity and amount of administrative work by using automatic TCP/IP configuration Manual TCP/IP Configuration IP addresses.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
Networks and Protocols CE Week 3a. DHCP, ARP, DNS, TCP/UDP.
TCP/IP Protocol Suite 1 Chapter 16 Upon completion you will be able to: Host Configuration: BOOTP and DHCP Know the types of information required by a.
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.
Module 2: Allocating IP Addressing by Using Dynamic Host Configuration Protocol (DHCP)
Chapter 17 BOOTP and DHCP.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
Chapter 18 Host Configuration : DHCP
Chapter 22 Bootstrap and Auto configuration (DHCP) History of Bootstrap -Bootstrap is used to assign IP address to the computer. -Constant changes in the.
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.
Chapter 38 Initialization & Configuration. Bootstrapping occurs during boot up to obtain boot program which may then load operating system may use network.
Address Translation Outline Datalink layer intro ARP RARP DHCP.
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.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Introduction to Networking Technologies Dynamic Host Configuration Protocol (DHCP)
Configuring and Managing the DHCP Server Role. DHCP overview RARP – one of the first ways to assign addresses BOOTP – Another legacy way to assign addresses.
1 Kyung Hee University Chapter 16 Host Configuration : BOOTP and DHCP.
Dynamic Host Configuration Protocol (DHCP)
Bootstrap And Autoconfiguration (BOOTP, DHCP)
Host Configuration: BOOTP and DHCP
Dynamic Host Configuration Protocol (DHCP)
BOOTP and DHCP Objectives
Net 431 D: ADVANCED COMPUTER NETWORKS
Host Configuration: BOOTP and DHCP
Chapter 18 Host Configuration : DHCP
Chapter 16 Host Configuration : BOOTP and DHCP
Allocating IP Addressing by Using Dynamic Host Configuration Protocol
Overview Multimedia: The Role of DHCP in the Network Infrastructure
Chapter 18 Host Configuration : DHCP
Dynamic Host Configuration Protocol (DHCP)
Presentation transcript:

DHCP 2000 년 2 학기 이철 ( )

목 차  1. Reconfiguration of IP  2. RARP  3. BOOTP  4. DHCP 개요  5. DHCP PACKET  6. DHCP 동작 원리  7. DHCP And Domain Names

Reconfiguration of IP  Reconfiguration of IP address  필요성  Client PC 가 다른 segment 로 이동  Network 의 구성이 변동  사용자의 임의 변경  종류  Manual configuration  Automated configuration

Reconfiguration of IP(cont..)  Drawbacks of manual configuration  A lot of work  Very error-prone  Every host gets the correct network number  No tow hosts receive the same IP address

Reconfiguration of IP(cont..)  Types of automated configuration  RARP  BOOTP  DHCP

RARP  RARP(Reverse Address Resolution protocol)  Physical network address – identifying inforamtion  Diskless host  Broadcast(local)  And obtain its IP address from a server  Server reply back directly  Adapted from the ARP protocol & use same message format  Network must contain at least one RARP server

ethernet DA 6 ethernet SA 6 frame type 2 ethernet header hardware type 2 protocol type 2 hard size 1 protocol size 1 operation 2 sender ethernet addr. 6 sender IP addr. 4 target ethernet addr. 6 target IP addr bytes ARP request/reply

RARP(cont..)  The need for an alternative to RARP  Three drawbacks of RARP  It requires Direct access to the network H/W   application programmer cannot build a server  Small piece of information   4-octet IP address  Use a H/W address  Cannot be used on network that dynamically assign H/W addresses

BOOTP  BOOTP(BOOTstrap Protocol)  diskless system 이 boot 시 IP 를 포함한 system configuration 을 설정하는 방법  UDP 와 TFTP 를 이용  최초 client 가 server 로 request 시  link layer broadcast  IP header 내의 source IP address = , destination IP address = 로 set  BOOTP port number (in UDP)  client port : 67  server port : 68  client 에 필요한 subnet mask, default router, DNS 등은 server port 69 번으로 TFTP 를 통해 client 로 download

IP header 20 bytes UDP header 8 bytes BOOTP request/reply 300 bytes UDP datagram IP datagram 300 bytes Opcode 1 byte harware type 1byte hardware address length 1 byte hop count 1 byte transaction ID 4 bytes number of seconds 2 bytes unused 2 bytes client IP address 4 bytes your IP address 4 bytes server IP address 4 bytes gateway IP address 4 bytes client hardware address 16 bytes server hostname 64 bytes boot filename 128 bytes vendor specific information 64 bytes

 - Opcode: 1=request, 2=reply - hardware type: 1=ethernet - hardware address length: 6=ethernet - hop count: client 에서 0 으로 set( 최초 = 0) - transaction ID: random unique number. client set, server return. Client 는 request=response 확인 - number of second: client 가 bootstrap 을 시도한 시간을 set( 최초 =0) - client IP address: client 가 자기자신의 IP address 를 알면 set, 모르면 로 set - your IP address: client IP address 가 0 이면 server 가 IP address 를 채운다. - server IP address: server 에 의해 채워진다. - gateway IP address: proxy server 를 사용할 경우 proxy server 의 router IP address 를 지정 - client hardware address: client 는 반드시 set. ethernet header 의 MAC address 와 동일 - boot filename: client 는 일반적인 boot filename 기술. server 는 reply 시 boot file 의 실제경로 제공 - vendor specific information: 추가적인 information

DHCP 개요  The need for dynamic configuration  RARP, BOOTP  Designed for static environment  Configuration continues unchanged for weeks.  DHCP(Dynamic Host Configuration Protocol) extends BOOTP in two ways  Allows a computer to acquire all the configuration information it needs in a single message  Allows a computer to obtain an IP address quickly and dynamically

DHCP 개요 (cont..)  Three types of address assignment  Manual configuration(in BOOTP)  Automatic configuration(in BOOTP)  Server can assign a permanent address  Dynamic configuration  Server loans an address to a computer for a limited time

DHCP Packet  BOOTP 와 호환이 가능  DHCP 서버는 BOOTP 요청에 응답이 가능  Flag  서버가 요청에 응답할 경우 Broadcast 인지 Unicast 인지를 결정

DHCP Packet(cont..)  Option  DHCP 메시지 타입인 경우 Type FieldCorresponding DHCP Message Type 1DHCPDISCOVER 2DHCPOFFER 3DHCPREQUEST 4DHCPDECLINE 5DHCPACK 6DHCPNACK 7DHCPRELEASE

DHCP Packet(cont..)  Option(cont..)  추가적인 Option  Class identifier : 정확한 parameter 를 선택하기 위해 client 가 server 로 전송  Client identifier : Client 의 lease 와 bind 정보를 하드웨어 Type 이나 하드웨어 주소로 확인하지 않고 이 클라이언트 identifier 로 확인

DHCP 동작원리  4 단계 프로세스  1. IP lease 탐색 (Discover)  TCP/IP 초기화  Broadcast : Discover  67/UDP 사용, DHCPDISCOVER  2. IP lease 제공 (Offer)  모든 서버가 제공  IP, subnet mask, server IP 를 기본 gateway 값으로 전송  68/UDP 사용, DHCPOFFER

DHCP 동작원리 (cont..)  4 단계 프로세스 (Cont..)  3. IP lease 의 선택 (Selection)  IP 선택 후 lease 해 줄 것을 요청 (Request) – Broadcast  선택 시 서버가 DNS 설정이 되어 있다면 서버에게 DNS 를 요구  DHCPREQUEST  4. IP lease 의 긍정 응답 (Acknowledge)  IP 를 제공한 서버는 Broadcast 로 긍정 응답  이외의 서버는 제공을 철회  DHCPACK

DHCP 동작원리 (cont..)  IP lease 의 갱신 (Reacquisition)  3 가지 타입  Renewing(50%), Rebinding(87.5%), Expiration  Bound 될 때 타이머가 가동  Renewing  Client : 해당 서버에 DHCPREQUEST 를 직접 전송  Server : DHCPACK, 새로운 lease 기간 & TCP/IP 구성 parameter 를 전송  Rebinding  Client : DHCPREQUEST – Broadcast  Server : DHCPACK/DHCPNACK

DHCP And Domain Names  A host get name at three possibilities  1. The host does not receive a name  2. The host is automatically assigned a name along with an IP address  3. The host can be assigned a permanent name that remains unchanged  Coordination between DHCP and DNS  REF> IETF RFC2026, “ Interaction between DHCP and DNS ”