Skip to Content.

rare-users - [RARE-users] new target for the dataplanes... :)

Subject: RARE user and assistance email list

List archive


[RARE-users] new target for the dataplanes... :)


Chronological Thread 
  • From: mc36 <>
  • To: "" <>, "" <>
  • Subject: [RARE-users] new target for the dataplanes... :)
  • Date: Tue, 14 Jun 2022 19:39:24 +0200

hi,
after some trial and fail, i managed to have a stable p4emu running on all my
openwrt platforms...
moreover, the 3 small box now aggregated as a single forwarding entity via
the recently introduced
backplane/stacking functionality... that is, as i roam in my homenet with my
phone, it's only saw
in freerouter as my mac moving between sdn interfaces in a single bridge...
(before i used gretap
to aggregate the layer2 frames and do the routing to them, at that time, it
was tunXXX interface...)
wifi>show logging | include 9809.cf74.2433
2022-06-14 19:14:41 info ifcBridge.doRxPack:ifcBridge.java:1000
9809.cf74.2433 learned from sdn3/4
2022-06-14 19:16:51 info ifcBridge.doRxPack:ifcBridge.java:994 9809.cf74.2433
moved from sdn3/4 to sdn1/4
wifi>
the howto is here;
https://github.com/rare-freertr/freeRtr/tree/master/misc/openwrt
but basically nothing special, just the p4emu.bin runs on the openwrt, the
controlling freerouter
runs in a (redundant) vdc, several routed hops away from the openwrts'
p4emu...
the only hack introduced is that they use wolfssl, and it supports just a
subset of the cipher
and hash algorithms so p4emu got a nocrypto compilation flag until they'll
pick up everything...
but at least, i can see in practice that crypto can happen remotely: so i can
easily communicate
homenet wide, and everything outside the house uses l2tp and macsec in dpdk,
whereas everything
toward the openwrts are unencrypted...
br,
cs

wifi>show p4lang p4 backplane-graph 0
sfdp -Tpng > net.png << EOF
graph net {
//fwd0
"fwd0" -- "fwd2" [weight=10] [taillabel="prt2"]
"fwd0" -- "fwd1" [weight=10] [taillabel="prt3"]
"fwd0" -- "fe80:bad::1/128" [weight=0]
//fwd1
"fwd1" -- "fwd0" [weight=10] [taillabel="prt2"]
"fwd1" -- "fwd2" [weight=10] [taillabel="prt3"]
"fwd1" -- "fe80:bad::2/128" [weight=0]
//fwd2
"fwd2" -- "fwd0" [weight=10] [taillabel="prt2"]
"fwd2" -- "fwd1" [weight=10] [taillabel="prt3"]
"fwd2" -- "fe80:bad::3/128" [weight=0]
}
EOF

wifi>



BusyBox v1.35.0 (2022-06-10 07:20:21 UTC) built-in shell (ash)

_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 22.03.0-rc4, r19426-2b1941e47d
-----------------------------------------------------
root@apl:~# ps | grep p4e
2757 root 1380 S {p4emu.sh} /bin/sh /usr/sbin/p4emu.sh 10.1.11.12
9080 0 gre4t-cpuport eth0.167 et
3058 root 33204 S /usr/sbin/p4emu.bin 10.1.11.12 9080 0 gre4t-cpuport
eth0.167 eth0.152 eth0.151 wl
3087 root 1308 S grep p4e
root@apl:~#


  • [RARE-users] new target for the dataplanes... :), mc36, 06/14/2022

Archive powered by MHonArc 2.6.19.

Top of Page