软件定义网络(Software Defined Network,SDN)架构是使用软件编写代码的方式构建网络,实现控制转发平面分离,并对控制平面实现集中管理。生成树协议(Spanning Tree Protocol,STP)是交换式网络的环路避免协议,通过生成树算法(Spanning Tree Algorithm,STA),将带有环路的物理拓扑中某台设备的接口设置为阻塞状态,构建逻辑无环拓扑。该文通过Python代码编制网络拓扑文件和RYU控制器文件的方式,实施SDN中的网络环路设计,按照STA算法设计和实现STP环路避免,并在仿真实验平台运行,测试结果表明,实现了SDN网络中环路避免。
Design and Implementation of STP Loop Avoidance in SDN Networks
Software-defined network(SDN)architecture is to build a network by coding software,to sepa-rate the control and forwarding planes,and to centrally manage the control planes.Spanning Tree Protocol(STP)is a loop-avoiding protocol for switched networks.By using STA algorithm,the interface of a device in a physical topology with a loop is set to block,and a logical acyclic topology is constructed.In this paper,by compiling network topology files and RYU controller files in Python code,the network loop design in SDN is implemented,and STP loop avoidance is designed and realized according to STA algo-rithm,and is run on the simulation experiment platform.The analysis of test results show that the loop avoidance in SDN is realized.