Port alarm association method, device, equipment, storage medium and product
By automatically associating alarm information with server and switch ports, the system alleviates the alarm handling burden on network maintenance personnel in large data centers, enables intelligent processing of port alarms, and improves maintenance efficiency.
Patent Information
- Application Number
- CN202410244885.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2044-03-04
AI Technical Summary
In large data centers, when physical servers are powered off, a large number of independent network card ports and switch ports generate alarm information, which requires network maintenance personnel to manually identify and associate them, resulting in a huge workload and affecting maintenance efficiency.
By receiving and matching the identity and time information of the server and switch ports, the alarm information of the server scheduled to power down is automatically associated with the alarm information of the switch port power down, and the associated indication information is generated to mask or reset the alarm level.
It reduces the workload of network operations and maintenance personnel in identifying and correlating port alarms, and improves the efficiency and intelligence of network operations and maintenance.
Smart Images

Figure CN118827324B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network operation and maintenance, and in particular to a method, apparatus, device, storage medium and product for associating port alarms. Background Technology
[0002] When building a large data center, some physical servers (i.e., physical nodes where the Hypervisor is deployed) may be idle, which will lead to a waste of a lot of power resources.
[0003] In related technologies, a Dynamic Power Management (DPM) module can be added. The DPM module can periodically collect the status and usage of servers and CPUs (Central Processing Units), calculate the list of servers that need to be powered on or off, and trigger the virtual layer to perform power-on or power-off operations. The virtual layer can perform power-on or power-off operations on specified physical nodes and mark the corresponding physical servers with intelligent power-on or power-off status in the database.
[0004] However, after a physical server is powered down, the virtual layer sends an alarm message indicating that the network interface card (NIC) port is down. If many physical servers are powered down, the network management system may receive a large number of NIC port down alarm messages simultaneously, as well as alarm messages from switches directly connected to the NIC ports. Furthermore, these two types of alarm messages are independent and cannot be correlated or masked. Network maintenance personnel must manually identify and correlate each alarm message, resulting in a huge workload and significantly consuming valuable time spent processing other important alarm messages, thus affecting the effectiveness of network maintenance. Summary of the Invention
[0005] In view of this, embodiments of this application provide a method, apparatus, device, and storage medium for associating port alarms, aiming to achieve automatic association of port alarms and effectively improve network operation and maintenance.
[0006] The technical solution of this application embodiment is implemented as follows:
[0007] Firstly, embodiments of this application provide a method for associating port alarms, including:
[0008] Receive first alarm information, which is used to indicate an alarm notification for the server based on intelligent power-on / off management to be powered down in a planned manner; wherein, the first alarm information includes: a first identity identifier indicating the source of the alarm and a first time information indicating the first moment when the network card port of the server is powered down;
[0009] Receive a second alarm message, which is used to indicate that the port of the switch is powered down; wherein, the port of the switch is directly connected to the network card port of the server, and the second alarm message includes: a second identity identifier indicating the source of the alarm and a second time information indicating the second time when the port of the switch is powered down;
[0010] If it is determined that the first identity identifier matches the second identity identifier, and based on the first time information and the second time information, it is determined that the time difference between the first time and the second time is less than or equal to a first duration threshold, then an indication information associated with the first alarm information and the second alarm information is generated.
[0011] In the above scheme, the first identity identifier includes: a first identifier indicating the server and a second identifier indicating the network card port of the server; the second identity identifier includes: a third identifier indicating the server where the network card port directly connected to the port of the switch is located and a fourth identifier indicating the network card port directly connected to the port of the switch; determining that the first identity identifier matches the second identity identifier includes:
[0012] If the first identifier is the same as the third identifier, and the second identifier is the same as the fourth identifier, then the first identity identifier is determined to match the second identity identifier.
[0013] In the above scheme, receiving the first alarm information includes:
[0014] Receive the first alarm message sent by the virtual layer;
[0015] The virtual layer performs a planned power-down on the target server based on the power-down command of dynamic power management. If the time difference between the third moment when the target server completes its power-down and the fourth moment when the network card port of the target server is detected to be powered down is less than or equal to the second duration threshold, the first alarm information is generated.
[0016] In the above scheme, the first alarm information also includes descriptive information indicating that the alarm cause is a planned server power-down, and the method further includes:
[0017] The first alarm information is identified based on the description information.
[0018] In the above scheme, receiving the second alarm information includes:
[0019] Receive the second alarm message sent by the switch;
[0020] The switch obtains the third identifier and the fourth identifier based on the link layer discovery protocol message sent by the network card port of the server directly connected to its port, and generates and sends the second alarm information after determining that the port of the switch is powered down.
[0021] The method in the above scheme further includes:
[0022] Based on the current resource redundancy rate of the managed logical nodes and the set dynamic power management policy, determine the target server that needs to be powered down.
[0023] A power-down command is sent to the virtual layer, instructing the target server to be powered down.
[0024] The method in the above scheme further includes:
[0025] Based on the indicated information, the first alarm information and the second alarm information are masked; or...
[0026] Based on the indicated information, the alarm levels of the first alarm information and the second alarm information are reset.
[0027] Secondly, embodiments of this application provide an association device for port alarms, including:
[0028] The first receiving module is used to receive first alarm information, which is used to indicate an alarm notification that the server based on intelligent power-on / off management is scheduled to power down; wherein, the first alarm information includes: a first identity identifier indicating the source of the alarm and first time information indicating the first moment when the network card port of the server is powered down;
[0029] The second receiving module is used to receive second alarm information, which is used to indicate that the port of the switch is powered down; wherein, the port of the switch is directly connected to the network card port of the server, and the second alarm information includes: a second identity identifier indicating the source of the alarm and a second time information indicating the second time when the port of the switch is powered down;
[0030] The alarm association module is used to generate indication information that associates the first alarm information with the second alarm information if it is determined that the first identity identifier matches the second identity identifier, and based on the first time information and the second time information, it is determined that the time difference between the first time and the second time is less than or equal to a first duration threshold.
[0031] Thirdly, embodiments of this application provide a network device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor is used to run the computer program, it executes the steps of the method described in the first aspect of embodiments of this application.
[0032] Fourthly, embodiments of this application provide a computer storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect of embodiments of this application.
[0033] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect of embodiments of this application.
[0034] The technical solution provided in this application embodiment receives first alarm information, which is used to indicate a planned power-down alarm notification for a server based on intelligent power-on / off management. The first alarm information includes a first identifier indicating the source of the alarm and first time information indicating the first moment when the server's network interface card (NIC) port powers down. It also receives second alarm information, which is used to indicate a port power-down alarm notification for a switch. The switch port is directly connected to the server's NIC port. The second alarm information includes a second identifier indicating the source of the alarm and second time information indicating the second moment when the switch port powers down. If it is determined that the first identifier matches the second identifier, and based on the first and second time information, the time difference between the first and second moments is less than or equal to a first duration threshold, then an indication information associating the first and second alarm information is generated. In this way, port alarms of a server with planned power-down and port alarms of the switch connected to that server can be automatically associated, effectively reducing the workload of network maintenance personnel in manually identifying and associating port alarms, thereby improving network maintenance efficiency. Attached Figure Description
[0035] Figure 1 This is a flowchart illustrating the method for associating port alarms according to an embodiment of this application.
[0036] Figure 2 This is a flowchart illustrating the intelligent power-on / off scheme for a server based on a DPM module, as described in an application embodiment of this application.
[0037] Figure 3 This is a schematic diagram illustrating the alarm generation after the computing server is intelligently powered down in an application embodiment of this application;
[0038] Figure 4 This is a schematic diagram illustrating the principle of port alarm association in the application embodiments of this application;
[0039] Figure 5 This is a schematic diagram of the structure of the associated device for port alarm in an embodiment of this application;
[0040] Figure 6This is a schematic diagram of the network device according to an embodiment of this application. Detailed Implementation
[0041] The present application will now be described in further detail with reference to the accompanying drawings and embodiments.
[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
[0043] This application provides a method for associating port alarms, which can be applied to network devices, such as network management systems that manage resource pools in data centers. Figure 1 As shown, the method includes:
[0044] Step 101: Receive first alarm information. The first alarm information is used to indicate an alarm notification that the server based on intelligent power-on / off management will be powered down in a planned manner. The first alarm information includes: a first identity identifier indicating the source of the alarm and first time information indicating the first moment when the network card port of the server is powered down.
[0045] It should be noted that after the data center resource pool software assembly is completed, the servers in the resource pool managed by the network management system are in an idle state, meaning they are not yet carrying any services, since the services have not yet been deployed. As services are continuously deployed and launched, the idle rate of servers in the resource pool gradually decreases from the initial 100% and enters a relatively stable state. This cycle usually takes 3 to 6 months, during which a significant amount of power resources are wasted.
[0046] In this embodiment, a DPM module is added to the network management system. This DPM module determines the target server that needs to be powered down based on the current resource redundancy rate of the managed logical nodes and the set dynamic power management policy, and sends a power-down command to the Virtual Integrated Management Layer (VIM) instructing the target server to be powered down. The set dynamic power management policy can be based on the resource redundancy rate set for the logical nodes, and then, based on the comparison between the current resource redundancy rate of the logical nodes and the set resource redundancy rate, it can perform power-on or power-on management on the servers in the resource pool.
[0047] This virtualization layer virtualizes physical computing, storage, and network resources into virtual computing, storage, and network resources, providing a virtual resource pool for the deployment, execution, and management of related services. It also enables power-on or power-off operations on the servers within the resource pool. It's important to note that the servers need to support intelligent power-on / off power interfaces. For example, the virtualization layer can send power-on or power-off commands to the Hypervisor within the server, and the Hypervisor can access the power interface to perform the power-on or power-off operations. The Hypervisor can be understood as an intermediate software layer running between the underlying physical server and the operating system, allowing multiple operating systems and applications to share hardware. In this way, while ensuring rapid service deployment and launch, the power consumption of the servers in the resource pool can be minimized.
[0048] For example, receiving the first alarm information includes:
[0049] Receive the first alarm message sent by the virtual layer;
[0050] The virtual layer performs a planned power-down on the target server based on the power-down command of dynamic power management. If the time difference between the third moment when the target server completes its power-down and the fourth moment when the network card port of the target server is detected to be powered down is less than or equal to the second duration threshold, the first alarm information is generated.
[0051] For example, after receiving a power-down command from the network management system, the virtual layer performs a power-down operation on the target server. Based on the third moment of power-down completion returned by the target server, it records in the database that the target server is "planned" power-down, i.e., an active power-down based on dynamic power management, and records this third moment. The virtual layer can also monitor the fourth moment of power-down of the target server's network card port based on the network protocol, and compare the third moment and the fourth moment. If it is determined that the time difference between the third moment and the fourth moment is less than or equal to a second duration threshold (e.g., 15 seconds, which can be flexibly set according to the monitoring mechanism), the virtual layer generates the first alarm information of this application embodiment and sends the first alarm information to the network management system. It should be noted that this first alarm information is different from the traditional alarm information for network card port power-down. For example, the first alarm information may include descriptive information indicating that the alarm cause is a planned power-down of the server. The network management system can identify whether the received alarm information is the first alarm information based on this descriptive information.
[0052] For example, the first alarm information may include: a first identity indicating the source of the alarm and first time information indicating the first moment when the network interface card port of the server is powered down. It is understood that the virtual layer may use the fourth moment when the network interface card port of the target server is powered down, as detected by network protocol monitoring, as the aforementioned first moment, and generate the first time information.
[0053] For example, the first identifier may include a first identifier indicating the server and a second identifier indicating the network interface card (NIC) port of the server. In one application example, the first identifier may be a server serial number, and the second identifier may be the MAC (Media Access Control) address of the NIC port.
[0054] Step 102: Receive second alarm information. The second alarm information is used to indicate that the port of the switch is powered down. The port of the switch is directly connected to the network card port of the server. The second alarm information includes: a second identity identifier indicating the source of the alarm and a second time information indicating the second time when the port of the switch is powered down.
[0055] Understandably, after the aforementioned server is "planned" to be powered down, the port on the switch directly connected to the server's network card port will also become DOWN. The switch will generate a relevant port DOWN alarm (i.e., the second alarm information) and report it to the network management system.
[0056] For example, receiving the second alarm information includes:
[0057] Receive the second alarm message sent by the switch;
[0058] Specifically, the switch obtains a third identifier indicating the server where the network interface card (NIC) port directly connected to the switch is located and a fourth identifier indicating the NIC port directly connected to the switch based on the Link Layer Discovery Protocol (LLDP) message sent by the NIC port of the server directly connected to its port. After determining that the port of the switch is powered down, the switch generates and sends the second alarm information.
[0059] Here, the second alarm information includes: a second identifier indicating the source of the alarm and a second time information indicating the second moment when the port of the switch is powered down. The second identifier includes the aforementioned third and fourth identifiers.
[0060] In one application example, the server can send information about its local network interface card (NIC) port to the switch side port through the LLDP software module installed on it. For example, the server serial number and the MAC address of the NIC port. The aforementioned third identifier can be the server serial number of the peer server, and the fourth identifier can be the MAC (Media Access Control) address of the peer server's NIC port.
[0061] Step 103: If it is determined that the first identity identifier matches the second identity identifier, and based on the first time information and the second time information, it is determined that the time difference between the first time and the second time is less than or equal to the first duration threshold, then an indication information associated with the first alarm information and the second alarm information is generated.
[0062] It is understood that, in this embodiment of the application, after receiving the first alarm information and the second alarm information, the network management system can match them based on their identity identifiers. If the identity identifiers match, it can further determine whether the two meet the association conditions based on the time difference between the first and second times. In this way, the port alarms of the server scheduled to be powered down and the port alarms of the switch connected to the server can be automatically associated, which can effectively reduce the workload of network operation and maintenance personnel in manually identifying and associating port alarms, thereby improving the network operation and maintenance effect.
[0063] For example, determining that the first identity identifier matches the second identity identifier includes:
[0064] If the first identifier is the same as the third identifier, and the second identifier is the same as the fourth identifier, then the first identity identifier is determined to match the second identity identifier.
[0065] It should be noted that in this embodiment of the application, the switch can obtain the identifier of the peer server (i.e., the third identifier) and the identifier of the server's network card port (i.e., the fourth identifier) based on LLDP messages, which facilitates the implementation of the alarm association scheme in this embodiment of the application and can reduce the workload and complexity of related development.
[0066] Exemplarily, the method further includes:
[0067] Based on the indicated information, the first alarm information and the second alarm information are masked; or...
[0068] Based on the indicated information, the alarm levels of the first alarm information and the second alarm information are reset.
[0069] In one application example, the network management system can use this instruction to block the first alarm information and the second alarm information. For example, it can stop reporting the first alarm information and the second alarm information to the upper-level system, which can reduce the interference of invalid alarm information and significantly improve the efficiency and intelligence of network operation and maintenance.
[0070] In another application example, the network management system can reset the alarm levels of the first alarm information and the second alarm information based on the indication information. For example, the alarm levels of the first alarm information and the second alarm information can be lowered, which helps the network management system to prioritize the processing of high-level alarm information and improve the intelligence level of network operation and maintenance.
[0071] The present application will now be described in further detail with reference to an application embodiment.
[0072] In this application example, to minimize server power consumption while ensuring rapid service deployment and launch, a smart server power-on / off solution is introduced into the resource pool. This solution adds a DPM module to the network management system to set resource redundancy rates for individual HAs (Host Aggregations, i.e., the aforementioned logical nodes) within the resource pool. The DPM module periodically collects the status and usage of all servers and CPUs within the HA, compares them with the required redundancy rate, automatically calculates the list of servers that need to be powered on or off, and triggers the virtual layer to perform the server power-on or power-off operations.
[0073] like Figure 2 As shown, the server intelligent power-on / off solution based on the DPM module can specifically include:
[0074] Step 1: Add a DPM module to the network management system. Use policy templates to set resource redundancy rates (0-100%, in %) for individual HA instances within the resource pool, at the server or CPU core level. For example, the priority of powering on / off servers within the HA can also be set based on memory size or network interface card traffic.
[0075] Step 2: The DPM module obtains server resource information for all or a specified HA server in the resource pool through the compute node resource query interface. For example, it includes at least the following information: server identifier, server availability (enabled or disabled), server power status (up or down), CPU architecture, CPU model, local storage information (total, used, and remaining), memory information (total, used, and remaining), and vCPU (virtual CPU) information (total, used, and remaining).
[0076] Step 3: Based on the resource redundancy rate set in Step 1 and the server resource information obtained in Step 2, the DPM module calculates the number of redundant resources that need to be ensured (i.e., the number of servers or CPU cores in an idling state), and compares them with the existing redundant resources in HA to automatically calculate and select the servers that need to be powered on or off.
[0077] Step 4: The DPM module calls the compute node power management interface automatically or manually to trigger the virtual layer to perform power-on or power-off operations on the server.
[0078] Step 5: After receiving the request message from the power management interface of the computing node, the virtual layer performs a power-on or power-off operation on the specified computing node and marks the corresponding server with a smart power-on or power-off status in the database.
[0079] The aforementioned intelligent power-on / off solution for servers enables dynamic power-on and power-off operations for computing servers within the data center. While ensuring rapid deployment and online service, it also minimizes server power consumption. However, the introduction of this solution also brings new challenges to network operation and maintenance, especially alarm handling.
[0080] like Figure 3 As shown, after the computing server is intelligently powered down, on the one hand, the virtual layer will send an alarm indicating that each network card port of the server is DOWN to the network management system or alarm agent; on the other hand, the ports on the switches directly connected to each network card port of the computing server will also become DOWN, and the switches will generate relevant port DOWN alarms and report them to the network management system or alarm agent.
[0081] When a large number of servers are intelligently powered down, the network management system or alarm agent will receive and present a large number of alarm messages indicating that the server network card ports and switch ports are down. Moreover, the two types of alarms are independent of each other and cannot be automatically correlated or masked. Network maintenance personnel can only manually identify and correlate each alarm message one by one, which is a huge workload and takes up a lot of valuable time that is spent on dealing with other important alarms.
[0082] like Figure 4 As shown, the method for associating port alarms in this application embodiment includes:
[0083] 1) Each network card port of the computing server is directly connected to the port of the switch. The computing server sends the information of its local network card port to the switch side port through the LLDP software module installed on it, including the Chassis ID (e.g., server serial number) and Port ID (e.g., MAC address of the network card port).
[0084] 2) The DPM module sends a server power-down operation request manually or automatically through the compute node power management interface. After receiving the request message, the virtual layer performs a power-down operation on the specified server and marks the server as "planned" power-down in the database. At the same time, it records the completion time of the power-down operation based on the shutdown time fed back by the server.
[0085] 3) After the server is powered off, the virtual layer immediately detects that the network card ports of the powered-off server have changed to the DOWN state.
[0086] 4) By comparing database records, if the computing server to which the network interface card (NIC) port that has become DOWN is marked as "planned" power-off, and the time difference between the time the NIC port becomes DOWN and the time the server power-off operation is completed is less than 15 seconds (this can be flexibly configured according to the actual system monitoring mechanism), then the virtual layer will not report a NIC DOWN alarm to the network management system or alarm agent for each matched NIC port individually. However, the virtual layer will report an alarm notification that the server has been "planned" power-off (i.e., the aforementioned first alarm information) to the network management system or alarm agent, and the alarm must include the following information:
[0087] The alarm issue is caused by a description such as "the server is scheduled to power down";
[0088] • The alarm details include the Chassis ID and Port ID of all network interface card ports that meet the above matching conditions (e.g., “Local_ChassisID:<server serial number>; Local_PortID:<network interface MAC address>” or similar content) and the timestamp when the network interface card port becomes DOWN (i.e., the aforementioned first time information).
[0089] 5) Ports on switches directly connected to the server's network card port also become DOWN when the server is powered off.
[0090] 6) When sending alarms about port down to the network management system or alarm agent, each switch should include the following information:
[0091] The Chassis ID and Port ID of the peer network port (i.e., the server network card port directly connected to the local port of the switch), such as "neighbor_ChassisID:<peer server serial number>; neighbor_PortID:<peer network port MAC address>" or similar content (this information can be obtained from the LLDP message sent by the server network card port and stored in the LLDP neighbor table of the switch), and the time when the port became DOWN (i.e. the aforementioned second time information).
[0092] 7) The network management system or alarm agent receives the server "planned" power-down alarm sent by the virtual layer (i.e., the aforementioned first alarm information) and the port DOWN alarm sent by the switch (i.e., the aforementioned second alarm information), and performs the following enhanced processing:
[0093] a. Match the Chassis ID and Port ID values of the peer network interface in the received second alarm message with the Chassis ID and Port ID values of each server network card port carried in the received first alarm message. If both are the same, proceed to step b.
[0094] b. Based on step a, compare the timestamp of the network card port becoming DOWN in the first matched alarm information with the event occurrence time in the second matched alarm information. If the time difference between the two is less than 15 seconds (which can be flexibly set according to the actual monitoring mechanism of the system), it is determined that the two alarm information are related to each other, that is, the alarm corresponding to the first alarm information caused the alarm corresponding to the second alarm information, and an associated alarm information of the first alarm information and the second alarm information is automatically generated.
[0095] Using the above solution, operations and maintenance personnel can quickly identify and correlate a large number of predictable server network port and switch port DOWN alarms caused by intelligent server power-off, and take further action based on this correlation information. For example, they can reset the severity level of these alarms according to the operations and maintenance rules, or mask these alarms (i.e., stop reporting them to the upper-level network management system).
[0096] It is understood that the method in this application embodiment automatically correlates two types of alarms: server "planned" power-down alarms and switch port DOWN alarms. This allows maintenance personnel to easily and quickly identify the causes of these alarms and their interrelationships, and take further processing measures (such as alarm masking), significantly improving maintenance efficiency and intelligence. Furthermore, this application embodiment utilizes some information from existing LLDP protocol messages in its implementation, reducing development workload and complexity, making the solution easier to implement at the product level.
[0097] In order to implement the method of the embodiments of this application, the embodiments of this application also provide a port alarm association device, which corresponds to the above-mentioned port alarm association method. The steps in the above-mentioned port alarm association method embodiments are also fully applicable to the port alarm association device embodiments.
[0098] like Figure 5As shown, the associated device for the port alarm includes: a first receiving module 501, a second receiving module 502, and an alarm association module 503. The first receiving module 501 receives first alarm information, which is used to indicate a planned power-down alarm notification from a server based on intelligent power-on / off management; wherein the first alarm information includes: a first identity identifier indicating the source of the alarm and first time information indicating the first moment when the server's network card port powers down; the second receiving module 502 receives second alarm information, which is used to indicate a power-down alarm notification from a switch port; wherein the switch port is directly connected to the server's network card port, and the second alarm information includes: a second identity identifier indicating the source of the alarm and second time information indicating the second moment when the switch port powers down; the alarm association module 503 generates indication information associating the first alarm information with the second alarm information if it is determined that the first identity identifier matches the second identity identifier, and based on the first time information and the second time information, it is determined that the time difference between the first moment and the second moment is less than or equal to a first duration threshold.
[0099] For example, the first identity identifier includes: a first identifier indicating the server and a second identifier indicating the network interface card (NIC) port of the server; the second identity identifier includes: a third identifier indicating the server where the NIC port directly connected to the port of the switch is located and a fourth identifier indicating the NIC port directly connected to the port of the switch; the alarm association module 503 determines that the first identity identifier matches the second identity identifier, including:
[0100] If the first identifier is the same as the third identifier, and the second identifier is the same as the fourth identifier, then the first identity identifier is determined to match the second identity identifier.
[0101] For example, the first receiving module 501 receives the first alarm information, including:
[0102] Receive the first alarm message sent by the virtual layer;
[0103] The virtual layer performs a planned power-down on the target server based on the power-down command of dynamic power management. If the time difference between the third moment when the target server completes its power-down and the fourth moment when the network card port of the target server is detected to be powered down is less than or equal to the second duration threshold, the first alarm information is generated.
[0104] For example, the first alarm information also includes descriptive information indicating that the alarm cause is a planned power-down of the server, and the first receiving module 501 is further configured to: identify the first alarm information based on the descriptive information.
[0105] For example, the second receiving module 502 receives the second alarm information, including:
[0106] Receive the second alarm message sent by the switch;
[0107] The switch obtains the third identifier and the fourth identifier based on the link layer discovery protocol message sent by the network card port of the server directly connected to its port, and generates and sends the second alarm information after determining that the port of the switch is powered down.
[0108] For example, the associated device for the port alarm also includes: a DPM module 504, for:
[0109] Based on the current resource redundancy rate of the managed logical nodes and the set dynamic power management policy, determine the target server that needs to be powered down.
[0110] A power-down command is sent to the virtual layer, instructing the target server to be powered down.
[0111] For example, the associated device for the port alarm further includes: an alarm processing module 505, used for:
[0112] Based on the indicated information, the first alarm information and the second alarm information are masked; or...
[0113] Based on the indicated information, the alarm levels of the first alarm information and the second alarm information are reset.
[0114] In practical applications, the first receiving module 501, the second receiving module 502, the alarm association module 503, the DPM module 504, and the alarm processing module 505 can be implemented by the processor in the network device. Of course, the processor needs to run the computer program in the memory to implement its functions.
[0115] It should be noted that the port alarm association device provided in the above embodiments is only illustrated by the division of the above program modules. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the port alarm association device and the port alarm association method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0116] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide a network device. Figure 6 This is only an exemplary structure of the network device, not the entire structure; implementation is possible as needed. Figure 6The structure shown may be part or all of the structure.
[0117] like Figure 6 As shown, the network device 600 provided in this embodiment includes at least one processor 601, a memory 602, a user interface 603, and at least one network interface 604. The various components in the network device 600 are coupled together via a bus system 605. It can be understood that the bus system 605 is used to implement communication between these components. In addition to a data bus, the bus system 605 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 6 The general designated all buses as Bus System 605.
[0118] The user interface 603 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.
[0119] The memory 602 in this embodiment is used to store various types of data to support the operation of the network device. Examples of such data include any computer program used to operate on the network device.
[0120] The port alarm association method disclosed in this application embodiment can be applied to or implemented by processor 601. Processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the port alarm association method can be completed by the integrated logic circuit of the hardware in processor 601 or by instructions in software form. The processor 601 mentioned above may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 601 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of this application can be directly reflected as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in memory 602. Processor 601 reads the information in memory 602 and combines its hardware to complete the steps of the port alarm association method provided in the embodiments of this application.
[0121] In an exemplary embodiment, the network device may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned methods.
[0122] It is understood that memory 602 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Sync Link Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.
[0123] In an exemplary embodiment, this application also provides a computer storage medium, specifically a computer-readable storage medium, such as a memory 602 storing a computer program. This computer program can be executed by the processor 601 of the network device 600 to complete the steps described in the method of this application embodiment. The computer-readable storage medium can be a ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM, etc.
[0124] In an exemplary embodiment, this application also provides a computer program product, including a computer program that can be executed by a processor 601 of a network device 600 to perform the steps described in the method of this application embodiment.
[0125] It should be noted that terms such as "first" and "second" are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0126] Furthermore, the technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.
[0127] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for associating port alarms, characterized in that, include: Receive first alarm information, which is used to indicate an alarm notification for the server based on intelligent power-on / off management to be powered down in a planned manner; wherein, the first alarm information includes: a first identity identifier indicating the source of the alarm and a first time information indicating the first moment when the network card port of the server is powered down; Receive a second alarm message, which is used to indicate that the port of the switch is powered down; wherein, the port of the switch is directly connected to the network card port of the server, and the second alarm message includes: a second identity identifier indicating the source of the alarm and a second time information indicating the second time when the port of the switch is powered down; If it is determined that the first identity identifier matches the second identity identifier, and based on the first time information and the second time information it is determined that the time difference between the first time and the second time is less than or equal to the first duration threshold, then an indication information associated with the first alarm information and the second alarm information is generated. The first identity identifier includes: a first identifier indicating the server and a second identifier indicating the network interface card (NIC) port of the server; the second identity identifier includes: a third identifier indicating the server where the NIC port directly connected to the port of the switch is located and a fourth identifier indicating the NIC port directly connected to the port of the switch; determining that the first identity identifier matches the second identity identifier includes: If the first identifier is the same as the third identifier, and the second identifier is the same as the fourth identifier, then the first identity identifier is determined to match the second identity identifier.
2. The method according to claim 1, characterized in that, The receipt of the first alarm information includes: Receive the first alarm message sent by the virtual layer; The virtual layer performs a planned power-down on the target server based on the power-down command of dynamic power management. If the time difference between the third moment when the target server completes its power-down and the fourth moment when the network card port of the target server is detected to be powered down is less than or equal to the second duration threshold, the first alarm information is generated.
3. The method according to claim 2, characterized in that, The first alarm information also includes descriptive information indicating that the alarm cause is a planned server power-down, and the method further includes: The first alarm information is identified based on the description information.
4. The method according to claim 1, characterized in that, The receipt of the second alarm information includes: Receive the second alarm message sent by the switch; The switch obtains the third identifier and the fourth identifier based on the link layer discovery protocol message sent by the network card port of the server directly connected to its port, and generates and sends the second alarm information after determining that the port of the switch is powered down.
5. The method according to claim 2, characterized in that, The method further includes: Based on the current resource redundancy rate of the managed logical nodes and the set dynamic power management policy, determine the target server that needs to be powered down. A power-down command is sent to the virtual layer, instructing the target server to be powered down.
6. The method according to claim 1, characterized in that, The method further includes: Based on the indicated information, the first alarm information and the second alarm information are masked; or... Based on the indicated information, the alarm levels of the first alarm information and the second alarm information are reset.
7. A port alarm association device, characterized in that, include: The first receiving module is used to receive first alarm information, which is used to indicate an alarm notification that the server based on intelligent power-on / off management is scheduled to power down; wherein, the first alarm information includes: a first identity identifier indicating the source of the alarm and first time information indicating the first moment when the network card port of the server is powered down; The second receiving module is used to receive second alarm information, which is used to indicate that the port of the switch is powered down; wherein, the port of the switch is directly connected to the network card port of the server, and the second alarm information includes: a second identity identifier indicating the source of the alarm and a second time information indicating the second time when the port of the switch is powered down; The alarm association module is used to generate an indication message that associates the first alarm message with the second alarm message if it is determined that the first identity identifier matches the second identity identifier, and based on the first time information and the second time information, it is determined that the time difference between the first time and the second time is less than or equal to a first duration threshold. The first identity identifier includes: a first identifier indicating the server and a second identifier indicating the network interface card (NIC) port of the server. The second identity identifier includes: a third identifier indicating the server where the NIC port directly connected to the port of the switch is located and a fourth identifier indicating the NIC port directly connected to the port of the switch. The alarm association module determines that the first identity identifier matches the second identity identifier by: If the first identifier is the same as the third identifier, and the second identifier is the same as the fourth identifier, then the first identity identifier is determined to match the second identity identifier.
8. A network device, characterized in that, include: A processor and memory for storing computer programs that can run on the processor, wherein, The processor, when running a computer program, performs the steps of the method according to any one of claims 1 to 6.
9. A computer storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Alarming method and device
CN107562601A
Alarm information processing method and device, computer equipment and storage medium
CN113992495A