A server BMC dynamic network linkage management method and management system
By virtualizing BMC network interfaces into logical interfaces and setting active, backup, and aggregation modes, the problem of hot backup and capacity expansion in BMC network management in complex topologies is solved, automatic switching and load balancing are achieved, and the robustness and reliability of the network are improved. Throughput capacity.
Patent Information
- Application Number
- CN202210523037.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-13
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-13
AI Technical Summary
Existing BMC network management has problems with hot backup and capacity expansion in complex network topologies. Especially in network failure or high-load scenarios, complex configuration and management are required, which increases maintenance complexity.
By virtualizing shared network interfaces and BMC dedicated network interfaces into logical network interfaces, setting active/standby mode and aggregation mode, automatic switching and load balancing are achieved, and network monitoring services and configuration policy libraries are used to dynamically manage network interfaces to adapt to different usage scenarios.
It implements the hot standby capability of BMC network management, automatically senses and switches network interfaces, improves the robustness and throughput of the network, reduces the need for manual configuration, and adapts to high load scenarios.
Smart Images

Figure CN115134215B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer firmware, and in particular relates to a server BMC dynamic network linkage management method and management system. Background Art
[0002] BMC (Baseboard Management Controller) and IPMI (Intelligent Platform Management Interface), namely baseboard management controller and intelligent platform management interface, are the basic core functional subsystems of the server, responsible for the server's hardware status management, operating system management, health status management, power consumption management and other core functions.
[0003] BMC is a small operating system independent of the server system. It is a chip integrated on the motherboard. Some products are plugged into the motherboard through PCIE and other forms. The external form is just a standard RJ45 network port with an independent IP firmware system. Server clusters generally use BMC instructions for large-scale unattended operations, including remote management, monitoring, installation, and restart of servers.
[0004] In order to maintain the normal operation of the server, a data network and a management network are required. The data network is connected to the server's onboard or external network card. The data network is generally used for data interaction with the server host operating system. The management network is connected to the dedicated network port of the BMC chip and is used for remote out-of-band management of the server based on the BMC.
[0005] The existing BMC network management has the following problems:
[0006] 1) BMC has two management networks: a shared network interface and a BMC dedicated network interface, which supports sending and receiving IPMI, WEBUI, Redfish and other messages over the network. Maintenance personnel can remotely manage the server BMC over the network.
[0007] 2) The shared network interface and the BMC dedicated network interface correspond to different physical network links and use independent network configurations.
[0008] 3) During the operation of the server, if one of the management networks fails, it is necessary to use another management network to configure the remote management BMC, which increases the complexity of management and maintenance for complex network topology structures.
[0009] 4) In some scenarios, such as when using virtual media mounting, remote OS or KVM installation, complex configuration is required when network load bottlenecks require capacity expansion. Summary of the invention
[0010] In view of this, the present invention provides a server BMC dynamic network linkage management method and management system, which can solve the hot standby and capacity expansion problems of BMC network management.
[0011] A server BMC dynamic network linkage management method, comprising:
[0012] Step 1: Virtualize the shared network interface and BMC dedicated network interface firmware into one logical network interface, and use the network configuration of one of them;
[0013] Step 2: During initial setup, set the shared network interface and the BMC dedicated network interface to the master / slave mode, that is, one of them is the master network interface and the other is the backup network interface, and the network configuration uses the master network interface configuration;
[0014] Step 3: Start the BMC network monitoring service to monitor the virtual media service and network status;
[0015] Step 4: When the monitoring detects that the main network interface is abnormal, if the backup network interface is in normal state, the main and backup network interfaces are switched, and the backup network interface is upgraded to the main one; if the backup network interface is abnormal, switch the shared network interface to other available network ports, and continue the monitoring described in step 3;
[0016] Step 5: When the network traffic is detected to exceed the set value, the current active / standby mode is switched to the aggregation mode, that is, the active and standby network interfaces work at the same time; when the network traffic is normal, the network active / standby settings are restored;
[0017] Step 6: When the virtual media service or KVM function starts to be used, switch the current active / standby mode to the aggregation mode;
[0018] Step 7: When the virtual media is mounted and the KVM function is no longer used, restore the network configuration to active / standby mode.
[0019] A management system for implementing a server BMC dynamic network linkage management method, wherein a computing unit and a BMC management unit are configured in the server;
[0020] The computing unit is equipped with a system status monitoring module, a network status detection module, and a BMC information interaction module;
[0021] The BMC management unit is configured with a network configuration policy library, a network mode switching module and a system information interaction module;
[0022] The system status monitoring module is used to monitor the real-time operating status of the computing unit and the management unit;
[0023] The network status detection module is used to detect the status and network flow data of the onboard network interface and / or the status and network flow data of the external network interface;
[0024] The BMC information interaction module is used to upload the real-time status of the computing unit, the network interface status, and the flow data to the BMC management unit;
[0025] The system information interaction module is used to interact with the BMC information interaction module to obtain status data detected by the system status monitoring module and the network status detection module;
[0026] The network configuration policy library is used to store network configuration policy modes;
[0027] The network mode switching module is used for: according to the network configuration strategy mode, the management unit sets the master / slave mode or the aggregation mode of the shared network interface and the BMC dedicated network interface accordingly.
[0028] Furthermore, the network configuration strategy mode includes: when the network packet loss rate is higher than a set value, the network delay exceeds a set value or the network is interrupted, the primary and backup networks are switched to the backup network interface.
[0029] Furthermore, the network configuration policy mode includes: when the BMC downloads the operating system image, the virtual media mounting function is used, or the main network port traffic is higher than the set value, switching to the aggregation mode.
[0030] Furthermore, when the network traffic returns to normal, the active / standby state is restored and the active network interface is used.
[0031] The present invention has the following beneficial effects:
[0032] 1) Through this method, the shared network interface of BMC and the dedicated network interface of BMC can be used as the primary and backup for each other to manage the BMC network. When one of the network cards fails or is disconnected, the original network configuration can still be used to access the BMC for management, without the need to manually switch between the two network ports.
[0033] 2) Through this method, it is possible to dynamically switch according to the network load of the server host data network and the BMC management network. This method can automatically sense the network load of the BMC shared network interface and the BMC dedicated network interface.
[0034] 3) When the network load is too high, the BMC network active-standby management mode will be automatically switched to aggregation mode to adapt to high-load network usage scenarios, improve network device utilization, and increase network throughput. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1A framework diagram of a server BMC dynamic network linkage management system of the present invention;
[0036] Figure 2 The present invention is a flow chart of a server BMC dynamic network linkage management method. DETAILED DESCRIPTION
[0037] The present invention is described in detail below with reference to the accompanying drawings and examples. In the hardware configuration of the BMC, there are generally two network interfaces, a shared network interface and a BMC-specific network interface, wherein the shared network interface is the network hardware used in common with the server host OS, and the BMC-specific network interface is the network firmware that is only managed by the BMC. The shared network interface and the BMC-specific network interface can each use an independent network configuration. In the present invention, the shared network interface and the BMC-specific network interface are configured as a primary and standby interface or aggregated and bound in different modes, and the two network interface firmwares are virtualized into a logical network interface, and the network configuration of one of them is used, and the shared network interface and the BMC-specific network interface are configured and switched in the primary and standby mode or the aggregated mode in different usage scenarios to improve the robustness and scalability of the network. From the user's perspective, the BMC has only one network card and uses only one set of configurations.
[0038] The present invention provides a server BMC dynamic network linkage management method, and the present invention involves three types of network interfaces:
[0039] One is the server onboard or external card;
[0040] The second is the shared network interface that connects the BMC chip pins to the motherboard or external card;
[0041] The third is the dedicated network interface of the BMC;
[0042] The present invention proposes a BMC dynamic network linkage management method, which realizes the sharing, switching, aggregation and other network dynamic management of the server external network interface and the BMC dedicated network interface.
[0043] Network interface shared management refers to: the server's onboard or external network interface provides network communication hardware devices to the server computing unit. At the same time, the management unit can also use these network devices for out-of-band management and operation.
[0044] The computing unit and the management unit simultaneously use these hardware as their respective network interfaces, achieving hardware sharing without affecting each other during use.
[0045] Network interface switching management means: the management unit has both the BMC dedicated network interface and the shared network interface, and sets the two network interfaces to be active and standby for each other. The BMC dedicated network interface is set as the active and the shared network interface is set as the standby by default. The same network configuration is used. When the network links are normal, the management unit only enables the active network port for network communication. When the active network port hardware link is interrupted or the device fails, the active and standby network interfaces are swapped, and the original standby network interface is upgraded to the active network interface. After the active BMC dedicated port returns to normal, the standby state is restored to the active state. The network interfaces are in a hot standby state with each other.
[0046] Network interface aggregation management means: the management unit combines the BMC dedicated network interface and the shared network interface into an aggregation group. The two network interfaces work together in this aggregation group and use the same network configuration. In this way, the management unit only has one network port working. The outgoing traffic from the management unit is sent through the network interface according to the configured policy mode, such as giving priority to the BMC dedicated network interface or load balancing between the two network interfaces. This achieves the purpose of expanding the network capacity.
[0047] A server BMC dynamic network linkage management method of the present invention, such as Figure 2 As shown, the steps of implementing the method include:
[0048] Prerequisite: The computing unit has a sharable onboard network interface or an external network interface.
[0049] Step 1: Start the network management service when BMC starts.
[0050] Step 2: Initially configure the shared network interface and the BMC dedicated network interface to be in active / standby mode, and use the active network interface configuration for network configuration.
[0051] Step 3: Start the BMC network monitoring service to monitor the virtual media service and network status.
[0052] Step 4: In the active-standby mode, when the active network interface is monitored to be abnormal, if the standby network interface is in normal state, active-standby switching is performed and the standby network interface is upgraded to active; if the standby network interface is abnormal, switch the shared network interface to the available network interface and return to step 3.
[0053] Step 5: When the data flow of the main network interface is detected to be too large and the load is high, the current active-standby mode is automatically switched to the aggregation mode, and the main and standby network cards work at the same time to improve the network throughput. When the network flow is normal or the virtual mount service is exited, the network active-standby settings are restored.
[0054] Step 6: When the BMC virtual media is mounted or the KVM function is used, the current active / standby mode is automatically switched to the aggregation mode to expand the network capacity.
[0055] Step 7: When the network card data flow returns to normal or the virtual media mounting and KVM function are finished, restore the network configuration to the active / standby mode.
[0056] The management system of the present invention is as follows Figure 1 As shown, the server includes two units: a computing unit and a BMC management unit. The computing unit is used for the main computing of the server, and the management unit is used for out-of-band management of the server.
[0057] The server BMC dynamic network linkage management system includes a system status detection module, a network status monitoring module, a BMC information interaction module, a network configuration policy library, a network mode switching module, and a system information interaction module.
[0058] The computing unit includes a hardware layer, a firmware layer, and an operating system layer. The computing unit hardware layer realizes the physical connection channel with the onboard network interface or the external network interface; the computing unit firmware layer realizes the interaction with the computing unit network driver; the computing unit operating system layer realizes the network protocol stack; the operating system layer is configured with a system status monitoring module, a network status detection module, and a BMC information interaction module.
[0059] Through the system status monitoring module, the real-time operation status of the computing unit and the management unit can be monitored;
[0060] Through the network status detection module, the status and flow of the onboard network interface or the external network interface are monitored, and the network connection status and rate of the management unit itself are monitored;
[0061] Through the BMC information interaction module, the real-time status of the host, network card status, and traffic data can be uploaded to the BMC management unit module.
[0062] The management unit includes a hardware layer, a firmware layer, and an operating system layer. The hardware connection of the onboard network interface and the external network interface is realized through the management unit hardware layer; the interaction with the shared network interface and the BMC dedicated network interface driver unit is realized through the management unit firmware layer; the network protocol stack with the shared network interface and the BMC dedicated network interface is realized through the management unit operating system layer; the operating system layer is configured with a network configuration policy library, a network mode switching module, and a system information interaction module. The network configuration policy library is used to store policy modes applicable to the computing unit and the management unit.
[0063] The network mode switching module is used for: according to the policy mode, the management unit sets the operation status of the shared network interface and the BMC dedicated network interface to the master / slave or aggregation mode accordingly.
[0064] The system information interaction module is used to interact with the BMC information interaction module to obtain the status data detected by the system status monitoring module and the network status detection module. Among them, the policy modes of the network configuration policy library include:
[0065]
[0066]
[0067] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A server BMC dynamic network linkage management method, characterized in that: include: Step 1: Virtualize the shared network interface and BMC dedicated network interface firmware into one logical network interface, and use the network configuration of one of them; Step 2: During initial setup, set the shared network interface and the BMC dedicated network interface to the master / slave mode, that is, one of them is the master network interface and the other is the backup network interface, and the network configuration uses the master network interface configuration; Step 3: Start the BMC network monitoring service to monitor the virtual media service and network status; Step 4: When the monitoring detects that the main network interface is abnormal, if the backup network interface is in normal state, the main and backup network interfaces are switched, and the backup network interface is upgraded to the main one; if the backup network interface is abnormal, switch the shared network interface to other available network ports, and continue the monitoring described in step 3; Step 5: When the network traffic is detected to exceed the set value, the current active / standby mode is switched to the aggregation mode, that is, the active and standby network interfaces work at the same time; when the network traffic is normal, the network active / standby settings are restored; Step 6: When the virtual media service or KVM function starts to be used, switch the current active / standby mode to the aggregation mode; Step 7: When the virtual media is mounted and the KVM function is no longer used, restore the network configuration to active / standby mode.
2. A management system for implementing the server BMC dynamic network linkage management method according to claim 1, characterized in that: Configure computing units and BMC management units in the server; The computing unit is equipped with a system status monitoring module, a network status detection module, and a BMC information interaction module; The BMC management unit is configured with a network configuration policy library, a network mode switching module and a system information interaction module; The system status monitoring module is used to monitor the real-time operating status of the computing unit and the management unit; The network status detection module is used to detect the status and network flow data of the onboard network interface and / or the status and network flow data of the external network interface; The BMC information interaction module is used to upload the real-time status of the computing unit, the network interface status, and the flow data to the BMC management unit; The system information interaction module is used to interact with the BMC information interaction module to obtain status data detected by the system status monitoring module and the network status detection module; The network configuration policy library is used to store network configuration policy modes; The network mode switching module is used to: according to the network configuration strategy mode, the management unit sets the master / slave mode or the aggregation mode of the shared network interface and the BMC dedicated network interface accordingly; The network configuration strategy modes include: when the network packet loss rate is higher than the set value, the network delay exceeds the set value, or the network is interrupted, the primary and backup networks are switched to the backup network interface; The network configuration policy mode also includes: when the BMC downloads the operating system image, the virtual media mounting function is used, or the main network port traffic is higher than the set value, switching to the aggregation mode.
3. A server BMC dynamic network linkage management system as claimed in claim 2, characterized in that: When the network traffic returns to normal, the active / standby state is restored and the active network interface is used.
