intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
446 stars 241 forks source link

How to make the connection between the switch and the controller multi-hop? #428

Closed longmao121 closed 2 years ago

longmao121 commented 2 years ago

My current situation is:controllers defalut work in root namespace, and connect UserAPs which running into their own namespace by domian socket. So, I cannot I can't make the controllers multi-hop.

How to make the connection between the switch and the controller multi-hop? Is it okay to put the controllers in their own namespace? How?

ramonfontes commented 2 years ago

Create a node (e.g. host) and run the controller in it.

longmao121 commented 2 years ago

Create a node (e.g. host) and run the controller in it.

But the controller and switch cannot be connected, if run the controller in a host. h1 :10.0.0.1 、ap1 :10.0.0.6, I can ping h1 in ap1 (xterm ap1) Is it because the controller(node c0, not ryu or nox) is still running in root namespce?

ramonfontes commented 2 years ago

But the controller and switch cannot be connected, if run the controller in a host.

Why not? We can help you if you provide further details.

Is it because the controller(node c0, not ryu or nox) is still running in root namespce?

Sorry, I don't know what do you mean.

longmao121 commented 2 years ago

Sorry, I don't know what do you mean.

image The controller is still in root namespace, but I run ryu in h1, is that ok? Thank you~

ramonfontes commented 2 years ago

Do you need two controllers or only one??

longmao121 commented 2 years ago

Do you need two controllers or only one??

Actuall, I have three controllers,I need a multi-hop connection between the switchs and the controllers

ramonfontes commented 2 years ago

Have you ever tried googling "how to configure inband controller in mininet"?

longmao121 commented 2 years ago

Do you need two controllers or only one?? image

For exmaple, c1 in the range of ap1. If I run ryu in root namespce, and change ap3 loss 100% by TC, c1 will disconnect with ap3,but ap4 and ap5 have no effect

ramonfontes commented 2 years ago

For exmaple, c1 in the range of ap1. If I run ryu in root namespce, and change ap3 loss 100% by TC, c1 will disconnect with ap3,but ap4 and ap5 have no effect

Which effect do you expect in ap4 and ap5 other than have no effect?? Didn't you set loss only in ap3? I'm getting too confused.

longmao121 commented 2 years ago

hahaha, unfortunately,my switch can't inband, I use CPqD/ofsoftswitch13

longmao121 commented 2 years ago

Which effect do you expect in ap4 and ap5 other than have no effect?? Didn't you set loss only in ap3? I'm getting too confused. c1 only in the range of ap1, if ap3 loss all packects, ap4 ap5 should disconnect with c1, but not

ramonfontes commented 2 years ago

hahaha, unfortunately,my switch can't inband, I use CPqD/ofsoftswitch13

What? Do you mean that you cannot use inband?? Why not??

c1 only in the range of ap1, if ap3 loss all packects, ap4 ap5 should disconnect with c1, but not

I can see no links in the network topology above. So I don't know if ap4/ap5 are directly connected to the controller or not. Honestly, I see no issue here. Moreover, the problem pointed out by you is not well described.

longmao121 commented 2 years ago

What? Do you mean that you cannot use inband?? Why not?? We tested it on hardware and confirmed that there were some problems with the in-band I can see no links in the network topology above. So I don't know if ap4/ap5 are directly connected to the controller or not. Honestly, I see no issue here. Moreover, the problem pointed out by you is not well described. All nodes are wirelessly connected, c1 is only in the range of ap1,all aps wired connection to a switch(ap1-h1 ap2-h2 ap3-h3 ap4-h4 ap5-h5). Now, c1 connect directly to all switches. However, in a real network, the connection between the c1 and ap5(for exmaple) requires ap2-ap3-ap4 forwarding. Sorry, I'm not clear about the description. I want to know how to run the controller in isolated namespce? Or how to implement ap5 trunking with c1 through other switches. Thank you~

ramonfontes commented 2 years ago

I want to know how to run the controller in isolated namespce

You can try containernet https://github.com/ramonfontes/containernet

longmao121 commented 2 years ago

You can try containernet https://github.com/ramonfontes/containernet Thanks for your response!