Hi Subha,

On 2017年10月06日 14:22, Subha wrote:
Thanks Iwase.


Is it possible to run the same instance of ryu and have it acting as master and slave. Or do we need to have two separate machines , with ryu running on each one of them.


With respect to HA, what is the time taken for newly elected master to assume its role.  Eg: suppose the current master crashes and a new master had to get elected. How much time and what are sequence of steps carried out in RYU.

I guess it is depending on the algorithm of selecting the master, but it is out 
of scope of the
OpenFlow Spec and depending on the implementation of your switch and your 
applications.
Please refer to "6.3.7 Multiple Controllers" section of the OpenFlow Spec 1.3.5 
for the details.



Just read in the following link that it is possible to have same instance 
acting as master and slave.

https://www.mail-archive.com/ryu-devel@lists.sourceforge.net/msg13338.html

$ ryu-manager --ofp-tcp-listen-port 6653
$ ryu-manager --ofp-tcp-listen-port 6654

Or you can specified the listen IP address with '--ofp-listen-host':

$ ryu-manager --help
...(snip)...
  --ofp-listen-host OFP_LISTEN_HOST
                        openflow listen host (default 0.0.0.0)
  --ofp-ssl-listen-port OFP_SSL_LISTEN_PORT
                        openflow ssl listen port (default: 6653)
  --ofp-tcp-listen-port OFP_TCP_LISTEN_PORT
                        openflow tcp listen port (default: 6653)
...(snip)...


Thanks,
Iwase




Thanks,
subha.

On Fri, Oct 6, 2017 at 9:37 AM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>> wrote:

    Hi Subha,

    By default, Ryu will wait for the connection from switches on port 6653 and 
6633, So most of the
    required configuration is on switch side, I guess.

    If you are using Open vSwitch, please execute the following command on your 
switches.
       $ ovs-vsctl set-controller <switch_name> "tcp:<controller1_addr>:6653"
    "tcp:<controller2_addr>:6653"

    Optionally, if you want to tell switches which controller is Master or 
Slave, send OFPRoleRequest
    message from your Ryu application.

    
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPRoleRequest
    
<http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPRoleRequest>

    Thanks,
    Iwase


    On 2017年10月06日 12:16, Subha wrote:

        2nd try!!
        Thanks,
        subha.

        ---------- Forwarded message ----------
        From: *Subha* <subhadev...@gmail.com <mailto:subhadev...@gmail.com>
        <mailto:subhadev...@gmail.com <mailto:subhadev...@gmail.com>>>
        Date: Thu, Oct 5, 2017 at 2:00 PM
        Subject: Re: Reg: Multiple controller support using RYU
        To: Ryu-devel@lists.sourceforge.net 
<mailto:Ryu-devel@lists.sourceforge.net>
        <mailto:Ryu-devel@lists.sourceforge.net 
<mailto:Ryu-devel@lists.sourceforge.net>>


        Making it a bit clearer. I want to have two controller running 
simultaneously with one as
        Master and one as Slave.

        Any pointers on how to achieve this will be helpful.

        Thanks,
        subha.

        On Thu, Oct 5, 2017 at 12:51 PM, Subha <subhadev...@gmail.com 
<mailto:subhadev...@gmail.com>
        <mailto:subhadev...@gmail.com <mailto:subhadev...@gmail.com>>> wrote:

             Hi ,


             Can someone share me some docs or steps to setup multiple 
controllers using ryu.


             Thanks,
             subha.





        
------------------------------------------------------------------------------
        Check out the vibrant tech community on one of the world's most
        engaging tech sites, Slashdot.org! http://sdm.link/slashdot



        _______________________________________________
        Ryu-devel mailing list
        Ryu-devel@lists.sourceforge.net <mailto:Ryu-devel@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/ryu-devel
        <https://lists.sourceforge.net/lists/listinfo/ryu-devel>



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to