Comments (1)
In this email to the p4-dev mailing list, I give some details about the 3 different bmv2 target architectures: http://lists.p4.org/pipermail/p4-dev_lists.p4.org/2016-June/000380.html
In a nutshell, bmv2 is a library that can be used to implement multiple (all?) P4 architectures. Although the original P4 spec describes a single architecture (referred to as the abstract switch model), different P4-programmable hardware may expose different architectures. An architecture can support a different number of parsers, different fixed function blocks (e.g. packet replication engine), a single or multiple pipelines... An architecture can support an infinite number of P4 programs, but each program needs to be aware of the architecture it was written for and programs may not be portable across architectures.
In this repo, we provide 3 example architectures implemented with the bmv2 library: simple_switch, simple_router and l2_switch. simple_switch implements the abstract switch model in the p4 spec. The other 2 are really meant purely as examples and should not be of use to most people.
We have many P4 programs that can run on simple_switch (e.g. all of these: https://github.com/p4lang/tutorials). But these programs won't run on the simple_router and l2_switch architectures. For the sake of completeness, I create one P4 program for each of these 2 architectures and I named them after the architecture they are meant to run on -once again it does not mean that they are the only P4 programs able to run on these architectures. For example, you will notice that the simple_router architecture only has one pipeline vs 2 for simple_switch (ingress + egress).
from behavioral-model.
Related Issues (20)
- import thrift
- TCP packets seem not to be processed correctly by bmv2 HOT 2
- Problem using multicast in runtime HOT 2
- Empty action-parameter vector is always accessed in ActionFnEntry::execute HOT 7
- How to build behavioral-model on the MacOS(Apple M1 Pro(13.5)) HOT 2
- How to track fileds of metadata with p4dbg? HOT 2
- Approximate conversion of bmv2 p4 performance to hardware performance HOT 3
- Applying the same table twice HOT 2
- Required to set forwarding pipeline before using the dataplane for streaming packets HOT 10
- Update project to require C++17 HOT 9
- Race conditions when passing in a BMv2 JSON config HOT 12
- To Add PNA support into BMv2. HOT 5
- How to build simple_switch / simple_switch_grpc on Ubuntu 24.04 ? HOT 4
- Why bmi_port.c is a C code? HOT 2
- Race conditions when processing packet in the egress pipeline. HOT 6
- Heap Buffer Overflow when installing many table entries HOT 1
- CMake support HOT 4
- Queue metadata with multiqueue HOT 2
- Where is the original p4 source code for recirc.json HOT 8
- Consider implementing something like Tuple Space Search for ternary table lookups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behavioral-model.