CN108156004A - SDN controllers and switch management method - Google Patents
SDN controllers and switch management method Download PDFInfo
- Publication number
- CN108156004A CN108156004A CN201611102048.9A CN201611102048A CN108156004A CN 108156004 A CN108156004 A CN 108156004A CN 201611102048 A CN201611102048 A CN 201611102048A CN 108156004 A CN108156004 A CN 108156004A
- Authority
- CN
- China
- Prior art keywords
- switch
- information
- snmp
- port
- congestion control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000007726 management method Methods 0.000 title claims abstract description 31
- 238000011217 control strategy Methods 0.000 claims description 33
- 238000000034 method Methods 0.000 claims description 31
- 238000012545 processing Methods 0.000 claims description 31
- 230000002159 abnormal effect Effects 0.000 abstract description 3
- 230000003993 interaction Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000002716 delivery method Methods 0.000 description 1
- 238000005206 flow analysis Methods 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本实施例公开了一种软件定义网络SDN控制器及交换机管理方法,所述SDN控制器包括:简单网络管理协议SNMP管理单元,用于基于SNMP协议与交换机进行信息交互,从所述交换获取的网络拓扑;所述SNMP单元,还用于从所述交换机读取基于所述SNMP获取的设备状态信息;其中,所述设备状态信息包括端口信息和/或流量统计信息。所述SDN控制器通过SNMP管理单元的设置,基于SNMP协议将与交换机基于SNMP进行信息交互,从而获得遵照SNMP协议的网络拓扑及设备状态信息,从而解决了依据openflow协议获取网络拓扑导致的交换机内部流表异常时,无法正常获得网络拓扑的问题。
This embodiment discloses a software-defined network SDN controller and a switch management method. The SDN controller includes: a simple network management protocol SNMP management unit, which is used to perform information interaction with the switch based on the SNMP protocol. Network topology; the SNMP unit is further configured to read, from the switch, device status information acquired based on the SNMP; wherein the device status information includes port information and/or traffic statistics information. The SDN controller, through the setting of the SNMP management unit, will exchange information with the switch based on SNMP based on the SNMP protocol, so as to obtain network topology and device status information complying with the SNMP protocol, thus solving the internal problem of the switch caused by obtaining the network topology according to the openflow protocol. When the flow table is abnormal, the network topology cannot be obtained normally.
Description
技术领域technical field
本发明涉及网络技术领域,尤其涉及一种软件定义网络(Software DefinedNetwork,SDN)控制器及交换机管理方法。The present invention relates to the field of network technology, in particular to a software defined network (Software Defined Network, SDN) controller and a switch management method.
背景技术Background technique
在现有的SDN控制器将利用开放流openflow协议,管理交换机。例如,利用openflow协议从交换机读取网络拓扑,将从交换机读取到基于openflow封装有网络拓扑的数据包。此时,若交换机内部的流表出现错误、被改写都会导致网络拓扑无法被SDN控制器正确接收。例外,openflow能够获取的交换机的状态信息很少,若SDN控制器需要对交换机的状态信息,对交换机等交换机进行更进一步的控制,例如,实现数据包的转发路径控制、实现拥塞控制或流量调优,这些状态信息都是无法满足控制要求或精确控制要求的。故确保交换机的网络拓扑和/或设备状态信息正常上报SDN控制器,是现有技术需要进一步解决的问题。The existing SDN controller will use the OpenFlow protocol to manage the switches. For example, the openflow protocol is used to read the network topology from the switch, and the data packet encapsulated with the network topology based on openflow will be read from the switch. At this time, if the flow table inside the switch is wrong or rewritten, the network topology cannot be correctly received by the SDN controller. Exceptions, openflow can obtain very little switch status information. If the SDN controller needs to further control the switch status information, such as switches, for example, to realize data packet forwarding path control, congestion control or traffic regulation Excellent, these status information cannot meet the control requirements or precise control requirements. Therefore, ensuring that the network topology and/or device status information of the switch is normally reported to the SDN controller is a problem that needs to be further solved in the prior art.
发明内容Contents of the invention
有鉴于此,本发明实施例期望提供一种SDN控制器及交换机管理方法,至少部分解决上述问题。In view of this, the embodiments of the present invention expect to provide an SDN controller and a switch management method, which at least partially solve the above problems.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:
本实施例第一方面提供一种软件定义网络SDN控制器,包括:The first aspect of this embodiment provides a software-defined network SDN controller, including:
简单网络管理协议SNMP管理单元,用于基于SNMP协议与交换机进行信息交互,从所述交换获取的网络拓扑;Simple Network Management Protocol SNMP management unit, used to exchange information with the switch based on the SNMP protocol, and obtain the network topology from the switch;
所述SNMP单元,还用于从所述交换机读取基于所述SNMP获取的设备状态信息;The SNMP unit is also used to read the device status information obtained based on the SNMP from the switch;
所述设备状态信息包括端口信息和/或流量统计信息。The device status information includes port information and/or traffic statistics information.
基于上述方案,所述SDN控制器还包括:Based on the above scheme, the SDN controller also includes:
处理单元,用于获取路径切换策略和/或拥塞控制策略,其中,所述路径切换策略或所述拥塞控制策略,是基于所述端口信息和/或流量统计信息生成的;a processing unit, configured to acquire a path switching policy and/or a congestion control policy, wherein the path switching policy or the congestion control policy is generated based on the port information and/or traffic statistics;
下发单元,与所述处理单元连接,用于将所述转发策略和/或所述拥塞控制策略下发给所述交换机。A sending unit, connected to the processing unit, configured to send the forwarding policy and/or the congestion control policy to the switch.
基于上述方案,所述下发单元,为支持开放流openflow协议的单元,用于通过运行openflow插件,将所述路径切换策略和/或拥塞控制策略,发送给所述交换机。Based on the above solution, the sending unit is a unit supporting the openflow protocol, and is configured to send the path switching policy and/or congestion control policy to the switch by running an openflow plug-in.
基于上述方案,所述处理单元,用于当端口带宽平均利用率大于预设门限时,获取所述路径切换策略和/或拥塞控制策略。Based on the above solution, the processing unit is configured to acquire the path switching strategy and/or the congestion control strategy when the average port bandwidth utilization rate is greater than a preset threshold.
基于上述方案,所述处理单元,具体用于接收当所述端口带宽平均利用率大于预设门限时形成的拥塞告警;当接收到所述拥塞告警时,自动生成所述路径切换策略和/或拥塞控制策略;或,当生成所述拥塞告警时,输出切换提示;并基于所述切换提示形成的操作指示,生成所述路径切换策略和/或拥塞控制策略。Based on the above solution, the processing unit is specifically configured to receive a congestion alarm formed when the average bandwidth utilization of the port is greater than a preset threshold; when receiving the congestion alarm, automatically generate the path switching strategy and/or A congestion control strategy; or, when the congestion alarm is generated, outputting a switching prompt; and generating the path switching strategy and/or congestion control strategy based on an operation instruction formed by the switching prompt.
基于上述方案,所述SNMP单元,还用于将所述设备状态信息,转换成表现层状态RESTful协议支持的展示信息;Based on the above solution, the SNMP unit is further configured to convert the device state information into display information supported by the presentation layer state RESTful protocol;
所述SDN控制器还包括:The SDN controller also includes:
输出单元,用于与所述SNMP单元连接,输出所述展示信息。an output unit, configured to connect with the SNMP unit, and output the display information.
基于上述方案,所述SNMP单元,还用于将所述设备状态信息,转换成表现层状态RESTful协议支持的展示信息,并将所述展示信息发送给展示服务器;所述展示信息用于所述服务器显示。Based on the above solution, the SNMP unit is further configured to convert the device state information into display information supported by the presentation layer state RESTful protocol, and send the display information to the display server; the display information is used for the The server is displayed.
基于上述方案,所述网络拓扑包括所述交换机与其他设备的连接路径;Based on the above solution, the network topology includes connection paths between the switch and other devices;
所述连接路径包括所述交换机的本机设备标识、本机连接端口、对端设备标识及对端设备端口标识。The connection path includes a local device identifier, a local connection port, a peer device identifier, and a peer device port identifier of the switch.
本发明实施例第二方面提供一种交换机管理方法,包括:The second aspect of the embodiment of the present invention provides a switch management method, including:
基于简单网络管理协议SNMP与交换机进行信息交互,以从所述交换机获取网络拓扑;Exchanging information with the switch based on the simple network management protocol SNMP, so as to obtain the network topology from the switch;
基于所述SNMP,从所述交换机获取设备状态信息;Obtaining device status information from the switch based on the SNMP;
所述设备状态信息包括端口信息和/或流量统计信息。The device status information includes port information and/or traffic statistics information.
基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:
获取路径切换策略和/或拥塞控制策略,其中,所述路径切换策略或所述拥塞控制策略,是基于所述端口信息和/或流量统计信息生成的;Obtaining a path switching policy and/or a congestion control policy, wherein the path switching policy or the congestion control policy is generated based on the port information and/or traffic statistics;
将所述路径切换策略和/或所述拥塞控制策略,下发给所述交换机。Sending the path switching policy and/or the congestion control policy to the switch.
基于上述方案,所述将所述路径切换策略和/或所述拥塞控制策略,下发给所述交换机,包括:Based on the above solution, the sending the path switching policy and/or the congestion control policy to the switch includes:
通过运行支持开放流openflow协议的openflow插件,将所述路径切换策略和/或拥塞控制策略,发送给所述交换机。Send the path switching policy and/or congestion control policy to the switch by running an openflow plug-in supporting the OpenFlow protocol.
基于上述方案,所述将所述路径切换策略和/或所述拥塞控制策略,下发给所述交换机,包括:Based on the above solution, the sending the path switching policy and/or the congestion control policy to the switch includes:
当端口带宽平均利用率大于预设门限时,获取所述路径切换策略和/或拥塞控制策略。When the average port bandwidth utilization is greater than a preset threshold, the path switching policy and/or congestion control policy is obtained.
基于上述方案,所述当端口带宽平均利用率大于预设门限时,获取所述路径切换策略和/或拥塞控制策略,包括:Based on the above solution, when the average port bandwidth utilization is greater than a preset threshold, acquiring the path switching strategy and/or congestion control strategy includes:
接收当所述端口带宽平均利用率大于预设门限时形成的拥塞告警;receiving a congestion alarm formed when the average bandwidth utilization of the port is greater than a preset threshold;
当接收到所述拥塞告警时,自动生成所述路径切换策略和/或拥塞控制策略;When receiving the congestion warning, automatically generate the path switching strategy and/or congestion control strategy;
或,or,
当生成所述拥塞告警时,输出切换提示;并基于所述切换提示形成的操作指示,生成所述路径切换策略和/或拥塞控制策略。When the congestion warning is generated, a switching prompt is output; and based on an operation instruction formed by the switching prompt, the path switching policy and/or congestion control policy is generated.
基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:
将所述设备状态信息,转换成表现层状态RESTful协议支持的展示信息;Converting the device status information into display information supported by the presentation layer status RESTful protocol;
输出所述展示信息。Output the displayed information.
基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:
将所述设备状态信息,转换成表现层状态RESTful协议支持的展示信息;Converting the device status information into display information supported by the presentation layer status RESTful protocol;
将所述展示信息发送给展示服务器;所述展示信息用于所述服务器显示。Send the display information to a display server; the display information is used for display by the server.
基于上述方案,所述网络拓扑包括所述交换机与其他设备的连接路径;Based on the above solution, the network topology includes connection paths between the switch and other devices;
所述连接路径包括所述交换机的本机设备标识、本机连接端口、对端设备标识及对端设备端口标识。The connection path includes a local device identifier, a local connection port, a peer device identifier, and a peer device port identifier of the switch.
本发明实施例一种SDN控制器及交换机管理方法,所述SDN控制器通过SNMP管理单元的设置,基于SNMP协议将与交换机基于SNMP进行信息交互,从而获得遵照SNMP协议的网络拓扑,从而解决了依据openflow协议获取网络拓扑导致的交换机内部流表异常时,无法正常获得网络拓扑的问题。The embodiment of the present invention is an SDN controller and a switch management method. The SDN controller will exchange information with the switch based on SNMP based on the SNMP protocol through the setting of the SNMP management unit, so as to obtain a network topology that complies with the SNMP protocol, thereby solving the problem of When the network topology is obtained according to the openflow protocol, the internal flow table of the switch is abnormal, and the network topology cannot be obtained normally.
附图说明Description of drawings
图1为本发明实施例提供的一种SDN控制器的结构示意图;FIG. 1 is a schematic structural diagram of an SDN controller provided by an embodiment of the present invention;
图2为本发明实施例提供的一种网络拓扑示意图;FIG. 2 is a schematic diagram of a network topology provided by an embodiment of the present invention;
图3为本发明实施例提供的一种交换机管理方法的流程示意图;FIG. 3 is a schematic flowchart of a switch management method provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种交换机管理方法的流程示意图;FIG. 4 is a schematic flowchart of another switch management method provided by an embodiment of the present invention;
图5为本发明实施例提供的另一种网络拓扑示意图;FIG. 5 is a schematic diagram of another network topology provided by an embodiment of the present invention;
图6为本发明实施例提供的又一种网络拓扑示意图。FIG. 6 is a schematic diagram of another network topology provided by an embodiment of the present invention.
具体实施方式Detailed ways
以下结合说明书附图及具体实施例对本发明的技术方案做进一步的详细阐述。The technical solutions of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
如图1所示,本实施例提供一种软件定义网络SDN控制器,包括:As shown in Figure 1, this embodiment provides a software-defined network SDN controller, including:
简单网络管理协议SNMP管理单元110,用于基于SNMP协议与交换机进行信息交互,从所述交换获取的网络拓扑;Simple Network Management Protocol SNMP management unit 110, configured to exchange information with the switch based on the SNMP protocol, and obtain the network topology from the switch;
所述SNMP单元110,还用于从所述交换机读取基于所述SNMP获取的设备状态信息;其中,所述设备状态信息包括端口信息和/或流量统计信息。。The SNMP unit 110 is further configured to read, from the switch, device status information obtained based on the SNMP; wherein the device status information includes port information and/or traffic statistics information. .
本实施例提供了一种SDN控制器,该SDN控制器包括SNMP管理单元110,这里的SNMP管理单元110为基于SNMP对交换机进行管理。所述SNMP管理单元110,可运行根据SNMP开发的SNMP插件。所述SNMP为Simple Network Management Protocol的缩写。利用SNMP与交换机进行信息交互,从而可以从交换机接收的是基于SNMP发送的数据包,从而获得所述网络拓扑。这里的网拓扑信息为该交换机与其他设备的连接链路信息。通常所述交换机可运行链路层发现协议(Link Layer Discovery Protocol,LLDP)进行网络拓扑发现。在本实施例中所述交换机还将会运行SNMP,与所述SDN控制器进行信息交互,从而将利用LLDP协议获取的网络拓扑,以SNMP支持的数据包发送给SDN控制器。这样的话,网络拓扑的转发不再依赖于流开放openflow协议的流表,即便流表出现故障或被改写,所述SDN控制器依然能够获取所述网络拓扑,方便所述SDN控制器根据所述网络拓扑进行交换机的转发控制等。This embodiment provides an SDN controller, and the SDN controller includes an SNMP management unit 110, where the SNMP management unit 110 manages switches based on SNMP. The SNMP management unit 110 can run SNMP plug-ins developed according to SNMP. The SNMP is an abbreviation of Simple Network Management Protocol. SNMP is used to exchange information with the switch, so that the data packets sent from the switch can be received based on SNMP, so as to obtain the network topology. The network topology information here is the connection link information between the switch and other devices. Usually, the switch can run a link layer discovery protocol (Link Layer Discovery Protocol, LLDP) to discover the network topology. In this embodiment, the switch will also run SNMP to exchange information with the SDN controller, so as to send the network topology obtained by using the LLDP protocol to the SDN controller in a data packet supported by SNMP. In this way, the forwarding of the network topology no longer depends on the flow table of the openflow protocol. Even if the flow table fails or is rewritten, the SDN controller can still obtain the network topology, so that the SDN controller can obtain the network topology according to the The network topology performs forwarding control of the switch, etc.
所述SNMP管理单元110可对对应于处理器及与处理器连接的通信端口,所述处理器可运行所述SNMP插件,所述通信端口可基于所述处理器运行所述SNMP插件产生的指令,与所述交换机基于SNMP进行信息交互,至少可获得所述网络拓扑。The SNMP management unit 110 can correspond to the processor and the communication port connected to the processor, the processor can run the SNMP plug-in, and the communication port can run the instructions generated by the SNMP plug-in based on the processor , and exchange information with the switch based on SNMP, and at least obtain the network topology.
在具体实现时,所述SDN控制器还可包括处理单元,该处理单元可对应于处理器。在本实施例中所述处理器可包括中央处理器、微处理器、数字信号处理器、可编程阵列或应用处理器等各种形式的处理器。所述处理电路可包括专用集成电路。所述处理器或处理电路均可通过预定指令的执行,实现上述SNMP单元或处理单元的功能。在本实施例中所述处理单元可用于进行信息解析及信息输出控制等操作。In a specific implementation, the SDN controller may further include a processing unit, where the processing unit may correspond to a processor. The processor in this embodiment may include various forms of processors such as a central processing unit, a microprocessor, a digital signal processor, a programmable array, or an application processor. The processing circuitry may include an application specific integrated circuit. The processor or the processing circuit can realize the function of the above-mentioned SNMP unit or processing unit through the execution of predetermined instructions. In this embodiment, the processing unit may be used to perform operations such as information analysis and information output control.
所述设备状态信息可包括:设备软件版本信息、设备上电运行时间、设备名称和位置信息、中央处理器CPU的使用率、CPU中各进程资源占用率、内存使用率、电源工作状态、散热风扇运行状态以及日志信息等,各种可以反映所述交换机设备和/或端口的历史及当前运行状态的信息。这些信息的获取,有利于所述SDN控制器进行路由决策等操作。在本实施例中由SNMP支持的SNMP单元,基于SNMP获取设备状态信息,相对于侧重流表转发的openflow协议获取的设备状态信息,具有获取的设备状态信息种类更多,信息量更大及更全面的特点。The device status information may include: device software version information, device power-on running time, device name and location information, CPU usage rate of the central processing unit, resource usage rate of each process in the CPU, memory usage rate, power supply status, heat dissipation Fan running status and log information, etc., various information that can reflect the history and current running status of the switch device and/or port. Acquisition of such information is beneficial for the SDN controller to perform operations such as routing decisions. In this embodiment, the SNMP unit supported by SNMP obtains device status information based on SNMP. Compared with the device status information obtained by the openflow protocol that focuses on flow table forwarding, it has more types of device status information, and the amount of information is larger and more accurate. Comprehensive features.
具体地如,所述设备状态信息包括端口信息和/或流量统计信息。所述端口信息可包括端口状态信息。所述端口状态信息可用于表征对应端口是否处于工作状态、闲忙状态及是否处于正常状态等端口状态的至少一种。此外所述端口信息还可包括端口属性信息,所述端口属性信息可博阿凯所述端口的(Max Translation Unite,MTU)配置信息、端口带宽、端口传输速率等表征端口属性的信息。所述MTU配置信息可用于限定端口每次传输的最大报文长度。Specifically, for example, the device status information includes port information and/or traffic statistics information. The port information may include port status information. The port state information may be used to represent at least one of port states such as whether the corresponding port is in a working state, idle or busy state, and whether it is in a normal state. In addition, the port information may also include port attribute information, and the port attribute information may include information representing port attributes such as Max Translation Unite (MTU) configuration information of the port, port bandwidth, and port transmission rate. The MTU configuration information can be used to limit the maximum packet length transmitted by the port each time.
所述流量统计信息可包括对端口的传输统计,可包括端口发送的报文数量统计、报文数据量统计,发送的不同长度报文的数量统计,接收的不同长度报文的数量统、循环冗余校验(Cyclic Redundancy Check,CRC)错包数量统计,丢包数量统计等各种与流量关联的统计信息。The traffic statistics information may include statistics on the transmission of the port, may include statistics on the number of packets sent by the port, statistics on the amount of packet data, statistics on the number of packets of different lengths sent, and statistics on the number of packets of different lengths received. Redundancy check (Cyclic Redundancy Check, CRC) error packet statistics, packet loss statistics and other statistical information associated with traffic.
通过这些信息的设备状态信息的获取,所述SDN控制器可以根据端口状态及流量统计,确定是否需要分流,是否需要路径切换。故在本实施例中,所述SDN控制器还包括:处理单元120,用于获取路径切换策略和/或拥塞控制策略,其中,所述路径切换策略或所述拥塞控制策略,是基于所述端口信息和/或流量统计信息生成的;下发单元130,与所述处理单元连接,用于将所述转发策略和/或所述拥塞控制策略下发给所述交换机。Through the acquisition of the device status information of these information, the SDN controller can determine whether traffic distribution and path switching are required according to the port status and traffic statistics. Therefore, in this embodiment, the SDN controller further includes: a processing unit 120, configured to acquire a path switching strategy and/or a congestion control strategy, wherein the path switching strategy or the congestion control strategy is based on the The port information and/or traffic statistics information is generated; the sending unit 130 is connected to the processing unit and configured to send the forwarding policy and/or the congestion control policy to the switch.
这里的处理单元120可对应于处理器或处理电路,可以根据端口信息和/或流量统计,确定出路径切换策略、拥塞控制策略及切换提示的至少之一,所述路径切换策略用于进行路径切换,通过路径切换可以分流,可以将部分过于拥堵路径上的流量切换到比较闲的路径上进行转发,从而实现转发的负载均衡,减少部分路径拥堵,而部分路径闲置的现象,从而整体上提升网络传输的顺畅并降低时延。所述拥塞控制策略可用于进行拥塞控制,具体可包括拥塞控制方式,所述拥塞控制方式可包括尾丢弃方式,通过丢弃一个传输队列中的尾部数据包,缓解拥塞。所述拥塞控制方式还可包括加权随机早期探测(WeightedRandom Early Detected,WRED)方式,通过调整所述WRED方式的丢弃阈值和丢包率,可以实现拥塞控制的调整等。The processing unit 120 here may correspond to a processor or a processing circuit, and may determine at least one of a path switching strategy, a congestion control strategy, and a switching prompt according to port information and/or traffic statistics, and the path switching strategy is used to perform path switching. Switching, through path switching, traffic can be shunted, and some traffic on overly congested paths can be switched to relatively idle paths for forwarding, so as to achieve forwarding load balancing, reduce the phenomenon that some paths are congested, and some paths are idle, thereby improving overall Smooth network transmission and reduced delay. The congestion control strategy may be used for congestion control, and specifically may include a congestion control method, and the congestion control method may include a tail drop method, which relieves congestion by discarding tail data packets in a transmission queue. The congestion control method may also include a weighted random early detected (Weighted Random Early Detected, WRED) method, by adjusting the discarding threshold and packet loss rate of the WRED method, adjustment of congestion control, etc. may be realized.
所述下发单元,为支持开放流openflow协议的单元,用于通过运行openflow插件,将所述路径切换策略和/或拥塞控制策略,发送给所述交换机。The sending unit is a unit supporting the openflow protocol, and is used to send the path switching strategy and/or congestion control strategy to the switch by running an openflow plug-in.
下发单元利用openflow协议下发送所述路径切换策略和/或拥塞控制策略,这样的话,将会将所述路径切换策略和/或拥塞控制策略承载在流表中,以流表的形式下发到交换机,这样的话,交换机在执行所述路径切换策略和/或所述拥塞控制策略时,仅需要查询流表执行对应的操作即可,减少交换机查询的信息种类,简化了交换机的工作,与现有技术的兼容性强。The sending unit uses the openflow protocol to send the path switching strategy and/or congestion control strategy, in this case, the path switching strategy and/or congestion control strategy will be carried in the flow table and delivered in the form of flow table To the switch, in this case, when the switch executes the path switching strategy and/or the congestion control strategy, it only needs to query the flow table to perform the corresponding operation, which reduces the types of information that the switch queries, simplifies the work of the switch, and The existing technology has strong compatibility.
所述处理单元120,用于当端口带宽平均利用率大于预设门限时,获取所述路径切换策略和/或拥塞控制策略。例如,所述处理单元120,可具体用于根据流量统计信息,获取端口带宽平均利用率;当所述端口带宽平均利用率大于预设门限时,获取所述路径切换策略和/或拥塞控制策略。The processing unit 120 is configured to obtain the path switching policy and/or congestion control policy when the average port bandwidth utilization rate is greater than a preset threshold. For example, the processing unit 120 may be specifically configured to obtain the average port bandwidth utilization rate according to traffic statistics; and obtain the path switching strategy and/or congestion control strategy when the port bandwidth average utilization rate is greater than a preset threshold .
在本实施例中,所述处理单元120可根据流量统计,得到端口的端口平均带宽利用率。例如,将端口流量统计与端口速率进行除法运算,得到端口利用率。再利用时间滑窗,统计某预定时长内的带宽平均利用率。所述时间滑窗为时间长度一定的时间窗口,所述时间窗口按照预设步长,在时间维度上进行滑动。当滑动的时间长度达到所述预定时长时,将会获得M个端口利用率,在计算这M端口利用率的平均值。所述M等于所述预定时长除以预设步长。In this embodiment, the processing unit 120 may obtain the port average bandwidth utilization rate of the port according to traffic statistics. For example, divide the port traffic statistics by the port rate to obtain the port utilization. Then use the time sliding window to calculate the average bandwidth utilization rate within a predetermined period of time. The time sliding window is a time window with a certain time length, and the time window slides in the time dimension according to a preset step size. When the sliding time length reaches the predetermined time length, M port utilization rates will be obtained, and an average value of the M port utilization rates is calculated. The M is equal to dividing the predetermined duration by a preset step.
当所述端口带宽平均利用率大于预设门限,说明当前端口比较拥堵,可能需触发路径切换策略或拥塞控制策略的生成。在本实施例中,当所述端口带宽平均利用率大于预设门限,将生成所述路径切换策略及拥塞控制策略的至少其中之一。When the average bandwidth utilization rate of the port is greater than the preset threshold, it indicates that the current port is relatively congested, and it may be necessary to trigger generation of a path switching strategy or a congestion control strategy. In this embodiment, when the average port bandwidth utilization rate is greater than a preset threshold, at least one of the path switching policy and the congestion control policy will be generated.
在一些实施例中,所述端口带宽平均利用率,可以由所述处理单元120自动计算生成的,也可以是所述处理单元120将所述端口信息和/或流量信息发送给其他设备,例如网页服务器,由其他设备生成的,所述处理单元120再根据从其他设备生成的端口带宽平均利用率,生成所述路径切换策略或拥塞控制策略。In some embodiments, the port bandwidth average utilization rate may be automatically calculated and generated by the processing unit 120, or the processing unit 120 may send the port information and/or flow information to other devices, for example The web server is generated by other devices, and the processing unit 120 generates the path switching strategy or congestion control strategy according to the average port bandwidth utilization generated by other devices.
所述处理单元120,具体用于接收当所述端口带宽平均利用率大于预设门限时形成的拥塞告警;当接收到所述拥塞告警时,自动生成所述路径切换策略和/或拥塞控制策略,或当生成所述拥塞告警时,输出切换提示;并基于所述切换提示形成的操作指示,生成所述路径切换策略和/或拥塞控制策略。The processing unit 120 is specifically configured to receive a congestion alarm formed when the average port bandwidth utilization is greater than a preset threshold; when receiving the congestion alarm, automatically generate the path switching strategy and/or congestion control strategy , or when the congestion alarm is generated, outputting a switching prompt; and generating the path switching policy and/or congestion control policy based on the operation instruction formed by the switching prompt.
例如,SDN控制器,将所述状态信息上报给了网页WEB服务器,WEB服务器进行数据处理,在当所述端口带宽平均利用率大于预设门限时生成拥塞告警,并将所述拥塞告警发送给SDN控制器,SDN控制器根据拥塞告警,将生成所述路径切换策略或所述拥塞控制策略。在本实施例中,所述处理单元120压根就不会去计算得到端口带宽平均利用率,而是仅存储在WEB服务器中等设备中。生成所述路径切换策略和/或拥塞控制策略的方法有多种,例如,所述SDN控制器,基于内置指令自动生成;当然也可以是所述SDN控制器输出拥塞告警,并接收管理人员手动输入的切换指示或控制指示,从而生成所述路径切换策略和/或拥塞控制策略。当然,所述SDN控制器还可以根据所述设备状态信息,在确定出那一条路径拥塞时,定位出备选路径或可优化路径,输出切换提示,再接收管理人员基于所述切换提示输入的操作指示,并最终根据所述操作指示,生成所述路径切换策略和/或所述拥塞控制策略。For example, the SDN controller reports the status information to the webpage WEB server, and the WEB server performs data processing, generates a congestion alarm when the average utilization rate of the port bandwidth is greater than a preset threshold, and sends the congestion alarm to The SDN controller, the SDN controller will generate the path switching strategy or the congestion control strategy according to the congestion alarm. In this embodiment, the processing unit 120 does not calculate the average utilization rate of the port bandwidth at all, but only stores it in a device such as a WEB server. There are many ways to generate the path switching strategy and/or congestion control strategy. For example, the SDN controller automatically generates based on built-in instructions; of course, the SDN controller can also output a congestion alarm and receive the administrator's manual The input switching instruction or control instruction, so as to generate the path switching strategy and/or congestion control strategy. Of course, the SDN controller can also locate an alternative path or an optimizable path when determining which path is congested according to the device state information, output a switching prompt, and then receive the information input by the administrator based on the switching prompt. an operation instruction, and finally generate the path switching strategy and/or the congestion control strategy according to the operation instruction.
所述切换提示包括提示交换机可以将其中某一条路径上的数据包,通过其他路径转发或有其他更优的替换路径。当SDN控制器输出所述切换提示之后,管理人员看到之后,会确定是否接受替换,从而输入对应的操作指示,以便生成所述路径切换策略或拥塞控制策略等。The switching prompt includes prompting that the switch can forward the data packet on one of the paths through other paths or have other better alternative paths. After the SDN controller outputs the switching prompt, the manager will determine whether to accept the replacement after seeing it, and then input a corresponding operation instruction, so as to generate the path switching strategy or congestion control strategy.
在本实施例中,所述SNMP单元110,还可用于将所述设备状态信息,转换成表现层状态RESTful协议支持的展示信息;所述SDN控制器还包括:In this embodiment, the SNMP unit 110 can also be used to convert the device state information into display information supported by the presentation layer state RESTful protocol; the SDN controller also includes:
输出单元,用于与所述SNMP单元110连接,输出所述展示信息。an output unit, configured to connect with the SNMP unit 110, and output the display information.
在本实施中所述输出单元可对应于各种显示屏幕,能够显示所述展示信息,这里的展示信息可为所述设备状态信息中需要展示给管理人员看的信息。具体地如,所述输出单元在网页上输出所述展示信息。当然,所述输出单元还可以在预定软件的应用界面内输出所述展示信息。In this implementation, the output unit may correspond to various display screens, and can display the display information, where the display information may be information that needs to be displayed to managers in the device status information. Specifically, for example, the output unit outputs the display information on a web page. Certainly, the output unit may also output the presentation information in an application interface of predetermined software.
在有些实施中,所述SNMP单元110,还用于将所述设备状态信息,转换成表现层状态RESTful协议支持的展示信息,并将所述展示信息发送给展示服务器;所述展示信息用于所述服务器显示。在本实施例中所述SDN控制器,自身并不直接输出所述展示信息,而是将所述展示信息发送给展示服务器,由展示服务器输出。例如,所述展示服务器通过网页输出,此时,所述展示服务器又可称之为WEB服务器。当然,在具体实现时,所述SNMP单元110可将所有设备状态信息,发送给展示服务器。所述展示服务器展示之外,可用于计算所述端口带宽平均利用率,还可用于生成所述拥塞告警等处理。In some implementations, the SNMP unit 110 is further configured to convert the device state information into display information supported by the presentation layer state RESTful protocol, and send the display information to the display server; the display information is used for The server is displayed. In this embodiment, the SDN controller itself does not directly output the presentation information, but sends the presentation information to the presentation server, and the presentation server outputs it. For example, the display server outputs through a webpage, and at this time, the display server may also be called a WEB server. Of course, during specific implementation, the SNMP unit 110 may send all device status information to the presentation server. In addition to displaying by the display server, it can be used to calculate the average utilization rate of the port bandwidth, and can also be used to generate the congestion alarm and other processing.
在一些实施例中,所述网络拓扑包括所述交换机与其他设备的连接路径;In some embodiments, the network topology includes connection paths between the switch and other devices;
所述连接路径包括所述交换机的本机设备标识、本机连接端口、对端设备标识及对端设备端口标识。The connection path includes a local device identifier, a local connection port, a peer device identifier, and a peer device port identifier of the switch.
在本实施例中所述网络拓扑包括任意一个连接的两个连接端,而且包括两个连接端的各自的连接端口,这样的话,在定位故障时,可以具体将故障定位到端口和设备,从而实现精确故障定位。In this embodiment, the network topology includes two connection ends of any connection, and includes the respective connection ports of the two connection ends. In this way, when locating a fault, the fault can be specifically located to the port and the device, thereby realizing Precise fault location.
在具体实现,为了简化所述网络拓扑的表示,可以利用数组进行表示,一个数组表示一个连接,一个数组包括两个元素,每一个元素中都包括设备号和端口号。In specific implementation, in order to simplify the representation of the network topology, an array may be used for representation. An array represents a connection, and an array includes two elements, and each element includes a device number and a port number.
图2是一个本地设备与多个其他设备的网络拓扑图,以下为利用数组表示图2所示网络拓扑的示例:Figure 2 is a network topology diagram of a local device and multiple other devices. The following is an example of using an array to represent the network topology shown in Figure 2:
[(本地设备标识(Identity,ID)、本地设备端口号)、(对端设备ID_1、对端设备端口号)][(Local device identification (Identity, ID), local device port number), (peer device ID_1, peer device port number)]
[(本地设备ID、本地设备端口号)、(对端设备ID_2、对端设备端口号)][(local device ID, local device port number), (peer device ID_2, peer device port number)]
[(本地设备ID、本地设备端口号)、(对端设备ID_3、对端设备端口号)][(local device ID, local device port number), (peer device ID_3, peer device port number)]
[(本地设备ID、本地设备端口号)、(对端设备ID_4、对端设备端口号)]。[(local device ID, local device port number), (peer device ID_4, peer device port number)].
如图3所示,本实施例提供一种交换机管理方法,包括:As shown in Figure 3, this embodiment provides a switch management method, including:
步骤S110:基于简单网络管理协议SNMP与交换机进行信息交互,以从所述交换机获取网络拓扑;步骤S120:基于所述SNMP,从所述交换机获取设备状态信息,其中,所述设备状态信息包括端口信息和/或流量统计信息。Step S110: exchange information with the switch based on the Simple Network Management Protocol SNMP to obtain the network topology from the switch; step S120: obtain device status information from the switch based on the SNMP, wherein the device status information includes port information and/or traffic statistics.
本实施例提供的交换机管理方法为应用于SDN控制器中的信息处理方法。在本实施例中所述步骤S110为可通过运行SNMP插件基于SNMP协议从交换机获取网络拓扑信息。在步骤S120中可以将基于SNMP与交换机进行信息交互,获得设备状态信息。The switch management method provided in this embodiment is an information processing method applied to an SDN controller. In the step S110 in this embodiment, the network topology information can be obtained from the switch based on the SNMP protocol by running the SNMP plug-in. In step S120, information may be exchanged with the switch based on SNMP to obtain device status information.
这里id的获取网络拓扑可包括:所述交换机运行SNMP,会将网络拓扑基于SNMP封装成数据包,将数据包发送给SDN控制器,这样的话,所述SDN控制器将获取SNMP封装的网络拓扑,就不用基于openflow协议获取所述网络拓扑,从而可以避免所述交换机内部流表出现异常时,无法获取网络拓扑的现象。Here, obtaining the network topology of the id may include: the switch runs SNMP, encapsulates the network topology into a data packet based on SNMP, and sends the data packet to the SDN controller. In this case, the SDN controller will obtain the network topology encapsulated by SNMP , it is not necessary to obtain the network topology based on the openflow protocol, thereby avoiding the phenomenon that the network topology cannot be obtained when the internal flow table of the switch is abnormal.
在本实施例中所述步骤S110和步骤S120之间没有一定的先后顺序,可以如图3中先执行步骤S110,再执行步骤S120。所述步骤S110和步骤S120也可以同步执行,也可以先执行步骤S120和步骤S110。在具体实现时,为了减少SDN控制器与交换机之间的信息交互,所述网络拓扑和所述设备状态信息一同从交换机获取。In this embodiment, there is no certain sequence between step S110 and step S120, step S110 may be executed first as shown in FIG. 3 , and then step S120 may be executed. The step S110 and the step S120 may also be executed synchronously, or the step S120 and the step S110 may be executed first. During specific implementation, in order to reduce information interaction between the SDN controller and the switch, the network topology and the device status information are acquired from the switch together.
在本实施例中还通过所述SNMP,从交换机获取设备状态信息。这里的设备状态信息的详细内容可以参见前述实施例,再次就不重复说明了。In this embodiment, the device status information is obtained from the switch through the SNMP. For details of the device status information here, reference may be made to the foregoing embodiments, and repeated descriptions will not be repeated here.
在具体的实现过程中,所述网络拓扑和所述设备状态信息,可有所述SDN控制器分别从所述交换机接收,也可以是同时接收的,具体如图4所示,在步骤S120中同步接收所述网络状态与端口信息和/或流量统计信息。In a specific implementation process, the network topology and the device state information may be received by the SDN controller from the switch respectively, or may be received at the same time, as shown in Figure 4, in step S120 Synchronously receive the network status and port information and/or traffic statistics information.
进一步地,如图4所示,所述方法还包括:步骤S130:获取路径切换策略和/或拥塞控制策略,其中,所述路径切换策略或所述拥塞控制策略,是基于所述端口信息和/或流量统计信息生成的;Further, as shown in FIG. 4, the method further includes: Step S130: Obtaining a path switching strategy and/or a congestion control strategy, wherein the path switching strategy or the congestion control strategy is based on the port information and / or generated by traffic statistics;
步骤S140:将所述路径切换策略和/或所述拥塞控制策略,下发给所述交换机。Step S140: Deliver the path switching policy and/or the congestion control policy to the switch.
在本实施例中所述SDN控制器,可自动生成路径切换策略或拥塞控制策略,将并路径切换策略和/或拥塞控制策略发送给交换机,从而控制交换机内的报文转发及拥塞控制。In this embodiment, the SDN controller can automatically generate a path switching policy or a congestion control policy, and send the path switching policy and/or congestion control policy to the switch, thereby controlling message forwarding and congestion control in the switch.
在一些实施中,所述步骤S140可包括:In some implementations, the step S140 may include:
通过运行支持开放流openflow协议的openflow插件,将所述路径切换策略和/或拥塞控制策略,发送给所述交换机。Send the path switching policy and/or congestion control policy to the switch by running an openflow plug-in supporting the OpenFlow protocol.
在本实施例中利用openflow插件,基于openflow协议向交换机下发所述路径切换策略和/或拥塞控制策略,例如,以流表的形式下发,从而减少交换机存储的信息类型,方便交换机通过查询流表就能够完成与转发相关的各种操作,简化交换机的查询操作。In this embodiment, the openflow plug-in is used to issue the path switching strategy and/or congestion control strategy to the switch based on the openflow protocol, for example, in the form of a flow table, thereby reducing the type of information stored by the switch and facilitating the query by the switch The flow table can complete various operations related to forwarding and simplify the query operation of the switch.
在还有一些实施例中,所述步骤S140可包括:In still some embodiments, the step S140 may include:
当端口带宽平均利用率大于预设门限时,获取所述路径切换策略和/或拥塞控制策略。When the average port bandwidth utilization is greater than a preset threshold, the path switching policy and/or congestion control policy is obtained.
在本实施例中所述路径切换策略和/或拥塞控制策略,是在端口带宽平均利用率大于预设门限时发送的。这里的端口带宽平均利用率,可以将多个小时间段的端口带宽利用率求均值得到的,也可以利用如前述实施例提到的,利用滑动时间窗计算得到的,以提升表征端口带宽利用率的精确度。In this embodiment, the path switching policy and/or the congestion control policy are sent when the average port bandwidth utilization rate is greater than a preset threshold. The average port bandwidth utilization here can be obtained by averaging the port bandwidth utilization in multiple small time periods, or can be calculated by using the sliding time window as mentioned in the previous embodiment to improve the performance of port bandwidth utilization. rate accuracy.
在有些实施例中,所述步骤S140可包括:In some embodiments, the step S140 may include:
接收当所述端口带宽平均利用率大于预设门限时形成的拥塞告警;receiving a congestion alarm formed when the average bandwidth utilization of the port is greater than a preset threshold;
当接收到所述拥塞告警时,自动生成所述路径切换策略和/或拥塞控制策略;或,当生成所述拥塞告警时,输出切换提示;并基于所述切换提示形成的操作指示,生成所述路径切换策略和/或所述拥塞控制策略。When the congestion warning is received, automatically generate the path switching strategy and/or congestion control strategy; or, when the congestion warning is generated, output a switching prompt; and based on the operation instruction formed by the switching prompt, generate the The path switching strategy and/or the congestion control strategy.
在本实施例中所述SDN控制器可以将所述设备状态信息发送给WEB服务器等设备。所述WEB服务器可以计算所述端口带宽平均利用率,并将所述端口带宽平均利用率大于预设门限时,形成拥塞告警;并将所述拥塞告警告发送给SDN控制器,这样的SDN控制器可以接收到所述拥塞告警。当所述SDN控制器,将会自动生成路径切换策略和/或拥塞控制策略,或则输出切换提示,这里的切换提示的输出,将检测管理人员基于切换提示输入的操作指示,并基于操作指示,可以生成所述路径切换策略和/或拥塞控制策略。In this embodiment, the SDN controller may send the device state information to a device such as a WEB server. The WEB server can calculate the average utilization rate of the port bandwidth, and when the average utilization rate of the port bandwidth is greater than a preset threshold, a congestion alarm is formed; and the congestion alarm is sent to the SDN controller, such SDN control The device can receive the congestion warning. When the SDN controller will automatically generate a path switching strategy and/or congestion control strategy, or output a switching prompt, the output of the switching prompt here will detect the operation instruction input by the manager based on the switching prompt, and based on the operation instruction , the path switching policy and/or congestion control policy may be generated.
在一些实施例中,所述方法还包括:In some embodiments, the method also includes:
将所述设备状态信息,转换成表现层状态RESTful协议支持的展示信息;Converting the device status information into display information supported by the presentation layer status RESTful protocol;
输出所述展示信息。Output the display information.
在本实施例中SDN会将SNMP获取的设备状态信息,然后通过协议转换,将数据转换成RESTful协议支持的展示信息,并输出所述展示信息。所述输出可以为显示输出或语音输出。例如,利用网页显示所述展示信息,这样方便管理人员查看。In this embodiment, the SDN converts the device status information acquired by SNMP into display information supported by the RESTful protocol through protocol conversion, and outputs the display information. The output may be a display output or a voice output. For example, a web page is used to display the display information, which is convenient for managers to view.
在一些实施例中,所述方法还包括:In some embodiments, the method also includes:
将所述设备状态信息,转换成表现层状态RESTful协议支持的展示信息;Converting the device status information into display information supported by the presentation layer status RESTful protocol;
将所述展示信息发送给展示服务器;所述展示信息用于所述服务器显示。Send the display information to a display server; the display information is used for display by the server.
在本实施例中转换后的展示信息,发送给展示服务器,由展示服务器来输出,供管理人员查看。所述展示服务器可以通过网页输出所述展示信息,故所述展示服务器又可称之为WEB服务器。In this embodiment, the converted display information is sent to the display server, and is output by the display server for viewing by managers. The display server can output the display information through a webpage, so the display server can also be called a WEB server.
在一些实施例中,所述网络拓扑包括所述交换机与其他设备的连接路径;所述连接路径包括所述交换机的本机设备标识、本机连接端口、对端设备标识及对端设备端口标识。In some embodiments, the network topology includes a connection path between the switch and other devices; the connection path includes a local device identifier, a local connection port, a peer device identifier, and a peer device port identifier of the switch .
在本实施例中所述网络拓扑会同时包括:连接的两个设备的设备标识以及连接的端口标识,这样的话,在进行故障定位时就能够定位到哪一个设备故障及该设备的哪个端口故障。这里的设备可包括前述交换机。In this embodiment, the network topology will include: the device identifiers of the two connected devices and the connected port identifiers. In this way, which device is faulty and which port of the device is faulty can be located when fault location is performed. . The equipment here may include the aforementioned switch.
以下结合上述任意一个实施例提供几个具体示例:Several specific examples are provided below in conjunction with any of the above-mentioned embodiments:
示例一:Example one:
如图5所示,本示例提供一种网络系统,包括:openflow交换机、与所述openflow连接的SDN控制器、与SDN控制器连接的WEB服务器。所述WEB服务器运行有WEB浏览器。As shown in FIG. 5 , this example provides a network system, including: an openflow switch, an SDN controller connected to the openflow, and a WEB server connected to the SDN controller. The WEB server runs a WEB browser.
所述SDN控制器内运行有openflow插件和SNMP插件。所述openflow交换机运行LLDP和SNMP,从而会获取网络拓扑和设备状态信息,并将所述网络拓扑和设备状态信息,上报给所述SNMP插件,所述SNMP插件,实现数据对应的SNMP到RESTful协议的转换,并将转换后的数据发送给WEB服务器,所述WEB服务器基于超文本传输协议http,控制WEB浏览器展示对应的信息。所述SNMP插件与所述openflow插件连接,将路径切换策略或指令,以及拥塞控制策略或指令,按照openflow协议,以流表的形式下发给openflow交换机。The SDN controller runs an openflow plug-in and an SNMP plug-in. The openflow switch runs LLDP and SNMP, thereby obtaining network topology and device status information, and reporting the network topology and device status information to the SNMP plug-in, and the SNMP plug-in implements the SNMP-to-RESTful protocol corresponding to the data conversion, and send the converted data to the WEB server, and the WEB server controls the WEB browser to display corresponding information based on the hypertext transfer protocol http. The SNMP plug-in is connected with the openflow plug-in, and sends the path switching strategy or instruction and the congestion control strategy or instruction to the openflow switch in the form of a flow table according to the openflow protocol.
示例二:Example two:
本示例基于示例一提供的网络系统,提出一种交换机管理方法包括:This example proposes a switch management method based on the network system provided in Example 1, including:
第一步:openflow交换机网络拓扑实现The first step: openflow switch network topology implementation
步骤1:Openflow交换机开启LLDP和SNMP;Step 1: Open LLDP and SNMP on the Openflow switch;
步骤2:SDN控制器通过SNMP读取openflow交换机的信息,读取的信息包括:(1)openflow交换机的本地设备标识(Identity,ID);(2)本地设备端口号;(3)与本地设备连接的所有对端设备ID;(4)所有对端设备端口号;将读到的信息按照[(本地ID、本地端口号)、(对端ID、对端端口号)]格式组成数组。Step 2: the SDN controller reads the information of the openflow switch through SNMP, and the read information includes: (1) the local device identification (Identity, ID) of the openflow switch; (2) the port number of the local device; (3) the connection with the local device IDs of all connected peer devices; (4) port numbers of all peer devices; the read information is formed into an array in the format of [(local ID, local port number), (peer ID, peer port number)].
第二步:设备状态信息监控,设备基本信息监控是对拓扑中的每台设备进行监控,监控得到的基本设备状态信息可包括:设备软件版本信息、设备上电运行时间、设备名称和位置信息、CPU各进程资源占用率、内存使用率、交换机电源模块工作状态、交换机散热风扇运行状态、日志信息等。Step 2: Device status information monitoring. Basic device information monitoring is to monitor each device in the topology. The basic device status information obtained from monitoring can include: device software version information, device power-on running time, device name and location information , CPU resource usage of each process, memory usage, switch power module working status, switch cooling fan running status, log information, etc.
这些信息通过RESTful接口传递到WEB服务器,并最终呈现在WEB页面上。The information is passed to the WEB server through the RESTful interface, and finally presented on the WEB page.
设备状态信息监控还可包括:设备端口的监控及流量分析。设备端口监控是对网络拓扑中所有设备所有端口的状态和流量监控,监控得到的端口信息包括:端口上线/离线状态、端口MTU配置、端口发送的不同长度报文数量统计、端口接收的不同长度报文数量统计、CRC错包数量统计以及丢包数量统计等。The device status information monitoring may also include: device port monitoring and flow analysis. Device port monitoring is to monitor the status and traffic of all ports of all devices in the network topology. The monitored port information includes: port online/offline status, port MTU configuration, statistics on the number of packets of different lengths sent by the port, and different lengths received by the port. Statistics on the number of packets, CRC error packets, and lost packets, etc.
第三步:根据监控的信息,进行拥塞告警和转发路径切换。Step 3: Carry out congestion warning and forwarding path switching according to the monitored information.
拥塞告警和转发路径切换,可包括如下步骤:Congestion alarm and forwarding path switching may include the following steps:
WEB服务器通过SNMP获取openflow交换机的端口发包计数,然后除以端口速率得到端口带宽利用率:The WEB server obtains the port packet count of the openflow switch through SNMP, and then divides it by the port rate to obtain the port bandwidth utilization:
WEB服务器用滑窗方式统计一定时间的端口带宽平均利用率;The WEB server uses the sliding window method to count the average port bandwidth utilization rate for a certain period of time;
设定带宽利用率告警门限,当平均带宽利用率超过门限值,触发SNMP告警,上报SDN控制器;Set the bandwidth utilization rate alarm threshold. When the average bandwidth utilization rate exceeds the threshold value, an SNMP alarm is triggered and reported to the SDN controller;
SDN控制器得到告警通过RESTful接口显示在WEB网管界面上;The SDN controller gets an alarm and displays it on the WEB network management interface through the RESTful interface;
同时,SDN控制器通过openflow协议重新下发流表,实现转发路径切换。At the same time, the SDN controller re-delivers the flow table through the openflow protocol to realize forwarding path switching.
图6所示为一个交换机的网络拓扑示意图,在图6中包括有交换机1至交换机7,交换机1与交换机3连接形成路径A,交换机1和交换机6连接形成路径B;交换机3分别与交换机4和交换机5连接,形成路径C和路径D;交换机6与交换机7连接,交换机7与交换及2连接。其中,虚线路径表示忙路径,实线路径表示不忙的路径。Figure 6 shows a network topology diagram of a switch, including switch 1 to switch 7 in Figure 6, switch 1 is connected to switch 3 to form path A, switch 1 is connected to switch 6 to form path B; switch 3 is connected to switch 4 respectively It is connected with switch 5 to form path C and path D; switch 6 is connected with switch 7, and switch 7 is connected with switch and 2. Wherein, the dotted-line path indicates a busy path, and the solid-line path indicates a non-busy path.
结合图6所示网络拓扑,提供一个路径切换示例:Combined with the network topology shown in Figure 6, an example of path switching is provided:
在交换机1上有两条路径达到交换机2,分别是路径A和路径B;在交换机3上同样由两条路径达到交换机2,,分别是路径C和路径D;在openflow交换机1上的流表中有两条优先级不同的匹配项,比如优先级,路径A高于路径B、路径C高于路径D。On switch 1, there are two paths to switch 2, which are path A and path B; on switch 3, there are also two paths to switch 2, which are path C and path D; the flow table on openflow switch 1 There are two matches with different priorities in , for example, path A is higher than path B, and path C is higher than path D.
当SDN控制器得到某条链路平均带宽利用率超过设定门限,触发告警,并显示在WEB网页上,以通知用户。同时SDN控制器通过openflow插件重新配置流表。流表的配置和下发方式可包括以下两种:When the SDN controller obtains that the average bandwidth utilization of a certain link exceeds the set threshold, it triggers an alarm and displays it on the WEB page to notify the user. At the same time, the SDN controller reconfigures the flow table through the openflow plug-in. The configuration and delivery methods of the flow table can include the following two methods:
流表自动下发:当发现交换机1的A口出现拥塞告警,就自动配置新的流表将流量切换到B口,不经过人工确认;同样当交换机3的C口出现拥塞告警,自动切换转发路径到D口。这里的B口连接形成前述路径B,C口连接形成路径C,D口连接形成路径D。The flow table is automatically issued: when a congestion alarm occurs on port A of switch 1, a new flow table is automatically configured to switch the traffic to port B without manual confirmation; similarly, when a congestion alarm occurs on port C of switch 3, the forwarding is automatically switched Path to port D. The B port connection here forms the aforementioned path B, the C port connection forms the path C, and the D port connection forms the path D.
流表人工下发:当某路径路出现拥塞告警,SDN控制器并不自动下发,而是提示有优选路径或备选路径,让运维人员根据实际网络情况,选择是否切换,并重新下发流表。Manual distribution of flow tables: When a congestion alarm occurs on a certain path, the SDN controller does not automatically distribute it, but prompts that there is a preferred path or an alternative path, allowing the operation and maintenance personnel to choose whether to switch according to the actual network situation, and download it again. Send flow table.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention can be integrated into one processing module, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the Including the steps of the foregoing method embodiments; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc. A medium on which program code can be stored.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611102048.9A CN108156004A (en) | 2016-12-02 | 2016-12-02 | SDN controllers and switch management method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611102048.9A CN108156004A (en) | 2016-12-02 | 2016-12-02 | SDN controllers and switch management method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108156004A true CN108156004A (en) | 2018-06-12 |
Family
ID=62469378
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611102048.9A Pending CN108156004A (en) | 2016-12-02 | 2016-12-02 | SDN controllers and switch management method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108156004A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110719194A (en) * | 2019-09-12 | 2020-01-21 | 中国联合网络通信集团有限公司 | A method and device for analyzing network data |
| CN111817886A (en) * | 2020-06-29 | 2020-10-23 | 新华三信息安全技术有限公司 | Method and equipment for acquiring management object data |
| CN112152862A (en) * | 2020-10-16 | 2020-12-29 | 中国联合网络通信集团有限公司 | A hybrid network topology acquisition method, SDN controller and SDN switch |
| CN113904984A (en) * | 2021-10-21 | 2022-01-07 | 杭州志卓科技股份有限公司 | Data transmission method suitable for SAP and B2B systems |
| WO2022194023A1 (en) * | 2021-03-16 | 2022-09-22 | 华为技术有限公司 | Packet processing method, network device, and controller |
| CN115834390A (en) * | 2022-11-24 | 2023-03-21 | 中国农业银行股份有限公司 | Network link capacity management method, device, equipment and medium |
| CN116614403A (en) * | 2023-04-28 | 2023-08-18 | 深圳市九牛一毛智能物联科技有限公司 | IDC switch monitoring method, device, system and computer equipment |
| WO2024021878A1 (en) * | 2022-07-29 | 2024-02-01 | 华为技术有限公司 | Method for sending load information, method for sending message, and apparatus |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104468219A (en) * | 2014-12-11 | 2015-03-25 | 杭州华三通信技术有限公司 | Virtual networking network topology discovery method and device |
| CN104486253A (en) * | 2014-12-11 | 2015-04-01 | 北京百度网讯科技有限公司 | Network bandwidth scheduling method and system |
| CN104601482A (en) * | 2013-10-30 | 2015-05-06 | 中兴通讯股份有限公司 | Traffic cleaning method and device |
| US20150236918A1 (en) * | 2014-02-15 | 2015-08-20 | Aricent Holdings Luxembourg S.à.r.l | Method and system for creating single snmp table for multiple openflow tables |
| CN105429886A (en) * | 2015-10-30 | 2016-03-23 | 南京优速网络科技有限公司 | Comprehensive unified flow scheduling system and scheduling method based on SDN |
| CN105490944A (en) * | 2014-09-19 | 2016-04-13 | 中国电信股份有限公司 | Reporting method of user event in SDN and network system |
| CN105743795A (en) * | 2014-12-29 | 2016-07-06 | 瞻博网络公司 | Point-to-multipoint path computation for wide area network optimization |
| CN105763394A (en) * | 2016-03-22 | 2016-07-13 | 杭州华三通信技术有限公司 | Method, device and system for detecting network link |
| CN105791151A (en) * | 2014-12-22 | 2016-07-20 | 华为技术有限公司 | Dynamic flow control method and device |
-
2016
- 2016-12-02 CN CN201611102048.9A patent/CN108156004A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104601482A (en) * | 2013-10-30 | 2015-05-06 | 中兴通讯股份有限公司 | Traffic cleaning method and device |
| US20150236918A1 (en) * | 2014-02-15 | 2015-08-20 | Aricent Holdings Luxembourg S.à.r.l | Method and system for creating single snmp table for multiple openflow tables |
| CN105490944A (en) * | 2014-09-19 | 2016-04-13 | 中国电信股份有限公司 | Reporting method of user event in SDN and network system |
| CN104468219A (en) * | 2014-12-11 | 2015-03-25 | 杭州华三通信技术有限公司 | Virtual networking network topology discovery method and device |
| CN104486253A (en) * | 2014-12-11 | 2015-04-01 | 北京百度网讯科技有限公司 | Network bandwidth scheduling method and system |
| CN105791151A (en) * | 2014-12-22 | 2016-07-20 | 华为技术有限公司 | Dynamic flow control method and device |
| CN105743795A (en) * | 2014-12-29 | 2016-07-06 | 瞻博网络公司 | Point-to-multipoint path computation for wide area network optimization |
| CN105429886A (en) * | 2015-10-30 | 2016-03-23 | 南京优速网络科技有限公司 | Comprehensive unified flow scheduling system and scheduling method based on SDN |
| CN105763394A (en) * | 2016-03-22 | 2016-07-13 | 杭州华三通信技术有限公司 | Method, device and system for detecting network link |
Non-Patent Citations (3)
| Title |
|---|
| 张咏悦: "《SDN网络管理系统的设计与实现》", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
| 朱创录: ""SNMP 管理模型下的网络流量监视与控制"", 《计算机技术与发展》 * |
| 网友: ""netflow与snmp问题"", 《HTTPS://BBS.51CTO.COM/THREAD-937524-1.HTML》 * |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110719194A (en) * | 2019-09-12 | 2020-01-21 | 中国联合网络通信集团有限公司 | A method and device for analyzing network data |
| CN110719194B (en) * | 2019-09-12 | 2022-04-12 | 中国联合网络通信集团有限公司 | A method and device for analyzing network data |
| CN111817886A (en) * | 2020-06-29 | 2020-10-23 | 新华三信息安全技术有限公司 | Method and equipment for acquiring management object data |
| CN111817886B (en) * | 2020-06-29 | 2023-12-26 | 新华三信息安全技术有限公司 | Method and equipment for acquiring management object data |
| CN112152862A (en) * | 2020-10-16 | 2020-12-29 | 中国联合网络通信集团有限公司 | A hybrid network topology acquisition method, SDN controller and SDN switch |
| CN112152862B (en) * | 2020-10-16 | 2023-04-07 | 中国联合网络通信集团有限公司 | Topology acquisition method of hybrid network, SDN controller and SDN switch |
| WO2022194023A1 (en) * | 2021-03-16 | 2022-09-22 | 华为技术有限公司 | Packet processing method, network device, and controller |
| CN113904984A (en) * | 2021-10-21 | 2022-01-07 | 杭州志卓科技股份有限公司 | Data transmission method suitable for SAP and B2B systems |
| WO2024021878A1 (en) * | 2022-07-29 | 2024-02-01 | 华为技术有限公司 | Method for sending load information, method for sending message, and apparatus |
| CN115834390A (en) * | 2022-11-24 | 2023-03-21 | 中国农业银行股份有限公司 | Network link capacity management method, device, equipment and medium |
| CN116614403A (en) * | 2023-04-28 | 2023-08-18 | 深圳市九牛一毛智能物联科技有限公司 | IDC switch monitoring method, device, system and computer equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108156004A (en) | SDN controllers and switch management method | |
| US10623293B2 (en) | Systems and methods for dynamic operations, administration, and management | |
| CN103001887B (en) | A kind of link keep-alive method, controller and interchanger | |
| US10819583B2 (en) | Network device management method and apparatus | |
| US20220239572A1 (en) | Data Processing Method, Device, and System | |
| US20130329565A1 (en) | Systems and methods for operational simplification of carrier ethernet networks | |
| CN103081410B (en) | Communication quality monitoring system, communication quality monitoring method | |
| CN106537840B (en) | System and method for network device management | |
| US10623313B2 (en) | Path computation method, message responding method, and related device | |
| CN102882705B (en) | Method for reporting log through terminal equipment and log reporting system | |
| KR20140106235A (en) | Open-flow switch and packet manageing method thereof | |
| US9077625B2 (en) | Apparatus and method for controlling a transmission interval of maintenance packets in a communication network | |
| CN103416022B (en) | Throughput testing approach and system in service in distribution router/exchange board structure | |
| JP2006501717A (en) | Telecom network element monitoring | |
| JP2012054622A (en) | Network system, management server and oam test management method | |
| CN103152210A (en) | Method for repairing spanning tree protocol (STP) forwarding state abnormalities and stacking equipment | |
| US9641355B2 (en) | Communication device, communication method, and program | |
| Phemius et al. | Implementing OpenFlow-based resilient network services | |
| CN116346634A (en) | State-aware information processing method, device and electronic equipment for network management and control system | |
| JP6118464B2 (en) | Port status synchronization method, related device, and system | |
| CN113055197B (en) | Network energy efficiency management method and device and computer readable storage medium | |
| WO2014113957A1 (en) | Link management method, device and communication system | |
| CN117579540A (en) | Network end-to-end deterministic control system, method and storage medium | |
| KR101802037B1 (en) | Method and system of transmitting oam message for service function chaining in software defined network environment | |
| CN115118619A (en) | Network monitoring method, device, electronic device, medium and program product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180612 |
|
| RJ01 | Rejection of invention patent application after publication |