Hardware interconnection grey fault monitoring method, network controller and data center
By using DSCP labels and ACL counters in the data center to monitor the number of packets, the problem of gray faults in hardware interconnection in the data center being difficult to detect is solved, enabling fast and accurate judgment on the stability of the hardware interconnection, and improving data center operation and maintenance. reliability and cloud service quality.
Patent Information
- Application Number
- CN202410788848.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-11
AI Technical Summary
Gray faults in hardware interconnection caused by aging and strain of optical modules or interconnection ports in the data center are difficult to detect early, leading to data loss and frequent hardware failures.
By using the 5th and 6th bits of DSCP as labels in the packets, the sending and receiving end devices are set synchronously, the ACL Counter is turned on, the number of packets is counted, and the number of packet losses is calculated to determine whether hardware interconnection has occurred. Gray glitch.
It achieves reliable, accurate and efficient monitoring of the stability of hardware interconnection in the network, improving the stability of data center operation and maintenance and the service quality of cloud services.
Smart Images

Figure CN118764412A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer networks, and in particular relates to a monitoring method for gray faults of hardware interconnection, a network controller, and a data center. Background Art
[0002] Cloud services are usually provided by data centers with millions of servers. In such data centers, the number of optical modules used to achieve interconnection between hardware (such as switches) and the number of interconnection ports used to achieve interconnection within hardware is very large. When the optical modules or interconnection ports are in a "sub-healthy state" such as aging or strain, data loss and packet loss will occur. In addition, since the fault point is difficult to confirm and the fault itself is random, frequent hardware interconnection gray failures will occur. Therefore, there is an urgent need for a monitoring method that can monitor the interconnection stability of optical modules or interconnection ports at an early stage, and then reliably, accurately and efficiently monitor hardware interconnection gray failures in the network. Summary of the invention
[0003] In order to solve the above technical problems, the present invention provides a method for monitoring gray faults of hardware interconnection, comprising the following steps:
[0004] S1, set the 5th and 6th bits of the DSCP in the message as the label;
[0005] S2, control the sending end device and the receiving end device to synchronously use the same tag;
[0006] S3, keep the label information data of the label as default data, and for the default data, enable the first Egress ACL Counter of the port of the sending end device and the first Ingress ACL Counter of the port of the receiving end device, and count the number of sent and received packets respectively to obtain the corresponding first count value and second count value;
[0007] S4. Enable the second Egress ACL Counter and the second Ingress ACL Counter corresponding to the first custom data, change the label data of the label from the default data to the first custom data, and for the first custom data, the second Egress ACL Counter and the second Ingress ACL Counter count the number of sent and received packets respectively;
[0008] S5. Enable the third Egress ACL Counter and the third Ingress ACL Counter corresponding to the second custom data, change the label data of the label from the first custom data to the second custom data, obtain the third count value of the second Egress ACL Counter and the fourth count value of the second Ingress ACL Counter, and disable the second Egress ACL Counter and the second Ingress ACL Counter.
[0009] S6. Calculate the number of lost packets based on the third count value and the fourth count value;
[0010] S7. Save the number of packet losses, compare the number of packet losses with the packet loss threshold, and determine whether a hardware interconnection gray failure occurs.
[0011] Furthermore, the method further comprises the following steps:
[0012] S8, entering the next monitoring cycle, changing the label data of the label from the default data to the new first custom data, and repeating steps S4 to S7.
[0013] Furthermore, the default data is 00.
[0014] Furthermore, the first custom data and the second custom data are any two of 01, 10, and 11.
[0015] Further, step S6 includes: calculating the number of packet losses using the following formula 1
[0016] Number of lost packets = third count value - fourth count value Formula 1.
[0017] Furthermore, both the sending end device and the receiving end device are switches.
[0018] Furthermore, changing the tag data of the tag from default data to custom data includes: the switch configures an ACL function of a switch chip to change the tag data of the tag from default data to custom data.
[0019] The present invention also provides a network controller for executing the aforementioned hardware interconnection gray fault monitoring method.
[0020] The present invention also provides a data center, comprising the aforementioned network controller.
[0021] Compared with the prior art, the monitoring method for hardware interconnection gray faults provided by the present invention can quickly determine the hardware with hidden dangers and the stability of the interconnection in the network, reliably, accurately and efficiently monitor the hardware interconnection gray faults in the network, improve the stability and reliability of data center operation and maintenance, and thus ensure the service quality of cloud services. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flow chart of a method for monitoring gray faults of hardware interconnection according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0023] The specific implementation of the present invention is described in detail below. It should be understood that the implementation of the present invention is not limited to the embodiments shown in the accompanying drawings, and the protection scope of the present invention is not limited by the specific implementation. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Unless otherwise expressly indicated, throughout the specification and claims, the term "include" or its changes such as "include" or "include" will be understood to include the stated elements or components, without excluding other elements or other components. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0024] Unless otherwise defined, the meanings of all technical terms and scientific terms used in the present invention are the same as those commonly understood by ordinary technicians in the field. In addition, the meanings of the technical terms and scientific terms used in the present invention should be interpreted as having the same meaning as the corresponding terms defined in commonly used technical manuals, and should not be interpreted as having idealized or excessively formal meanings, unless the present invention clearly defines it in this way.
[0025] After research, the inventor found that although it is extremely difficult to specifically analyze the "sub-health status" of the aging, strain, etc. of the optical module or the interconnection port, considering that they will all cause packet loss, it is possible to monitor the interconnection stability and interconnection reliability of any network node by determining the number of packet losses, packet loss rate, and even packet loss trend when two network nodes (such as hardware such as switches) are interconnected. Specifically, to determine packet loss, it is necessary to ensure that the messages sent by each port of the sending end device (such as the sending end switch) can be accurately recorded. At the same time, the port of the corresponding receiving end device (such as the receiving end switch) must be able to accurately record the message. After confirming the correspondence between the transmitting end device and the receiving end device through the network controller, calculate whether there is packet loss when the two are interconnected. Among them, in order to accurately record the message, the sending end device sets a special label for the message it sends, and the receiving end device receives and counts the messages with the special label.
[0026] Figure 1A flowchart of a method for monitoring gray faults in hardware interconnection according to an embodiment of the present invention is shown. Figure 1 , the monitoring method comprises the following steps:
[0027] S1. The 5th and 6th bits of the DSCP (Differentiated Services Code Point) in the message are set as a label.
[0028] Specifically, the sending end device and the receiving end device are both switches.
[0029] Specifically, DSCP is used for QoS (Quality of Service) scheduling of the network, and has a total of 6 bits. QoS scheduling can be customized by the user, and the first 4 bits of DSCP can meet the requirements of QoS scheduling. Therefore, this embodiment uses the last 2 bits of DSCP, i.e., the 5th and 6th bits, as the label.
[0030] Wherein, step S1 is completed by the network controller controlling the switch control module through the southbound interface.
[0031] S2. Control the sending device and the receiving device to synchronously use the same tag.
[0032] Wherein, step S2 is completed by the network controller.
[0033] S3. Keep the label data of the label (i.e., the specific values of the 5th and 6th bits of the DSCP) as default data. For the default data, enable the first Egress ACL Counter of the port of the sending device and the first Ingress ACL Counter of the port of the receiving device, and count the number of sent and received packets, respectively, to obtain corresponding first count values and second count values.
[0034] Specifically, the default data, that is, the last two bits of the DSCP, that is, the fifth and sixth bits, have specific values of "00".
[0035] Specifically, the first Egress ACL Counter is a counter for default data of the sending device, which is used to count the number of messages sent by the sending device through its port; the first Ingress ACL Counter is a counter for default data of the receiving device, which is used to count the number of messages received by the receiving device through its port.
[0036] Wherein, step S3 is completed by the network controller.
[0037] S4. Enable the second Egress ACL Counter and the second Ingress ACL Counter corresponding to the first custom data, change the label data of the label from the default data to the first custom data, and for the first custom data, the second Egress ACL Counter and the second Ingress ACL Counter respectively count the number of sent and received packets.
[0038] Among them, step S4 is completed by the network controller; considering the network speed, the working conditions of the sending end device and the receiving end device, the inventor found that if the label data is first changed from the default data, that is, 00, to the first custom data, and then the second EgressACL Counter and the second Ingress ACL Counter are enabled for counting, the message count corresponding to the first custom data will be lost during the label data change process, resulting in inaccurate counting. Therefore, the second Egress ACL Counter and the second Ingress ACL Counter corresponding to the first custom data are first enabled, and then the label data is changed from the default data to the first custom data.
[0039] Specifically, the first custom data may be any one of "01", "10" and "11", as long as it is different from the default data.
[0040] Specifically, changing the label data of the label from default data to custom data specifically includes: the network controller sends an instruction to the switch, the switch configures the ACL function of the switch chip, and changes the label data of the label from default data to custom data.
[0041] Specifically, the second Egress ACL Counter is a counter of the sending device for the first custom data, which is used to count the number of packets sent by the sending device through its port; the second Ingress ACL Counter is a counter of the receiving device for the first custom data, which is used to count the number of packets received by the receiving device through its port.
[0042] S5. Enable the third Egress ACL Counter and the third Ingress ACL Counter corresponding to the second custom data, change the label data of the label from the first custom data to the second custom data, obtain the third count value of the second Egress ACL Counter and the fourth count value of the second Ingress ACL Counter, and disable the second Egress ACL Counter and the second Ingress ACL Counter.
[0043] Among them, step S5 is completed by the network controller; similar to step 4, the third Egress ACL Counter and the third Ingress ACL Counter corresponding to the second custom data are first enabled, and then the label data is changed from the first custom data to the second custom data, and then the third count value of the second Egress ACL Counter and the fourth count value of the second Ingress ACL Counter are obtained, which can ensure the counting accuracy of the third count value and the fourth count value and overcome the counting loss caused by the in-transit message (that is, the message that has been sent but not received).
[0044] Specifically, the second custom data is any one of “01”, “10” and “11” that is different from the first custom data.
[0045] Specifically, the third Egress ACL Counter is a counter of the sending device for the second custom data, which is used to count the number of packets sent by the sending device through its port; the third Ingress ACL Counter is a counter of the receiving device for the second custom data, which is used to count the number of packets received by the receiving device through its port.
[0046] S6. Calculate the number of lost packets based on the third count value and the fourth count value.
[0047] Wherein, step S6 is completed by the network controller.
[0048] Specifically, the number of packet losses is calculated using the following formula 1:
[0049] Number of lost packets = third count value - fourth count value Formula 1
[0050] S7. Save the number of packet losses, compare the number of packet losses with the packet loss threshold, and determine whether a hardware interconnection gray failure occurs.
[0051] Among them, step S7 is completed by the network controller, and when the number of packet losses is greater than the packet loss threshold, it is determined that a hardware interconnection gray failure occurs. The packet loss threshold is set by the operation and maintenance personnel according to the working conditions of the network and the switch.
[0052] Furthermore, the method for monitoring hardware interconnection gray failures also includes the following steps:
[0053] S8, entering the next monitoring cycle, changing the label data of the label from the default data to the new custom data, and repeating steps S4 to S7.
[0054] The duration of the monitoring cycle can be defined by the user and can be the entire business cycle.
[0055] In summary, the present invention provides a monitoring method for hardware interconnection gray faults, setting the 5th and 6th bits of the DSCP in the message as a label; opening the second Egress ACL Counter and the second Ingress ACL Counter corresponding to the first custom data, changing the label data to the first custom data, and the second Egress ACL Counter and the second Ingress ACL Counter count the number of messages respectively; opening the third EgressACL Counter and the third Ingress ACL Counter corresponding to the second custom data, changing the label data from the first custom data to the second custom data, obtaining the third count value of the second Egress ACL Counter and the fourth count value of the second Ingress ACL Counter; calculating the number of packet losses based on the third count value and the fourth count value, and finally judging whether a hardware interconnection gray fault occurs by the number of packet losses. The monitoring method for hardware interconnection gray faults can quickly determine the hardware with hidden dangers and the stability of the interconnection in the network, reliably, accurately and efficiently monitor the hardware interconnection gray faults in the network, improve the stability and reliability of data center operation and maintenance, and thus ensure the service quality of cloud services.
[0056] The present invention also provides a network controller, which is used to execute the above-mentioned monitoring method of hardware interconnection gray failure.
[0057] The present invention further provides a data center, which includes the aforementioned network controller.
[0058] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made in accordance with the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of protection of the present invention is defined by the claims and their equivalents.
Claims
1. A method for monitoring gray faults in hardware interconnection, characterized in that: The following steps are involved: S1, set the 5th and 6th bits of the DSCP in the message as the label; S2, control the sending end device and the receiving end device to synchronously use the same tag; S3, keeping the label information data of the label as default data, and for the default data, enabling the first Egress ACL Counter of the port of the sending end device and the first Ingress ACL Counter of the port of the receiving end device, respectively counting the number of sent and received packets, and obtaining corresponding first count value and second count value; S4. Enable the second Egress ACL Counter and the second Ingress ACL Counter corresponding to the first custom data, change the label data of the label from the default data to the first custom data, and for the first custom data, the second Egress ACL Counter and the second Ingress ACL Counter respectively count the number of sent and received packets; S5. Enable the third Egress ACL Counter and the third Ingress ACL Counter corresponding to the second custom data, change the label data of the label from the first custom data to the second custom data, obtain the third count value of the second Egress ACL Counter and the fourth count value of the second Ingress ACL Counter, and disable the second Egress ACL Counter and the second Ingress ACL Counter. S6. Calculate the number of packet losses based on the third count value and the fourth count value; S7. Save the number of packet losses, compare the number of packet losses with a packet loss threshold, and determine whether a hardware interconnection gray failure occurs.
2. The method for monitoring gray faults of hardware interconnection according to claim 1, characterized in that: The following steps are also included: S8, entering the next monitoring cycle, changing the label data of the label from the default data to the new first custom data, and repeating steps S4 to S7.
3. The method for monitoring gray faults of hardware interconnection according to claim 2, characterized in that: The default data is 00.
4. The method for monitoring gray faults of hardware interconnection according to claim 3, characterized in that: The first custom data and the second custom data are any two of 01, 10, and 11.
5. The method for monitoring gray faults of hardware interconnection according to claim 2, characterized in that: The step S6 comprises: calculating the number of packet losses using the following formula 1 Number of lost packets = third count value - fourth count value Formula 1.
6. The method for monitoring gray faults of hardware interconnection according to any one of claims 1 to 5, characterized in that: The sending end device and the receiving end device are both switches.
7. The method for monitoring gray faults of hardware interconnection according to claim 6, characterized in that: The changing the label data of the label from default data to custom data includes: the switch configuring an ACL function of a switch chip to change the label data of the label from default data to custom data.
8. A network controller, characterized in that Used to execute the monitoring method of hardware interconnect gray failure described in claim 7.
9. Data center, characterized in that Includes the network controller described in claim 8.
