CN115348153B - Control method, device, equipment and storage medium of forwarding equipment - Google Patents
Control method, device, equipment and storage medium of forwarding equipment Download PDFInfo
- Publication number
- CN115348153B CN115348153B CN202210972748.2A CN202210972748A CN115348153B CN 115348153 B CN115348153 B CN 115348153B CN 202210972748 A CN202210972748 A CN 202210972748A CN 115348153 B CN115348153 B CN 115348153B
- Authority
- CN
- China
- Prior art keywords
- forwarding
- network control
- link
- forwarding device
- state information
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000012544 monitoring process Methods 0.000 claims abstract description 45
- 238000001514 detection method Methods 0.000 claims description 122
- 230000004044 response Effects 0.000 claims description 72
- 230000013011 mating Effects 0.000 claims 3
- 238000004891 communication Methods 0.000 abstract description 41
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 230000011664 signaling Effects 0.000 description 7
- 239000000523 sample Substances 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008439 repair process Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000012546 transfer Methods 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/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信技术,尤其涉及一种转发设备的控制方法、装置、设备及存储介质。The present application relates to communication technology, and in particular to a control method, device, device and storage medium of forwarding equipment.
背景技术Background technique
软件定义网络(Software Defined Network,简称SDN)是一种新型网络创新架构,它的理念在于将整个网络集中化管理,SDN将所有网络设备的决策能力(具体表现为流表)集中到网络控制设备上,使得网络设备被结构简单的转发设备替代,该转发设备只需要执行通信数据的转发即可。近几年,越来越多的开发人员关注当网络控制设备出现故障,或网络控制设备与所有转发设备的总线中断时如何保证网络控制设备生成的流表,以及所有转发设备的状态信息不丢失等问题。Software Defined Network (SDN for short) is a new network innovation architecture. Its concept is to centralize the management of the entire network. SDN centralizes the decision-making capabilities of all network devices (specifically expressed as flow tables) to network control devices. Above all, the network device is replaced by a forwarding device with a simple structure, and the forwarding device only needs to perform forwarding of communication data. In recent years, more and more developers pay attention to how to ensure that the flow table generated by the network control device and the state information of all forwarding devices are not lost when the network control device fails, or the bus between the network control device and all forwarding devices is interrupted And other issues.
现有技术中,网络控制设备生成所有转发设备的流表,下发至各转发设备,告知各转发设备如何进行通信数据的转发。同时,网络控制设备也会监测各转发设备及对应链路的状态信息。当网络控制设备出现故障,或网络控制设备与所有转发设备的总线中断时,需要对该网络控制设备和/或总线进行修复,或部署一个新的网络控制设备接管,和/或新的总线来连接所有转发设备。修复的网络控制设备或新的网络控制设备重新逐个获取所有转发设备的状态信息,并生成新的流表。In the prior art, the network control device generates flow tables of all forwarding devices, sends them to each forwarding device, and informs each forwarding device how to forward communication data. At the same time, the network control device will also monitor the status information of each forwarding device and the corresponding link. When the network control device fails, or the bus between the network control device and all forwarding devices is interrupted, it is necessary to repair the network control device and/or the bus, or deploy a new network control device to take over, and/or a new bus to Connect all forwarding devices. The repaired network control device or the new network control device obtains the state information of all forwarding devices one by one, and generates a new flow table.
然而,修复期间或新的网络控制设备接管之前,如果有至少一个转发设备损坏或其对应链路中断,网络控制设备将无法获取该转发设备的状态信息;修复的网络控制设备或新的网络控制设备丢失了之前的所有流表及所有转发设备的状态信息,需要重新获取所有转发设备的状态信息及生成新的流表,时间消耗多,进而导致获取所有转发设备的状态信息及流表的效率较低。However, during repair or before a new network control device takes over, if at least one forwarding device is damaged or its corresponding link is interrupted, the network control device will not be able to obtain the status information of the forwarding device; the repaired network control device or the new network control The device loses all previous flow tables and status information of all forwarding devices. It needs to re-acquire the status information of all forwarding devices and generate new flow tables, which consumes a lot of time, which in turn leads to the efficiency of obtaining the status information of all forwarding devices and flow tables. lower.
发明内容Contents of the invention
本申请提供一种转发设备的控制方法、装置、设备及存储介质,用以解决修复期间或新的网络控制设备接管之前,如果有至少一个转发设备损坏或其对应链路中断,网络控制设备将无法获取该转发设备的状态信息的问题;还解决修复的网络控制设备或新的网络控制设备丢失了之前的所有流表及所有转发设备的状态信息,需要重新获取所有转发设备的状态信息及生成新的流表,时间消耗多,进而导致获取所有转发设备的状态信息及流表的效率较低的问题。This application provides a forwarding device control method, device, device, and storage medium to solve the problem that if at least one forwarding device is damaged or its corresponding link is interrupted during repair or before a new network control device takes over, the network control device will The problem that the state information of the forwarding device cannot be obtained; it also solves the problem that the repaired network control device or the new network control device loses all the previous flow tables and the state information of all forwarding devices, and it is necessary to obtain the state information of all forwarding devices and generate The new flow table consumes a lot of time, which leads to the problem of low efficiency in obtaining the state information of all forwarding devices and the flow table.
第一方面,本申请提供一种转发设备的控制方法,所述方法应用于配合设备,所述配合设备为预设网络架构中的多个转发设备中的一个,所述预设网络架构还包括网络控制设备,包括:In a first aspect, the present application provides a method for controlling a forwarding device, the method is applied to a coordinating device, and the coordinating device is one of multiple forwarding devices in a preset network architecture, and the preset network architecture further includes Network control equipment, including:
从网络控制设备中获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息;Obtain the flow table corresponding to each forwarding device, each forwarding device and the initial state information of the corresponding link from the network control device;
监测所述网络控制设备是否在正常运行;monitoring whether the network control device is operating normally;
若确定所述网络控制设备未在正常运行,则确定各转发设备及对应链路的后续状态信息;If it is determined that the network control device is not operating normally, then determine the subsequent state information of each forwarding device and the corresponding link;
若监测到网络控制设备恢复正常运行,则将所述流表及所述后续状态信息发送给所述网络控制设备。If it is detected that the network control device resumes normal operation, the flow table and the subsequent state information are sent to the network control device.
在一种可行方式中,所述监测所述网络控制设备是否在正常运行,包括:In a feasible manner, the monitoring whether the network control device is running normally includes:
监测所述网络控制设备是否发生故障及监测所述网络控制设备与各转发设备之间的总线是否中断。Monitoring whether the network control device fails and whether the bus between the network control device and each forwarding device is interrupted.
在一种可行方式中,所述监测所述网络控制设备是否在正常运行,包括:In a feasible manner, the monitoring whether the network control device is running normally includes:
向所述网络控制设备发送保活报文;sending a keep-alive message to the network control device;
预设时间后判断是否接收到保活报文响应;After a preset time, it is judged whether a keep-alive message response is received;
若确定接收到保活报文响应,则确定网络控制设备在正常运行;If it is determined that the keep-alive message response is received, it is determined that the network control device is operating normally;
若确定未接收到保活报文响应,则确定网络控制设备未在正常运行。If it is determined that no keep-alive message response is received, it is determined that the network control device is not running normally.
在一种可行方式中,所述确定各转发设备及对应链路的后续状态信息,包括:In a feasible manner, the determination of the subsequent state information of each forwarding device and the corresponding link includes:
向相邻的转发设备发送探测报文,以使所述相邻的转发设备获取探测报文经过的链路信息,将所述链路信息携带到所述探测报文中,并向与其连接的转发设备继续转发探测报文;sending a detection message to an adjacent forwarding device, so that the adjacent forwarding device obtains the link information that the detection message passes through, carries the link information into the detection message, and sends the The forwarding device continues to forward the detection message;
接收相邻的转发设备发送的镜像探测报文,所述镜像探测报文中包括所述镜像探测报文所经过的转发链路;Receiving a mirror detection message sent by an adjacent forwarding device, where the mirror detection message includes a forwarding link through which the mirror detection message passes;
根据所述转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息。Subsequent state information of each forwarding device and corresponding link is determined according to the forwarding link and at least one pre-stored terminal forwarding device identifier.
在一种可行方式中,所述根据所述转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息,包括:In a feasible manner, the determining subsequent state information of each forwarding device and corresponding link according to the forwarding link and at least one pre-stored terminal forwarding device identifier includes:
确定转发链路中是否包括对应的终点转发设备标识;Determine whether the forwarding link includes the corresponding terminal forwarding device identifier;
若确定转发链路中不包括对应的终点转发设备标识,则根据转发链路确定存在故障的转发设备或存在断开的链路,确定存在故障的转发设备或对应断开链路的后续状态信息为故障状态,确定不存在故障的转发设备及对应断开链路的后续状态信息为正常状态;If it is determined that the forwarding link does not include the corresponding terminal forwarding device identifier, determine the faulty forwarding device or disconnected link according to the forwarding link, and determine the subsequent state information of the faulty forwarding device or the corresponding disconnected link It is a fault state, and it is determined that there is no faulty forwarding device and the subsequent state information of the corresponding disconnected link is a normal state;
若确定转发链路中包括对应的终点转发设备标识,则确定转发链路中不存在故障的转发设备及断开的链路,并确定各转发设备及对应链路的后续状态信息为正常状态。If it is determined that the forwarding link includes the corresponding terminal forwarding device identifier, it is determined that there is no faulty forwarding device and disconnected link in the forwarding link, and it is determined that the subsequent state information of each forwarding device and the corresponding link is in a normal state.
在一种可行方式中,监测网络控制设备是否恢复正常运行,包括:In a feasible manner, monitoring whether the network control equipment resumes normal operation includes:
周期性向所述网络控制设备发送保活报文;periodically sending a keep-alive message to the network control device;
每次发送保活报文后,在预设时间后判断是否接收到保活报文响应;After each keep-alive message is sent, it is judged whether a keep-alive message response is received after a preset time;
若确定接收到保活报文响应,则确定网络控制设备恢复正常运行;If it is determined that the keep-alive message response is received, it is determined that the network control device resumes normal operation;
若确定未接收到保活报文响应,则确定网络控制设备未恢复正常运行。If it is determined that no keep-alive message response is received, it is determined that the network control device has not resumed normal operation.
在一种可行方式中,若确定所述网络控制设备在正常运行,则所述方法还包括:In a feasible manner, if it is determined that the network control device is running normally, the method further includes:
接收所述网络控制设备发送的流表更新指令,所述流表更新指令中包括至少一个转发设备对应的新流表;receiving a flow table update instruction sent by the network control device, where the flow table update instruction includes a new flow table corresponding to at least one forwarding device;
根据新流表对对应的转发设备的流表进行更新。The flow table of the corresponding forwarding device is updated according to the new flow table.
第二方面,本申请提供一种转发设备的控制装置,所述装置位于配合设备,所述配合设备为预设网络架构中的多个转发设备中的一个,所述预设网络架构还包括网络控制设备,所述装置包括:In a second aspect, the present application provides a control device for a forwarding device, the device is located in a coordinating device, and the coordinating device is one of multiple forwarding devices in a preset network architecture, and the preset network architecture also includes a network control equipment, said means comprising:
获取模块,用于从网络控制设备中获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息;An acquisition module, configured to acquire the flow table corresponding to each forwarding device, each forwarding device and the initial state information of the corresponding link from the network control device;
监测模块,用于监测所述网络控制设备是否在正常运行;A monitoring module, configured to monitor whether the network control device is operating normally;
确定模块,用于若确定所述网络控制设备未在正常运行,则确定各转发设备及对应链路的后续状态信息;A determination module, configured to determine subsequent state information of each forwarding device and corresponding link if it is determined that the network control device is not operating normally;
发送模块,用于若监测到网络控制设备恢复正常运行,则将所述流表及所述后续状态信息发送给所述网络控制设备。A sending module, configured to send the flow table and the subsequent state information to the network control device if it is detected that the network control device resumes normal operation.
第三方面,本申请提供一种配合设备,所述配合设备包括:处理器,以及与所述处理器通信连接的存储器和收发器;In a third aspect, the present application provides a cooperation device, the cooperation device includes: a processor, and a memory and a transceiver communicatively connected to the processor;
所述存储器存储计算机执行指令;所述收发器,用于收发数据;The memory stores computer-executable instructions; the transceiver is used to send and receive data;
所述处理器执行所述存储器存储的计算机执行指令,以实现如上述第一方面或任意一种可行方式中所述的方法。The processor executes the computer-executed instructions stored in the memory, so as to implement the method described in the above first aspect or any feasible manner.
第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如上述第一方面或任意一种可行方式中所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the first aspect or any one of the above-mentioned aspects. methods described in One Possible Way.
本申请提供的一种转发设备的控制方法、装置、设备及存储介质,该方法应用于配合设备,该配合设备为预设网络架构中的多个转发设备中的一个,预设网络架构还包括网络控制设备,该方法包括:从网络控制设备中获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息;监测网络控制设备是否在正常运行;若确定网络控制设备未在正常运行,则确定各转发设备及对应链路的后续状态信息;若监测到网络控制设备恢复正常运行,则将流表及后续状态信息发送给网络控制设备。本申请中,配合设备从网络控制设备中获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息并进行存储;接着配合设备监测网络控制设备是否正常运行;若网络控制设备未正常运行,配合设备则确定各转发设备及对应链路的后续状态信息,配合设备暂时执行网络控制设备中的监测转发设备的功能,并将后续状态信息进行存储;若配合设备监测网络控制设备恢复正常运行,配合设备就将自身存储的流表及后续状态信息发送给恢复工作的网络控制设备。本申请采用配合设备对各转发设备对应的流表、各转发设备及对应链路的初始状态信息进行存储,可以保证流表及初始状态信息不丢失;当网络控制设备未正常运行时,配合设备则收集及确定各转发设备及对应链路的后续状态信息,保证及时获取并存储各转发设备的后续状态信息,有利于对转发设备及对应链路的监测;当网络控制设备恢复正常运行时,配合设备则将流表及后续状态信息发送给网络控制设备,便于网络控制设备及时、快速获取各转发设备的流表及后续状态信息,不需要耗费大量时间重新逐个获取流表及后续状态信息,节约了时间,提高了获取所有转发设备的状态信息及流表的效率。The present application provides a forwarding device control method, device, device, and storage medium, the method is applied to a coordinating device, and the coordinating device is one of multiple forwarding devices in a preset network architecture, and the preset network architecture also includes A network control device, the method includes: obtaining the flow table corresponding to each forwarding device, each forwarding device and the initial state information of the corresponding link from the network control device; monitoring whether the network control device is running normally; if it is determined that the network control device is not in If it is running normally, determine the subsequent state information of each forwarding device and the corresponding link; if it detects that the network control device is back to normal operation, then send the flow table and subsequent state information to the network control device. In this application, the cooperative device acquires and stores the flow table corresponding to each forwarding device, each forwarding device and the initial state information of the corresponding link from the network control device; then cooperates with the device to monitor whether the network control device is operating normally; if the network control device If it is not running normally, the cooperating device will determine the subsequent status information of each forwarding device and the corresponding link, and the cooperating device will temporarily perform the function of monitoring the forwarding device in the network control device and store the subsequent status information; if the cooperating device monitors the network control device After returning to normal operation, the cooperative device will send the flow table and subsequent state information stored by itself to the network control device that resumes work. This application uses the cooperative device to store the flow table corresponding to each forwarding device, the initial state information of each forwarding device and the corresponding link, which can ensure that the flow table and initial state information are not lost; when the network control device is not operating normally, the cooperative device Then collect and determine the follow-up state information of each forwarding device and the corresponding link, ensure timely acquisition and storage of the follow-up state information of each forwarding device, which is conducive to the monitoring of the forwarding device and the corresponding link; when the network control device returns to normal operation, The cooperating device sends the flow table and subsequent state information to the network control device, which facilitates the network control device to obtain the flow table and subsequent state information of each forwarding device in a timely and fast manner, without spending a lot of time re-obtaining the flow table and subsequent state information one by one. This saves time and improves the efficiency of obtaining state information and flow tables of all forwarding devices.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
图1为现有技术提供的一种网络架构图;FIG. 1 is a network architecture diagram provided by the prior art;
图2为本申请提供的一种转发设备的控制方法的网络系统架构图;FIG. 2 is a network system architecture diagram of a method for controlling a forwarding device provided by the present application;
图3为本申请实施例一提供的一种转发设备的控制方法的流程示意图;FIG. 3 is a schematic flowchart of a method for controlling a forwarding device provided in Embodiment 1 of the present application;
图4为本申请实施例三提供的一种转发设备的控制方法的流程示意图;FIG. 4 is a schematic flowchart of a method for controlling a forwarding device provided in Embodiment 3 of the present application;
图5为本申请实施例四提供的一种转发设备的控制方法的流程示意图;FIG. 5 is a schematic flowchart of a method for controlling a forwarding device provided in Embodiment 4 of the present application;
图6为本申请实施例五提供的一种转发设备的控制方法的流程示意图;FIG. 6 is a schematic flowchart of a method for controlling a forwarding device provided in Embodiment 5 of the present application;
图7为本申请实施例七提供的一种转发设备的控制装置的示意图;FIG. 7 is a schematic diagram of a control device of a forwarding device provided in Embodiment 7 of the present application;
图8为本申请实施例八提供的一种配合设备的结构示意图。FIG. 8 is a schematic structural diagram of a matching device provided in Embodiment 8 of the present application.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
首先对本申请所涉及的名词进行解释:First, the nouns involved in this application are explained:
转发设备:是指通信数据在网络中传输时,两个通信单元设备无法直接连接传输通信数据,因此通信数据传输路径中需要部署中间设备进行中转,该中间设备即为转发设备。在实际大多数情况下,该转发设备可以看成是大型路由器,主要实现通信数据的转发功能。Forwarding device: When communication data is transmitted in the network, two communication unit devices cannot be directly connected to transmit communication data. Therefore, an intermediate device needs to be deployed in the communication data transmission path for transfer. The intermediate device is the forwarding device. In most actual cases, the forwarding device can be regarded as a large router, which mainly realizes the forwarding function of communication data.
网络控制设备:是指将所有网络设备的控制功能分离出来,并进行集中到一台设备上,该设备即为网络控制设备。网络控制设备具有决策能力,控制所有转发设备按照某种协商的协议进行通信数据的转发。Network control device: refers to separating the control functions of all network devices and concentrating them on one device, which is the network control device. The network control device has decision-making ability, and controls all forwarding devices to forward communication data according to a negotiated protocol.
传统的网络架构是由许多网络设备、各个网络设备之间的链路以及其余相关设备组成,一个网络设备具有控制功能和通信数据转发功能。The traditional network architecture is composed of many network devices, links between each network device and other related devices. A network device has the function of control and communication data forwarding.
直到近几年提出了一种新型网络架构,即软件定义网络(Software DefinedNetwork,简称SDN),它是网络虚拟化的一种实现方式。SDN的核心技术是将各网络设备的控制功能和通信数据转发功能分离,只保留通信数据转发功能在网络设备中,原来的网络设备变为结构简单的转发设备,该转发设备具备通信数据转发功能。而原来的各网络设备中的控制功能将全部集中到一个网络控制设备中,由网络控制设备对所有的转发设备进行控制,做出决策。具体表现在:网络控制设备生成所有转发设备的流表,并下发至各转发设备,各转发设备读取流表条目并以流表条目为依据进行通信数据的转发,该过程是网络控制设备做出通信数据转发的决策,由转发设备执行通信数据的转发。Until recent years, a new type of network architecture, namely Software Defined Network (SDN for short), was proposed, which is an implementation method of network virtualization. The core technology of SDN is to separate the control function of each network device from the communication data forwarding function, and only keep the communication data forwarding function in the network device, and the original network device becomes a forwarding device with a simple structure, which has the communication data forwarding function . However, the control functions of the original network devices will all be concentrated in one network control device, and the network control device will control all forwarding devices and make decisions. Specifically, the network control device generates the flow tables of all forwarding devices and sends them to each forwarding device. Each forwarding device reads the flow table entries and forwards the communication data based on the flow table entries. This process is the network control device A decision is made to forward the communication data, and the forwarding device performs the forwarding of the communication data.
图1为现有技术提供的一种网络架构图,如图1所示,网络控制设备连接一根总线,该总线包含可以连接多个线路的端口A,每个端口A中包含多个接口A,每个接口A可以连接多个线路端口B,每个端口B中包含多个接口B,每个接口B可以连接一个转发设备。Figure 1 is a network architecture diagram provided by the prior art. As shown in Figure 1, the network control device is connected to a bus, and the bus includes ports A that can connect multiple lines, and each port A includes multiple interfaces A , each interface A can be connected to multiple line ports B, each port B contains multiple interfaces B, and each interface B can be connected to a forwarding device.
可选的,接口B也可以连接多个线路的端口C,以此类推,直到最后一个接口连接转发设备。其中,转发设备的个数可以达到上百个,甚至更多。Optionally, interface B may also be connected to port C of multiple lines, and so on until the last interface is connected to the forwarding device. Wherein, the number of forwarding devices may reach hundreds or even more.
现有技术中,网络架构完成后,网络控制设备获取所有转发设备的状态信息,该状态信息包含转发设备是否故障、及该转发设备对应的链路是否断开,及该转发设备与哪些转发设备连接等。同时,网络控制设备可以根据获取到的转发设备状态信息和实际需求生成各转发设备的流表,流表个数与转发设备个数一致,每个转发设备对应一个流表,各自的流表条目会告知各自转发设备如何转发通信数据,做出通信数据转发的决策。网络控制设备生成流表之后,并下发至各自相应的转发设备,各个转发设备读取并存储流表,并按照流表的决策执行通信数据的转发。具体在于:各转发设备有至少一个与之相邻的转发设备,各转发设备的流表决定自身转发设备应该将通信数据转发至相邻的哪一个转发设备中,转发设备按照流表的决策进行通信数据的转发,转发至下一个相邻转发设备。当至少一个转发设备显现故障,或该转发设备对应的链路断开时,为了避免通信数据经过故障的转发设备,或断开的链路,网络控制设备对该转发设备相邻的转发设备的流表进行更新,以实现当上述不利情况发生时,通信数据绕开故障转发设备或断开的链路,最终实现通信数据的传输。In the prior art, after the network architecture is completed, the network control device obtains the status information of all forwarding devices, the status information includes whether the forwarding device is faulty, whether the link corresponding to the forwarding device is disconnected, and which forwarding devices the forwarding device is related to connection etc. At the same time, the network control device can generate the flow table of each forwarding device according to the obtained status information of the forwarding device and actual needs. The number of flow tables is the same as the number of forwarding devices. The entries will inform the respective forwarding devices how to forward the communication data and make a decision on communication data forwarding. After the network control device generates the flow table, it sends it to the respective forwarding devices. Each forwarding device reads and stores the flow table, and forwards the communication data according to the decision of the flow table. Specifically, each forwarding device has at least one adjacent forwarding device, and the flow table of each forwarding device determines which adjacent forwarding device its own forwarding device should forward communication data to, and the forwarding device proceeds according to the decision of the flow table. The forwarding of the communication data is forwarded to the next adjacent forwarding device. When at least one forwarding device appears to be faulty, or the link corresponding to the forwarding device is disconnected, in order to prevent communication data from passing through the faulty forwarding device or the disconnected link, the network control device will The flow table is updated, so that when the above-mentioned unfavorable situation occurs, the communication data bypasses the faulty forwarding device or the broken link, and finally realizes the transmission of the communication data.
但是,现有技术中仍然存在一些缺陷。具体表现在:第一方面,当网络控制设备出现故障,或网络控制设备与各转发设备之间的总线断开时,则网络控制设备将不能做决策,网络控制设备与各转发设备之间处于孤立状态,即相互之间没有通信连接。网络控制设备中的流表及各转发设备的初始状态信息将会丢失或损坏;同时,网络控制设备也不能获取各转发设备及其对应链路的后续状态信息;第二方面,当有新的网络控制设备重新接管和/或总线连接,或旧的网络控制设备和/或总线已经修复,网络控制设备需要重新获取各转发设备及其对应链路的当前状态信息,根据当前状态信息重新生成流表,该过程繁杂,时间消耗多。However, there are still some defects in the prior art. The specific manifestations are as follows: first, when the network control device fails, or the bus between the network control device and each forwarding device is disconnected, the network control device will not be able to make decisions, and the network control device and each forwarding device are in a state of Isolated state, that is, there is no communication connection between each other. The flow table in the network control device and the initial state information of each forwarding device will be lost or damaged; at the same time, the network control device cannot obtain the follow-up state information of each forwarding device and its corresponding link; secondly, when there is a new The network control device takes over and/or the bus connection again, or the old network control device and/or the bus has been repaired, the network control device needs to reacquire the current state information of each forwarding device and its corresponding link, and regenerate the flow according to the current state information table, the process is complicated and time consuming.
为了解决现有技术中网络控制设备中的流表及各转发设备的初始状态信息丢失或损坏,网络控制设备不能获取各转发设备及其对应链路的后续状态信息,和网络控制设备需要重新获取各转发设备及其对应链路的当前状态信息生成流表耗时等问题,本方案发明人经过创造性研究,设计一种新的方案。本方案应用于配合设备,该配合设备为预设网络架构中的多个转发设备中的一个,预设网络架构还包括网络控制设备。为了解决网络控制设备中的流表及各转发设备的初始状态信息丢失或损坏等问题,本方案具体表现在:配合设备从网络控制设备中获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息,并进行存储。为了解决当网络控制设备未正常运行时,网络控制设备不能获取各转发设备及其对应链路的后续状态信息等问题,由配合设备收集各转发设备后续状态信息,具体表现在:若确定网络控制设备未在正常运行,配合设备则确定各转发设备及对应链路的后续状态信息。为了解决当网络控制设备恢复正常运行时,网络控制设备重新获取各转发设备及其对应链路的当前状态信息生成流表耗时多,进而导致获取所有转发设备的状态信息及流表的效率较低等问题,本方案配合设备可以将自身存储的流表和各转发设备后续状态信息快速发送给网络控制设备,具体表现在:配合设备若监测到网络控制设备恢复正常运行,则将流表及后续状态信息发送给网络控制设备。In order to solve the loss or damage of the flow table in the network control device and the initial state information of each forwarding device in the prior art, the network control device cannot obtain the subsequent state information of each forwarding device and its corresponding link, and the network control device needs to obtain it again The inventors of this solution designed a new solution after creative research to solve the time-consuming problem of generating the flow table from the current state information of each forwarding device and its corresponding link. This solution is applied to a coordinating device, and the coordinating device is one of multiple forwarding devices in a preset network architecture, and the preset network architecture also includes a network control device. In order to solve the problems such as the loss or damage of the flow table in the network control device and the initial state information of each forwarding device, this solution is specifically manifested in: cooperate with the device to obtain the flow table corresponding to each forwarding device, each forwarding device and the corresponding The initial state information of the link and store it. In order to solve the problem that the network control device cannot obtain the subsequent state information of each forwarding device and its corresponding link when the network control device is not operating normally, the cooperative device collects the subsequent state information of each forwarding device. If the device is not running normally, the cooperative device determines the subsequent state information of each forwarding device and the corresponding link. In order to solve the problem that when the network control device resumes normal operation, it takes a long time for the network control device to reacquire the current state information of each forwarding device and its corresponding link to generate a flow table, which in turn leads to a low efficiency in obtaining the state information and flow table of all forwarding devices. For low-level problems, this solution can cooperate with the device to quickly send the flow table stored by itself and the subsequent state information of each forwarding device to the network control device. Subsequent status information is sent to the network control device.
下面对本申请提供一种转发设备的控制方法、装置、设备及存储介质的网络系统架构进行介绍。The network system architecture of a forwarding device control method, device, device, and storage medium provided by the present application is introduced below.
图2为本申请提供的一种转发设备的控制方法的网络系统架构图。如图2所示,该网络系统架构包括多个转发设备201,一个网络控制设备202,一个配合设备203。需要说明的是,转发设备的个数可高达一百个,配合设备203是从多个转发设备201中预先设定。每个转发设备201与网络控制设备202之间都会通过总线及各自链路通信连接。转发设备201之间可以通信连接,各转发设备201之间是否通信连接,根据运营人员的需求来确定,此处不做限制。其中,通信连接方式可以是馈线连接,也可以是光纤连接。FIG. 2 is a network system architecture diagram of a method for controlling a forwarding device provided in the present application. As shown in FIG. 2 , the network system architecture includes multiple forwarding devices 201 , a network control device 202 , and a coordination device 203 . It should be noted that the number of forwarding devices can be as high as one hundred, and the cooperation device 203 is preset from multiple forwarding devices 201 . Each forwarding device 201 is communicatively connected to the network control device 202 through a bus and respective links. The forwarding devices 201 can be connected by communication, and whether each forwarding device 201 is connected by communication is determined according to the requirements of the operator, and there is no limitation here. Wherein, the communication connection may be a feeder connection or an optical fiber connection.
其中,转发设备201中包含转发设备A、转发设备B、转发设备C、转发设备D及转发设备E。其中,转发设备A分别与转发设备B和转发设备C通信连接,转发设备B又与转发设备C和转发设备E通信连接,转发设备C又与转发设备D通信连接,转发设备D又与转发设备E和配合设备203通信连接,转发设备E又与配合设备203通信连接。Wherein, the forwarding device 201 includes a forwarding device A, a forwarding device B, a forwarding device C, a forwarding device D, and a forwarding device E. Among them, the forwarding device A is connected to the forwarding device B and the forwarding device C respectively, the forwarding device B is connected to the forwarding device C and the forwarding device E, the forwarding device C is connected to the forwarding device D, and the forwarding device D is connected to the forwarding device E communicates with the coordinating device 203 , and forwarding device E communicates with the coordinating device 203 .
具体工作流程如下:该网络架构完成之后,网络控制设备202会获取所有转发设备201的初始状态信息,根据初始状态信息生成各转发设备201的流表,其中,状态信息包含了各转发设备201状态、转发设备201连接信息、转发设备201对应的链路信息等。在众多转发设备201中预先设定一个配合设备203,该配合设备203能够执行除了转发设备201的功能之外,还能执行网络控制设备的部分功能。网络控制设备203将各转发设备的流表、各转发设备及对应链路的初始状态信息发送至配合设备203,配合设备203接收各转发设备的流表、各转发设备及对应链路的初始状态信息并存储在自身的存储区域,进行备份。配合设备203定期向网络控制设备202发送保活报文,监测网络控制设备202是否正常运行。若配合设备203确定网络控制设备202未正常运行,则配合设备203向其相邻的所有转发设备201发送探测报文,主要目的是探测所有转发设备201及对应链路的后续状态信息,监测所有转发设备201是否出现故障,或其对应链路是否断开等信息。配合设备203收集所有转发设备201的后续状态信息,并将其存储在自身存储区域。可以理解的是,如果初始状态信息和后续状态信息有所变化,配合设备203会识别出是哪个/多个转发设备及对应链路的后续状态信息与初始信息有所变化,将该转发设备的初始状态信息替换成后续状态信息,并存储。The specific workflow is as follows: After the network architecture is completed, the network control device 202 will obtain the initial state information of all forwarding devices 201, and generate the flow table of each forwarding device 201 according to the initial state information, wherein the state information includes the state of each forwarding device 201 , the connection information of the forwarding device 201, the link information corresponding to the forwarding device 201, and the like. Among the many forwarding devices 201, a coordinating device 203 is preset, and the coordinating device 203 can perform not only the function of the forwarding device 201, but also part of the functions of the network control device. The network control device 203 sends the flow table of each forwarding device, the initial state information of each forwarding device and the corresponding link to the cooperation device 203, and the cooperation device 203 receives the flow table of each forwarding device, the initial state of each forwarding device and the corresponding link Information is stored in its own storage area for backup. The cooperation device 203 periodically sends a keep-alive message to the network control device 202 to monitor whether the network control device 202 is running normally. If the cooperating device 203 determines that the network control device 202 is not operating normally, the cooperating device 203 sends a detection message to all forwarding devices 201 adjacent to it. The main purpose is to detect subsequent state information of all forwarding devices 201 and corresponding links, and monitor Information such as whether the forwarding device 201 fails, or whether its corresponding link is broken. The cooperating device 203 collects subsequent state information of all forwarding devices 201 and stores it in its own storage area. It can be understood that if the initial state information and the subsequent state information change, the cooperation device 203 will identify which/multiple forwarding devices and the subsequent state information and initial information of the corresponding link have changed, and the forwarding device's The initial state information is replaced with subsequent state information and stored.
进一步的,配合设备203若监测到网络控制设备恢复正常运行,则将自身存储的流表及后续状态信息发送给网络控制设备202,网络控制设备202并进行存储,若后续状态信息较之前有所变化,网络控制设备202则根据后续状态信息生成相应的新流表,重新控制各转发设备按照新流表的决策进行通信数据的转发。其中,网络控制设备可以只对后续状态信息有变化的转发设备进行流表更新,可以不用对所有转发设备的流表都进行更新。Further, if the cooperation device 203 detects that the network control device resumes normal operation, it will send the flow table and subsequent state information stored by itself to the network control device 202, and the network control device 202 will store it. change, the network control device 202 generates a corresponding new flow table according to the subsequent state information, and re-controls each forwarding device to forward communication data according to the decision of the new flow table. Wherein, the network control device may only update the flow tables of the forwarding devices whose state information changes subsequently, and may not need to update the flow tables of all the forwarding devices.
需要说明的是,本申请的配合设备具有转发设备的通信数据转发功能。当网络控制设备未正常运行时,配合设备既要收集各转发设备及对应链路的后续状态信息,还要按照自身流表进行通信数据的转发;当网络控制设备正常运行时,配合设备即要向网络控制发送保活报文,也要按照自身流表进行通信数据的转发。It should be noted that the coordinating device of the present application has a communication data forwarding function of the forwarding device. When the network control device is not running normally, the cooperating device needs to collect the follow-up status information of each forwarding device and the corresponding link, and forward the communication data according to its own flow table; when the network control device is running normally, the cooperating device needs to To send a keep-alive message to the network control, the communication data should also be forwarded according to its own flow table.
本申请提供的一种转发设备的控制方法、装置、设备及存储介质,旨在解决现有技术的如上技术问题。The present application provides a control method, device, device, and storage medium for a forwarding device, aiming to solve the above technical problems in the prior art.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below in conjunction with the accompanying drawings.
实施例一Embodiment one
图3为本申请实施例一提供的一种转发设备的控制方法的流程示意图。本申请方法的执行主体为转发设备的控制装置,该方法应用于配合设备,配合设备为预设网络架构中的多个转发设备中的一个,预设网络架构还包括网络控制设备,如图3所示,本实施例的方法包括以下步骤。FIG. 3 is a schematic flowchart of a method for controlling a forwarding device provided in Embodiment 1 of the present application. The executor of the method of the present application is the control device of the forwarding device. The method is applied to the coordinating device. The coordinating device is one of the multiple forwarding devices in the preset network architecture, and the preset network architecture also includes network control equipment, as shown in Figure 3 As shown, the method in this embodiment includes the following steps.
S301,从网络控制设备中获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息。S301. Obtain a flow table corresponding to each forwarding device, initial state information of each forwarding device and a corresponding link from the network control device.
其中,初始状态信息为网络控制设备还未出现故障前各转发设备及对应链路的状态信息,包含各转发设备是否出现故障,和/或对应链路是否断开等信息。在网络控制设备完好的情况下,初始状态信息可以更新,配合设备一般存储最新的初始状态信息。转发设备对应的流表为当前状态信息下,各转发设备对通信数据的转发决策,具体表现为流表,流表包含了某转发设备将通信数据转发至与其相邻的哪个转发设备的决策,其中,各转发设备的流表会根据初始状态信息的更新而更新,各转发设备的流表不一致。Wherein, the initial status information is the status information of each forwarding device and the corresponding link before the network control device fails, including information such as whether each forwarding device fails, and/or whether the corresponding link is disconnected. When the network control device is intact, the initial state information can be updated, and the cooperative device generally stores the latest initial state information. The flow table corresponding to the forwarding device is the forwarding decision of each forwarding device for communication data under the current state information, which is specifically expressed as a flow table. The flow table includes the decision of which forwarding device forwards communication data to its adjacent forwarding device. Wherein, the flow table of each forwarding device will be updated according to the update of the initial state information, and the flow table of each forwarding device is inconsistent.
其中,网络控制设备在预设网络架构完成之后,会收集、监测各转发设备及对应链路的初始状态信息,并根据初始状态信息生成各转发设备的流表,同时将初始状态信息和流表发送至配合设备,配合设备获取到流表、各转发设备及对应链路的初始状态信息,并存储。Among them, after the preset network architecture is completed, the network control device will collect and monitor the initial state information of each forwarding device and the corresponding link, and generate the flow table of each forwarding device according to the initial state information, and simultaneously store the initial state information and the flow table Send to the cooperative device, and the cooperative device obtains the flow table, each forwarding device and the initial state information of the corresponding link, and stores it.
可以理解的是,当网络控制设备一直处于正常工作状态,网络控制设备会定期或者实时监测各转发设备的初始状态信息,如果之后监测的初始状态信息较之前的初始状态信息有所更新,那么网络控制设备会根据最新的初始状态信息更新各转发设备的流表,生成更新后的流表,并又将更新后的初始状态信息和更新后的流表发送至配合设备,配合设备获取更新后的流表、各转发设备及对应链路的更新后的初始状态信息,并存储。同时,配合设备可以将之前的初始状态信息及流表删除。It can be understood that when the network control device is always in the normal working state, the network control device will monitor the initial state information of each forwarding device periodically or in real time. The control device will update the flow table of each forwarding device according to the latest initial state information, generate the updated flow table, and send the updated initial state information and the updated flow table to the cooperating device, and the cooperating device will obtain the updated The updated initial state information of the flow table, each forwarding device and the corresponding link is stored. At the same time, the cooperative device can delete the previous initial state information and flow table.
需要说明的是,如果之后监测到的初始状态信息与之前监测到的初始状态信息并没有发生变化,则可以不需要重新存储到配合设备中,保留之前的初始状态信息和流表即可。It should be noted that if there is no change between the monitored initial state information and the previously monitored initial state information, it may not need to be stored in the cooperative device again, and the previous initial state information and flow table may be retained.
具体的,若某个转发设备的最新的初始状态信息与其对应的之前的初始状态信息相比,有所变化,可以只更新该转发设备及其相邻转发设备的流表,其余与该转发设备没有关联的转发设备的流表可以不需要更新。进一步的,将该转发设备及其相邻转发设备更新后的流表发送至配合设备,配合设备将用该转发设备及其相邻转发设备更新后的流表、更新后的初始状态信息替换掉该转发设备及其相邻转发设备的之前的流表及之前的初始状态信息,并存储。Specifically, if the latest initial state information of a certain forwarding device has changed compared with its corresponding previous initial state information, only the flow tables of the forwarding device and its adjacent forwarding devices can be updated, and the rest of the forwarding device A flow table without an associated forwarding device may not need to be updated. Further, the updated flow table of the forwarding device and its adjacent forwarding devices is sent to the cooperating device, and the cooperating device will replace the updated flow table and the updated initial state information of the forwarding device and its adjacent forwarding devices The previous flow table and previous initial state information of the forwarding device and its adjacent forwarding devices are stored.
可以理解的是,当网络控制设备处于正常工作时,可以定期或实时去监测、收集各转发设备及对应链路的初始状态信息,若之后的初始状态信息较之前的初始状态信息有所变化,则根据最新的初始状态信息重新更新流表。可选的,可以对所有的转发设备进行更新流表,也可以只对状态信息发生改变的转发设备及其相邻转发设备进行更新流表,此处不做限制。It can be understood that when the network control device is in normal operation, it can monitor and collect the initial state information of each forwarding device and the corresponding link on a regular basis or in real time. If the subsequent initial state information is different from the previous initial state information, The flow table is re-updated according to the latest initial state information. Optionally, the flow table may be updated for all forwarding devices, or only for the forwarding device whose state information changes and its adjacent forwarding devices, and there is no limitation here.
可以理解的是,在网络控制设备未出现故障或网络控制设备与各转发设备的总线未断开之前,配合设备获取到的状态信息都为初始状态信息,该初始状态信息根据各转发设备的状态也会被更新。配合设备获取到的流表为最新的初始状态信息对应的流表。具体的,上述之前的初始状态信息及之后的初始状态信息皆为本步骤中的初始状态信息。本步骤中,为了保证配合设备存储的初始状态信息及流表更符合当前时间和环境,配合设备最终存储及保留的是最新的初始状态信息及根据该最新的初始状态信息生成的最新流表。It can be understood that, before the network control device fails or the bus between the network control device and each forwarding device is not disconnected, the state information acquired by the cooperative device is the initial state information, and the initial state information is based on the state of each forwarding device will also be updated. The flow table obtained by the cooperative device is the flow table corresponding to the latest initial state information. Specifically, the previous initial state information and the subsequent initial state information are all the initial state information in this step. In this step, in order to ensure that the initial state information and flow table stored by the cooperative device are more in line with the current time and environment, what the cooperative device finally stores and retains is the latest initial state information and the latest flow table generated based on the latest initial state information.
其中,配合设备可以定期或实时获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息。Wherein, the coordinating device can periodically or in real time obtain the flow table corresponding to each forwarding device, the initial state information of each forwarding device and the corresponding link.
S302,监测网络控制设备是否在正常运行。S302. Monitor whether the network control device is running normally.
配合设备获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息后,可以定期监测网络控制设备是否在正常运行。After the cooperative device obtains the flow table corresponding to each forwarding device, the initial state information of each forwarding device and the corresponding link, it can regularly monitor whether the network control device is running normally.
在一种方式中,配合设备向网络控制设备发送保活报文,该保活报文是用来监测网络控制设备是否出现故障和/或总线是否断开。具体的,配合设备向网络控制设备发送保活(英文为:keep alive)报文,当该报文经过总线传输至网络控制设备,网络控制设备接收该报文,该保活报文信息包含监测网络控制设备是否出现故障,或总线是否断开。网络控制设备对报文信息进行响应,保活报文响应为网络控制设备未出现故障,和/或总线未断开,一切正常运行。网络控制设备并将保活报文响应经过总线传输至配合设备,配合设备读取保活报文响应,并确定此时网络控制设备正常运行。另一种情况,当保活报文从配合设备发送一段时间后,还没接收到保活报文响应,则此时认定网络监控设备出现故障和/或总线断开。In one manner, the cooperating device sends a keep-alive message to the network control device, and the keep-alive message is used to monitor whether the network control device fails and/or whether the bus is disconnected. Specifically, the cooperative device sends a keep alive (English: keep alive) message to the network control device. When the message is transmitted to the network control device through the bus, the network control device receives the message. The keep alive message includes monitoring If the network control device fails, or if the bus is disconnected. The network control device responds to the message information, and the keep-alive message responds that the network control device is not faulty, and/or the bus is not disconnected, and everything is running normally. The network control device transmits the keep-alive message response to the cooperating device through the bus, and the cooperating device reads the keep-alive message response and determines that the network control device is running normally at this time. In another situation, when the keep-alive message is sent from the cooperating device for a period of time and no response to the keep-alive message is received, it is determined that the network monitoring device is faulty and/or the bus is disconnected.
另一种方式中,提前预设配合设备定期接收网络控制设备发送的正常运行信令,当配合设备在预设时间内接收到网络控制设备的正常运行信令,则代表该网络控制设备正常运行,若在预设时间后仍未接收到网络控制设备的正常运行信令,则代表该网络控制设备未正常运行。In another way, the cooperative device is preset in advance to regularly receive the normal operation signaling sent by the network control device. When the cooperative device receives the normal operation signaling of the network control device within the preset time, it means that the network control device is in normal operation. , if the normal operation signaling of the network control device is not received after the preset time, it means that the network control device is not in normal operation.
S303,若确定网络控制设备未在正常运行,则确定各转发设备及对应链路的后续状态信息。S303. If it is determined that the network control device is not running normally, determine subsequent state information of each forwarding device and the corresponding link.
其中,各转发设备及对应链路的后续状态信息为当网络控制设备未正常运行时,配合设备充当网络控制设备的部分功能,监测各转发设备及对应链路的状态信息,包含各转发设备是否出现故障,和/或对应链路是否断开等信息。后续状态信息也是可以不断更新,若之后的后续状态信息较之前的后续状态信息有所变化,则配合设备将之后的后续状态信息替换掉之前的后续状态信息,并存储。Among them, the subsequent state information of each forwarding device and the corresponding link is when the network control device is not operating normally, the cooperative device acts as part of the function of the network control device to monitor the state information of each forwarding device and the corresponding link, including whether each forwarding device A fault occurs, and/or whether the corresponding link is disconnected or not. The follow-up state information can also be continuously updated. If the follow-up state information is different from the previous follow-up state information, the cooperative device will replace the previous follow-up state information with the follow-up state information and store it.
根据上述S302的描述,在一种方式中,当保活报文从配合设备发送一段时间后,还没接收到保活报文响应,则此时确定网络控制设备出现故障和/或总线断开,网络控制设备即未正常运行。其中,配合设备定期或实时向各转发设备发送探测报文,确定各转发设备及对应链路的后续状态信息。According to the description of S302 above, in one mode, when the keep-alive message is sent from the cooperating device for a period of time, but no response to the keep-alive message is received, it is determined that the network control device is faulty and/or the bus is disconnected , the network control device is not functioning properly. Wherein, the coordinating device sends detection messages to each forwarding device periodically or in real time to determine subsequent state information of each forwarding device and the corresponding link.
另一种方式中,当配合设备在预设时间内没有接收到网络控制设备的正常运行信令,则代表该网络控制设备未正常运行。此时,配合设备定期或实时向各转发设备发送探测报文,该探测报文一般用来确定转发设备及对应链路状态,以及相邻转发设备编号。具体的,配合设备向与之相邻的转发设备发送探测报文后,若该相邻转发设备完好,则会继续将探测报文向下转发,探测报文在终点转发设备(即网络架构中的最后一个转发设备)内形成一则镜像探测报文,并将该镜像探测报文按照原路返回至配合设备,该镜像探测报文包括该镜像报文所经过的路径、转发设备等信息,配合设备根据镜像探测报文的信息,确定各转发设备及对应链路的后续状态信息,配合设备并将该后续状态信息进行存储。In another manner, when the cooperating device does not receive the normal operation signaling of the network control device within a preset time, it means that the network control device is not in normal operation. At this time, the coordinating device sends a detection message to each forwarding device periodically or in real time, and the detection message is generally used to determine the forwarding device and the corresponding link state, as well as the number of the adjacent forwarding device. Specifically, after the cooperating device sends a detection message to its adjacent forwarding device, if the adjacent forwarding device is intact, it will continue to forward the detection message downwards, and the detection message will be forwarded at the terminal forwarding device (that is, in the network architecture). A mirror detection message is formed in the last forwarding device), and the mirror detection message is returned to the cooperating device according to the original path. The mirror detection message includes information such as the path passed by the mirror message, the forwarding device, etc. The cooperating device determines the subsequent status information of each forwarding device and the corresponding link according to the information of the mirror detection message, and the cooperating device stores the subsequent status information.
其中,由于与配合设备相邻的转发设备至少一个,因此,配合设备会向所有与之相邻的转发设备A发送探测报文,而每一个与之相邻的转发设备A又有多个相邻转发设备B,进而探测报文又转发至所有相邻转发设备B中,以此类推,直到探测报文转发至最后一个转发设备,进而停止转发。Wherein, since there is at least one forwarding device adjacent to the coordinating device, the coordinating device will send detection packets to all adjacent forwarding devices A, and each adjacent forwarding device A has multiple related Adjacent forwarding device B, and then the detection message is forwarded to all adjacent forwarding devices B, and so on, until the detection message is forwarded to the last forwarding device, and then the forwarding is stopped.
可以理解的是,若某个转发设备出现故障或其对应链路断开,则探测报文不会转发至终点转发设备,会在该故障转发设备或链路断开的前一个转发设备停止向后转发,并由前一个转发设备形成一则镜像探测报文,并将该镜像探测报文按照原路返回至配合设备。It can be understood that if a forwarding device fails or its corresponding link is disconnected, the detection message will not be forwarded to the terminal forwarding device, and the forwarding device before the faulty forwarding device or the link disconnection will stop sending After forwarding, the previous forwarding device forms a mirrored detection message, and returns the mirrored detection message to the cooperating device according to the original path.
可选的,配合设备可以向各转发设备下发网络控制设备未正常运行的监测信令,该监测信令包含网络控制设备未正常运行的信息,还包含让各转发设备向配合设备发送自身、对应链路的状态及其相邻转发设备编号等命令,各转发设备回复一则监测信令镜像,该监测信令镜像包含各转发设备自身的状态,对应链路的状态,以及相邻转发设备编号等。配合设备可以接收监测信令镜像,进而确定各转发设备及对应链路的后续状态,配合设备并将该后续状态信息进行存储。Optionally, the coordinating device can issue a monitoring signaling that the network control device is not operating normally to each forwarding device. Corresponding to the state of the link and its adjacent forwarding device number and other commands, each forwarding device replies with a monitoring signaling image, which includes the state of each forwarding device itself, the state of the corresponding link, and the state of the adjacent forwarding device number etc. The cooperative device can receive the monitoring signaling image, and then determine the subsequent status of each forwarding device and the corresponding link, and cooperate with the device to store the subsequent status information.
可以理解的是,当网络控制设备还没有恢复正常运行,配合设备可以定期或实时去确定后续状态信息,因此,当各转发设备及对应链路的之后的后续状态信息较之前收集的后续状态信息有所变化时,之前的后续状态信息可以被之后的后续状态信息替换,并存储之后的后续状态信息。可以理解的是,后续状态信息其实是不断在更新,配合设备收集并保存最新的后续状态信息。It can be understood that when the network control device has not resumed normal operation, the cooperating device can determine the follow-up state information periodically or in real time. Therefore, when the follow-up state information of each forwarding device and the corresponding link is compared with the previously collected When there is a change, the previous subsequent state information can be replaced by the subsequent subsequent state information, and the subsequent subsequent state information is stored. It can be understood that the follow-up state information is actually constantly being updated, and cooperates with the device to collect and save the latest follow-up state information.
需要说明的是,配合设备获取最新的后续状态信息的目的是为了保证自身存储的后续状态信息更符合当前时间和环境,便于后续发送准确的后续状态信息至网络控制设备。It should be noted that the purpose of cooperating with the device to obtain the latest follow-up state information is to ensure that the follow-up state information stored by itself is more in line with the current time and environment, so as to facilitate subsequent sending of accurate follow-up state information to the network control device.
S304,若监测到网络控制设备恢复正常运行,则将流表及后续状态信息发送给网络控制设备。S304. If it is detected that the network control device resumes normal operation, send the flow table and subsequent state information to the network control device.
其中,配合设备向网络控制设备发送保活报文后,监测到网络控制设备恢复正常运行。具体表现在:配合设备向网络控制设备发送保活报文一段时间内,网络控制设备由于还未恢复,配合设备不能在预设时间内接收到保活报文响应。配合设备仍然定期发送保活报文,直到有一次发送保活报文时,配合设备接收到保活报文的保活报文响应,即代表配合设备监测到网络控制设备恢复正常运行。其中,恢复正常运行可以是网络架构重新部署了一个新的网络控制设备,和/或新的总线连接,也可以是运营人员对旧的网络控制设备和/或总线进行了修复,使得网络控制设备正常运行。Wherein, after the cooperation device sends a keep-alive message to the network control device, it is detected that the network control device resumes normal operation. The specific manifestation is: within a period of time when the cooperative device sends the keep-alive message to the network control device, the network control device has not recovered, and the cooperative device cannot receive the keep-alive message response within the preset time. The cooperating device still sends keep-alive messages periodically until one time when it sends a keep-alive message, the cooperating device receives the keep-alive message response of the keep-alive message, which means that the cooperating device monitors that the network control device resumes normal operation. Among them, the restoration of normal operation may be that the network architecture redeploys a new network control device and/or a new bus connection, or it may be that the operator has repaired the old network control device and/or bus, so that the network control device normal operation.
进一步的,配合设备若监测到网络控制设备恢复正常运行,配合设备将自身存储的流表及后续状态信息发送给网络控制设备。网络控制设备根据后续状态信息对相应状态信息有所变化的转发设备进行流表更新,并将对应的更新后流表替换之前配合设备发送的流表,并存储对应更新后的流表。Further, if the cooperative device detects that the network control device resumes normal operation, the cooperative device sends the flow table and subsequent state information stored by itself to the network control device. The network control device updates the flow table of the forwarding device whose corresponding state information has changed according to the subsequent state information, and replaces the flow table sent by the cooperating device with the corresponding updated flow table, and stores the corresponding updated flow table.
其中,配合设备可以一次性将流表及后续状态信息发送至网络控制设备。Wherein, the cooperating device can send the flow table and subsequent state information to the network control device at one time.
本实施例提供一种转发设备的控制方法,该方法应用于配合设备,配合设备为预设网络架构中的多个转发设备中的一个,预设网络架构还包括网络控制设备,该方法包括:从网络控制设备中获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息;监测网络控制设备是否在正常运行;若确定网络控制设备未在正常运行,则确定各转发设备及对应链路的后续状态信息;若监测到网络控制设备恢复正常运行,则将流表及后续状态信息发送给网络控制设备。本实施例通过配合设备获取各转发设备的流表、各转发设备及对应链路的初始状态信息,并进行存储,保证了流表及初始状态信息不丢失;当网络控制设备未正常运行时,配合设备则收集及确定各转发设备及对应链路的后续状态信息,保证及时获取并存储各转发设备的后续状态信息,有利于对转发设备及对应链路的监测;当网络控制设备恢复正常运行时,配合设备则将流表及后续状态信息发送给网络控制设备,便于网络控制设备及时、快速获取各转发设备的流表及后续状态信息,不需要耗费大量时间重新逐个获取流表及后续状态信息,节约了时间,提高了获取所有转发设备的状态信息及流表的效率。This embodiment provides a method for controlling a forwarding device. The method is applied to a coordinating device. The coordinating device is one of multiple forwarding devices in a preset network architecture. The preset network architecture also includes a network control device. The method includes: Obtain the flow table corresponding to each forwarding device, the initial state information of each forwarding device and the corresponding link from the network control device; monitor whether the network control device is operating normally; if it is determined that the network control device is not operating normally, determine each forwarding device and subsequent state information of the corresponding link; if it is detected that the network control device resumes normal operation, the flow table and subsequent state information are sent to the network control device. In this embodiment, the flow table of each forwarding device, the initial state information of each forwarding device and the corresponding link are obtained by cooperating with the device, and stored, so as to ensure that the flow table and the initial state information are not lost; when the network control device is not operating normally, Cooperate with the equipment to collect and determine the follow-up status information of each forwarding device and corresponding link to ensure timely acquisition and storage of the follow-up status information of each forwarding device, which is conducive to the monitoring of forwarding devices and corresponding links; when the network control device resumes normal operation , the cooperating device sends the flow table and subsequent state information to the network control device, which facilitates the network control device to obtain the flow table and subsequent state information of each forwarding device in a timely and fast manner, without spending a lot of time re-obtaining the flow table and subsequent state information one by one information, saving time and improving the efficiency of obtaining status information and flow tables of all forwarding devices.
实施例二Embodiment two
基于实施例一的描述,本申请实施例二在实施例一的基础上进一步细化,本实施例是监测网络控制设备是否在正常运行的一种可选实施方式,具体包括:监测网络控制设备是否发生故障及监测网络控制设备与各转发设备之间的总线是否中断。Based on the description of the first embodiment, the second embodiment of the present application is further refined on the basis of the first embodiment. This embodiment is an optional implementation mode for monitoring whether the network control device is running normally, specifically including: monitoring the network control device Check whether there is a failure and monitor whether the bus between the network control equipment and each forwarding equipment is interrupted.
具体的,若网络控制设备发生故障,和/或网络控制设备与各转发设备之间的总线发生中断,则网络控制设备均不能正常运行,所以在监测网络控制设备是否在正常运行时,监测网络控制设备是否发生故障及监测网络控制设备与各转发设备之间的总线是否中断。Specifically, if the network control device fails, and/or the bus between the network control device and each forwarding device is interrupted, the network control device cannot operate normally, so when monitoring whether the network control device is operating normally, the monitoring network Whether the control equipment fails and whether the bus between the network control equipment and each forwarding equipment is interrupted.
其中,总线是连接网络控制设备及各转发设备的总线路,一般情况下,若总线断开,则网络控制设备与各转发设备之间的通信即会断开,此时,网络控制设备就像一个孤立设备,与各转发设备都不能建立通信连接。可以理解的是,即便网络控制设备是完好的,但是无法和各转发设备之间建立通信连接,网络控制设备不能监测各转发设备的状态,不能生成新的流表。Among them, the bus is the main line connecting the network control device and each forwarding device. Generally, if the bus is disconnected, the communication between the network control device and each forwarding device will be disconnected. At this time, the network control device is like An isolated device cannot establish a communication connection with any forwarding device. It can be understood that even if the network control device is intact, it cannot establish a communication connection with each forwarding device, the network control device cannot monitor the status of each forwarding device, and cannot generate a new flow table.
在一种可行方式中,配合设备可以向网络控制设备发送保活报文,该保活报文经过配合设备与网络控制设备的链路,再传入总线,进入网络控制设备中。若总线未断开及网络控制设备完好的情况下,保活报文进入网络控制设备中,该保活报文信息包含监测网络控制设备是否出现故障和/或总线是否断开,网络控制设备根据保活报文信息生成保活报文响应,并将保活报文响应发送给配合设备,保活报文响应中包括一切正常运行的信息。此时,配合设备接收到保活报文响应,并确定网络控制设备正常运行,成功监测到网络控制设备未发生故障,及总线未断开。In a feasible manner, the cooperation device may send a keep-alive message to the network control device, and the keep-alive message passes through the link between the cooperation device and the network control device, and then is transmitted to the bus and enters the network control device. If the bus is not disconnected and the network control device is intact, the keep-alive message enters the network control device. The keep-alive message includes monitoring whether the network control device fails and/or the bus is disconnected. The keep-alive message information generates a keep-alive message response, and sends the keep-alive message response to the cooperating device, and the keep-alive message response includes all normal operation information. At this time, the cooperative device receives the keep-alive message response, and confirms that the network control device is operating normally, and successfully detects that the network control device is not faulty, and the bus is not disconnected.
同样的,若总线断开的情况下,保活报文经过配合设备与网络控制设备的链路,再进入总线,此时,总线断开,保活报文不能向上传输。一般的,保活报文在总线的前端上传输遇阻,配合设备在预设的时间内还没接收到保活报文的保活报文响应,则认定此时总线可能断开。其中,总线的前端即为总线与配合设备链路的后端的分界线,保活报文按照顺序先进入总线前端,再传到总线后端,可以理解的是,总线断开后,保活报文传输至总线前端后就不会继续向后传输。同样的,若网络控制设备出现故障,保活报文经过配合设备与网络控制设备的链路,再进入总线,通过总线进入网络控制设备,此时,网络控制设备故障,网络控制设备不能读取保活报文。进而配合设备在预设的时间内接收不到保活报文的保活报文响应。Similarly, if the bus is disconnected, the keep-alive message enters the bus through the link between the cooperation device and the network control device. At this time, the bus is disconnected, and the keep-alive message cannot be transmitted upwards. Generally, if the transmission of the keep-alive message is blocked on the front end of the bus, and the device has not received the keep-alive message response of the keep-alive message within a preset time, it is determined that the bus may be disconnected at this time. Among them, the front end of the bus is the dividing line between the bus and the back end of the coordinating device link. After the file is transmitted to the front end of the bus, it will not continue to be transmitted backwards. Similarly, if the network control device fails, the keep-alive message enters the bus through the link between the cooperation device and the network control device, and then enters the network control device through the bus. At this time, the network control device fails and the network control device cannot read Keep alive message. Further cooperate with the keep-alive message response that the device does not receive the keep-alive message within the preset time.
其中,配合设备对网络控制设备的监控可以是定期的,也可以是实时的。Wherein, the monitoring of the network control device by the cooperative device may be regular or real-time.
可选的,可以只是网络控制设备出现故障,也可以只是总线断开,也可以是网络控制设备出现故障,同时总线断开。Optionally, only the network control device fails, or only the bus is disconnected, or the network control device fails and the bus is disconnected at the same time.
本实施例提供一种转发设备的控制方法,该方法监测网络控制设备是否在正常运行,包括:监测网络控制设备是否发生故障及监测网络控制设备与各转发设备之间的总线是否中断。本实施例配合设备对网络控制设备进行监测,确定网络控制设备是否正常运行。配合设备对网络控制设备是否正常运行进行全面监控,网络控制设备出现故障,和/或总线断开都被认定为网络控制设备不能正常运行,对网络控制设备的全面监控,便于配合设备的后续工作及时展开。This embodiment provides a method for controlling a forwarding device. The method monitors whether the network control device is running normally, including: monitoring whether the network control device fails and whether the bus between the network control device and each forwarding device is interrupted. In this embodiment, the device cooperates with monitoring the network control device to determine whether the network control device is running normally. Cooperate with the equipment to conduct a comprehensive monitoring of the normal operation of the network control equipment. If the network control equipment fails and/or the bus is disconnected, it is considered that the network control equipment cannot operate normally. The comprehensive monitoring of the network control equipment facilitates the follow-up work of the equipment Unfold in time.
实施例三Embodiment Three
图4为本申请实施例三提供的一种转发设备的控制方法的流程示意图,基于实施例一至实施例二的描述,本申请实施例三在上述实施例中的任意一个实施例的基础上进一步细化,本实施例是监测网络控制设备是否在正常运行的一种可选实施方式,具体包括:Fig. 4 is a schematic flowchart of a control method for a forwarding device provided in Embodiment 3 of the present application. Based on the descriptions of Embodiment 1 to Embodiment 2, Embodiment 3 of the present application is further based on any one of the above-mentioned embodiments. In detail, this embodiment is an optional implementation of monitoring whether the network control device is running normally, specifically including:
S401,向网络控制设备发送保活报文。S401. Send a keep-alive message to the network control device.
具体的,配合设备向网络控制设备发送保活报文,保活报文经过配合设备与网络控制设备之间的链路和总线,最终进入到网络控制设备中。Specifically, the cooperation device sends a keep-alive message to the network control device, and the keep-alive message passes through the link and the bus between the cooperation device and the network control device, and finally enters the network control device.
具体的,配合设备可以定期发送保活报文,示例性的,在配合设备内部预设每10分钟向网络控制设备发送一次保活报文,根据实际情况,也可以是其它周期,此处不做限制。Specifically, the cooperating device can periodically send a keep-alive message. For example, the cooperating device is preset to send a keep-alive message to the network control device every 10 minutes. According to the actual situation, it can also be other periods, which are not mentioned here. Do limit.
S402,预设时间后判断是否接收到保活报文响应。S402. Determine whether a keep-alive message response is received after a preset time.
具体的,在配合设备内设定一个预设时间,该预设时间可用来衡量在这段时间内是否收到保活报文响应。示例性的,该预设时间可以是5分钟,也可以是其它数值。Specifically, a preset time is set in the cooperative device, and the preset time can be used to measure whether a keep-alive message response is received within this period of time. Exemplarily, the preset time may be 5 minutes, or other values.
在预设时间后,配合设备判断是否有接收到保活报文响应。若配合设备接收到保活报文响应,则判断是,执行S403;若配合设备未接收到保活报文响应,则判断否,执行S404。After a preset time, the cooperating device judges whether a keep-alive message response is received. If the cooperative device receives the keep-alive message response, it judges yes, and executes S403; if the cooperative device does not receive the keep-alive message response, judges no, and executes S404.
其中,保活报文响应包含了网络控制设备及总线完好的状态,即网络控制设备正常运行的信息。Wherein, the keep-alive message response includes the intact state of the network control device and the bus, that is, information about the normal operation of the network control device.
S403,确定网络控制设备在正常运行。S403. Determine that the network control device is running normally.
具体的,在预设时间内接收到保活报文响应,那么就表明保活报文进入到了网络控制设备中,由网络控制设备形成了一个保活报文响应,并按照原路径返回至配合设备。Specifically, if a keep-alive message response is received within the preset time, it indicates that the keep-alive message has entered the network control device, and the network control device forms a keep-alive message response, and returns to the cooperative network according to the original path. equipment.
可以理解的是,一旦有保活报文响应的形成,即代表着网络控制设备及总线完好,因此可以确定网络控制设备在正常运行。It can be understood that once a keep-alive message response is formed, it means that the network control device and the bus are intact, so it can be determined that the network control device is running normally.
S404,确定网络控制设备未在正常运行。S404. Determine that the network control device is not running normally.
具体的,在预设时间内未接收到保活报文响应,可以理解的是,保活报文未传入到总线或传入到总线但是未进入到网络控制设备中,以上两种情况网络控制设备都不能接收到保活报文,更加不可能形成保活报文响应。由于无法形成保活报文响应,配合设备在预设时间内就无法接收到保活报文响应,配合设备就能确定出是网络控制设备未正常运行。Specifically, if no keep-alive message response is received within the preset time, it can be understood that the keep-alive message is not transmitted to the bus or is transmitted to the bus but not into the network control device. In the above two cases, the network None of the control devices can receive the keep-alive message, and it is even more impossible to form a keep-alive message response. Since the keep-alive message response cannot be formed, the cooperating device cannot receive the keep-alive message response within a preset time, and the cooperating device can determine that the network control device is not operating normally.
在一种情况下,总线断开,但是网络设备完好,由于总线的断开,即使此时网络控制设备是正常的,但却不能向各转发设备发送收集、监测状态信息的报文,网络控制设备的所有通信数据都不能下发至转发设备中,因此,该情况,网络控制设备也是未正常运行。In one case, the bus is disconnected, but the network equipment is intact. Due to the disconnection of the bus, even though the network control equipment is normal at this time, it cannot send messages for collecting and monitoring status information to each forwarding equipment. All communication data of the device cannot be sent to the forwarding device, therefore, in this case, the network control device is not operating normally.
可以理解的是,保活报文响应是由网络控制设备形成的,因此总线断开和/或网络控制设备故障,都不能形成保活报文响应。此时,无论预设时间多长,配合设备都不会接收到保活报文响应,配合设备确定网络控制设备未在正常运行。It can be understood that the keep-alive message response is formed by the network control device, so the bus disconnection and/or the network control device failure cannot form a keep-alive message response. At this time, no matter how long the preset time is, the cooperating device will not receive a keep-alive message response, and the cooperating device determines that the network control device is not running normally.
其中,为了避免环境变化使得保活报文响应传输较慢,可以适当将预设时间调大。Wherein, in order to avoid slow transmission of the keep-alive message response due to environmental changes, the preset time may be appropriately increased.
本申请实施例提供一种转发设备的控制方法,该方法用于监测网络控制设备是否在正常运行,包括:向网络控制设备发送保活报文;预设时间后判断是否接收到保活报文响应;若确定接收到保活报文响应,则确定网络控制设备在正常运行;若确定未接收到保活报文响应,则确定网络控制设备未在正常运行。本实施例通过向网络控制设备发送保活报文,根据在预设时间后,配合设备判断是否接收到保活报文响应来确定网络控制设备是否正常运行,若配合设备确定接收到保活报文响应,则确定网络控制设备正常运行,若配合设备确定没有接收到保活报文响应,则确定网络控制设备未正常运行。由于配合设备判断是否接收到保活报文响应,可以及时确定出网络控制设备是否正常运行,实现了对网络控制设备的实时性很强的监控,提高了配合设备的功能性;当网络控制设备未正常运行时,便于激发配合设备执行后续工作。An embodiment of the present application provides a method for controlling a forwarding device. The method is used to monitor whether the network control device is running normally, including: sending a keep-alive message to the network control device; and judging whether the keep-alive message is received after a preset time Response; if it is determined that a keep-alive message response is received, it is determined that the network control device is operating normally; if it is determined that a keep-alive message response is not received, it is determined that the network control device is not operating normally. In this embodiment, by sending a keep-alive message to the network control device, it is determined whether the network control device is running normally according to whether the cooperative device has received a keep-alive message response after a preset time. If the cooperative device determines that no keep-alive message response is received, it determines that the network control device is not operating normally. Since the cooperative device judges whether it has received the keep-alive message response, it can promptly determine whether the network control device is running normally, which realizes strong real-time monitoring of the network control device and improves the functionality of the cooperative device; when the network control device When it is not running normally, it is convenient to stimulate and cooperate with the equipment to perform follow-up work.
实施例四Embodiment four
图5为本申请实施例四提供的一种转发设备的控制方法的流程示意图,基于实施例一至实施例三的描述,本申请实施例四在上述实施例中的任意一个实施例的基础上进一步细化,本实施例是确定各转发设备及对应链路的后续状态信息的一种可选实施方式,具体包括:Fig. 5 is a schematic flowchart of a control method for a forwarding device provided in Embodiment 4 of the present application. Based on the descriptions of Embodiment 1 to Embodiment 3, Embodiment 4 of the present application is based on any one of the above-mentioned embodiments. In detail, this embodiment is an optional implementation manner for determining the subsequent state information of each forwarding device and the corresponding link, specifically including:
S501,向相邻的转发设备发送探测报文,以使相邻的转发设备获取探测报文经过的链路信息,将链路信息携带到探测报文中,并向与其连接的转发设备继续转发探测报文。S501. Send a detection message to an adjacent forwarding device, so that the adjacent forwarding device obtains the link information passed by the detection message, carries the link information into the detection message, and continues forwarding to the forwarding device connected to it Probe message.
其中,探测报文是用于监测转发设备状态及对应链路。Wherein, the detection message is used to monitor the state of the forwarding device and the corresponding link.
具体的,配合设备确定网络控制设备未正常运行,配合设备立刻生成探测报文,并将探测报文分别发送给相邻的转发设备,可以理解的是,配合设备有至少一个相邻的转发设备,所有与配合设备相邻的转发设备都会获取到探测报文,同时,相邻的转发设备可以获取到此探测报文经过的链路信息,该相邻的转发设备并将链路信息携带到探测报文中。与该相邻的转发设备也有至少一个相邻转发设备,并将携带链路信息的探测报文继续发送至与其相邻的所有转发设备。Specifically, the cooperative device determines that the network control device is not operating normally, and the cooperative device immediately generates a detection message and sends the detection message to the adjacent forwarding device respectively. It can be understood that the cooperative device has at least one adjacent forwarding device , all forwarding devices adjacent to the coordinating device will obtain the detection message, and at the same time, the adjacent forwarding device can obtain the link information that the detection message passes through, and the adjacent forwarding device will carry the link information to the in the probe message. The adjacent forwarding device also has at least one adjacent forwarding device, and continues to send the detection message carrying the link information to all the adjacent forwarding devices.
示例性的,配合设备有两个相邻的转发设备,分别为转发设备A1和转发设备A2,其中,配合设备与转发设备A1通过链路a1连接,配合设备与转发设备A2通过链路a2连接。配合设备形成探测报文,并将探测报文经过链路a1发送给转发设备A1,以及经过链路a2发送给转发设备A2,转发设备A1获取探测报文经过的链路信息A-1,该链路信息A-1为探测报文经过链路a1进入到转发设备A1,转发设备A2获取探测报文经过的链路信息A-2,该链路信息A-2为探测报文经过链路a2进入到转发设备A2,转发设备A1将其链路信息A-1携带到该探测报文中,转发设备A2将其链路信息A-2携带到该探测报文中。转发设备A1又分别与转发设备B1和转发设备B2连接,其中,转发设备A1与转发设备B1通过链路b1连接,转发设备A1与转发设备B2通过链路b2连接,转发设备A1将携带链路信息A-1的探测报文继续分别发送至转发设备B1和转发设备B2,转发设备B1获取到探测报文,并获取到该探测报文所经过的链路信息,该链路信息B-1为携带链路信息A-1的探测报文经过链路b1进入到转发设备B1,转发设备B1将其链路信息B-1携带到上述已携带链路信息B-1的探测报文中,以此类推,直到将携带众多链路信息的探测报文传输至终点转发设备,或者是一个故障的转发设备,或者是断开的链路,探测报文才停止转发。Exemplarily, the coordinating device has two adjacent forwarding devices, namely forwarding device A1 and forwarding device A2, wherein the coordinating device is connected to the forwarding device A1 through a link a1, and the coordinating device is connected to the forwarding device A2 through a link a2 . Cooperate with the device to form a detection message, and send the detection message to the forwarding device A1 through the link a1, and send it to the forwarding device A2 through the link a2, and the forwarding device A1 obtains the link information A-1 passed by the detection message. The link information A-1 is that the detection message enters the forwarding device A1 through the link a1, and the forwarding device A2 obtains the link information A-2 through which the detection message passes. The link information A-2 is the link through which the detection message passes. a2 enters the forwarding device A2, the forwarding device A1 carries its link information A-1 into the detection message, and the forwarding device A2 carries its link information A-2 into the detection message. The forwarding device A1 is connected to the forwarding device B1 and the forwarding device B2 respectively, wherein the forwarding device A1 and the forwarding device B1 are connected through the link b1, and the forwarding device A1 and the forwarding device B2 are connected through the link b2, and the forwarding device A1 will carry the link The detection message of information A-1 continues to be sent to forwarding device B1 and forwarding device B2 respectively. Forwarding device B1 obtains the detection message and the link information that the detection message passes through. The link information B-1 For the detection message carrying the link information A-1 to enter the forwarding device B1 through the link b1, the forwarding device B1 carries its link information B-1 into the above detection message carrying the link information B-1, By analogy, until the detection message carrying a lot of link information is transmitted to the terminal forwarding device, or a faulty forwarding device, or a disconnected link, the forwarding of the detection message stops.
可以理解的是,若其中一条探测报文转发时遇到了故障的转发设备,或断开的链路,则该探测报文不再向下转发,但是不影响其余与该故障转发设备及断开链路不相关的转发设备继续向下转发。It can be understood that if one of the detection messages encounters a faulty forwarding device or a disconnected link during forwarding, the detection message will no longer be forwarded downwards, but it will not affect the rest of the faulty forwarding device and disconnection. Link-unrelated forwarding devices continue to forward downwards.
可以理解的是,在终点转发设备上,由于终点转发设备至少与一个转发设备连接,因此,若整个网络架构所有转发设备都完好,则终点转发设备会接收到至少一个携带众多链路信息的探测报文。It can be understood that on the terminal forwarding device, since the terminal forwarding device is connected to at least one forwarding device, if all the forwarding devices in the entire network architecture are intact, the terminal forwarding device will receive at least one probe carrying many link information message.
S502,接收相邻的转发设备发送的镜像探测报文,镜像探测报文中包括镜像探测报文所经过的转发链路。S502. Receive a mirroring detection message sent by an adjacent forwarding device, where the mirroring detection message includes a forwarding link through which the mirroring detection message passes.
具体的,若携带众多链路信息的探测报文转发至终点转发设备,则终点转发设备会获取当前探测报文所经过的最后一个链路信息,并将该链路信息携带到已携带众多链路信息中,终点转发设备会将探测报文中的链路信息进行整理,并按照整理后的链路信息原路返回,形成镜像探测报文。其中,镜像探测报文包含镜像探测报文所经过的转发链路,该转发链路中包含镜像探测报文所经过的转发设备、转发设备上的输入口和输出口,以及经过的链路。Specifically, if the detection message carrying many link information is forwarded to the terminal forwarding device, the terminal forwarding device will obtain the last link information that the current detection message passes through, and carry the link information to the terminal that has carried many link information. In the path information, the terminal forwarding device will sort out the link information in the detection message, and return the original path according to the sorted link information to form a mirrored detection message. Wherein, the mirror detection message includes a forwarding link through which the mirror detection message passes, and the forwarding link includes a forwarding device through which the mirror detection message passes, an input port and an output port on the forwarding device, and a passed link.
同样的,若探测报文在转发过程中,遇到一个转发设备出现故障,或者链路断开,则在该转发设备故障之前的一个转发设备,会将探测报文携带的链路进行整理,并按照整理后的链路信息原路返回,形成镜像探测报文。Similarly, if a forwarding device fails or the link is disconnected during the forwarding of the detection message, a forwarding device before the forwarding device fails will sort out the links carried by the detection message, And return to the original path according to the sorted link information to form a mirror detection message.
可以理解的是,镜像探测报文按照链路信息进行原路返回时,各转发设备会将各自镜像探测报文所经过的转发设备、转发设备上的输入口和输出口,以及经过的链路等信息进行读取,形成转发链路,当链路信息上所有转发设备的镜像探测报文所经过的转发设备、转发设备上的输入口和输出口,以及经过的链路等信息都进行读取和整合之后,形成一条完整的转发链路。It can be understood that when the mirrored detection message is returned on the original path according to the link information, each forwarding device will record the forwarding device, the input port and output port on the forwarding device, and the link passed by the mirrored detection message. Read other information to form a forwarding link. When the forwarding device, the input port and output port on the forwarding device, and the passed link are all read when the mirror detection message of all forwarding devices on the link information passes through After extraction and integration, a complete forwarding link is formed.
其中,与配合设备相邻的转发设备会形成最后的镜像探测报文,配合设备接收与其相邻的转发设备的镜像探测报文。Wherein, the forwarding device adjacent to the coordinating device will form a final mirror detection message, and the cooperating device receives the mirroring detection message of the forwarding device adjacent to it.
其中,镜像探测报文中也可以包含探测报文在转发时的链路信息。Wherein, the mirror detection message may also include link information when the detection message is forwarded.
可以理解的是,所有的转发设备、转发设备输入口和输出口,转发设备之间的链路都进行了编号,便于区分。其中,链路信息包含了链路编号,转发链路包含了对应转发设备的编号,转发设备输入口和输出口编号,以及转发设备之间链路编号等信息。It can be understood that all the forwarding devices, the input ports and output ports of the forwarding devices, and the links between the forwarding devices are numbered for easy identification. Wherein, the link information includes the link number, and the forwarding link includes information such as the number of the corresponding forwarding device, the numbers of the input port and the output port of the forwarding device, and the link numbers between the forwarding devices.
示例性的,根据上述S501的例子,配合设备发送探测报文,探测报文经过转发设备A1,转发至转发设备B1,该链路信息B-1包含:探测报文经过链路a1和链路b1。其中,转发设备A1有输入口a’1和输出口A’1,转发设备B1有输入口b’1和输出口B’1。该镜像探测报文的转发链路包含:镜像探测报文经过转发设备A1,输入口a’1和输出口A’1,转发设备B1,输入口b’1和输出口B’1,链路a1和链路b1。Exemplarily, according to the above example of S501, the cooperative device sends a detection message, and the detection message is forwarded to the forwarding device B1 through the forwarding device A1, and the link information B-1 includes: the detection message passes through the link a1 and the link b1. Among them, the forwarding device A1 has an input port a'1 and an output port A'1, and the forwarding device B1 has an input port b'1 and an output port B'1. The forwarding link of the mirror detection message includes: the mirror detection message passes through the forwarding device A1, the input port a'1 and the output port A'1, the forwarding device B1, the input port b'1 and the output port B'1, and the link a1 and link b1.
S503,根据转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息。S503. Determine subsequent state information of each forwarding device and corresponding link according to the forwarding link and at least one pre-stored terminal forwarding device identifier.
其中,配合设备预先存储至少一个终点转发设备标识,终点转发设备一般为两个或一个,当选择其中一个终点转发设备作为配合设备时,则终点转发设备为一个。Wherein, the coordinating device pre-stores at least one terminal forwarding device identifier, and generally there are two or one terminal forwarding devices, and when one of the terminal forwarding devices is selected as the coordinating device, there is one terminal forwarding device.
进一步的,配合设备根据转发链路及预先存储的至少一个终点转发设备标识确定各转发设备是否有故障或转发设备对应的链路是否有断开,进而可以确定各转发设备及对应链路的后续状态信息。Further, the cooperating device determines whether each forwarding device is faulty or whether the link corresponding to the forwarding device is disconnected according to the forwarding link and at least one pre-stored terminal forwarding device identifier, and then can determine the follow-up of each forwarding device and the corresponding link. status information.
在一种方式中,根据转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息,具体包括:In one manner, the subsequent state information of each forwarding device and the corresponding link is determined according to the forwarding link and at least one pre-stored terminal forwarding device identifier, specifically including:
确定转发链路中是否包括对应的终点转发设备标识。Determine whether the forwarding link includes the corresponding terminal forwarding device identifier.
若确定转发链路中不包括对应的终点转发设备标识,则根据转发链路确定存在故障的转发设备或存在断开的链路,确定存在故障的转发设备或对应断开链路的后续状态信息为故障状态,确定不存在故障的转发设备及对应断开链路的后续状态信息为正常状态。If it is determined that the forwarding link does not include the corresponding terminal forwarding device identifier, determine the faulty forwarding device or disconnected link according to the forwarding link, and determine the subsequent state information of the faulty forwarding device or the corresponding disconnected link It is a fault state, and it is determined that there is no faulty forwarding device and the subsequent state information corresponding to the disconnected link is a normal state.
若确定转发链路中包括对应的终点转发设备标识,则确定转发链路中不存在故障的转发设备及断开的链路,并确定各转发设备及对应链路的后续状态信息为正常状态。If it is determined that the forwarding link includes the corresponding terminal forwarding device identifier, it is determined that there is no faulty forwarding device and disconnected link in the forwarding link, and it is determined that the subsequent state information of each forwarding device and the corresponding link is in a normal state.
具体的,配合设备存储了至少一个终点转发设备的标识,若转发链路中有一个转发设备的编号与终点转发设备的标识一致,则代表该转发链路中包括对应的终点转发设备标识,即表明该镜像探测报文是在终点转发设备开始返回。需要说明的是,若转发链路是按照镜像探测报文所经过链路的顺序展示,一般情况下,确定转发链路的第一个转发设备编号是否与终点转发设备标识一致即可,若第一个转发设备编号与预先存储的终点转发设备标识一致,即可代表该转发链路中包括对应的终点转发设备标识。可选的,为了保险起见,以防转发链路中的信息不是按照镜像探测报文所经过链路的顺序记录存储的,也可以将转发链路中所有转发设备的编号都与终点转发设备标识进行匹配。Specifically, the coordinating device stores the identifier of at least one destination forwarding device, and if there is a forwarding device in the forwarding link whose number is consistent with the identifier of the destination forwarding device, it means that the forwarding link includes the corresponding destination forwarding device identifier, that is, Indicates that the mirror detection packet is returned at the terminal forwarding device. It should be noted that if the forwarding links are displayed in the order of the links passed by the mirror detection message, in general, it is enough to determine whether the first forwarding device number of the forwarding link is consistent with the terminal forwarding device ID. A forwarding device number that is consistent with a pre-stored terminal forwarding device ID means that the forwarding link includes a corresponding terminal forwarding device ID. Optionally, for the sake of insurance, in case the information in the forwarding link is not recorded and stored according to the order in which the mirror detection message passes through the link, it is also possible to match the numbers of all forwarding devices in the forwarding link with the terminal forwarding device identifier to match.
同样的,在转发链路中未发现有一个转发设备编号与终点转发设备标识匹配,则代表镜像探测报文并不是从终点转发设备开始按照原路返回至配合设备,而是在终点转发设备之前的转发设备开始返回,这就说明探测报文在转发时,遇到阻碍,无法顺利到达终点转发设备,只能到达终点转发设备之前的转发设备,并由该转发设备按照链路信息原路返回至配合设备,形成镜像探测报文,则可确定该转发链路中存在故障的转发设备或存在断开的链路。具体的,在转发链路中的第一个按照链路信息返回的转发设备,与之相邻且未在转发链路中的转发设备极有可能存在故障的转发设备或存在断开的链路。Similarly, if no forwarding device number is found to match the terminal forwarding device ID in the forwarding link, it means that the mirror detection message does not return to the partner device along the original path from the terminal forwarding device, but before the terminal forwarding device. The forwarding device starts to return, which means that the detection message encounters obstacles when forwarding, and cannot reach the destination forwarding device smoothly. It can only reach the forwarding device before the destination forwarding device, and the forwarding device will return according to the link information. To cooperate with the device to form a mirror detection message, it can be determined that there is a faulty forwarding device or a disconnected link in the forwarding link. Specifically, the first forwarding device in the forwarding link returned according to the link information, the adjacent forwarding device that is not in the forwarding link is very likely to have a faulty forwarding device or a disconnected link .
示例性的,转发链路中从转发设备3开始按照原路返回至配合设备,转发链路包含了转发设备3、转发设备2以及转发设备1,转发设备3与转发设备2和转发设备4连接,转发设备4是转发设备3的后一个转发设备,转发设备2是转发设备3的前一个转发设备,在该转发链路中,探测报文到达了转发设备3,但是未能继续向后转发报文,探测报文转发至转发设备3就完成了转发,转发设备3按照链路信息原路返回至配合设备,并形成了镜像探测报文,镜像探测报文包含了镜像探测报文经过的转发链路。可以理解的是,由于转发设备4存在故障或者转发设备4与转发设备3之间的链路断开,因此,探测报文在转发设备3就没有转发至转发设备4,根据转发链路中包含了转发设备3、转发设备2以及转发设备1的信息,即可确定转发设备4存在故障,或转发设备3与转发设备4存在断开链路,确定转发设备4及对应链路的后续状态信息为故障状态。Exemplarily, in the forwarding link, starting from the forwarding device 3 and returning to the cooperating device according to the original path, the forwarding link includes the forwarding device 3, the forwarding device 2 and the forwarding device 1, and the forwarding device 3 is connected to the forwarding device 2 and the forwarding device 4 , forwarding device 4 is the next forwarding device of forwarding device 3, and forwarding device 2 is the previous forwarding device of forwarding device 3. In this forwarding link, the probe message reaches forwarding device 3, but fails to continue forwarding The forwarding is completed by forwarding the detection message to the forwarding device 3. The forwarding device 3 returns to the cooperating device according to the link information and forms a mirrored detection message. The mirrored detection message contains the information passed by the mirrored detection message. forward link. It can be understood that, because the forwarding device 4 is faulty or the link between the forwarding device 4 and the forwarding device 3 is disconnected, the probe message is not forwarded to the forwarding device 4 at the forwarding device 3. According to the After knowing the information of forwarding device 3, forwarding device 2, and forwarding device 1, it can be determined that forwarding device 4 is faulty, or that there is a disconnected link between forwarding device 3 and forwarding device 4, and determine the subsequent state information of forwarding device 4 and the corresponding link to a fault state.
其中,转发设备3、转发设备2和转发设备1不存在故障,以及转发设备1到转发设备3之间的链路不存在断开,进而确定转发设备3、转发设备2、转发设备1及其对应链路的后续状态信息为正常状态。Among them, forwarding device 3, forwarding device 2 and forwarding device 1 are not faulty, and the link between forwarding device 1 and forwarding device 3 is not disconnected, and then it is determined that forwarding device 3, forwarding device 2, forwarding device 1 and their The subsequent state information of the corresponding link is normal state.
具体的,在转发链路中发现有一个转发设备编号与终点转发设备标识匹配,则代表镜像探测报文是从终点转发设备开始按照原路返回至配合设备,这就说明探测报文转发至终点转发设备,并从终点转发设备按照链路信息原路返回至配合设备,形成镜像探测报文,则可确定该转发链路中不存在故障的转发设备或断开的链路。具体的,在转发链路中包含了终点设备及其前面的转发设备,代表该转发链路顺通无阻,探测报文可以顺利从配合设备转发至终点设备,并由终点设备原路返回至配合设备,形成镜像探测报文,在此期间经过的所有转发设备未故障,经过的转发设备之间的链路未断开,可以确定该转发链路中不存在故障的转发设备及断开的链路,进而确定各转发设备及对应链路的后续状态信息为正常状态。Specifically, if a forwarding device number is found to match the end point forwarding device ID in the forwarding link, it means that the mirror detection message is returned to the partner device along the original path from the end point forwarding device, which means that the detection message is forwarded to the end point The forwarding device returns to the cooperating device according to the original path of the link information from the terminal forwarding device to form a mirror detection message, so it can be determined that there is no faulty forwarding device or disconnected link in the forwarding link. Specifically, the forwarding link includes the terminal device and the forwarding device in front of it, which means that the forwarding link is unimpeded, and the detection message can be smoothly forwarded from the cooperative device to the terminal device, and returned by the terminal device to the cooperative device, forming a mirrored detection message. During this period, all the forwarding devices that pass through are not faulty, and the links between the passing forwarding devices are not disconnected. It can be determined that there are no faulty forwarding devices and disconnected links in the forwarding link. path, and then determine that the subsequent state information of each forwarding device and the corresponding link is in a normal state.
在上述示例性的例子中,若转发设备3为终点设备,转发链路中从转发设备3开始按照原路返回至配合设备,转发链路包含了转发设备3、转发设备2以及转发设备1,则可确定转发设备3、转发设备2和转发设备1不存在故障,以及转发设备1到转发设备3之间的链路不存在断开,进而确定转发设备3、转发设备2、转发设备1及其对应链路的后续状态信息为正常状态。In the above illustrative example, if the forwarding device 3 is the terminal device, the forwarding link starts from the forwarding device 3 and returns to the cooperating device according to the original path, and the forwarding link includes the forwarding device 3, the forwarding device 2 and the forwarding device 1, Then it can be determined that forwarding device 3, forwarding device 2 and forwarding device 1 are not faulty, and the link between forwarding device 1 and forwarding device 3 is not disconnected, and then it is determined that forwarding device 3, forwarding device 2, forwarding device 1 and The subsequent state information of the corresponding link is normal state.
在该方式中,根据转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息,包括:确定转发链路中是否包括对应的终点转发设备标识;若确定转发链路中不包括对应的终点转发设备标识,则根据转发链路确定存在故障的转发设备或存在断开的链路,确定存在故障的转发设备或对应断开链路的后续状态信息为故障状态,确定不存在故障的转发设备及对应断开链路的后续状态信息为正常状态;若确定转发链路中包括对应的终点转发设备标识,则确定转发链路中不存在故障的转发设备及断开的链路,并确定各转发设备及对应链路的后续状态信息为正常状态。本实施例中根据转发链路是否包括对应终点转发设备标识,确定该转发链路中是否存在故障的转发设备或断开的链路,进而确定转发设备及对应链路的后续状态信息。具体的,若确定转发链路中不包括对应的终点转发设备标识,则根据转发链路确定该网络架构中存在故障的转发设备或断开的链路,该故障的转发设备或对应链路的后续状态信息为故障状态,该转发链路中的转发设备及对应链路即为不存在故障的转发设备及不存在断开的链路,则确定不存在故障的转发设备及对应断开链路的后续状态信息为正常状态;若确定转发链路中包括终点转发设备标识,则确定转发链路中不存在故障的转发设备及断开的链路,并确定该转发链路中,各转发设备及对应链路的后续状态信息为正常状态。配合设备对各转发设备及对应链路进行全面监控,能够更加准确确定出各转发设备及对应链路的后续状态信息,进而可以更加准确地确定各转发设备及对应链路是故障状态,还是正常状态。In this manner, determining the subsequent state information of each forwarding device and the corresponding link according to the forwarding link and at least one pre-stored terminal forwarding device ID includes: determining whether the forwarding link includes the corresponding terminal forwarding device ID; If the forwarding link does not include the corresponding terminal forwarding device identifier, then according to the forwarding link, it is determined that there is a faulty forwarding device or there is a disconnected link, and the follow-up status information of the faulty forwarding device or the corresponding disconnected link is determined to be faulty If it is determined that there is no faulty forwarding device and the subsequent state information of the corresponding disconnected link is normal; if it is determined that the forwarding link includes the corresponding terminal forwarding device identifier, then it is determined that there is no faulty forwarding device and disconnected links, and determine that the subsequent state information of each forwarding device and the corresponding link is in a normal state. In this embodiment, according to whether the forwarding link includes the identifier of the corresponding terminal forwarding device, it is determined whether there is a faulty forwarding device or a disconnected link in the forwarding link, and then the subsequent status information of the forwarding device and the corresponding link is determined. Specifically, if it is determined that the forwarding link does not include the corresponding terminal forwarding device identifier, it is determined according to the forwarding link that there is a faulty forwarding device or a disconnected link in the network architecture, and the faulty forwarding device or the corresponding link Subsequent state information is a fault state, and the forwarding device and the corresponding link in the forwarding link are forwarding devices without faults and disconnected links, then it is determined that there are no faulty forwarding devices and corresponding disconnected links The follow-up status information is normal; if it is determined that the forwarding link includes the terminal forwarding device identifier, then it is determined that there is no faulty forwarding device and disconnected link in the forwarding link, and it is determined that in the forwarding link, each forwarding device and the follow-up state information of the corresponding link are in normal state. Cooperating with the equipment to conduct comprehensive monitoring of each forwarding device and corresponding link, the subsequent status information of each forwarding device and corresponding link can be determined more accurately, and then it can be more accurately determined whether each forwarding device and corresponding link is in a fault state or normal state.
本实施例提供一种转发设备的控制方法,该方法用于确定各转发设备及对应链路的后续状态信息,包括:向相邻的转发设备发送探测报文,以使相邻的转发设备获取探测报文经过的链路信息,将链路信息携带到探测报文中,并向与其连接的转发设备继续转发探测报文;接收相邻的转发设备发送的镜像探测报文,镜像探测报文中包括镜像探测报文所经过的转发链路;根据转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息。本实施例配合设备通过向相邻的转发设备发送探测报文,获取探测报文经过的链路信息,并继续向相邻的转发设备发送携带链路信息的探测报文,配合设备接收镜像探测报文,该镜像探测报文包含经过的转发链路,配合设备根据转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息。配合设备收集及确定各转发设备及对应链路的后续状态信息,根据至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息,准确率高,实现了对各转发设备及对应链路的准确监控。This embodiment provides a method for controlling a forwarding device. The method is used to determine the subsequent status information of each forwarding device and the corresponding link, including: sending a detection message to an adjacent forwarding device, so that the adjacent forwarding device obtains Detect the link information that the message passes through, carry the link information into the detection message, and continue to forward the detection message to the forwarding device connected to it; receive the mirror detection message sent by the adjacent forwarding device, and mirror the detection message Including the forwarding link that the mirror detection message passes through; determine the subsequent state information of each forwarding device and the corresponding link according to the forwarding link and at least one terminal forwarding device identifier stored in advance. In this embodiment, the cooperative device obtains the link information that the detection message passes through by sending a detection message to the adjacent forwarding device, and continues to send the detection message carrying the link information to the adjacent forwarding device, and cooperates with the device to receive the mirror image detection message, the mirror detection message includes the passed forwarding link, and the coordinating device determines the subsequent state information of each forwarding device and the corresponding link according to the forwarding link and at least one terminal forwarding device identifier stored in advance. Cooperate with the equipment to collect and determine the follow-up state information of each forwarding device and corresponding link, and determine the follow-up state information of each forwarding device and corresponding link according to at least one end-point forwarding device identifier, with high accuracy, and realize the monitoring of each forwarding device and corresponding link Accurate monitoring of the road.
实施例五Embodiment five
图6为本申请实施例五提供的一种转发设备的控制方法的流程示意图,基于实施例一至实施例四的描述,本申请实施例五在上述实施例中的任意一个实施例的基础上进一步细化,本实施例是关于监测网络控制设备是否恢复正常运行的一种可选实施方式,具体包括:Fig. 6 is a schematic flow chart of a control method for a forwarding device provided in Embodiment 5 of the present application. Based on the descriptions of Embodiment 1 to Embodiment 4, Embodiment 5 of the present application is based on any one of the above-mentioned embodiments. In detail, this embodiment is an optional implementation of monitoring whether the network control device resumes normal operation, specifically including:
S601,周期性向网络控制设备发送保活报文。S601. Periodically send a keep-alive message to the network control device.
其中,配合设备按照实施例三的描述,确定了网络控制设备未正常运行工作,此时,配合设备不仅要收集各转发设备及对应链路的后续状态信息,配合设备还要周期性向网络控制设备发送保活报文,确定网络控制设备是否恢复正常工作。周期性间隔时间可以根据自身需要设定,此处不做限制。Among them, according to the description of the third embodiment, the cooperating device determines that the network control device is not operating normally. Send a keep-alive message to determine whether the network control device resumes normal operation. The periodic interval time can be set according to one's own needs, and there is no limitation here.
S602,每次发送保活报文后,在预设时间后判断是否接收到保活报文响应。S602. After sending the keep-alive message each time, judge whether a keep-alive message response is received after a preset time.
其中,配合设备向网络控制设备每次发送保活报文后,自身按照预设时间后判断是否接收到保活报文响应。Wherein, after sending the keep-alive message to the network control device each time, the cooperation device judges whether to receive the keep-alive message response according to a preset time.
在预设时间后,配合设备判断是否有接收到保活报文响应。若配合设备接收到保活报文响应,则判断是;若配合设备未接收到保活报文响应,则判断否。After a preset time, the cooperating device judges whether a keep-alive message response is received. If the cooperative device receives the keep-alive message response, it judges yes; if the cooperative device does not receive the keep-alive message response, it judges no.
其中,保活报文响应包含了网络控制设备及总线完好的状态,及网络控制设备恢复运行的信息。Wherein, the keep-alive message response includes the intact state of the network control device and the bus, and information about the network control device resuming operation.
其中,在预设时间后,若是,则接收到保活报文响应,则执行S603;若否,则未接收到保活报文响应,则执行S604。Wherein, after the preset time, if yes, a keep-alive message response is received, and S603 is performed; if not, a keep-alive message response is not received, and S604 is performed.
S603,确定网络控制设备恢复正常运行。S603. Determine that the network control device resumes normal operation.
其中,可以重新部署一个新的网络控制设备接管,和/或新的总线连接整个网络架构,也可以是对未正常运行的网络控制设备和/或总线进行修复,从而使得网络控制设备恢复正常运行。Among them, a new network control device can be redeployed to take over, and/or a new bus can be used to connect the entire network architecture, or a network control device and/or bus that is not operating normally can be repaired, so that the network control device can resume normal operation .
具体的,在预设时间内接收到保活报文响应,那么就表明保活报文进入到了网络控制设备中,由网络控制设备形成了一个保活报文响应,并按照原路径返回至配合设备。Specifically, if a keep-alive message response is received within the preset time, it indicates that the keep-alive message has entered the network control device, and the network control device forms a keep-alive message response, and returns to the cooperative network according to the original path. equipment.
可以理解的是,一旦有保活报文响应的形成,即代表着网络控制设备已经恢复正常运行。It can be understood that once a keep-alive message response is formed, it means that the network control device has resumed normal operation.
S604,确定网络控制设备未恢复正常运行。S604. Determine that the network control device has not resumed normal operation.
具体的,在预设时间内未接收到保活报文响应,可以理解的是,保活报文未传入到总线或传入到总线但是未进入到网络控制设备中,以上两种情况网络控制设备都不能接收到保活报文,更加不可能形成保活报文响应,因此配合设备可以确定网络控制设备未恢复正常运行。具体描述参考S304,此处不再赘述。Specifically, if no keep-alive message response is received within the preset time, it can be understood that the keep-alive message is not transmitted to the bus or is transmitted to the bus but not into the network control device. In the above two cases, the network The control device cannot receive the keep-alive message, and it is even more impossible to form a keep-alive message response. Therefore, the cooperating device can determine that the network control device has not resumed normal operation. For specific description, refer to S304, which will not be repeated here.
可以理解的是,本实施例与实施例三的方法一致,本实施例是对网络控制设备出现故障和/或总线断开之后,监测网络控制设备是否恢复正常运行,该方法与实施例三中监测网络控制设备是否正常运行一样。It can be understood that this embodiment is consistent with the method in Embodiment 3. This embodiment is to monitor whether the network control device resumes normal operation after the network control device fails and/or the bus is disconnected. This method is the same as that in Embodiment 3. The same is true for monitoring network control devices for proper functioning.
本实施例提供的一种转发设备的控制方法,该方法监测网络控制设备是否恢复正常运行,包括:周期性向网络控制设备发送保活报文;每次发送保活报文后,在预设时间后判断是否接收到保活报文响应;若确定接收到保活报文响应,则确定网络控制设备恢复正常运行;若确定未接收到保活报文响应,则确定网络控制设备未恢复正常运行。本实施例中,配合设备周期性监测网络控制设备是否恢复正常工作,若在预设时间后,接收到保活报文响应,则确定网络控制设备恢复正常工作,若未接收到保活报文响应,则确定网络控制设备未恢复正常运行。配合设备周期性监测网络控制设备,可以及时得知之前未正常运行的网络控制设备是否恢复运行,进而配合设备可以及时将后续状态信息发送至网络控制设备;配合设备监测网络控制设备的方式简单,操作性强,判断是否接收到保活报文响应的准确率高。This embodiment provides a method for controlling a forwarding device. The method monitors whether the network control device resumes normal operation, including: periodically sending a keep-alive message to the network control device; Then judge whether to receive the keep-alive message response; if it is determined that the keep-alive message response is received, it is determined that the network control device resumes normal operation; if it is determined that the keep-alive message response is not received, then it is determined that the network control device has not resumed normal operation . In this embodiment, the cooperative device periodically monitors whether the network control device resumes normal operation. If a keep-alive message response is received after a preset time, it is determined that the network control device resumes normal operation. If the keep-alive message is not received response, it is determined that the network control device has not resumed normal operation. Cooperating with the equipment to periodically monitor the network control equipment, you can know in time whether the network control equipment that was not in normal operation has resumed operation, and then cooperate with the equipment to send subsequent status information to the network control equipment in time; the way of cooperating with the equipment to monitor the network control equipment is simple, The operability is strong, and the accuracy rate of judging whether to receive the keep-alive message response is high.
实施例六Embodiment six
基于实施例一至实施例五的描述,本申请实施例六在上述实施例中的任意一个实施例的基础上进一步细化,本实施例是若确定网络控制设备在正常运行时的一种可选实施方式,具体包括:Based on the description of Embodiment 1 to Embodiment 5, Embodiment 6 of the present application is further refined on the basis of any one of the above embodiments. Implementation methods include:
接收网络控制设备发送的流表更新指令,流表更新指令中包括至少一个转发设备对应的新流表;根据新流表对对应的转发设备的流表进行更新。Receive a flow table update instruction sent by the network control device, the flow table update instruction includes a new flow table corresponding to at least one forwarding device; update the flow table of the corresponding forwarding device according to the new flow table.
具体的,网络控制设备在正常运行下,监测到至少一个转发设备故障,或该转发设备与相邻转发设备之间链路断开,此时,网络控制设备将对相关的转发设备进行流表更新,并将更新后的流表进行存储。同时,网络控制设备向配合设备发送流表更新指令,该流表更新指令中包括至少一个转发设备对应的新流表,配合设备接收网络控制设备发送的流表更新指令,并进行更新。具体的,配合设备识别出更新指令中需要更新的转发设备的流表,并在自身的存储的流表中找到对应的转发设备旧流表,根据新流表对对应的转发设备的流表进行更新,并将新流表存储在配合设备中。Specifically, when the network control device detects that at least one forwarding device is faulty or the link between the forwarding device and the adjacent forwarding device is disconnected during normal operation, the network control device will perform a flow table on the relevant forwarding device update, and store the updated flow table. At the same time, the network control device sends a flow table update instruction to the cooperation device, the flow table update instruction includes at least one new flow table corresponding to the forwarding device, and the cooperation device receives and updates the flow table update instruction sent by the network control device. Specifically, the cooperating device identifies the flow table of the forwarding device that needs to be updated in the update instruction, and finds the old flow table of the corresponding forwarding device in its own stored flow table, and performs the flow table of the corresponding forwarding device according to the new flow table. update, and store the new flow table in the partner device.
需要说明的是,若有转发设备与网络控制设备之间的链路断开,则网络控制设备可以对该转发设备及相邻转发设备进行更新,网络控制设备可以将更新后的流表发送至配合设备更新并存储,同时,也会发送给该转发设备及相邻转发设备。由于该转发设备与网络控制设备之间链路断开,该转发设备并不能接收到新流表,而与该转发设备相邻的转发设备可以接收到新流表,并按照新流表决策进行通信数据的转发。It should be noted that if the link between the forwarding device and the network control device is disconnected, the network control device can update the forwarding device and adjacent forwarding devices, and the network control device can send the updated flow table to The cooperating device is updated and stored, and at the same time, it is also sent to the forwarding device and adjacent forwarding devices. Since the link between the forwarding device and the network control device is disconnected, the forwarding device cannot receive the new flow table, but the forwarding devices adjacent to the forwarding device can receive the new flow table and make decisions according to the new flow table Forwarding of communication data.
本实施例提供一种转发设备的控制方法,该方法若确定网络控制设备在正常运行时,还包括:接收网络控制设备发送的流表更新指令,流表更新指令中包括至少一个转发设备对应的新流表;根据新流表对对应的转发设备的流表进行更新。本实施例当网络控制设备在正常运行时,若网络控制设备监测到至少一个转发设备出现故障或链路断开,则可以生成相关转发设备的新流表,并将包括至少一个转发设备对应的新流表的指令发送给配合设备,配合设备接收流表更新指令,并根据新流表对对应的转发设备的流表进行更新,并存储。配合设备对新流表的更新及存储,有利于保护最新的流表,以防新流表丢失,配合设备具有备份及更新的作用;配合设备保护新流表,有利于后续网络控制设备根据新流表做出决策。This embodiment provides a method for controlling a forwarding device. If it is determined that the network control device is operating normally, the method further includes: receiving a flow table update instruction sent by the network control device, and the flow table update instruction includes at least one corresponding to the forwarding device. New flow table; update the flow table of the corresponding forwarding device according to the new flow table. In this embodiment, when the network control device is running normally, if the network control device detects that at least one forwarding device is faulty or the link is disconnected, it can generate a new flow table of the relevant forwarding device, and will include at least one forwarding device corresponding to The instruction of the new flow table is sent to the cooperative device, and the cooperative device receives the flow table update instruction, and updates the flow table of the corresponding forwarding device according to the new flow table, and stores it. Cooperating with the device to update and store the new flow table is beneficial to protect the latest flow table, in case the new flow table is lost, and cooperate with the device to have the function of backup and update; cooperate with the device to protect the new flow table, which is beneficial to the subsequent network control device according to the new flow table. Flow tables make decisions.
实施例七Embodiment seven
下面是本申请的装置实施例,图7为本申请实施例七提供的一种转发设备的控制装置的示意图。如图7所示,该装置700包括以下模块。The following are device embodiments of the present application, and FIG. 7 is a schematic diagram of a control device for a forwarding device provided in Embodiment 7 of the present application. As shown in FIG. 7 , the device 700 includes the following modules.
获取模块701,用于从网络控制设备中获取各转发设备对应的流表、各转发设备及对应链路的初始状态信息。The obtaining module 701 is configured to obtain the flow table corresponding to each forwarding device, the initial state information of each forwarding device and the corresponding link from the network control device.
监测模块702,用于监测网络控制设备是否在正常运行。A monitoring module 702, configured to monitor whether the network control device is running normally.
确定模块703,用于若确定网络控制设备未在正常运行,则确定各转发设备及对应链路的后续状态信息。The determination module 703 is configured to determine subsequent state information of each forwarding device and corresponding link if it is determined that the network control device is not operating normally.
发送模块704,用于若监测到网络控制设备恢复正常运行,则将流表及后续状态信息发送给网络控制设备。The sending module 704 is configured to send the flow table and subsequent state information to the network control device if it is detected that the network control device resumes normal operation.
在一种可行方式中,监测模块702,具体用于:In a feasible manner, the monitoring module 702 is specifically used for:
监测网络控制设备是否发生故障及监测网络控制设备与各转发设备之间的总线是否中断。Monitor whether the network control equipment fails and whether the bus between the network control equipment and each forwarding equipment is interrupted.
在一种可行方式中,监测模块702,具体用于:In a feasible manner, the monitoring module 702 is specifically used for:
向网络控制设备发送保活报文;预设时间后判断是否接收到保活报文响应;若确定接收到保活报文响应,则确定网络控制设备在正常运行;若确定未接收到保活报文响应,则确定网络控制设备未在正常运行。Send a keep-alive message to the network control device; judge whether a keep-alive message response is received after a preset time; if it is determined that the keep-alive message response is received, then determine that the network control device is operating normally; if it is determined that the keep-alive message is not received message response, it is determined that the network control device is not operating normally.
在一种可行方式中,确定模块703,具体用于:In a feasible manner, the determining module 703 is specifically configured to:
向相邻的转发设备发送探测报文,以使相邻的转发设备获取探测报文经过的链路信息,将链路信息携带到探测报文中,并向与其连接的转发设备继续转发探测报文;接收相邻的转发设备发送的镜像探测报文,镜像探测报文中包括镜像探测报文所经过的转发链路;根据转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息。Send a detection message to the adjacent forwarding device, so that the adjacent forwarding device obtains the link information passed by the detection message, carries the link information into the detection message, and continues to forward the detection message to the forwarding device connected to it Receive the mirroring detection message sent by the adjacent forwarding device, the mirroring detection message includes the forwarding link through which the mirroring detection message passes; determine each forwarding device according to the forwarding link and at least one terminal forwarding device identifier stored in advance and subsequent status information of the corresponding link.
在一种可行方式中,确定模块703,在根据转发链路及预先存储的至少一个终点转发设备标识确定各转发设备及对应链路的后续状态信息时,具体用于:In a feasible manner, the determination module 703 is specifically used to:
确定转发链路中是否包括对应的终点转发设备标识;若确定转发链路中不包括对应的终点转发设备标识,则根据转发链路确定存在故障的转发设备或存在断开的链路,确定存在故障的转发设备或对应断开链路的后续状态信息为故障状态,确定不存在故障的转发设备及对应断开链路的后续状态信息为正常状态;若确定转发链路中包括对应的终点转发设备标识,则确定转发链路中不存在故障的转发设备及断开的链路,并确定各转发设备及对应链路的后续状态信息为正常状态。Determine whether the forwarding link includes the corresponding terminal forwarding device identifier; if it is determined that the forwarding link does not include the corresponding terminal forwarding device identifier, determine that there is a faulty forwarding device or a disconnected link according to the forwarding link, and determine that there is a The faulty forwarding device or the subsequent state information corresponding to the disconnected link is in the fault state, and it is determined that there is no faulty forwarding device and the subsequent state information corresponding to the disconnected link is in the normal state; if it is determined that the forwarding link includes the corresponding terminal forwarding equipment identification, it is determined that there is no faulty forwarding equipment and disconnected link in the forwarding link, and it is determined that the subsequent state information of each forwarding equipment and the corresponding link is in a normal state.
在一种可行方式中,监测模块702,具体用于:In a feasible manner, the monitoring module 702 is specifically used for:
周期性向网络控制设备发送保活报文;每次发送保活报文后,在预设时间后判断是否接收到保活报文响应;若确定接收到保活报文响应,则确定网络控制设备恢复正常运行;若确定未接收到保活报文响应,则确定网络控制设备未恢复正常运行。Periodically send a keep-alive message to the network control device; after sending a keep-alive message each time, judge whether a keep-alive message response is received after a preset time; if it is determined that a keep-alive message response is received, determine whether the network control device Resuming normal operation; if it is determined that no keep-alive message response is received, it is determined that the network control device has not resumed normal operation.
在一种可行方式中,本实施例提供的一种转发设备的控制装置,还包括:更新模块。In a feasible manner, the device for controlling a forwarding device provided in this embodiment further includes: an update module.
其中,更新模块,用于:若确定网络控制设备在正常运行,则接收网络控制设备发送的流表更新指令,流表更新指令中包括至少一个转发设备对应的新流表;根据新流表对对应的转发设备的流表进行更新。Wherein, the update module is used to: if it is determined that the network control device is operating normally, then receive a flow table update instruction sent by the network control device, the flow table update instruction includes at least one new flow table corresponding to the forwarding device; The flow table of the corresponding forwarding device is updated.
本实施例提供的一种转发设备的控制装置可以执行实施例一至实施例六任意一个实施例提供的转发设备的控制方法,具体的技术方案和效果可以参见前述方法实施例的相关内容,在此不再赘述。The device for controlling a forwarding device provided in this embodiment can execute the method for controlling a forwarding device provided in any one of Embodiments 1 to 6. For specific technical solutions and effects, please refer to the relevant content of the foregoing method embodiments. Here No longer.
实施例八Embodiment eight
图8为本申请实施例八提供的一种配合设备的结构示意图。如图8所示,该配合设备800包括:处理器801,以及与处理器通信连接的存储器802和收发器803;存储器802存储计算机执行指令;收发器803,用于收发数据;处理器801执行存储器802存储的计算机执行指令,以实现如上述实施例一至实施例六任意一个方法实施例,具体实现方式和技术效果类似,这里不再赘述。FIG. 8 is a schematic structural diagram of a matching device provided in Embodiment 8 of the present application. As shown in FIG. 8 , the matching device 800 includes: a processor 801, a memory 802 and a transceiver 803 connected in communication with the processor; the memory 802 stores instructions executed by the computer; the transceiver 803 is used to send and receive data; the processor 801 executes The computer stored in the memory 802 executes instructions to implement any one of the method embodiments in Embodiment 1 to Embodiment 6 above. The specific implementation manner and technical effect are similar and will not be repeated here.
其中,本实施例中,存储器802和处理器801通过总线连接。总线可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线、外部设备互连(PeripheralComponent Interconnect,简称为PCI)总线或扩展工业标准体系结构(Extended IndustryStandard Architecture,简称为EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Wherein, in this embodiment, the memory 802 and the processor 801 are connected through a bus. The bus may be an Industry Standard Architecture (Industry Standard Architecture, ISA for short) bus, a Peripheral Component Interconnect (PCI for short) bus, an Extended Industry Standard Architecture (EISA for short) bus, or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 8 , but it does not mean that there is only one bus or one type of bus.
实施例九Embodiment nine
本申请提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,计算机执行指令被处理器执行时用于实现如上述实施例一至实施例六任意一个方法实施例,具体实现方式和技术效果类似,这里不再赘述。The present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement any method embodiment as in the first to sixth embodiments above, and the specific implementation The method and technical effect are similar and will not be repeated here.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求书指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求书来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210972748.2A CN115348153B (en) | 2022-08-15 | 2022-08-15 | Control method, device, equipment and storage medium of forwarding equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210972748.2A CN115348153B (en) | 2022-08-15 | 2022-08-15 | Control method, device, equipment and storage medium of forwarding equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115348153A CN115348153A (en) | 2022-11-15 |
CN115348153B true CN115348153B (en) | 2023-07-18 |
Family
ID=83952843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210972748.2A Active CN115348153B (en) | 2022-08-15 | 2022-08-15 | Control method, device, equipment and storage medium of forwarding equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115348153B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116016124A (en) * | 2022-12-14 | 2023-04-25 | 中国联合网络通信集团有限公司 | SDN network data processing method, device, equipment and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332726A (en) * | 2016-04-29 | 2017-11-07 | 华为技术有限公司 | A kind of detection method and device of communication link |
CN113708995A (en) * | 2021-08-20 | 2021-11-26 | 深圳市风云实业有限公司 | Network fault diagnosis method, system, electronic equipment and storage medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014113957A1 (en) * | 2013-01-24 | 2014-07-31 | 华为技术有限公司 | Link management method, device and communication system |
WO2015027477A1 (en) * | 2013-08-30 | 2015-03-05 | 华为技术有限公司 | Flow table control method, apparatus, switch and controller |
JP2016063285A (en) * | 2014-09-16 | 2016-04-25 | 富士通株式会社 | Control device, communication system, and control method |
CN104283738B (en) * | 2014-10-11 | 2018-07-17 | 新华三技术有限公司 | A kind of chain circuit detecting method and equipment |
CN104283722B (en) * | 2014-10-29 | 2018-05-08 | 新华三技术有限公司 | SDN link-state informations collection method and device |
CN104363084A (en) * | 2014-11-28 | 2015-02-18 | 杭州华三通信技术有限公司 | Link status synchronization method and device |
CN108270669B (en) * | 2016-12-30 | 2022-08-02 | 中兴通讯股份有限公司 | Service recovery device, main controller, system and method of SDN network |
CN107547249A (en) * | 2017-06-15 | 2018-01-05 | 新华三技术有限公司 | Link switch-over method, device, SDN switch, controller and storage medium |
CN107395444A (en) * | 2017-09-06 | 2017-11-24 | 郑州云海信息技术有限公司 | One kind is based on SDN controller failures recovery system and method |
-
2022
- 2022-08-15 CN CN202210972748.2A patent/CN115348153B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332726A (en) * | 2016-04-29 | 2017-11-07 | 华为技术有限公司 | A kind of detection method and device of communication link |
CN113708995A (en) * | 2021-08-20 | 2021-11-26 | 深圳市风云实业有限公司 | Network fault diagnosis method, system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115348153A (en) | 2022-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11496355B2 (en) | Method for processing forwarding device fault, device, and controller | |
US9838215B2 (en) | Ethernet ring protection node with node-level redundancy | |
US10708132B2 (en) | Technique for handling a status change in an interconnect node | |
CN102355366B (en) | Member-stacking device and method for managing member-stacking device at split stacking moment | |
CN106487679B (en) | Active-standby switching system and switching method of Ethernet switch | |
JP2004173136A (en) | Network management device | |
CN102882704B (en) | Link protection method in the soft reboot escalation process of a kind of ISSU and equipment | |
CN111800354B (en) | Message processing method and device, message processing equipment and storage medium | |
CN115348153B (en) | Control method, device, equipment and storage medium of forwarding equipment | |
CN105897472A (en) | Data processing system providing service continuity protection | |
CN112532731B (en) | Automatic optimization method and device for multiple market data sources | |
CN115152192A (en) | PCE controlled network reliability | |
CN102143011B (en) | Device and method for realizing network protection | |
CN102136965A (en) | Method for detecting tunnel faults and traffic engineering (TE) node | |
CN102420737A (en) | Method for processing fault in MRP ring network and MRP ring network | |
CN113949623B (en) | MLAG double-master exception repairing method and device, electronic equipment and storage medium | |
CN113961491A (en) | Data transmission method, device, routing equipment and computer readable storage medium | |
CN110798399A (en) | Network automatic link backup method and network system | |
WO2022022276A1 (en) | Preset path information obtaining method, entity, service control unit, and storage medium | |
US11853175B2 (en) | Cluster system and restoration method that performs failover control | |
CN112422428A (en) | Link state acquisition method and device, electronic equipment and readable storage medium | |
JP2017108266A (en) | Repeating device, setting method, setting program and information processing system | |
CN114040007B (en) | Method and device for data transmission between multiple nodes | |
CN115643202B (en) | A link selection control protocol switching method, device, equipment and medium | |
US20240195679A1 (en) | Smart online link repair and job scheduling in machine learning supercomputers |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |