-
Notifications
You must be signed in to change notification settings - Fork 8
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
Getting result of the p4.basic experiment #3
Comments
Hi Sepeh, you will not be able to successfully run the experiment without passing to minindn the "--p4" option. You may look at the code in the "bin/minindn" script to see that the option is used to load the programmable P4switch class for the switches in your mininet topology. Without that option, a normal switch, which is not able to execute your p4 program, will be loaded instead. Thank you for your interest in this work |
Thank you very much. Let me apply your comment and get back with you asap. |
Hello,
I looked into minindn.rej and nlsr.py.rej but I really didn't understand how to handle my prblems with them. |
Hi Sepher, Hope this helps, |
Hello, Thank you very much for your help and then I tried running the experiment but again I encountered the following error: so I have two questions:
Thank you |
Hi Sepehr,
One reason why this could not be the case in your system is that after repatching the files, you have not re-installed mini-ndn and so the old binary stays in the package-distribution python folder. Hope this helps, |
Hi Salvatore, please help me to solve it asap. Thanks. |
Hello, Could not connect to thrift client on port 9090 Parse of /home/sepehr/NDN.p4/mini-ndn/p4.ndn.basic.conf done. I don't start the application *** Starting CLI: (I tried fixing it by cleaning the mininet but it didn't work.) Thank you |
Hi Salvatore, I could not fix the above error yet. I am looking forward to hearing from you. Thanks |
Hi Sepehr, the error msg is quite clear, the switch is not running properly and you should check why. I assume you have installed and compiled the p4 bmv2 switch and that you can start it without any problem on your machine. This is listed as second requirement on top of the main dir's README file. Have you done that step? Salvatore |
Hi Salvatore, |
Hi Sepher, |
Hello, *** Starting controller I don't start the application *** Stopping 1 controllers as you see I encountered the same error "could not connect to thrift client on port 9090" I've searched about this problem and got something about running the switch so I used the command bellow to do so: python 1sw_demo.py --behavioral-exe ../targets/simple_router/simple_router --json ../targets/simple_router/simple_router.json but when I use this command I get the following error running the experiment: *** Creating network Is there something wrong about running the switch? or there is another way to handle the error? Thank you, Sepehr |
Hi Sepher, sorry for the late answer, I've been a bit busy those days. On a fresh installation, I got a similar problem to the one you have referenced in this issue. Your problem could be due to the switch trying to load a not-existent json file, you may get some confirmation by looking at some switch's log written in "/tmp/p4s.s1.log". I have updated the README and added a json file of the p4 program that was missing in this repo (in case you do not want to compile the program by using p4c-bmv2). Hope this helps, |
Hi Salvatore, |
sorry, I forgot to push it into the repo. just done! |
Hi Salvatore, The thrift problem was solved,
I also see this error showsup in a.log file after running exit in mininet CLI to finish the experiment:
|
Hi, Salvatore, |
Hi Sepher, mininet> b echo 'Blah' | ndnpoke -w 60000 ndn:/snt/sedan/state/blah.pdf & The second command should print you "Blah". Even though I am afraid that because of the pcap error you will not be able to run this test. So, let's try to fix the point 2 first. |
Hi Salvatore, |
Hi Sepher, |
Hi salvatore, Thanks for the fast response. I don't start the application but still nothing is written in the payloadpacket.txt. |
Hello Slavatore, ./install.sh -i and run the experiment. Unfortunately, I still see nothing printed in the packetpayload.txt file. |
Hi Sepehr, cd $YOUR_MININDN_DIR |
Hello Salvatore, |
Hello sepehr, when i try 'get status' to check the version , i get the result below: root@ubuntu:~/ndn-folder/mini-ndn# git status
Untracked files:
no changes added to commit (use "git add" and/or "git commit -a") I see you made it work, can you please help to solve the problem. |
Hello signorello, The mini-ndn version you are proposing is : 0.3.0, where can i find mini-ndn version 0.1.1 as you recommend. Thanks for you help |
Hi, I do not think I have suggested the version 0.3.0 anywhere, I would really suggest to clean any previous mini-ndn installed on your system, if the version number is not the same, and re-install the indicated version from scratch. You can get the right version of mini-ndn from the official repo by downloading the sources in tar format at Hope this helps and thanks for checking this repo out. |
Hi, |
Hello,
I have exactly followed your instructions/steps in https://github.com/signorello/NDN.p4
and encountered two problems while using the following code:
sudo minindn $MININDN/p4.ndn.basic.conf --experiment=P4_NDN_experiment --p4
I get the following error:
minindn: error: unrecognized arguments: --p4
and if I remove --p4 and use
sudo minindn $MININDN/p4.ndn.basic.conf --experiment=P4_NDN_experiment
the experiment does nothing and stays without any response; In other words, I don't see any result and it also doesn't finish (I was waiting for a long time).
What is the problem and how can I fix it?
Thanks.
Sepeh
The text was updated successfully, but these errors were encountered: