tutorials
tutorials copied to clipboard
P4 language tutorials
I have two client-server model, one for TCP and the other is for UDP. I tested these two models with mininet using sudo mn , and they worked just fine....
I want to start a network that has several switches with `simple_switch`, and load p4 program by setting 'program' option in **topology.json**: ```json ··· "switches": { "s1": { "program": "build/basic.json",...
Hi all, I am working on P4 with the setup as provided in this repo. Since my experiments are causing performance issues due to a large number of hosts/switches. There...
Hi, I want to embed the MRI options header in every packet that passes through the switch instead of using the probe packets. I am trying to do it the...
I am doing the MRI example.The code mri.p4 shows the switch's ID and queue length ,which the code is "standard_metadata.deq_qdepth".I want to know if I need other INT datas like...
In original s1-runtime.json, if I want to match the IPv4 address then ""hdr.ipv4.dstAddr": ["10.0.1.1", 32]" will be used. However, I have not seen any IPv6 demo in the tutorial, so...
I would like to propose an exercise to introduce the port mirroring features of P4 that involves the _clone_ function/ extern, which many would probably find useful for many cases.
Hello, I'm learning the P4 load balancing in the tutorial, but when i execute the code incomplete (the first step of the tutorial), the packages are sent normally. Do you...
tutorials/exercises/source_routing from p4.v1 import p4runtime_pb2 ImportError: No module named p4.v1
After the error below, I tried to modify the p4runtime_lib/switch.py as follows: ```sh P4 switch s1 has been started. Traceback (most recent call last): File "/p4app/main.py", line 461, in main()...