[brigade-p4] Queries regarding p4Runtime

126 views
Skip to first unread message

sunilva...@gmail.com

unread,
May 17, 2018, 9:32:14 AM5/17/18
to P4 brigade
Hi All,

I am exploring p4Runtime. I have few questions (I am very new to p4*, so the questions might seems very simple/silly to you - sorry for that :) ):

Here are the questions:

1. Grey area of my p4Runtime understanding is, " Driver ( between gRPC server and switch ) implementation " - In which I have few questions.
> What I understood the word driver is - A kind of adapter, which will have some glue logic implemented in it, which will be used to call the respected APIs of switch. Correct me, if I am wrong.
What I don't understand is, in which format, we will receive the data from gRPC server into driver. 
Let say, we want to add entry of <forward> table:
e.g. 
PI CLI> table_add forward set_dmac 10.0.0.1 => 00:00:00:00:00:01
then, In which structure/format, we will receive this add_entry data at the driver side.?

> Using above CLI command, "How can we do add entry with multiple keys?

2. In this link, I read:
P4Runtime is a protocol-independent API, which facilitates adoption by vendors and enables field-reconfigurability. 
​​
In particular, it provides the ability to push a new P4 forwarding plane to a device without recompiling the code running on it!

> I don't much understand about how this will be handled by p4Runtime. I have checked the SetForwardingPipelineConfig() API of p4runtime.proto, but don't understand
how this API will be used. In which format, we will receive the updated binary in driver. Can I have some demo code / pseudo code to understand this more clearly ?
> If we add new table support into the p4 supported forwarding plane in runtime, we also suppose need to create table with different keys for that newly introduced table. Does this mean creating tables is also runtime? Can i get where is a sample code to do the same with cli in P4Runtime?

Thank you in advance.

Regards,
Sunil Vaghela

Carmelo Cascone

unread,
May 17, 2018, 6:10:01 PM5/17/18
to sunilva...@gmail.com, P4 brigade
Hi Sunil,

It seems all your questions are related to capabilities of the P4 language and P4Runtime. For this reason I suggest you to write to the official P4/P4Runtime mailing list: p4-...@lists.p4.org

In this mailing list we discuss mostly about P4/P4Runtime support in ONOS.

Thanks
Carmelo
--
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 post to this group, send email to briga...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/brigade-p4/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-p4/9645e4cd-6bed-4cfc-86eb-99823d0d6e08%40onosproject.org.
For more options, visit https://groups.google.com/a/onosproject.org/d/optout.

Sunil Vaghela

unread,
May 18, 2018, 12:19:53 AM5/18/18
to Carmelo Cascone, P4 brigade
Thanks, I will do that.

Regards,
Sunil Vaghela
Reply all
Reply to author
Forward
0 new messages