Method for identifying hardware anomalies inside data communication equipment, storage medium, electronic device and computer program product
By setting up message statistics points on the critical path of the data communication device, monitoring and identifying hardware abnormalities in real time, the problem of detecting hardware abnormalities in the equipment in the prior art is solved, and more efficient fault location and equipment management are achieved.
Patent Information
- Application Number
- CN202411974208.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-04
AI Technical Summary
In the prior art, the method of detecting hardware abnormalities within the device occupies device forwarding resources and has low real-time performance.
By setting up message statistics points on the critical path inside the device, the message statistics data of the service flowing through multiple service boards inside the device at the preset message statistics points, and the hardware abnormalities inside the device are identified based on these data.
Real-time monitoring of the status of the service flow is achieved, timely responding to abnormal packet loss or transmission problems, avoiding resource occupation and data deviation problems caused by starting additional test flow, reducing the operating burden of the equipment, and improving the efficiency of fault location.
Smart Images

Figure CN119766687A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of communications, and in particular, to a method for identifying hardware anomalies within a data communication device, a storage medium, an electronic device, and a computer program product. Background Art
[0002] Currently, the method for detecting hardware anomalies inside a device usually uses a test flow to simulate the degree of service damage. However, this method requires additional start-up of a test flow, occupies device forwarding resources, and has low real-time performance. Summary of the invention
[0003] The embodiments of the present application provide a method for identifying hardware anomalies within a data communication device, a storage medium, an electronic device, and a computer program product, so as to at least solve the problem in the related art that the method of detecting hardware anomalies within the device occupies device forwarding resources and has low real-time performance.
[0004] According to an embodiment of the present application, a method for identifying an internal hardware anomaly of a data communication device is provided, comprising:
[0005] Obtaining message statistics of service flows passing through multiple service boards inside the device at multiple preset message statistics points;
[0006] According to the message statistical data, hardware abnormalities inside the device are identified.
[0007] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0008] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0009] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0010] In the embodiment of the present application, by obtaining the message statistics of the business flow flowing through multiple business boards inside the device at multiple preset message statistics points; according to the message statistics, the hardware abnormality inside the device is identified. By setting the message statistics point on the critical path, the status of the business flow can be monitored in real time. Once abnormal packet loss or transmission problems are detected, it can respond immediately, avoiding the resource occupation and data deviation problems caused by starting additional test flows, reducing the operating burden of the device, and solving the problem that the method of detecting hardware abnormalities inside the device in the related technology occupies the device forwarding resources and has low real-time performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a hardware structure block diagram of a computer terminal on which the method embodiment of the present application is run;
[0012] Figure 2 This is a system architecture diagram for identifying hardware anomalies within a distributed device according to an embodiment of the present application;
[0013] Figure 3 is a flow chart of a method for identifying an abnormality in hardware inside a data communication device according to an embodiment of the present application;
[0014] Figure 4 is a schematic diagram of a message statistics process according to an embodiment of the present application;
[0015] Figure 5 is a schematic diagram of the dyeing process of the uplink service board according to an embodiment of the present application;
[0016] Figure 6 is a schematic diagram of another message statistics process according to an embodiment of the present application;
[0017] Figure 7 is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0019] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0020] In the related art, the detection methods of hardware anomalies in the device include: collecting alarms of the hardware in the device and reporting them in real time and using test streams to simulate the service message transmission process and perform packet loss statistics.
[0021] However, using the alarm method of the hardware in the device, there are many types of chip alarms, and it is often difficult to quickly evaluate the impact of abnormal alarms on the actual business flow; using the test flow method requires additional start-up of the test flow, which occupies the device forwarding resources and has low real-time performance. In addition, when the business on the device is added or deleted, the business load carried by the device will also change accordingly. After each change, the test flow needs to be reconfigured, making the test more cumbersome.
[0022] In response to the above-mentioned technical problems, an embodiment of the present application provides a method for identifying hardware anomalies inside data communication equipment. The technical concept is that by setting message statistics points on critical paths, the status of business flows can be monitored in real time. Once abnormal packet loss or transmission problems are detected, an immediate response can be made, thereby avoiding resource occupation and data deviation problems caused by starting additional test flows, and reducing the operating burden of the equipment; by identifying the packet loss of business flows between multiple different business boards inside the equipment, the hardware anomalies affecting the business flow can be quickly identified, which is conducive to the rapid demarcation of faults and shortening the problem troubleshooting time; compared with relying solely on hardware alarms, the anomaly detection method combined with message statistical data can reduce false alarms and missed alarms.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 is a hardware structure block diagram of the computer terminal running the method embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for identifying hardware anomalies in the data communication device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] Figure 2 is a system architecture diagram of the internal hardware anomaly identification of the distributed device according to the embodiment of the present application. The embodiment of the present application can be run on Figure 2 In the system architecture shown in Figure 2 As shown, the system architecture may include a control board, an uplink service board, a switching board, a downlink service board, and interaction modules therebetween, etc. These components can collaboratively complete the detection and evaluation of hardware anomalies through the transmission of service flows.
[0027] Among them, the control board can be used to count the message statistics of the business flow between the upstream business board and the downstream business board; aggregate the chip alarm information of the upstream business board and the switch board interaction module, the internal chip of the switch board, and the downstream business board and the switch board interaction module; based on the statistical message statistics and alarm information, analyze and determine which hardware modules inside the device have abnormalities, and evaluate the impact of the abnormalities on the business.
[0028] The uplink service board, as the entrance of the service flow, can be used to color and mark the service messages passing through it; it can count the number of messages sent from this board to other service boards, and report the counted number of messages to the control board for analysis by the control board.
[0029] The switch board, as the intermediate forwarding layer of the service flow, can be used to receive messages from the upstream service board and forward them to the designated downstream service board; it can provide chip-level alarm information, which can reflect the working status of the internal chip of the switch board and is used for abnormality detection.
[0030] The downlink service board, as the exit of the service flow, can be used to receive service messages, parse the coloring identifier and the uplink service board slot information in the message; it can count the number of received messages, record them in the corresponding statistical pool based on the coloring identifier, and report the counted number of messages to the control board for analysis by the control board.
[0031] Interaction modules: These modules can be set between the uplink service board and the switch board, and between the downlink service board and the switch board, and are used to transmit service messages to ensure that the messages are accurately transmitted from the uplink service board to the downlink service board.
[0032] Through the above functions and interactive relationships, each business board and interactive module forms a complete system that can dynamically monitor the transmission status of business flows within the device, promptly discover and locate hardware anomalies, thereby ensuring the stable operation of the network and improving the efficiency of fault handling.
[0033] It should be noted that the method for identifying hardware anomalies inside a device in the embodiment of the present application can be run not only on the system architecture of distributed devices, but also on the system architecture of centralized devices. The above system architecture is only an example of the embodiment of the present application.
[0034] In this embodiment, a method for identifying hardware anomalies in a data communication device running on the above-mentioned computer terminal or system architecture is provided. Figure 3 is a flow chart of a method for identifying an internal hardware anomaly of a data communication device according to an embodiment of the present application, such as Figure 3 As shown, the process includes the following steps:
[0035] Step S301, obtaining message statistics of service flows passing through multiple service boards inside a device at multiple preset message statistics points.
[0036] In the embodiment of the present application, multiple message statistics points can be pre-set inside the device. For example, the message statistics points can be pre-set on the key path of the service flow, such as the upstream service board exit, the downstream service board entrance, and the downstream service board exit. The number of messages passing through the point within a specific time can be monitored and counted at the message statistics point for subsequent analysis.
[0037] Illustratively, in step S301, the control board may receive the message statistical data of multiple message statistical points reported by each service board and perform statistical analysis.
[0038] As an example, after receiving the message statistics of multiple message statistics points reported by each business board, the control board may not perform statistical analysis immediately, but may perform statistical analysis of the message statistics of multiple message statistics points after a preset time interval to ensure that the data reporting of different hardware is complete. The setting of the preset time interval can ensure the stability of the data and avoid misjudgment caused by incomplete data reporting. Among them, the preset time interval can be set according to actual needs, and the embodiment of the present application is not limited here.
[0039] In an exemplary embodiment, the message statistical data is the number of messages counted in the statistical pool pair corresponding to the message statistical point; each of the multiple service boards includes at least one message statistical point, each service board corresponds to at least one preset statistical pool pair, and the message statistical data is the number of messages counted in the statistical pool pair corresponding to the message statistical point; or,
[0040] The message statistical data is the sequence number information in each message of the multiple messages of the service flow received and counted at the message statistical point.
[0041] The message statistics of the embodiment of the present application can be based on the statistical pool for statistical message counts, or can be based on the statistical message counts of sequence number information. The following describes the scheme of statistical message counts based on the statistical pool and the scheme of statistical message counts based on sequence number information respectively:
[0042] Solution for collecting statistics on packets based on the statistics pool:
[0043] In the embodiment of the present application, the correspondence between the business board, the message statistics point and the statistics pool constructs a multi-level data monitoring and resource management architecture, which can quickly detect and locate hardware anomalies by monitoring the operating status of the internal hardware of the device in real time.
[0044] Among them, the service board is the entity inside the device responsible for data packet processing and forwarding, which can be regarded as the top level of resource management; the message statistics point is the resource on the service board, which is used to monitor the number of data packets flowing through the service board.
[0045] The message statistics point is a preset statistical location in the service board. The statistical information of the service flow messages, that is, the number of messages, can be collected at the message statistics point. The message statistics point can be any position on the service board. For example, it can be set at the exit and / or entrance of the service board to monitor the in and out status of the service flow. The statistical points can be set inside the device according to the number of service boards. Each of the multiple service boards inside the device contains at least one message statistics point. For example, multiple statistical points can be set on a service board as needed to monitor different directions or paths of the data flow in a more fine-grained manner.
[0046] A statistics pool pair is a data storage resource corresponding to a message statistics point, which is used to record the number of messages collected by the service board at its message statistics point within a specific time period. Each message statistics point can correspond to at least one statistics pool pair, which is used to count or calculate the messages passing through the message statistics point.
[0047] As an example, the number of statistical pool pairs can be set based on the number of uplink business boards corresponding to the current business board or the number of downlink business boards corresponding to the current business board. For example, if the current business board is an uplink business board, the number of statistical pool pairs corresponding to the current business board can be set according to the number of its downlink business boards recorded in the preset flow path configuration information of the business flow; if the current business board is a downlink business board, the number of statistical pool pairs corresponding to the current business board can be set according to the number of its uplink business boards recorded in the preset flow path configuration information of the business flow.
[0048] As an example, the message statistics refers to the number of messages counted at the message statistics point of each service board according to the preset statistics pool. At the message statistics point, the service board can count the number of messages flowing through the corresponding statistics pool in a specific period to obtain the message statistics.
[0049] Statistical solution for packets based on sequence number information:
[0050] In the scheme of counting the number of packets based on sequence number information, the packet statistics data may not be based on a simple count of the number of packets, but on the collection of the sequence number information contained in each packet. The sequence number in the sequence number information may be a number that uniquely identifies each packet and may be assigned when the packet is generated or enters the device.
[0051] The message statistics point can be used to record the sequence number information of multiple received messages in the message counting scheme based on sequence number information. The business board can report this sequence number information to the control board for subsequent analysis to determine whether the message is complete, whether there is any hardware abnormality such as packet loss, etc.
[0052] As an example, the control board can analyze the sequence number information collected from the message statistics point, and by checking the continuity or integrity of the sequence number, it can determine whether any message is lost during transmission. For example, if there is a jump or missing sequence number, it means that there is a problem with a hardware component, causing the message to not be forwarded correctly.
[0053] Those skilled in the art can select a statistical packet number scheme based on a statistical pool or a statistical packet number scheme based on sequence number information according to actual application scenarios. For example, in the case of limited resources or high real-time requirements, a statistical packet number scheme based on a statistical pool can be selected; in the scenario where a detailed analysis of the data flow is required to ensure the highest accuracy, a statistical packet number scheme based on sequence number information can be selected.
[0054] In an exemplary embodiment, the message statistical data is the number of messages counted in the statistical pool pair corresponding to the message statistical point; the statistical pool pair includes two statistical pools corresponding to different color identifiers, each of the statistical pools is used to count the number of messages in a preset dyeing switching cycle; the message statistical data is the number of messages counted in the previous dyeing switching cycle reported by the business board corresponding to the message statistical point in the current dyeing switching cycle.
[0055] As an example, each preset statistical pool pair may include two statistical pools, and the two statistical pools may correspond to different color identifiers respectively.
[0056] As an example, the packets flowing through the packet statistics point may carry a color identifier, and the service board may match the color identifier of the packet with the color identifier of the statistics pool, and count the number of packets in the statistics pool with the matching color identifier.
[0057] As an example, each statistics pool can be used to record the number of packets in a preset color switching cycle. When packets flow through the packet statistics point, the service board can record the number of packets into the statistics pool that matches the color identifier according to the current color identifier. Thus, in each color switching cycle, the device can accurately count how many packets have passed through a specific path.
[0058] As an example, the statistics of message statistics are periodic and synchronized with the dye switching cycle. When the control board needs to read message statistics, it can read the message statistics in the color identification statistics pool corresponding to the previous dye switching cycle in the current dye switching cycle. For example, the dye identification of the statistics pool corresponding to the current dye switching cycle is 1, and the dye identification of the statistics pool corresponding to the previous dye switching cycle is 0, then the message statistics in the statistics pool with the dye identification of 0 can be obtained in the current dye switching cycle.
[0059] For example, Figure 4 Schematic diagram of the message statistics process according to an embodiment of the present application. Figure 4 As shown, the business flow flows from the upstream business board A through the switching board to the downstream business board B. The flow path of the business flow includes multiple message statistics points: message statistics point 1 (located at the exit of the upstream business board A), message statistics point 2 (located at the entrance of the downstream business board B), etc.
[0060] The preset color switching period is T. When the message flows through the device, it can be dyed with a periodically switched color mark. For example, the color mark corresponding to the time 0-T is "0", and the color mark corresponding to the time T-2T is "1".
[0061] Each service board (such as an uplink service board or a downlink service board) has multiple statistical pool pairs, each of which consists of two statistical pools, corresponding to different color labels. For example, uplink service board A and downlink service board B both have N (N is a positive integer ≥ 1) statistical pool pairs, which are used to count the number of messages sent to and received from other service boards.
[0062] In the last color switching cycle (for example, 0-T seconds, color identification is 0), when the message flows through the upstream service board A exit (message statistics point 1), its quantity is recorded in the statistical pool pair corresponding to the destination downstream service board B (color identification is 0).
[0063] The message continues to flow through the device, and its number is counted again at the inlet of the downstream service board B (message counting point 2).
[0064] When entering a new dyeing switching cycle, the business board will report the number of messages counted in the previous dyeing switching cycle (color identification is 0) to the control board at a moment in the current dyeing switching cycle (for example, at T+T / 2), or the control board will obtain the message statistics data stored in the corresponding dyeing identification statistics pool within the time of 0-T at a moment in the current dyeing switching cycle (for example, at T+T / 2).
[0065] By calculating the message statistics of the previous dye switching cycle in the current dye switching cycle, it can be ensured that the data read by the control board is stable and reliable, avoiding the inconsistency problem in the data update process.
[0066] It should be noted that the above-mentioned reporting at T+T / 2 or obtaining of message statistical data stored in the corresponding dyeing identification statistical pool within the time of 0-T is merely an example of an embodiment of the present application. After the business board completes the statistics in a dyeing switching cycle, that is, when the dyeing identification switching is required, the business board does not report the data at the precise moment of the dyeing identification switching, but reserves a buffer time to ensure that all message data counted in the previous dyeing switching cycle have been stably stored and can be read.
[0067] Among them, the buffer time can be set according to actual conditions, and the embodiments of the present application are not limited here.
[0068] For example, within the time [T+t1, 2T-t2], the service board reports the data in the color identification statistics pool of the previous dyeing switching cycle to the control board. Among them, t1 ensures that all messages have been processed and counted, and t2 reserves software processing time so that the control board has enough time to read and process the data.
[0069] The message statistics mechanism of the embodiment of the present application makes the message statistics actually reflect the number of messages passing through the message statistics point on a specific path during the last dye switching cycle. This mechanism ensures the stability and consistency of the data, making it easier for the control board to perform subsequent analysis and hardware anomaly detection.
[0070] The embodiment of the present application can monitor the working status of the internal hardware of the device in real time and discover abnormal situations in time by periodically switching color identification and using a statistical pool to record the number of messages in different periods. This not only improves the accuracy and efficiency of fault detection, but also reduces interference with the normal business flow of the device, so that the system can effectively perform internal health checks while ensuring business continuity.
[0071] Step S302: Identify hardware abnormalities within the device based on the message statistical data.
[0072] For example, if the message statistics are the number of messages counted in a specific period, the control board can collect and compare the number of messages in each message statistics point (such as the upstream service board exit, the downstream service board entrance, the downstream service board exit, etc.) in a specific period to analyze whether there is a mismatch or significant difference in the number of messages. If the difference between the number of messages at each message statistics point in the flow path of the service flow is found in the comparison to exceed the preset packet loss threshold, it can be determined that the service board on this path may have an abnormality, such as message loss or transmission delay abnormality.
[0073] For example, the message statistics are the sequence number information counted by each message statistics point. The control board can analyze the sequence number information collected from the message statistics point, and by checking the continuity or integrity of the sequence number, it can be determined whether there is a message lost during the transmission process. For example, if there is a jump or missing sequence number, it means that there is a problem with a hardware component, resulting in the failure of the message to be forwarded correctly.
[0074] In an exemplary embodiment, identifying a hardware abnormality inside the device according to the message statistical data includes:
[0075] Determine a difference between the message statistical data of two mutually related message statistical points;
[0076] According to the difference and a preset packet loss threshold, a hardware abnormality inside the device is identified.
[0077] As an example, after the control board receives the message statistics of all message statistics points, the difference between the message statistics of two mutually related message statistics points can be determined. This association can be based on the transmission path of the message, for example, the message statistics point at the egress of the upstream service board and the message statistics point at the ingress of the downstream service board, so as to determine the packet loss that may occur during the transmission of the message from one service board to another. By calculating the difference in the number of messages counted by these two message statistics points in the last dye switching cycle, the number of packet losses during the transmission process can be obtained.
[0078] As an example, the control board can compare the difference with a preset packet loss threshold. The preset packet loss threshold can be a pre-set value used to determine the number of packet losses allowed during message transmission under normal working conditions. If the difference between the message statistics of two related message statistics points exceeds this threshold, the control board can identify that there is a hardware anomaly inside the device, resulting in message loss.
[0079] In an exemplary embodiment, identifying a hardware abnormality inside the device according to the difference and a preset packet loss threshold includes:
[0080] When the difference is greater than the preset packet loss threshold, it is determined that a hardware abnormality exists in the flow path of the service flow.
[0081] As an example, the control board may compare the difference of the calculated packet statistics of the packet statistics point with a preset packet loss threshold, wherein the preset packet loss threshold may be set based on a reasonable packet loss range expected under normal working conditions. If the difference exceeds the preset packet loss threshold, it may indicate that the packet loss situation transmitted inside the device exceeds the normal range, which may indicate that there is a hardware abnormality.
[0082] As an example, when the difference is greater than a preset packet loss threshold, the control board may determine that there is a hardware anomaly in a specific path through which the message flows. The hardware anomaly may include, but is not limited to, chip failure, connection problem, circuit board problem, or unstable power supply.
[0083] In an embodiment of the present application, a comparison result can be obtained by comparing the difference between the message statistical data of the message statistical point during the internal transmission process of the device and the preset packet loss threshold. The control board can detect the unexpected message loss in time according to the comparison result, thereby quickly identifying and locating the hardware abnormality.
[0084] In the embodiment of the present application, by obtaining the message statistics of the business flow flowing through multiple business boards inside the device at multiple preset message statistics points; according to the message statistics, the hardware abnormality inside the device is identified. By setting the message statistics point on the critical path, the status of the business flow can be monitored in real time. Once abnormal packet loss or transmission problems are detected, it can respond immediately, avoiding the resource occupation and data deviation problems caused by starting additional test flows, reducing the operating burden of the device, and solving the problem that the method of detecting hardware abnormalities inside the device in the related technology occupies the device forwarding resources and has low real-time performance.
[0085] The following further describes the solution in which the packet statistics data is the number of packets counted in the statistics pool pair corresponding to the packet statistics point:
[0086] In an exemplary embodiment, the multiple service boards include an uplink service board and a downlink service board, the message statistics point includes at least an uplink service board egress and a downlink service board ingress, and before obtaining message statistics of a service flow flowing through the multiple service boards inside the device at the message statistics point, it also includes:
[0087] For the message of the service flow flowing through the egress of the upstream service board, determine a first target statistical pool pair from the multiple statistical pool pairs of the upstream service board through the upstream service board, and determine a first target statistical pool in the first target statistical pool pair corresponding to the message, and count the message through the first target statistical pool;
[0088] For the message of the business flow flowing through the entrance of the downstream business board, the second target statistical pool pair is determined from the multiple statistical pool pairs of the downstream business board through the downstream business board, and the second target statistical pool in the second target statistical pool pair corresponding to the message is determined, and the message is counted through the second target statistical pool.
[0089] As an example, when a service message flows through the export of an upstream service board, the upstream service board can determine the first target statistical pool pair corresponding to the destination service board from the multiple statistical pool pairs it has according to the destination of the message (i.e., the destination downstream service board). The statistical pool pair can include two statistical pools, which are respectively used to record the number of messages in different coloring switching cycles, so that statistics can be performed in different cycles.
[0090] As an example, the uplink service board may determine the first target statistical pool in the first target statistical pool pair according to the coloring identifier (such as color 0) of the current message.
[0091] As an example, the uplink service board can count the number of packets flowing through the uplink service board egress into the first target statistics pool, thereby ensuring that the counted number of packets accurately corresponds to the current color switching cycle and the destination service board of the service flow.
[0092] As an example, when a message arrives at the entrance of a downstream service board, the downstream service board can determine the second target statistical pool pair corresponding to the source upstream service board from the multiple statistical pool pairs it owns based on the coloring identifier (such as color 0) carried in the message and the source of the message (i.e., the source upstream service board).
[0093] As an example, the downlink service board can determine the second target statistical pool in the second target statistical pool pair according to the coloring identifier (such as color 0) carried by the message. The second target statistical pool can be used to count the number of messages sent by the source uplink service board.
[0094] As an example, the downlink service board can count the number of received packets into the second target statistics pool, ensuring that the counted number of packets accurately corresponds to the source uplink service board and the specific coloring switching cycle.
[0095] The message statistics mechanism of the embodiment of the present application ensures that the statistics pool in the statistics pool pair can accurately collect the number of messages sent or received by a specific business board within a specific dye switching cycle. By using dye identification and statistics pool pairs, the periodic distinction and directional matching of message statistics can be achieved, so that in the subsequent reading and analysis of message statistics data, the packet loss between different business boards can be accurately calculated, and hardware anomalies inside the device can be quickly identified. This dynamic and periodic message statistics method improves the accuracy and stability of hardware anomaly detection.
[0096] In an exemplary embodiment, determining, by the uplink service board, a first target statistics pool pair from a plurality of statistics pool pairs of the uplink service board includes:
[0097] The preset flow path configuration information corresponding to the service flow is queried through the uplink service board to determine the destination downlink service board of the message, and the first target statistical pool pair corresponding to the destination downlink service board is determined from the multiple statistical pool pairs of the uplink service board.
[0098] As an example, when a message flows through an uplink service board, the uplink service board can query the internal flow path configuration information. The flow path configuration information can include detailed instructions on how the message should be forwarded based on its attributes (such as the slot number of the destination downlink service board, etc.). This information is pre-configured in the uplink service board to guide the internal processing and forwarding process of the message.
[0099] As an example, by querying the flow path configuration information, the uplink service board can identify the destination of the current message, that is, the destination downlink service board. For example, if the message needs to be sent to downlink service board B, uplink service board A will determine that board B is the destination board through configuration information.
[0100] As an example, after determining the destination downlink service board, the uplink service board can select the first target statistical pool pair corresponding to the destination downlink service board from its multiple statistical pool pairs. The statistical pool pair is specially designed to track the message flow with a specific downlink service board, and contains two statistical pools, which correspond to different coloring identifiers (for example, color 0 and color 1). The first target statistical pool pair selected by the uplink service board is a specific statistical pool pair used to count the number of messages sent to the destination downlink service board of the service flow.
[0101] The uplink business board of the embodiment of the present application can determine the destination downlink business board of the message by querying the configuration information, so that the statistical pool can be accurately selected for data statistics. Combined with the coloring mark, it ensures that the statistical data can reflect the hardware status related to the specific business board within a specific period, and provides basic data support for the detection and location of hardware anomalies.
[0102] In an exemplary embodiment, the determining the first target statistics pool in the first target statistics pool pair corresponding to the message includes:
[0103] The color identifier corresponding to the message is determined by the uplink service board, the color identifier and the slot number of the uplink service board are added to the message, and a first target statistical pool corresponding to the color identifier in the first target statistical pool pair is determined.
[0104] As an example, when a message is processed in the uplink service board and is ready to be sent to the downlink service board, the uplink service board can calculate the color identifier (e.g., color 0 or color 1) that the current message should be dyed with based on the current system time and the preset dye switching cycle. The role of the color identifier is to distinguish the statistical information of messages in different cycles to ensure the accuracy and periodicity of the statistics.
[0105] As an example, the uplink service board adds the color identification of the current message and the slot number information of the uplink service board itself in the field of the message (for example, the header field). The color identification can be used to determine which statistical pool the message should be counted in at the downlink service board receiving the message; the slot number information can be used to determine the source uplink service board of the message at the downlink service board, so as to match the correct statistical pool pair.
[0106] As an example, the uplink service board can determine the first target statistical pool pair related to the slot of the downlink service board from multiple statistical pool pairs of the uplink service board according to the destination of the message, that is, the slot information of the destination downlink service board. The uplink service board can select the first target statistical pool corresponding to the color identifier from the first target statistical pool pair according to the currently calculated color identifier.
[0107] In an exemplary embodiment, determining, by the uplink service board, the color identifier corresponding to the message includes:
[0108] Querying a control field inside the uplink service board through the uplink service board, wherein a value of the control field is used to indicate a current color identifier;
[0109] The color identifier corresponding to the message is determined according to the value of the control field.
[0110] In an exemplary embodiment, it also includes:
[0111] The value of the control field is modified by the uplink service board according to a preset color switching cycle and the current time inside the device.
[0112] For example, Figure 5 is a schematic diagram of the dyeing process of the uplink service board according to an embodiment of the present application, such as Figure 5 As shown, when a message flows into the upstream service board, the message can query the control field inside the upstream service board. The control field can contain information about the current color identification, and the value of the control field can be dynamically updated by the upstream service board according to the configured color switching cycle and the current time inside the device.
[0113] When a message flows into the upstream service board, the upstream service board can read the value of the current control field to determine the current color identification. For example, in the current color switching cycle, the color identification indicated by the value of the control field is "color 0", and the upstream service board can add this color identification to the internal field of the message for subsequent statistical pool identification.
[0114] like Figure 5 As shown, the control module of the upstream service board can monitor the internal time of the device in real time, and can modify the internal control field according to the preset dye switching cycle and the real-time monitoring internal time of the device.
[0115] When the switching time point of the preset color switching cycle (for example, cycle T) is reached, the control module of the uplink service board can modify the color identifier in the control field. For example, if the color identifier of the current color switching cycle is "color 0", after the switching time point of cycle T is reached, the color identifier will be modified to "color 1".
[0116] The modification of the control field in the embodiment of the present application can ensure that the value of the control field always indicates the color identifier of the current dyeing switching cycle, so that when the next message flows in, the correct dyeing identifier can be obtained immediately for subsequent statistical pool selection and message dyeing.
[0117] like Figure 5As shown, when the message flows into the upstream service board, the current control field can be queried to obtain the current color identifier, and the color identifier and the slot information of the upstream service board are added to the header field of the message, and then the message will be colored and counted.
[0118] The coloring mechanism of the embodiment of the present application enables the uplink service board to dynamically color the message according to the color identification of the current coloring switching cycle, ensuring the accuracy and reliability of the message statistics. At the same time, through the periodic modification of the control field, the automatic switching of the color identification is realized, and there is no need to query the current timestamp for each message, thereby reducing processing overhead and improving efficiency.
[0119] In an exemplary embodiment, determining, by the downlink service board, a second target statistical pool pair from a plurality of the statistical pool pairs of the downlink service board, and determining a second target statistical pool in the second target statistical pool pair corresponding to the message, includes:
[0120] The message to which the color identifier and the slot number of the upstream business board have been added is received through the downstream business board, and according to the slot number of the upstream business board in the message, a second statistical pool pair corresponding to the message is determined from multiple statistical pool pairs of the downstream business board, and the second target statistical pool corresponding to the message is determined according to the color identifier.
[0121] As an example, the downlink service board can receive a message from the uplink service board. At this time, the message has been processed by the uplink service board, and the color identification and the slot number information of the uplink service board have been added to the message.
[0122] As an example, the downlink service board can extract the slot number information of the uplink service board from the internal field of the received message header. The source service board of the message can be determined based on the slot number in the slot number information. The downlink service board can determine the second statistical pool pair corresponding to the slot information of the source uplink service board from its own multiple statistical pool pairs based on the extracted slot number information of the uplink service board.
[0123] As an example, the downlink service board can read the color identifier from the message. The downlink service board can select a statistical pool that matches the color identifier from the second statistical pool pair, that is, the second target statistical pool, based on the color identifier. For example, if the color identifier of the message is "color 0", the downlink service board will select the statistical pool corresponding to "color 0" in the second statistical pool pair to count the number of messages.
[0124] For example, Figure 4As shown, when the message of the business flow flowing through the upstream business board A flows through the upstream business board exit (message statistics point 1), the statistical pool pair corresponding to the destination downstream business board B can be selected from the preset statistical pool pairs according to the slot of the destination of the message (i.e., the destination downstream business board B) and the current coloring identifier (color 0 or color 1) to perform message statistics.
[0125] When the service flow message flows through the exit of the upstream service board A, the upstream service board A can query its preset flow path configuration information to determine the destination of the message, that is, the information of the destination downstream service board B (such as the slot number of the destination downstream service board B).
[0126] Based on the information of the target downlink service board B, the uplink service board A determines, from its multiple statistics pool pairs, a first target statistics pool pair related to the target downlink service board B. Each statistics pool pair includes two statistics pools corresponding to different color identifiers (eg, color 0 and color 1).
[0127] Uplink service board A can query its internal control field to obtain the current color identification.
[0128] The upstream service board A adds the current color identification and the slot number information of the upstream service board A itself to the message.
[0129] The uplink service board A can determine the first target statistical pool corresponding to the current color identifier from the first target statistical pool pair, and count the number of packets into the statistical pool, thereby completing the statistics of the outgoing packets.
[0130] Downstream service board B can receive the message from upstream service board A. At this time, the message already contains the color identifier and the slot number of upstream service board A.
[0131] Downlink service board B may determine, according to the slot number of the uplink service board in the message, a second statistics pool pair corresponding to the uplink service board A from its multiple statistics pool pairs.
[0132] Downlink service board B may read the color identifier in the message, and determine the corresponding second target statistical pool in the second statistical pool pair according to the color identifier, for counting the number of received messages.
[0133] Downstream service board B can count the number of received messages into the determined second target statistics pool, thereby completing the recording of the number of inbound messages.
[0134] Thus, dynamic statistics of messages based on color identification and slot number are realized between the upstream service board A and the downstream service board B, ensuring that the number of messages recorded in the statistics pool can accurately reflect the actual transmission status of the messages within the color switching cycle.
[0135] In an exemplary embodiment, the method further includes:
[0136] A chip alarm signal is received, and abnormal hardware inside the device is determined according to the chip alarm signal and the message statistical data.
[0137] The embodiment of the present application can determine the abnormal hardware inside the device by receiving the chip alarm signal and combining it with the message statistics. By integrating the real-time alarm information of the device hardware with the packet loss statistics of the business flow, the system can more accurately and timely identify the specific hardware module that causes the packet loss, so as to quickly take corresponding maintenance measures.
[0138] As an example, the control board can monitor and receive alarm signals from various chips inside the device in real time. The alarm signals may involve various abnormal conditions such as chip overheating, power supply problems, memory errors, signal interference, etc. Each alarm signal may include the specific alarm type, the timestamp of occurrence, and the associated hardware module (such as upstream service board A, switch board, downstream service board B, etc.).
[0139] As an example, the control board can summarize the received alarm signals and analyze their correlation with the packet loss of the business flow. The control board can find potential abnormal hardware by analyzing the hardware module corresponding to the chip alarm signal and the packet loss data of the message statistics in the same time period. For example, if the statistical data of the business flow message between the upstream business board A and the downstream business board B shows abnormal packet loss during a certain color switching cycle, and there is a chip alarm between the upstream business board A and the switching network connection module during the same period, then it can be inferred that the abnormal hardware may be located in the connection module between the upstream business board A and the switching network.
[0140] As an example, by combining chip alarms and packet loss data, the control board can determine the hardware inside the device that causes the anomaly. For example, if packet loss is observed in multiple flow paths and there are alarms for chips inside the switch board, the abnormal hardware is likely to be the chip of the switch board. This combined analysis method can effectively narrow the scope of the problem and improve the accuracy of fault location.
[0141] As an example, the control panel can also generate an exception report based on the above analysis, which includes the specific location of the abnormal hardware, the impact caused, and the recommended maintenance actions, etc. The exception report can be sent to maintenance personnel or an automatic fault handling system for subsequent handling measures.
[0142] In the embodiment of the present application, the control board can not only detect hardware anomalies inside the device, but also accurately locate abnormal hardware and evaluate its impact on the business by comprehensively analyzing chip alarms and message statistics, thereby achieving more efficient and intelligent fault diagnosis and maintenance. This integrated anomaly detection method significantly improves the operation and maintenance efficiency and business continuity of network equipment, and is an important guarantee for achieving stable operation of equipment.
[0143] In an exemplary embodiment, the message statistics point further includes at least one of the following: an uplink service board inlet and a downlink service board outlet.
[0144] As an example, the message statistics point may also include at least one of the following: an uplink service board inlet and a downlink service board outlet.
[0145] For example, Figure 6 is another schematic diagram of a message statistics process according to an embodiment of the present application, such as Figure 6 As shown, compared to Figure 4 By adding statistical points at the ingress of the upstream service board and the egress of the downstream service board, the transmission status of the data packet can be monitored more comprehensively, thereby improving the accuracy and timeliness of hardware anomaly detection.
[0146] For example, Figure 6 The statistical points in the example include the upstream service board entrance (message statistical point 1), the upstream service board exit (message statistical point 2), the downstream service board entrance (message statistical point 3), and the downstream service board exit (message statistical point 4).
[0147] like Figure 6 As shown, the inlet of the upstream service board (i.e., message statistical point 1) is the inlet for the message inflow of the service flow, and the outlet of the downstream service board (i.e., message statistical point 4) is the outlet for the message outflow of the service flow. The message transmission direction in the service flow can be from message statistical point 1 to message statistical point 4, that is, the message statistical points that the message passes through are message statistical point 1, message statistical point 2, message statistical point 3, and message statistical point 4 in sequence. Among them, the message can be added with a coloring mark by the upstream service board at message statistical point 1.
[0148] Assuming that the current time is in the period 0-T, the corresponding coloring mark is 0.
[0149] When a message of a service flow enters upstream service board A for the first time, it can be marked with a color identifier of 0 and recorded in a specific statistical pool. This statistical pool is associated with upstream service board A, the source of the message, and is used to count the total number of messages at the entrance of upstream service board A.
[0150] The message is transmitted from the inlet of the upstream service board A to the outlet of the upstream service board A, and is again recorded in the statistical pool associated with the upstream service board A. This record can be based on the actual transmission of the message rather than the inlet statistics.
[0151] The message is processed by the export of the upstream service board A and passes through the switch board, and carries the corresponding coloring mark (color 0) and continues to be transmitted to the downstream service board B.
[0152] When the message arrives at the entrance of the downstream service board B, the corresponding statistical pool is updated at the message statistical point 3 according to the coloring mark (color 0) carried by the message and the slot information of the source upstream service board A, and the number of messages is recorded.
[0153] In the period T-2T, the message finally leaves the device from the egress of the downstream service board B. Message statistics point 4 records the total number of messages at the egress of the downstream service board B according to the coloring mark (color 0) and source slot information carried by the message.
[0154] In the current cycle (such as T+T / 2), the control board can read and analyze the data of the previous cycle 0-T. Compare the message statistics of message statistics point 1 and message statistics point 2, the message statistics of message statistics point 2 and message statistics point 3, and the message statistics of message statistics point 3 and message statistics point 4, so as to monitor the change of the number of messages from the inlet of the upstream service board A to the outlet of the downstream service board B.
[0155] If the control board identifies that the difference between the number of packets at packet statistics point 1 (inlet of upstream service board A) and the number of packets at packet statistics point 2 (exit of upstream service board A) is greater than the preset packet loss threshold, then it can be preliminarily determined that there is an internal abnormality in upstream service board A. Similarly, the control board can also compare the number of packets at the outlet of upstream service board A and the inlet of downstream service board B, and compare the number of packets at the inlet of downstream service board B and the outlet of downstream service board B, so as to detect abnormalities between upstream service board A and downstream service board B (such as between upstream service board and switch board, between switch board and downstream service board, etc.) and within the downstream service board.
[0156] The control board can also integrate the chip alarm information inside the upstream service board, the chip alarm information between the upstream service board A and the switch board, the alarm information between the switch board and the downstream service board B, and the chip alarm information inside the downstream service board, and combine it with the packet loss situation of the business flow to more accurately determine the location of the hardware anomaly and evaluate the impact of the anomaly on the business.
[0157] like Figure 6As shown, in the T-2T period, the service message can be marked with coloring identifier 1 at message statistical point 1 until the coloring information is cleared after passing through the last message statistical point 4. The selection of the statistical pool in the corresponding statistical pool pair at the message statistical point 2, message statistical point 3, and message statistical point 4 during this period is based on the coloring identifier 1. The selection of the statistical pool pair is consistent with the scheme of the two statistical points. It is determined on the uplink service board according to the destination downlink service board, and on the downlink service board according to the source uplink service board.
[0158] When the time reaches 2T, the control board can read and analyze the data in the statistical pool again and repeat the above process to check the hardware status in a new round of dye switching cycle.
[0159] Through this dynamic, dye-based method and additional packet statistics points (upstream service board inlet and downstream service board outlet), the control board can more accurately detect hardware anomalies inside the device and evaluate the impact of anomalies on service flows, providing more timely and detailed information for network maintenance and fault location. This method is particularly suitable for network environments with dense service traffic and complex hardware modules, because it can monitor in real time and respond quickly, avoiding the limitations and resource consumption of traditional static test flow methods.
[0160] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0161] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0162] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0163] Figure 7is a structural block diagram of an electronic device according to an embodiment of the present application, such as Figure 7 As shown, an embodiment of the present application further provides an electronic device 70, including a memory 701 and a processor 702, wherein the memory 701 stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.
[0164] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0165] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0166] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps in any of the above method embodiments when executed by a processor.
[0167] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0168] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for identifying hardware anomalies in a data communication device, characterized in that: include: Obtaining message statistics of service flows passing through multiple service boards inside the device at multiple preset message statistics points; According to the message statistical data, hardware abnormalities inside the device are identified.
2. The method according to claim 1, characterized in that The identifying, according to the message statistical data, a hardware abnormality inside the device, includes: Determine a difference between the message statistical data of two mutually related message statistical points; According to the difference and a preset packet loss threshold, a hardware abnormality inside the device is identified.
3. The method according to claim 2, characterized in that The identifying, according to the difference and a preset packet loss threshold, a hardware abnormality inside the device includes: When the difference is greater than the preset packet loss threshold, it is determined that a hardware abnormality exists in the flow path of the service flow.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: A chip alarm signal is received, and abnormal hardware inside the device is determined according to the chip alarm signal and the message statistical data.
5. The method according to claim 1, characterized in that: Each of the plurality of service boards comprises at least one of the message statistics points, each service board corresponds to at least one preset statistics pool pair, and the message statistics data is the number of messages counted in the statistics pool pair corresponding to the message statistics point; or, The message statistical data is the sequence number information in each message of the multiple messages of the service flow received and counted at the message statistical point.
6. The method according to claim 5, characterized in that The message statistical data is the number of messages counted in the statistical pool pair corresponding to the message statistical point; the statistical pool pair includes two statistical pools corresponding to different color identifiers, each of the statistical pools is used to count the number of messages in a preset dyeing switching cycle; the message statistical data is the number of messages counted in the previous dyeing switching cycle reported by the business board corresponding to the message statistical point in the current dyeing switching cycle.
7. The method according to claim 6, characterized in that The multiple service boards include an uplink service board and a downlink service board, the message statistics point includes at least an uplink service board exit and a downlink service board entrance, and before obtaining message statistics of the service flows flowing through the multiple service boards inside the device at the message statistics point, the method further includes: For the message of the service flow flowing through the egress of the upstream service board, determine a first target statistical pool pair from the multiple statistical pool pairs of the upstream service board through the upstream service board, and determine a first target statistical pool in the first target statistical pool pair corresponding to the message, and count the message through the first target statistical pool; For the message of the business flow flowing through the entrance of the downstream business board, the second target statistical pool pair is determined from the multiple statistical pool pairs of the downstream business board through the downstream business board, and the second target statistical pool in the second target statistical pool pair corresponding to the message is determined, and the message is counted through the second target statistical pool.
8. The method according to claim 7, characterized in that Determining, by the uplink service board, a first target statistics pool pair from a plurality of statistics pool pairs of the uplink service board, comprising: The preset flow path configuration information corresponding to the service flow is queried through the uplink service board to determine the destination downlink service board of the message, and the first target statistical pool pair corresponding to the destination downlink service board is determined from the multiple statistical pool pairs of the uplink service board.
9. The method according to claim 7, characterized in that: The determining the first target statistics pool in the first target statistics pool pair corresponding to the message includes: The color identifier corresponding to the message is determined by the uplink service board, the color identifier and the slot number of the uplink service board are added to the message, and a first target statistical pool corresponding to the color identifier in the first target statistical pool pair is determined.
10. The method according to claim 9, characterized in that Determining the color identifier corresponding to the message by the uplink service board includes: Querying a control field inside the uplink service board through the uplink service board, wherein a value of the control field is used to indicate a current color identifier; The color identifier corresponding to the message is determined according to the value of the control field.
11. The method according to claim 10, characterized in that Also includes: The value of the control field is modified by the uplink service board according to a preset color switching cycle and the current time inside the device.
12. The method according to claim 7, characterized in that The step of determining, through the downlink service board, a second target statistics pool pair from a plurality of the statistics pool pairs of the downlink service board, and determining a second target statistics pool in the second target statistics pool pair corresponding to the message comprises: The message to which the color identifier and the slot number of the upstream business board have been added is received through the downstream business board, and according to the slot number of the upstream business board in the message, a second statistical pool pair corresponding to the message is determined from multiple statistical pool pairs of the downstream business board, and the second target statistical pool corresponding to the message is determined according to the color identifier.
13. The method according to claim 7, characterized in that The message statistics point also includes at least one of the following: an uplink service board inlet and a downlink service board outlet.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 13 when executed by a processor.
15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 13 are implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 13 are implemented.
Citation Information
Cited By
Packet loss measurement method, device and equipment and readable storage medium
CN122316948A