I am currently working on a project where we will use ONOS to control a Tofino1 switch. However, I am having problems in receiving PacketIn messages at ONOS, while adding rules to Tofino works fine.
The Tofino platform being used is Wedge100BF-32qs, SDE version is 9.7.2 and Stratum running as a docker container (stratumproject/stratum-bfrt:latest-9.7.2); while on the other side I am running ONOS 3.0.0. The Tofino switch and the PC where ONOS is running are both connected to a L2-switch. Moreover, I have another PC that that has two interfaces connected to port 7/0 (308) and 16/0 (0) of Tofino.
Following the fabric-tna tutorial, I am building the data plane code with `make fabric-tna`, and then run `make pipeconf`, `make pipeconf-install` and `make netcfg`. On the Tofino side, I am executing stratum in a container using `./start_stratum_container.sh -experimental_enable_p4runtime_translation -incompatible_enable_bfrt_legacy_bytestring_responses -bf_switchd_background=false`.
Everything seems to go fine with the initialization, I can see the rules added to the switch. However, if I send some packet that is crafted with scapy, I do not see any PacketIn messages from the ONOS logs. To be sure, I also installed the "Reactive Forwarding" application in ONOS, which installs a rule that sends IPv4 packets to the CPU. Now, when I send dummy IPv4 packets, they all match with this rule (confirmed by the flow counters) but instead of the packet being sent out of CPU_PORT, it is basically flooded towards all the enabled ports of the switch.
Now, I really dont understand what is going on with my setup. I believe I have made an error in the initial configuration of the setup, because fabric-tna should have worked out-of-the-box.
Did anyone else have issues with setting up ONOS as the control plane of a Tofino switch? Did you have any similar issue with respect to PacketIn messages not being sent?
Best regards,
Endri
Hi Endri,
I believe we have never tested fabric-tna with ONOS master – please use 2.5 branch.
Thanks
Pier
--
You received this message because you are subscribed to the Google Groups "stratum-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
stratum-dev...@opennetworking.org.
To view this discussion on the web visit
https://groups.google.com/a/opennetworking.org/d/msgid/stratum-dev/b7bc9015-a62a-459f-895b-b85a40dfe2ban%40opennetworking.org.
---------------------------------------------------------------------
INTEL CORPORATION ITALIA S.p.A. con unico socio
Sede: Milanofiori Palazzo E 4
CAP 20094 Assago (MI)
Capitale Sociale Euro 104.000,00 interamente versato
Partita I.V.A. e Codice Fiscale 04236760155
Repertorio Economico Amministrativo n. 997124
Registro delle Imprese di Milano nr. 183983/5281/33
Soggetta ad attivita' di direzione e coordinamento di
INTEL CORPORATION, USA
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.