Computer Networks II BOOTP DHCP

Documenti analoghi
Configurazione IP. Assegnazione Indirizzi IP

(parte 2) DHCP e NAT

Strato di rete (parte 2) Autoconfigurazione Protocollo DHCP

No. Time Source Destination Protocol Info DHCP DHCP Discover - Transaction ID 0xec763e04

La configurazione degli indirizzi IP. Configurazione statica, con DHCP, e stateless

Inizializzazione degli Host. BOOTP e DHCP

P2-11: BOOTP e DHCP (Capitolo 23)

Il protocollo IP A.A. 2006/2007. Alessandro Botticelli

Il protocollo IP A.A. 2005/2006. Walter Cerroni. Internet Protocol (IP) - RFC 791

DHCP Dynamic Host Configuration Protocol

Configurazione delle interfacce di rete

1. IPv IPv4. Telematica 3 - R. Bolla 1. Università di Genova Facoltà di Ingegneria. Telematica 3. dist. Architettura. Prof.

Gestione degli indirizzi

Gestione degli indirizzi

Corso di Laurea in Ingegneria Informatica. Corso di Reti di Calcolatori a.a. 2009/10

Livello Network di Internet. Francesco Dalla Libera

Configurazione automatica degli host in rete: DHCP

INTERNET e RETI di CALCOLATORI A.A. 2014/2015 Capitolo 4 DHCP Dynamic Host Configuration Protocol Fausto Marcantoni fausto.marcantoni@unicam.

CONNESSIONE DI UN PC ALLA RETE INTERNET

DHCP. Appunti di Sistemi per la classe V E inf. A cura del prof. ing. Mario Catalano. F. Castiglione

Corso di Laurea in Ingegneria Informatica. Corso di Reti di Calcolatori I

PROF. Filippo CAPUANI DHCP

Installazione e Configurazione del servizio DHCP. Orazio Battaglia

Reti di Telecomunicazioni R. Bolla, L. Caviglione, F. Davoli. Internet Protocol (IP) L indirizzamento IP ICMP. ARP e RARP DHCP NAT 32.

Reti e Protocolli rassegna (II)

Modulo 9 Insieme di protocolli TCP/IP e indirizzi IP

Lo sniffer. questo sconosciuto! Corso di Reti di Calcolatori Architetture e Servizi A.A. 2010/11. Introduzione allo sniffing TCP

Autore: Bandiera Roberto 2016

Parte II: Reti di calcolatori Lezione 15

Internetworking V anno

REGISTRATION GUIDE TO RESHELL SOFTWARE

INTERNET, RETI e SICUREZZA A.A. 2016/2017 Capitolo 4c DHCP Dynamic Host Configuration Protocol Fausto Marcantoni

CONNESSIONE WI-FI - GUIDA RAPIDA WI-FI CONNECTION - QUICK START GUIDE SUNWAY M XS

Per trovare un IP address (indirizzo IP) di un router Linksys, controllare le impostazioni del computer. Per istruzioni, cliccare qui.

Reti di calcolatori. Lezione del 18 giugno 2004

3 - Internet Protocol

WLAN660 GUIDA ALLA CONFIGURAZIONE EUTELIAVOIP

ARP e RARP. Silvano GAI. sgai[at]cisco.com. Mario BALDI. mario.baldi[at]polito.it Fulvio RISSO

ICMP. (Internet Control Message Protocol) Cosa è l ICMP? Messaggi di ICMP. Applicazioni di ICMP: ULP, Ping, Traceroute, Path MTU discovery

Manuale Utente Impostazione router Tele-assistenza

Guida rapida di installazione

Tutto il VoIP in 45 minuti!! Giuseppe Tetti. Ambiente Demo. VoIP IP PBX SIP

Posta elettronica per gli studenti for the students

&&' & + $, $ $ ( $" $ + ! " # $ " % Numeric addr. tough for humans to remember Numeric addr. impossible to guess

Introduzione Kerberos. Orazio Battaglia

Classe bit: net id host id. 1 0 net id host id net id host id multicast address

Domenico Costanzo Hacklab CS

Configurazione delle interfacce di rete

Il protocollo IP A.A. 2005/2006. Walter Cerroni

ARP/RARP. Problema della Risoluzione dell Indirizzo. Corrispondenza statica e dinamica. Scenari

Guida rapida alla configurazione della rete

Sommario Introduzione ai protocolli di rete Il protocollo NetBEUI Il protocollo TCP/IP Configurazione statica e dinamica del TCP/IP

How to use the WPA2 encrypted connection

IL PROTOCOLLO ICMP. La famiglia dei protocolli TCP/IP. Applicazioni ,ftp,telnet,www. IEEE 802-Ethernet-X25-Aloha ecc. Collegamento fisico

ICMP OSI. Internet Protocol Suite. Telnet FTP SMTP SNMP TCP e UDP NFS. Application XDR. Presentation. Session RPC. Transport.

Il VoIP parla Wireless. Giuseppe Tetti. Ambiente Demo. VoIP IP PBX SIP. Internet. Soft Phone

CCTV DIVISION GUIDA RAPIDA PER LA CONFIGURAZIONE DELL IP STATICO SU SISTEMI TVCC QUICK GUIDE FOR STATIC IP CONFIGURATION ABOUT CCTV SYSTEM

UNIVERSITÀ CÀ FOSCARI DI VENEZIA

Il collegamento delle reti aziendali: DHCP, DSL, PPPoE

Indirizzamento ed instradamento nelle reti IP

Livello di Rete: Indirizzamento IPv4, DHCP, indirizzi privati e NAT

Corso di Reti di Telecomunicazioni. Giovanni Schembra. Trasmissione trame su canale broadcast

Zeroshell come client OpenVPN

IP TV and Internet TV

Sommario ... vi Sommario

DHCP e ISP. DHCP e ISP. DHCP e server. DHCP e server DSL. Soluzioni. Digital Subscriber Line. Regola di dimensionamento

RETI INTERNET MULTIMEDIALI

Assegnazione indirizzi IP

Introduzione alla rete Internet

ARP e instradamento IP

Multicast Routing e LAN Switching

Doc. I357 IGB 1013.docx 24/10/2013 P. 1 / 5

Il collegamento delle reti aziendali: DHCP, DSL, PPPoE

UTStarcom ian-02ex ADATTATORE TELEFONICO ANALOGICO GUIDA ALL INSTALLAZIONE

MODEM ADSL Speed Touch PRO ( installazione e configurazione in LAN con connessione PPP)

RX3041. Guida all installazione rapida

DICHIARAZIONE DI RESPONSABILITÀ

Il livello Rete in Internet

Programmazione in Rete

LINKSYS SPA922 GUIDA ALLA CONFIGURAZIONE EUTELIAVOIP

User Guide Guglielmo SmartClient

Un caso estremo per gli algoritmi di routing: Reti Mobili Ad Hoc (MANET)

ADSL Router :: Ericsson B-Connect (HM220dp)

Interconnessione di reti

Internet. Introduzione alle comunicazioni tra computer

PIRELLI DISCUS NETGATE VoIP v2 GUIDA ALL INSTALLAZIONE. Pirelli Discus Netgate Guida all installazione EUTELIAVOIP Rev1-0

PIRELLI Discus NetGate VoIP v2 VOIP ADSL ROUTER GUIDA ALL INSTALLAZIONE

UTStarcom ian-02ex ADATTATORE TELEFONICO ANALOGICO GUIDA ALL INSTALLAZIONE

SUBNETTING E SUPERNETTING

IL LIVELLO RETE IN INTERNET Protocollo IP

Telematica di Base. IL Livello di Trasporto TCP

Introduzione al TCP/IP Indirizzi IP Subnet Mask Frame IP Meccanismi di comunicazione tra reti diverse Classi di indirizzi IP Indirizzi IP privati e

STATO IMPLEMENTAZIONE ONVIF SU TELECAMERE MUNDUS SECURUS

4b. Esercizi sul livello di Rete Inoltro in IP

Universita di Milano - Polo di Crema Novembre Spoofing. Marco Cremonini 1. Marco Cremonini - Corso Integrativo Network Security 1

NAT: Network Address Translation

Downloading and Installing Software Socio TIS

Reti di Calcolatori. Lo Stack ISO-OSI

Pannello principale di Trakbox

DHCP-DNS Di Giuseppe Latini

Transcript:

Dipartimento di Informatica e Sistemistica Computer Networks II BOOTP DHCP Luca Becchetti Luca.Becchetti@dis.uniroma1.it A.A. 2009/2010

IP address assignment IP stored on secondary storage Not available for diskless devices or when file system is on remote server IP address cannot be part of OS Obtained from remote server How possible to communicate with remote server without IP address? Machine and server communicate using NIC's physical address

RARP Reverse Address Resolution Protocol Permette di conoscere l IP a partire dall indirizzo fisico La macchina non conosce l indirizzo fisico del RARP Server e quindi invia in broadcast sulla rete la richiesta Inviato nella porzione Data di un network frame Tutte le macchine ricevono il frame ma solo i Server RARP sono autorizzati alla risposta

RARP E possibile anche ottenere l IP di una macchina con cui si vuole comunicare Non vi sono strumenti per verificare se non vi è stata una perdita sulle rete locale La richiesta viene reiterata se scaduta entro un tempo fissato Può essere reiterata all infinito o per un numero finito di volte RARP è oramai desueto

Alternativa a RARP RARP necessita di accesso diretto al livello macchina per cui è molto difficile costruire tale server a livello applicazione La risposta contiene solo l indirizzo IP di 4 byte, al di sotto della lunghezza minima di un frame Ethernet Non può essere usato su reti che assegnano l indirizzo hardware in modo dinamico Due possibilità: BOOTP DHCP estende BOOTP e permette l assegnazione dinamica dell IP

BOOTP Single packet exchanged between Client and Server Configuration file for every HOST Host obtains more than IP address: Router address Subnet mask Name server Vendor specific Hw info BOOTP uses UDP which sits on top of IP!

Come usare IP senza un indirizzo IP IP può ricevere e trasmettere sull indirizzo 255.255.255.255 (limited broadcast) ancora prima di scoprire il suo indirizzo IP La richiesta è inviata in broadcast La risposta del Server contenente l indirizzo IP della macchina è anche inviata in broadcast in quanto l indirizzo IP ancora non è noto alla macchina Se non si ottiene risposta dopo un timeout scelto casualmente tra 0 e 4 sec., il pacchetto è ritrasmesso con timeout doppio fino ad un massimo di 60 secondi La scelta casuale aiuta a limitare collisioni, specialmente nel caso di attività congiunta di BOOT dopo un crash del sistema

Messaggi BOOTP

Messaggi BOOTP Stesso formato per richieste e risposte HTYPE, HLEN: tipo di rete e lunghezza dell indirizzo HOPS: se la richiesta è trasmessa attraverso più routers, HOPS è incrementato TRANSACTION ID: usato da macchine senza disco SECONDS: tempo di time out

BOOTSTRAP IN DUE FASI Bootstrap non fornisce un immagine della memoria ma solo le informazioni per accedere all immagine della memoria TFTP permette di ottenere un immagine della memoria Le due macchine possono essere indipendenti E possibile avere più immagini di memoria per macchine diverse BOOT FILE NAME: riferimento all immagine di memoria appropriata per l hardware del Client

Vendor specific area Informazioni aggiuntive possono essere fornite Le informazioni nell area specifica del vendor sono di lunghezza fissata

Dynamic IP configuration/ DHCP DHCPderives from BOOTP BOOTP establishes permanent association between IP and HOST Why dynamic address assignment: ISP assigning temporary addresses Mobile users connecting to different networks Number of users may exceed number of available IP addresses but not all users active at the same time

DHCP overview Three configuration modes: Manual: assign predetermined IP to machine Automatic: assign permanent IP when host connects for the first time to the network Dynamic: assign a temporary IP address All configuration info contained in a single message Client identified by MAC address and by network to which it belongs DHCP operation occurs according to finite state machine

Dynamic IP configuration Automatic dynamic configuration subject to administrative oversight IP address pool assigned to DHCP server Addresses may be assigned for a limited time interval (lease time) At the end of lease time address assignment must be renewed or association (binding) ends

New IP address allocation More than 1 DHCP server possible

FSM DHCP (client)

DHCP: FSM states INITIALIZE: Client sends DHCPDISCOVER msg over UDP port 67 to DHCP servers available on local network and moves to SELECT Available DHCP servers reply with DHCPOFFER msg SELECT: Client selects one of the addresses offered and negotiates lease by sending DHCPREQUEST msg then moves to REQUEST Server acks request sending DHCPACK msg upon receipt Client moves to BOUND, where it starts using address

End of lease Assigned IP address can me stored and request again in the future Otherwise, minimum lease time is at least 1 hour Client may interrupt binding before expiry using DHCPRELEASE three timers regulate binding: RENEW REBIND EXPIRE

Binding renew RENEW: Occurs at 50% lease time Client sends DHCPREQUEST msg to DHCP Server from which it received IP address, specifying new lease time Server replies (DHCPACK) providing new values for client's timer (which moves to BOUND state) or denies renewal (DHCPNACK) REBIND Occurs at 87,5% lease time Client moves to REBIND if no reply to RENEW Client contacts (in broadcast) all DHCP servers available on local network to prolong its lease If client obtaines positive reply it goes back to BOUND state, otherwise (no reply or negative reply) client moves to INITIALIZE (EXPIRE) when lease time expires

DHCP message format

DHCP message format Formato almost identical to BOOTP DHCP Server may reply to BOOTP requests OP field: 1 = request, 2 = reply Message type(client request or server reply) Different subtypes (DHCPREQUEST, DHCPOFFER etc.) identified by areas of OPTIONS field Q6 bits FLAG field only 1 st bit (Broadcast) provides information DHCP server may reply to assigned IP address or broadcast on local network Broadcast reply if client sets B=1 in FLAG field

DHCP options First 4 bytes of OPTIONS field contain magic number 99.130.83.99 Remaining bytes specify configuration parameters called options, described in RFC 2132 Eg. (like in BOOTP): Name server, Gateway etc.

DHCP and domain names DHCP does not interact with domain name system to associate symbolic names to clients Possibilities: Host has no symbolic name Automatically assigned symbolic name no changes in DNS. New name assigned when new IP received Host receives a permanent symbolic name requires change in binding between symbolic and IP address at DNS

BOOTP forwarding DHCP server may not directly assign IP addresses to clients in the local network In this case, BOOTP like mechanism used I Example: home user connected via ADSL Modem router ADSL has IP address dynamically assigned by provider. Has also DHCP server functiopnalities WLAN access point connected to ADSL modem router Operates as relay agent Forwards DHCP requests coming from wireless clients Forwards replies to clients

BOOTP forwarding / further example DHCP server Client ISP's network ADSL Modem/Router Client connected to ISP ADSLRouter operates as DHCP relay agent Client IP address assigned by DHCP server in ISP'a network Typically a private address

References TCP/IP Guide: http://www.tcpipguide.com/free/t_tcpipdynamichostco nfigurationprotocoldhcp.htm