Bus monitoring device and control method, network card, electronic equipment and storage medium
By deploying a bus monitoring device on the network card bus end to monitor the reception and transmission data of the PCIe link, the problem of difficulty in monitoring the PCIe link in the prior art is solved, and the detailed analysis of link status and the accuracy of fault diagnosis is improved.
Patent Information
- Application Number
- CN202510121453.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-24
AI Technical Summary
The prior art is difficult to effectively monitor PCIe links, making it difficult to accurately determine the cause when link abnormalities are found.
A bus monitoring device is provided, including a receiving monitoring module, a sending monitoring module and a trigger output module. By communicating with the network card bus terminal, the received and transmitted bus data are respectively monitored, the first and second bus monitoring data are generated, and the data is sent to an external analysis module for analysis.
It realizes comprehensive monitoring of PCIe links, can accurately judge problems in the reception process, transmission process or bus connection itself, and improves the accuracy and efficiency of fault diagnosis.
Smart Images

Figure CN119945941A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of servers, and in particular to a bus monitoring device and control method, a network card, an electronic device and a storage medium. Background Art
[0002] In computer systems, the network card plays a vital role. As the interface for the whole machine to interact with external data, it undertakes the key task of data exchange. Specifically, the data received and sent by the network card must interact with the whole machine CPU through the Peripheral Component Interconnect Express (PCIe) link. Therefore, the signal quality of the PCIe link has a direct and significant impact on the accuracy of the data communicated by the network card.
[0003] In practical applications, when an abnormality occurs in a PCIe link, it is difficult to accurately determine the cause. Usually, the most commonly used preliminary judgment method is to use the Basic Input / Output System (BIOS) and the serial port log of the network card for fault analysis, but this method can only provide limited information. In addition, the network card and the CPU exchange data through the PCIe bus. When a problem occurs, the network card will report a correctable error (CE) and an uncorrectable error (UCE) to indicate the abnormal state of the link, and the BIOS will also record the corresponding status log. However, these reported information can only indicate the result of the problem, which is very coarse-grained information and cannot be used to find out the real cause of the problem. Therefore, how to monitor the PCIe link has become an urgent problem to be solved. Summary of the invention
[0004] The present invention provides a bus monitoring device and control method, a network card, an electronic device and a storage medium, which are mainly intended to solve the problem of being unable to effectively monitor a PCIe link.
[0005] According to a first aspect of the present disclosure, there is provided a bus monitoring device, comprising: a receiving monitoring module, a sending monitoring module, and a trigger output module;
[0006] The receiving monitoring module is in communication connection with the network card bus terminal, and is used to monitor the bus data received by the network card bus terminal and generate first bus monitoring data;
[0007] The sending monitoring module is in communication connection with the network card bus terminal, and the sending monitoring module is used to monitor the bus data sent by the network card bus terminal to generate second bus monitoring data;
[0008] The trigger output module is respectively connected to the receiving monitoring module and the sending monitoring module for communication, and is used to send the first bus monitoring data and / or the second bus monitoring data to an external analysis module so as to perform data analysis on the bus connection status.
[0009] In some embodiments, the device further comprises: a trigger input module;
[0010] The trigger input module is respectively connected to the receiving monitoring module and the sending monitoring module for communication, and is used to receive configuration parameters of the receiving monitoring module and the sending monitoring module, and perform parameter configuration on the receiving monitoring module and the sending monitoring module.
[0011] In some embodiments, the configuration parameters include: a first configuration parameter; the receiving monitoring module includes: a first control unit, a first configuration unit, a first trigger unit, and a first buffer area;
[0012] The first configuration unit is in communication with the trigger input module and is used to store the first configuration parameters written by the trigger input module;
[0013] The first control unit is respectively connected to the first configuration unit and the first trigger unit for communication, and is used to generate a first monitoring rule according to the first configuration parameter, and send the first monitoring rule to the first trigger unit for configuration;
[0014] The first trigger unit is used to monitor the bus data sent by the processor to the network card bus terminal according to the first monitoring rule, and collect the bus data that triggers the first monitoring rule to generate the first bus monitoring data;
[0015] The first buffer area is communicatively connected to the first trigger unit, and is used to store the first bus monitoring data collected by the first trigger unit.
[0016] In some embodiments, the configuration parameters include: a second configuration parameter; the sending monitoring module includes: a second control unit, a second configuration unit, a second trigger unit, and a second buffer area;
[0017] The second configuration unit is in communication with the trigger input module and is used to store the second configuration parameters written by the trigger input module;
[0018] The second control unit is respectively connected to the second configuration unit and the second trigger unit for communication, and is used to generate a second monitoring rule according to the second configuration parameter, and send the second monitoring rule to the second trigger unit for configuration;
[0019] The second trigger unit is used to monitor the bus data sent from the network card bus terminal to the processor according to the second monitoring rule, and collect the bus data that triggers the second monitoring rule to generate the second bus monitoring data;
[0020] The second buffer area is in communication with the second trigger unit, and is used for storing the second bus monitoring data collected by the second trigger unit.
[0021] In some embodiments, the trigger output module is respectively communicated with the first cache area and the second cache area, and is used to obtain the first bus monitoring data and the second bus monitoring data, and send the first bus monitoring data and / or to the external analysis module, so that the external analysis module can perform data analysis on the connection status of the target bus between the processor and the network card bus end to determine whether the target bus has a fault.
[0022] In some embodiments, the configuration parameters include: an operation control instruction set, a parameter setting mode, and an information capture triggering rule.
[0023] In some embodiments, the external analysis module includes any one of a baseboard management controller, an operating system, and a computing device connected to a network card serial port.
[0024] In some embodiments, the apparatus further comprises: a clock synchronization module;
[0025] The clock synchronization module is respectively connected to the receiving monitoring module and the sending monitoring module for communication, and is used to obtain a clock signal and perform clock synchronization processing on the receiving monitoring module and the sending monitoring module.
[0026] According to a second aspect of the present disclosure, a control method for a bus monitoring device is provided, the method comprising:
[0027] In response to the parameter configuration instruction, the receiving monitoring module and the sending monitoring module are configured with the received configuration parameters;
[0028] Based on the configuration parameters, the bus data received by the network card bus terminal and the bus data sent by the network card bus terminal are monitored to generate first bus monitoring data and second bus monitoring data respectively;
[0029] The first bus monitoring data and / or the second bus monitoring data are sent to an external analysis module so as to perform data analysis on the bus connection status.
[0030] In some embodiments, the configuration parameters include: a first configuration parameter and a second configuration parameter; and the step of using the received configuration parameters to configure the receiving monitoring module and the sending monitoring module includes:
[0031] generating a first monitoring rule according to the first configuration parameter, and sending the first monitoring rule to a first trigger unit of the receiving monitoring module for configuration;
[0032] A second monitoring rule is generated according to the second configuration parameter, and the second monitoring rule is sent to the second trigger unit of the sending monitoring module for configuration.
[0033] In some embodiments, based on the configuration parameters, monitoring the bus data received by the network card bus terminal and the bus data sent by the network card bus terminal to generate first bus monitoring data and second bus monitoring data respectively includes:
[0034] According to the first monitoring rule, the bus data sent by the processor to the network card bus terminal is monitored, and the bus data triggering the first monitoring rule is collected to generate the first bus monitoring data;
[0035] According to the second monitoring rule, the bus data sent from the network card bus terminal to the processor is monitored, and the bus data triggering the second monitoring rule is collected to generate the second bus monitoring data.
[0036] According to a third aspect of the present disclosure, a network card is provided, the network card comprising the bus monitoring device described in the first aspect.
[0037] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:
[0038] at least one processor; and
[0039] a memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the second aspect.
[0041] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the second aspect.
[0042] According to a sixth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method described in the second aspect is implemented.
[0043] The present disclosure provides a bus monitoring device and control method, a network card, an electronic device and a storage medium, wherein a receiving monitoring module is connected to the network card bus terminal in communication, and is used to monitor the bus data received by the network card bus terminal, and generate first bus monitoring data; a sending monitoring module is connected to the network card bus terminal in communication, and is used to monitor the bus data sent by the network card bus terminal, and generate second bus monitoring data; a trigger output module is connected to the receiving monitoring module and the sending monitoring module in communication, and is used to send the first bus monitoring data and / or the second bus monitoring data to an external analysis module, so as to perform data analysis on the bus connection status. Compared with the related art, the embodiment of the present disclosure can fully obtain the flow of bus data by separately monitoring the receiving and sending data of the network card bus terminal; once a problem occurs, an in-depth analysis can be performed based on the detailed first bus monitoring data and the second bus monitoring data, and it can be accurately determined whether the receiving process or the sending process fails, or whether it is a problem with the bus connection itself, which greatly improves the accuracy and efficiency of fault diagnosis, and reduces the time and labor cost required for troubleshooting; it can realize real-time monitoring of the network card bus connection status, and ensure the stable operation of the system.
[0044] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0046] Figure 1 A schematic diagram of the structure of a bus monitoring device provided by an embodiment of the present disclosure;
[0047] Figure 2 A schematic diagram of the structure of another bus monitoring device provided by an embodiment of the present disclosure;
[0048] Figure 3 A schematic diagram of the structure of another bus monitoring device provided by an embodiment of the present disclosure;
[0049] Figure 4 A schematic diagram of the structure of another bus monitoring device provided by an embodiment of the present disclosure;
[0050] Figure 5 A flowchart of a control method for a bus monitoring device provided by an embodiment of the present disclosure;
[0051] Figure 6 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0053] In the server architecture, the network card is a key external data exchange hub and is responsible for ensuring smooth data exchange. The data it receives and sends must be transmitted and connected to the CPU of the entire machine via the PCIe link. Therefore, the signal quality of the PCIE link directly determines the accuracy of the data when the network card communicates with the outside world. Once an abnormal condition occurs in the PCIE link, it is not easy to accurately determine its root cause. The conventional method is to use the BIOS and network card serial port logs for preliminary investigation, but this can only provide limited clues. The relevant technology has significant limitations in dealing with PCIe link problems, and information acquisition is subject to many prerequisites. In many actual scenarios, it is even impossible to successfully capture the problem log, which makes it difficult to meet actual needs.
[0054] The bus monitoring device and control method, network card, electronic device and storage medium according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0055] Figure 1 This is a schematic diagram of the structure of a bus monitoring device provided by an embodiment of the present disclosure. The device comprises: a receiving monitoring module 11, a sending monitoring module 12, and a trigger output module 13;
[0056] The receiving monitoring module 11 is in communication connection with the network card bus terminal 2 and is used for monitoring the bus data received by the network card bus terminal 2 and generating first bus monitoring data.
[0057] In the embodiment of the present disclosure, in order to better monitor and control the state of the bus between the processor 4 and the network card, the embodiment of the present disclosure monitors the connection state of the bus by integrating the bus control device in the network card. The receiving monitoring module 11 is mainly used to monitor the bus data sent by the processor 4 to the network card. The embodiment of the present disclosure does not limit the bus to use a bus of a communication protocol. The receiving monitoring module 11 establishes a close communication connection with the network card bus terminal 2 through a high-speed, stable connection link that adapts to the communication protocol of the network card bus terminal 2. During the operation of the system, the receiving monitoring module 11 carries out a full-scale and refined monitoring operation on various types of bus data continuously received by the network card bus terminal 2. It can collect and deeply analyze key information such as the flow size of the data, the change in the rate of data transmission, the integrity check result of the data, and the source and target address of the data in real time at a very high frequency. Through complex and precise algorithm processing, these collected raw data are converted into first bus monitoring data with high reference value. These data not only record the real-time status of the received data in detail, but also reflect the potential problems or abnormal trends that may exist in the data during the receiving process, providing solid and reliable basic data support for subsequent system analysis and troubleshooting.
[0058] The sending monitoring module 12 is in communication connection with the network card bus terminal 2 , and the sending monitoring module 12 is used to monitor the bus data sent by the network card bus terminal 2 to generate second bus monitoring data.
[0059] In the embodiment of the present disclosure, the sending monitoring module 12 establishes a communication connection with the network card bus terminal 2 through a communication link, and the communication link is configured according to the communication protocol standard of the network card bus terminal 2 to ensure the accuracy and reliability of data transmission. During the operation of the entire system, the sending monitoring module 12 plays an important monitoring function, and it monitors the bus data being sent by the network card through the network card bus terminal 2.
[0060] The transmission monitoring module 12 can accurately capture various key information of the data when it is transmitted, including but not limited to the transmission frequency of the data, the size of the data packet, the transmission order of the data, the transmission timestamp, and the signal strength during the transmission process. At the same time, it will strictly check the integrity of the data encoding format, the data packet header and the packet tail to ensure the standardization of the data. Through the built-in efficient data processing algorithm, the various original information related to the transmission data collected will be sorted and analyzed, and converted into the second bus monitoring data with clear meaning and reference value.
[0061] These second bus monitoring data record in detail the complete information of the data sent by the network card bus terminal 2, not only covering the real-time status information during the data transmission process, but also being able to analyze the potential risk factors that may exist, such as data loss, data delay or transmission error, based on the data transmission characteristics and historical records. It provides an indispensable data basis for subsequent system performance evaluation, troubleshooting and network optimization, and helps maintain the stable operation and efficient communication of the entire system.
[0062] The trigger output module 13 is respectively connected to the receiving monitoring module 11 and the sending monitoring module 12 for communication, and is used to send the first bus monitoring data and / or the second bus monitoring data to the external analysis module 3 so as to perform data analysis on the bus connection status.
[0063] In the embodiment of the present disclosure, the trigger output module 13 establishes communication connection with the receiving monitoring module 11 and the sending monitoring module 12 through the communication channel. This connection ensures the stability and timeliness of data transmission so that it can respond quickly when needed. During the operation of the system, the trigger output module 13 undertakes important data transmission tasks. It can accurately send the first bus monitoring data generated by the receiving monitoring module 11 and / or the second bus monitoring data generated by the sending monitoring module 12 to the external analysis module 3 according to the preset trigger conditions or preset monitoring rules. The trigger output module 13 has a variety of trigger mechanisms. For example, it can be timed according to the time interval, or it can be conditionally triggered according to the specific attributes of the monitoring data (such as the amount of data exceeds the threshold, abnormal data appears, etc.). The embodiment of the present disclosure does not limit the use of what trigger conditions to output the bus monitoring data. When triggered, the trigger output module 13 will perform necessary packaging and processing on the corresponding bus monitoring data to ensure the integrity and identifiability of the data during the transmission process.
[0064] These bus monitoring data contain rich information, covering multiple aspects such as data flow, transmission rate, data integrity, error marking, etc., which are comprehensive records of the bus connection status. After sending it to the external analysis module 3, the external analysis module 3 can use these data for in-depth data analysis. Through the comprehensive analysis of the first bus monitoring data and the second bus monitoring data, the external analysis module 3 can judge whether the bus connection is stable, whether the data transmission is smooth, whether there are problems such as data loss or errors, thereby providing strong support for optimizing bus connection, improving system performance, and solving potential hidden troubles. In this way, the trigger output module 13 has become an important bridge connecting the internal monitoring module and the external analysis module 3, through which the internal monitoring data is transmitted, a comprehensive and detailed data analysis of the bus connection status is realized, and the stable operation and efficient performance of the whole system are guaranteed.
[0065] The present disclosure provides a bus monitoring device, wherein a receiving monitoring module is connected to a network card bus terminal in communication, and is used to monitor the bus data received by the network card bus terminal, and generate first bus monitoring data; a sending monitoring module is connected to the network card bus terminal in communication, and is used to monitor the bus data sent by the network card bus terminal, and generate second bus monitoring data; a trigger output module is connected to the receiving monitoring module and the sending monitoring module in communication, and is used to send the first bus monitoring data and / or the second bus monitoring data to an external analysis module, so as to perform data analysis on the bus connection status. Compared with the related art, the embodiment of the present disclosure can fully obtain the flow of bus data by separately monitoring the receiving and sending data of the network card bus terminal; once a problem occurs, an in-depth analysis can be performed based on the detailed first bus monitoring data and the second bus monitoring data, and it can be accurately determined whether the receiving process or the sending process fails, or whether it is a problem with the bus connection itself, which greatly improves the accuracy and efficiency of fault diagnosis, and reduces the time and labor cost required for troubleshooting; it can realize real-time monitoring of the network card bus connection status, and ensure the stable operation of the system.
[0066] Furthermore, in a possible implementation of this embodiment, as Figure 2 As shown, the device further includes: a trigger input module 14;
[0067] The trigger input module 14 is respectively connected to the receiving monitoring module 11 and the sending monitoring module 12 for communication, and is used to receive configuration parameters of the receiving monitoring module 11 and the sending monitoring module 121 , and perform parameter configuration on the receiving monitoring module 11 and the sending monitoring module 12 .
[0068] Specifically in this embodiment, the bus monitoring device further integrates a trigger input module 14, which establishes a close and efficient two-way communication connection with the receiving monitoring module 11 and the sending monitoring module 12 by adopting a high-speed, stable and strong anti-interference communication line. Specifically in this embodiment, the PCIe link between the processor and the network card is mainly monitored. The present disclosure does not limit the communication bus corresponding to which communication protocol is monitored, for example, it can be the PCIe link of this embodiment.
[0069] During system startup or operation, the trigger input module 14 receives various configuration parameters from an external control unit or a preset configuration system. These configuration parameters cover a wide range of information, including but not limited to monitoring sensitivity settings for different data types, such as setting a higher sensitivity for key business data to ensure that any subtle abnormal changes can be captured in a timely manner; accurate setting of data flow thresholds, reasonably defining the boundaries between normal and abnormal flows based on the actual carrying capacity and performance requirements of the system; and adaptation parameters for specific data transmission modes or protocols to ensure that the monitoring module can accurately parse and process various complex data transmission scenarios.
[0070] Once these configuration parameters are received, the trigger input module 14 will quickly parse and verify the received parameters to ensure the accuracy and integrity of the parameters. Subsequently, based on the analysis results, the trigger input module 14 accurately transmits the processed and adapted parameters to the receiving monitoring module 11 and the sending monitoring module 12 through the control signal output port. For the receiving monitoring module 11, the trigger input module 14 will fine-tune its key functions such as data acquisition frequency, data screening rules, and anomaly detection algorithms based on the received configuration parameters. For example, if the configuration parameters require improving the monitoring accuracy of a certain type of specific data, the trigger input module 14 will correspondingly increase the sampling frequency of the receiving monitoring module 11 for this type of data, and optimize its data screening and analysis algorithms to ensure that potential problems can be discovered in a timely manner. Similarly, for the sending monitoring module 12, the trigger input module 14 reasonably configures the verification level, sending buffer size, and sending priority strategy of its sent data based on the configuration parameters. For example, when the system is in a high-load state, the trigger input module 14 can dynamically adjust the sending strategy of the sending monitoring module 12 according to the preset configuration parameters, giving priority to ensuring the timely sending of critical data, while reasonably controlling the flow of non-critical data to avoid network congestion.
[0071] Furthermore, in a possible implementation of this embodiment, as Figure 2 As shown, the configuration parameters include: first configuration parameters; the receiving monitoring module 11 includes: a first control unit 111, a first configuration unit 112, a first trigger unit 113, and a first buffer area 114;
[0072] The first configuration unit 112 is in communication with the trigger input module 14 and is used to store the first configuration parameters written by the trigger input module 14;
[0073] The first control unit 111 is respectively connected to the first configuration unit 112 and the first trigger unit 113 for communication, and is used to generate a first monitoring rule according to the first configuration parameter, and send the first monitoring rule to the first trigger unit 113 for configuration;
[0074] The first trigger unit 113 is used to monitor the bus data sent by the processor 4 to the network card bus terminal 2 according to the first monitoring rule, and collect the bus data that triggers the first monitoring rule to generate the first bus monitoring data;
[0075] The first buffer area 114 is in communication with the first trigger unit 113 , and is used to store the first bus monitoring data collected by the first trigger unit 113 .
[0076] Specifically in this embodiment, the first configuration parameter is a configuration parameter for configuring the receiving monitoring module. In the architecture system of this device, the first configuration parameter in the configuration parameters plays a core regulatory role. The receiving monitoring module 11 closely associated with it is composed of a plurality of sub-units with different functions but closely coordinated, such as Figure 3 As shown, it includes a first control unit 111 , a first configuration unit 112 , a first trigger unit 113 and a first buffer area 114 .
[0077] As an important component for receiving and storing key configuration information, the first configuration unit 112 establishes a stable and efficient communication connection with the trigger input module 14 by using a communication interface. When the trigger input module 14 receives the first configuration parameters from the upper layer of the system or the external management device, it will write these parameters into the first configuration unit 112 according to strict communication protocols and data transmission specifications. The first configuration unit 112 is equipped with a large-capacity, high-speed read-write storage medium, which can ensure that the stored first configuration parameters maintain integrity and stability during system operation, are not affected by external interference and system fluctuations, and are available for subsequent processing and call at any time.
[0078] The first control unit 111 is connected and communicated with the first configuration unit 112 and the first trigger unit 113 respectively through communication links. Once the first configuration unit 112 successfully stores the new first configuration parameters, the first control unit 111 will conduct in-depth parsing and comprehensive analysis of these parameters. Based on complex algorithms and system preset rule systems, the first control unit 111 can extract key monitoring elements from the first configuration parameters, and generate a set of detailed, accurate and highly targeted first monitoring rules based on this. Subsequently, the first control unit 111 will use its high-speed data transmission channel to send the generated first monitoring rules to the first trigger unit 113 to ensure that the first trigger unit 113 can obtain the latest monitoring instructions in a timely manner and make corresponding configuration adjustments.
[0079] The first trigger unit 113 directly monitors the bus data sent by the processor 4 to the network card bus terminal 2. After receiving the first monitoring rule sent by the first control unit 111, the first trigger unit 113 will quickly dynamically configure and optimize its internal monitoring circuit and data acquisition program. During the operation of the system, the first trigger unit 113 will perform detailed bit-by-bit and frame-by-frame monitoring and in-depth analysis of the bus data according to the various monitoring indicators and trigger conditions set in the first monitoring rule. Once it is found that there is a situation in the bus data that meets the trigger condition in the first monitoring rule, the first trigger unit 113 will immediately start its efficient data acquisition mechanism, collect the bus data that triggers the first monitoring rule, and preliminarily organize and analyze these data to finally generate the first bus monitoring data.
[0080] The first buffer area 114 is used as an area for temporarily storing the first bus monitoring data, and is connected to the first trigger unit 113 through a high-speed and stable communication connection. When the first trigger unit 113 generates the first bus monitoring data, it will store these data in the first buffer area 114 in a timely and reliable manner according to the preset storage strategy and data transmission protocol. The first buffer area 114 adopts advanced cache management technology and large-capacity storage media, which can ensure that the stored first bus monitoring data maintains integrity and readability within a certain period of time, and provides strong support for subsequent data transmission and further analysis and processing. At the same time, the first buffer area 114 also has a certain data cache optimization function, which can dynamically adjust and optimize the stored data according to the importance and access frequency of the data, improve the efficiency of data storage and reading, and ensure the efficient operation of the entire receiving monitoring module 11.
[0081] Furthermore, in a possible implementation of this embodiment, as Figure 2 As shown, the configuration parameters include: second configuration parameters; the sending monitoring module 12 includes: a second control unit 121, a second configuration unit 122, a second trigger unit 123, and a second buffer area 124;
[0082] The second configuration unit 122 is in communication with the trigger input module 123 and is used to store the second configuration parameters written by the trigger input module 14;
[0083] The second control unit 121 is respectively connected to the second configuration unit 122 and the second trigger unit 123 for communication, and is used to generate a second monitoring rule according to the second configuration parameter, and send the second monitoring rule to the second trigger unit 1231 for configuration;
[0084] The second trigger unit 123 is used to monitor the bus data sent from the network card bus terminal 2 to the processor 4 according to the second monitoring rule, and collect the bus data that triggers the second monitoring rule to generate the second bus monitoring data;
[0085] The second buffer area 124 is in communication with the second trigger unit 123 , and is used to store the second bus monitoring data collected by the second trigger unit 123 .
[0086] Specifically in this embodiment, the second configuration parameter is a configuration parameter configured for the sending monitoring module. In the architecture of this device, the second configuration parameter is a key element to ensure the accurate operation of the sending monitoring module 12. The sending monitoring module 12 is mainly composed of core sub-units such as the second control unit 121, the second configuration unit 122, the second trigger unit 123 and the second buffer area 124. Each sub-unit works closely together to jointly realize the monitoring of the data sending process.
[0087] The second configuration unit 122 is connected to the trigger input module 14 through a communication link. When the system starts the configuration process or needs to update the configuration during operation, the trigger input module 14 will transmit the second configuration parameters to the second configuration unit 122. The second control unit 121 assumes the core command and coordination responsibilities in the entire sending monitoring process. It establishes communication connections with the second configuration unit 122 and the second trigger unit 123 through high-speed and reliable internal communication lines. Once the second configuration unit 122 successfully receives and stores the new second configuration parameters, the second control unit 121 will conduct a comprehensive and in-depth analysis and comprehensive analysis of these parameters. After a series of operations and logical judgments, the second control unit 121 can accurately extract the key monitoring elements from the second configuration parameters, and generate a set of highly customized, detailed and rigorous second monitoring rules based on this. Subsequently, the second control unit 121 will use its high-speed data transmission interface to send the generated second monitoring rules to the second trigger unit 123 with extremely high efficiency and accuracy, ensuring that the second trigger unit 123 can obtain the latest monitoring instructions in a timely manner and perform corresponding parameter configuration and function adjustments.
[0088] The second trigger unit 123 is used as an execution unit for real-time monitoring of the bus data sent from the network card bus terminal 2 to the processor 4. After receiving the second monitoring rule sent by the second control unit 121, the second trigger unit 123 will immediately start its internal configuration program, and dynamically optimize and accurately adjust its own monitoring circuit, data acquisition module and analysis algorithm according to the specific requirements of the second monitoring rule. During the continuous operation of the system, the second trigger unit 123 will perform in-depth monitoring and detailed analysis of the bus data byte by byte and packet by packet according to the strict monitoring indicators and trigger conditions set in the second monitoring rule. Once it is detected that there is a situation in the bus data that meets the trigger condition defined by the second monitoring rule, the second trigger unit 123 will quickly start its efficient data acquisition process, accurately capture the bus data that triggers the second monitoring rule, and organize, analyze and preliminarily process these data in real time, and finally generate the second bus monitoring data with important reference value.
[0089] The second buffer area 124 is a key buffer area for temporarily storing the second bus monitoring data, and is closely connected to the second trigger unit 123 through a high-speed and stable communication connection. When the second trigger unit 123 successfully generates the second bus monitoring data, it will store the data in the second buffer area 124 in a timely and reliable manner according to the pre-set efficient storage strategy and data transmission protocol.
[0090] Furthermore, in a possible implementation of this embodiment, as Figure 2 As shown, the trigger output module 13 is respectively connected to the first cache 114 and the second cache 124 for communication, and is used to obtain the first bus monitoring data and the second bus monitoring data, and send the first bus monitoring data and / or data to the external analysis module 3, so that the external analysis module 3 can perform data analysis on the connection status of the target bus between the processor 4 and the network card bus terminal 2, and determine whether the target bus fails.
[0091] Specifically in this embodiment, the trigger output module 13 establishes a data connection channel with the first buffer area 114 and the second buffer area 124 through a communication link. During the operation of the system, the trigger output module 13 accurately obtains the latest generated first bus monitoring data from the first buffer area 114 according to a preset time interval or based on a specific trigger condition. These first bus monitoring data contain rich information, including the real-time changes in the data flow sent by the processor 4 to the network card bus terminal 2, the error code information during the data transmission process, the fluctuation of the data transmission rate, and the integrity check results of the packet header and the packet tail. At the same time, the trigger output module 13 will also obtain the second bus monitoring data from the second buffer area 124 in the same efficient way. These data record in detail the relevant characteristics of the bus data sent by the network card bus terminal 2 to the processor 4, such as the dynamic changes in the transmission frequency, the distribution of the packet size, the accuracy of the data encoding format, and the delay information of the data during the transmission process.
[0092] After acquiring the first bus monitoring data and the second bus monitoring data, the trigger output module 13 will further organize, package and encapsulate these data according to the pre-set complex data processing rules and transmission protocols. Under the premise of ensuring the integrity and accuracy of the data, the trigger output module 13 will stably send the processed first bus monitoring data and / or second bus monitoring data to the external analysis module 3 according to a specific transmission method.
[0093] As a professional unit specifically used for in-depth analysis and diagnosis of bus connection status, the external analysis module 3 will immediately start its built-in series of advanced data analysis algorithms and intelligent diagnostic programs after receiving the data sent by the trigger output module 13. It will first comprehensively analyze and classify the data and extract key indicators and feature information. By comprehensively using these analysis methods and the rich experience data accumulated over a long period of time, the external analysis module 3 can perform a comprehensive, in-depth and accurate data analysis on the connection status of the target bus between the processor 4 and the network card bus terminal 2. Finally, based on the detailed analysis results, the external analysis module 3 can accurately determine whether the target bus has a fault. If a fault is found, it can further diagnose and report the type, severity and possible causes of the fault in detail, providing extremely critical decision-making basis and technical support for subsequent fault repair and system optimization, and effectively ensuring the stable operation and efficient performance of the entire system.
[0094] Furthermore, in a possible implementation of this embodiment, the configuration parameters include: an operation control instruction set, a parameter setting mode, and an information capture trigger rule.
[0095] Specifically in this embodiment, the configuration parameters, as the core elements, mainly cover three key components: operation control instruction set, parameter setting mode and information capture trigger rules. That is, the first configuration parameters and the second configuration parameters include the operation control instruction set, parameter setting mode and information capture trigger rules.
[0096] The operation and control instruction set is a series of designed and strictly defined control instruction sequences. These instructions are compiled based on the functional requirements and performance goals of the system, covering operation instructions at various stages from system initialization, daily operation to exception handling. The parameter setting mode provides a standardized and normalized parameter configuration framework and method for the system. It defines in detail the value range, data type, accuracy requirements and mutual relationship of various parameters. For different system functions and application scenarios, the parameter setting mode provides a variety of configuration templates and strategies. The information capture trigger rule is the key basis for the system to achieve accurate data monitoring and effective information extraction. It defines a series of trigger conditions and event mechanisms based on the feature analysis of various types of data during the operation of the system and an in-depth understanding of the business logic. These trigger rules cover multiple dimensions such as data content characteristics, traffic changes, time series laws, and system status information.
[0097] Furthermore, in a possible implementation of this embodiment, the external analysis module 3 includes any one of a baseboard management controller 31, an operating system 32, and a computing device 33 connected to the serial port of the network card.
[0098] Specifically in this embodiment, the external analysis module 3 is a key part for in-depth analysis and diagnosis of system operation data, such as Figure 4 As shown, its specific implementation forms include three types: baseboard management controller (Base Board Management Controller, BMC) 31, operating system (host) 32 and computing device 33 connected to the network card serial port. Each type plays a unique and indispensable role in the system.
[0099] As one of the core management components of the server system, the baseboard management controller 31 assumes important basic management and monitoring responsibilities in the external analysis module 3. It is closely connected to each hardware device in the system through specially designed hardware interfaces and communication protocols, and can obtain the status information and operation data of the system hardware in real time, including but not limited to key parameters such as processor temperature, voltage, fan speed, as well as memory usage, hard disk read and write status, and network card connection status. By outputting to the baseboard management controller 31 through out-of-band management, the BMC can store the acquired PCIe interaction information in the external storage space of the BMC. BMC31 has a built-in set of powerful hardware monitoring and diagnostic programs. These programs are based on a rich hardware knowledge base and fault diagnosis algorithms, and can perform in-depth analysis of the acquired hardware data.
[0100] The operating system 32 interacts with the network card through the driver program, and can obtain runtime information of the network card and the bus monitoring device of the present disclosure, including but not limited to the running status of the process, the allocation of system resources, detailed information of the network connection, and performance data of the application program, etc. The operating system 32 has a large number of system performance analysis tools and diagnostic software built in, which can perform multi-dimensional analysis on the bus monitoring data received from the trigger output module 13.
[0101] The computing device 33 connected to the serial port of the network card provides a flexible and convenient external data analysis method for the system. This computing device can usually be a laptop or a special test device, which establishes a stable connection channel with the network card through the serial port communication protocol. During the operation of the system, the computing device 33 can run user-defined data analysis software or script programs, which can perform personalized analysis and processing on the bus monitoring data received from the network card according to the specific needs of the user.
[0102] Furthermore, in a possible implementation of this embodiment, as Figure 2 As shown, the device further includes: a clock synchronization module 15;
[0103] The clock synchronization module 15 is respectively connected to the receiving monitoring module 11 and the sending monitoring module 12 for communication, and is used to obtain a clock signal and perform clock synchronization processing on the receiving monitoring module 11 and the sending monitoring module 12 .
[0104] Specifically in this embodiment, the clock synchronization module 15 is one of the key elements to ensure stable and accurate operation of the system. The module 15 establishes a close and reliable connection with the receiving monitoring module 11 and the sending monitoring module 12 respectively by means of a carefully designed high-speed, anti-interference communication link, thereby building an efficient clock synchronization system. The clock synchronization module 15 can obtain standard time information from a dedicated time server through the network to synchronize the device clock; or it can use a dedicated high-precision clock chip inside the device to compare and calibrate with an external reference clock (such as a processor's clock signal or other standard clock source) to achieve stability and synchronization of its own clock. Therefore, the disclosed embodiment is not limited to this, and the clock synchronization module 15 can be in the form of an interface or a dedicated clock chip.
[0105] During the operation of the system, the clock synchronization module 15 continuously obtains the clock signal, and uses complex synchronization algorithms and precise timestamp technology to perform clock synchronization processing on the receiving monitoring module 11. For the receiving monitoring module 11, accurate clock synchronization is crucial. It enables the receiving monitoring module 11 to accurately sample and analyze the bus data received by the network card bus terminal 2 under a unified time reference. Similarly, the clock synchronization module 15 also performs strict clock synchronization operations on the sending monitoring module 12. In the sending monitoring module 12, precise clock synchronization ensures the accuracy and consistency of the data sent in time. When the sending monitoring module 12 monitors and processes the bus data sent by the network card bus terminal 2, the synchronized clock can ensure that the data transmission timing meets the system specifications and prevent data transmission confusion or errors caused by clock asynchrony.
[0106] In summary, the embodiments of the present disclosure have the following beneficial effects:
[0107] 1. It can effectively monitor the receiving and sending data of the network card bus end, generate the first bus monitoring data and the second bus monitoring data respectively, and provide comprehensive data support for analyzing the bus from the processor to the network card.
[0108] 2. By monitoring according to the first and second monitoring rules, various abnormal situations in the data transmission process can be discovered in time.
[0109] 3. The collected data contains rich bus-related information, which helps to accurately locate the root cause of the problem, provide a strong basis for troubleshooting, system performance evaluation and optimization, data security analysis, etc., and ensure stable system operation.
[0110] Figure 5 A flowchart of a control method for a bus monitoring device provided in an embodiment of the present disclosure.
[0111] like Figure 5As shown, the method comprises the following steps:
[0112] Step 501, in response to a parameter configuration instruction, configure parameters of a receiving monitoring module and a sending monitoring module using received configuration parameters.
[0113] Step 502: Based on the configuration parameters, the bus data received by the network card bus terminal and the bus data sent by the network card bus terminal are monitored to generate first bus monitoring data and second bus monitoring data respectively.
[0114] Step 503: Send the first bus monitoring data and / or the second bus monitoring data to an external analysis module so as to perform data analysis on the bus connection status.
[0115] Specifically, in steps 501 to 503, when the parameter configuration instruction is received, the corresponding processing mechanism is started. The received configuration parameters are used to carry out detailed parameter configuration work for the receiving monitoring module and the sending monitoring module. For the receiving monitoring module, the configuration parameters will accurately set key parameters such as its data sampling frequency, data screening rules, and condition thresholds for triggering monitoring. For example, if the system focuses on the reception of a certain type of specific data, the configuration parameters can increase the sampling frequency for the data to the millisecond level, and set strict screening rules to ensure that only data that conforms to a specific format or source will be further processed. For the sending monitoring module, the configuration parameters will specify in detail the priority strategy for its data transmission, the limit range of the data packet size, and the dynamic adjustment rules of the sending buffer. Through such a configuration process, the receiving monitoring module and the sending monitoring module can achieve highly customized function settings according to the actual needs and operating environment of the system.
[0116] After completing the parameter configuration, the receiving monitoring module and the sending monitoring module start to work efficiently based on the set configuration parameters. The receiving monitoring module uses its advanced monitoring circuit and data processing algorithm to perform all-round and uninterrupted monitoring of the bus data received by the network card bus end. It will accurately collect data according to the sampling frequency set in the configuration parameters, and classify and preliminarily analyze the data according to the screening rules. During the monitoring process, once the data meets the condition threshold for triggering monitoring, such as the data flow suddenly increases to exceed the preset value, a specific error code appears, or the data integrity check fails, the data recording and sorting program is immediately started to generate detailed first bus monitoring data. These first bus monitoring data not only contain the specific content of the abnormal data, but also record the timestamp of the abnormal data, the source of the data, and related context information, providing rich clues for subsequent analysis.
[0117] At the same time, the sending monitoring module also strictly monitors the bus data sent by the network card bus end according to the configuration parameters. It pays close attention to the data sending process, starting from the data entering the sending buffer, and tracks the data queuing, sending frequency, and the packaging and transmission of data packets. When an abnormality is detected in the sending process, such as too long sending delay, the number of data packet retransmissions exceeding the limit, or the sending buffer overflow, the relevant data information is quickly collected to generate the second bus monitoring data. The second bus monitoring data covers the detailed information of the sending anomaly, including the content of the data being sent when the anomaly occurs, the target address, the time sequence of the sending, and the relevant system status information, providing a key basis for analyzing the sending failure.
[0118] After generating the first bus monitoring data and / or the second bus monitoring data, the system sends these data to the external analysis module through a high-speed and reliable communication link. As a professional data analysis unit, the external analysis module has powerful computing power and rich analysis tools. After receiving the data, it first performs integrity check and format conversion on the data to ensure that the data can be accurately parsed and processed. Then, a series of advanced data analysis algorithms and models are used to conduct an in-depth analysis of the bus connection status. For example, by statistically analyzing the data flow information in the first bus monitoring data and the second bus monitoring data, the flow change curve is drawn to determine whether there is data congestion or abnormal fluctuation; using error codes and verification information, possible hardware failures or software errors are located; combining timestamps and system status information, the time pattern of the occurrence of the failure and the correlation with the system operation status are analyzed. Through such a comprehensive and detailed data analysis process, the external analysis module can accurately evaluate the health of the bus connection, discover potential problems and risks in a timely manner, and provide scientific and effective suggestions and decision-making basis for system optimization and fault repair, ensuring the stable and efficient operation of the system.
[0119] In a possible implementation of this embodiment, the configuration parameters include: a first configuration parameter and a second configuration parameter; and the step of configuring the receiving monitoring module and the sending monitoring module using the received configuration parameters includes:
[0120] generating a first monitoring rule according to the first configuration parameter, and sending the first monitoring rule to a first trigger unit of the receiving monitoring module for configuration;
[0121] A second monitoring rule is generated according to the second configuration parameter, and the second monitoring rule is sent to the second trigger unit of the sending monitoring module for configuration.
[0122] Specifically, in the embodiments of the present disclosure, the first and second configuration parameters in the configuration parameters are crucial. When the system starts the configuration, the parameter configuration of the receiving monitoring module is processed first. The configuration management unit parses the first configuration parameter, which covers information such as data screening, traffic threshold, and verification method, and generates a first monitoring rule based on this and sends it to the first trigger unit of the receiving monitoring module. The first trigger unit adjusts the monitoring circuit, acquisition frequency, trigger condition judgment mechanism, etc. according to the rules. At the same time, the sending monitoring module configuration is performed. The configuration management unit analyzes the second configuration parameter, including the sending priority, packet size strategy, frequency limit, and error handling mechanism, etc., generates a second monitoring rule and transmits it to the second trigger unit. The second trigger unit configures the sending buffer, timing control, error detection and retransmission mechanism, etc. according to the rules. Through this process, the receiving and sending monitoring modules can accurately perform tasks according to their respective rules to ensure stable operation of the system and data security.
[0123] In a possible implementation of this embodiment, based on the configuration parameters, monitoring the bus data received by the network card bus terminal and the bus data sent by the network card bus terminal to generate first bus monitoring data and second bus monitoring data respectively includes:
[0124] According to the first monitoring rule, the bus data sent by the processor to the network card bus terminal is monitored, and the bus data triggering the first monitoring rule is collected to generate the first bus monitoring data;
[0125] According to the second monitoring rule, the bus data sent from the network card bus terminal to the processor is monitored, and the bus data triggering the second monitoring rule is collected to generate the second bus monitoring data.
[0126] Specifically, in the embodiment of the present disclosure, the bus data of the network card is monitored according to the set configuration parameters and the corresponding monitoring data is generated. The receiving end monitors the bus data sent by the processor according to the first monitoring rule. Once the trigger conditions are met, such as abnormalities in data characteristics, flow, verification, etc., the relevant data and information such as receiving timestamp and source port are collected to generate the first bus monitoring data. The sending end checks the bus data sent from the network card to the processor according to the second monitoring rule. When the trigger conditions such as sending frequency, packet size, encoding format, priority, etc. are met, the sending time, target address and other information are collected to generate the second bus monitoring data.
[0127] It should be noted that the embodiments of the present disclosure may include multiple steps. For the convenience of description, these steps are numbered, but these numbers do not limit the execution time slots or execution order between the steps; these steps can be implemented in any order, and the embodiments of the present disclosure do not limit this.
[0128] Furthermore, in an embodiment of the present disclosure, a network card is provided, which includes the bus monitoring device in any of the above embodiments. It can be understood that the bus monitoring device is integrated into the network card. For the description of the network card, please refer to the above embodiments, which will not be described in detail in this embodiment.
[0129] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0130] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0131] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 to a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I / O (Input / Output) interface 605 is also connected to the bus 604.
[0132] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0133] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as a control method of a bus monitoring device. For example, in some embodiments, the control method of a bus monitoring device may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the aforementioned control method of the bus monitoring device in any other appropriate manner (for example, by means of firmware).
[0134] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a special purpose or general purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0135] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0136] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or a flash memory, an optical fiber, a CD-ROM (Compact Dis sc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0137] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0138] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0139] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0140] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0141] The various numerical numbers such as first and second involved in the present disclosure are only for the convenience of description and are not used to limit the scope of the embodiments of the present disclosure, but also indicate the order of precedence.
[0142] At least one in the present disclosure may also be described as one or more, and a plurality may be two, three, four or more, which is not limited in the present disclosure. In the embodiments of the present disclosure, for a technical feature, the technical features in the technical feature are distinguished by "first", "second", "third", "A", "B", "C" and "D", etc., and there is no order of precedence or size between the technical features described by the "first", "second", "third", "A", "B", "C" and "D".
[0143] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0144] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A bus monitoring device, characterized in that: The device comprises: a receiving monitoring module, a sending monitoring module, and a trigger output module; The receiving monitoring module is in communication connection with the network card bus terminal, and is used to monitor the bus data received by the network card bus terminal and generate first bus monitoring data; The sending monitoring module is in communication connection with the network card bus terminal, and the sending monitoring module is used to monitor the bus data sent by the network card bus terminal to generate second bus monitoring data; The trigger output module is respectively connected to the receiving monitoring module and the sending monitoring module for communication, and is used to send the first bus monitoring data and / or the second bus monitoring data to an external analysis module so as to perform data analysis on the bus connection status.
2. The device according to claim 1, characterized in that The device further comprises: a trigger input module; The trigger input module is respectively connected to the receiving monitoring module and the sending monitoring module for communication, and is used to receive configuration parameters of the receiving monitoring module and the sending monitoring module, and perform parameter configuration on the receiving monitoring module and the sending monitoring module.
3. The device according to claim 2, characterized in that The configuration parameters include: a first configuration parameter; the receiving monitoring module includes: a first control unit, a first configuration unit, a first trigger unit, and a first buffer area; The first configuration unit is in communication with the trigger input module and is used to store the first configuration parameters written by the trigger input module; The first control unit is respectively connected to the first configuration unit and the first trigger unit for communication, and is used to generate a first monitoring rule according to the first configuration parameter, and send the first monitoring rule to the first trigger unit for configuration; The first trigger unit is used to monitor the bus data sent by the processor to the network card bus terminal according to the first monitoring rule, and collect the bus data that triggers the first monitoring rule to generate the first bus monitoring data; The first buffer area is communicatively connected to the first trigger unit, and is used to store the first bus monitoring data collected by the first trigger unit.
4. The device according to claim 2, characterized in that The configuration parameters include: a second configuration parameter; the sending monitoring module includes: a second control unit, a second configuration unit, a second trigger unit, and a second buffer area; The second configuration unit is in communication with the trigger input module and is used to store the second configuration parameters written by the trigger input module; The second control unit is respectively connected to the second configuration unit and the second trigger unit for communication, and is used to generate a second monitoring rule according to the second configuration parameter, and send the second monitoring rule to the second trigger unit for configuration; The second trigger unit is used to monitor the bus data sent from the network card bus terminal to the processor according to the second monitoring rule, and collect the bus data that triggers the second monitoring rule to generate the second bus monitoring data; The second buffer area is in communication with the second trigger unit, and is used for storing the second bus monitoring data collected by the second trigger unit.
5. The device according to claims 3-4, characterized in that The trigger output module is respectively connected to the first cache area and the second cache area for communication, and is used to obtain the first bus monitoring data and the second bus monitoring data, and send the first bus monitoring data and / or the first bus monitoring data to the external analysis module, so that the external analysis module can perform data analysis on the connection status of the target bus between the processor and the network card bus end, and determine whether the target bus has a fault.
6. The device according to any one of claims 2 to 4, characterized in that: The configuration parameters include: operation control instruction set, parameter setting mode, and information capture triggering rules.
7. The device according to claim 5, characterized in that The external analysis module includes any one of a baseboard management controller, an operating system, and a computing device connected to a network card serial port.
8. The device according to claim 1, characterized in that The device also includes: a clock synchronization module; The clock synchronization module is respectively connected to the receiving monitoring module and the sending monitoring module for communication, and is used to obtain a clock signal and perform clock synchronization processing on the receiving monitoring module and the sending monitoring module.
9. A control method for a bus monitoring device, characterized in that: The method is applied to the bus monitoring device according to any one of claims 1 to 8, and the method comprises: In response to the parameter configuration instruction, the receiving monitoring module and the sending monitoring module are configured with the received configuration parameters; Based on the configuration parameters, the bus data received by the network card bus terminal and the bus data sent by the network card bus terminal are monitored to generate first bus monitoring data and second bus monitoring data respectively; The first bus monitoring data and / or the second bus monitoring data are sent to an external analysis module so as to perform data analysis on the bus connection status.
10. The method according to claim 9, characterized in that The configuration parameters include: a first configuration parameter and a second configuration parameter; the configuration of the receiving monitoring module and the sending monitoring module using the received configuration parameters includes: generating a first monitoring rule according to the first configuration parameter, and sending the first monitoring rule to a first trigger unit of the receiving monitoring module for configuration; A second monitoring rule is generated according to the second configuration parameter, and the second monitoring rule is sent to the second trigger unit of the sending monitoring module for configuration.
11. The method according to claim 10, characterized in that The bus data received by the network card bus terminal and the bus data sent by the network card bus terminal are monitored based on the configuration parameters to generate first bus monitoring data and second bus monitoring data respectively, including: According to the first monitoring rule, the bus data sent by the processor to the network card bus terminal is monitored, and the bus data triggering the first monitoring rule is collected to generate the first bus monitoring data; According to the second monitoring rule, the bus data sent from the network card bus terminal to the processor is monitored, and the bus data triggering the second monitoring rule is collected to generate the second bus monitoring data.
12. A network card, characterized in that: The network card comprises: a bus monitoring device as claimed in any one of claims 1-8.
13. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 9 to 11.
14. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 9-11.
Citation Information
Patent Citations
Internet of Vehicles data processing device, vehicle terminal and storage medium
CN110166557A
Network card state monitoring method and device, equipment and medium
CN110752972A
Unmanned aerial vehicle bus data monitoring method, device and equipment and storage medium
CN117579510A
Network monitoring device, network monitoring system, and network monitoring method
JP2017069897A