Skip to content

Files

Latest commit

75141f0 · Jul 15, 2021

History

History
This branch is 24 commits behind nsg-ethz/p4-learning:master.

reflector

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 15, 2021
Jul 13, 2021
Jul 13, 2021
Jan 22, 2019
Jul 13, 2021

Packet Reflector

+----+       +----+
| h1 +-------+ s1 +
+----+       +----+

Introduction

The program running in the switch simply reflects all the packets that receives to the same port they arrived from.

How to run

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