Hi,
I am new to ryu.I am using the RYU controller to control my mininet
topology.My mininet topology is given below.
{noformat}
#!/usr/bin/python
from mininet.node import Controller, RemoteController, OVSController
from mininet.node import CPULimitedHost, Host, Node
from mininet.node import OVSKernelSwitch, UserSwitch
from mininet.node import OVSSwitch
from mininet.net import Mininet
from mininet.cli import CLI
from mininet.log import setLogLevel, info
from mininet.link import TCLink, Intf
def myNetwork():
net = Mininet( topo=None,
autoStaticArp=True,
autoSetMacs=True,
build=False,
ipBase='10.0.0.0/8')
info( '*** Adding controller\n' )
c0=net.addController(name='c0',
controller=RemoteController,
ip='192.168.241.130',
port=6633)
c1=net.addController(name='c1',
controller=RemoteController,
ip='192.168.241.129',
port=6633)
info( '*** Add switches\n')
s1 = net.addSwitch('s1', cls=OVSKernelSwitch, dpid='0000000000000201')
s2 = net.addSwitch('s2', cls=OVSKernelSwitch, dpid='0000000000000202')
s3 = net.addSwitch('s3', cls=OVSKernelSwitch, dpid='0000000000000203')
s4 = net.addSwitch('s4', cls=OVSKernelSwitch, dpid='0000000000000204')
s5 = net.addSwitch('s5', cls=OVSKernelSwitch, dpid='0000000000000205')
s6 = net.addSwitch('s6', cls=OVSKernelSwitch, dpid='0000000000000206')
info( '*** Add hosts\n')
h1 = net.addHost('h1', cls=Host, ip='10.0.0.1', defaultRoute=None)
h2 = net.addHost('h2', cls=Host, ip='10.0.0.2', defaultRoute=None)
h3 = net.addHost('h3', cls=Host, ip='10.0.0.3', defaultRoute=None)
h4 = net.addHost('h4', cls=Host, ip='10.0.0.4', defaultRoute=None)
h5 = net.addHost('h5', cls=Host, ip='10.0.0.5', defaultRoute=None)
h6 = net.addHost('h6', cls=Host, ip='10.0.0.6', defaultRoute=None)
info( '*** Add links\n')
net.addLink(h1, s1)
net.addLink(h2, s2)
net.addLink(h3, s3)
net.addLink(h4, s4)
net.addLink(h5, s5)
net.addLink(h6, s6)
info(' *** switch to switch \n')
net.addLink(s4, s1)
net.addLink(s5, s2)
net.addLink(s6, s3)
info( '*** Starting network\n')
net.build()
info( '*** Starting controllers\n')
for controller in net.controllers:
controller.start()
info( '*** Starting switches\n')
net.get('s1').start([c0])
net.get('s2').start([c0])
net.get('s3').start([c0])
net.get('s4').start([c0])
net.get('s5').start([c0])
net.get('s6').start([c0])
info( '*** Configuring switches\n')
CLI(net)
net.stop()
if __name__ == '__main__':
setLogLevel( 'info' )
myNetwork()
{noformat}
I start the topology as follows.
{noformat}
sudo python custom/topo-onos-2.py
{noformat}
After starting the controller when I start my switches the messages that I
get on the controller are as follows.
{noformat}
ryu-manager ryu/app/simple_switch.py
loading app ryu/app/simple_switch.py
loading app ryu.controller.ofp_handler
instantiating app ryu.controller.ofp_handler of OFPHandler
instantiating app ryu/app/simple_switch.py of SimpleSwitch
packet in 513 de:31:73:a5:44:e8 33:33:ff:a5:44:e8 2
packet in 516 00:00:00:00:00:04 33:33:ff:00:00:04 1
packet in 513 00:00:00:00:00:04 33:33:ff:00:00:04 2
packet in 513 00:00:00:00:00:01 33:33:ff:00:00:01 1
packet in 516 00:00:00:00:00:01 33:33:ff:00:00:01 2
packet in 515 00:00:00:00:00:03 33:33:ff:00:00:03 1
packet in 518 00:00:00:00:00:03 33:33:ff:00:00:03 2
port modified 1
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:16 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:ff:8a:5a:5c 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:ff:4a:7c:0b 2
packet in 518 00:00:00:00:00:06 33:33:ff:00:00:06 1
packet in 515 00:00:00:00:00:06 33:33:ff:00:00:06 2
packet in 517 00:00:00:00:00:05 33:33:ff:00:00:05 1
packet in 514 00:00:00:00:00:05 33:33:ff:00:00:05 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:02 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:16 2
packet in 514 00:00:00:00:00:02 33:33:ff:00:00:02 1
packet in 517 00:00:00:00:00:02 33:33:ff:00:00:02 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:02 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:16 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:02 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:16 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:02 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:16 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 516 00:00:00:00:00:04 33:33:00:00:00:02 1
packet in 513 00:00:00:00:00:04 33:33:00:00:00:02 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 513 00:00:00:00:00:01 33:33:00:00:00:02 1
packet in 516 00:00:00:00:00:01 33:33:00:00:00:02 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:16 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 515 00:00:00:00:00:03 33:33:00:00:00:02 1
packet in 518 00:00:00:00:00:03 33:33:00:00:00:02 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 514 00:00:00:00:00:02 33:33:00:00:00:16 1
packet in 517 00:00:00:00:00:02 33:33:00:00:00:16 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:02 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:16 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:02 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:16 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 518 00:00:00:00:00:06 33:33:00:00:00:02 1
packet in 515 00:00:00:00:00:06 33:33:00:00:00:02 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 517 00:00:00:00:00:05 33:33:00:00:00:02 1
packet in 514 00:00:00:00:00:05 33:33:00:00:00:02 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 514 00:00:00:00:00:02 33:33:00:00:00:02 1
packet in 517 00:00:00:00:00:02 33:33:00:00:00:02 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:16 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:02 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:02 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:02 2
packet in 516 00:00:00:00:00:04 33:33:00:00:00:16 1
packet in 513 00:00:00:00:00:04 33:33:00:00:00:16 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:02 2
packet in 516 12:78:80:f8:df:f8 33:33:00:00:00:fb 2
packet in 514 fe:98:56:d6:2d:fc 33:33:00:00:00:fb 2
packet in 516 00:00:00:00:00:04 33:33:00:00:00:02 1
packet in 513 00:00:00:00:00:04 33:33:00:00:00:02 2
packet in 518 36:f2:72:d2:24:49 33:33:00:00:00:fb 2
packet in 513 00:00:00:00:00:01 33:33:00:00:00:02 1
packet in 516 00:00:00:00:00:01 33:33:00:00:00:02 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 515 00:00:00:00:00:03 33:33:00:00:00:02 1
packet in 518 00:00:00:00:00:03 33:33:00:00:00:02 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:16 2
packet in 513 de:31:73:a5:44:e8 33:33:00:00:00:fb 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:02 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:02 2
packet in 518 00:00:00:00:00:06 33:33:00:00:00:02 1
packet in 515 00:00:00:00:00:06 33:33:00:00:00:02 2
packet in 517 00:00:00:00:00:05 33:33:00:00:00:02 1
packet in 514 00:00:00:00:00:05 33:33:00:00:00:02 2
packet in 514 00:00:00:00:00:02 33:33:00:00:00:02 1
packet in 517 00:00:00:00:00:02 33:33:00:00:00:02 2
packet in 517 fa:f9:41:8a:5a:5c 33:33:00:00:00:fb 2
packet in 515 ca:b1:d0:4a:7c:0b 33:33:00:00:00:fb 2
packet in 515 00:00:00:00:00:03 33:33:00:00:00:16 1
packet in 518 00:00:00:00:00:03 33:33:00:00:00:16 2
packet in 517 00:00:00:00:00:05 33:33:00:00:00:16 1
packet in 514 00:00:00:00:00:05 33:33:00:00:00:16 2
{noformat}
It seems to be recieving packet-in messages?I don't expect packe-in
messages as I am not sending any data across the switches?
Can some one kindly enlighten me as to what is happening here.
Thanks & Regards,
Karthik.
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel