1 / 7

Da network a data link

Da network a data link. Il meccanismo di routing determina la prossima destinazione di un datagramma IP Il livello data-link deve effettivamente consegnare il datagramma alla prossima destinazione per es., incapsulato in un frame Ethernet. Diversi indirizzi.

kadeem
Download Presentation

Da network a data link

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Da network a data link • Il meccanismo di routing determina la prossima destinazione di un datagramma IP • Il livello data-link deve effettivamente consegnare il datagramma alla prossima destinazione • per es., incapsulato in un frame Ethernet

  2. Diversi indirizzi • Livello network e data-link hanno differenti spazi degli indirizzi • IP 4byte -- Ethernet 8byte • Il data-link layer ha bisogno dell’indirizzo fisico della prossima destinazione • Il livello network conosce solo l’indirizzo di network

  3. Address Resolution Protocol (RFC 826) • Protocollo per effettuare il mapping tra indirizzi IP ed indirizzi di livello data-link. • L’host richiedente invia un messaggio ARP in broadcast sulla rete locale. • Nota: ha senso effettuare ARP solo per host direttamente connessi. • Il messaggio è ricevuto da tutti gli host ma solo l’host corrispondente all’indirizzo IP richiesto risponde con il suo indirizzo Ethernet

  4. Struttura messaggio ARP • hardware type e prot type: specificano i tipi di protocollo; 2 byte di lunghezza • ehternet: 1; IP 0x0800 • hardware len e prot len: specificano la lunghezza degli indirizzi • op specifica il tipi di richiesta • richiesta ARP: 1 • risposta ARP: 2 • richiesta RARP: 3 • risposta RARP: 4

  5. Struttura messaggio ARP • 4 campi per indirizzi • sender hardware address • sender protocol address • receiver hardware address • sendere protocol address • Richiesta e Risposta ARP • sender riempe tutti i campi tranne RHA • receiver riempe il campo e scambia i campi receiver e sender

  6. ARP cache • Ogni host mantiene una cache delle associazioni di indirizzi IP/Hardware • Il commando arp ci mostra la cache • Ogni entry della cache è valida per 20 minuti

  7. Reverse Address Resolution Protocol (RFC 903) • Compie l’operazione inversa del protocollo ARP • Scopre l’indirizzo IP associato ad un indirizzo hardware • Utilizzato per il bootstrap di macchine diskless

More Related