+----+ +----+
| h1 +-------+ s1 +
+----+ +----+
The program running in the switch simply reflects all the packets that receives to the same port they arrived from.
To start the topology with the P4 switches:
sudo p4run
or
sudo python network.py
Run the sending and receiving app at h1
, every time you press return a
packet will be sent, if the packet gets bounced it will be printed:
mx h1
python send_receive.py