Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] load balancing

Sandesh Shrestha sandesh1 at ualberta.ca
Mon Mar 9 00:59:41 PDT 2015


Load balancer in pox:

https://github.com/gordonyen/op-project/blob/master/ip_loadbalancer.py
On Mar 7, 2015 1:11 PM, <mininet-discuss-request at mailman.stanford.edu>
wrote:

> Send mininet-discuss mailing list submissions to
>         mininet-discuss at lists.stanford.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mailman.stanford.edu/mailman/listinfo/mininet-discuss
> or, via email, send a message with subject or body 'help' to
>         mininet-discuss-request at lists.stanford.edu
>
> You can reach the person managing the list at
>         mininet-discuss-owner at lists.stanford.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of mininet-discuss digest..."
>
>
> Today's Topics:
>
>    1. Exception in creating a multiple-switch topology containing
>       loops using the Beacon controller (Sel?uk Cevher)
>    2. load balancing (Mr prakash Patel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 7 Mar 2015 10:54:37 +0200
> From: Sel?uk Cevher <cevhers at gmail.com>
> To: mininet-discuss at lists.stanford.edu
> Subject: [mininet-discuss] Exception in creating a multiple-switch
>         topology containing loops using the Beacon controller
> Message-ID:
>         <CAP4aN=5yf4MYK4o81u9ibqUsAySUV060ZrrY=
> zK6Demqt0UnuA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I am new to Mininet, and trying to perform experiments on a custom topology
> with 9 switches and 14 links (excluding the links from hosts to switches;
> there are 9 hosts each of which is connected to a different switch) whose
> .py code is given below:
>
> **********************************
>
> *from mininet.topo import Topo*
>
> *class MyTopo( Topo ):*
> *    "Simple topology example."*
>
> *    def __init__( self ):*
> *        "Create custom topo."*
>
> *        # Initialize topology*
> *        Topo.__init__( self )*
>
> *        # Add hosts and switches*
> *        host1 = self.addHost( 'h1' )*
> *        host2 = self.addHost( 'h2' )*
> * host3 = self.addHost( 'h3' )*
> * host4 = self.addHost( 'h4' )*
> * host5 = self.addHost( 'h5' )*
> * host6 = self.addHost( 'h6' )*
> * host7 = self.addHost( 'h7' )*
> * host8 = self.addHost( 'h8' )*
> * host9 = self.addHost( 'h9' )*
> *        switch1 = self.addSwitch( 's1' )*
> *        switch2 = self.addSwitch( 's2' )*
> * switch3 = self.addSwitch( 's3' )*
> * switch4 = self.addSwitch( 's4' )*
> * switch5 = self.addSwitch( 's5' )*
> * switch6 = self.addSwitch( 's6' )*
> * switch7 = self.addSwitch( 's7' )*
> * switch8 = self.addSwitch( 's8' )*
> * switch9 = self.addSwitch( 's9' )*
>
> *        # Add links*
> *        self.addLink( host1, switch1 )*
> *        self.addLink( host2, switch2 )*
> *        self.addLink( host3, switch3 )*
> *        self.addLink( host4, switch4 )*
> *        self.addLink( host5, switch5 )*
> *        self.addLink( host6, switch6 )*
> *        self.addLink( host7, switch7 )*
> *        self.addLink( host8, switch8 )*
> *        self.addLink( host9, switch9 )*
>
> *        self.addLink( switch1, switch2 )*
> *        self.addLink( switch1, switch4 )*
> *        self.addLink( switch2, switch4 )*
> *        self.addLink( switch2, switch3 )*
> *        self.addLink( switch3, switch4 )*
> *        self.addLink( switch3, switch5 )*
> *        self.addLink( switch3, switch6 )*
> *        self.addLink( switch4, switch5 )*
> *        self.addLink( switch4, switch7 )*
> *        self.addLink( switch5, switch6 )*
> *        self.addLink( switch5, switch8 )*
> *        self.addLink( switch6, switch9 )*
> *        self.addLink( switch7, switch8 )*
> *        self.addLink( switch8, switch9 )*
>
> *topos = { 'myTopo': ( lambda: MyTopo() ) }*
>
> *********************
>
> I create my custom topology as below:
>
> *sudo mn --custom ~/myTopo.py --topo myTopo --mac --switch ovsk
> --controller remote,ip=192.168.1.33*
>
> where 192.168.1.33 is the IP address of the host machine where Beacon runs.
>
> I launch the Beacon controller in Eclipse in Debug mode as indicated in
> OpenFlow tutorial ("Running the Tutorial Controller").
>
> However, in Eclipse console, I see exceptions which ends up with the
> disconnection of switches:
>
> *10:33:11.352 [pool-2-thread-1] ERROR n.b.core.internal.Controller -
> Exception during IOloop*
> *java.io.IOException: Failure reading and decoding OpenFlow messages at
>
> net.beaconcontroller.core.io.internal.OFMessageAsyncStream.read(OFMessageAsyncStream.java:68)
> ~[net.beaconcontroller.core/:na] at
>
> net.beaconcontroller.core.io.internal.OFMessageAsyncStream.read(OFMessageAsyncStream.java:50)
> ~[net.beaconcontroller.core/:na] at
>
> net.beaconcontroller.core.internal.Controller.handleSwitchEvent(Controller.java:195)
> [net.beaconcontroller.core/:na] at
>
> net.beaconcontroller.core.internal.Controller.handleEvent(Controller.java:141)
> [net.beaconcontroller.core/:na] at
> net.beaconcontroller.core.io.internal.IOLoop.doLoop(IOLoop.java:122)
> ~[net.beaconcontroller.core/:na] at
> net.beaconcontroller.core.internal.Controller$2.run(Controller.java:544)
> ~[net.beaconcontroller.core/:na] at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
> ~[na:1.6.0_34] at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> ~[na:1.6.0_34] at java.lang.Thread.run(Thread.java:701) ~[na:1.6.0_34]*
> *Caused by: java.io.IOException: Connection reset by peer*
> * at sun.nio.ch.FileDispatcher.read0(Native Method) ~[na:1.6.0_34]*
> * at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
> ~[na:1.6.0_34]*
> * at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:251)
> ~[na:1.6.0_34]*
> * at sun.nio.ch.IOUtil.read(IOUtil.java:218) ~[na:1.6.0_34]*
> * at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:254)
> ~[na:1.6.0_34]*
> * at
>
> net.beaconcontroller.core.io.internal.OFMessageAsyncStream.read(OFMessageAsyncStream.java:57)
> ~[net.beaconcontroller.core/:na]*
> * ... 8 common frames omitted*
> *10:33:11.352 [pool-2-thread-1] INFO  n.b.core.internal.Controller - Switch
> disconnected OFSwitchImpl [Socket[addr=/192.168.1.33
> <http://192.168.1.33>,port=35241,localport=6633]
> DPID[00:00:00:00:00:00:00:02]]*
>
> Might the loops in the topology be the reason of this exception ? If so,
> how to overcome this issue ?
>
> Any help will be appreciated.
>
> Thanks.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20150307/37894b54/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Sat, 7 Mar 2015 22:07:58 +0530
> From: Mr prakash Patel <prakash.patel at nirmauni.ac.in>
> To: "mininet-discuss at lists.stanford.edu"
>         <mininet-discuss at lists.stanford.edu>
> Subject: [mininet-discuss] load balancing
> Message-ID:
>         <
> CAHimrVwy7bTsbC52ykAd4mu_rqbqszfocBjbe6vUCg8JWtWfpQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> dear all
>
> can anybody have the load balancing algorithm or code for pox then send me.
>
> --
> Prof. Prakash Patel
> Asst. Professor in Computer Engg.
> Nirma University
> Cell:9825555327
>
> *CONFIDENTIALITY NOTICE*
>
> This communication (including any attachment/s) is intended only for the
> use of the addressee(s) and contains information that is PRIVILEGED AND
> CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying
> of this communication is prohibited.
>
>
> ------------------------------------------------------------------------------------------------------------
>
>
> *DISCLAIMER*
>
> Any views or opinions presented in this email are solely those of the
> author and do not necessarily represent those of the University.
>
>
>
> -----------------------------------------------------------------------------------------------------------
>
>
> *WARNING:* This communication, including any attachments, may not be free
> of viruses, interceptions or interference, and may not be compatible with
> your systems. You should carry out your own virus checks before opening any
> attachment to this e-mail. The sender of this e-mail and Nirma University
> shall not be liable for any damage that you may sustain as a result of
> viruses, incompleteness of this message, a delay in receipt of this message
> or computer problems experienced.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20150307/44cd4952/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> mininet-discuss mailing list
> mininet-discuss at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/mininet-discuss
>
>
> ------------------------------
>
> End of mininet-discuss Digest, Vol 61, Issue 17
> ***********************************************
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20150309/1d07d803/attachment-0001.html>


More information about the mininet-discuss mailing list