Subject: RARE user and assistance email list
List archive
- From: Tomasz Szewczyk <>
- To: mc36 <>
- Cc: Xavier Jeannin <>, "" <>
- Subject: Re: [RARE-users] Bridge
- Date: Thu, 4 Aug 2022 12:11:22 +0200
Thanks!!!
I just added bridge basing on
http://docs.freertr.org/guides/recipes/vrf/
For Xavier I'm now testing raw L2 switching - next he can decide if we extend some tests with xc.
Now performance is perfect :-)
br
Tomek
W dniu 04.08.2022 o 12:01, mc36 pisze:
hi,
POZ0001#show config-differences
server p4lang p4
export-bridge 10
exit
POZ0001#
btw, recently we added a patch-panel mode, which is, a local cross-connect between local (sub)interfaces...
this one is control-plane-less, that is, no mac learning at all... specifically for xavier use case...
wouldn't you try that one instead?
the config knob in freerouter is connect xyz / side1 / side2 ...
but the dataplane needs to be recompiled with it enabled....
explanation for the config change:
this is what programmed to the hardware:
bfrt.bf_router_RENATER_PEERING_L2.pipe.ig_ctl.ig_ctl_bridge> dump
-----------------------------------------------------------> dump()
----- tbl_bridge_target Dump Start -----
Default Entry:
Entry data (action : ig_ctl.ig_ctl_bridge.act_bridge_punt):
$COUNTER_SPEC_BYTES : 0
$COUNTER_SPEC_PKTS : 0
Table pipe.ig_ctl.ig_ctl_bridge.tbl_bridge_target has no entries.
----- tbl_bridge_target Dump End -----
----- tbl_bridge_learn Dump Start -----
Default Entry:
Entry data (action : ig_ctl.ig_ctl_bridge.act_bridge_miss):
$COUNTER_SPEC_BYTES : 22433221299440
$COUNTER_SPEC_PKTS : 175259113004
Table pipe.ig_ctl.ig_ctl_bridge.tbl_bridge_learn has no entries.
----- tbl_bridge_learn Dump End -----
bfrt.bf_router_RENATER_PEERING_L2.pipe.ig_ctl.ig_ctl_bridge>
that is, nothing... you missed the export-bridge knob:
after the above mentioned config, this is what we get:
bfrt.bf_router_RENATER_PEERING_L2.pipe.ig_ctl.ig_ctl_bridge> dump
-----------------------------------------------------------> dump()
----- tbl_bridge_target Dump Start -----
Default Entry:
Entry data (action : ig_ctl.ig_ctl_bridge.act_bridge_punt):
$COUNTER_SPEC_BYTES : 39708897904
$COUNTER_SPEC_PKTS : 310224308
Entry 0:
Entry key:
hdr.ethernet.dst_mac_addr : 0x001094000003
ig_md.bridge_id : 0x000A
Entry data (action : ig_ctl.ig_ctl_bridge.act_set_bridge_out):
port : 0x030
$COUNTER_SPEC_BYTES : 0
$COUNTER_SPEC_PKTS : 0
----- tbl_bridge_target Dump End -----
----- tbl_bridge_learn Dump Start -----
Default Entry:
Entry data (action : ig_ctl.ig_ctl_bridge.act_bridge_miss):
$COUNTER_SPEC_BYTES : 22524069163312
$COUNTER_SPEC_PKTS : 175968858741
Entry 0:
Entry key:
hdr.ethernet.src_mac_addr : 0x001094000003
ig_md.bridge_id : 0x000A
Entry data (action : ig_ctl.ig_ctl_bridge.act_set_bridge_port):
$COUNTER_SPEC_BYTES : 39546125312
$COUNTER_SPEC_PKTS : 308952654
----- tbl_bridge_learn Dump End -----
bfrt.bf_router_RENATER_PEERING_L2.pipe.ig_ctl.ig_ctl_bridge>
br,
cs
On 8/4/22 11:47, Tomasz Szewczyk wrote:
Hi,
I'm sorry for bothering you but I have tricky problem.
I have bridge 10 on 3 interfaces (sdn4, 6 and 7) with mac-learn:
POZ0001#sh br 10
packet byte
iface fwd phys tx rx drop tx rx drop grp
brprt bvi
sdn4 true true 115972138 137657118 0 12988879456 15417597216 0
sdn6 true true 115933307 139375186 0 12984530384 15610020832 0
sdn7 true true 277032305 12 0 31027618272 1344 0
packet byte
addr iface static time tx rx drop tx rx drop
0010.9400.0003 sdn6 false 00:00:23 6 139375204 0 672 15610022960 0
0010.9400.0004 sdn7 false 00:01:23 3844264 6 0 430557568 672 0
0010.9400.0005 sdn4 false 00:00:23 0 137657118 0 0 15417597216 0
When I'm sending traffic to MAC 0010.9400.0004 it looks like the traffic is switched like broadcast - or with broadcast like performance - 8Mpps TX but just ~70k pps on egress.
How I can debug that?
br
Tomek
--
Tomasz Szewczyk
Poznańskie Centrum Superkomputerowo Sieciowe :: Pion Technologii Sieciowych
Poznan Supercomputing and Networking Center :: Network Technology Division
tel: +48 61 858 2040
Attachment:
smime.p7s
Description: Kryptograficzna sygnatura S/MIME
- Re: [RARE-users] Bridge, mc36, 08/04/2022
- Re: [RARE-users] Bridge, Tomasz Szewczyk, 08/04/2022
- Re: [RARE-users] Bridge, mc36, 08/04/2022
- Re: [RARE-users] Bridge, Tomasz Szewczyk, 08/04/2022
- Re: [RARE-users] Bridge, mc36, 08/04/2022
- Re: [RARE-users] Bridge, Xavier Jeannin, 08/22/2022
- Re: [RARE-users] [freertr] Bridge, mc36, 08/22/2022
- Re: [RARE-users] Bridge, Tomasz Szewczyk, 08/04/2022
- Re: [RARE-users] Bridge, mc36, 08/04/2022
- Re: [RARE-users] Bridge, Tomasz Szewczyk, 08/04/2022
Archive powered by MHonArc 2.6.19.