This repository contains the submissions for assignment 2 of CS433 (https://docs.google.com/document/d/1d2-9nIXBMrXnIJEmeEHZ5eNNO7k5iLcC4R52v454-Ik/edit)
Team Member Name | Roll Number |
---|---|
Kaushal Kothiya | 21110107 |
Mithil Pechimuthu | 21110129 |
Please find the answers to the assignment in the "WriteUp.pdf" file.
Run
git clone https://github.com/PechimuthuMithil/CS433_Assignment-2.git
Start Openv Switch
sudo systemctl start openvswitch-switch.service
Run Part1.py
sudo python3 Part1.py
In the mininet prompt type the following comand to to test the ping reachability
pingall
To change the routing path of routing from subnet A to subnet C through B, open xterm ra
and run
ip route change 10.2.0.0/24 via 10.100.1.10 dev ra-eth2
and open xterm rc
and run
ip route change 10.0.0.0/24 via 10.102.3.10 dev rc-eth3
Verify the path by running the following on xterm h1
traceroute 10.2.0.252
One can also view the routing table of the routers by opening their respective xterms and running
ip route
Run the program by executing the following command. You can change the arguments for different resuls.
sudo python3 Part2.py --congestion=reno --config=c --linkloss=2
The program will generate .pcap files for all hosts and we can do throughput analysis with the help of Wireshark then. For analysis using graphs: Go to statistics -> TCP stream graphs -> Throughput.