CN-UPB / placement-emulation

Automatically emulate network service placements calculated by arbitrary placement algorithms
Apache License 2.0
10 stars 4 forks source link

Question about failing to create v-link #5

Open RangoShang opened 2 years ago

RangoShang commented 2 years ago

Hi, When I was running the code, I got the problem that the v-links can not be created. When I checkt the log I got this.

vlinks:

stefanbschneider commented 2 years ago

Hi, I have to admit that I haven't used placement-emulation in years myself, so I don't know the answer from the top of my head.

Port 8080 is an alternative to the standard port 80, but I am not sure where/why/if we have used that in placement-emulation. When searching the code for "8080", I didn't find anything.

Did you try the emulation and testing steps described here: https://github.com/CN-UPB/placement-emulation/wiki/emulation

Maybe that helps with debugging the issue. If you make progress or come up with another issue, feel free to comment again - maybe I'll be of more help then.

RangoShang commented 2 years ago

Thanks a lot for helping me. I found that the problem is that the ryu controller is not opened rightly. And the port is used in the controller restful API. After I restart the ryu controller, the problem is solved. However when I was testing the program, I could not let the containernet CLI show up, so I have to get into the docker to make RTT test. After I terminate the daemon process, the links and nodes are shut down. So could you tell me how to get the container CLI with the daemonizing vim-emu? That would be appreciated.

stefanbschneider commented 2 years ago

I am not sure, I fully understand your situation and problem - partly also because I haven't used containernet, vim-emu, and placment-emulation for quite while. Did you install vim-emu and containernet using the bare-metal installation (option 1) or using nested Docker containers (option 2)?

Either way, you need access to a terminal where everything is installed, i.e., locally (for bare metal) or on the Docker container (for option 2). Inside that terminal you should run the script to start placement emulation and containernet in the forground: https://github.com/CN-UPB/placement-emulation/wiki/emulation#start-a-topology This should give you the containernet CLI. For vim-emu, use a second terminal.

If you have started the containernet script in the background, you can re-attach to it like this: https://unix.stackexchange.com/a/31830/203270 (I haven't tried)