Re: [OpenDaylight Discuss] Multiple Controller implementation

2018-02-08 Thread Mohamed Abdel Metaal
Jamo,

Thank you alot i’ll try docker as mentioned by Luis :)


From: Jamo Luhrsen <jluhr...@gmail.com>
Sent: Thursday, February 8, 2018 7:16:28 AM
To: Mohamed Abdel Metaal; Luis Gomez
Cc: discuss@lists.opendaylight.org; openflowplugin-dev
Subject: Re: [OpenDaylight Discuss] Multiple Controller implementation

Ok Mohamed, I see what you are trying to do.

I think it should be possible to build your own version of OpenDaylight that
uses different ports to listen for openflow, and maybe not too difficult.

but there are other ports being used in other places of OpenDaylight
that you would have to change as well to make everything play nice on
the same system like the port restconf listens on, for example.

Luis' idea is pretty reasonable. Try docker.

  
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhub.docker.com%2Fu%2Fopendaylight%2F=02%7C01%7C%7C2abdcf2c6de24bdafbb408d56ebb7ebc%7C84df9e7fe9f640afb435%7C1%7C0%7C636536673912960766=Z2XPvXvvnxrP0fUMFtOPY808uIrGNgcAi5cKv091uGs%3D=0

you could have three ODL containers running on the same system. Each
would get their own local ip and you could point your mininet script
to those specific ips and still use the expected ports.

Thanks,
JamO



On 2/7/18 5:24 PM, Mohamed Abdel Metaal wrote:
> Thanks Luis. This answers my question so far as I thought I could modify the 
> ports in a multiple of configuration files
> in order to achieve this.
>
> Probably this could be a future idea to implement in OpenDaylight that allows 
> a single machine to operate multiple
> controllers simultaneously 
>
>
>
>
>
> *From: *Luis Gomez <mailto:ece...@gmail.com>
> *Sent: *Thursday, February 8, 2018 2:16
> *To: *Mohamed Abdel Metaal <mailto:m.alaa...@hotmail.com>
> *Cc: *Jamo Luhrsen <mailto:jluhr...@gmail.com>; 
> discuss@lists.opendaylight.org <mailto:discuss@lists.opendaylight.org>;
> openflowplugin-dev <mailto:openflowplugin-...@lists.opendaylight.org>
> *Subject: *Re: [OpenDaylight Discuss] Multiple Controller implementation
>
>
>
>
>
> On Feb 7, 2018, at 5:11 PM, Mohamed Abdel Metaal <m.alaa...@hotmail.com 
> <mailto:m.alaa...@hotmail.com>> wrote:
>
>
>
> Luis,
>
>
>
> This could not be possible as all controllers in this case will connect 
> to the same openflow ports, RESTCONF,
> Jolokia ports 8081 and 8080 along with other ports too, so the other 2 
> controllers will address ports which is
> already being addressed by the first controller. It would only be 
> possible to work if these ports are changed in
> each of the other controllers so they don’t collide using the same ports, 
> eg. Openflow ports 6633 / 6653. Just to
> clarify, as I have forgot, I am implementing this using my Ubuntu machine 
> without the use of virtual machines.
> That’s another question, could this be implemented using only my local 
> machine without virtual machines and tweaking
> the ports in each OpenDaylight folder (for each controller)?
>
>
>
> I do not think you can bring more than one controller instance in same 
> machine unless you use VMs or docker. on both
> options you do not need to modify controller ports.
>
>
>
>
>
> Jamo,
>
>
>
> I am currently implementing the controllers in one machine so they have 
> the same address to address the controllers
> (which is the loopback address in my case). So the controllers in my 
> mininet script have the same ip address but
> different openflow ports 6653, 7753 and 8853. Again, probably the same 
> question arises, is multiple controllers only
> possible to implement using different virtual machines per controller?
>
>
>
> Thanks 
>
>
>
> P.S. I have implemented the same implementation before using Floodlight 
> and there was a certain number of ports,
> including openflow ports, that needs to be changed. All using my local 
> machine without the need for virtual machines.
>
> If this is possible then it could be also a great idea to benchmark 
> OpenDaylight with other SDN controllers for
> behavior using a physically distributed control plane.
>
>
>
>
>
> *From: *Jamo Luhrsen <mailto:jluhr...@gmail.com>
> *Sent: *Thursday, February 8, 2018 1:53
> *To: *Luis Gomez <mailto:ece...@gmail.com>; Mohamed Abdel Metaal 
> <mailto:m.alaa...@hotmail.com>
>     *Cc: *discuss@lists.opendaylight.org 
> <mailto:discuss@lists.opendaylight.org>; openflowplugin-dev
> <mailto:openflowplugin-...@lists.opendaylight.org>
> *Subject: *Re: [OpenDaylight Discuss] Multiple Controller implementation
>
>
>
>
>
> On 2/7/18 4:24

Re: [OpenDaylight Discuss] Multiple Controller implementation

2018-02-07 Thread Mohamed Abdel Metaal
Thanks Luis. This answers my question so far as I thought I could modify the 
ports in a multiple of configuration files in order to achieve this.
Probably this could be a future idea to implement in OpenDaylight that allows a 
single machine to operate multiple controllers simultaneously 


From: Luis Gomez<mailto:ece...@gmail.com>
Sent: Thursday, February 8, 2018 2:16
To: Mohamed Abdel Metaal<mailto:m.alaa...@hotmail.com>
Cc: Jamo Luhrsen<mailto:jluhr...@gmail.com>; 
discuss@lists.opendaylight.org<mailto:discuss@lists.opendaylight.org>; 
openflowplugin-dev<mailto:openflowplugin-...@lists.opendaylight.org>
Subject: Re: [OpenDaylight Discuss] Multiple Controller implementation


On Feb 7, 2018, at 5:11 PM, Mohamed Abdel Metaal 
<m.alaa...@hotmail.com<mailto:m.alaa...@hotmail.com>> wrote:

Luis,

This could not be possible as all controllers in this case will connect to the 
same openflow ports, RESTCONF, Jolokia ports 8081 and 8080 along with other 
ports too, so the other 2 controllers will address ports which is already being 
addressed by the first controller. It would only be possible to work if these 
ports are changed in each of the other controllers so they don’t collide using 
the same ports, eg. Openflow ports 6633 / 6653. Just to clarify, as I have 
forgot, I am implementing this using my Ubuntu machine without the use of 
virtual machines. That’s another question, could this be implemented using only 
my local machine without virtual machines and tweaking the ports in each 
OpenDaylight folder (for each controller)?

I do not think you can bring more than one controller instance in same machine 
unless you use VMs or docker. on both options you do not need to modify 
controller ports.



Jamo,

I am currently implementing the controllers in one machine so they have the 
same address to address the controllers (which is the loopback address in my 
case). So the controllers in my mininet script have the same ip address but 
different openflow ports 6653, 7753 and 8853. Again, probably the same question 
arises, is multiple controllers only possible to implement using different 
virtual machines per controller?

Thanks 

P.S. I have implemented the same implementation before using Floodlight and 
there was a certain number of ports, including openflow ports, that needs to be 
changed. All using my local machine without the need for virtual machines.
If this is possible then it could be also a great idea to benchmark 
OpenDaylight with other SDN controllers for behavior using a physically 
distributed control plane.


From: Jamo Luhrsen<mailto:jluhr...@gmail.com>
Sent: Thursday, February 8, 2018 1:53
To: Luis Gomez<mailto:ece...@gmail.com>; Mohamed Abdel 
Metaal<mailto:m.alaa...@hotmail.com>
Cc: discuss@lists.opendaylight.org<mailto:discuss@lists.opendaylight.org>; 
openflowplugin-dev<mailto:openflowplugin-...@lists.opendaylight.org>
Subject: Re: [OpenDaylight Discuss] Multiple Controller implementation



On 2/7/18 4:24 PM, Luis Gomez wrote:
>
>> On Feb 7, 2018, at 4:09 PM, Mohamed Abdel Metaal 
>> <m.alaa...@hotmail.com<mailto:m.alaa...@hotmail.com><mailto:m.alaa...@hotmail.com>>
>>  wrote:
>>
>> Hello Jamo,
>>
>> Yes exactly, I have one instance of mininet running that should be connected 
>> to 3 opendaylight controllers. In my
>> mininet python script i have defined that controllers should connect on 
>> 6653, 7753 and 8853 openflow ports. This
>> should be somehow configured also in my opendaylight controllers for it to 
>> connect. I have tried changing port numbers
>> in default(and legacy)-openflow-connection-config.xml for the 3 different 
>> opendaylight controllers and ports 8081/8080
>> for jetty.xml so they don’t collide but still I get the errors and the 2 
>> other controllers cannot connect to my
>> mininet instance.

Luis,

is there a config we can tweak to tell OFP which port to listen on?

Mohamed

can you tweak your mininet python script to use the actual ip addresses of your
controllers? seems that those would be different. In that case, why can't they
all be listening on 6633?

Thanks,
JamO


>> As a brief example just to make sure that my idea is clear: i run a mininet 
>> instance of 6 switches where each
>> controller should only see/monitor/connect to 2 of the switches.
>
> I am not sure I full follow here: is this as simple as connect 2 switches to 
> a first controller, the next 2 switches to
> a second controller and finally the last 2 switches to a third controller? if 
> so there is nothing to do in controller,
> juts need to set mininet or OVS to do this, right?
>
>>
>> Thank you for your response.
>>
>> -------------

Re: [OpenDaylight Discuss] Multiple Controller implementation

2018-02-07 Thread Mohamed Abdel Metaal
Luis and Jamo,

Attached is defining the controller part of my mininet script. If you would 
like to full script please let me know:


c1 = RemoteController( 'c1', ip='127.0.0.1', port=6653 )
c2 = RemoteController( 'c2', ip='127.0.0.1', port=7753 )
c3 = RemoteController( 'c3', ip='127.0.0.1', port=8853 )

and I use cmap to map my switches to their respective controllers:
cmap = { 's1': c1, 's2': c1, ‘s3’: c1, 's4': c1, 's5': c1, ‘s6’: c1, 's7': c1, 
's8': c1, 's9':  c2, 's10': c2, 's11': c2, 's12': c2, 's13': c2, 's14': c3, 
's15': c3, 's16': c3, 's17': c3, 's18': c3}


net.addController(c1)
net.addController(c2)
net.addController(c3)

From: Mohamed Abdel Metaal<mailto:m.alaa...@hotmail.com>
Sent: Thursday, February 8, 2018 2:11
To: Jamo Luhrsen<mailto:jluhr...@gmail.com>; Luis Gomez<mailto:ece...@gmail.com>
Cc: discuss@lists.opendaylight.org<mailto:discuss@lists.opendaylight.org>; 
openflowplugin-dev<mailto:openflowplugin-...@lists.opendaylight.org>
Subject: Re: [OpenDaylight Discuss] Multiple Controller implementation

Luis,

This could not be possible as all controllers in this case will connect to the 
same openflow ports, RESTCONF, Jolokia ports 8081 and 8080 along with other 
ports too, so the other 2 controllers will address ports which is already being 
addressed by the first controller. It would only be possible to work if these 
ports are changed in each of the other controllers so they don’t collide using 
the same ports, eg. Openflow ports 6633 / 6653. Just to clarify, as I have 
forgot, I am implementing this using my Ubuntu machine without the use of 
virtual machines. That’s another question, could this be implemented using only 
my local machine without virtual machines and tweaking the ports in each 
OpenDaylight folder (for each controller)?

Jamo,

I am currently implementing the controllers in one machine so they have the 
same address to address the controllers (which is the loopback address in my 
case). So the controllers in my mininet script have the same ip address but 
different openflow ports 6653, 7753 and 8853. Again, probably the same question 
arises, is multiple controllers only possible to implement using different 
virtual machines per controller?

Thanks 

P.S. I have implemented the same implementation before using Floodlight and 
there was a certain number of ports, including openflow ports, that needs to be 
changed. All using my local machine without the need for virtual machines.
If this is possible then it could be also a great idea to benchmark 
OpenDaylight with other SDN controllers for behavior using a physically 
distributed control plane.


From: Jamo Luhrsen<mailto:jluhr...@gmail.com>
Sent: Thursday, February 8, 2018 1:53
To: Luis Gomez<mailto:ece...@gmail.com>; Mohamed Abdel 
Metaal<mailto:m.alaa...@hotmail.com>
Cc: discuss@lists.opendaylight.org<mailto:discuss@lists.opendaylight.org>; 
openflowplugin-dev<mailto:openflowplugin-...@lists.opendaylight.org>
Subject: Re: [OpenDaylight Discuss] Multiple Controller implementation



On 2/7/18 4:24 PM, Luis Gomez wrote:
>
>> On Feb 7, 2018, at 4:09 PM, Mohamed Abdel Metaal <m.alaa...@hotmail.com 
>> <mailto:m.alaa...@hotmail.com>> wrote:
>>
>> Hello Jamo,
>>
>> Yes exactly, I have one instance of mininet running that should be connected 
>> to 3 opendaylight controllers. In my
>> mininet python script i have defined that controllers should connect on 
>> 6653, 7753 and 8853 openflow ports. This
>> should be somehow configured also in my opendaylight controllers for it to 
>> connect. I have tried changing port numbers
>> in default(and legacy)-openflow-connection-config.xml for the 3 different 
>> opendaylight controllers and ports 8081/8080
>> for jetty.xml so they don’t collide but still I get the errors and the 2 
>> other controllers cannot connect to my
>> mininet instance.

Luis,

is there a config we can tweak to tell OFP which port to listen on?

Mohamed

can you tweak your mininet python script to use the actual ip addresses of your
controllers? seems that those would be different. In that case, why can't they
all be listening on 6633?

Thanks,
JamO


>> As a brief example just to make sure that my idea is clear: i run a mininet 
>> instance of 6 switches where each
>> controller should only see/monitor/connect to 2 of the switches.
>
> I am not sure I full follow here: is this as simple as connect 2 switches to 
> a first controller, the next 2 switches to
> a second controller and finally the last 2 switches to a third controller? if 
> so there is nothing to do in controller,
> juts need to set mininet or OVS to do this, right?
>
>>
>> Thank you for your response.
>>
>> -----------

Re: [OpenDaylight Discuss] Multiple Controller implementation

2018-02-07 Thread Mohamed Abdel Metaal
Luis,

This could not be possible as all controllers in this case will connect to the 
same openflow ports, RESTCONF, Jolokia ports 8081 and 8080 along with other 
ports too, so the other 2 controllers will address ports which is already being 
addressed by the first controller. It would only be possible to work if these 
ports are changed in each of the other controllers so they don’t collide using 
the same ports, eg. Openflow ports 6633 / 6653. Just to clarify, as I have 
forgot, I am implementing this using my Ubuntu machine without the use of 
virtual machines. That’s another question, could this be implemented using only 
my local machine without virtual machines and tweaking the ports in each 
OpenDaylight folder (for each controller)?

Jamo,

I am currently implementing the controllers in one machine so they have the 
same address to address the controllers (which is the loopback address in my 
case). So the controllers in my mininet script have the same ip address but 
different openflow ports 6653, 7753 and 8853. Again, probably the same question 
arises, is multiple controllers only possible to implement using different 
virtual machines per controller?

Thanks 

P.S. I have implemented the same implementation before using Floodlight and 
there was a certain number of ports, including openflow ports, that needs to be 
changed. All using my local machine without the need for virtual machines.
If this is possible then it could be also a great idea to benchmark 
OpenDaylight with other SDN controllers for behavior using a physically 
distributed control plane.


From: Jamo Luhrsen<mailto:jluhr...@gmail.com>
Sent: Thursday, February 8, 2018 1:53
To: Luis Gomez<mailto:ece...@gmail.com>; Mohamed Abdel 
Metaal<mailto:m.alaa...@hotmail.com>
Cc: discuss@lists.opendaylight.org<mailto:discuss@lists.opendaylight.org>; 
openflowplugin-dev<mailto:openflowplugin-...@lists.opendaylight.org>
Subject: Re: [OpenDaylight Discuss] Multiple Controller implementation



On 2/7/18 4:24 PM, Luis Gomez wrote:
>
>> On Feb 7, 2018, at 4:09 PM, Mohamed Abdel Metaal <m.alaa...@hotmail.com 
>> <mailto:m.alaa...@hotmail.com>> wrote:
>>
>> Hello Jamo,
>>
>> Yes exactly, I have one instance of mininet running that should be connected 
>> to 3 opendaylight controllers. In my
>> mininet python script i have defined that controllers should connect on 
>> 6653, 7753 and 8853 openflow ports. This
>> should be somehow configured also in my opendaylight controllers for it to 
>> connect. I have tried changing port numbers
>> in default(and legacy)-openflow-connection-config.xml for the 3 different 
>> opendaylight controllers and ports 8081/8080
>> for jetty.xml so they don’t collide but still I get the errors and the 2 
>> other controllers cannot connect to my
>> mininet instance.

Luis,

is there a config we can tweak to tell OFP which port to listen on?

Mohamed

can you tweak your mininet python script to use the actual ip addresses of your
controllers? seems that those would be different. In that case, why can't they
all be listening on 6633?

Thanks,
JamO


>> As a brief example just to make sure that my idea is clear: i run a mininet 
>> instance of 6 switches where each
>> controller should only see/monitor/connect to 2 of the switches.
>
> I am not sure I full follow here: is this as simple as connect 2 switches to 
> a first controller, the next 2 switches to
> a second controller and finally the last 2 switches to a third controller? if 
> so there is nothing to do in controller,
> juts need to set mininet or OVS to do this, right?
>
>>
>> Thank you for your response.
>>
>> ------------
>> *From:* Jamo Luhrsen <jluhr...@gmail.com <mailto:jluhr...@gmail.com>>
>> *Sent:* Thursday, February 8, 2018 12:57:26 AM
>> *To:* Mohamed Abdel Metaal; discuss@lists.opendaylight.org 
>> <mailto:discuss@lists.opendaylight.org>; openflowplugin-dev
>> *Subject:* Re: [OpenDaylight Discuss] Multiple Controller implementation
>>
>> adding the openflowplugin-dev list here as well.
>>
>> Mohamed,
>>
>> I don't get the impression that your OpenDaylight controllers are in a 
>> clustering
>> setup. Is that correct?
>>
>> I'm not totally following what you are trying to accomplish. You have just 
>> one
>> mininet instance connecting to a single IP address, but you want the switches
>> in that single mininet instance to somehow be distributed across multiple (3)
>> OpenDaylight controllers?
>>
>> Can you elaborate a little more please?
>>
>> Thanks,
>> JamO
>>
&g

Re: [OpenDaylight Discuss] Multiple Controller implementation

2018-02-07 Thread Mohamed Abdel Metaal
Hello Jamo,

Yes exactly, I have one instance of mininet running that should be connected to 
3 opendaylight controllers. In my mininet python script i have defined that 
controllers should connect on 6653, 7753 and 8853 openflow ports. This should 
be somehow configured also in my opendaylight controllers for it to connect. I 
have tried changing port numbers in default(and 
legacy)-openflow-connection-config.xml for the 3 different opendaylight 
controllers and ports 8081/8080 for jetty.xml so they don’t collide but still I 
get the errors and the 2 other controllers cannot connect to my mininet 
instance.

As a brief example just to make sure that my idea is clear: i run a mininet 
instance of 6 switches where each controller should only see/monitor/connect to 
2 of the switches.

Thank you for your response.


From: Jamo Luhrsen <jluhr...@gmail.com>
Sent: Thursday, February 8, 2018 12:57:26 AM
To: Mohamed Abdel Metaal; discuss@lists.opendaylight.org; openflowplugin-dev
Subject: Re: [OpenDaylight Discuss] Multiple Controller implementation

adding the openflowplugin-dev list here as well.

Mohamed,

I don't get the impression that your OpenDaylight controllers are in a 
clustering
setup. Is that correct?

I'm not totally following what you are trying to accomplish. You have just one
mininet instance connecting to a single IP address, but you want the switches
in that single mininet instance to somehow be distributed across multiple (3)
OpenDaylight controllers?

Can you elaborate a little more please?

Thanks,
JamO


On 2/7/18 3:38 PM, Mohamed Abdel Metaal wrote:
> I have a question regarding the implementation of multiple controllers using 
> OpenDaylight.
> If I want to implement 3 controllers, each responsible for a certain number 
> of nodes in the topology (so we have 3
> domains) which are not overlapping, how can this be implemented? I have 
> experience with Floodlight controllers and I
> could implement this by changing openflow port number along with other ports 
> in some properties file but in OpenDaylight
> I always get errors when I run 3 instances of controllers and only the first 
> one gets connected to Mininet topology that
> I implement with the controllers defined.
>
> ___
> Discuss mailing list
> Discuss@lists.opendaylight.org
> https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.opendaylight.org%2Fmailman%2Flistinfo%2Fdiscuss=02%7C01%7C%7C78feb80f3d6445ffa54e08d56e868b68%7C84df9e7fe9f640afb435%7C1%7C0%7C636536446494956220=YmTHBgBPJ%2FwVvUGrRMBJQOV5NeQME55c%2B2%2B11K873Vs%3D=0
>
___
Discuss mailing list
Discuss@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/discuss


[OpenDaylight Discuss] Multiple Controller implementation

2018-02-07 Thread Mohamed Abdel Metaal
I have a question regarding the implementation of multiple controllers using 
OpenDaylight.
If I want to implement 3 controllers, each responsible for a certain number of 
nodes in the topology (so we have 3 domains) which are not overlapping, how can 
this be implemented? I have experience with Floodlight controllers and I could 
implement this by changing openflow port number along with other ports in some 
properties file but in OpenDaylight I always get errors when I run 3 instances 
of controllers and only the first one gets connected to Mininet topology that I 
implement with the controllers defined.
___
Discuss mailing list
Discuss@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/discuss


[OpenDaylight Discuss] Subscription to "Discuss" mailing list

2018-02-07 Thread Mohamed Abdel Metaal
Email: m.alaa...@hotmail.com
___
Discuss mailing list
Discuss@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/discuss