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 – 25 luglio 2018 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 h5 s1 s2 s3 h2 h4 h6 1 2 3 1 2 3 1 4 2 3 Nelle risposte usare per ogni pacchetto il seguente formato: MAC sorgente→ MAC destinazione; ethertype; IP sorgente→ IP destinazione; TTL; protocollo; porta sorgente→ porta destinazione; (a) Scrivere il contenuto delle tabelle openflow dopo l’accensione di tutti i nodi. Soluzione: s1 Priority Match Action 0 * Output(CONTROLLER,128) 5 eth_type = ETH_TYPE_IP eth_dst = MAC3 ipv4_dst = IP5 ipv4_dst = IP3 ip_proto = IPPROTO_UDP DecNwTTL udp_dst = 123 Output(3) s2 Priority Match Action 0 * Output(CONTROLLER,128) 1 eth_type = ETH_TYPE_MPLS DecMplsTtl mpls_label = 1000 Output(3) s3 Priority Match Action 0 * Output(CONTROLLER,128) 1 eth_type = ETH_TYPE_MPLS PopMpls mpls_label = 1000 Output(3) L’host h1, invia un datagramma UDP porta 7654 a h5 porta 123. (b) Scrivere tutti i pacchetti uscenti da tutte le interfacce di s1. Programma 1 (1/2) – Switch Features @set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG _DISPATCHER) def switch_features_handler(self, ev): datapath = ev.msg.datapath ofproto = datapath.ofproto parser = datapath.ofproto _parser ### table miss ### match = parser.OFPMatch() actions = [ parser.OFPActionOutput(ofproto.OFPP _CONTROLLER, 128) ] inst = […
First page of the document.