Monitoring method and network equipment

By introducing a second component to the network device to monitor the status of the first component and taking over the monitoring of external components, the monitoring interruption caused by CPU or BMC exceptions is solved, and monitoring reliability and security are improved.

CN118921578APending Publication Date: 2024-11-08HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310500975.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

When existing network devices monitor external components, the central processor (CPU) or substrate management controller (BMC) is prone to abnormalities, resulting in the inability to effectively monitor external components, increasing security risks.

Method used

Introducing a second component in a network device, monitoring the status of the first component by connecting to the first component (such as a CPU or BMC), and taking over monitoring of external components when an abnormality occurs in the first component, ensuring continuity and reliability .

Benefits of technology

It improves the reliability of monitoring external components by network equipment, reduces safety risks, and allows timely handling of abnormalities in the first component to ensure the normal operation of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921578A_ABST
    Figure CN118921578A_ABST
Patent Text Reader

Abstract

The invention provides a monitoring method and a network device, the network device comprises a first component and a second component, the first component is connected with an external component of the network device, the second component is also connected with the external component, and the second component is connected with the first component, the method comprises the following steps: the first component monitors the external component, and the second component monitors the external component; in the process that the first assembly monitors the external assembly, the second assembly monitors the state of the first assembly, and if the second assembly determines that the first assembly is abnormal, the second assembly monitors the external assembly. According to the method, the monitoring reliability of the network equipment on the external component can be improved, and the potential safety hazard of the network equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a monitoring method and network equipment. Background Art

[0002] To ensure the safety of network equipment (such as servers, switches, routers, etc.), network equipment will monitor the status of its external components (such as fans, power supplies, temperature sensors, etc.) during operation. Taking fans and temperature sensors as an example, since network equipment will generate a lot of heat, in order to avoid abnormal operation of the equipment due to excessive temperature, temperature sensors and fans are usually installed in the network equipment. The temperature of the network equipment is monitored by the temperature sensor. When the temperature of the network equipment is high, the fan speed is adjusted to dissipate heat for the network equipment.

[0003] Currently, network devices usually monitor external components through components such as central processing unit (CPU) or baseboard management controller (BMC). These components used to monitor external components are prone to abnormalities, which often leads to the inability to monitor external components, causing great security risks to network devices. Summary of the invention

[0004] The present application provides a monitoring method and a network device, which can better monitor the external components of the network device and improve the reliability of the external component monitoring.

[0005] In a first aspect, a monitoring method is provided, which is applied to a network device, wherein the network device includes a first component and a second component, wherein the first component is connected to an external component of the network device, the second component is also connected to the external component, and the second component is connected to the first component, and the method includes the following steps: the first component monitors the external component, and when an abnormality occurs in the first component, the second component monitors the external component.

[0006] By setting a second component in the network device, the above scheme can realize that when an abnormality occurs in the first component (such as a CPU or BMC used to monitor external components), the external component can be monitored by the second component, thereby improving the reliability of the network device's monitoring of external components and reducing the security risks of the network device.

[0007] In addition, the above solution can also monitor whether the first component has any abnormality, so that when the first component has an abnormality, the operation and maintenance personnel can promptly handle the abnormality of the first component.

[0008] In a possible implementation, the method provided in the first aspect further includes the following step: the second component determines that an abnormality occurs in the first component based on not receiving a heartbeat signal sent by the first component for a period of time.

[0009] In a possible implementation, the method provided in the first aspect also includes the following steps: when the second component monitors the external component, the second component receives a heartbeat signal sent by the first component. In this case, the second component determines that the first component has returned to normal, then stops monitoring the external component, and the first component monitors the external component.

[0010] By implementing this implementation, when the first component returns to normal, the monitoring task of the external component can be restored to be performed by the first component.

[0011] In order to improve the flexibility of the solution, in a possible implementation, the network device also includes a third component, the first component is connected to the external component through the third component, and the second component is connected to the first component through the third component. The method provided in the first aspect also includes the following steps: the third component determines that an abnormality occurs in the first component, and notifies the second component that an abnormality occurs in the first component.

[0012] In one possible implementation, the third component includes a register. The third component can specifically determine that the first component has an abnormality in the following manner: the third component determines that the first component has an abnormality based on not receiving a heartbeat signal sent by the first component for a period of time, and then the third component sets the value of the register to a first value, and the first value is used to indicate that the first component has an abnormality.

[0013] In one possible implementation, the third component may specifically notify the second component that the first component has an abnormality in the following manner: the third component sends the first value of a register to the second component, and the first value indicates that the first component has an abnormality; or, the second component reads the first value of a register, and the first value indicates that the first component has an abnormality.

[0014] In order to improve the flexibility of the solution, in a possible implementation, when the third component includes a register, the method provided in the first aspect above also includes the following steps: when the second component monitors the external component, the third component receives a heartbeat signal sent by the first component. At this time, the third component determines that the first component has returned to normal and sets the value of the register to a second value, wherein the second value indicates that the first component has returned to normal. When the second component determines that the value of the register is the second value, it stops monitoring the external component and the first component monitors the external component.

[0015] In a possible implementation manner, the first component is a CPU, and the second component is a BMC, or the first component is a BMC, and the second component is a CPU.

[0016] By implementing this implementation method, the technical solution provided by the present application can be applied to network devices that monitor external components through the CPU or BMC, thereby solving the problem that the external components cannot be monitored when the CPU or BMC of this type of network device is abnormal.

[0017] In one possible implementation, the third component is a complex programmable logic device (CPLD).

[0018] In a possible implementation, the network device is a white box switch, and the external components include any one or more of a fan, a power supply, a temperature sensor, a network interface, a flash memory, or a hard disk.

[0019] By implementing this implementation method, the technical solution provided by the present application can be applied to a white-box switch, thereby solving the problem that when a component used to monitor an external component of the white-box switch is abnormal, the external component cannot be monitored.

[0020] In a second aspect, a network device is provided, which includes a first component and a second component, wherein the first component is connected to an external component of the network device, the second component is also connected to the external component, and the second component is connected to the first component, wherein the first component is used to monitor the external component, and the second component is used to monitor the external component when an abnormality occurs in the first component.

[0021] In a possible implementation, the second component is further used to determine that an abnormality occurs in the first component based on not receiving a heartbeat signal sent by the first component for a period of time.

[0022] In one possible implementation, when the second component is used to monitor the external component, the second component is also used to receive the heartbeat signal sent by the first component, and to determine that the first component has returned to normal, then stop monitoring the external component, and the first component is used to monitor the external component.

[0023] In one possible implementation, the network device also includes a third component, the first component is connected to the external component through the third component, and the second component is connected to the first component through the third component. In the network device, the third component is used to determine that an abnormality occurs in the first component and to notify the second component that an abnormality occurs in the first component.

[0024] In one possible implementation, the third component includes a register. In the network device, the third component is used to determine that an abnormality has occurred in the first component based on not receiving a heartbeat signal sent by the first component for a period of time, and is used to set the value of the register to a first value, and the first value is used to indicate that an abnormality has occurred in the first component.

[0025] In one possible implementation, the third component is used to send a first value of a register to the second component, where the first value indicates that an abnormality has occurred in the first component; or, the second component is used to read a first value of a register, where the first value indicates that an abnormality has occurred in the first component.

[0026] In one possible implementation, when the second component is used to monitor the external component, the third component is used to receive the heartbeat signal sent by the first component, and to determine whether the first component has returned to normal, and set the value of the register to a second value, the second value indicating that the first component has returned to normal, and the second component is used to determine that the value of the register is the second value, then stop monitoring the external component, and the first component is used to monitor the external component.

[0027] In a possible implementation manner, the first component is a CPU, and the second component is a BMC, or the first component is a BMC, and the second component is a CPU.

[0028] In a possible implementation, the third component is a CPLD.

[0029] In a possible implementation, the network device is a white box switch, and the external components include any one or more of a fan, a power supply, a temperature sensor, a network interface, a flash memory, or a hard disk.

[0030] For the relevant beneficial effects and descriptions of the network device provided by the second aspect and any implementation method of the second aspect, please refer to the relevant beneficial effects and descriptions of the aforementioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0031] According to a third aspect, a monitoring system is provided, wherein the monitoring system includes the above-mentioned network device.

[0032] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instruction) which, when executed on a network device, enables the network device to execute any implementation of the first aspect and any aspect described above.

[0033] In a fifth aspect, a chip system is provided, which may include a processor. The processor is coupled to a memory and may be used to execute the steps performed by the first component, the second component, or the third component in the first aspect and any one of the implementations of the first aspect. Optionally, the chip system also includes a memory. The memory is used to store a computer program (also referred to as code, or instruction). The processor is used to call and run a computer program from the memory so that a device equipped with the chip system executes the steps performed by the first component, the second component, or the third component in the first aspect and any one of the implementations of the first aspect.

[0034] In a sixth aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instruction), when the computer program is executed by a network device, the network device executes the above-mentioned first aspect and any one of the implementation methods of the first aspect.

[0035] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a structural diagram of a network device involved in this application;

[0037] Figure 2 It is a structural diagram of a network device provided by the present application;

[0038] Figure 3 It is a structural diagram of another network device provided by the present application;

[0039] Figure 4 It is a structural diagram of another network device provided by the present application;

[0040] Figure 5 It is a flow chart of a monitoring method provided by the present application;

[0041] Figure 6 It is a flow chart of another monitoring method provided by the present application;

[0042] Figure 7 It is a structural schematic diagram of another monitoring device provided by the present application. DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0044] In order to facilitate a clear understanding of the embodiments of the present application, relevant terms are first explained.

[0045] (1) White box switch: a network switch based on open hardware and software, which allows users to freely choose different hardware and software combinations to meet their specific network needs.

[0046] (2) External components of network devices: They can also be called external devices or peripherals. They refer to components that are connected outside the host of the network device. They are auxiliary or supplementary components connected to the network device. External components can expand the network device. Taking the network device as a server as an example, the external components of the server include input devices such as keyboards, output devices such as monitors, and external storage devices such as solid state disks (SSDs); taking the network device as a switch as an example, the external components of the switch include fans for cooling the switch, temperature sensors for monitoring the temperature of the switch, power supplies for powering the switch, network interfaces for communicating with other devices, flash memory, hard disks, etc.

[0047] (3) Complex programmable logic device (CPLD): A digital integrated circuit that allows users to construct logic functions according to their needs.

[0048] The present application relates to a scenario in which network devices (such as servers, switches, routers, etc.) need to monitor their own external components.

[0049] See also Figure 1 , Figure 1 is a schematic diagram of the structure of a network device 100 involved in the present application, such as Figure 1 As shown, the network device 100 includes: a first component 110 and an external component 120, the first component 110 is connected to the external component 120, the first component 110 is a CPU or a BMC, etc., the external component 120 includes a fan 1201, a power supply (also referred to as a power supply unit (PSU)) 1202, a temperature sensor 1203, a network interface, a flash memory or a hard disk, any one or more, optionally, the external component 120 may also include others, which is not specifically limited in the present application.

[0050] The first component 110 is responsible for monitoring the external component 120. Taking the temperature sensor 1203 as an example, the first component 110 needs to obtain the temperature change of the network device 100 detected by the temperature sensor 1203, so as to timely perform heat dissipation treatment on the network device 100 or adopt a low temperature protection mechanism when the temperature is too high or too low. Taking the fan 1201 as an example, the first component 110 needs to dynamically adjust the speed of the fan 1201 according to the temperature change of the network device 100, so as to achieve temperature adjustment of the network device 100.

[0051] It should be understood that Figure 1 The network device 100 shown is only an example. In actual applications, the network device 100 may also include other or more components. Figure 1 It should not be considered as specifically limiting.

[0052] at present, Figure 1 The problem with the network device 100 shown is that the first component 110 is prone to abnormalities, which often leads to the inability to monitor the external component 120, causing great safety hazards to the network device 100. For example, if the temperature of the network device 100 is too high, it will cause failure of components on the motherboard of the network device 100.

[0053] In order to solve the problems existing in the above-mentioned network device 100, the present application provides a network device and a monitoring method, which are described in detail below in conjunction with the corresponding drawings.

[0054] First, see Figure 2 , Figure 2 is a schematic diagram of the structure of a network device 200 provided by the present application, such as Figure 2 As shown, the network device 200 includes: a first component 110, an external component 120 and a second component 130, the first component 110 and the second component 130 are both connected to the external component 120, and the first component 110 and the second component 130 are connected.

[0055] The above connection relationship can be a direct connection, such as Figure 2 Optionally, the connection relationship may also be an indirect connection, such as Figure 3 As shown, the first component 110 is indirectly connected to the second component 130 through the third component 140, the first component 110 is indirectly connected to the external component 120 through the third component 140, and the second component 130 is also indirectly connected to the external component 120 through the third component 140. Optionally, the connection relationship can also be other, such as Figure 4 As shown, the first component 110 is directly connected to the second component 130, the first component 110 is indirectly connected to the external component 120 through the third component 140, and the second component 130 is also indirectly connected to the external component 120 through the third component 140. This application does not specifically limit the connection relationship between the first component 110, the external component 120 and the second component 130.

[0056] In a specific implementation, the third component 140 may be a CPLD, a field programmable gate array (FPGA), etc., and this application does not make any specific limitation on this.

[0057] During the process of the first component 110 monitoring the external component 120, the second component 130 can monitor the status of the first component 110. When it is determined that the first component 110 is abnormal (such as the first component 110 can no longer monitor the external component 120), the second component 130 starts to monitor the external component 120.

[0058] During the process of the second component 130 monitoring the external component 120, the second component 130 can continue to monitor the status of the first component 110. When it is determined that the first component 110 has returned to normal, the second component 130 stops monitoring the external component 120 and the first component 110 continues to monitor the external component 120.

[0059] Optionally, when the second component 130 determines that the first component 110 has returned to normal, the second component 130 may continue to monitor the external component 120. After the first component 110 has returned to normal, it may monitor the status of the second component 130, and when it is determined that the second component 130 is abnormal, the first component 110 monitors the external component 120 again.

[0060] In order to more clearly understand the process of the network device 200 monitoring the external component 120, Figure 5 The flowchart of the monitoring method shown is introduced in detail.

[0061] like Figure 5 As shown, the monitoring method provided by the present application comprises the following steps:

[0062] S501 : the first component 110 monitors the external component 120 .

[0063] Taking the temperature sensor 1203 as an example, the first component 110 can obtain the temperature change of the network device 200 detected by the temperature sensor 1203, so as to timely perform heat dissipation treatment on the network device 200 or adopt a low temperature protection mechanism when the temperature is too high or too low. Taking the fan 1201 as an example, the first component 110 can dynamically calculate the rotation speed of the fan 1201 according to the obtained temperature change of the network device 200, and adjust the rotation speed of the fan 1201 according to the calculated rotation speed, thereby realizing temperature adjustment of the network device 200. Taking the power supply 1202 as an example, the first component 110 can obtain the voltage of the power supply 1202 to monitor whether the voltage of the power supply 1202 is too high or too low.

[0064] S502: The second component 130 monitors the status of the first component 110. When the second component 130 determines that the first component 110 is abnormal, the second component 130 executes S503. When the second component 130 determines that the first component 110 is normal, the second component 130 executes S504.

[0065] Specifically, the network device 200 is Figure 2 or Figure 4 When the network device is shown, the second component 130 can monitor the status of the first component 110 in any of the following ways 1 or 2:

[0066] Method 1: The second component 130 detects the operating status of the first component 110 based on the heartbeat signal periodically sent by the first component 110. If the second component 130 does not receive the heartbeat signal sent by the first component 110 for a period of time, it is determined that the first component 110 is abnormal. Otherwise, it is determined that the first component 110 is normal.

[0067] The above period of time can be customized according to actual scenarios and is not specifically limited here.

[0068] Method 2: The second component 130 detects the operating status of the first component 110 based on the heartbeat signal periodically sent by the first component 110. If the second component 130 does not receive the heartbeat signal sent by the first component 110 for a certain number of consecutive times, it is determined that the first component 110 is abnormal. Otherwise, it is determined that the first component 110 is normal.

[0069] The above certain number of times can be customized according to actual scenarios and is not specifically limited here.

[0070] In the network device 200 Figure 3 or Figure 4 When the network device is shown, the second component 130 can monitor the status of the first component 110 in any of the following ways 3 or 4:

[0071] Mode 3: The third component 140 detects the operating status of the first component 110 based on the heartbeat signal periodically sent by the first component 110. If the third component 140 does not receive the heartbeat signal sent by the first component 110 for a period of time, it is determined that the first component 110 is abnormal. Otherwise, it is determined that the first component 110 is normal. After determining the status of the first component 110, the third component 140 can send a notification to the second component 130 to notify the second component 130 of the status of the first component 110.

[0072] Mode 4: The third component 140 detects the operating status of the first component 110 based on the heartbeat signal periodically sent by the first component 110. If the third component 140 does not receive the heartbeat signal sent by the first component 110 for a certain number of consecutive times, it is determined that the first component 110 is abnormal. Otherwise, it is determined that the first component 110 is normal. After determining the status of the first component 110, the third component 140 can send a notification to the second component 130 to notify the second component 130 of the status of the first component 110.

[0073] In mode 3 or mode 4, a register may be set in the third component 140, and the register has an initial value such as 0, or has no value in the initial state. When the third component 140 determines that the first component 110 is abnormal, the value of the register is set to a first value such as 1, and the first value is used to indicate that the first component 110 is abnormal. The second component 130 may periodically read the value of the register in the third component 140, and when the value of the register read is the first value, it is determined that the first component 110 is abnormal.

[0074] Optionally, the third component 140 may periodically send the value of the register to the second component 130. After determining that the first component 110 is abnormal and setting the value of the register to the first value, the third component 140 may send the first value of the register to the second component 130, so that the second component 130 determines that the first component 110 is abnormal based on the first value of the register.

[0075] It should be understood that the above-mentioned methods 1 to 4 are merely examples and should not be regarded as specific limitations on the implementation method of the second component 130 monitoring the status of the first component 110 .

[0076] S503 : the second component 130 monitors the external component 120 .

[0077] S504: The second component 130 does not perform any processing.

[0078] In a possible embodiment, Figure 6 As shown, when the second component 130 executes S503 to monitor the external component 120, the second component 130 may also execute S505 to continue monitoring the status of the first component 110. When the second component 130 determines that the first component 110 has returned to normal, it executes S506 to stop monitoring the external component 120, and the first component 110 executes S507 to monitor the external component 120. When the second component 130 determines that the first component 110 has not returned to normal, it continues to execute S503 to monitor the external component 120.

[0079] Corresponding to the above-mentioned method 1 or method 2, if the second component 130 receives the heartbeat signal sent by the first component 110 while monitoring the external component 120, the second component 130 determines that the first component 110 has returned to normal, otherwise, it determines that the first component 110 has not returned to normal.

[0080] Corresponding to the above-mentioned method 3 or method 4, if the third component 140 receives the heartbeat signal sent by the first component 110 while the second component 130 is monitoring the external component 120, the third component 140 determines that the first component 110 has returned to normal, otherwise, it determines that the first component 110 has not returned to normal. After determining the status of the first component 110, the third component 140 can send a notification to the second component 130 to notify the second component 130 of the status of the first component 110.

[0081] Specifically, when the third component 140 determines that the first component 110 has returned to normal, the value of the register can be set to a second value such as 2, and the second value is used to indicate that the first component 110 has returned to normal. The second component 130 can periodically read the value of the register in the third component 140, and when the value of the register read is the second value, it is determined that the first component 110 has returned to normal, and when the value of the register read is the first value, it is determined that the first component 110 has not returned to normal.

[0082] Optionally, the third component 140 may periodically send the value of the register to the second component 130. After determining that the first component 110 has returned to normal and setting the value of the register to the second value, the third component 140 may send the second value of the register to the second component 130, so that the second component 130 determines that the first component 110 has returned to normal based on the second value of the register.

[0083] In a possible embodiment, in order to further improve the reliability of the network device 200 monitoring the external component 120, Figure 3 , Figure 4 In the network device 200 shown in FIG. 1 , a component for monitoring the status of the third component 140 may be provided, such as the fourth component 150 ( Figure 3 , Figure 4 (not shown), and the fourth component 150 is connected to the first component 110, the second component 130, and the external component 120. When the fourth component 150 determines that the third component 140 is abnormal, the fourth component 150 replaces the third component 140 to communicate with the first component 110, the second component 130, and the external component 120.

[0084] pass Figure 5 It can be seen from the embodiment that, through the second component 130 set in the network device, it is possible to monitor whether the first component 110 has an abnormality. When the second component 130 determines that the first component 110 has an abnormality, the second component 130 can monitor the external component 120 instead of the first component 110. In this way, the reliability of the network device's monitoring of the external component 120 can be improved, and the potential safety hazards of the network device can be reduced.

[0085] also, Figure 5In the embodiment, the second component 130 can monitor whether the first component 110 is abnormal, so that when the first component 110 is abnormal, the operation and maintenance personnel can promptly handle the abnormality of the first component 110. It should be understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0086] It is understandable that, in order to implement the functions in the above method embodiments, the first component 110, the second component 130, and the third component 140 include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0087] Figure 7 is a schematic diagram of a possible monitoring device 700 provided in the present application, such as Figure 7 As shown, the monitoring device 700 includes a processor 720, a communication interface 710, a BMC 730, and an external component 740. The processor 720, the communication interface 710, the BMC 730, and the external component 740 are coupled to each other. The processor 720 can be used to execute the steps executed by the first component 110 in the above method embodiment, and can also be used to execute the steps executed by the second component 130 in the above method embodiment. When the processor 720 is used to execute the steps executed by the first component 110 in the above method embodiment, the BMC 730 is used to execute the steps executed by the second component 130 in the above method embodiment. When the processor 720 is used to execute the steps executed by the second component 130 in the above method embodiment, the BMC 730 is used to execute the steps executed by the first component 110 in the above method embodiment.

[0088] It is understandable that the communication interface 710 may be a transceiver or an input / output interface. Optionally, the monitoring device 700 may further include a memory 750 for storing instructions executed by the processor 720 and / or the BMC 730 or storing input data required by the processor 720 and / or the BMC 730 to execute instructions or storing data generated after the processor 720 and / or the BMC 730 executes instructions. Optionally, the monitoring device 700 may further include a CPLD 760 ( Figure 7 (not shown) is used to execute the steps performed by the third component 140 in the above method embodiment.

[0089] It is understandable that the processor 720 in the embodiment of the present application may be a CPU, or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), FPGAs or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0090] The communication interface 710 may be a wired interface (e.g., an Ethernet interface, an optical fiber interface, or other types of interfaces (e.g., an infiniBand interface)) or a wireless interface (e.g., a cellular network interface or a wireless local area network interface) for communicating with other computing devices or apparatuses. When the communication interface 710 is a wired interface, the communication interface 710 may use a protocol family above TCP / IP, such as a remote function call (RFC) protocol, a simple object access protocol (SOAP) protocol, a simple network management protocol (SNMP) protocol, a common object request broker architecture (CORBA) protocol, and a distributed protocol, etc.

[0091] The memory 750 may be a non-volatile memory, such as a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), or a flash memory. The memory 640 may also be a volatile memory, which may be a random access memory (RAM) used as an external cache.

[0092] The external component 120 may include any one or more of a fan, a power supply, a temperature sensor, a network interface, a flash memory, a hard disk, and the like.

[0093] According to the method provided by the present application, the present application also provides a computer-readable storage medium, which stores a program or instruction, and when the program or instruction is executed on a computer, the computer executes Figure 5 , Figure 6 Some or all of the steps of the method embodiment shown.

[0094] According to the method provided by the present application, the present application also provides a chip system, which may include a processor. The processor is coupled to a memory and may be used to execute Figure 5 , Figure 6 In the method embodiment shown, some or all of the steps are performed by the first component 110, the second component 130 or the third component 140. Optionally, the chip system also includes a memory. The memory is used to store computer programs (also referred to as codes or instructions). The processor is used to call and run the computer program from the memory so that the device equipped with the chip system executes Figure 5 , Figure 6 Some or all of the steps of the method embodiment shown.

[0095] According to the monitoring method provided in the present application, the present application also provides a monitoring system, which includes the aforementioned network device 200.

[0096] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory, register, hard disk, solid-state drive (SSD), mobile hard disk, portable read-only memory (compact disc read-only memory, CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). In addition, the ASIC can be located in a communication device. Of course, the processor and the storage medium can also be present in the communication device as discrete components.

[0097] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When a computer program or instruction is loaded and executed on a computer, the process or function of the embodiment of the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instruction can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, or a tape; it can also be an optical medium, such as a digital video disc; it can also be a semiconductor medium, such as a solid-state hard disk. The computer-readable storage medium may be a volatile or nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.

[0098] In the various embodiments of the present application, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. In the present application, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of the present application, the character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula of the present application, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "Including at least one of A, B or C" can mean: including A; including B; including C; including A and B; including A and C; including B and C; including A, B and C.

[0099] It is understood that the various numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A monitoring method, characterized in that: Applied to a network device, the network device includes a first component and a second component, the first component is connected to an external component of the network device, the second component is connected to the external component, and the second component is connected to the first component, the method includes: The first component monitors the external component; When an abnormality occurs in the first component, the second component monitors the external component.

2. The method according to claim 1, characterized in that The method further comprises: The second component determines that the first component is abnormal based on not receiving the heartbeat signal sent by the first component for a period of time.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: In a case where the second component monitors the external component, the second component receives a heartbeat signal sent by the first component; The second component stops monitoring the external component when it determines that the first component has returned to normal; The first component monitors the external component.

4. The method according to claim 1, characterized in that: The network device further includes a third component, the first component is connected to the external component through the third component, and the second component is connected to the first component through the third component, and the method further includes: The third component determines that an abnormality occurs in the first component; The third component notifies the second component that an abnormality has occurred in the first component.

5. The method according to claim 4, characterized in that The third component includes a register, and the third component determines that an abnormality occurs in the first component, including: The third component determines that the first component is abnormal according to not receiving the heartbeat signal sent by the first component for a period of time; The third component sets the value of the register to a first value, where the first value is used to indicate that an abnormality occurs in the first component.

6. The method according to claim 5, characterized in that The third component notifying the second component that the first component is abnormal includes: The third component sends the first value of the register to the second component, where the first value indicates that an abnormality occurs in the first component; or, The second component reads the first value of the register, and the first value indicates that an exception occurs in the first component.

7. The method according to claim 5 or 6, characterized in that: The method further comprises: In the case where the second component monitors the external component, the third component receives a heartbeat signal sent by the first component; The third component determines that the first component is restored to normal, and the third component sets the value of the register to a second value, wherein the second value indicates that the first component is restored to normal; The second component determines that the value of the register is the second value, and stops monitoring the external component; The first component monitors the external component.

8. The method according to any one of claims 1 to 7, characterized in that: The first component is a central processing unit (CPU), and the second component is a baseboard management controller (BMC), or the first component is a BMC and the second component is a CPU.

9. The method according to any one of claims 4 to 8, characterized in that: The third component is a complex programmable logic device (CPLD).

10. The method according to any one of claims 1 to 9, characterized in that: The network device is a white box switch, and the external components include any one or more of a fan, a power supply, a temperature sensor, a network interface, a flash memory or a hard disk.

11. A network device, characterized in that: The network device comprises a first component and a second component, the first component is connected to an external component of the network device, the second component is connected to the external component, and the second component is connected to the first component; The first component is used to monitor the external component; When an abnormality occurs in the first component, the second component is used to monitor the external component.

12. The network device according to claim 11, characterized in that: The second component is also used to determine that the first component is abnormal based on not receiving a heartbeat signal sent by the first component for a period of time.

13. The network device according to claim 11 or 12, characterized in that: In the case where the second component is used to monitor the external component, the second component is also used to receive a heartbeat signal sent by the first component; The second component is used to determine that the first component returns to normal, and then stop monitoring the external component; The first component is used to monitor the external component.

14. The network device according to claim 11, characterized in that: The network device further includes a third component, the first component is connected to the external component through the third component, and the second component is connected to the first component through the third component; The third component is used to determine that an abnormality occurs in the first component; The third component is used to notify the second component that an abnormality occurs in the first component.

15. The network device according to claim 14, characterized in that: The third component includes a register; The third component is used to determine that the first component is abnormal according to not receiving the heartbeat signal sent by the first component for a period of time; The third component is used to set the value of the register to a first value, and the first value is used to indicate that an abnormality occurs in the first component.

16. The network device according to claim 15, characterized in that: The third component is used to send the first value of the register to the second component, where the first value indicates that an abnormality occurs in the first component; or, The second component is used to read the first value of the register, and the first value indicates that an abnormality occurs in the first component.

17. The network device according to claim 15 or 16, characterized in that: In the case where the second component is used to monitor the external component, the third component is used to receive a heartbeat signal sent by the first component; The third component is used to determine that the first component is restored to normal, and set the value of the register to a second value, wherein the second value indicates that the first component is restored to normal; The second component is used to determine that the value of the register is the second value, and then stop monitoring the external component; The first component is used to monitor the external component.

18. The network device according to any one of claims 11 to 17, characterized in that: The first component is a CPU, and the second component is a BMC, or the first component is a BMC, and the second component is a CPU.

19. The network device according to any one of claims 14 to 18, characterized in that: The third component is a CPLD.

20. The network device according to any one of claims 11 to 19, characterized in that: The network device is a white box switch, and the external components include any one or more of a fan, a power supply, a temperature sensor, a network interface, a flash memory or a hard disk.

Citation Information

Cited By

  • Monitoring method and network device

    EP4697740A1

  • Monitoring method and network device

    WO2024230452A1