A method for self-healing quality degradation fault of multi-exit EBGP circuit in IP network
The SDN controller collects and analyzes the interface and traffic information of multi-outlet EBGP circuits in the IP network, automatically detects circuit quality degradation and isolates it, solving the problem of circuit quality degradation faults being difficult to automatically detect and isolate, significantly improving fault response efficiency and reducing Business impact.
Patent Information
- Application Number
- CN202211470416.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-11-22
AI Technical Summary
In the multi-outlet EBGP circuit scenario of an IP network, circuit quality degradation faults are difficult to automatically detect and isolate, resulting in long-term impact on services and low fault detection and isolation efficiency.
The SDN controller is used to collect SNMP, Telemetry and BGP session information to automatically detect the quality of egress circuits and determine the degradation. It uses SSH or Netconf protocols to automatically isolate degraded circuits to achieve traffic diversion.
It realizes the automatic discovery and isolation of circuits with degraded quality, shortens the fault isolation time from tens of minutes to minutes, and avoids business damage.
Smart Images

Figure CN115913901B
Abstract
Description
Technical Field
[0001] The invention relates to a method for self-healing quality degradation faults of multi-exit EBGP circuits in an IP network, in particular to a method for self-healing quality degradation faults of multi-exit EBGP circuits in an IP network based on an SDN controller. Background Art
[0002] The EBGP routing protocol is widely used in various IP network exports, such as backbone networks, metropolitan area networks, and IDC networks. It is used to dynamically exchange routing information between IP networks and upstream networks, and to achieve traffic load sharing of export circuits and automatic traffic redirection in the event of circuit interruption in scenarios with multiple export circuits in IP networks.
[0003] In the IP network multi-egress circuit scenario, when multiple egress circuits are connected between the same pair of devices, there are generally two deployment methods for the EBGP routing protocol.
[0004] Deployment method 1:
[0005] like Figure 2 As shown in the figure, the downstream network and the upstream network are interconnected through multiple circuits (circuit 1 to circuit n). These n circuits are connected between the same pair of border routers (GW1 and GW2) and have the same bandwidth. GW1 and GW2 use the interface IP addresses of these n circuits to establish n EBGP sessions respectively. The n EBGP sessions are configured with exactly the same routing policy and the EBGPmultipath function is enabled.
[0006] At the same time, in order to ensure that each EBGP session can quickly sense the interruption event of the corresponding circuit, a BFD session can be established between GW1 and GW2 using the IP addresses of the interfaces at both ends of each circuit, and the BFD protocol can be used to quickly detect the on / off status of the circuit. After detecting a circuit interruption, the corresponding EBGP session interruption is triggered.
[0007] Under normal circumstances, all egress traffic of the downstream network (all traffic flowing from the downstream network to the external network and from the external network to the downstream network) is forwarded through these n circuits in an approximately load-balanced manner, that is, if the total egress traffic size is T, then each circuit will forward T / n traffic.
[0008] When any circuit is interrupted, the traffic originally forwarded through the circuit will be forwarded through other normal circuits through the routing convergence process. Figure 1 Taking the interruption of circuit 1 in the example, the complete routing convergence process is as follows:
[0009] 1. GW1 or GW2 senses that circuit 1 is interrupted;
[0010] 2. EBGP session 1 corresponding to circuit 1 is interrupted;
[0011] 3. GW1 cancels all routes of the upstream network received through EBGP session 1. The traffic from the downstream network to the external network originally forwarded through circuit 1 is transferred to circuit 2 to circuit n and forwarded in a manner similar to load balancing;
[0012] 4. GW2 revokes all routes to the downstream network received through EBGP session 1. The traffic from the external network to the downstream network originally forwarded through circuit 1 is transferred to circuit 2 to circuit n and forwarded in a manner similar to load balancing.
[0013] Deployment method 2:
[0014] like Figure 3 As shown in the figure, the downstream network and the upstream network are interconnected through multiple circuits (circuit 1 to circuit n), and these n circuits are connected between the same pair of border routers (GW1 and GW2) and have the same bandwidth. GW1 and GW2 use their respective loopback interface IP addresses to establish an EBGP session. At the same time, n static routes pointing to the IP address of the loopback interface of GW2 are configured on GW1, where the next hop IP address of each static route points to an interface IP address of GW2, and the status of the corresponding interface on the GW1 side is tracked. If the interface fails, the corresponding static route will be triggered to fail at the same time; n static routes pointing to the IP address of the loopback interface of GW1 are configured on GW2, where each static route points to an interface IP address of GW1, and the status of the corresponding interface on the GW2 side is tracked. If the interface fails, the corresponding static route will be triggered to fail at the same time.
[0015] Under normal circumstances, all egress traffic of the downstream network (all traffic flowing from the downstream network to the external network and from the external network to the downstream network) is forwarded through these n circuits in an approximately load-balanced manner, that is, if the total egress traffic size is T, then each circuit will forward T / n traffic.
[0016] When any circuit is interrupted, the traffic originally forwarded through the circuit will be forwarded through other normal circuits through the routing convergence process. Figure 2 Taking the interruption of circuit 1 in the example, the complete routing convergence process is as follows:
[0017] 1. GW1 senses that circuit 1 is interrupted, and the status of interface 1 corresponding to circuit 1 on the GW1 side changes to DOWN state;
[0018] 2. The static route with GW1 pointing to the loopback address of GW2 and the next-hop IP address being the IP address of GW2 interface 1 fails. Therefore, the traffic originally forwarded through circuit 1 from the downstream network to the external network is transferred to circuit 2 to circuit n and forwarded in a manner similar to load balancing.
[0019] 3. GW2 senses that circuit 1 is interrupted, and the status of interface 1 corresponding to circuit 1 on the GW2 side changes to DOWN state;
[0020] 4. The static route in which GW2 points to the loopback address of GW1 and the next-hop IP address is the IP address of GW2 interface 1 becomes invalid. Therefore, the traffic from the external network that was originally forwarded through circuit 1 and flows to the downstream network is transferred to circuit 2 to circuit n and forwarded in a manner similar to load balancing.
[0021] During network operation, in addition to interruption failures, circuit 1 may also suffer from transmission quality degradation failures, including increased packet loss rate, increased delay, and increased jitter.
[0022] When the packet loss rate of circuit 1 increases but does not cause the BFD session to be interrupted, or when the delay or jitter of circuit 1 increases, all EBGP sessions in deployment mode 1 and all static routes in deployment mode 2 remain normal, and the egress traffic passing through circuit 1 will not be routed around other circuits. In this case, the egress traffic forwarded through circuit 1 will be affected by the deterioration of the quality of circuit 1, resulting in the corresponding services being affected.
[0023] In the actual network operation process, the operation and maintenance managers of the downstream network often receive complaints from users or business departments, and only discover the deterioration of the export circuit quality after troubleshooting. They then isolate the faulty circuit through manual processing, resulting in passive discovery of the fault and long-term damage to user business. Summary of the invention
[0024] The technical problem to be solved by the present invention is to provide a method for self-healing quality degradation fault of multi-exit EBGP circuits in an IP network.
[0025] The technical solution adopted by the present invention to solve the above technical problems is as follows:
[0026] A method for self-healing a quality degradation fault of a multi-exit EBGP circuit in an IP network, wherein the P network includes a downstream network and an upstream network, and the two networks communicate with each other through a downstream border router GW1 and an upstream border router GW2, and the method is characterized in that the method includes:
[0027] Step 1) Interface information collection steps:
[0028] This includes using the SNMP protocol to collect descriptions of all egress interfaces and loopback interfaces of the downstream network border router GW1, interface bandwidth, interface IP address, and interface address mask length information;
[0029] Step 2) Interface traffic information collection steps:
[0030] Collect the accumulated traffic value of all egress interfaces of GW1 with time T as the period;
[0031] Step 3) Circuit quality data collection steps:
[0032] Collect the quality of the export circuit and use it to determine whether the circuit quality has deteriorated;
[0033] Step 4) BGP session information collection and EBGP session judgment steps:
[0034] Collect all BGP session information of GW1 and find out all EBGP sessions in it;
[0035] Step 5) EBGP session and circuit relationship binding step:
[0036] Determine the EBGP deployment mode and establish the correspondence between each EBGP session and the interface;
[0037] Step 6) Automatic isolation of degraded circuits:
[0038] It is determined that the quality of a certain egress circuit is degraded, and it is determined whether the affected traffic can be diverted. If the affected traffic can be diverted, the traffic carried by the circuit with degraded quality is diverted.
[0039] Using this method, the export circuit with degraded quality can be automatically discovered and isolated to avoid business damage. At the same time, the passive fault discovery is changed to active discovery, and the fault isolation time is shortened from tens of minutes to minutes.
[0040] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The present invention is described in detail below in conjunction with the accompanying drawings to make the above advantages of the present invention more clear.
[0042] Figure 1 It is a schematic diagram of multiple exits of an IP network in the prior art;
[0043] Figure 2It is a schematic diagram of multiple exits of an IP network in the prior art;
[0044] Figure 3 It is a schematic diagram of multiple exits of an IP network in the prior art;
[0045] Figure 4 It is a schematic diagram of an embodiment of a method for self-healing a quality degradation fault of a multi-exit EBGP circuit in an IP network according to the present invention;
[0046] Figure 5 Schematic diagram of an embodiment of a method for self-healing a quality degradation fault of a multi-exit EBGP circuit in an IP network according to the present invention
[0047] Figure 6 It is a schematic diagram of an embodiment of a method for self-healing a quality degradation fault of a multi-exit EBGP circuit in an IP network according to the present invention. DETAILED DESCRIPTION
[0048] The following will describe the implementation methods of the present invention in detail with reference to the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly. It should be noted that as long as there is no conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other, and the technical solutions formed are all within the protection scope of the present invention.
[0049] Specifically, this paper proposes a method to automatically detect the quality of downstream network outlet circuits and automatically isolate the degraded circuits after quality degradation is found. Figure 2 and Figure 3 The following are two ways to deploy the EBGP protocol for egress circuits.
[0050] The present invention implements the corresponding technical solution through the following method:
[0051] A method for self-healing a quality degradation fault of a multi-exit EBGP circuit in an IP network, wherein the P network includes a downstream network and an upstream network, and the two networks communicate with each other through a downstream border router GW1 and an upstream border router GW2, and the method is characterized in that the method includes:
[0052] Step 1) Interface information collection steps:
[0053] This includes using the SNMP protocol to collect descriptions of all egress interfaces and loopback interfaces of the downstream network border router GW1, interface bandwidth, interface IP address, and interface address mask length information;
[0054] Step 2) Interface traffic information collection steps:
[0055] Collect the accumulated traffic value of all egress interfaces of GW1 with time T as the period;
[0056] Step 3) Circuit quality data collection steps:
[0057] Collect the quality of the export circuit and use it to determine whether the circuit quality has deteriorated;
[0058] Step 4) BGP session information collection and EBGP session judgment steps:
[0059] Collect all BGP session information of GW1 and find out all EBGP sessions in it;
[0060] Step 5) EBGP session and circuit relationship binding step:
[0061] Determine the EBGP deployment mode and establish the correspondence between each EBGP session and the interface;
[0062] Step 6) Automatic isolation of degraded circuits:
[0063] It is determined that the quality of a certain egress circuit is degraded, and it is determined whether the affected traffic can be diverted. If the affected traffic can be diverted, the traffic carried by the circuit with degraded quality is diverted.
[0064] Specifically, in the embodiment, Figure 4 As shown in the figure, an SDN controller is added to the downstream network. The SDN controller uses SNMP and Telemetry technology to collect the IP address, traffic information, and EBGP session information of the border router's egress link connection interface (hereinafter referred to as the egress interface). The SDN controller detects the quality degradation fault of the corresponding interface of the egress circuit, and when the fault can be isolated, it uses the SSH protocol or Netconf protocol to automatically control the border router to isolate the fault.
[0065] Specifically, it includes:
[0066] 1. Interface information collection: Interface information collection includes the use of SNMP protocol to collect descriptions of all egress interfaces and loopback interfaces of downstream network border routers, interface bandwidth, interface IP address, and interface address mask length information.
[0067] 2. Interface traffic information collection: The accumulated traffic values of all outlet interfaces of GW1 are collected with time T as the period, which is used for interface flow rate calculation and to determine whether the flow of the faulty circuit can be diverted during the automatic isolation stage.
[0068] 3. Circuit quality data collection: Collect the output circuit quality and use it to determine whether the circuit quality has deteriorated.
[0069] 4. BGP session information collection and EBGP session judgment: Collect all BGP session information of GW1 and find out all EBGP sessions therein.
[0070] 5. Binding of EBGP session and circuit relationship: Determine whether the EBGP deployment mode belongs to mode 1 or mode 2. In the case of mode 1, establish the corresponding relationship between each EBGP session and the interface.
[0071] 6. Automatic isolation of circuits with degraded quality: The SDN controller determines that the quality of a certain egress circuit has degraded and whether the affected traffic can be diverted. If the affected traffic can be diverted, the controller automatically diverts the traffic carried by the circuit with degraded quality to avoid service damage.
[0072] When the egress EBGP is deployed in mode 1, the system structure diagram is as follows: Figure 5 As shown in the figure, the number of interfaces and the IP addresses of each interface are sample data
[0073] When the egress EBGP is deployed in mode 2, the system structure diagram is as follows: Figure 6 As shown in the figure, the number of interfaces and the IP addresses of each interface are sample data
[0074] Specifically:
[0075] 2.1 Interface Information Collection
[0076] Interface information collection includes the description of all egress interfaces and loopback interfaces of the downstream network border router using the SNMP protocol, interface bandwidth, interface IP address, interface address mask length, and generates a set IF_Info_List, the elements of which are five-tuples.<IFindex,Ifdes,BW,IF_IP,IF_mask> The meanings of the fields in the quintuple are as follows:
[0077] (1a)IFindex: SNMP_Ifindex of the interface
[0078] (1b)IFdes: Interface description information
[0079] (1c) BW: bandwidth of the interface (the bandwidth of each interface is the same)
[0080] (1d) IF_IP: IP address of the interface
[0081] (1e)IF_mask: The mask length of the IP address configured on the interface
[0082] by Figure 5 and Figure 6 Taking the network shown in the figure as an example, the interface IP address data collection results are as follows:
[0083] IF_Info_List = {
[0084] <1, Interface 1, BW, 192.0.2.1, 30>
[0085] <2, Interface 2, BW, 192.0.2.2, 30>
[0086] <3, Interface 3, BW, 192.0.2.3, 30>
[0087] <4, loopback interface, NULL, 192.58.100.1, 32>
[0088] }
[0089] 2.2 Interface traffic information collection
[0090] The accumulated traffic value of all the egress interfaces of GW1 is collected with time T as the period. Figure 4 Taking interface 1 in the example, the accumulated flow collected at time t0 is TB0, and the accumulated flow collected at time t0+T is TB1
[0091] 2.3 Circuit Quality Data Collection
[0092] Circuit quality data collection includes the following two methods:
[0093] Method 1: Use SNMP protocol to collect the cumulative CRC error value of each interface corresponding to the egress circuit on GW1 at period T, and use the CRC error growth rate calculated on each interface in each period T
[0094] Method 2: Configure the TWAMP protocol on each circuit between GW1 and GW2, use the TWAMP protocol to detect the packet loss rate, delay, and jitter of each circuit, and use the Telemetry protocol to collect the above information of each circuit on GW1.
[0095] 2.4 BGP session information collection and EBGP session judgment
[0096] Use SNMP to collect all BGP session information of GW1 and find out all EBGP sessions.
[0097] Use SNMP protocol to collect all BGP sessions of GW1 and generate BGP session set BGP_session_List of GW1. The elements of this set are four-tuple<Local_IP,Local_AS,Remote_IP,Remote_AS> , the meanings of the four-tuple fields are as follows:
[0098] (4a) Local_IP: The local IP address of the BGP session
[0099] (4b) Local_AS: The local autonomous domain number of the BGP session
[0100] (4c) Remote_IP: The remote IP address of the BGP session
[0101] (4d) Remote_AS: The autonomous domain number of the peer end of the BGP session
[0102] Each of the four tuples represents a BGP session of GW1.
[0103] The Local_AS and Remote_AS of each quadruple are compared to see if they are equal. If they are not equal, the BGP session corresponding to the quadruple is an EBGP session; if they are equal, the corresponding session is a non-EBGP session.
[0104] After deleting all the 4-tuples corresponding to non-EBGP sessions in BGP_session_List, the remaining 4-tuple set EBGP_session_List contains the elements of all EBGP session information of GW1.
[0105] by Figure 5 Take the network shown as an example:
[0106] EBGP_session_List={
[0107] <192.0.2.1, AS a, 192.0.2.2, AS b>
[0108] <192.0.2.5, AS a, 192.0.2.6, AS b>
[0109] <192.0.2.9, AS a, 192.0.2.10, AS b>
[0110] }
[0111] by Figure 6 Take the network shown as an example:
[0112] EBGP_session_List={
[0113] <198.51.100.1, AS a, 198.51.100.2, AS b>
[0114] }
[0115] 2.5 EBGP Session and Circuit Binding
[0116] Based on the interface information including the interface IP address collected in 2.1 and the EBGP session information collected in 2.5, determine whether the EBGP deployment mode belongs to mode 1 or mode 2. In the case of mode 1, establish a corresponding relationship between each EBGP session and the interface. The specific method is as follows:
[0117] Use the Local_IP field in each 4-tuple in EBGP_session_List to compare with the IF_IP in each 5-tuple in IF_Info_List. If they are the same, the EBGP session corresponding to the 4-tuple is associated with the corresponding interface in IF_Info_List. Follow this step to complete the association between each 4-tuple in EBGP_session_List and an interface in IF_Info_List.
[0118] If a mapping relationship is established between an EBGP session and a loopback interface, the EBGP deployment model of the corresponding network is deployment mode 2.
[0119] If each EBGP is associated with a non-loopback interface, the EBGP deployment model of the corresponding network is deployment mode 1.
[0120] 2.6 Automatic isolation of quality deterioration circuits
[0121] Automatic isolation of degraded circuits involves three steps:
[0122] 1. Determination of circuit quality degradation
[0123] The SDN controller uses the circuit quality data collected in 2.3 to determine in real time whether the circuit quality corresponding to each interface of GW1 has deteriorated. The determination is based on the following centralized methods:
[0124] (1) Whether the CRC growth rate of the circuit's corresponding interface exceeds a threshold set in advance by the network administrator or generated by a machine learning algorithm. If it exceeds the threshold, it is determined that the circuit quality has deteriorated.
[0125] (2) Whether the packet loss rate of the circuit exceeds the threshold set in advance by the network administrator or generated by the machine learning algorithm. If it exceeds the threshold, it is judged that the circuit quality has deteriorated.
[0126] (3) Whether the circuit delay exceeds the threshold set in advance by the network administrator or generated by the machine learning algorithm. If it exceeds the threshold, it is judged that the circuit quality has deteriorated.
[0127] (4) Whether the jitter of the circuit exceeds the threshold set in advance by the network administrator or generated by the machine learning algorithm. If it exceeds the threshold, it is judged that the circuit quality has deteriorated.
[0128] 2. Feasibility determination of traffic diversion
[0129] When the SDN controller determines that the quality of a circuit has deteriorated, it needs to further determine whether the remaining available bandwidth of other normal circuits can carry all the traffic of the circuit. The specific determination method is as follows:
[0130] (1) Using the traffic information of all egress interfaces collected in step 2.2, calculate the current flow rate of all interfaces using the calculation method Traffic = (TB1 - TB0) / T;
[0131] (2) Calculate the utilization rate of all normal circuits after the traffic of the faulty circuit is transferred to other normal circuits on average, Tload = (Traffic + Traffic / (n-1)) / BW;
[0132] (3) Tload is compared with the maximum bandwidth occupancy rate Tallow set by the network administrator. If Tload>=Tallow, the traffic is not allowed to bypass, and the system administrator is notified through the system interface, etc. If Tload<Tallow, the traffic can bypass.
[0133] 3. Flow rotation control
[0134] If the SDN controller determines in step 2 that the traffic of the quality-degraded circuit can be bypassed, the traffic of the quality-degraded circuit is bypassed by controlling GW1, thereby isolating the quality-degraded circuit.
[0135] The SDN controller can control the communication protocol of GW1 using SSH / CLI or Netconf. According to whether the EBGP deployment mode in the network determined in 2.5 is mode 1 or mode 2, the control methods are as follows:
[0136] (1) When the EBGP deployment mode in the network is mode 1, the SDN controller uses SSH / CLI or Netconf to close the EBGP session corresponding to the quality-degraded interface, or directly closes the quality-degraded interface.
[0137] (2) When the EBGP deployment mode in the network is mode 2, the SDN controller uses SSH / CLI or Netconf to directly shut down the interface with degraded quality.
[0138] Using this method, the export circuit with degraded quality can be automatically discovered and isolated to avoid business damage. At the same time, the passive fault discovery is changed to active discovery, and the fault isolation time is shortened from tens of minutes to minutes.
[0139] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for self-healing a quality degradation fault of a multi-exit EBGP circuit in an IP network, the IP network comprising: The downstream network and the upstream network communicate with each other through the downstream border router GW1 and the upstream border router GW2, and are characterized by including: Step 1) Interface information collection steps: This includes using the SNMP protocol to collect descriptions of all egress interfaces and loopback interfaces of the downstream network border router GW1, interface bandwidth, interface IP address, and interface address mask length information; Step 2) Interface traffic information collection steps: Collect the accumulated traffic value of all egress interfaces of GW1 with time T as the period; Step 3) Circuit quality data collection steps: Collect the quality of the export circuit and use it to determine whether the circuit quality has deteriorated; Step 4) BGP session information collection and EBGP session judgment steps: Collect all BGP session information of GW1 and find out all EBGP sessions in it; Step 5) EBGP session and circuit relationship binding step: Determine the EBGP deployment mode and establish the correspondence between each EBGP session and the interface; Step 6) Automatic isolation of degraded circuits: Determine that the quality of a certain egress circuit is degraded, and determine whether the affected traffic can be diverted, and if the affected traffic can be diverted, divert the traffic carried by the circuit with degraded quality; Step 6) includes: Sub-step 61) Circuit quality degradation determination step: The SDN controller uses the collected circuit quality data to determine in real time whether the circuit quality corresponding to each interface of GW1 has deteriorated. The determination is based on the following methods: (1) Whether the CRC growth rate of the interface corresponding to the circuit exceeds the threshold set in advance by the network administrator or generated by the machine learning algorithm. If it exceeds the threshold, it is determined that the circuit quality has deteriorated; (2) Whether the packet loss rate of the circuit exceeds a threshold set in advance by the network administrator or generated by a machine learning algorithm. If it exceeds the threshold, it is determined that the circuit quality has deteriorated; (3) Whether the circuit delay exceeds a threshold set in advance by a network administrator or generated by a machine learning algorithm. If it exceeds the threshold, it is determined that the circuit quality has deteriorated; (4) Whether the jitter of the circuit exceeds a threshold set in advance by the network administrator or generated by a machine learning algorithm. If it exceeds the threshold, it is determined that the circuit quality has deteriorated; Sub-step 62) flow detour feasibility determination step: When the SDN controller determines that the quality of a circuit has deteriorated, it further determines whether the remaining available bandwidth of other normal circuits can carry all the traffic of the circuit, including: (1) Using the collected traffic information of all egress interfaces, calculate the current flow rate of all interfaces. The calculation method is Traffic = (TB1-TB0) / T; The accumulated flow rate collected at time t0 is TB0, and the accumulated flow rate collected at time t0+T is TB1, and time T is the periodic collection; (2) Calculate the utilization rate of all normal circuits after the traffic of the faulty circuit is transferred to other normal circuits on average, Tload = (Traffic + Traffic / (n-1)) / BW; Where n is the number of circuits; BW: bandwidth of the interface; (3) Tload is compared with the maximum circuit bandwidth occupancy rate Tallow set by the network administrator. If Tload≥Tallow, the traffic is not allowed to be detoured, and the system administrator is notified through the system interface; if Tload<Tallow, the traffic can be detoured; Sub-step 63) flow rate rotation control step: If the SDN controller determines in sub-step 62 that the traffic of the quality-degraded circuit can be bypassed, the traffic of the quality-degraded circuit is bypassed by controlling GW1, thereby isolating the quality-degraded circuit.
2. The method for self-healing of quality degradation faults of multi-exit EBGP circuits in an IP network according to claim 1, characterized in that: Step 1) specifically includes: Use SNMP protocol to collect descriptions of all egress interfaces and loopback interfaces of the downstream network border router GW1, interface bandwidth, interface IP address, and interface address mask length, and generate a set IF_Info_List based on this. The elements of this set are five-tuples <IFindex, Ifdes, BW, IF_IP, IF_mask>. The meanings of the fields in the five-tuple are as follows: (1a)IFindex: SNMP_Ifindex of the interface; (1b) IFdes: description information of the interface; (1c) BW: bandwidth of the interface; (1d) IF_IP: IP address of the interface; (1e)IF_mask: The mask length of the IP address configured on the interface.
3. The method for self-healing of quality degradation faults of multi-exit EBGP circuits in an IP network according to claim 1, characterized in that: Step 2) includes: Collect the accumulated traffic value of all egress interfaces of GW1 with time T as the period; Among them, the accumulated flow value collected at time t0 is TB0, and the accumulated flow value collected at time t0+T is TB1.
4. The method for self-healing of quality degradation faults of multi-exit EBGP circuits in an IP network according to claim 1, characterized in that: Step 3) includes: Use the SNMP protocol to collect the cumulative CRC error value of each interface corresponding to the egress circuit at GW1 at a period T, and use the calculation to calculate the CRC error growth rate of each interface in each period T; or, Configure the TWAMP protocol on each circuit between GW1 and GW2. Use the TWAMP protocol to detect the packet loss rate, delay, and jitter of each circuit. Use the Telemetry protocol to collect the above information of each circuit on GW1.
5. The method for self-healing of quality degradation faults of multi-exit EBGP circuits in an IP network according to claim 1, characterized in that: Step 4) includes: Use the SNMP protocol to collect all BGP session information of GW1 and generate the BGP session set BGP_session_List of GW1. The elements of this set are the four-tuple <Local_IP, Local_AS, Remote_IP, Remote_AS>. The meanings of the four-tuple fields are as follows: (4a) Local_IP: The local IP address of the BGP session (4b) Local_AS: The local autonomous domain number of the BGP session (4c) Remote_IP: The remote IP address of the BGP session (4d) Remote_AS: The autonomous domain number of the peer end of the BGP session Each of the four tuples represents a BGP session of GW1; Compare the Local_AS and Remote_AS of each quadruple to see if they are equal; If they are not equal, the BGP session corresponding to the quadruple is an EBGP session; if they are equal, the corresponding session is a non-EBGP session; After deleting all the quadruple groups corresponding to non-EBGP sessions in BGP_session_List, the elements contained in the set EBGP_session_List composed of the remaining quadruple groups are all the EBGP session information of GW1.
6. The method for self-healing of quality degradation faults of multi-exit EBGP circuits in an IP network according to claim 5, characterized in that: Step 5) includes: Based on the collected interface information including the interface IP address and the collected EBGP session information, the EBGP deployment mode is determined, and a corresponding relationship between each EBGP session and the interface is established.
7. The method for self-healing of quality degradation faults of multi-exit EBGP circuits in an IP network according to claim 6, characterized in that: Step 5) specifically includes: Use the Local_IP field in each 4-tuple in EBGP_session_List to compare with the IF_IP in each 5-tuple in IF_Info_List. If they are the same, the EBGP session corresponding to the 4-tuple is mapped to the corresponding interface in IF_InfoList. Follow these steps to complete the correspondence between each quadruple in EBGP_session_List and an interface in IF_Info_List.
8. The method for self-healing of quality degradation faults of multi-exit EBGP circuits in an IP network according to claim 1, characterized in that: The SDN controller uses SSH / CLI or Netconf to close the EBGP session corresponding to the interface with degraded quality, or directly closes the interface with degraded quality. Alternatively, the SDN controller uses SSH / CLI or Netconf to directly shut down the interface with degraded quality.
