+----+ +----+ +----+
| h1 +-------+ s1 +---------+ h2 |
+----+ +----+ +----+
The program simply forwards packets form ports 1 to 2 and viceversa.
To start the topology with the P4 switches:
sudo p4run
or
sudo python network.py
Run the receiving script at h2
:
mx h2
python receive.py
Send packets from h1
:
mx h1
python send 10.0.0.2 "hi h2"