--
You received this message because you are subscribed to the Google Groups "P4 brigade" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-p4+...@onosproject.org.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-p4/CAOmZ5nm%2BuMExEmHCpFii3CbjhisXxbA3FcKd98Ws7%3Dgvwpv4qw%40mail.gmail.com.
Hi Fernando,When you start the ONOS, you should be able to see related bridging rules for h1a and h1b in the l2_exact table, for exampleonos@root> flows -s | grep l2_exact_tableADDED, bytes=0, packets=0, table=IngressPipeImpl.l2_exact_table, priority=10, selector=[hdr.ethernet.dst_addr=0xbb00000001], treatment=[immediate=[IngressPipeImpl.set_egress_port(port_num=0x1)]]
ADDED, bytes=0, packets=0, table=IngressPipeImpl.l2_exact_table, priority=10, selector=[hdr.ethernet.dst_addr=0xbb00000002], treatment=[immediate=[IngressPipeImpl.set_egress_port(port_num=0x2)]]Can you verify that?Also, are there any error messages shown in ONOS?YiOn Tue, Mar 30, 2021 at 2:02 PM Fernando Henrique Santorsula <f20...@dac.unicamp.br> wrote:Hello friend, how are you?In exercise 4 I managed to progress very well, I almost went crazy! But in the final stretch see the annex, I almost cried with anger when I saw that the ICMP did not work and so far I could not understand, the rest did not make any more mistakes, what should it be? See attached, thank you very much for your help and don't worry about the delay, you are the only one who is helping me and I don't even know how to thank you, a hug from Brazil and take care of yourself, even more.Regards,
Fernando Henrique Santorsula_______________________________________________Em ter., 30 de mar. de 2021 às 14:41, Yi Tseng <y...@opennetworking.org> escreveu:HiSorry for the late reply, I was busy these daysTo build your own environment instead of using the VM, you can try looking at the Vagrant file. It tells you what is the basic requirements like CPU, memory, and OS. It also tells you how we install tools and necessary libraries/packages to the VM.Basically, it uses this script to install necessary packages and adding users. (with root privileged)And use this script to download the tutorial and initialize the tutorial environment.The reason we don't include the installation steps in the tutorial is that we want to focus on developing the P4 code and shows how we can use those toolsI don't really understand about running P4 on the equipment you mentioned in your message. Does that mean you want to run a software switch on this hardware and use the P4 software switch(bmv2/stratum) to forward/route traffic?YiOn Sat, Mar 27, 2021 at 2:59 PM Fernando Henrique Santorsula <f20...@dac.unicamp.br> wrote:Hello how are you?
Yes, I am aware that PHP is not like PHP and C, and I referred to "Hello World", as an example of practicality of the language, you know? Knowledge of Linux, and networks I have, no problem with that, despite the need for some tutorial or manual for me to do tests with the P4 language, I spent more than 6 hours installing a link that doesn't work, a stolen one! I just wasted time following this tutorial, I appreciate your idea and it is very good, but without the compiler installed I don't do anything, I don't want a VM ready, I need to put the compiler in practice and run the P4 on a device, without downloading a VM (Virtualbox) for example understand? I think P4 is very bad in terms of documentation, I am struggling to learn basic things that PHP would be doing for example, I am just giving you an example, I will follow your steps, but I need to install the compiler and create small scripts in one equipment that I am sending you as an attachment, this is what I need, run the P4 on this equipment, help me please! Thank you very much and I'm sorry to take your time, a hug my friend.Regards,
Fernando Henrique SantorsulaEm qui., 25 de mar. de 2021 às 17:10, Yi Tseng <y...@opennetworking.org> escreveu:Hi Fernando,Sorry to hear that.P4 is not a general-purpose language like PHP, C++, Java...It won't be easy to put input and get the output like printing a "Hello World"Like VHDL, Verilog, or any DSL language, you may need to have additional setup (e.g., hardware simulator) to run your program.And that requires some additional knowledge like using Linux shell, computer networking, Linux networking, ...Let me share my experience of how I learn the P4 language and related topics such as P4Runtime when I was a university student.In the beginning, I was mostly reading research publications related to SDN and programmable data plane to understand the concept of each layer of SDN(control plane and data plane) and what is in the programmable data plane.You can find some useful publications here:To learn the P4 code, I spent some time reading the P4 specification.In the specification, there is a good example "Very Simple Switch Architecture" that shows how you can use P4 to describe the pipeline with P4 language.I didn't spend too much time reading the spec, just to know basic components to create a basic pipeline to just forward a packet.For hands-on, I was playing the bmv2 switch since there was no Stratum and Tofino switch when I was a studentI was also spending some time trying the P4 tutorial, I think they improve this tutorial a lot, and the basic forwarding tutorial can be a good start pointYou can also makefiles and scripts in this tutorial to understand how to use the P4 compiler and the bmv2 software switch.I usually look at example code like this tutorial when I start studying how to develop my own pipeline and check the spec if I cannot understand any line of the code.And maybe send an email to the community mailing list if I cannot find the syntax or code in the spec.There is also a slack space for the P4 community, you can also ask questions there if you have an issue when running the tutorial.Below is just my experience, which may not work for everyone, but I hope this can give you some idea.YiOn Wed, Mar 24, 2021 at 11:05 PM Fernando Henrique Santorsula <f20...@dac.unicamp.br> wrote:Hello friend, I did the tutorials from 1 to 3, 4 I was unable to do, my problem is to understand P4, install the compiler and try something like: "Hello World" understand, I only find documentation talking about the wonders of P4 , I need something more practical, an installation, basic post-installation tests, I tried this official documentation and it doesn’t work, I need to understand the lines of code, I don’t need to make nonsense tutorials, I need to learn how to program a Stratum OS interface to transform it into an Access point programmable in P4, I can't find it more basic, like PHP for example, even though it is a different language, the P4 documentation is terrible, this tutorial for example:
https://p4.org/p4/getting-started-with-p4.html
It's a beautiful thing, it doesn't work, I need something simpler, some start-up documentation, like the one on php.net for example, I see videos on Youtube talking about the wonders of P4, but I don't see a video of someone putting it running on a PC common physical, something like that, you know, I need to work on this topic in my research, but I can't, I can't find anything that helps me, sorry for the unpleasantness, but the P4 documentation needs better is very bad, as soon as I learn well I will help on this, but at the moment i'm awake because my deadline is short and i don't know what to do anymore, can you help me in any way please? Thanks.
Regards,Fernando Henrique Santorsula
--Atenciosamente,Fernando Henrique Santorsula - RA: 208918Mestrando Engenharia da ComputaçãoFEEC - (Faculdade de Engenharia Elétrica e de Computação - UNICAMP)E-mail: f20...@dac.unicamp.br - Site oficial: www.unicamp.br
--
--Atenciosamente,Fernando Henrique Santorsula - RA: 208918Mestrando Engenharia da ComputaçãoFEEC - (Faculdade de Engenharia Elétrica e de Computação - UNICAMP)E-mail: f20...@dac.unicamp.br - Site oficial: www.unicamp.br
--
--Atenciosamente,Fernando Henrique Santorsula - RA: 208918Mestrando Engenharia da ComputaçãoFEEC - (Faculdade de Engenharia Elétrica e de Computação - UNICAMP)E-mail: f20...@dac.unicamp.br - Site oficial: www.unicamp.br
--