Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

Homework 2

Question 1

Assume that the network topology is as follows:

s1 and s2 are switches, while h1 - h4 are hosts. The numbers represent the physical ports for the links. Complete the routing tables for s1 and s2. All hosts should be able to ping each other.

The routing table for s1:

Match

Action

Ip=10.0.0.1, protocol=icmp

Output to 2

The routing table for s2:

Match

Action

Question 2

Implement a remote network controller using the POX library for the network mentioned in Question 1. Submit all your code including mininet network and controller along with a screenshot of the pingall command execution result. All nodes should be able to ping each other.

Hint

1. You can distinguish different switch with the variable: event.dpid. When it is 1, it is s1. Otherwise, it is s2.

2. When you add link between nodes, you can decide which port to use.

3. You could use virtual port provided by POX library.