├── .gitignore ├── README.md ├── dscp-marking ├── README.md └── dscp_marking.p4app │ ├── client.py │ ├── dscp_marking.config │ ├── dscp_marking.p4 │ ├── header.p4 │ ├── p4app.json │ ├── parser.p4 │ └── server.py ├── ip-routing ├── README.md ├── images │ └── network.png ├── install_flow_rules.sh ├── p4include │ ├── router.json │ └── router.p4 ├── router.json ├── router.p4 ├── router.p4i ├── router.p4rt ├── s1-commands ├── s2-commands ├── s3-commands └── topo.py ├── mn ├── __init__.py └── p4_mininet.py ├── mpls ├── README.md ├── images │ └── mpls-network.png ├── install_flow_rules.sh ├── p4include │ ├── mpls.json │ └── mpls.p4 ├── s1-commands ├── s2-commands ├── s3-commands └── topo.py ├── pisces-gtp ├── README.md └── p4include │ ├── .gitkeep │ └── gtp.p4 ├── pisces-mpls ├── README.md └── p4include │ └── mpls.p4 ├── rate-limiter ├── README.md └── rate_limiter.p4app │ ├── header.p4 │ ├── p4app.json │ ├── parser.p4 │ ├── rate_limiter.config │ └── rate_limiter.p4 ├── simple-monitoring ├── README.md └── simple_monitoring.p4app │ ├── header.p4 │ ├── mycontroller.py │ ├── p4app.json │ ├── parser.p4 │ └── simple_monitoring.p4 ├── stateful-firewall ├── README.md ├── stateful_firewall.p4app │ ├── header.p4 │ ├── p4app.json │ ├── parser.p4 │ ├── stateful_firewall.config │ └── stateful_firewall.p4 ├── tcp.py └── test.py └── vxlan ├── README.md └── vxlan.p4app ├── header.p4 ├── mycontroller.py ├── p4app.json ├── parser.p4 ├── s1.config ├── s2.config └── vxlan.p4 /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/README.md -------------------------------------------------------------------------------- /dscp-marking/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/dscp-marking/README.md -------------------------------------------------------------------------------- /dscp-marking/dscp_marking.p4app/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/dscp-marking/dscp_marking.p4app/client.py -------------------------------------------------------------------------------- /dscp-marking/dscp_marking.p4app/dscp_marking.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/dscp-marking/dscp_marking.p4app/dscp_marking.config -------------------------------------------------------------------------------- /dscp-marking/dscp_marking.p4app/dscp_marking.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/dscp-marking/dscp_marking.p4app/dscp_marking.p4 -------------------------------------------------------------------------------- /dscp-marking/dscp_marking.p4app/header.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/dscp-marking/dscp_marking.p4app/header.p4 -------------------------------------------------------------------------------- /dscp-marking/dscp_marking.p4app/p4app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/dscp-marking/dscp_marking.p4app/p4app.json -------------------------------------------------------------------------------- /dscp-marking/dscp_marking.p4app/parser.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/dscp-marking/dscp_marking.p4app/parser.p4 -------------------------------------------------------------------------------- /dscp-marking/dscp_marking.p4app/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/dscp-marking/dscp_marking.p4app/server.py -------------------------------------------------------------------------------- /ip-routing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/README.md -------------------------------------------------------------------------------- /ip-routing/images/network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/images/network.png -------------------------------------------------------------------------------- /ip-routing/install_flow_rules.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/install_flow_rules.sh -------------------------------------------------------------------------------- /ip-routing/p4include/router.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/p4include/router.json -------------------------------------------------------------------------------- /ip-routing/p4include/router.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/p4include/router.p4 -------------------------------------------------------------------------------- /ip-routing/router.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/router.json -------------------------------------------------------------------------------- /ip-routing/router.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/router.p4 -------------------------------------------------------------------------------- /ip-routing/router.p4i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/router.p4i -------------------------------------------------------------------------------- /ip-routing/router.p4rt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/router.p4rt -------------------------------------------------------------------------------- /ip-routing/s1-commands: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/s1-commands -------------------------------------------------------------------------------- /ip-routing/s2-commands: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/s2-commands -------------------------------------------------------------------------------- /ip-routing/s3-commands: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/s3-commands -------------------------------------------------------------------------------- /ip-routing/topo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/ip-routing/topo.py -------------------------------------------------------------------------------- /mn/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mn/p4_mininet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mn/p4_mininet.py -------------------------------------------------------------------------------- /mpls/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/README.md -------------------------------------------------------------------------------- /mpls/images/mpls-network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/images/mpls-network.png -------------------------------------------------------------------------------- /mpls/install_flow_rules.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/install_flow_rules.sh -------------------------------------------------------------------------------- /mpls/p4include/mpls.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/p4include/mpls.json -------------------------------------------------------------------------------- /mpls/p4include/mpls.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/p4include/mpls.p4 -------------------------------------------------------------------------------- /mpls/s1-commands: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/s1-commands -------------------------------------------------------------------------------- /mpls/s2-commands: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/s2-commands -------------------------------------------------------------------------------- /mpls/s3-commands: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/s3-commands -------------------------------------------------------------------------------- /mpls/topo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/mpls/topo.py -------------------------------------------------------------------------------- /pisces-gtp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/pisces-gtp/README.md -------------------------------------------------------------------------------- /pisces-gtp/p4include/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pisces-gtp/p4include/gtp.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/pisces-gtp/p4include/gtp.p4 -------------------------------------------------------------------------------- /pisces-mpls/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/pisces-mpls/README.md -------------------------------------------------------------------------------- /pisces-mpls/p4include/mpls.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/pisces-mpls/p4include/mpls.p4 -------------------------------------------------------------------------------- /rate-limiter/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/rate-limiter/README.md -------------------------------------------------------------------------------- /rate-limiter/rate_limiter.p4app/header.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/rate-limiter/rate_limiter.p4app/header.p4 -------------------------------------------------------------------------------- /rate-limiter/rate_limiter.p4app/p4app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/rate-limiter/rate_limiter.p4app/p4app.json -------------------------------------------------------------------------------- /rate-limiter/rate_limiter.p4app/parser.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/rate-limiter/rate_limiter.p4app/parser.p4 -------------------------------------------------------------------------------- /rate-limiter/rate_limiter.p4app/rate_limiter.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/rate-limiter/rate_limiter.p4app/rate_limiter.config -------------------------------------------------------------------------------- /rate-limiter/rate_limiter.p4app/rate_limiter.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/rate-limiter/rate_limiter.p4app/rate_limiter.p4 -------------------------------------------------------------------------------- /simple-monitoring/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/simple-monitoring/README.md -------------------------------------------------------------------------------- /simple-monitoring/simple_monitoring.p4app/header.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/simple-monitoring/simple_monitoring.p4app/header.p4 -------------------------------------------------------------------------------- /simple-monitoring/simple_monitoring.p4app/mycontroller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/simple-monitoring/simple_monitoring.p4app/mycontroller.py -------------------------------------------------------------------------------- /simple-monitoring/simple_monitoring.p4app/p4app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/simple-monitoring/simple_monitoring.p4app/p4app.json -------------------------------------------------------------------------------- /simple-monitoring/simple_monitoring.p4app/parser.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/simple-monitoring/simple_monitoring.p4app/parser.p4 -------------------------------------------------------------------------------- /simple-monitoring/simple_monitoring.p4app/simple_monitoring.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/simple-monitoring/simple_monitoring.p4app/simple_monitoring.p4 -------------------------------------------------------------------------------- /stateful-firewall/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/stateful-firewall/README.md -------------------------------------------------------------------------------- /stateful-firewall/stateful_firewall.p4app/header.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/stateful-firewall/stateful_firewall.p4app/header.p4 -------------------------------------------------------------------------------- /stateful-firewall/stateful_firewall.p4app/p4app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/stateful-firewall/stateful_firewall.p4app/p4app.json -------------------------------------------------------------------------------- /stateful-firewall/stateful_firewall.p4app/parser.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/stateful-firewall/stateful_firewall.p4app/parser.p4 -------------------------------------------------------------------------------- /stateful-firewall/stateful_firewall.p4app/stateful_firewall.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/stateful-firewall/stateful_firewall.p4app/stateful_firewall.config -------------------------------------------------------------------------------- /stateful-firewall/stateful_firewall.p4app/stateful_firewall.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/stateful-firewall/stateful_firewall.p4app/stateful_firewall.p4 -------------------------------------------------------------------------------- /stateful-firewall/tcp.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /stateful-firewall/test.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vxlan/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/vxlan/README.md -------------------------------------------------------------------------------- /vxlan/vxlan.p4app/header.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/vxlan/vxlan.p4app/header.p4 -------------------------------------------------------------------------------- /vxlan/vxlan.p4app/mycontroller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/vxlan/vxlan.p4app/mycontroller.py -------------------------------------------------------------------------------- /vxlan/vxlan.p4app/p4app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/vxlan/vxlan.p4app/p4app.json -------------------------------------------------------------------------------- /vxlan/vxlan.p4app/parser.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/vxlan/vxlan.p4app/parser.p4 -------------------------------------------------------------------------------- /vxlan/vxlan.p4app/s1.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/vxlan/vxlan.p4app/s1.config -------------------------------------------------------------------------------- /vxlan/vxlan.p4app/s2.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/vxlan/vxlan.p4app/s2.config -------------------------------------------------------------------------------- /vxlan/vxlan.p4app/vxlan.p4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/P4-Research/p4-demos/HEAD/vxlan/vxlan.p4app/vxlan.p4 --------------------------------------------------------------------------------