P4 Brigade Work Days
We will hold a 2-day event of collaborative work on 18-19 September 2017 in Seoul, South Korea.
This is a great opportunity either if you are already an active member of the brigade, or if you are simply thinking to join. Indeed, as part of the agenda, we will give an extensive tutorial on the P4 support in ONOS. Moreover, ONOS Build 2017 (the annual conference dedicated to ONOS developers) takes place the same week in Seoul, meaning that you can make the most out of your travel by attending to both events!
More information about this event here.
- Carmelo Cascone / ONF (email@example.com)
- Andrea Campanella / ONF (firstname.lastname@example.org)
- Yi Tseng / ONF (email@example.com)
- Jonghwan Hyun / ONF (firstname.lastname@example.org)
- Wu Shaoyong / ZTE (email@example.com)
Jian Tian / ZTE (firstname.lastname@example.org)
Ke Zhiyong / ZTE (email@example.com)
- Frank Wang / Inspur (firstname.lastname@example.org)
- Minh Pham / UTS (email@example.com)
- Tom Tofigh / AT&T (firstname.lastname@example.org)
- Uyen Chau / ONF (email@example.com)
- Brian O'Connor / ONF (firstname.lastname@example.org)
Brigade Mailing List:
Active. Find here the JIRA epic we are currently working on:
Find here the next meeting time and agenda.
Contact the brigade:
P4 is a domain-specific language (DSL) designed to allow the programming of packet forwarding devices. P4 can be used to program different targets such as software switches, FPGA-based NICs or switches based on reconfigurable ASICs. P4 enables protocol-independent programmability at different levels, for example:
Parsing and modification (actions) of new, non-standard headers.
Configure table properties such as size, type of match (exact, ternary, longest-prefix), counters, etc.
Stateful processing, i.e. per-packet custom actions that can access and manipulate state maintained by the switch.
P4 allows programming of many devices in a target-independent manner, using high-level constructs. In principle, P4 programs should be portable. The same program, when compiled for different targets, should produce the same forwarding behavior. Finally, P4 allows for reconfigurability in the field. In other words, once deployed, devices can be reconfigured with a new P4 program to provide support for new forwarding capabilities.
Why should ONOS care about a programming language?
In ONOS we are ultimately interested in the capabilities of networking devices and ways to ease the configuration and control of such capabilities. P4 is becoming the common language spoken by switch vendors and operators to agree on what the data plane can or should do. Indeed, P4 is meant as both a specification language, e.g. to formally specify how a fixed-function switch ASIC works, and a programming language. In its mission to ease the life of operators, and to promote faster innovation in the network, ONOS should be able to understand and potentially speak P4. Understand, to be aware of the capabilities of a given device and to expose higher-level APIs to control them. Speak, to deploy new capabilities, e.g. generating or modifying existing P4 programs, that can be later controlled to satisfy application needs.
Runtime control of P4 devices
P4 is not a protocol or device API for runtime control, i.e. once a P4 program is deployed to a device, P4 doesn’t tell us how that device can be controlled, for example, to add or remove entries in match+action tables, or to read the value of a counter. How can ONOS control a P4-enabled device? P4Runtime is an effort in the P4 community to create a standard control-plane API portable across targets, they propose a gRPC-based APIs (p4runtime.proto). The brigade will focus on P4Runtime as a southbound control protocol, however, different devices supporting P4 might expose different APIs. Similarly to how ONOS today deals with different flavors of OpenFlow, heterogeneity of control protocol/APIs should be abstracted from applications.
The scope of this brigade is to make ONOS aware of this new dimension of programmability, in which support for new forwarding/processing capabilities can be added by writing and deploying P4 programs.
Short-term focus in 2017:
- Southbound support for P4Runtime
- Minimal amendments to northbound APIs to support protocol-independence (e.g. support for non-standard match/actions in flow rules)
- Rethink northbound APIs to capture P4 enhanced capabilities, e.g. more visibility (via inband network telemetry) and stateful processing.
- Services to support incremental reprogramming, i.e. deploy a new P4 program to devices while traffic in flowing.
- Possibility to optimize existing P4 programs or auto-generate new ones based on application needs and traffic workload.
How to get involved:
Support for P4 will affect the whole ONOS platform, from the southbound to the northbound. The P4 brigade is looking for members willing to contribute! Subscribe to the P4 mailing list and introduce yourself or contact Carmelo Cascone (email@example.com) or David Boswell (firstname.lastname@example.org) if you are interested.