Document information
- University
- Politecnico di Milano
- Degree programme
- Computer Engineering
- Subject
- Software Defined Networking
- Material language
- Italian
- Classification
- Exam · Full exam
- Content
- Exam paper only
- Original format
- Text
- Searchable text
Study material for Software Defined Networking, shared by the Studwiz community and reviewed by moderators.
Study material for Software Defined Networking, shared by the Studwiz community and reviewed by moderators.
Import quality: text was extracted directly from the original document.
Representative passages recognised in different parts of the material. The full extracted text remains available to search, while this compact preview makes the page easier to read.
Software Defined Networking – 5 luglio 2019 Esercizio 1 Si consideri la rete in figura. I nodi h1,..., hn contengono tabelle ARP prepopolate per tutta la rete. Gli indirizzi MAC e IP dei nodi h1,..., hn sono MAC1,..., MAC n e IP1,..., IP n. Sui nodi h1,..., hn sono in esecuzione processi in ascolto su tutte le porte TCP e UDP di interesse. Il controllore Ryu è collegato ai nodi s1,..., sm ed è configurato come indicato nel Programma 1. Le interfacce tra gli switch e il controllore non sono indicate in figura. Se non altrimenti specificato, il TTL iniziale è 200. h1 h3 s2 h5 s1 s3 h2 s4 h4 h6 1 2 3 1 4 1 2 3 1 2 34 2 3 Nelle risposte usare per ogni pacchetto il seguente formato: Nodo→interfaccia: MAC sorgente→MAC destinazione; ethertype; IP sorgente→IP destinazione; TTL; protocollo; porta sorgente→porta destinazione; Negli switch sono preinstallate le regole in Figura 1. L’host h1 porta 1234 apre una connessione TCP verso h6 porta 80. (a) Scrivere tutti i pacchetti uscenti da tutte le interfacce di s1. Soluzione: s1→2,3,4: MAC1→MAC6; IPv4; IP1→IP6; 200; TCP; 1234→80; (b) Dire quanti pacchetti arrivano in s4 e che valore ha il campo TTL. Soluzione: Uno con TTL=200. L’host h2 porta 3322 invia un datagramma UDP verso h5 porta 122. (c) Scrivere tutti i pacchetti uscenti da tutte le interfacce di s2. Soluzione: Arrivano due pacchetti (uno da s1 e uno da s3), ciascuno delle quali causa una packet_in. packet_in(MAC2→MAC5; IPv4; IP2→IP5; 200; UDP; 3322→122) Il controllore risponde installando una regola, che però non viene usata per il pacchetto che ha causato la packet in. (d) Dire quanti pacchetti arrivano in h5 e con che TTL. Soluzione: Uno con TTL=200. (e) L’host h5 risponde. Scrivere tutti i pacchetti uscenti da tutte le interfacce di s2. Soluzione: Non arrivano pacchetti…
First page of the document.