Hi,

The cause of this problem seems that the difference of OFPT_PORT_STATUS message
behavior between Open vSwitch(OVS) and Lagopus.

Then, does the following patch fix this problem?

$ git diff
diff --git a/ryu/lib/stplib.py b/ryu/lib/stplib.py
index de3cced..beb68e1 100644
--- a/ryu/lib/stplib.py
+++ b/ryu/lib/stplib.py
@@ -297,6 +297,11 @@ class Stp(app_manager.RyuApp):
                  bridge.port_delete(port.port_no)
              else:
                  assert reason is dp.ofproto.OFPPR_MODIFY
+                if bridge.dp.ports[port.port_no].state == port.state:
+                    # Do nothing
+                    self.logger.debug('[port=%d] Link status not changed.',
+                                      port.port_no, extra=dpid_str)
+                    return
                  if link_down_flg:
                      self.logger.info('[port=%d] Link down.',
                                       port.port_no, extra=dpid_str)


To Ryu team, the problem details are below:

simple_switch_stp_13.py supposed OVS on Mininet and was implemented for 
Ryu-Book example.
   http://osrg.github.io/ryu-book/en/html/spanning_tree.html

In case of OVS, OFPT_PORT_STATUS messages will be NOT sent when the port config 
has changed
and only sent when the port state has changed.
OTOH, in case of Lagopus, OFPT_PORT_STATUS messages will be sent when both port 
state and
config have changed.
Therefore, simple_switch_stp_13.py will overproduce the topology recalculation 
events.

According to OpenFlow Spec 1.3.5,  OFPT_PORT_STATUS messages with the reason 
value
OFPPR_MODIFY should be sent the BOTH port state and config have changed.
So, the behavior of Lagopus is correct and we should fix stplib.py as the 
above, I think.


Thanks,
Iwase

On 2016年07月11日 15:46, Hong Panha wrote:
> Hi everyone !
>
>
> I am doing experiment with lagopus and ryu now on my two mini-server which 
> both of them running ubuntu 14.04LTS, Lagopus 0.2.6 , Ryu 3.25 and intel dpdk 
> 2.2.0. when i try to run simple_switch_stp_13.py with ryu-manager, it’s not 
> function well.  Please refer to the attachment file which consist of Lagopus 
> setting and log from ryu- manager.
>
> I am looking forward to hearing back from you.
>
> Best Regards,
> Hong Panha
>
> =
>
>
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to