3 ms·
Tried to watch the video about P4 at p4.org, but it failed with http://p4.org/html5boxplayer.swf - 404 not found The P4 language is interesting. There ar
by Animats 9y ago
Tried to watch the video about P4 at p4.org, but it failed with
http://p4.org/html5boxplayer.swf - 404 not found
The P4 language is interesting. There are little programs, like shaders, which run for each packet. Presumably many units are running these programs in parallel. These programs can read tables set by the "control plane", a more conventional CPU, and can pass a packet to the control plane. That's similar to large routers today, but here, the lower level hardware is more flexible.
It seems sufficient for writing a router, but not, say, a stateful middlebox like a firewall or a SSL/TLS decoder. It seems designed for "software defined networking". The P4 programs detect that a packet isn't in a table that tells what to do with it, and pass that packet to the control plane. The control plane sets a table to handle routing for that flow, and, thereafter, packets from that flow are handled by the low-level system.
This is a threat to Cisco, Brocade, etc. in that it defines a generic architecture for commodity routing hardware.
- exikyut 9y agoThe play button image is actually a link to http://p4.org/wp-content/uploads/2015/04/p4-demo-video-full.mp4 http://p4.org/wp-content/uploads/2015/04/p4-demo-video-full.... [mp4; 41,439,148 bytes] I don't have Flash (using Chromium; never installed it), so the page used HTML5. Looks like they need to invert the prioritization!!
- donavanm 9y agoI havent played in this space for a year or three, but isnt this basically what everyone is doing for fixed port boxes? The os and routing daemons run on a set of low power xeons with a "bunch" of ram (RIB). That pushes forwarding down to the tomahawk et al asic (FIB). Unknown flows are punted up to the os, and possibly a remote controller (SDN). I thought this was already given inside the DC fabric, and becoming established for interconnect. The places for the traditional giant carrier boxes are, and probably will be, wonky interface/proto/feature support beyond eth & routed IP.
- hueving 9y agoYes, the thing this replaces is basically the proprietary Broadcom API down at the switch level.
- pyvpx 9y agoon the tofino chip, yes. what would be the broadcom api on a tomahawk, a P4-based toolchain is for tofino. P4 is a domain-specific language for packet dataplanes. you can represent the various packet processing pipelines in a broadcom switch chip in P4. broadcom could easily build a P4 to tomahawk API. P4 has tried very hard to be target independent. there are toolchains targeting GPUs, vSwitches, and FPGAs. you can compile P4 to eBPF.
- tmzt 9y agoCan this be tested on consumer level Broadcom SoCs like Linksys routers? It would be an interesting approach to hardening them, by eliminating the OS and much of the attack surface. This might require that it support wireless frames though, and maybe radio, MIMO, diversity if those aren't too far out of scope.
- pyvpx 9y agonot until Broadcom provides a toolchain and writes a P4 backend.
- hueving 9y agoThe notion of a customizable table of packet matchers and actions is not new with P4. OpenFlow already enables this but the openflow API made it difficult to fully replicate common behaviors of legacy hardware (e.g. ARP). >This is a threat to Cisco, Brocade, etc. in that it defines a generic architecture for commodity routing hardware. I'm not so sure about this. OpenFlow and whitebox switches in general already cannibalized the market of customers that would have enough expertise to use P4. It will be interesting to see what customers P4 attracts that whitebox switching already hasn't.