CN113328916A - BFD detection mode switching method, device and equipment - Google Patents

BFD detection mode switching method, device and equipment Download PDF

Info

Publication number
CN113328916A
CN113328916A CN202110631957.6A CN202110631957A CN113328916A CN 113328916 A CN113328916 A CN 113328916A CN 202110631957 A CN202110631957 A CN 202110631957A CN 113328916 A CN113328916 A CN 113328916A
Authority
CN
China
Prior art keywords
gateway
bfd
link
mode
address
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.)
Granted
Application number
CN202110631957.6A
Other languages
Chinese (zh)
Other versions
CN113328916B (en
Inventor
沈珏萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN202110631957.6A priority Critical patent/CN113328916B/en
Publication of CN113328916A publication Critical patent/CN113328916A/en
Application granted granted Critical
Publication of CN113328916B publication Critical patent/CN113328916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a switching method, a device and equipment of a BFD detection mode, wherein the method comprises the following steps: acquiring a transverse link state between a first gateway and a second gateway; if the state of the transverse link is a connection state, determining that a BFD detection mode between a gateway address and target equipment is a BFD dual-active mode, and controlling the first gateway and the second gateway to detect whether a link between the gateway address and the target equipment is in failure or not by adopting the BFD dual-active mode; and if the state of the transverse link is a disconnection state, determining that a BFD detection mode between a gateway address and target equipment is a BFD master-slave mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure by adopting the BFD master-slave mode. By the technical scheme, accurate fault detection results can be obtained, wrong fault detection results cannot be obtained, long-time interruption of service flow is avoided, and the influence of service cutoff is minimized.

Description

BFD detection mode switching method, device and equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a device for switching a BFD detection mode.
Background
The network cloud realizes service clouding through technologies such as virtualization, cloud computing, micro-service and containerization, so that an operator can more flexibly deploy application according to service and customer requirements, and can more quickly respond to market changes and customer requirements. By introducing an SDN (Software Defined Network) and a VXLAN (Virtual eXtensible LAN), intelligent dynamic management and control of the whole Network can be provided, fast deployment of NFV (Network Functions Virtualization), automatic configuration of internal Network connection, flexible scheduling of Network hardware, improvement of Network convergence speed, large-scale networking capability and fast fault detection can be realized, various bandwidths, time delays, connection numbers and safety isolation services can be provided for different resource requirements, and continuous expansion of future 5G services is further adapted.
Under the networking structure of a network cloud, a dual-active gateway is usually deployed, that is, two gateways are deployed, the two gateways are configured with the same gateway address, load sharing can be realized, when one gateway fails, the other gateway continues to work normally, flow can not be switched by sensing, and the influence of a single-point failure on the network is avoided.
BFD (Bidirectional Forwarding Detection) is a general, standardized, media independent and protocol independent fast failure Detection mechanism, and is used for detecting whether a link fails or not, and ensuring that link failures can be fast detected between devices, so that measures can be taken in time, continuous operation of services can be ensured, and failures of links can be fast detected for various upper-layer protocols (such as routing protocols).
In the networking structure of the dual active gateway, whether a link between the gateway and the target device fails or not can be detected, but since the two gateways are configured with the same gateway address, an erroneous failure detection result can be obtained. For example, the gateway 1 sends a BFD detection message to the target device, and the target device returns the BFD detection message to the gateway 2, so that the gateway 1 does not receive the BFD detection message and determines that the link fails, but the link does not actually fail, that is, an erroneous failure detection result is obtained.
Disclosure of Invention
The application provides a switching method of a Bidirectional Forwarding Detection (BFD) detection mode, which is applied to a controller, wherein the controller is respectively connected with a first gateway and a second gateway, the first gateway and the second gateway are configured with the same gateway address, and the method comprises the following steps:
acquiring a transverse link state between the first gateway and the second gateway;
if the state of the transverse link is a connection state, determining that a BFD detection mode between the gateway address and target equipment is a BFD dual-active mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD dual-active mode;
if the state of the transverse link is a disconnection state, determining that a BFD detection mode between the gateway address and the target equipment is a BFD master-slave mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD master-slave mode.
Illustratively, the obtaining the lateral link state between the first gateway and the second gateway includes: acquiring reference data of a transverse link between the first gateway and the second gateway, wherein the reference data comprises an IP address of the first gateway, interface information connected with the second gateway on the first gateway, the IP address of the second gateway and the interface information connected with the first gateway on the second gateway;
acquiring LLDP information of the first gateway, wherein the LLDP information comprises a link state between the first gateway and a neighbor device; inquiring a target link state corresponding to the reference data from all link states of the LLDP information, and determining the connectivity of the transverse link based on the target link state;
determining a lateral link state between the first gateway and the second gateway based on the connectivity.
Illustratively, the determining a lateral link state between the first gateway and the second gateway based on the connectivity comprises: if a transverse link exists between the first gateway and the second gateway, when the connectivity of the transverse link is connected, determining that the state of the transverse link is a connected state, and when the connectivity of the transverse link is disconnected, determining that the state of the transverse link is a disconnected state; alternatively, the first and second electrodes may be,
if at least two transverse links exist between the first gateway and the second gateway, when the connectivity of at least one transverse link is connected, the state of the transverse link is determined to be a connected state, and when the connectivity of all transverse links is disconnected, the state of the transverse link is determined to be a disconnected state.
Illustratively, the controlling the first gateway and the second gateway to detect whether a link between the gateway address and a target device fails in the BFD dual active mode includes:
if the first gateway and the second gateway store that a BFD detection mode is a BFD master-standby mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to a BFD dual-active mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment fails or not by adopting the BFD dual-active mode;
if the first gateway and the second gateway store that the BFD detection mode is the BFD dual active mode, forbidding sending a switching instruction to the first gateway and the second gateway so as to enable the first gateway and the second gateway to keep the BFD detection mode as the BFD dual active mode, and detecting whether a link between a gateway address and target equipment is in failure by adopting the BFD dual active mode.
Illustratively, the controlling the first gateway and the second gateway to detect whether a link between the gateway address and a target device fails in the BFD active/standby mode includes:
if the BFD detection mode stored by the first gateway and the second gateway is the BFD dual-active mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to the BFD master-standby mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment fails by adopting the BFD master-standby mode;
if the first gateway and the second gateway store that the BFD detection mode is the BFD master-slave mode, forbidding sending a switching instruction to the first gateway and the second gateway so as to enable the first gateway and the second gateway to keep the BFD detection mode as the BFD master-slave mode, and detecting whether a link between a gateway address and target equipment is in fault by adopting the BFD master-slave mode.
For example, if the controller enables a gateway mode switching function, determining, based on a horizontal link state between the first gateway and the second gateway, that a BFD detection mode between the gateway address and the target device is a BFD active-standby mode, or determining that the BFD detection mode is a BFD active-standby mode;
or if the controller does not start the gateway mode switching function, determining that the BFD detection mode between the gateway address and the target device is the BFD dual-active mode.
Illustratively, when the BFD dual active mode is used to detect whether the link between the gateway address and the target device is faulty, the first gateway sends a BFD detection packet to the target device; if the second gateway receives a BFD detection message returned by target equipment, forwarding the BFD detection message to the first gateway through a transverse link between the first gateway and the second gateway;
when the BFD master-slave mode is adopted to detect whether a link between the gateway address and target equipment is in fault, if the first gateway is a master gateway and is not abnormal, the first gateway sends a BFD detection message to the target equipment, and the first gateway receives the BFD detection message returned by the target equipment; and if the first gateway is a main gateway and is abnormal, the second gateway sends a BFD detection message to the target equipment, and the second gateway receives the BFD detection message returned by the target equipment.
The application provides a switching device of two-way forwarding detection BFD detection mode is applied to the controller, the controller is connected respectively with first gateway and second gateway, first gateway with the second gateway disposes the same gateway address, the device includes:
an obtaining module, configured to obtain a lateral link state between the first gateway and the second gateway;
a determining module, configured to determine that a BFD detection mode between the gateway address and a target device is a BFD dual active mode if the horizontal link state is a connection state; if the transverse link state is a disconnection state, determining that a BFD detection mode between the gateway address and the target equipment is a BFD main-standby mode;
the control module is used for controlling the first gateway and the second gateway to detect whether a link between the gateway address and target equipment fails or not by adopting the BFD dual active mode if the BFD detection mode is the BFD dual active mode; and if the BFD detection mode is the BFD master-slave mode, controlling the first gateway and the second gateway to detect whether a link between the gateway address and target equipment fails by adopting the BFD master-slave mode.
For example, the obtaining module, when obtaining the horizontal link state between the first gateway and the second gateway, is specifically configured to: acquiring reference data of a transverse link between the first gateway and the second gateway, wherein the reference data comprises an IP address of the first gateway, interface information connected with the second gateway on the first gateway, the IP address of the second gateway and the interface information connected with the first gateway on the second gateway; acquiring LLDP information of the first gateway, wherein the LLDP information comprises a link state between the first gateway and a neighbor device; inquiring a target link state corresponding to the reference data from all link states of the LLDP information, and determining the connectivity of the transverse link based on the target link state; determining a lateral link state between the first gateway and the second gateway based on the connectivity;
the control module is configured to, when controlling the first gateway and the second gateway to detect whether a link between the gateway address and the target device fails in the BFD dual active mode, specifically: if the first gateway and the second gateway store that a BFD detection mode is a BFD master-standby mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to a BFD dual-active mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment fails or not by adopting the BFD dual-active mode;
the control module is configured to control the first gateway and the second gateway to detect whether a link between the gateway address and the target device fails in the BFD active/standby mode, where the BFD active/standby mode is specifically configured to: if the BFD detection mode stored by the first gateway and the second gateway is the BFD dual-active mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to the BFD master-standby mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment is in failure by adopting the BFD master-standby mode.
The application provides a controller, the controller is connected respectively with first gateway and second gateway, and first gateway disposes the same gateway address with the second gateway, the controller includes: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; wherein the processor is configured to execute the machine executable instructions to perform the steps of:
acquiring a transverse link state between the first gateway and the second gateway;
if the state of the transverse link is a connection state, determining that a BFD detection mode between the gateway address and target equipment is a BFD dual-active mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD dual-active mode;
if the state of the transverse link is a disconnection state, determining that a BFD detection mode between the gateway address and the target equipment is a BFD master-slave mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD master-slave mode.
Based on the above technical solution, in this embodiment of the application, a BFD detection mode between a gateway address and a target device may be determined based on a horizontal link state between a first gateway and a second gateway, where the BFD detection mode is a BFD dual-active mode when the horizontal link state is a connection state, that is, whether a link between the gateway address and the target device fails is detected by using the BFD dual-active mode, and when the horizontal link state is a disconnection state, the BFD detection mode is a BFD primary-standby mode, that is, whether a link between the gateway address and the target device fails is detected by using the BFD primary-standby mode. When the state of the transverse link is in a disconnection state, the controller is switched to a BFD active-standby mode, long-time interruption of service flow is avoided, the influence of service cutoff is reduced to the minimum, and when the state of the transverse link is in a connection state, the controller is switched to a BFD dual-active mode, so that high convergence is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
FIG. 1 is a simplified schematic diagram of a network cloud in one embodiment of the present application;
fig. 2 is a schematic diagram illustrating a switching manner of a BFD detection mode in an embodiment of the present application;
fig. 3 is a schematic diagram of a switching manner of a BFD detection mode in another embodiment of the present application;
FIG. 4 is a simplified schematic diagram of a network cloud in another embodiment of the present application;
fig. 5 is a flowchart of a method for switching BFD detection modes in an embodiment of the present application;
FIGS. 6A and 6B are schematic diagrams of a transverse link in one embodiment of the present application;
FIGS. 7A-7D are schematic diagrams of modifications of the BFD detection mode in one embodiment of the present application;
FIGS. 8A and 8B are process flow diagrams of a controller in one embodiment of the present application;
fig. 9A is a block diagram of a switching device of a BFD detection mode in an embodiment of the present application;
fig. 9B is a block diagram of a controller according to an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
Network cloud adaptation 5G: the network cloud realizes service clouding through technologies such as virtualization, cloud computing, micro-service and containerization, so that an operator can more flexibly deploy application according to service and customer requirements, and can more quickly respond to market changes and customer requirements. By introducing the SDN and the VXLAN, intelligent dynamic management and control of the whole network are provided, the fast deployment of the NFV, the automatic configuration of internal network connection and the flexible scheduling of network hardware are realized, the network convergence speed is improved, the large-scale networking capability is provided, the fault is fast detected, various bandwidths, time delays, connection numbers and safety isolation services are provided for different resource requirements, and the continuous expansion of the future 5G service is further adapted.
The networking characteristics of the network cloud are as follows: 1. the dual active gateway generally deploys a dual active gateway, that is, deploys two gateways, the two gateways are configured with the same gateway Address (that is, gateway IP Address), and the two gateways are configured with the same MAC (Media Access Control) Address, and the dual active gateway is used as a south-north VXLAN gateway of a VNF, which can implement load sharing, when one gateway fails, the other gateway continues to operate normally, and traffic can not sense switching, thereby avoiding the influence of single point failure on the network.
2. The dual active gateway detects connectivity of a target device (such as a virtual machine) through BFD, that is, detects whether a link between the dual active gateway and the target device fails. The BFD is deployed on the gateway and used for detecting connectivity of the virtual machine, the static routing needs to be associated with the BFD, and when the BFD detects a fault, the BFD directly triggers the rapid switching of the routing. The dual active gateway can detect the connectivity of each virtual machine on the vSwitch (virtual machine switch) through BFD. The gateway of the network cloud scheme can perform BFD detection on the virtual machine, can detect the availability of the virtual machine, is associated to the static route, and can switch the service to the virtual machine with normal connectivity.
Network cloud simplified diagram: referring to fig. 1, which is a simplified schematic diagram of a network cloud, GW1 and GW2 are dual active gateways, GW1 and GW2 are VTEP (VXLAN Tunnel End Point) devices, that is, GW1 and GW2 belong to dual ED (Edge Device) devices, and GW1 and GW2 are configured with the same gateway address 1.1.1.1, that is, the VTEPs of the two gateways are the same gateway address. Among them, when GW1 and GW2 are edge devices (i.e., VTEP devices) of a data center, then GW1 and GW2 are EDs of the data center, and GW1 and GW2 are dual EDs.
GW1 and vSwitch1 establish VXLAN tunnel 1, VXLAN tunnel 1 includes gateway address 1.1.1.1 of GW1 and IP address 2.2.2.2 of vSwitch1, GW1 and vSwitch2 establish VXLAN tunnel 2, and VXLAN tunnel 2 includes gateway address 1.1.1.1 of GW1 and IP address 3.3.3.3 of vSwitch 2. GW2 and vSwitch1 establish VXLAN tunnel 3, VXLAN tunnel 3 includes gateway address 1.1.1.1 of GW2 and IP address 2.2.2.2 of vSwitch1, GW2 and vSwitch2 establish VXLAN tunnel 4, and VXLAN tunnel 4 includes gateway address 1.1.1.1 of GW2 and IP address 3.3.3.3 of vSwitch 2. vSwitch1 and vSwitch2 establish VXLAN tunnel 5, VXLAN tunnel 5 including IP address 2.2.2.2 of vSwitch1 and IP address 3.3.3.3 of vSwitch 2. The network formed by the VXLAN tunnels is referred to as an overlay network.
In fig. 1, an EOR1(End of Row, Rack tail), an EOR2, a TOR1(Top of Rack), and a TOR2 are all switches, and are used to implement a message forwarding function, which is not limited herein.
GW1 and GW2 form a load sharing gateway, a message for a virtual machine (i.e., a virtual machine suspended under vSwitch1 or vSwitch 2) to access an external network is encapsulated as a VXLAN message, the destination IP address of the VXLAN message is gateway address 1.1.1.1 of GW1 and GW2, for vSwitch1 or vSwitch2, after receiving the VXLAN message, GW1 and GW2 are equivalent to one device, and may send the VXLAN message to GW1 or GW 2. For example, for vSwitch1, a VXLAN message may be sent to GW1 through VXLAN tunnel 1, and a VXLAN message may also be sent to GW2 through VXLAN tunnel 3. For vSwitch2, VXLAN messages may be sent to GW1 via VXLAN tunnel 2 and to GW2 via VXLAN tunnel 4.
For a message of an external network accessing a virtual machine hung under vSwitch1, GW1 or GW2 encapsulates the message into a VXLAN message, wherein the source IP address of the VXLAN message is 1.1.1.1, and the destination IP address of the VXLAN message is 2.2.2.2. And packaging a response message returned by the virtual machine into a VXLAN message, wherein the destination IP address of the VXLAN message is the gateway address 1.1.1.1 of GW1 and GW2, and the source IP address is 2.2.2.2. vSwitch1 may send VXLAN messages to GW1 via VXLAN tunnel 1 and to GW2 via VXLAN tunnel 3.
Referring to fig. 1, GW1 (or GW2) needs to detect connectivity of a virtual machine suspended by vSwitch (for example, a virtual machine suspended by vSwitch1 in the following description) through BFD, for example, GW1 sends a BFD detection packet to the virtual machine, and then the virtual machine returns the BFD detection packet to GW1 or GW 2.
In a possible implementation manner, as shown in fig. 2, the GW1 (or GW2) sends BFD detection messages to the vSwitch1 through the VXLAN tunnel 1, the vSwitch1 sends BFD detection messages to the virtual machine, and the virtual machine sends BFD detection messages to the vSwitch 1. After receiving the BFD detection message, vSwitch1 sends the BFD detection message to GW1 through VXLAN tunnel 1.
Or, GW1 sends the BFD detection message to vSwitch1 through VXLAN tunnel 1, vSwitch1 sends the BFD detection message to the virtual machine, and the virtual machine sends the BFD detection message to vSwitch 1. After receiving the BFD detection message, vSwitch1 sends the BFD detection message to GW2 through VXLAN tunnel 3. After receiving the BFD detection message, GW2 sends the BFD detection message to GW 1.
Obviously, for both transmission paths of the BFD detection packet, the BFD detection packet may be returned to GW1, that is, if GW1 receives the BFD detection packet returned by the virtual machine within the preset time, it is determined that the link between GW1 and the virtual machine has not failed, that is, the link between gateway address 1.1.1.1 and the virtual machine has not failed, and if GW1 does not receive the BFD detection packet returned by the virtual machine within the preset time, it is determined that the link between GW1 and the virtual machine has failed, that is, the link between gateway address 1.1.1.1 and the virtual machine has failed.
Similarly, the GW2 may also detect whether the link between the gateway address 1.1.1.1 and the virtual machine is failed in the above manner, that is, the detection manner is the same as that of the GW1, and details are not repeated here.
However, in the above-described method, if the lateral link between GW1 and GW2 fails, an erroneous failure detection result may be obtained. For example, GW1 sends the BFD detection packet to vSwitch1 through VXLAN tunnel 1, vSwitch1 sends the BFD detection packet to the virtual machine, the virtual machine sends the BFD detection packet to vSwitch1, and vSwitch1 sends the BFD detection packet to GW2 through VXLAN tunnel 3.
After receiving the BFD detection message, GW2 may not send the BFD detection message to GW1 due to a failure of the horizontal link between GW1 and GW2, that is, GW1 does not receive the BFD detection message returned by the virtual machine within a preset time, and determines a link failure between GW1 and the virtual machine, but actually, the link between GW1 and the virtual machine is not failed, that is, an erroneous failure detection result is obtained.
After determining that the link between the GW1 and the virtual machine is failed, that is, the BFD detection result is down, the service flow may be affected, even the service may be cut off, that is, the service flow problem may occur.
In a possible embodiment, a BFD detection mode may be as shown in fig. 3, where in the BFD detection mode, GW1 and GW2 are master gateways, for example, GW1 is a master gateway, and GW2 is a slave gateway. In this application scenario, on the basis of VXLAN tunnel 1, VXLAN tunnel 6 may also be established between GW1 and vSwitch1, where VXLAN tunnel 6 includes IP address 4.4.4.4 of GW1 and IP address 2.2.2.2 of vSwitch1, and IP address 4.4.4.4 is an IP address of GW1 itself, instead of a gateway address shared by GW1 and GW2, such as a loopback interface address of GW 1. On the basis of VXLAN tunnel 3, VXLAN tunnel 7 may also be established between GW2 and vSwitch1, VXLAN tunnel 7 includes IP address 5.5.5.5 of GW2 and IP address 2.2.2.2 of vSwitch1, and IP address 5.5.5.5 is the IP address of GW2 itself, instead of the gateway address shared by GW1 and GW2, such as a loopback interface address of GW 2.
When GW1 works normally, GW1 is used to implement traffic forwarding, that is, GW1 needs to perform BFD detection, for example, GW1 sends a BFD detection message to vSwitch1 through VXLAN tunnel 6, vSwitch1 sends the BFD detection message to a virtual machine, and the virtual machine sends the BFD detection message to vSwitch 1. After receiving the BFD detection packet, vSwitch1 only sends the BFD detection packet to GW1 through VXLAN tunnel 6 instead of sending the BFD detection packet to GW2 because the destination IP address of the BFD detection packet is IP address 4.4.4.4 of GW 1.
Obviously, the BFD detection packet sent by GW1 will only return to GW1, but not to GW2, and even if the transverse link between GW1 and GW2 fails, the transmission of the BFD detection packet will not be affected. On this basis, if the GW1 receives the BFD detection packet returned by the virtual machine within the preset time, it is determined that the link between the GW1 and the virtual machine has not failed, and if the GW1 does not receive the BFD detection packet returned by the virtual machine within the preset time, it is determined that the link between the GW1 and the virtual machine has failed.
After GW1 is abnormal, GW2 takes over GW1 to work, and GW2 realizes traffic forwarding, that is, GW2 needs to perform BFD detection, for example, GW2 sends a BFD detection message to vSwitch1 through VXLAN tunnel 7, vSwitch1 sends the BFD detection message to a virtual machine, and the virtual machine sends the BFD detection message to vSwitch 1. After receiving the BFD detection packet, vSwitch1, because the destination IP address of the BFD detection packet is IP address 5.5.5.5 of GW2, vSwitch1 only sends the BFD detection packet to GW2 through VXLAN tunnel 7, instead of sending the BFD detection packet to GW 1.
Obviously, the BFD detection packet sent by GW2 will only return to GW2, but not to GW1, and even if the transverse link between GW1 and GW2 fails, the transmission of the BFD detection packet will not be affected. On this basis, if the GW2 receives the BFD detection packet returned by the virtual machine within the preset time, it is determined that the link between the GW2 and the virtual machine has not failed, and if the GW2 does not receive the BFD detection packet returned by the virtual machine within the preset time, it is determined that the link between the GW2 and the virtual machine has failed.
However, in the above-described method, when GW1 serves as the master gateway, the traffic pressure of GW1 is large, and GW2 cannot share the load with GW 1. When a single point of failure occurs in GW1, the speed of switching to GW2 is slow, that is, the failure convergence speed is slow, and the switching cannot be performed quickly, which results in interruption of service traffic.
In view of the above discovery, the present embodiment provides a method for switching a BFD detection mode, which may determine, based on a lateral link state between GW1 and GW2, a BFD detection mode between gateway address 1.1.1.1 and a virtual machine, where the BFD detection mode indicates what manner is used for BFD detection.
When the state of the transverse link is the connection state, the BFD detection mode is the BFD dual active mode, that is, the BFD detection is performed by using the BFD dual active mode, which means that GW1 and GW2 are in the dual active state, the BFD detection packet sent by GW1 may be returned to GW2, and GW2 sends the BFD detection packet to GW1 through the transverse link, that is, whether the link fails is detected by using the method shown in fig. 2.
When the state of the transverse link is a disconnected state, the BFD detection mode is a BFD master-standby mode, that is, the BFD detection is performed by using the BFD master-standby mode, where the BFD master-standby mode refers to that GW1 and GW2 are in master gateway and standby gateway states, and assuming GW1 is the master gateway and GW2 is the standby gateway, when GW1 is normal, a GW1 sends out a BFD detection packet, and the BFD detection packet can only return to GW1, but not to GW2, and when GW1 is abnormal, a GW2 sends out a BFD detection packet, and the BFD detection packet can only return to GW2, but not to GW1, that is, whether the link is faulty is detected by using the method shown in fig. 3.
Obviously, if the state of the lateral link between GW1 and GW2 is a disconnected state, it may switch to the BFD active/standby mode, so that the BFD detection packet sent by GW1 is not sent to GW1 or GW2 at random, but needs to return to GW1, then if the connectivity of the virtual machine is normal, GW1 may receive the BFD detection packet, determine that the link between GW1 and the virtual machine is normal, and avoid that when the connectivity of the virtual machine is normal, an erroneous BFD detection result is caused due to the disconnection of the state of the lateral link between GW1 and GW 2.
If the state of the transverse link between GW1 and GW2 is a connection state, it may switch to the BFD dual active mode, that is, GW1 and GW2 may implement load sharing, when one GW fails, the other GW continues to work normally, and the traffic does not sense the switching, thereby avoiding the impact of single point failure on the network. Furthermore, although the BFD detection packet sent by GW1 may be randomly sent to GW1 or GW2, because the state of the horizontal link between GW1 and GW2 is a connection state, GW2 may return the BFD detection packet to GW1, then if the connectivity of the virtual machine is normal, GW1 may receive the BFD detection packet, determine that the link between GW1 and the virtual machine is normal, and avoid that when the connectivity of the virtual machine is normal, an erroneous BFD detection result is caused due to the disconnection of the horizontal link between GW1 and GW 2.
The technical solutions of the embodiments of the present application are described below with reference to specific embodiments.
The embodiment of the application provides a switching method of a BFD detection mode, which can be applied to a controller, wherein the controller is respectively connected with a first gateway and a second gateway, and the first gateway and the second gateway are configured with the same gateway address. Referring to fig. 4, a schematic networking diagram of the method is shown, that is, a controller is added on the basis of fig. 1. The first gateway may be GW1 and the second gateway may be GW2, or alternatively, the first gateway may be GW2 and the second gateway may be GW1, with the first and second gateways configured with the same gateway address 1.1.1.1. In the application scenario, referring to fig. 5, a flowchart of a switching method of a BFD detection mode is shown, where whether a link between a gateway address and a target device (e.g., a virtual machine) fails can be detected by the switching method of the BFD detection mode, for example, whether a link between the gateway address and a virtual machine hung under vSwitch1 or vSwitch2 fails may be detected, and the method may include:
step 501, acquiring a horizontal link state between a first gateway and a second gateway.
For example, the horizontal link state between the first gateway and the second gateway may be a state of a horizontal link between the first gateway and the second gateway, and the horizontal link state may be a connected state or a disconnected state.
The horizontal link may be a direct link (i.e., a directly connected link) between the first gateway and the second gateway, or may be a non-direct link (i.e., a link that is not directly connected) between the first gateway and the second gateway. The number of the horizontal links may be one or at least two, which is not limited herein.
Referring to fig. 6A, link 1 (a direct link) may be used as a horizontal link between the first gateway and the second gateway, but link 2 (a non-direct link) may not be used as a horizontal link between the first gateway and the second gateway. Alternatively, link 1 and link 2 are both used as the horizontal links between the first gateway and the second gateway.
Referring to fig. 6B, link 1 and link 3 may be considered as horizontal links between the first gateway and the second gateway, but link 2 may not be considered as a horizontal link between the first gateway and the second gateway. Alternatively, link 1, link 2, and link 3 may all be considered as a horizontal link between the first gateway and the second gateway.
For example, if there is only one horizontal link, when the connectivity of the horizontal link is connected, the state of the horizontal link between the first gateway and the second gateway is a connected state, and when the connectivity of the horizontal link is disconnected, the state of the horizontal link between the first gateway and the second gateway is a disconnected state. Or, if there are at least two horizontal links, when the connectivity of at least one horizontal link is connected, the state of the horizontal link between the first gateway and the second gateway is a connected state, and when the connectivity of all the horizontal links is disconnected, the state of the horizontal link between the first gateway and the second gateway is a disconnected state.
In a possible implementation, the following steps may be adopted to acquire the horizontal link status, and of course, the horizontal link status may be acquired periodically, and then an acquisition process is taken as an example.
Step 5011, obtaining reference data of a horizontal link between the first gateway and the second gateway, where the reference data may include, but is not limited to, an IP address of the first gateway, interface information on the first gateway connected to the second gateway, an IP address of the second gateway, and interface information on the second gateway connected to the first gateway.
For example, the IP address of the first gateway may be an IP address of the first gateway itself, such as 4.4.4.4, instead of the gateway address 1.1.1.1 shared by the first gateway and the second gateway, such as a loopback interface address or a management address of the first gateway. The IP address of the second gateway may be the IP address of the second gateway itself, such as 5.5.5.5, instead of the gateway address 1.1.1.1 shared by the first gateway and the second gateway, such as a loopback address or a management address of the second gateway. The interface information of the first gateway connected to the second gateway may be an interface identifier, and the interface information of the second gateway connected to the first gateway may be an interface identifier, and if the interface 1 of the first gateway is connected to the interface 2 of the second gateway (i.e. the link between the interface 1 and the interface 2 is a horizontal link), the reference data may include the interface identifier of the interface 1 and include the interface identifier of the interface 2.
In one possible implementation, a controller (e.g., an SDN controller or an OpenFlow controller) sends an OpenFlow message (e.g., a Packet-Out message) encapsulating a detection Packet (e.g., an LLDP Packet) to a first gateway, where the detection Packet includes an identifier of the first gateway (e.g., an IP address 4.4.4.4) and an identifier of a source interface (e.g., an interface identifier of interface 1). The first gateway parses the detection message from the Openflow message, and sends the detection message from the source interface (interface 1), that is, sends the detection message through the horizontal link.
After receiving the detection message through the destination interface (i.e., interface 2), the second gateway encapsulates the detection message in an Openflow message (e.g., Packet-in message), adds an identifier of the second gateway (e.g., IP address 5.5.5.5) and an identifier of the destination interface (e.g., interface identifier of interface 2) in the Openflow message, and sends the Openflow message to the controller. Based on the Openflow message, the controller determines that a physical link, i.e., a horizontal link, exists between the source interface of the first gateway (i.e., interface 1) and the destination interface of the second gateway (i.e., interface 2).
In summary, based on the Openflow message and the content carried in the detection message, the controller may obtain reference data of the horizontal link between the first gateway and the second gateway, where the reference data may include an IP address 4.4.4.4 of the first gateway, an interface identifier of an interface 1 on the first gateway connected to the second gateway, an IP address 5.5.5.5 of the second gateway, and an interface identifier of an interface 2 on the second gateway connected to the first gateway.
In another possible embodiment, reference data of the horizontal link between the first gateway and the second gateway may also be directly configured on the controller, and the reference data may include, but is not limited to, an IP address 4.4.4.4 of the first gateway, an interface identifier of an interface 1 connected to the second gateway on the first gateway, an IP address 5.5.5.5 of the second gateway, and an interface identifier of an interface 2 connected to the first gateway on the second gateway.
Of course, the above is only an example of acquiring the reference data of the horizontal link, and the acquiring manner is not limited.
Step 5012, acquiring LLDP information of the first gateway, where the LLDP information includes a link state between the first gateway and the neighbor device; and inquiring a target link state corresponding to the reference data from all link states of the LLDP information, and determining the connectivity of the transverse link based on the target link state.
For example, the first gateway may collect LLDP (Link Layer Discovery Protocol) information of the first gateway and neighbor devices (such as the second gateway and other neighbors except the second gateway), where the LLDP information may include Link statuses of all links of the first gateway, the Link statuses refer to connectivity of the links, and the connectivity of the links may be connected or disconnected, and the like.
For example, the LLDP information includes link information 1 of a link between the first gateway and the neighbor device 1 (e.g., the second gateway), and link information 2 of a link between the first gateway and the neighbor device 2 (e.g., the non-second gateway). The link information 1 may include a link identifier, which may include an IP address 4.4.4.4 of the first gateway, an interface identifier of an interface connected to the neighbor device 1 on the first gateway, an IP address (e.g., 5.5.5.5) of the neighbor device 1, and an interface identifier of an interface connected to the first gateway on the neighbor device 1, and a link status, which may include connectivity of the link, such as connection or disconnection, etc. The link information 2 may include a link identification, which may include the IP address 4.4.4.4 of the first gateway, an interface identification of an interface on the first gateway to which the neighbor device 2 is connected, the IP address of the neighbor device 2, and an interface identification of an interface on the neighbor device 2 to which the first gateway is connected, and a link status, which may include the connectivity of the link.
Of course, the above is only an example of the LLDP information, and the content of the LLDP information is not limited.
After collecting the LLDP information of the first gateway and the neighbor devices, the first gateway may send the LLDP information to the controller, so that the controller may obtain the LLDP information of the first gateway, where the LLDP information includes a link state between the first gateway and the neighbor devices of the first gateway. Then, a target link state corresponding to the reference data is queried from all link states of the LLDP information. For example, the link id in the link information 1 matches (i.e., is the same as) the reference data, and the link status in the link information 1 is the target link status corresponding to the reference data. The link identification in link information 2 does not match (i.e., is not the same as) the reference data, and therefore, the link status in link information 2 is not the target link status.
In summary, the controller can query the target link status corresponding to the reference data from the LLDP information, and then determine the connectivity of the horizontal link (i.e., the horizontal link corresponding to the reference data) based on the target link status. For example, if the target link state is connected, the connectivity of the horizontal link is connected, and if the target link state is disconnected, the connectivity of the horizontal link is disconnected.
For example, in step 5012, the controller may also obtain the LLDP information of the second gateway, query the target link state corresponding to the reference data from all link states of the LLDP information, and determine the connectivity of the horizontal link based on the target link state, which is similar to the implementation process and is not described herein again.
Step 5013 determines a lateral link status between the first gateway and the second gateway based on the connectivity of the lateral link, which may be a connected status or a disconnected status.
For example, if only one horizontal link exists between the first gateway and the second gateway, when the connectivity of the horizontal link is connected, the state of the horizontal link between the first gateway and the second gateway may be determined to be a connected state, and when the connectivity of the horizontal link is disconnected, the state of the horizontal link between the first gateway and the second gateway may be determined to be a disconnected state. Or, if at least two transverse links exist between the first gateway and the second gateway, when the connectivity of at least one transverse link is connected, the state of the transverse link between the first gateway and the second gateway may be determined to be a connected state, and when the connectivity of all the transverse links is disconnected, the state of the transverse link between the first gateway and the second gateway may be determined to be a disconnected state.
In summary, the controller may obtain the lateral link status between the first gateway and the second gateway.
Step 502, if the state of the horizontal link is the connection state, determining that the BFD detection mode between the gateway address and the target device is the BFD dual active mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target device is faulty or not by using the BFD dual active mode.
For example, if the first gateway and the second gateway store that the BFD detection mode is the BFD active-standby mode (that is, the first gateway and the second gateway currently use the BFD active-standby mode to detect whether a link between the gateway address and the target device is faulty), the controller sends a switching instruction (the switching instruction is used to instruct switching the BFD detection mode) to the first gateway and the second gateway, so that the first gateway and the second gateway switch the BFD detection mode to the BFD dual-active mode (that is, switch from the BFD active-standby mode to the BFD dual-active mode) based on the switching instruction, and use the BFD dual-active mode to detect whether a link between the gateway address and the target device is faulty.
Illustratively, if the first gateway and the second gateway store that the BFD detection mode is the BFD dual active mode (i.e. the first gateway and the second gateway currently use the BFD dual active mode to detect whether the link between the gateway address and the target device is failed), the first gateway and the second gateway are prohibited from sending the switch instruction, so that the first gateway and the second gateway keep the BFD detection mode as the BFD dual active mode (i.e. keep using the BFD dual active mode) and detect whether the link between the gateway address and the target device is failed using the BFD dual active mode.
In summary, if the horizontal link state is the connection state, when the first gateway and the second gateway currently use the BFD active-standby mode for BFD detection, the controller may send a switching instruction to the first gateway and the second gateway, so that the first gateway and the second gateway switch the BFD active-standby mode to the BFD dual-active mode, and use the BFD dual-active mode for BFD detection. When the first gateway and the second gateway currently adopt the BFD dual-active mode for BFD detection, the controller does not send a switching instruction so that the first gateway and the second gateway keep the BFD dual-active mode, namely, the first gateway and the second gateway continue to adopt the BFD dual-active mode for BFD detection.
In a possible implementation manner, when detecting whether a link between a gateway address and a target device fails by using the BFD double active mode, the first gateway may store the BFD detection mode as the BFD double active mode and learn that the BFD double active mode needs to be used for BFD detection, and the second gateway may store the BFD detection mode as the BFD double active mode and learn that the BFD double active mode needs to be used for BFD detection.
On the basis, the first gateway sends a BFD detection message to the target equipment; and if the second gateway receives the BFD detection message returned by the target equipment, forwarding the BFD detection message to the first gateway through a transverse link between the first gateway and the second gateway. Because the transverse link between the first gateway and the second gateway is in a connection state, the second gateway can forward the BFD detection message to the first gateway.
For example, regarding an implementation manner for detecting whether a link between a gateway address and a target device fails by using the BFD dual active mode, reference may be made to the BFD detection manner shown in fig. 2, which is not described herein again.
Step 503, if the state of the transverse link is a disconnected state, determining that the BFD detection mode between the gateway address and the target device is a BFD active/standby mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target device is faulty or not by using the BFD active/standby mode.
For example, if the first gateway and the second gateway store that the BFD detection mode is the BFD dual active mode (that is, the first gateway and the second gateway currently use the BFD dual active mode to detect whether a link between the gateway address and the target device is failed), the controller sends a switch instruction (the switch instruction is used to instruct to switch the BFD detection mode) to the first gateway and the second gateway, so that the first gateway and the second gateway switch the BFD detection mode to the BFD active-standby mode (that is, switch from the BFD dual active mode to the BFD active-standby mode) based on the switch instruction, and detect whether the link between the gateway address and the target device is failed using the BFD active-standby mode.
For example, if the first gateway and the second gateway store that the BFD detection mode is the BFD active-standby mode (that is, the first gateway and the second gateway currently use the BFD active-standby mode to detect whether the link between the gateway address and the target device is faulty), the first gateway and the second gateway are prohibited from sending the switch instruction, so that the first gateway and the second gateway keep the BFD detection mode as the BFD active-standby mode (that is, keep using the BFD active-standby mode), and detect whether the link between the gateway address and the target device is faulty using the BFD active-standby mode.
In summary, if the horizontal link state is the disconnected state, when the first gateway and the second gateway currently use the BFD active mode for BFD detection, the controller may send a switching instruction to the first gateway and the second gateway, so that the first gateway and the second gateway switch the BFD active mode to the BFD active-standby mode, and use the BFD active-standby mode for BFD detection. When the first gateway and the second gateway currently adopt the BFD master-slave mode for BFD detection, the controller does not send a switching instruction so that the first gateway and the second gateway keep the BFD master-slave mode, namely, the first gateway and the second gateway continue to adopt the BFD master-slave mode for BFD detection.
In a possible implementation manner, when detecting whether a link between a gateway address and a target device is faulty by using the BFD master-slave mode, the first gateway may store the BFD detection mode as the BFD master-slave mode and learn that BFD detection needs to be performed by using the BFD master-slave mode, and the second gateway may store the BFD detection mode as the BFD master-slave mode and learn that BFD detection needs to be performed by using the BFD master-slave mode.
On the basis, if the first gateway is a main gateway and no abnormity occurs, the first gateway sends a BFD detection message to the target equipment, and the first gateway receives the BFD detection message returned by the target equipment; and if the first gateway is a main gateway and is abnormal, the second gateway (namely the second gateway is used as a standby gateway) sends a BFD detection message to the target equipment, and the second gateway receives the BFD detection message returned by the target equipment.
For example, regarding an implementation manner of detecting whether a link between a gateway address and a target device fails in a BFD active/standby mode, reference may be made to the BFD detection manner shown in fig. 3, which is not described herein again.
In a possible implementation manner, if the controller enables the gateway mode switching function (that is, allows switching between the BFD active mode and the BFD active/standby mode), the BFD detection mode between the gateway address and the target device may be determined to be the BFD active mode or determined to be the BFD active/standby mode based on the horizontal link state between the first gateway and the second gateway, where the specific determination manner is as in steps 501 to 503, and is not described herein again. Or, if the controller does not enable the gateway mode switching function (i.e., does not allow switching between the BFD dual active mode and the BFD active/standby mode), determining that the BFD detection mode between the gateway address and the target device is the BFD dual active mode, i.e., directly performing BFD detection in the BFD dual active mode, and not determining that the BFD detection mode is the BFD dual active mode or the BFD active/standby mode based on the lateral link state between the first gateway and the second gateway. Of course, if the gateway mode switching function is not enabled by the controller, the BFD detection mode between the gateway address and the target device may also be determined to be the BFD active/standby mode.
For example, the controller may provide a switch whether to enable the gateway mode switching function, if the user selects "yes", it indicates that the controller enables the gateway mode switching function, that is, switching between the BFD active mode and the BFD active-standby mode is allowed, and if the user selects "no", it indicates that the controller does not enable the gateway mode switching function, that is, switching between the BFD active mode and the BFD active-standby mode is not allowed.
For example, after the user selects the switch to "yes", configuration modification may be performed to select the switch to "no", and the controller changes from the gateway mode switching function being enabled to the gateway mode switching function not being enabled. Alternatively, after the user selects the switch to "no", configuration modification may be performed to select the switch to "yes", and the controller changes from not enabling the gateway mode switching function to enabling the gateway mode switching function.
For example, in practical application, when the transverse link between the first gateway and the second gateway changes, the existing reference data of the transverse link may be deleted, the reference data of the new transverse link may be acquired, and the transverse link state of the new transverse link may be periodically acquired, which is not described again.
For example, in practical application, a gateway address commonly used by the first gateway and the second gateway may also be modified, and the modified gateway address is used to execute the above-mentioned process, which is not described herein again.
For example, the controller may further obtain information about a primary gateway and a standby gateway (which gateway is the primary gateway and which gateway is the standby gateway), such as that the first gateway is the primary gateway and the second gateway is the standby gateway. In practical applications, the information of the main gateway and the standby gateway may also be modified, for example, the second gateway is the main gateway, and the first gateway is the standby gateway.
For example, the execution sequence is only an example given for convenience of description, and in practical applications, the execution sequence between the steps may also be changed, and the execution sequence is not limited. Moreover, in other embodiments, the steps of the respective methods do not have to be performed in the order shown and described herein, and the methods may include more or less steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
Based on the above technical solution, in this embodiment of the application, a BFD detection mode between a gateway address and a target device may be determined based on a horizontal link state between a first gateway and a second gateway, where the BFD detection mode is a BFD dual-active mode when the horizontal link state is a connection state, that is, whether a link between the gateway address and the target device fails is detected by using the BFD dual-active mode, and when the horizontal link state is a disconnection state, the BFD detection mode is a BFD primary-standby mode, that is, whether a link between the gateway address and the target device fails is detected by using the BFD primary-standby mode. When the state of the transverse link is in a disconnection state, the controller is switched to a BFD active-standby mode, long-time interruption of service flow is avoided, the influence of service cutoff is reduced to the minimum, and when the state of the transverse link is in a connection state, the controller is switched to a BFD dual-active mode, so that high convergence is ensured. According to the invention, the SDN controller detects the connectivity of the transverse link, and the SDN controller switches the gateway mode in real time. In a network cloud networking scene, the BFD detection mode responds in real time along with the change of the state of a transverse link.
The above technical solution of the embodiment of the present application is described below with reference to specific application scenarios.
The controller provides a switch to enable or disable the gateway mode switching function, the switch being selectable yes and no.
If the user selects "yes", it indicates that the controller enables the gateway mode switching function, that is, allows switching between the BFD dual active mode and the BFD active/standby mode, and may determine that the BFD detection mode is the BFD dual active mode or the BFD active/standby mode based on the lateral link state between the first gateway and the second gateway. If the user selects 'no', the controller does not start the gateway mode switching function, that is, the switching between the BFD active mode and the BFD active-standby mode is not allowed, and the BFD active mode can be adopted for BFD detection.
Configuration item deletion: after the user selects the switch to "yes", configuration modification may also be performed, selecting the switch to "no", and changing the controller from enabling the gateway mode switching function to not enabling the gateway mode switching function. Alternatively, after the user selects the switch to "no", configuration modification may be performed to select the switch to "yes", and the controller changes from not enabling the gateway mode switching function to enabling the gateway mode switching function.
Acquiring reference data of a transverse link between a first gateway and a second gateway: if the controller enables the gateway mode switching function, reference data for the horizontal link between the first gateway and the second gateway may be configured on the controller, which may include, but is not limited to, the IP address 4.4.4.4 of the first gateway, the interface identification of interface 1 on the first gateway connected to the second gateway, the IP address 5.5.5.5 of the second gateway, the interface identification of interface 2 on the second gateway connected to the first gateway. In addition, the controller may be configured with a gateway address shared by the first gateway and the second gateway, and information about the master gateway and the standby gateway (which gateway is the master gateway and which gateway is the standby gateway), for example, the first gateway is the master gateway and the second gateway is the standby gateway.
The method comprises the steps of acquiring LLDP information of a first gateway (or a second gateway) periodically, and checking a transverse link between the first gateway and the second gateway through the LLDP information, namely acquiring a transverse link state.
The controller manages the first gateway and the second gateway, establishes Openflow and Netconf connection with the first gateway, and establishes Openflow and Netconf connection with the second gateway, and the controller acquires the LLDP information of the first gateway (or the second gateway) and regularly refreshes the LLDP information of the first gateway. And acquiring the state of the transverse link between the first gateway and the second gateway through the LLDP information and the reference data of the transverse link.
And the controller detects and modifies the BFD detection mode of the gateway according to the state of the transverse link.
The controller compares the current horizontal link state with the last horizontal link state.
In case 1, see fig. 7A, if the current horizontal link state is the connection state and the previous horizontal link state is the connection state, the BFD detection mode is not changed, that is, the BFD detection modes are both the BFD dual active mode. If the current transverse link state is the disconnection state and the last transverse link state is the disconnection state, the BFD detection mode is not changed, namely, the BFD detection mode is the BFD main-standby mode.
In case 2, referring to fig. 7B, if the current horizontal link state is the disconnected state and the previous horizontal link state is the connected state, that is, the connection state is changed to the disconnected state, the BFD detection mode is changed, that is, the BFD detection mode is changed from the BFD active-standby mode to the BFD active-standby mode. For example, the controller issues a switching instruction to the gateway, and issues a related command to the main gateway and the standby gateway according to the information of the main gateway and the standby gateway (which gateway is the main gateway and which gateway is the standby gateway), so that all traffic flows pass through the main gateway.
In case 3, referring to fig. 7C, if the current horizontal link state is the connected state and the previous horizontal link state is the disconnected state, that is, the horizontal link state is changed from the disconnected state to the connected state, the BFD detection mode is changed, that is, the BFD detection mode is changed from the BFD active-standby mode to the BFD active-standby mode. For example, the controller issues a switching instruction to the gateway, deletes the relevant command of the main gateway and the standby gateway, and switches back to the BFD dual active mode.
Horizontal multilink detection: referring to fig. 7D, when at least two transverse links are provided between the first gateway and the second gateway, and when the controller detects that the last transverse link is disconnected, that is, all transverse links are disconnected, the BFD detection mode is changed from the BFD active-standby mode to the BFD active-standby mode. When the controller detects that one transverse link in all disconnected links is restored to be connected, namely at least one transverse link is connected, the BFD detection mode is changed from the BFD main-standby mode to the BFD active-standby mode.
Configuration item modification: when the transverse link between the first gateway and the second gateway changes, deleting the reference data of the existing transverse link, acquiring the reference data of a new transverse link, and periodically acquiring the transverse link state of the new transverse link. The gateway address commonly used by the first gateway and the second gateway may be modified, and the modified gateway address may be used. The information of the primary gateway and the standby gateway may be modified, for example, if the first gateway is the primary gateway and the second gateway is the standby gateway, the information is changed to the second gateway being the primary gateway and the first gateway being the standby gateway.
For example, the processing flow of the controller is shown in fig. 8A for the case where there is only one horizontal link, and the processing flow of the controller is shown in fig. 8B for the case where there are at least two horizontal links.
Based on the same application concept as the method, an embodiment of the present application provides a switching apparatus for a BFD detection mode, which is applied to a controller, where the controller is connected to a first gateway and a second gateway, and the first gateway and the second gateway are configured with the same gateway address, as shown in fig. 9A, which is a schematic structural diagram of the apparatus, and the apparatus includes:
an obtaining module 911, configured to obtain a lateral link state between the first gateway and the second gateway; a determining module 912, configured to determine, if the horizontal link state is a connection state, that a BFD detection mode between the gateway address and a target device is a BFD dual active mode; if the transverse link state is a disconnection state, determining that a BFD detection mode between the gateway address and the target equipment is a BFD main-standby mode; a control module 913, configured to control the first gateway and the second gateway to detect whether a link between the gateway address and a target device fails in the BFD dual active mode if the BFD detection mode is the BFD dual active mode; and if the BFD detection mode is the BFD master-slave mode, controlling the first gateway and the second gateway to detect whether a link between the gateway address and target equipment fails by adopting the BFD master-slave mode.
For example, the obtaining module 911, when obtaining the horizontal link state between the first gateway and the second gateway, is specifically configured to: acquiring reference data of a transverse link between the first gateway and the second gateway, wherein the reference data comprises an IP address of the first gateway, interface information connected with the second gateway on the first gateway, the IP address of the second gateway and the interface information connected with the first gateway on the second gateway; acquiring LLDP information of the first gateway, wherein the LLDP information comprises a link state between the first gateway and a neighbor device; inquiring a target link state corresponding to the reference data from all link states of the LLDP information, and determining the connectivity of the transverse link based on the target link state; determining a lateral link state between the first gateway and the second gateway based on the connectivity.
For example, the obtaining module 911, when determining the horizontal link status between the first gateway and the second gateway based on the connectivity, is specifically configured to: if a transverse link exists between the first gateway and the second gateway, when the connectivity of the transverse link is connected, determining that the state of the transverse link is a connected state, and when the connectivity of the transverse link is disconnected, determining that the state of the transverse link is a disconnected state; or, if there are at least two transverse links between the first gateway and the second gateway, when the connectivity of at least one transverse link is connected, determining that the transverse link state is a connected state, and when the connectivity of all transverse links is disconnected, determining that the transverse link state is a disconnected state.
For example, the control module 913 is configured to control the first gateway and the second gateway to detect whether a link between the gateway address and the target device fails in the BFD dual active mode, specifically: if the first gateway and the second gateway store that the BFD detection mode is the BFD master-standby mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to the BFD dual-active mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment fails or not by adopting the BFD dual-active mode.
For example, the control module 913 is configured to control the first gateway and the second gateway to detect whether a link between the gateway address and the target device fails in the BFD active/standby mode, specifically: if the BFD detection mode stored by the first gateway and the second gateway is the BFD dual-active mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to the BFD master-standby mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment is in failure by adopting the BFD master-standby mode.
Based on the same application concept as the method described above, in the embodiment of the present application, a controller is provided, where the controller is connected to a first gateway and a second gateway, and the first gateway and the second gateway are configured with the same gateway address, as shown in fig. 9B, and the controller includes: a processor 921 and a machine-readable storage medium 922, the machine-readable storage medium 922 storing machine-executable instructions executable by the processor 921; the processor 921 is configured to execute machine-executable instructions to perform the following steps:
acquiring a transverse link state between the first gateway and the second gateway;
if the state of the transverse link is a connection state, determining that a BFD detection mode between the gateway address and target equipment is a BFD dual-active mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD dual-active mode;
if the state of the transverse link is a disconnection state, determining that a BFD detection mode between the gateway address and the target equipment is a BFD master-slave mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD master-slave mode.
Based on the same application concept as the method, embodiments of the present application further provide a machine-readable storage medium, where a plurality of computer instructions are stored on the machine-readable storage medium, and when the computer instructions are executed by a processor, the method for switching the BFD detection mode disclosed in the above example of the present application can be implemented.
The machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A switching method of Bidirectional Forwarding Detection (BFD) detection modes is applied to a controller, the controller is respectively connected with a first gateway and a second gateway, the first gateway and the second gateway are configured with the same gateway address, and the method comprises the following steps:
acquiring a transverse link state between the first gateway and the second gateway;
if the state of the transverse link is a connection state, determining that a BFD detection mode between the gateway address and target equipment is a BFD dual-active mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD dual-active mode;
if the state of the transverse link is a disconnection state, determining that a BFD detection mode between the gateway address and the target equipment is a BFD master-slave mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD master-slave mode.
2. The method of claim 1,
the obtaining the horizontal link state between the first gateway and the second gateway includes:
acquiring reference data of a transverse link between the first gateway and the second gateway, wherein the reference data comprises an IP address of the first gateway, interface information connected with the second gateway on the first gateway, the IP address of the second gateway and the interface information connected with the first gateway on the second gateway;
acquiring Link Layer Discovery Protocol (LLDP) information of the first gateway, wherein the LLDP information comprises a link state between the first gateway and a neighbor device; inquiring a target link state corresponding to the reference data from all link states of the LLDP information, and determining the connectivity of the transverse link based on the target link state;
determining a lateral link state between the first gateway and the second gateway based on the connectivity.
3. The method of claim 2, wherein the determining a lateral link state between the first gateway and the second gateway based on the connectivity comprises:
if a transverse link exists between the first gateway and the second gateway, when the connectivity of the transverse link is connected, determining that the state of the transverse link is a connected state, and when the connectivity of the transverse link is disconnected, determining that the state of the transverse link is a disconnected state; alternatively, the first and second electrodes may be,
if at least two transverse links exist between the first gateway and the second gateway, when the connectivity of at least one transverse link is connected, the state of the transverse link is determined to be a connected state, and when the connectivity of all transverse links is disconnected, the state of the transverse link is determined to be a disconnected state.
4. The method of claim 1,
the controlling the first gateway and the second gateway to detect whether a link between the gateway address and the target device fails in the BFD dual active mode includes:
if the first gateway and the second gateway store that a BFD detection mode is a BFD master-standby mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to a BFD dual-active mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment fails or not by adopting the BFD dual-active mode;
if the first gateway and the second gateway store that the BFD detection mode is the BFD dual active mode, forbidding sending a switching instruction to the first gateway and the second gateway so as to enable the first gateway and the second gateway to keep the BFD detection mode as the BFD dual active mode, and detecting whether a link between a gateway address and target equipment is in failure by adopting the BFD dual active mode.
5. The method of claim 1,
the controlling the first gateway and the second gateway to detect whether a link between the gateway address and the target device fails in the BFD active/standby mode includes:
if the BFD detection mode stored by the first gateway and the second gateway is the BFD dual-active mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to the BFD master-standby mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment fails by adopting the BFD master-standby mode;
if the first gateway and the second gateway store that the BFD detection mode is the BFD master-slave mode, forbidding sending a switching instruction to the first gateway and the second gateway so as to enable the first gateway and the second gateway to keep the BFD detection mode as the BFD master-slave mode, and detecting whether a link between a gateway address and target equipment is in fault by adopting the BFD master-slave mode.
6. The method according to any one of claims 1 to 5,
if the controller starts a gateway mode switching function, determining that a BFD detection mode between a gateway address and target equipment is a BFD dual-active mode or determining that the BFD detection mode is a BFD main-standby mode based on a transverse link state between the first gateway and the second gateway;
or if the controller does not start the gateway mode switching function, determining that the BFD detection mode between the gateway address and the target device is the BFD dual-active mode.
7. The method according to any one of claims 1 to 5,
when the BFD double-active mode is adopted to detect whether a link between the gateway address and target equipment is in failure, the first gateway sends a BFD detection message to the target equipment; if the second gateway receives a BFD detection message returned by target equipment, forwarding the BFD detection message to the first gateway through a transverse link between the first gateway and the second gateway;
when the BFD master-slave mode is adopted to detect whether a link between the gateway address and target equipment is in fault, if the first gateway is a master gateway and is not abnormal, the first gateway sends a BFD detection message to the target equipment, and the first gateway receives the BFD detection message returned by the target equipment; and if the first gateway is a main gateway and is abnormal, the second gateway sends a BFD detection message to the target equipment, and the second gateway receives the BFD detection message returned by the target equipment.
8. A switching device of BFD detection mode is characterized in that the switching device is applied to a controller, the controller is respectively connected with a first gateway and a second gateway, the first gateway and the second gateway are configured with the same gateway address, and the switching device comprises:
an obtaining module, configured to obtain a lateral link state between the first gateway and the second gateway;
a determining module, configured to determine that a BFD detection mode between the gateway address and a target device is a BFD dual active mode if the horizontal link state is a connection state; if the transverse link state is a disconnection state, determining that a BFD detection mode between the gateway address and the target equipment is a BFD main-standby mode;
the control module is used for controlling the first gateway and the second gateway to detect whether a link between the gateway address and target equipment fails or not by adopting the BFD dual active mode if the BFD detection mode is the BFD dual active mode; and if the BFD detection mode is the BFD master-slave mode, controlling the first gateway and the second gateway to detect whether a link between the gateway address and target equipment fails by adopting the BFD master-slave mode.
9. The apparatus of claim 8,
the obtaining module, when obtaining the horizontal link state between the first gateway and the second gateway, is specifically configured to: acquiring reference data of a transverse link between the first gateway and the second gateway, wherein the reference data comprises an IP address of the first gateway, interface information connected with the second gateway on the first gateway, the IP address of the second gateway and the interface information connected with the first gateway on the second gateway; acquiring Link Layer Discovery Protocol (LLDP) information of a first gateway, wherein the LLDP information comprises a link state between the first gateway and a neighbor device; inquiring a target link state corresponding to the reference data from all link states of the LLDP information, and determining the connectivity of the transverse link based on the target link state; determining a lateral link state between the first gateway and the second gateway based on the connectivity;
the control module is configured to, when controlling the first gateway and the second gateway to detect whether a link between the gateway address and the target device fails in the BFD dual active mode, specifically: if the first gateway and the second gateway store that a BFD detection mode is a BFD master-standby mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to a BFD dual-active mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment fails or not by adopting the BFD dual-active mode;
the control module is configured to control the first gateway and the second gateway to detect whether a link between the gateway address and the target device fails in the BFD active/standby mode, where the BFD active/standby mode is specifically configured to: if the BFD detection mode stored by the first gateway and the second gateway is the BFD dual-active mode, sending a switching instruction to the first gateway and the second gateway so that the first gateway and the second gateway switch the BFD detection mode to the BFD master-standby mode based on the switching instruction, and detecting whether a link between a gateway address and target equipment is in failure by adopting the BFD master-standby mode.
10. A controller, wherein the controller is connected to a first gateway and a second gateway, and the first gateway and the second gateway are configured with the same gateway address, the controller comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; wherein the processor is configured to execute the machine executable instructions to perform the steps of:
acquiring a transverse link state between the first gateway and the second gateway;
if the state of the transverse link is a connection state, determining that a Bidirectional Forwarding Detection (BFD) detection mode between the gateway address and target equipment is a BFD dual-active mode, and controlling the first gateway and the second gateway to detect whether a link between the gateway address and the target equipment is in failure or not by adopting the BFD dual-active mode; if the state of the transverse link is a disconnection state, determining that a BFD detection mode between the gateway address and the target equipment is a BFD master-slave mode, and controlling the first gateway and the second gateway to detect whether the link between the gateway address and the target equipment is in failure or not by adopting the BFD master-slave mode.
CN202110631957.6A 2021-06-07 2021-06-07 BFD detection mode switching method, device and equipment Active CN113328916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110631957.6A CN113328916B (en) 2021-06-07 2021-06-07 BFD detection mode switching method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110631957.6A CN113328916B (en) 2021-06-07 2021-06-07 BFD detection mode switching method, device and equipment

Publications (2)

Publication Number Publication Date
CN113328916A true CN113328916A (en) 2021-08-31
CN113328916B CN113328916B (en) 2022-08-26

Family

ID=77419920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110631957.6A Active CN113328916B (en) 2021-06-07 2021-06-07 BFD detection mode switching method, device and equipment

Country Status (1)

Country Link
CN (1) CN113328916B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157606A (en) * 2021-12-09 2022-03-08 锐捷网络股份有限公司 Virtual network element equipment switching method, equipment and storage medium
CN116599773A (en) * 2023-07-14 2023-08-15 杭州海康威视数字技术股份有限公司 Self-adaptive equipment security risk assessment method, device, equipment and system
CN116915837A (en) * 2023-09-12 2023-10-20 苏州浪潮智能科技有限公司 Communication method and communication system based on software defined network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170459A (en) * 2007-11-28 2008-04-30 中兴通讯股份有限公司 Failure detection and link recovery method based on bidirectional forward link
CN101800673A (en) * 2010-02-03 2010-08-11 中兴通讯股份有限公司 Method and device of bidirectional forwarding detection (BFD) oscillation damping
WO2011097893A1 (en) * 2010-02-11 2011-08-18 华为技术有限公司 Method, device and system for transmitting e1 bidirectional looped network data
US20130021903A1 (en) * 2010-04-02 2013-01-24 Zte Corporation Method, Apparatus and System for Dual-Homing Protection Switching
WO2017054547A1 (en) * 2015-09-28 2017-04-06 中兴通讯股份有限公司 Bidirectional forwarding detection method and apparatus
CN107078924A (en) * 2014-12-31 2017-08-18 华为技术有限公司 The method, apparatus and system of two-way converting detection are carried out to aggregated links
CN111490933A (en) * 2020-03-31 2020-08-04 新华三信息安全技术有限公司 Bidirectional forwarding detection switching method and edge device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170459A (en) * 2007-11-28 2008-04-30 中兴通讯股份有限公司 Failure detection and link recovery method based on bidirectional forward link
CN101800673A (en) * 2010-02-03 2010-08-11 中兴通讯股份有限公司 Method and device of bidirectional forwarding detection (BFD) oscillation damping
WO2011097893A1 (en) * 2010-02-11 2011-08-18 华为技术有限公司 Method, device and system for transmitting e1 bidirectional looped network data
US20130021903A1 (en) * 2010-04-02 2013-01-24 Zte Corporation Method, Apparatus and System for Dual-Homing Protection Switching
CN107078924A (en) * 2014-12-31 2017-08-18 华为技术有限公司 The method, apparatus and system of two-way converting detection are carried out to aggregated links
WO2017054547A1 (en) * 2015-09-28 2017-04-06 中兴通讯股份有限公司 Bidirectional forwarding detection method and apparatus
CN111490933A (en) * 2020-03-31 2020-08-04 新华三信息安全技术有限公司 Bidirectional forwarding detection switching method and edge device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈利兵: "BFD技术在IP承载网中的应用", 《现代电信科技》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157606A (en) * 2021-12-09 2022-03-08 锐捷网络股份有限公司 Virtual network element equipment switching method, equipment and storage medium
CN116599773A (en) * 2023-07-14 2023-08-15 杭州海康威视数字技术股份有限公司 Self-adaptive equipment security risk assessment method, device, equipment and system
CN116599773B (en) * 2023-07-14 2023-09-19 杭州海康威视数字技术股份有限公司 Self-adaptive equipment security risk assessment method, device, equipment and system
CN116915837A (en) * 2023-09-12 2023-10-20 苏州浪潮智能科技有限公司 Communication method and communication system based on software defined network
CN116915837B (en) * 2023-09-12 2024-01-26 苏州浪潮智能科技有限公司 Communication method and communication system based on software defined network

Also Published As

Publication number Publication date
CN113328916B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
CN113328916B (en) BFD detection mode switching method, device and equipment
CN110417569B (en) Network link fault processing method and tunnel endpoint equipment
US20150026507A1 (en) Transport control server, network system and transport control method
EP3316555B1 (en) Mac address synchronization method, device and system
CN106533736B (en) Network equipment restarting method and device
CN111682927B (en) Message synchronization method, device, equipment and medium based on MLAG environment
CN112367254B (en) Cross-device link aggregation method and device and electronic device
CN112187645B (en) Routing method, related equipment and system
CN103607293B (en) A kind of flow rate protecting method and equipment
CN104168193A (en) Virtual router redundancy protocol fault detection method and router equipment
CN112217658B (en) Stacking and splitting processing method and device
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN105471613B (en) Method, device and system for establishing temporary channel
CN112583708B (en) Connection relation control method and device and electronic equipment
CN109495345B (en) BFD processing method and network equipment
US9912527B2 (en) Communication device, communication system, method for determining path, and program
CN105790902B (en) Method and system for realizing redundant network card switching
CN114244736A (en) Multi-master detection method, equipment and medium based on stacking environment
WO2022217786A1 (en) Cross-network communicaton method, apparatus, and system for multi-bus network, and storage medium
JP6383232B2 (en) Relay system and switch device
CN111629386B (en) Communication method, system and equipment
CN108199986B (en) Data transmission method, stacking equipment and stacking system
CN102546313B (en) Multi-activation detection method and multi-activation detection device
CN113992571B (en) Multipath service convergence method, device and storage medium in SDN network
CN113098709B (en) Network recovery method and device based on distributed networking system and computer equipment

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