nsg-ethz / p4-utils

Extension to Mininet that makes P4 networks easier to build
GNU General Public License v2.0
183 stars 67 forks source link

Tofino Example: no bf_swithcd for one of the switches #56

Open Excel3884 opened 1 year ago

Excel3884 commented 1 year ago

Hello everyone, I have been trying to run the tofino example (https://github.com/nsg-ethz/p4-utils/tree/master/examples/tofino). Although, every time I set up the network, I can run run_bfshell.sh for only one of the switches (either s1 or s2). It looks like that bf_switchd is not running at all on the specific switch. Screenshot from 2023-06-26 10-23-11 Screenshot from 2023-06-26 10-23-24 Is it possible that happens because of the fact that BF Runtime Server is using the same port (50051) every time it's being started? SDE Version: 9.11.0 Thank you in advance.

Excel

Excel3884 commented 1 year ago

I realized that the example was working on Ubuntu 22.04, but not on my current distro (Ubuntu 18.04 minimal). The problem was solved by installing GDB.

edgar-costa commented 1 year ago

How did installing GDB fix the issue? Any idea? Is it a dependency?

Excel3884 commented 1 year ago

Hello, Unfortunately not. Once I installed GDB, I ran the second switchd using the -g flag to find out what's wrong (manually without running the example's code). Although, I doubt that this solved the issue, as I could run more switchds later without the flag. I guess it's probably a dependency like you said.