Mininet-PINT icon indicating copy to clipboard operation
Mininet-PINT copied to clipboard

Problem with the “sudo p4run --config p4app.json” command regarding the ping command between hosts and "python generate_results.py 5" command

Open Ga-Correia opened this issue 1 year ago • 0 comments

I'm new to P4 and I'm trying to run the Mininet-PINT repository, in which the network topology in mininet is built and initialized through the command “sudo p4run --config p4app.json”, but I noticed that when the topology is initialized it is not possible to execute the “ping” command between two hosts, but only between a host and a switch or between two switches.

I would like to know how to fix this problem, because creating a simple topology using the “sudo mn” command, the ping works normally for both cases and I believe that perhaps this is the problem I am having when running the repository, in the case when I run the command “ python generate_results.py 5” I have the following problem shown below:

~/Mininet-PINT$ python2 generate_results.py 5 Traceback (most recent call last): File "generate_results.py", line 267, in final_results_avg[len(new_path)][0]=str(round(sum(results)/float(len(results)),2)) ZeroDivisionError: float division by zero

From what I could analyze, during the execution of exp.py, it seems that 5000 packets are sent by the send.py code, however the queue created in the recv.py code always remains empty, which makes it appear that no packets were received for decapsulation and nothing is written to the "trial_number" file passed as a parameter to the def listener() function of the recv.py code. I believe this may be influencing the execution of generate_results.py.

Ga-Correia avatar Sep 19 '23 00:09 Ga-Correia