Open alrukav opened 7 years ago
In ops-switchd-container-plugin, STP is implemented using Linux bridge (bridge-sim):
root@switch:~# ip netns exec swns ip link
...
4: bridge-sim: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 70:72:cf:6b:31:a8 brd ff:ff:ff:ff:ff:ff
...
80: 1@if2: <BROADCAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue master bridge-sim state UP mode DEFAULT group default qlen 1000
link/ether 70:72:cf:6b:31:a8 brd ff:ff:ff:ff:ff:ff link-netnsid 0
With this configuration STP is not working properly (storm is observed). VLANs are not working also (https://github.com/MERAprojects/ops-build/issues/17).
Instead of using linux bridge, it is possible to enable STP on OpenVswitch. It can be done with following command:
/opt/openvswitch/bin/ovs-vsctl set bridge bridge_normal stp_enable=true
I have tried to do it, but faced with a problem with port recreation on OpenVswitch in configuration with 3 DUTs - this should be investigated. Traffic storm is not observed in this case, but due to deletion/creation, ports are constantly changing their STP state listerning-learning and traffic is lost.
OpenVswitch is used in ops-switchd-container-plugin as HW simulation. On real HW (e.g., ops-switchd-opennsl-plugin), ASIC plugin is responsible for MAC learning, STP... So, ASIC plugin should be implemented in ops-switchd-container-plugin. This implementation should fix issue https://github.com/MERAprojects/ops-build/issues/29 and https://github.com/MERAprojects/ops-build/issues/16
Problem Description:
Traffic storm is visible on blocked by STP link.
OpenSwitch version:
Version OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170209151505-dev)
Test Topology:
Steps to reproduce the problem:
NOK: ping is absent.
STP_storm.txt STP_storm_issue.zip