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
> 

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

Reply via email to