Baseboard management controller interface processing method and application device thereof
Through the management interface between the substrate controller and the processor, the initial configuration file is obtained and the small switching processing unit is managed through the heartbeat signal configuration, which solves the problem of BMC replacement caused by different OS versions, and realizes the function of autonomous configuration and automatic recovery of the default mode.
Patent Information
- Application Number
- PCT/CN2024/122305
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-29
- Filing Date
- 2024-09-29
- Publication Date
- 2025-07-03
AI Technical Summary
In white box switches and server systems, the OS versions of the CPU plane and the BMC plane are different, resulting in a lot of workload when replacing the BMC, which is especially troublesome when replacing the CPU side version.
Through the management interface between the substrate controller and the processor, the initial configuration file is obtained, the default mode is configured, and the management small switching processing unit is configured through the heartbeat trigger signal to carry configuration information. It supports multiple virtual LAN interfaces and physical interface states, and provides a timeout mechanism to automatically restore the default mode.
It realizes that under different OS versions, the substrate controller can start and configure the small switching processing unit normally, reduces the workload during BMC replacement, and supports independent configuration and automatic recovery of the default mode.
Smart Images

Figure CN2024122305_03072025_PF_FP_ABST
Abstract
Description
A substrate controller interface processing method and its application device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on December 29, 2023, with application number 202311867391.2, and application name “A substrate controller interface processing method and its application device”, all contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the technical field of computer systems, and in particular to a baseboard controller interface processing method, a baseboard controller, a processor, a white box switch, an electronic device, and a non-volatile readable storage medium. Background Art
[0004] A Baseboard Management Controller (BMC) is a system independent of the CPU (Central Processing Unit) and is typically used to manage server hardware. A typical BMC is an ARM core running a Linux-based operating system (OS). With the widespread adoption of white-box switches in data centers, many switches are also using BMCs to manage peripherals such as fans and power supplies.
[0005] The difference is that switch systems often combine the CPU management port and the BMC management port into one, and then use a small switching processing unit internally to connect the CPU management port and the BMC management port, so that the CPU and BMC planes of the device can be managed using the same network system. In contrast, in common server systems, the CPU plane network port and the BMC plane network port are usually independent. However, there are currently the following defects:
[0006] Whether it's a white-box switch system or a server system, the CPU-side OS may not be the fixed version of a commercial machine. Instead, it could be a user's OS or a test OS for production. These OSes may have different support for sub-interfaces and configuration requirements for managing small switching processing units. Therefore, replacing the BMC version will obviously increase the workload significantly, which is relatively troublesome for replacing the CPU-side version, a common scenario for white-box switches.
[0007] Summary of the Invention
[0008] In view of the above problems, embodiments of the present application are proposed to provide a baseboard controller interface processing method, baseboard controller, processor, white box switch, electronic device and non-volatile readable storage medium that overcome the above problems or at least partially solve the above problems.
[0009] To solve the above problems, in a first aspect of the present application, an embodiment of the present application discloses a baseboard controller interface processing method, which is applied to a baseboard controller. The baseboard controller and a processor are commonly connected to a management small switching processing unit, and a management interface is provided between the baseboard controller and the processor. The method includes:
[0010] In response to the startup instruction, obtaining an initial configuration file;
[0011] Configure the initial configuration file and execute the default mode;
[0012] In the default mode, the heartbeat trigger signal of the processor is received through the management interface; the heartbeat trigger signal carries the configuration information;
[0013] Configure and manage the small switching processing unit according to the configuration information.
[0014] Optionally, the management small switch processing unit has multiple virtual local area network interfaces; the configuration information includes virtual local area network interface identifiers; and the steps of configuring the management small switch processing unit according to the configuration information include:
[0015] Determining a target virtual local area network interface from a plurality of virtual local area network interfaces according to the virtual local area network interface identifier;
[0016] Run the target VLAN interface.
[0017] Optionally, the management small switch processing unit is connected to the physical interface; the configuration information includes a target state and execution data corresponding to the target state; and the step of configuring the management small switch processing unit according to the configuration information includes:
[0018] Check the interface status of the physical interface;
[0019] When the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0020] Optionally, the method further comprises:
[0021] When no heartbeat trigger signal is received within a preset aging time, determining that the processor is in a restart state;
[0022] In response to the processor being in a restart state, an initial configuration file is configured.
[0023] Optionally, the method further comprises:
[0024] When a heartbeat trigger signal is received within the preset aging time, a response signal is fed back to the processor and the preset aging time is updated.
[0025] In a second aspect of the present application, an embodiment of the present application discloses a baseboard controller interface processing method, which is applied to a processor, wherein the processor and the baseboard controller are commonly connected to a management small switch processing unit, and the management small switch processing unit is connected to a physical interface; the baseboard controller is used to respond to a startup instruction, obtain an initial configuration file; configure the initial configuration file, and execute a default mode; the method includes:
[0026] Receive input configuration data;
[0027] generating configuration information according to the configuration data;
[0028] Based on the preset heartbeat timing, a heartbeat trigger signal is sent to the baseboard controller through the management interface, and the heartbeat trigger signal carries configuration information; the baseboard controller is also used to receive the configuration information and configure the management small switching processing unit according to the configuration information.
[0029] Optionally, the configuration data includes a virtual local area network interface identifier; and the step of generating configuration information according to the configuration data includes:
[0030] The virtual local area network interface identifier is converted to generate configuration information; the baseboard controller is used to determine the target virtual local area network interface from multiple virtual local area network interfaces according to the virtual local area network interface identifier; and operate the target virtual local area network interface.
[0031] Optionally, the management small switching processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of generating configuration information according to the configuration data includes:
[0032] The target state and the execution data corresponding to the target state are combined to generate configuration information; the baseboard controller is used to detect the interface state of the physical interface; when the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0033] Optionally, the method further comprises:
[0034] When no response signal from the baseboard controller to the heartbeat trigger signal is received within a preset aging time, it is determined that the baseboard controller is in a restart state;
[0035] In response to the processor being in the reboot state, configuration information is sent to the baseboard controller.
[0036] Optionally, the method further comprises:
[0037] When a response signal is received within the preset aging time, the preset aging time is updated.
[0038] In a third aspect of the present application, an embodiment of the present application discloses a baseboard controller interface processing method, which is applied to a white box switch. The white box switch includes a baseboard controller and a processor. The baseboard controller and the processor are jointly connected to a management small switch processing unit, and the management small switch processing unit is connected to a physical interface. The method includes:
[0039] The baseboard controller obtains an initial configuration file in response to the startup instruction;
[0040] The baseboard controller configures the initial configuration file and executes the default mode;
[0041] The processor sends and receives input configuration data;
[0042] The processor generates configuration information based on the configuration data;
[0043] The processor sends a heartbeat trigger signal to the baseboard controller through the management interface based on the preset heartbeat timing. The heartbeat trigger signal carries configuration information.
[0044] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information.
[0045] Optionally, the step of the processor generating configuration information according to the configuration data includes:
[0046] Converting the virtual local area network interface identifier to generate configuration information;
[0047] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0048] According to the virtual local area network interface identifier, a target virtual local area network interface is determined from the multiple virtual local area network interfaces; and the target virtual local area network interface is operated.
[0049] Optionally, the management small switch processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of the processor generating configuration information according to the configuration data includes:
[0050] Combining the target state and the execution data corresponding to the target state to generate configuration information;
[0051] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0052] Detect the interface status of the physical interface; when the interface status matches the target status, the configuration management small switching processing unit runs the execution data.
[0053] Optionally, the method further comprises:
[0054] When the processor does not receive a response signal from the baseboard controller in response to the heartbeat trigger signal within a preset aging time, it determines that the baseboard controller is in a restart state;
[0055] The processor sends configuration information to the baseboard controller in response to the processor being in a reboot state;
[0056] When the processor receives the response signal within the preset aging time, it updates the preset aging time.
[0057] Optionally, the method further comprises:
[0058] When the baseboard controller does not receive a heartbeat trigger signal within a preset aging time, it determines that the processor is in a restart state;
[0059] The baseboard controller configures an initial configuration file in response to the processor being in a restart state;
[0060] When the baseboard controller receives the heartbeat trigger signal within the preset aging time, it feeds back a response signal to the processor and updates the preset aging time.
[0061] In a fourth aspect of the present application, an embodiment of the present application discloses a baseboard controller, wherein the baseboard controller and a processor are jointly connected to a management small switching processing unit, and a management interface is provided between the baseboard controller and the processor; the baseboard controller is configured to perform the following steps:
[0062] In response to the startup instruction, obtaining an initial configuration file;
[0063] Configure the initial configuration file and execute the default mode;
[0064] In the default mode, the heartbeat trigger signal of the processor is received through the management interface; the heartbeat trigger signal carries the configuration information;
[0065] Configure and manage the small switching processing unit according to the configuration information.
[0066] In a fifth aspect of the present application, an embodiment of the present application discloses a processor, wherein the processor and a baseboard controller are commonly connected to a management small switch processing unit, and the management small switch processing unit is connected to a physical interface; the baseboard controller is configured to obtain an initial configuration file in response to a startup instruction; configure the initial configuration file and execute a default mode; and the processor is configured to execute the following steps:
[0067] Receive input configuration data;
[0068] generating configuration information according to the configuration data;
[0069] Based on the preset heartbeat timing, a heartbeat trigger signal is sent to the baseboard controller through the management interface, and the heartbeat trigger signal carries configuration information; the baseboard controller is also used to receive the configuration information and configure the management small switching processing unit according to the configuration information.
[0070] In a sixth aspect of the present application, an embodiment of the present application discloses a white box switch, the white box switch including a baseboard controller and a processor, the baseboard controller and the processor being jointly connected to a management small switch processing unit, and the management small switch processing unit being connected to a physical interface; the white box switch is configured to perform the following steps:
[0071] The baseboard controller obtains an initial configuration file in response to the startup instruction;
[0072] The baseboard controller configures the initial configuration file and executes the default mode;
[0073] The processor sends and receives input configuration data;
[0074] The processor generates configuration information based on the configuration data;
[0075] The processor sends a heartbeat trigger signal to the baseboard controller through the management interface based on the preset heartbeat timing. The heartbeat trigger signal carries configuration information.
[0076] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information.
[0077] In the seventh aspect of the present application, an embodiment of the present application further discloses an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the above-mentioned substrate controller interface processing method are implemented.
[0078] In the eighth aspect of the present application, the embodiments of the present application further disclose a non-volatile readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned substrate controller interface processing method are implemented.
[0079] The embodiments of the present application include the following advantages:
[0080] The embodiment of the present application obtains an initial configuration file in response to a startup instruction; configures the initial configuration file and executes a default mode; in the default mode, receives a heartbeat trigger signal from the processor through a management interface; the heartbeat trigger signal carries configuration information; and configures and manages the small switching processing unit based on the configuration information. The baseboard controls normal startup in the default operation mode and receives processor configuration information, allowing normal operation even in situations where the processor side has not been adapted. Configuration can be performed on demand based on heartbeat communication, and a timeout mechanism is provided to automatically restore the default mode after a timeout. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] FIG1 is a flowchart of an embodiment of a substrate controller interface processing method of the present application;
[0082] FIG2 is a flowchart of another embodiment of a substrate controller interface processing method of the present application;
[0083] FIG3 is a flowchart of another embodiment of a baseboard controller interface processing method of the present application;
[0084] FIG4 is a schematic diagram of an example of a baseboard controller interface processing method of the present application;
[0085] FIG5 is a flowchart of the heartbeat communication steps of an example of a baseboard controller interface processing method of the present application;
[0086] FIG6 is a second flowchart of the heartbeat communication steps of an example of a baseboard controller interface processing method of the present application;
[0087] FIG7 is a structural block diagram of an electronic device provided in an embodiment of the present application;
[0088] FIG8 is a structural block diagram of a storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0089] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0090] 1 , a flowchart illustrating an embodiment of a baseboard controller interface processing method of the present application is shown. The baseboard controller interface processing method is applied to a baseboard controller. The baseboard controller and a processor are both connected to a management small switching processing unit. A management interface is provided between the baseboard controller and the processor. The baseboard controller interface processing method may specifically include the following steps:
[0091] Step 101, in response to a startup instruction, obtaining an initial configuration file;
[0092] When the BMC starts normally, it can obtain the initial configuration file from the preset storage space in response to the startup instruction. The above-mentioned processor can be specifically a central processing unit, that is, a CPU.
[0093] Step 102: Configure the initial configuration file and execute the default mode;
[0094] The BMC executes the initial configuration file so that it can execute the default mode itself, thereby being able to run the default mode regardless of whether the CPU is paired or not.
[0095] Step 103: In the default mode, a heartbeat trigger signal of the processor is received through the management interface; the heartbeat trigger signal carries configuration information;
[0096] In the default mode, a heartbeat trigger signal sent by the processor can be received through the management interface. The heartbeat trigger signal carries configuration information. Each heartbeat trigger signal can carry the same configuration information or different configuration information, which is not specifically limited in the embodiments of the present application.
[0097] Step 104: configure and manage the small switching processing unit according to the configuration information.
[0098] Then, after receiving the configuration information, the configuration information may be used to configure the management small switch processing unit so that the BMC can be used in different interface processing modes.
[0099] In an optional embodiment of the present application, the management small switching processing unit has multiple virtual LAN interfaces; the configuration information includes a virtual LAN interface identifier; the steps of configuring the management small switching processing unit according to the configuration information include: determining a target virtual LAN interface from multiple virtual LAN interfaces according to the virtual LAN interface identifier; and operating the target virtual LAN interface.
[0100] In an embodiment of the present application, the configuration information may include a virtual local area network (VLAN) interface identifier, and a VLAN interface matching the VLAN interface identifier is determined from among multiple VLAN interfaces of the management small switching processing unit based on the VLAN interface identifier as a target VLAN interface. The target VLAN interface is operated to perform information processing.
[0101] In an optional embodiment of the present application, the management small switching processing unit is connected to the physical interface; the configuration information includes a target state and execution data corresponding to the target state; the steps of configuring the management small switching processing unit according to the configuration information include: detecting the interface state of the physical interface; when the interface state matches the target state, configuring the management small switching processing unit to run the execution data.
[0102] In an embodiment of the present application, the management switching processing unit is connected to a physical interface, and the configuration information includes a target state and execution data corresponding to the target state. The BMC detects the interface state of the physical interface and determines whether the interface state of the physical interface matches the target state in the configuration information. If the interface state matches the target state, the execution data corresponding to the target state can be executed to perform the corresponding operation on the interface.
[0103] In some optional embodiments of the present application, the method further includes: when no heartbeat trigger signal is received within a preset aging time, determining that the processor is in a restart state; and configuring an initial configuration file in response to the processor being in the restart state.
[0104] During BMC operation, there is a pre-set aging time. Due to the heartbeat communication mechanism between the BMC and the CPU, if no heartbeat trigger signal is received within the preset aging time, it can be determined that the CPU is in a reboot state. In response to the processor being in a reboot state, the initial configuration file can be configured and the default mode of operation can be restored.
[0105] In some optional embodiments of the present application, the method further includes: when a heartbeat trigger signal is received within a preset aging time, feeding back a response signal to the processor and updating the preset aging time.
[0106] When a heartbeat trigger signal is received within the preset aging time, that is, the CPU is online, a response signal can be fed back to the CPU, and the preset aging time is updated to enter the next heartbeat cycle detection.
[0107] 2 , there is shown a flowchart of another embodiment of a baseboard controller interface processing method of the present application. The baseboard controller interface processing method is applied to a processor. The processor and the baseboard controller are commonly connected to a management small switch processing unit, and the management small switch processing unit is connected to a physical interface. The baseboard controller is used to respond to a startup instruction, obtain an initial configuration file, configure the initial configuration file, and execute a default mode. The baseboard controller interface processing method includes:
[0108] Step 201, receiving input configuration data;
[0109] The processor may be specifically a central processing unit, i.e., a CPU. The CPU may receive configuration data input by a user or other device.
[0110] Step 202, generating configuration information based on the configuration data;
[0111] Convert the configuration data into the message format for interacting with the BMC to generate configuration information.
[0112] Step 203: Based on the preset heartbeat timing, a heartbeat trigger signal is sent to the baseboard controller through the management interface. The heartbeat trigger signal carries configuration information. The baseboard controller is also used to receive the configuration information and configure the small switching processing unit according to the configuration information.
[0113] During the preset heartbeat timing, a heartbeat trigger signal is periodically sent to the BMC through the management interface, and the heartbeat trigger signal carries configuration information and is sent to the BMC. After receiving the configuration information, the BMC configures the management small switching processing unit according to the configuration information.
[0114] In some optional embodiments of the present application, the configuration data includes a virtual LAN interface identifier; the step of generating configuration information based on the configuration data includes: converting the virtual LAN interface identifier to generate the configuration information; the baseboard controller is used to determine a target virtual LAN interface from multiple virtual LAN interfaces based on the virtual LAN interface identifier; and running the target virtual LAN interface.
[0115] In an embodiment of the present application, the input configuration data may include a virtual local area network (VLAN) interface identifier. The virtual local area network (VLAN) interface identifier is converted into configuration information in a message format. The BMC determines a target VLAN interface from a plurality of VLAN interfaces based on the virtual local area network (VLAN) interface identifier and operates the target VLAN interface.
[0116] In some optional embodiments of the present application, a management small switching processing unit is connected to a physical interface; the configuration data includes a target state and execution data corresponding to the target state; the step of generating configuration information based on the configuration data is: combining the target state and the execution data corresponding to the target state to generate configuration information; the baseboard controller is used to detect the interface state of the physical interface; when the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0117] In an embodiment of the present application, configuration data includes a target state and execution data corresponding to the target state. The target state and the execution data corresponding to the target state can be combined according to the type of the target state to generate configuration information. The BMC can detect the interface state of the physical interface; when the interface state matches the target state, the configuration management small switching processing unit executes the execution data.
[0118] In some optional embodiments of the present application, the method also includes: when no response signal is received from the baseboard controller to the heartbeat trigger signal feedback within a preset aging time, determining that the baseboard controller is in a restart state; in response to the processor being in the restart state, sending configuration information to the baseboard controller.
[0119] In an embodiment of the present application, a pre-set aging time is set during CPU operation. Because a heartbeat communication mechanism exists between the BMC and the CPU, if no response signal is received from the BMC in response to a heartbeat trigger signal within the pre-set aging time, the BMC can be determined to be in a reboot state. In response to the processor being in the reboot state, initial configuration information can be sent to the BMC. The BMC can configure the initial configuration file and start operation in default mode.
[0120] In some optional embodiments of the present application, the method further includes: when a response signal is received within a preset aging time, updating the preset aging time.
[0121] After receiving the response signal fed back by the BMC, it can be determined that the BMC is online, the preset aging time can be updated, and the next heartbeat cycle can be entered.
[0122] 3 , there is shown a flowchart of another embodiment of a baseboard controller interface processing method of the present application. The baseboard controller interface processing method is applied to a white box switch. The white box switch includes a baseboard controller and a processor. The baseboard controller and the processor are both connected to a management small switch processing unit. The management small switch processing unit is connected to a physical interface. The method includes:
[0123] Step 301: The baseboard controller obtains an initial configuration file in response to a startup instruction;
[0124] Step 302: The baseboard controller configures an initial configuration file and executes a default mode;
[0125] Step 303: The processor sends the received input configuration data;
[0126] Step 304: the processor generates configuration information based on the configuration data;
[0127] In step 305, the processor sends a heartbeat trigger signal to the baseboard controller through the management interface based on the preset heartbeat timing, where the heartbeat trigger signal carries configuration information;
[0128] Step 306 : The baseboard controller configures and manages the small switch processing unit according to the configuration information in the default mode.
[0129] In some optional embodiments of the present application, the step of the processor generating configuration information according to the configuration data includes:
[0130] Converting the virtual local area network interface identifier to generate configuration information;
[0131] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0132] According to the virtual local area network interface identifier, a target virtual local area network interface is determined from the multiple virtual local area network interfaces; and the target virtual local area network interface is operated.
[0133] In some optional embodiments of the present application, the management small switch processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of the processor generating configuration information according to the configuration data includes:
[0134] Combining the target state and the execution data corresponding to the target state to generate configuration information;
[0135] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0136] Detect the interface status of the physical interface; when the interface status matches the target status, the configuration management small switching processing unit runs the execution data.
[0137] In some optional embodiments of the present application, the method further includes:
[0138] When the processor does not receive a response signal from the baseboard controller in response to the heartbeat trigger signal within a preset aging time, it determines that the baseboard controller is in a restart state;
[0139] The processor sends configuration information to the baseboard controller in response to the processor being in a reboot state;
[0140] When the processor receives the response signal within the preset aging time, it updates the preset aging time.
[0141] In an optional embodiment of the present invention, the method further includes:
[0142] When the baseboard controller does not receive a heartbeat trigger signal within a preset aging time, it determines that the processor is in a restart state;
[0143] The baseboard controller configures an initial configuration file in response to the processor being in a restart state;
[0144] When the baseboard controller receives the heartbeat trigger signal within the preset aging time, it feeds back a response signal to the processor and updates the preset aging time.
[0145] For the specific implementation process, please refer to the above embodiments, which will not be described in detail in the embodiments of this application.
[0146] The following example illustrates this:
[0147] Refer to Figure 4, which shows the connection relationship between the CPU and BMC. It is aimed at: 1. Making the BMC conform to the common usage mode in the industry by default, that is, not enabling the restful (idle) communication mode. When the physical port is down (offline), the management ports of the CPU and BMC are also shut down (closed). 2. Managing the small switching processing unit, setting it to what state, whether it has a restful dedicated VLAN (REST VLAN channel), which VLAN is used as the REST VLAN, which is used as the VLAN for management (common VLAN channel), whether to notify the CPU when the physical port is up (enabled) / down, and whether to set the management ports of the CPU and BMC up / down can be selected by the CPU. 3. When the CPU-side OS is replaced and the BMC is restarted, it can still enter the state expected by the OS.
[0148] The following technical measures are proposed to address the above problems:
[0149] 1. Set the default mode when the BMC is started. For example, do not set a VLAN on the management small switching processing unit. When the physical port goes up / down, directly set the CPU and BMC management port up / down.
[0150] 2. The BMC provides an IPMI (Intelligent platform management interface) management interface. The CPU can call this interface to set the VLAN of the small switching processing unit, allowing the CPU-side OS to independently set the desired small switching processing unit status, thereby achieving the purpose of allowing users with customized needs to independently set the desired sub-interface. For example, the REST VLAN can be set to 4094, and the switching processing unit ports where the CPU and BMC are located will be added to VLAN4094 (channel name) in a tagged manner. The common management sub-interface uses vlan1 (channel name), and the VLAN of the external network port is set to untagged VLAN 1 (channel name), and the VLAN connected to the CPU port is set to tagged VLAN 1 - that is, the common VLAN is set to vlan 1.
[0151] 3. The BMC provides an IPMI management interface and / or a RESTful management interface. Select whether the BMC directly disconnects the network management port between the BMC and the CPU or simply logs the connection when it detects a physical port is up / down.
[0152] 4. The BMC supports setting which syslog (system log) can be sent to the CPU through the RESTful interface. The BMC ensures that such information can be synchronized to the CPU in the format specified by the CPU.
[0153] 5. By adding a plug-in to the CPU's syslog, the CPU's log file records the above log information in the local status database. Based on the changes in the status database, the CPU decides whether to shut down the network management port or just the corresponding sub-interface.
[0154] 6. IPMI heartbeat communication is provided between the BMC and the CPU. The heartbeat timeout is used to identify whether the other end has restarted. The heartbeat is initiated by the CPU, and the BMC responds after receiving it. If the BMC detects that the other end has restarted, it will restore the above status (including other CPU status settings for the BMC that can be expanded in the future) to the default status, thereby ensuring that the BMC works in the default status every time the CPU restarts. If the CPU detects that the other end has restarted, it will reset the expected status to the BMC. Another way to maintain the heartbeat is for the CPU to periodically repeat sending relevant settings. The BMC does not respond to settings that are consistent with the current configuration, but only updates its own aging time. This can omit the CPU's aging processing on the BMC side.
[0155] 7. The default aging time on the BMC is 10 seconds. It can be set by the CPU to a desired value (generally three times the heartbeat interval). The CPU aging time is specified by the CPU application. The BMC starts or restarts the timer after receiving the setting or heartbeat message from the CPU.
[0156] Please refer to Figures 5 and 6.
[0157] For example, on the CPU side, set the REST VLAN to 4094 every 3 seconds after startup. This means that the ports connected to the CPU and BMC on the small switching processing unit are tagged and added to VLAN 4094. The subinterface (eth0.4094) of VLAN 4094, with an IP address of 240.127.1.2 / 30 (the BMC network management port (using eth0 as an example), has an IP address of 240.127.1.2 and a subnet mask of 255.255.255.252, and the Common VLAN is set to 1. This means that the external physical ports on the small switching processing unit are added to VLAN 1 in untagged mode, and the CPU and BMC ports are added to VLAN 1 in tagged mode. The BMC is configured to only log the failure of the external physical port, without shutting down the CPU and BMC ports. The aging time on the BMC side is set to 9 seconds (three times the scheduled transmission time). The BMC starts timing when it receives a command. If the setting action is inconsistent with the current state, it executes the setting command and updates the timer. If the setting action is consistent with the current state, it only updates the timer. If no command is received within 9 seconds, the relevant settings are restored to the default value.
[0158] If the CPU uses an independent heartbeat mode, the above properties are set once after the CPU starts (after receiving a response to the first heartbeat), and then heartbeat messages are sent regularly. The BMC responds after receiving them. If the BMC does not receive a heartbeat message within 9 seconds, the relevant settings are restored to the default values. If the CPU does not receive a response for three consecutive times, it is considered that the BMC has restarted. After receiving a response to the next heartbeat, the above properties are reset.
[0159] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0160] The present application also discloses a baseboard controller. The baseboard controller and the processor are connected to a management small switching processing unit. A management interface is provided between the baseboard controller and the processor. The baseboard controller is configured to perform the following steps:
[0161] In response to the startup instruction, obtaining an initial configuration file;
[0162] Configure the initial configuration file and execute the default mode;
[0163] In the default mode, the heartbeat trigger signal of the processor is received through the management interface; the heartbeat trigger signal carries the configuration information;
[0164] Configure and manage the small switching processing unit according to the configuration information.
[0165] Optionally, the management small switch processing unit has multiple virtual local area network interfaces; the configuration information includes virtual local area network interface identifiers; and the steps of configuring the management small switch processing unit according to the configuration information include:
[0166] Determining a target virtual local area network interface from a plurality of virtual local area network interfaces according to the virtual local area network interface identifier;
[0167] Run the target VLAN interface.
[0168] Optionally, the management small switch processing unit is connected to the physical interface; the configuration information includes a target state and execution data corresponding to the target state; and the step of configuring the management small switch processing unit according to the configuration information includes:
[0169] Check the interface status of the physical interface;
[0170] When the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0171] Optionally, the method further comprises:
[0172] When no heartbeat trigger signal is received within a preset aging time, determining that the processor is in a restart state;
[0173] In response to the processor being in a restart state, an initial configuration file is configured.
[0174] Optionally, the method further comprises:
[0175] When a heartbeat trigger signal is received within the preset aging time, a response signal is fed back to the processor and the preset aging time is updated.
[0176] The present application also discloses a processor, wherein the processor and a baseboard controller are connected to a management small switch processing unit, and the management small switch processing unit is connected to a physical interface; the baseboard controller is configured to obtain an initial configuration file in response to a startup instruction; configure the initial configuration file and execute a default mode; and the processor is configured to execute the following steps:
[0177] Receive input configuration data;
[0178] generating configuration information according to the configuration data;
[0179] Based on the preset heartbeat timing, a heartbeat trigger signal is sent to the baseboard controller through the management interface, and the heartbeat trigger signal carries configuration information; the baseboard controller is also used to receive the configuration information and configure the management small switching processing unit according to the configuration information.
[0180] Optionally, the configuration data includes a virtual local area network interface identifier; and the step of generating configuration information according to the configuration data includes:
[0181] The virtual local area network interface identifier is converted to generate configuration information; the baseboard controller is used to determine the target virtual local area network interface from multiple virtual local area network interfaces according to the virtual local area network interface identifier; and operate the target virtual local area network interface.
[0182] Optionally, the management small switching processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of generating configuration information according to the configuration data includes:
[0183] The target state and the execution data corresponding to the target state are combined to generate configuration information; the baseboard controller is used to detect the interface state of the physical interface; when the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0184] Optionally, the method further comprises:
[0185] When no response signal from the baseboard controller to the heartbeat trigger signal is received within a preset aging time, it is determined that the baseboard controller is in a restart state;
[0186] In response to the processor being in the reboot state, configuration information is sent to the baseboard controller.
[0187] Optionally, the method further comprises:
[0188] When a response signal is received within the preset aging time, the preset aging time is updated.
[0189] The present application also discloses a white-box switch, which includes a baseboard controller and a processor. The baseboard controller and the processor are connected to a management small switch processing unit, which is connected to a physical interface. The white-box switch is configured to perform the following steps:
[0190] The baseboard controller obtains an initial configuration file in response to the startup instruction;
[0191] The baseboard controller configures the initial configuration file and executes the default mode;
[0192] The processor sends and receives input configuration data;
[0193] The processor generates configuration information based on the configuration data;
[0194] The processor sends a heartbeat trigger signal to the baseboard controller through the management interface based on the preset heartbeat timing. The heartbeat trigger signal carries configuration information.
[0195] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information.
[0196] Optionally, the step of the processor generating configuration information according to the configuration data includes:
[0197] Converting the virtual local area network interface identifier to generate configuration information;
[0198] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0199] According to the virtual local area network interface identifier, a target virtual local area network interface is determined from the multiple virtual local area network interfaces; and the target virtual local area network interface is operated.
[0200] Optionally, the management small switch processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of the processor generating configuration information according to the configuration data includes:
[0201] Combining the target state and the execution data corresponding to the target state to generate configuration information;
[0202] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0203] Detect the interface status of the physical interface; when the interface status matches the target status, the configuration management small switching processing unit runs the execution data.
[0204] Optionally, the method further comprises:
[0205] When the processor does not receive a response signal from the baseboard controller in response to the heartbeat trigger signal within a preset aging time, it determines that the baseboard controller is in a restart state;
[0206] The processor sends configuration information to the baseboard controller in response to the processor being in a reboot state;
[0207] When the processor receives the response signal within the preset aging time, it updates the preset aging time.
[0208] Optionally, the method further comprises:
[0209] When the baseboard controller does not receive a heartbeat trigger signal within a preset aging time, it determines that the processor is in a restart state;
[0210] The baseboard controller configures an initial configuration file in response to the processor being in a restart state;
[0211] When the baseboard controller receives the heartbeat trigger signal within the preset aging time, it feeds back a response signal to the processor and updates the preset aging time.
[0212] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0213] 7 , an embodiment of the present application further provides an electronic device, including:
[0214] The processor 701 and the storage medium 702 store a computer program executable by the processor 701. When the electronic device is running, the processor 701 executes the computer program to perform the substrate controller interface processing method according to any one of the embodiments of the present invention.
[0215] First, a baseboard controller interface processing method is applied to a baseboard controller. The baseboard controller and the processor are connected to a management small switching processing unit. A management interface is provided between the baseboard controller and the processor. The method includes:
[0216] In response to the startup instruction, obtaining an initial configuration file;
[0217] Configure the initial configuration file and execute the default mode;
[0218] In the default mode, the heartbeat trigger signal of the processor is received through the management interface; the heartbeat trigger signal carries the configuration information;
[0219] Configure and manage the small switching processing unit according to the configuration information.
[0220] Optionally, the management small switch processing unit has multiple virtual local area network interfaces; the configuration information includes virtual local area network interface identifiers; and the steps of configuring the management small switch processing unit according to the configuration information include:
[0221] Determining a target virtual local area network interface from a plurality of virtual local area network interfaces according to the virtual local area network interface identifier;
[0222] Run the target VLAN interface.
[0223] Optionally, the management small switch processing unit is connected to the physical interface; the configuration information includes a target state and execution data corresponding to the target state; and the step of configuring the management small switch processing unit according to the configuration information includes:
[0224] Check the interface status of the physical interface;
[0225] When the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0226] Optionally, the method further comprises:
[0227] When no heartbeat trigger signal is received within a preset aging time, determining that the processor is in a restart state;
[0228] In response to the processor being in a restart state, an initial configuration file is configured.
[0229] Optionally, the method further comprises:
[0230] When a heartbeat trigger signal is received within the preset aging time, a response signal is fed back to the processor and the preset aging time is updated.
[0231] Second, a baseboard controller interface processing method is applied to a processor, wherein the processor and the baseboard controller are jointly connected to a management small switch processing unit, and the management small switch processing unit is connected to a physical interface; the baseboard controller is used to respond to a startup instruction, obtain an initial configuration file; configure the initial configuration file, and execute a default mode; the method includes:
[0232] Receive input configuration data;
[0233] generating configuration information according to the configuration data;
[0234] Based on the preset heartbeat timing, a heartbeat trigger signal is sent to the baseboard controller through the management interface, and the heartbeat trigger signal carries configuration information; the baseboard controller is also used to receive the configuration information and configure the management small switching processing unit according to the configuration information.
[0235] Optionally, the configuration data includes a virtual local area network interface identifier; and the step of generating configuration information according to the configuration data includes:
[0236] The virtual local area network interface identifier is converted to generate configuration information; the baseboard controller is used to determine the target virtual local area network interface from multiple virtual local area network interfaces according to the virtual local area network interface identifier; and operate the target virtual local area network interface.
[0237] Optionally, the management small switching processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of generating configuration information according to the configuration data includes:
[0238] The target state and the execution data corresponding to the target state are combined to generate configuration information; the baseboard controller is used to detect the interface state of the physical interface; when the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0239] Optionally, the method further comprises:
[0240] When no response signal from the baseboard controller to the heartbeat trigger signal is received within a preset aging time, it is determined that the baseboard controller is in a restart state;
[0241] In response to the processor being in the reboot state, configuration information is sent to the baseboard controller.
[0242] Optionally, the method further comprises:
[0243] When a response signal is received within the preset aging time, the preset aging time is updated.
[0244] Third, a baseboard controller interface processing method is applied to a white-box switch. The white-box switch includes a baseboard controller and a processor. The baseboard controller and the processor are connected to a management small switching processing unit. The management small switching processing unit is connected to a physical interface. The method includes:
[0245] The baseboard controller obtains an initial configuration file in response to the startup instruction;
[0246] The baseboard controller configures the initial configuration file and executes the default mode;
[0247] The processor sends and receives input configuration data;
[0248] The processor generates configuration information based on the configuration data;
[0249] The processor sends a heartbeat trigger signal to the baseboard controller through the management interface based on the preset heartbeat timing. The heartbeat trigger signal carries configuration information.
[0250] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information.
[0251] Optionally, the step of the processor generating configuration information according to the configuration data includes:
[0252] Converting the virtual local area network interface identifier to generate configuration information;
[0253] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0254] According to the virtual local area network interface identifier, a target virtual local area network interface is determined from the multiple virtual local area network interfaces; and the target virtual local area network interface is operated.
[0255] Optionally, the management small switch processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of the processor generating configuration information according to the configuration data includes:
[0256] Combining the target state and the execution data corresponding to the target state to generate configuration information;
[0257] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0258] Detect the interface status of the physical interface; when the interface status matches the target status, the configuration management small switching processing unit runs the execution data.
[0259] Optionally, the method further comprises:
[0260] When the processor does not receive a response signal from the baseboard controller in response to the heartbeat trigger signal within a preset aging time, it determines that the baseboard controller is in a restart state;
[0261] The processor sends configuration information to the baseboard controller in response to the processor being in a reboot state;
[0262] When the processor receives the response signal within the preset aging time, it updates the preset aging time.
[0263] Optionally, the method further comprises:
[0264] When the baseboard controller does not receive a heartbeat trigger signal within a preset aging time, it determines that the processor is in a restart state;
[0265] The baseboard controller configures an initial configuration file in response to the processor being in a restart state;
[0266] When the baseboard controller receives the heartbeat trigger signal within the preset aging time, it feeds back a response signal to the processor and updates the preset aging time.
[0267] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0268] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0269] 8 , an embodiment of the present invention further provides a non-volatile readable storage medium 801 , on which a computer program is stored. When the computer program is executed by a processor, the baseboard controller interface processing method according to any one of the embodiments of the present invention is executed.
[0270] First, a baseboard controller interface processing method is applied to a baseboard controller. The baseboard controller and the processor are connected to a management small switching processing unit. A management interface is provided between the baseboard controller and the processor. The method includes:
[0271] In response to the startup instruction, obtaining an initial configuration file;
[0272] Configure the initial configuration file and execute the default mode;
[0273] In the default mode, the heartbeat trigger signal of the processor is received through the management interface; the heartbeat trigger signal carries the configuration information;
[0274] Configure and manage the small switching processing unit according to the configuration information.
[0275] Optionally, the management small switch processing unit has multiple virtual local area network interfaces; the configuration information includes virtual local area network interface identifiers; and the steps of configuring the management small switch processing unit according to the configuration information include:
[0276] Determining a target virtual local area network interface from a plurality of virtual local area network interfaces according to the virtual local area network interface identifier;
[0277] Run the target VLAN interface.
[0278] Optionally, the management small switch processing unit is connected to the physical interface; the configuration information includes a target state and execution data corresponding to the target state; and the step of configuring the management small switch processing unit according to the configuration information includes:
[0279] Check the interface status of the physical interface;
[0280] When the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0281] Optionally, the method further comprises:
[0282] When no heartbeat trigger signal is received within a preset aging time, determining that the processor is in a restart state;
[0283] In response to the processor being in a restart state, an initial configuration file is configured.
[0284] Optionally, the method further comprises:
[0285] When a heartbeat trigger signal is received within the preset aging time, a response signal is fed back to the processor and the preset aging time is updated.
[0286] Second, a baseboard controller interface processing method is applied to a processor, wherein the processor and the baseboard controller are jointly connected to a management small switch processing unit, and the management small switch processing unit is connected to a physical interface; the baseboard controller is used to respond to a startup instruction, obtain an initial configuration file; configure the initial configuration file, and execute a default mode; the method includes:
[0287] Receive input configuration data;
[0288] generating configuration information according to the configuration data;
[0289] Based on the preset heartbeat timing, a heartbeat trigger signal is sent to the baseboard controller through the management interface, and the heartbeat trigger signal carries configuration information; the baseboard controller is also used to receive the configuration information and configure the management small switching processing unit according to the configuration information.
[0290] Optionally, the configuration data includes a virtual local area network interface identifier; and the step of generating configuration information according to the configuration data includes:
[0291] The virtual local area network interface identifier is converted to generate configuration information; the baseboard controller is used to determine the target virtual local area network interface from multiple virtual local area network interfaces according to the virtual local area network interface identifier; and operate the target virtual local area network interface.
[0292] Optionally, the management small switching processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of generating configuration information according to the configuration data includes:
[0293] The target state and the execution data corresponding to the target state are combined to generate configuration information; the baseboard controller is used to detect the interface state of the physical interface; when the interface state matches the target state, the configuration management small switching processing unit runs the execution data.
[0294] Optionally, the method further comprises:
[0295] When no response signal from the baseboard controller to the heartbeat trigger signal is received within a preset aging time, it is determined that the baseboard controller is in a restart state;
[0296] In response to the processor being in the reboot state, configuration information is sent to the baseboard controller.
[0297] Optionally, the method further comprises:
[0298] When a response signal is received within the preset aging time, the preset aging time is updated.
[0299] Third, a baseboard controller interface processing method is applied to a white-box switch. The white-box switch includes a baseboard controller and a processor. The baseboard controller and the processor are connected to a management small switching processing unit. The management small switching processing unit is connected to a physical interface. The method includes:
[0300] The baseboard controller obtains an initial configuration file in response to the startup instruction;
[0301] The baseboard controller configures the initial configuration file and executes the default mode;
[0302] The processor sends and receives input configuration data;
[0303] The processor generates configuration information based on the configuration data;
[0304] The processor sends a heartbeat trigger signal to the baseboard controller through the management interface based on the preset heartbeat timing. The heartbeat trigger signal carries configuration information.
[0305] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information.
[0306] Optionally, the step of the processor generating configuration information according to the configuration data includes:
[0307] Converting the virtual local area network interface identifier to generate configuration information;
[0308] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0309] According to the virtual local area network interface identifier, a target virtual local area network interface is determined from the multiple virtual local area network interfaces; and the target virtual local area network interface is operated.
[0310] Optionally, the management small switch processing unit is connected to the physical interface; the configuration data includes a target state and execution data corresponding to the target state; and the step of the processor generating configuration information according to the configuration data includes:
[0311] Combining the target state and the execution data corresponding to the target state to generate configuration information;
[0312] In the default mode, the baseboard controller configures and manages the small switching processing unit according to the configuration information, including the following steps:
[0313] Detect the interface status of the physical interface; when the interface status matches the target status, the configuration management small switching processing unit runs the execution data.
[0314] Optionally, the method further comprises:
[0315] When the processor does not receive a response signal from the baseboard controller in response to the heartbeat trigger signal within a preset aging time, it determines that the baseboard controller is in a restart state;
[0316] The processor sends configuration information to the baseboard controller in response to the processor being in a reboot state;
[0317] When the processor receives the response signal within the preset aging time, it updates the preset aging time.
[0318] Optionally, the method further comprises:
[0319] When the baseboard controller does not receive a heartbeat trigger signal within a preset aging time, it determines that the processor is in a restart state;
[0320] The baseboard controller configures an initial configuration file in response to the processor being in a restart state;
[0321] When the baseboard controller receives the heartbeat trigger signal within the preset aging time, it feeds back a response signal to the processor and updates the preset aging time.
[0322] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0323] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatus, or computer program products. Thus, embodiments of the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0324] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0325] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0326] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0327] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0328] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
[0329] The above is a detailed introduction to a substrate controller interface processing method and its application equipment provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for processing a substrate controller interface, characterized in that Applied to a baseboard controller, the baseboard controller and a processor are jointly connected to a management small switching processing unit, and a management interface is provided between the baseboard controller and the processor; the method includes: In response to a startup instruction, obtain an initial configuration file; Configure the initial configuration file and execute the default mode; In the default mode, receive a heartbeat trigger signal from the processor through the management interface; the heartbeat trigger signal carries configuration information; Configure the management small switching processing unit according to the configuration information.
2. The method according to claim 1, wherein The management small switching processing unit has multiple virtual local area network interfaces; The configuration information includes virtual local area network interface identifiers; the step of configuring the management small switching processing unit according to the configuration information includes: Determine a target virtual local area network interface from the multiple virtual local area network interfaces according to the virtual local area network interface identifier; Run the target virtual local area network interface.
3. The method according to claim 1, characterized in that, The management small switching processing unit is connected to a physical interface; the configuration information includes a target state and execution data corresponding to the target state; the step of configuring the management small switching processing unit according to the configuration information includes: Detect the interface state of the physical interface; When the interface state matches the target state, configure the management small switching processing unit to run the execution data.
4. The method according to claim 1, characterized in that The method further includes: When no heartbeat trigger signal is received within a preset aging time, determine that the processor is in a restart state; In response to the processor being in a restart state, configure the initial configuration file.
5. The method according to claim 4, characterized in that The method further includes: When a heartbeat trigger signal is received within a preset aging time, send a response signal to the processor and update the preset aging time.
6. A substrate controller interface processing method, characterized in that Applied to a processor, the processor and a baseboard controller are jointly connected to a management small switching processing unit, the management small switching processing unit is connected to a physical interface; a management interface is provided between the baseboard controller and the processor; The baseboard controller is configured to obtain an initial configuration file in response to a startup instruction; Configure the initial configuration file and execute the default mode; the method includes: Receive input configuration data; Generate configuration information according to the configuration data; Based on a preset heartbeat timing, send a heartbeat trigger signal to the baseboard controller through the management interface, the heartbeat trigger signal carries the configuration information; the baseboard controller is further configured to receive the configuration information and configure the management small switching processing unit according to the configuration information.
7. The method according to claim 6, characterized in that, The configuration data includes virtual local area network interface identifiers; The step of generating configuration information according to the configuration data includes: Convert the virtual local area network interface identifier to generate configuration information; The baseboard controller is configured to determine a target virtual local area network interface from multiple virtual local area network interfaces according to the virtual local area network interface identifier; run the target virtual local area network interface.
8. The method according to claim 6, characterized in that, The configuration data includes a target state and execution data corresponding to the target state; the step of generating configuration information according to the configuration data: Combining the target state and the execution data corresponding to the target state to generate the configuration information; the baseboard controller is configured to detect the interface state of the physical interface; when the interface state matches the target state, configure the management mini-switch processing unit to run the execution data.
9. The method according to claim 6, wherein The method further includes: When no response signal is received from the baseboard controller for the heartbeat trigger signal within a preset aging time, determining that the baseboard controller is in a restart state; In response to the processor being in a restart state, sending the configuration information to the baseboard controller.
10. The method according to claim 9, wherein The method further includes: When the response signal is received within the preset aging time, updating the preset aging time.
11. A substrate controller interface processing method, characterized in that, Applied to a white-box switch, the white-box switch includes a baseboard controller and a processor, the baseboard controller and the processor are commonly connected to a management mini-switch processing unit, and the management mini-switch processing unit is connected to a physical interface; A management interface is provided between the baseboard controller and the processor; the method includes: The baseboard controller, in response to a startup instruction, obtains an initial configuration file; The baseboard controller configures the initial configuration file to execute the default mode; The processor sends and receives input configuration data; The processor generates configuration information based on the configuration data; The processor, based on a preset heartbeat timing, sends a heartbeat trigger signal to the baseboard controller through the management interface, and the heartbeat trigger signal carries the configuration information; The baseboard controller, in the default mode, configures the management mini-switch processing unit according to the configuration information.
12. The method according to claim 11, wherein The step in which the processor generates configuration information based on the configuration data includes: Converting the virtual local area network interface identifier to generate configuration information; The step in which the baseboard controller, in the default mode, configures the management mini-switch processing unit according to the configuration information includes: Determining a target virtual local area network interface from multiple virtual local area network interfaces according to the virtual local area network interface identifier; running the target virtual local area network interface.
13. The method according to claim 11, wherein The configuration data includes a target state and execution data corresponding to the target state; The step in which the processor generates configuration information based on the configuration data includes: Combining the target state and the execution data corresponding to the target state to generate the configuration information; The step in which the baseboard controller, in the default mode, configures the management mini-switch processing unit according to the configuration information includes: Detecting the interface state of the physical interface; when the interface state matches the target state, configuring the management mini-switch processing unit to run the execution data.
14. The method according to claim 11, wherein The method further includes: When the processor does not receive a response signal from the baseboard controller for the heartbeat trigger signal within a preset aging time, determining that the baseboard controller is in a restart state; The processor, in response to the processor being in a restart state, sends the configuration information to the baseboard controller; When the processor receives the response signal within the preset aging time, updating the preset aging time.
15. The method according to claim 11, wherein The method further includes: When the substrate controller does not receive the heartbeat trigger signal within the preset aging time, it determines that the processor is in a restart state; The substrate controller configures the initial configuration file in response to the processor being in a restart state; When the substrate controller receives the heartbeat trigger signal within the preset aging time, it feeds back a response signal to the processor and updates the preset aging time.
16. A substrate controller, characterized in that, The substrate controller and the processor are both connected to the management small switching processing unit, and a management interface is provided between the substrate controller and the processor; the substrate controller is configured to perform the following steps: In response to a startup instruction, obtain an initial configuration file; Configure the initial configuration file and execute the default mode; In the default mode, receive the heartbeat trigger signal from the processor through the management interface; The heartbeat trigger signal carries configuration information; Configure the management small switching processing unit according to the configuration information.
17. A processor, characterized in that, The processor and the substrate controller are both connected to the management small switching processing unit, and the management small switching processing unit is connected to a physical interface; a management interface is provided between the substrate controller and the processor; the substrate controller is configured to, in response to a startup instruction, obtain an initial configuration file; configure the initial configuration file and execute the default mode; the processor is configured to perform the following steps: Receive input configuration data; Generate configuration information based on the configuration data; Based on a preset heartbeat timing, send a heartbeat trigger signal to the substrate controller through the management interface, and the heartbeat trigger signal carries the configuration information; The substrate controller is further configured to receive the configuration information and configure the management small switching processing unit according to the configuration information.
18. A white box switch, characterized in that, The white box switch includes a substrate controller and a processor. The substrate controller and the processor are both connected to the management small switching processing unit, and the management small switching processing unit is connected to a physical interface; a management interface is provided between the substrate controller and the processor; the white box switch is configured to perform the following steps: The substrate controller obtains an initial configuration file in response to a startup instruction; The substrate controller configures the initial configuration file and executes the default mode; The processor sends and receives input configuration data; The processor generates configuration information based on the configuration data; The processor sends a heartbeat trigger signal to the substrate controller through the management interface based on a preset heartbeat timing, and the heartbeat trigger signal carries the configuration information; The substrate controller configures the management small switching processing unit according to the configuration information in the default mode.
19. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the steps of the substrate controller interface processing method according to any one of claims 1 to 15.
20. A non-volatile readable storage medium, characterized in that, A computer program is stored on the non-volatile readable storage medium. When the computer program is executed by the processor, it implements the steps of the substrate controller interface processing method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Method and device for upgrading BMC at CPU end
CN112187522A
Fault processing method and device, equipment and storage medium
CN117033115A
Substrate controller interface processing method and application equipment thereof
CN117499347A
System and Methods for an Alternative to Network Controller Sideband Interface (NC-SI) Used in Out of Band Management
US20140165183A1
Computer having an embedded switch
US20200145279A1