Skip to content

Latest commit

 

History

History

reflector

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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