Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeMidnight
git clone https://github.com/frederic-loui/RARE.git

TOFINO (on going)

Before anything, you'll have to install BAREFOOT SDE following BAREFOOT instruction

RARE package is planned to be released soon.

(in compliance with INTEL/BAREFOOT announcement that grant the publication of the P4 code)

Build & Run RARE software

BMv2 with P4Runtime (simple_swicth_grpc) 

Code Block
languagebash
themeMidnight
cd 02-PE-labs/0001-vpn-over-bgp-isis-sr-operation
make

in order stop the whole setup:

Code Block
languagebash
themeMidnight
cd 02-PE-labs/0001-vpn-over-bgp-isis-sr-operation
make clean

TOFINO with BFRuntime (bf_switchd)

On virtual TOFINO model

Compile P4 bf_router.p4 program

  • with MPLS profile
Code Block
languagebash
themeMidnight
export RARE=/home/p4 
$SDE/tools/p4_build.sh -I$RARE/p4src/ -DHAVE_MPLS $RARE/p4src/bf_router.p4
  • with SRv6 profile
Code Block
languagebash
themeMidnight
export RARE=/home/p4 
$SDE/tools/p4_build.sh -I$RARE/p4src/ -DHAVE_SRV6 $RARE/p4src/bf_router.p4

run TOFINO model

Code Block
languagebash
themeMidnight
cd $SDE 
./run_tofino_model.sh -p bf_router ./run_switchd.sh -p b

run TOFINO bf_switchd

Code Block
languagebash
themeMidnight
cd $SDE 
./run_switchd.sh -p bf_router

run Freerouter control plane

Code Block
languagebash
themeMidnight
cd $RARE/02-PE-labs/0001-vpn-over-bgp-isis-sr-operation 
./make

in order to stop FreeRouter

Code Block
languagebash
themeMidnight
cd $RARE/02-PE-labs/0001-vpn-over-bgp-isis-sr-operation 
./make clean

run bf_forwarder.py interface

Code Block
languagebash
themeMidnight
cd $RARE/bfrt_python 
./bf_forwarder.py

On hardware WEDGEBF10032X

Compile P4 bf_router.p4 program

  • with MPLS profile
Code Block
languagebash
themeMidnight
export RARE_PATH=/home/p4 
$SDE/tools/p4_build.sh -I$RARE/p4src/ -DHAVE_MPLS -D_WEDGE100BF32X_ $RARE/p4src/bf_router.p4
  • with SRv6 profile
Code Block
languagebash
themeMidnight
export RARE=/home/p4 
$SDE/tools/p4_build.sh -I$RARE/p4src/ -DHAVE_SRV6 -D_WEDGE100BF32X_ $RARE/p4src/bf_router.p4

run TOFINO bf_switchd

Code Block
languagebash
themeMidnight
cd $SDE 
./run_switchd.sh -p bf_router

run Freerouter control plane.   

Code Block
languagebash
themeMidnight
cd $RARE/100-WEDGE-100BF-32X/0001-vpn-over-bgp-isis-sr-operation 
./make

in order to stop FreeRouter

Code Block
languagebash
themeMidnight
cd $RARE/100-WEDGE-100BF-32X/0001-vpn-over-bgp-isis-sr-operation 
./make clean

run bf_forwarder.py interface

Code Block
languagebash
themeMidnight
cd $RARE/bfrt_python 
./bf_forwarder.py