ECE544: Software Assignment 3 Abhigyan Sharma
Step 1: setup SSH connection to VM If running mininet directly on linux, you are all set! On virtualbox, Create network-only adapter for VM Edit /etc/network/interfaces SSH into mininet https://github.com/mininet/openflow-tutorial/wiki/VirtualBox-specific-Instructions
Step 2: Get software Download assignment scripts LINK to mininet using “wget <LINK>” Or download to your laptop and “scp” to mininet VM Install iperf3 ** Do NOT use “sudo apt-get install iperf3”, since it does not install iperf3.1 ** Use provided script, simply run: ./install_iperf3.sh
Step 3: Run script to generate mininet topology cd <script_folder> sudo ./gen_leaf_spine.py <num_spine> <num_leaf> For now: num_spine = 1 only Also enables ssh to each host (e.g. ssh 10.0.0.1) If stuck: sudo ./cleanup.py Leaf-spine topology s1 s2 s3 s4 s5 s6 h1 h2 h3 h4
Step 4: automatic ssh login to each host in mininet Start by creating another ssh window to mininet Try “ssh 10.0.0.1” It needs password and prevents traffic gen scripts to work! Solution (2 commands) ssh-keygen Do not enter passphrase Will create your public private key pair cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys Now try “ssh 10.0.0.1” Should work without password
Step 5: run traffic generation script Format of traffic matrix file One line per flow <src_leaf> <dst_leaf> Sample file: traffic_matrix in script folder cd <script_folder> ./gen_traffic.py <traffic_matrix_file> Multi-threaded program A thread create iperf server at dst_leaf and client at src_leaf and measures throghput Terminates iperf processes Output per-flow and total throughput Raw output: /home/mininet/output
What to submit Repeat these steps Create a (1, 4) topology and evaluate total and per-flow throughput with 1, 4 and 16 flows Submit report with results Expected time (<=3 hours!)