ECE 544 Software Assignment 3 Abhigyan Sharma Step
ECE 544: 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/Virtual. Box-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 iperf 3 • ** Do NOT use “sudo apt-get install iperf 3”, since it does not install iperf 3. 1 ** • Use provided script, simply run: • . /install_iperf 3. 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) Leaf-spine topology • If stuck: s 1 s 2 • sudo. /cleanup. py s 3 s 4 s 5 s 6 h 1 h 2 h 3 h 4
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!)
- Slides: 7