dlinknctu / OpenNet

A Simulator for Software-Defined Wireless Local Area Network
GNU General Public License v2.0
72 stars 44 forks source link

How to use ns-3 for connecting to FloodLight controller in SDN field? #69

Open mrparsaei opened 8 years ago

mrparsaei commented 8 years ago

Hi I apologize for inconvenience. I am a beginner in the SDN field, and I want to simulate some simple scenarios with the OpenNet. One of my problem is that Who I create a wired custom topology that seems like the bellow Figure and connect It to FloodLight controller with openflow for arbitary routing that I writed in controller for optimize link between host1 and host2 :

                 S2
               /       \
              |          |
    H1---------S1-------S3--------H2

It is my honor to receive some guidance about this issue from you.

Thanks in advance. Best Regards,

charlesmcchan commented 8 years ago

https://github.com/dlinknctu/OpenNet/tree/master/mininet-patch/examples/opennet

You can find some examples here.

HessamLa commented 6 years ago

I want to connect NS-3 nodes to floodlight controller through a proxy, instead of tap-bridge.

  1. Is it possible to connect to floodlight controller through proxy?
  2. If yes, how?

I have a network simulated with NS-3, and connected to floodlight controller through tap-bridge. I am using ofsoftswitch13 library in NS-3.

The objective eventually is to run NS-3 on a super-computer (on which we don't have administrative privilege to make a tap-bridge), and forward packets to floodlight controller (which is being run on a work station). Any sort of ideas and suggestions are welcome.

I'd appreciate your response.

charlesmcchan commented 6 years ago

The tap-bridge is only use for data plane. The control plane should only require that the IP of Floodlight is reachable from the Mininet

kansokusha commented 6 years ago

Hi HessamLa,

As far as I know, as you use ofsoftswitch13 library to simulate/emulate OpenFlow-based switch inside NS-3, tap-bridge or other NS-3 emulated network devices are required to let traffic can be forwarded to real network, which means you need proper privilege to make these bridge devices.

Here is an idea, run a virtual machine (with an OS which you have full privilege) inside super-computer and request super-computer administrator allocate a network device as your gateway to floodlight controller. With this approach, as long as the gateway exist, you will not require privilege to create virtual network device on that super-computer when you launch the simulated network.

S-shweta commented 4 years ago

I am trying to connect NS3 network to the FloodLight controller. can any body please help with the configuration. i am new to flood light and ns3 openflow switches