Skip to Content.
Sympa Menu

rare-users - Re: [RARE-users] FreeRtr Container to run on SONiC base image

Subject: RARE user and assistance email list

List archive

Re: [RARE-users] FreeRtr Container to run on SONiC base image


Chronological Thread 
  • From: Frédéric LOUI <>
  • To:
  • Cc: Harvey Newman <>
  • Subject: Re: [RARE-users] FreeRtr Container to run on SONiC base image
  • Date: Mon, 2 May 2022 19:58:12 +0200
  • Dkim-filter: OpenDKIM Filter v2.10.3 zmtaauth01.partage.renater.fr 400EF14015B

Hi Marcos,

As discussed, there is 2 scenarios:

1- Ship in the night installation of SONIC & RARE/freeRtr
Run either SONIC or RARE/freeRtr one at a time using the whole box.

2- Ship in the night installation and run both in parallel using different
pipe of the TOFINO
Run SONIC and RARE/freeRtr AT_THE_SAME_TIME

-1- you don’t need container, the installation we have done together is
sufficient.
If you want to use container, it would be better to use either stratum
SDE granted the fact that stratum/SONIC SDE is providing bf_kpkt
Or build s dedicated SDE for RARE/freeRtr with bf_kpkt.

-2- it would need to either have 1 different CPU port for each SONIC and
RARE/freeRtr.
If not possible an shim GRPC layer that would relay the packets to
RARE/freeRtr or SONIC depending on the pipe_id.

However, I have some doubts here as SONIC is using SAI and not GRPC (Or maybe
SAI is using GRPC).

IIRC, run_switchd.sh is a helper shell script for running bf_switchd, I
presume it is possible to run bf_switchd links in stratum

You’ve discovered yourself that bf_kdrv cannot be run at the same time than
bf_kpkt. However, what you can test is enable bf_kpkt.
- Compile and launch one P4 program that uses port 192 (bf_pci0)
- and compile and launch a P4 program that uses port 64 (that should be the
MAIN BOARD CPU internal Ethernet port)

And check from that you are receiving packets from both port.

Or simpler, raise this question against INTEL BXD ICRP forum.

> Le 2 mai 2022 à 18:51, Marcos Felipe Schwarz <> a
> écrit :
>
> Hi all,
>
> As Frederic is aware, I’ve been working on running RARE/freeRtr on a
> Wedge-32x with SONiC image.
> I was able to run a simple container and the steps are described here:
> https://docs.google.com/document/d/164C_q4c1VpceXrq21D3YcZGs6T-PsVaaewT5_AIxIX8/edit?usp=sharing
>
> For now, I’ll take a time from this task, but I’d like to discuss witj you
> all ways we can remove bf-sde dependency. And work soon with Frederic, on
> how to run multiple OSes at the same time.
>
> Also some ToDo activities and ideas
> - Include freertr folder creation
> - Verify impacts of using grpcio==1.39.0 instead of grpcio==1.17.0
> - Remove dependency from bf-sde
> - Copy on libs and bins to the container
> - Run directly bf_switchd instead of run_switchd.sh, like in stratum
> - Can we run bf_kpkt and bf_kdrv modules simultaneously?
> - modprobe: ERROR: could not insert '***': Device or resource busy
>
> Regards,
>
> Marcos Schwarz
>
> Gerente de P&D | R&D Manager
> Gerência de Execução de P&D em Ciberinfraestrutura | Management of R&D
> Execution in Cyberinfrastructure
> Diretoria de Pesquisa e Desenvolvimento | Board of Research and Development
> RNP - Rede Nacional de Ensino e Pesquisa | Brazilian National Research and
> Educational Network
> Promovendo o uso inovador de redes avançadas | Promoting the innovative use
> of advanced networks
> http://www.rnp.br | +55 (19) 3787- 3386 | Skype ID: marcos.f.sch
> Campinas - SP - Brasil | E-mail:




Archive powered by MHonArc 2.6.19.

Top of Page