Hello Iwase,

I'm not using simple_switch_13.py app . I'm using another app called 
getswitches.py which I'll be attaching with the mail.

The thing is the topology module works well when I need to discover links on my 
virtual network containing loops in mininet, but when I work with  
openVswitches running on 3 three different PCs it doesn’t discover all the 
links.right now link discovery is more important for me.

I'm also attaching the ryu traces in both the cases I just described.Also with 
this mail ill be attaching the mininet topology.
I would like some guidance regarding this issue.

As far as I know I can also add a flow to drop the lldp packets after a certain 
time period, during which all the links can be discovered .
Thanks for your help.

Mit freundlichen Grüßen / Best regards

 Harsha Vardhan
Communication Technology (CR/AEH4) 

[email protected]


-----Original Message-----
From: Yusuke Iwase [mailto:[email protected]] 
Sent: Freitag, 28. August 2015 10:03
To: FIXED-TERM Vardhan Harsha (CR/AEH4) <[email protected]>
Cc: [email protected]
Subject: Re: [Ryu-devel] link discovery in multipath topology

Hi,

On 2015年08月27日 18:02, FIXED-TERM Vardhan Harsha (CR/AEH4) wrote:
> Hello all,
> 
>  
> 
> I’m trying to perform link discovery in my multipath topology using the ryu 
> built-in topology module.
> 
> But when I use this there is lldp multicast storm and also not all the links 
> are discovered .
> 
> Can you please guide me how to go about changing the code so as to discover 
> all the links as well as to stop lldp multicast storm.
> 
> My topology is as following :
> 
>  
> 
>                                                 --------------OVS1------------
> 
>                                                 |                             
>      |
> 
>                                                 |                             
>      |
> 
>                                  OVS2-----------------------OVS3              
>          
> 
>  
> 
> Thanks for the help.

Did you get the following ryu-manager log?
...
packet in 2 4a:92:a6:d1:d2:3d 33:33:00:00:00:16 3
packet in 2 16:d3:fb:a7:82:03 33:33:00:00:00:16 3
EVENT ofp_event->SimpleSwitch13 EventOFPPacketIn
EVENT ofp_event->SimpleSwitch13 EventOFPPacketIn
EVENT ofp_event->SimpleSwitch13 EventOFPPacketIn
EVENT ofp_event->SimpleSwitch13 EventOFPPacketIn
packet in 3 4a:92:a6:d1:d2:3d 33:33:00:00:00:16 2
packet in 3 4a:92:a6:d1:d2:3d 33:33:00:00:00:02 2
packet in 3 16:d3:fb:a7:82:03 33:33:00:00:00:02 2
packet in 3 4a:92:a6:d1:d2:3d 33:33:00:00:00:16 2
...

On my environment, IPv6 multicast packets seem to be a cause of the multicast 
storm.

How about installing the following flow entry into each switch at switch 
features event?
 priority=65535,dl_dst=33:33:00:00:00:00/ff:ff:00:00:00:00 actions=drop

e.g.)
$ git diff
diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py
index 3e7c598..c0e4f02 100644
--- a/ryu/app/simple_switch_13.py
+++ b/ryu/app/simple_switch_13.py
@@ -21,6 +21,7 @@ from ryu.ofproto import ofproto_v1_3
 from ryu.lib.packet import packet
 from ryu.lib.packet import ethernet
 from ryu.lib.packet import ether_types
+from ryu.topology import api
 
 
 class SimpleSwitch13(app_manager.RyuApp):
@@ -48,6 +49,11 @@ class SimpleSwitch13(app_manager.RyuApp):
                                           ofproto.OFPCML_NO_BUFFER)]
         self.add_flow(datapath, 0, match, actions)
 
+        match = parser.OFPMatch(eth_dst=('33:33:00:00:00:00',
+                                         'ff:ff:00:00:00:00'))
+        actions = []
+        self.add_flow(datapath, 65535, match, actions)
+
     def add_flow(self, datapath, priority, match, actions, buffer_id=None):
         ofproto = datapath.ofproto
         parser = datapath.ofproto_parser

Then, run ryu-manager with this command.
$ ryu-manager --observe-links --verbose ryu.app.simple_switch_13

Thanks,
Iwase


> 
>  
> 
> Mit freundlichen Grüßen / Best regards
> 
> *Harsha Vardhan
> *Communication Technology (CR/AEH4)
> 
> [email protected] 
> <mailto:[email protected]>
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 
root@aeh4lab-HP-ZBook-15-G2:/home/aeh4lab/ryu# PYTHONATH= ./bin/ryu-manager 
--observe-links --verbose ryu/app/GetSwitches.py 
loading app ryu/app/GetSwitches.py
require_app: ryu.topology.switches is required by GetSwitches
loading app ryu.controller.dpset
loading app ryu.topology.switches
loading app ryu.controller.ofp_handler
instantiating app ryu.topology.switches of Switches
instantiating app ryu/app/GetSwitches.py of GetSwitches
instantiating app ryu.controller.dpset of DPSet
instantiating app ryu.controller.ofp_handler of OFPHandler
BRICK switches
  CONSUMES EventSwitchRequest
  CONSUMES EventOFPPacketIn
  CONSUMES EventHostRequest
  CONSUMES EventLinkRequest
  CONSUMES EventOFPPortStatus
  CONSUMES EventOFPStateChange
BRICK dpset
  PROVIDES EventDP TO {'GetSwitches': set(['main'])}
  CONSUMES EventOFPSwitchFeatures
  CONSUMES EventOFPStateChange
  CONSUMES EventOFPPortStatus
BRICK ofp_event
  PROVIDES EventOFPPacketIn TO {'switches': set(['main'])}
  PROVIDES EventOFPStateChange TO {'switches': set(['main', 'dead']), 'dpset': 
set(['main', 'dead'])}
  PROVIDES EventOFPPortStatus TO {'switches': set(['main']), 'dpset': 
set(['main'])}
  PROVIDES EventOFPSwitchFeatures TO {'dpset': set(['config'])}
  CONSUMES EventOFPErrorMsg
  CONSUMES EventOFPPortDescStatsReply
  CONSUMES EventOFPEchoRequest
  CONSUMES EventOFPSwitchFeatures
  CONSUMES EventOFPHello
BRICK GetSwitches
  CONSUMES EventDP
connected socket:<eventlet.greenio.base.GreenSocket object at 0x7fadde97f950> 
address:('127.0.0.1', 51231)
EVENT ofp_event->switches EventOFPStateChange
EVENT ofp_event->dpset EventOFPStateChange
<ryu.controller.controller.Datapath object at 0x7fadde97fc10>
connected socket:<eventlet.greenio.base.GreenSocket object at 0x7fadde97ffd0> 
address:('127.0.0.1', 51232)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fadde99a2d0>
move onto config mode
EVENT ofp_event->dpset EventOFPSwitchFeatures
switch features ev version: 0x4 msg_type 0x6 xid 0x902ee73a 
OFPSwitchFeatures(auxiliary_id=0,capabilities=71,datapath_id=72800193275,n_buffers=256,n_tables=254)
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
EVENT ofp_event->dpset EventOFPStateChange
<ryu.controller.controller.Datapath object at 0x7fadde97fd10>
/usr/local/lib/python2.7/dist-packages/ryu/topology/switches.py:543: 
UserWarning: Datapath#ports is kept for compatibility with the previous 
openflow versions (< 1.3). This not be updated by EventOFPPortStatus message. 
If you want to be updated, you can use 'ryu.controller.dpset' or 
'ryu.topology.switches'.
  for port in dp.ports.values():
register Switch<dpid=72800193275, Port<dpid=72800193275, port_no=1, LIVE> 
Port<dpid=72800193275, port_no=2, LIVE> Port<dpid=72800193275, port_no=3, LIVE> 
>
DPSET: register datapath <ryu.controller.controller.Datapath object at 
0x7fadde97fd10>
EVENT dpset->GetSwitches EventDP
Datapath entered, id 72800193275
EVENT GetSwitches->switches EventSwitchRequest
Switch : Switch<dpid=72800193275, Port<dpid=72800193275, port_no=1, LIVE> 
Port<dpid=72800193275, port_no=2, LIVE> Port<dpid=72800193275, port_no=3, LIVE> 
>
Ports :
{'hw_addr': '6a:60:f5:49:b3:a8', 'name': 's1-eth1', 'port_no': '00000001', 
'dpid': '00000010f33acafb'}
{'hw_addr': '1a:5c:08:9b:87:b9', 'name': 's1-eth2', 'port_no': '00000002', 
'dpid': '00000010f33acafb'}
{'hw_addr': 'a6:9b:e3:00:5c:44', 'name': 's1-eth3', 'port_no': '00000003', 
'dpid': '00000010f33acafb'}
Links :
EVENT GetSwitches->switches EventLinkRequest
connected socket:<eventlet.greenio.base.GreenSocket object at 0x7fadde9efb50> 
address:('127.0.0.1', 51233)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fadde99a9d0>
move onto config mode
EVENT ofp_event->dpset EventOFPSwitchFeatures
switch features ev version: 0x4 msg_type 0x6 xid 0x461ad0d2 
OFPSwitchFeatures(auxiliary_id=0,capabilities=71,datapath_id=72800193147,n_buffers=256,n_tables=254)
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
EVENT ofp_event->dpset EventOFPStateChange
<ryu.controller.controller.Datapath object at 0x7fadde97fd50>
register Switch<dpid=72800193147, Port<dpid=72800193147, port_no=1, LIVE> 
Port<dpid=72800193147, port_no=2, LIVE> Port<dpid=72800193147, port_no=3, LIVE> 
>
DPSET: register datapath <ryu.controller.controller.Datapath object at 
0x7fadde97fd50>
EVENT dpset->GetSwitches EventDP
Datapath entered, id 72800193147
EVENT GetSwitches->switches EventSwitchRequest
EVENT ofp_event->switches EventOFPPacketIn
Switch : Switch<dpid=72800193147, Port<dpid=72800193147, port_no=1, LIVE> 
Port<dpid=72800193147, port_no=2, LIVE> Port<dpid=72800193147, port_no=3, LIVE> 
>
Ports :
{'hw_addr': '26:1a:53:1c:9c:33', 'name': 's2-eth1', 'port_no': '00000001', 
'dpid': '00000010f33aca7b'}
{'hw_addr': '56:49:93:8e:9d:07', 'name': 's2-eth2', 'port_no': '00000002', 
'dpid': '00000010f33aca7b'}
{'hw_addr': '5e:5a:bd:1b:96:c8', 'name': 's2-eth3', 'port_no': '00000003', 
'dpid': '00000010f33aca7b'}
Links :
EVENT GetSwitches->switches EventLinkRequest
Link: Port<dpid=72800193147, port_no=2, LIVE> to Port<dpid=72800193275, 
port_no=2, LIVE>
{'src': {'hw_addr': '56:49:93:8e:9d:07', 'name': 's2-eth2', 'port_no': 
'00000002', 'dpid': '00000010f33aca7b'}, 'dst': {'hw_addr': 
'1a:5c:08:9b:87:b9', 'name': 's1-eth2', 'port_no': '00000002', 'dpid': 
'00000010f33acafb'}}
connected socket:<eventlet.greenio.base.GreenSocket object at 0x7fadde99a5d0> 
address:('127.0.0.1', 51234)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fadde9b84d0>
move onto config mode
EVENT ofp_event->dpset EventOFPSwitchFeatures
switch features ev version: 0x4 msg_type 0x6 xid 0xb001325c 
OFPSwitchFeatures(auxiliary_id=0,capabilities=71,datapath_id=72800193289,n_buffers=256,n_tables=254)
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
EVENT ofp_event->dpset EventOFPStateChange
<ryu.controller.controller.Datapath object at 0x7fadde97fc10>
register Switch<dpid=72800193289, Port<dpid=72800193289, port_no=1, LIVE> 
Port<dpid=72800193289, port_no=2, LIVE> Port<dpid=72800193289, port_no=3, LIVE> 
>
DPSET: register datapath <ryu.controller.controller.Datapath object at 
0x7fadde97fc10>
EVENT dpset->GetSwitches EventDP
Datapath entered, id 72800193289
EVENT GetSwitches->switches EventSwitchRequest
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
EVENT ofp_event->switches EventOFPPacketIn
Switch : Switch<dpid=72800193289, Port<dpid=72800193289, port_no=1, LIVE> 
Port<dpid=72800193289, port_no=2, LIVE> Port<dpid=72800193289, port_no=3, LIVE> 
>
Ports :
{'hw_addr': 'ae:df:2c:18:35:eb', 'name': 's3-eth1', 'port_no': '00000001', 
'dpid': '00000010f33acb09'}
{'hw_addr': '0a:67:70:5a:75:e0', 'name': 's3-eth2', 'port_no': '00000002', 
'dpid': '00000010f33acb09'}
{'hw_addr': '06:63:94:1c:cd:dd', 'name': 's3-eth3', 'port_no': '00000003', 
'dpid': '00000010f33acb09'}
Links :
EVENT GetSwitches->switches EventLinkRequest
Link: Port<dpid=72800193289, port_no=3, LIVE> to Port<dpid=72800193275, 
port_no=3, LIVE>
Link: Port<dpid=72800193289, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=3, LIVE>
{'src': {'hw_addr': '0a:67:70:5a:75:e0', 'name': 's3-eth2', 'port_no': 
'00000002', 'dpid': '00000010f33acb09'}, 'dst': {'hw_addr': 
'5e:5a:bd:1b:96:c8', 'name': 's2-eth3', 'port_no': '00000003', 'dpid': 
'00000010f33aca7b'}}
{'src': {'hw_addr': '06:63:94:1c:cd:dd', 'name': 's3-eth3', 'port_no': 
'00000003', 'dpid': '00000010f33acb09'}, 'dst': {'hw_addr': 
'a6:9b:e3:00:5c:44', 'name': 's1-eth3', 'port_no': '00000003', 'dpid': 
'00000010f33acafb'}}
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=2, LIVE> to Port<dpid=72800193275, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=3, LIVE> to Port<dpid=72800193275, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=2, LIVE> to Port<dpid=72800193275, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=3, LIVE> to Port<dpid=72800193275, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=2, LIVE> to Port<dpid=72800193275, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=3, LIVE> to Port<dpid=72800193275, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=2, LIVE> to Port<dpid=72800193275, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=3, LIVE> to Port<dpid=72800193275, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=2, LIVE> to Port<dpid=72800193275, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=3, LIVE> to Port<dpid=72800193275, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193289, port_no=2, LIVE> to Port<dpid=72800193147, 
port_no=3, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193147, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=72800193275, port_no=3, LIVE> to Port<dpid=72800193289, 
port_no=3, LIVE>

Attachment: GetSwitches.py
Description: GetSwitches.py

root@aeh4lab-HP-ZBook-15-G2:/home/aeh4lab/ryu# PYTHONATH= ./bin/ryu-manager 
--observe-links --verbose ryu/app/GetSwitches.py 
loading app ryu/app/GetSwitches.py
require_app: ryu.topology.switches is required by GetSwitches
loading app ryu.controller.dpset
loading app ryu.topology.switches
loading app ryu.controller.ofp_handler
instantiating app ryu.topology.switches of Switches
instantiating app ryu/app/GetSwitches.py of GetSwitches
instantiating app ryu.controller.dpset of DPSet
instantiating app ryu.controller.ofp_handler of OFPHandler
BRICK switches
  CONSUMES EventSwitchRequest
  CONSUMES EventOFPPacketIn
  CONSUMES EventHostRequest
  CONSUMES EventLinkRequest
  CONSUMES EventOFPPortStatus
  CONSUMES EventOFPStateChange
BRICK dpset
  PROVIDES EventDP TO {'GetSwitches': set(['main'])}
  CONSUMES EventOFPSwitchFeatures
  CONSUMES EventOFPStateChange
  CONSUMES EventOFPPortStatus
BRICK ofp_event
  PROVIDES EventOFPPacketIn TO {'switches': set(['main'])}
  PROVIDES EventOFPStateChange TO {'switches': set(['main', 'dead']), 'dpset': 
set(['main', 'dead'])}
  PROVIDES EventOFPPortStatus TO {'switches': set(['main']), 'dpset': 
set(['main'])}
  PROVIDES EventOFPSwitchFeatures TO {'dpset': set(['config'])}
  CONSUMES EventOFPSwitchFeatures
  CONSUMES EventOFPErrorMsg
  CONSUMES EventOFPPortDescStatsReply
  CONSUMES EventOFPEchoRequest
  CONSUMES EventOFPHello
BRICK GetSwitches
  CONSUMES EventDP
connected socket:<eventlet.greenio.base.GreenSocket object at 0x7fe0ef90a850> 
address:('192.168.2.3', 58734)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fe0ef922050>
move onto config mode
EVENT ofp_event->dpset EventOFPSwitchFeatures
switch features ev version: 0x4 msg_type 0x6 xid 0xf5bfcbf9 
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=176156460727908,n_buffers=256,n_tables=254)
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
EVENT ofp_event->dpset EventOFPStateChange
<ryu.controller.controller.Datapath object at 0x7fe0ef90ac10>
/usr/local/lib/python2.7/dist-packages/ryu/topology/switches.py:543: 
UserWarning: Datapath#ports is kept for compatibility with the previous 
openflow versions (< 1.3). This not be updated by EventOFPPortStatus message. 
If you want to be updated, you can use 'ryu.controller.dpset' or 
'ryu.topology.switches'.
  for port in dp.ports.values():
register Switch<dpid=176156460727908, Port<dpid=176156460727908, port_no=1, 
LIVE> Port<dpid=176156460727908, port_no=2, LIVE> >
DPSET: register datapath <ryu.controller.controller.Datapath object at 
0x7fe0ef90ac10>
EVENT dpset->GetSwitches EventDP
Datapath entered, id 176156460727908
EVENT GetSwitches->switches EventSwitchRequest
Switch : Switch<dpid=176156460727908, Port<dpid=176156460727908, port_no=1, 
LIVE> Port<dpid=176156460727908, port_no=2, LIVE> >
Ports :
{'hw_addr': 'a0:36:9f:44:3e:64', 'name': 'p4p1', 'port_no': '00000001', 'dpid': 
'0000a0369f443e64'}
{'hw_addr': 'a0:36:9f:44:3e:65', 'name': 'p4p2', 'port_no': '00000002', 'dpid': 
'0000a0369f443e64'}
Links :
EVENT GetSwitches->switches EventLinkRequest
connected socket:<eventlet.greenio.base.GreenSocket object at 0x7fe0ef90a950> 
address:('192.168.2.1', 43116)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fe0ef9229d0>
move onto config mode
EVENT ofp_event->dpset EventOFPSwitchFeatures
switch features ev version: 0x4 msg_type 0x6 xid 0xf6cf202 
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=176156460728108,n_buffers=256,n_tables=254)
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
EVENT ofp_event->dpset EventOFPStateChange
<ryu.controller.controller.Datapath object at 0x7fe0ef90ac90>
register Switch<dpid=176156460728108, Port<dpid=176156460728108, port_no=1, 
LIVE> Port<dpid=176156460728108, port_no=2, LIVE> >
DPSET: register datapath <ryu.controller.controller.Datapath object at 
0x7fe0ef90ac90>
EVENT dpset->GetSwitches EventDP
Datapath entered, id 176156460728108
EVENT GetSwitches->switches EventSwitchRequest
Switch : Switch<dpid=176156460728108, Port<dpid=176156460728108, port_no=1, 
LIVE> Port<dpid=176156460728108, port_no=2, LIVE> >
Ports :
{'hw_addr': 'a0:36:9f:44:3f:2c', 'name': 'p4p1', 'port_no': '00000001', 'dpid': 
'0000a0369f443f2c'}
{'hw_addr': 'a0:36:9f:44:3f:2d', 'name': 'p4p2', 'port_no': '00000002', 'dpid': 
'0000a0369f443f2c'}
Links :
EVENT GetSwitches->switches EventLinkRequest
connected socket:<eventlet.greenio.base.GreenSocket object at 0x7fe0ef90af50> 
address:('192.168.2.2', 39224)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fe0ef944110>
move onto config mode
EVENT ofp_event->dpset EventOFPSwitchFeatures
switch features ev version: 0x4 msg_type 0x6 xid 0x604c09e3 
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=176156460727788,n_buffers=256,n_tables=254)
move onto main mode
EVENT ofp_event->switches EventOFPStateChange
EVENT ofp_event->dpset EventOFPStateChange
<ryu.controller.controller.Datapath object at 0x7fe0ef922710>
register Switch<dpid=176156460727788, Port<dpid=176156460727788, port_no=1, 
LIVE> Port<dpid=176156460727788, port_no=2, LIVE> >
DPSET: register datapath <ryu.controller.controller.Datapath object at 
0x7fe0ef922710>
EVENT dpset->GetSwitches EventDP
Datapath entered, id 176156460727788
EVENT GetSwitches->switches EventSwitchRequest
Switch : Switch<dpid=176156460727788, Port<dpid=176156460727788, port_no=1, 
LIVE> Port<dpid=176156460727788, port_no=2, LIVE> >
Ports :
{'hw_addr': 'a0:36:9f:44:3d:ec', 'name': 'p4p1', 'port_no': '00000001', 'dpid': 
'0000a0369f443dec'}
{'hw_addr': 'a0:36:9f:44:3d:ed', 'name': 'p4p2', 'port_no': '00000002', 'dpid': 
'0000a0369f443dec'}
Links :
EVENT GetSwitches->switches EventLinkRequest
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460728108, port_no=2, LIVE> to Port<dpid=176156460727788, 
port_no=1, LIVE>
EVENT ofp_event->switches EventOFPPacketIn
Link: Port<dpid=176156460727788, port_no=1, LIVE> to Port<dpid=176156460728108, 
port_no=2, LIVE>

Attachment: topo_loop.py
Description: topo_loop.py

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to