Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
31 lines (18 loc) · 640 Bytes

source_routing.rst

File metadata and controls

31 lines (18 loc) · 640 Bytes

Source Routing

This application illustrates a user-defined routing protocol. Packets are routed based on the port indicated in the port header.

Running Demo

We provide a small demo to let you test the program.

  • run_switch.sh: compile the P4 program and starts the switch, also configures the data plane by running the CLI (commands.txt)

To run the demo:

  • create virtual interfaces (need to run only if the VM has restarted):

    sudo ../veth_setup.sh
    
  • start the switch:

    sudo ./run_switch.sh
    
  • start tcpdump:

    sudo tcpdump -i veth2
    
  • to send packet:

    sudo ./generator.py -i veth4