-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Will the TCP-INT function be added? #67
Comments
Do you mean this code? https://github.com/p4lang/p4app-TCP-INT |
This project uses the code from TCP-INT. TCP-INT has a separate p4 code at https://www.intel.com/content/www/us/en/products/network-io/programmable-ethernet-switch/connectivity-education-hub/research-program.html |
Sorry, yes I checked after I posted my comment above, and that reminded me that the P4 code for the Tofino part of TCP-INT is not in that repository. I can ping @pkotikal to see if she knows the answer. I do not know if there are plans to add Tofino TCP-INT P4 code to this, or any other, public repository. |
Thank you very much. I have another question. I have a machine with bf-sde9.2 deployed. The TCP_INT code is in bf-sde9.2.1. I found that they are only different in the pkgsrc/switch-p4-16 directory. Can I copy the switch-p4-16 directory of TCP-INT to the current bf-sde9.2 machine, and then only compile switch-p4-16? Because it takes a long time to fully compile SDE. |
I do not know for certain, but I'd recommend to try it and see what happens. Also, note that In the time it takes to await an answer, I'd bet your computer could have finished fully compiling another version of the SDE. |
@jackmygreat, can you confirm in which path in bf-sde the TCP_INT code is available? |
The doc of TCP_INT is in packages/switch-p4-16-9.7.2/docs/tcp-int.md. The P4 code of TCP_INT is in packages/switch-p4-16-9.7.2/p4src/shared/tcp_int.p4. @marcosfsch |
@jackmygreat, apart from the switch-p4-16 programs included in the latest SDE, we don't have any plans to add old profiles. |
As the documentation describes , the switch.p4 program describes a data plane of an L2/L3 switch. When we run the |
@jackmygreat I recommend that you familiarize yourself with ready-made examples from Inter in the folder /opt/open-p4studio/pkgsrc/p4-examples/p4_16_programs. There is a python test file in which you can see how to configure chip tables. |
@jackmygreat In this example, you need to configure a packet forwarding table from input port 1 to output port 2 through the Control Plane. |
22/0 |21/0|148|1/20|10G |NONE|Au|Au|YES|DIS|DWN| NONE | 0| 0| |
Do you have a virtual switch or a real one? Have you redefined the ports? |
real hardware switch |
Are you using open SDE (open-p4studio)? |
I use bf-sde, but its switch.p4 is basically the same as open SDE. |
@jackmygreat For discount nexthop_index is not the output port number. As far as I understand nexthop_index needs to be associated with the output port. |
This is roughly how it should be table nexthop_table { action forward(bit<9> port) { apply { |
In-band telemetry is an important feature, are there plans to add TCP-INT to the code?
The text was updated successfully, but these errors were encountered: