Network keep-alive method and network keep-alive system
By using the NCSI sideband channel to send keep-alive messages through the Baseboard Management Controller (BMC), the problem of service traffic interruption caused by server restart was solved, and network connectivity was maintained during the central processing unit restart, avoiding additional hardware costs.
Patent Information
- Application Number
- CN202611663727.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
When the server restarts, the existing network architecture experiences a loss of business traffic because the central processing unit restarts, causing the LACP protocol data units to stop being transmitted.
By using the NCSI sideband channel instead of the central processing unit to send keep-alive messages through the Baseboard Management Controller (BMC), the network connection status between the switch and the server is ensured. The keep-alive messages are used to periodically refresh the neighbor table entries of the switch to avoid aging.
During the central processing unit restart, business traffic between the server and the switch was continuously forwarded, resolving the business interruption issue without incurring additional hardware costs.
Smart Images

Figure CN123164076A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of application server technology, and in particular to a network keep-alive method and network keep-alive system. Background Technology
[0002] In data center network architectures, servers typically establish communication links with top-of-rack (Tor) switches via Link Aggregation Control Protocol (LACP) to achieve load balancing and high availability of link redundancy. However, existing network architectures suffer from link interruption issues when servers restart.
[0003] For example, servers and switches periodically exchange Protocol Data Units (PDUs) to dynamically maintain the connectivity of communication links. Since LACP processing runs on the server's central processing unit (CPU), if the server's CPU restarts, LACP processing ceases, preventing the server from sending LACP PDU keep-alive messages to the switch. After continuously losing LACP PDUs, the switch disables the corresponding communication link, resulting in service traffic loss during the CPU restart window. Summary of the Invention
[0004] This application provides a network keep-alive method to solve the technical problem of service traffic loss between the server and the switch during the CPU restart window.
[0005] The first aspect of this application provides a network keep-alive method applied to a baseboard management controller of an electronic device. The electronic device further includes a central processing unit (CPU) and a network controller. The electronic device is connected to a switch through the network controller. The method includes: receiving key information, transmission period, and enable control flag from the CPU in real time; determining that the enable control flag is in an enabled state; constructing a keep-alive message based on the key information, wherein the enabled state indicates that the CPU has entered a restart state; and sending the keep-alive message to the switch through the network controller according to the transmission period, wherein the keep-alive message is used to ensure that the network connection between the switch and the electronic device is maintained.
[0006] In one embodiment of this application, the method further includes: determining that the enable control flag is in a disabled state and not constructing a keep-alive message, wherein the disabled state indicates that the central processing unit has entered the power-on state.
[0007] In one embodiment of this application, if the enable control flag is determined to be in an enabled state, a keep-alive message is constructed based on key information, including: reading the network protocol address of the central processing unit, the media access control address of the central processing unit, the network protocol address of the switch, and the media access control address of the switch; using the network protocol address and media access control address of the central processing unit as the source address of the keep-alive message, and using the network protocol address and media access control address of the switch as the destination address of the keep-alive message, and constructing the keep-alive message.
[0008] In one embodiment of this application, the network controller sends keep-alive messages to the switch according to a sending period, including: based on a timed triggering mechanism, sending the keep-alive message to the physical link between the network controller and the switch via a first channel between the baseboard management controller and the network controller according to the sending period, and sending it to the switch according to the target address carried in the keep-alive message.
[0009] In one embodiment of this application, no physical link is provided between the baseboard management controller and the switch.
[0010] In one embodiment of this application, receiving key information, transmission period, and enable control flag synchronized by the central processing unit to the board management controller includes: saving the received key information, transmission period, and enable control flag to local storage space to replace the previously stored key information, transmission period, and enable control flag.
[0011] In one embodiment of this application, a second channel is configured between the central processing unit and the baseboard management controller. The baseboard management controller synchronizes key information, transmission cycle and enable control flag from the central processing unit in real time through the second channel. The central processing unit and the baseboard management controller are identified by the media access control address of the baseboard management controller.
[0012] A second aspect of this application provides a network keep-alive system, comprising: a baseboard management controller, a central processing unit (CPU), and a network controller. The baseboard management controller receives key information, transmission cycle, and an enable control flag from the CPU in real time. The baseboard management controller determines that the enable control flag is in an enabled state and constructs a keep-alive message based on the key information. The enabled state indicates that the CPU has entered a restart state. The baseboard management controller, via the network controller, sends the keep-alive message to a switch according to the transmission cycle. The keep-alive message is used to ensure that the network connection between the switch and electronic devices is maintained.
[0013] In one embodiment of this application, the baseboard management controller is further configured to determine that the enable control flag is in a disabled state and not construct a keep-alive message, wherein the disabled state indicates that the central processing unit has entered the power-on state.
[0014] A third aspect of this application provides an electronic device, including: a baseboard management controller, which is used to execute the network keep-alive method of the first aspect to enable the electronic device to maintain network connectivity with a switch.
[0015] The beneficial effects of this application are as follows: By adopting the keep-alive method of the above embodiments, in the event of a server restart (CPU restart) causing the LACP protocol data unit to stop transmitting, the baseboard management controller periodically sends keep-alive messages through the NCSI sideband channel as the CPU, avoiding the problem of aging local neighbor entries in the switch. Within the event window of the server restart, service traffic between the server and the switch can be continuously forwarded, solving the problem of service interruption caused by CPU restart. Furthermore, this embodiment reuses the original baseboard management controller and NCSI sideband channel of the server, eliminating the need to introduce additional dedicated hardware such as smart network cards, and achieving network keep-alive without increasing additional hardware costs. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0017] In the attached diagram: Figure 1 This is a schematic diagram illustrating an application scenario for performing network keep-alive as provided in an embodiment of this application. Figure 2 A schematic diagram of the hardware architecture of a server running the network keep-alive method provided in the embodiments of this application; Figure 3 A flowchart illustrating the network keep-alive method provided in this application embodiment; Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0018] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0019] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0020] Before describing the specific implementation methods of this application, some technical terms and abbreviations used in this application will be explained. NCSI (Network Controller Sideband Interface) is a communication interface standard defining the sideband channel between the baseboard management controller and the network access control (NAC), allowing the baseboard management controller to send and receive network data using the existing physical network ports of the network controller. LACP (Link Aggregation Control Protocol) is a protocol used to dynamically negotiate and maintain communication links between a server (also called a host) and a switch. The negotiation process relies on the periodic exchange of PDUs (Protocol Data Units) between the two parties. A switch (Top of Rack, Tor) refers to a network device deployed in a data center and directly connected to a server. A BMC (Baseboard Management Controller) is a management control unit on the server motherboard that operates independently of the central processing unit. The Intelligent Platform Management Interface (IPMI) is a standard interface for information exchange between the central processing unit and the baseboard management controller. Here, "server" refers to a type of electronic device.
[0021] In this embodiment of the application, the Address Resolution Protocol (ARP) reply message, also known as the ARP-Reply message, is a message used to announce the mapping relationship between network protocol addresses and media access control addresses; the media access control address (MAC) is the hardware address of the device at the data link layer, and the IP (Internet Protocol) address is the logical address of the device at the network layer.
[0022] In this embodiment, the "keep-alive message" refers to a message constructed and sent by the baseboard management controller on behalf of the central processing unit (CPU), with the CPU's address information as the source address. This message can be configured as an ARP-Reply message or other types of messages (such as NA messages) in terms of protocol format. Its function is to trigger the aging timer of the switch's local neighbor table entries, thereby maintaining the valid state of the neighbor table entries during CPU restarts. Since this message is not actually sent by the CPU, but constructed by the baseboard management controller simulating the CPU's identity, it can also be called a fake ARP-Reply / NA message. "Individual forwarding mode" refers to a configurable attribute of the switch's aggregation port. When this attribute is enabled, the aggregation port is not disabled in the event of a loss of LACP protocol data unit negotiation, but continues to forward data. The “enable control flag”, or send_flag parameter, is used to control whether the board management controller performs the action of sending keep-alive messages. The value of the send_flag parameter can be 0 or 1, where a value of 1 indicates the enabled state and a value of 0 indicates the disabled state. The “send period”, or interval parameter, is used to indicate the time interval between two consecutive send actions of keep-alive messages.
[0023] It should also be noted that the host startup event in this application refers to a unified triggering event generated when the server is powered on or undergoes a global reset, used to trigger the respective startup processes of each hardware unit within the server. "Raw socket," specifically a SOCK_RAW mode socket, is a socket type that allows applications to bypass the operating system's standard network protocol stack and directly assemble and send / receive data frames at the data link layer.
[0024] The following is through Figure 1 The application scenarios of this application embodiment are described below. In a data center network architecture, the server 11 in the rack is typically connected to the switch 12 via a physical network cable, and a communication link is established between the server and the switch based on the LACP protocol, thereby achieving load balancing of network traffic on the physical link. In this architecture, the server's LACP protocol stack runs in the operating system kernel or user-mode process of the central processing unit, and needs to periodically send LACP protocol data units to the switch according to the protocol agreement to maintain the negotiation state of the communication link.
[0025] However, during server reboots or other maintenance operations, the CPU's operating system crashes, immediately terminating the LACP process running on it and halting the transmission of LACP protocol data units. After a series of lost LACP protocol data units, the switch will disable the corresponding aggregation port according to the protocol standard, directly prohibiting the forwarding of service traffic through the aggregation port at the data link layer. During the server reboot window, server service traffic will be interrupted. For servers supporting distributed storage, virtualization, and other services, such interruptions will result in service loss.
[0026] To address the aforementioned issues, a dedicated SmartNIC solution can be adopted. This SmartNIC integrates an independent microprocessor and memory, allowing the LACP protocol stack to run within it. This enables the SmartNIC to continue sending LACP protocol data units even when the server's central processing unit restarts. However, this solution requires dedicated hardware, significantly increasing the server's procurement cost.
[0027] It is understood that the server is configured with a baseboard management controller that operates independently of the central processing unit (CPU), and there is an NCSI sideband channel between the baseboard management controller and the network controller of the CPU. Through this sideband channel, the baseboard management controller can send messages to the switch on behalf of the CPU, thereby keeping the switch's neighbor entries alive. This application provides a network keep-alive scheme for the baseboard management controller to keep neighbor entries alive via the NCSI sideband channel. This scheme can solve the problem of neighbor entry aging caused by server restarts without increasing the server's hardware costs, thus preventing service interruptions.
[0028] Because maintaining the communication link relies on the software protocol stack running on the central processing unit (CPU), a CPU restart will simultaneously lose the negotiation of the communication link and the updating of neighbor entries. Consequently, the switch will prohibit the forwarding of service traffic through the aggregation port, resulting in service interruption. Therefore, for the aggregation port, the switch can enable independent forwarding mode, allowing the aggregation port to degenerate into an independent forwarding port without being blocked after the loss of LACP protocol data units. The server can periodically send keep-alive messages via the NCSI sideband channel through the baseboard management controller, using the CPU's address information as the source address. This ensures that the switch's neighbor entry aging timer is repeatedly refreshed without timeout, thus maintaining continuous forwarding of service traffic throughout the entire CPU restart window. In other words, the switch's independent forwarding mode provides the communication link for service traffic forwarding, while the periodic sending of keep-alive messages provides continuously valid neighbor entries.
[0029] The following is combined Figure 2The hardware architecture of the server to which the embodiments of this application apply is described. See [link to relevant documentation]. Figure 2 The server 20, in its hardware architecture, includes at least a central processing unit 21 and a baseboard management controller 22 (BMC). The motherboard of the central processing unit integrates a network controller 23. The network controller exposes a physical network port 24 via a physical interface module and connects to an external switch (Tor) 25 via a physical network cable, forming an LACP communication link. The baseboard management controller runs a keep-alive program (arp-app) for sending messages. The baseboard management controller and the network controller are connected via an NCSI sideband channel. Based on the above server hardware architecture, keep-alive messages sent by the baseboard management controller can be transmitted to the network controller via the NCSI sideband channel, and then sent to the switch via the physical interface module.
[0030] In some embodiments, this application provides a network keep-alive method applied to a server, the server including a central processing unit and a baseboard management controller, the server being connected to a switch via the network controller. Figure 1 and Figure 2 The method includes: after the central processing unit (CPU) enters the power-on state and completes network configuration, it synchronizes key information, transmission period, and enable control flag of the keep-alive message with the baseboard management controller (BMD). The BMD determines that the enable control flag is enabled, and then, based on the key information, constructs a keep-alive message with the CPU's address information as the source address, instead of the CPU. The BMD then repeatedly sends the keep-alive message to the switch according to the transmission period via the network controller, so that the switch refreshes its local neighbor table entries. It can be understood that the switch's aggregation port is pre-enabled in independent forwarding mode. During CPU restart, the aggregation port enters independent forwarding state due to the loss of protocol data units of the link aggregation control protocol. The following sections will explain each of the above steps in detail.
[0031] Specifically, the above-mentioned network keep-alive methods can be achieved through... Figure 3 The process of network keep-alive methods includes the following steps.
[0032] Step S301: Receive key information, transmission cycle, and enable control flags from the central processing unit in real time; Step S302: Determine that the enable control flag is in the enabled state, and construct a keep-alive message based on the key information, wherein the enabled state indicates that the central processing unit has entered the restart state; Step S303: Send keep-alive messages to the switch via the network controller according to the sending period. The keep-alive messages are used to ensure that the network connection between the switch and electronic devices is maintained.
[0033] Firstly, regarding Figure 3Step S301, shown, involves synchronizing key information, transmission period, and enable control flags for the keep-alive message. During normal server startup, the server's operating system can perform network protocol stack initialization and network configuration. The central processing unit (CPU) actively synchronizes these key information, transmission period, and enable control flags with the baseboard management controller (BMC). This key information forms the data basis for subsequent construction and transmission of keep-alive messages. Through this synchronization mechanism, the BMC can also implement the CPU's communication link maintenance strategy. When the server restarts, i.e., when the CPU enters a restart state, the BMC maintains the network state of the communication link.
[0034] Secondly, targeting Figure 3 The step S302 shown illustrates the construction steps of the keep-alive message. The baseboard management controller stores the received key information in real time and performs logical judgment on the enable control flag. If the enable control flag is determined to be enabled, for example, if send_flag is set to 1, the keep-alive mechanism is triggered, and the baseboard management controller constructs a keep-alive message based on the key information. It should be noted that this keep-alive message is not sent in the identity of the baseboard management controller itself, but is encapsulated with the address information of the central processing unit (CPU) as the source address. That is, the source address field in the message is filled with the address information of the CPU, not the address information of the baseboard management controller. This keep-alive mechanism enables the switch to recognize the keep-alive message as a message originating from the CPU, and thus refreshes the corresponding table entries of the CPU.
[0035] Secondly, regarding Figure 3 The illustrated step S303 is the periodic transmission step of the keep-alive message. After the message construction is completed, the baseboard management controller continuously and repeatedly sends keep-alive messages to the switch according to the transmission cycle via the NCSI sideband channel connected internally to the network controller. The periodic transmission step utilizes the characteristics of the underlying network protocol: after receiving the keep-alive message, the switch refreshes the aging timer of the local neighbor table entries (such as ARP entries or ND entries), resetting the liveness status of the entries. Since the transmission step is repeatedly executed at a fixed transmission cycle, the aging timer of the local neighbor table entries is repeatedly reset, and no aging timeout occurs during the entire central processing unit restart, thereby maintaining the continuous forwarding of service traffic between the server and the switch.
[0036] Finally, the switch's aggregation ports can be configured to pre-enable independent forwarding mode. During server restart, the switch's aggregation ports inevitably lose LACP protocol data units, but the aggregation ports are not disabled; instead, they switch to independent forwarding mode, continuing to maintain data forwarding capabilities. While the ports maintain independent forwarding, the switch continuously receives keep-alive messages periodically sent by the baseboard management controller, and local neighbor entries remain logically valid.
[0037] To provide a more complete description of the technical solution, the corresponding processing flow is explained from the perspective of the switch. During the normal operation of the central processing unit (CPU), the switch maintains the network state of the communication link between the switch and the server based on LACP protocol data units, while simultaneously maintaining local neighbor table entries. During the server restart phase, the switch detects the cessation of LACP protocol data unit transmission and, according to the pre-enabled independent forwarding mode, switches the corresponding aggregation port to independent forwarding state. Simultaneously, the switch continuously receives keep-alive packets with the server as the source address on this port, extracts the address mapping relationship from the packets according to the protocol specification, and refreshes the aging timer of the local neighbor table entries, thereby enabling the service traffic destined for the server to continue to be forwarded. Throughout the entire process of server restart completion and LACP protocol data unit resumption, data traffic forwarding is continuously maintained.
[0038] As can be seen, by adopting the keep-alive method of the above embodiments, in response to the LACP protocol data unit stoppage caused by server restart (CPU restart), the baseboard management controller periodically sends keep-alive messages as the CPU through the NCSI sideband channel, avoiding the problem of local neighbor table aging in the switch. Within the event window of server restart, service traffic between the server and the switch can be continuously forwarded, solving the problem of service interruption caused by CPU restart. Furthermore, this embodiment reuses the original baseboard management controller and NCSI sideband channel of the server, without introducing additional dedicated hardware such as smart network cards, achieving network keep-alive without increasing additional hardware costs.
[0039] In some embodiments, the central processing unit (CPU) can send an information synchronization command to the baseboard management controller (BMDC). This command carries the CPU's network protocol address, CPU's media access control (MAC) address, the switch's network protocol address, the switch's MAC address as key information, the transmission cycle, and a modified enable control flag, completing data synchronization in a one-time, full-coverage manner. A second channel can be configured between the CPU and the BMDC, allowing the BMDC to synchronize key information from the CPU in real time.
[0040] In other words, the key information read includes the network protocol address of the central processing unit (CPU), the media access control address (MAC address) of the CPU, the network protocol address of the switch, and the MAC address of the switch. The CPU's network protocol address and MAC address are used as the source address of the keep-alive message, and the switch's network protocol address and MAC address are used as the destination address of the keep-alive message to construct the keep-alive message.
[0041] The key information in this embodiment includes not only basic control parameters, but also the addressing elements required to construct a complete network data packet. Specifically, these include the CPU's network protocol address (CPUIP), CPU's media access control address (CPUMAC), the switch's network protocol address (TorIP), and the switch's media access control address (TorMAC). When cross-component communication occurs between the CPU and the baseboard management controller (BMC), whenever the state of the send_flag enable control changes—for example, from a value of 0 (stopping packet sending) to a value of 1 (starting packet sending), or vice versa—the CPU will proactively send a change instruction to the BMC. This change instruction carries all the aforementioned addressing elements, the sending interval, and the changed enable control flag, thus completing data synchronization in a one-time, full-coverage manner. In some embodiments, the central processing unit may not care whether the state of the enable control flag send_flag changes, but instead send a synchronization instruction to the baseboard management controller based on a preset synchronization period, so that the baseboard management controller can periodically obtain and overwrite key information, transmission period and enable control flag. The baseboard management controller is configured to send a keep-alive message to the switch when it detects that the enable control flag has become enabled.
[0042] The aforementioned process of updating key information, transmission cycles, and enable control flags directly addresses the issues of high complexity in the baseboard management controller's command parsing program and inconsistent network states caused by asynchronous parameter updates. In contrast, if an incremental update mechanism is used—updating the corresponding fields only when the address changes and only issuing flag bits when starting or stopping packet transmission—the baseboard management controller needs to maintain a complex historical state machine to piece together the discretely arriving parameters. If the central processing unit (CPU) abnormally restarts during the update interval, the baseboard management controller may use the newly issued enable control flag in conjunction with old, expired address information to construct a keep-alive message, causing incorrect refresh of switch entries and resulting in service packet addressing errors. This embodiment reduces the probability of parameter inconsistency by carrying all parameters in a single update, thus improving the communication mechanism. The resulting technical effects are twofold: on the one hand, the parsing code of the baseboard management controller does not need to maintain complex context states, reducing the complexity of the command parsing program and saving the baseboard management controller's limited memory and computing resources; on the other hand, it ensures that as long as the baseboard management controller starts sending packets according to the enable control flag, the addressing information in the packet header strictly corresponds to the current network topology, improving the robustness and accuracy of the keep-alive mechanism under abnormal operating conditions.
[0043] In some embodiments, the baseboard management controller constructs a keep-alive message with the address information of the central processing unit as the source address and the address information of the switch as the destination address based on key information, on behalf of the central processing unit. This includes: the baseboard management controller running a keep-alive program and creating a socket handle in the original socket mode; the keep-alive program reading the synchronized network protocol address of the central processing unit, the media access control address of the central processing unit, the network protocol address of the switch, and the media access control address of the switch, and combining them with the media access control address of the local network controller sideband interface of the baseboard management controller, filling the message header layer by layer at the data link layer and the network layer, and assembling it into a complete Ethernet frame.
[0044] This embodiment further illustrates the underlying software implementation mechanism for constructing keep-alive messages. The operating system of the baseboard management controller runs a keep-alive program written in a programming language (such as C or the Socket library). During the initialization phase, the keep-alive program calls the system's underlying network library to create a socket handle in raw socket mode, for example, by calling the `socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL))` function. Subsequently, the keep-alive program reads the synchronized CPUIP, CPUMAC, TorIP, and TorMAC from local memory and, combined with the media access control address of the baseboard management controller's local NCSI interface, manually fills the message header layer by layer at the data link layer and network layer, assembling these discrete addressing parameters and the corresponding protocol payload into a complete Ethernet frame conforming to the Ethernet standard.
[0045] In conventional network programming, if standard stream sockets or datagram sockets are used, the operating system kernel of the baseboard management controller (BMC) automatically encapsulates the BMC's own address information in the packet header. Packets sent in this way cannot represent the central processing unit (CPU) and therefore cannot achieve the keep-alive objective. This embodiment uses raw sockets, enabling the keep-alive program to directly access and manipulate the data link layer. It can fill the source address field of the packet with the CPU's media access control (MAC) address, ensuring that the final generated Ethernet frame maintains the same byte sequence as the actual packet sent when the CPU was alive. This low-level direct assembly and cross-layer transmission mechanism allows the switch to learn and refresh the table entries corresponding to the CPU, which is the key underlying implementation supporting the entire network keep-alive solution.
[0046] In some embodiments, the baseboard management controller can, based on a timed triggering mechanism, send keep-alive messages via a first channel between the baseboard management controller and the network controller to the physical link between the network controller and the switch at a transmission cycle. The keep-alive message is then sent to the switch according to the target address carried in it. Here, the first channel can be a sideband channel. The baseboard management controller repeatedly sends keep-alive messages to the switch at transmission cycles via the sideband channel of the network controller connected to the network controller. This includes: the keep-alive program triggers a transmission action at transmission cycle intervals based on a timer or sleep mechanism; each time it is triggered, the keep-alive program calls the socket handle's send function to send an Ethernet frame to the physical link via the network controller's sideband channel; if the enable control flag is updated to a disabled state, the keep-alive program stops sending Ethernet frames and maintains a listening state, that is, if the enable control flag is disabled, no keep-alive message is constructed. The disabled state indicates that the central processing unit has entered the power-on state.
[0047] Regarding the decision on whether to periodically send keep-alive messages, this embodiment describes the time-based control logic for keeping-alive message transmission. After the Ethernet frame is assembled, the keep-alive program (based on a timer mechanism provided by the system kernel, or a process suspension and sleep mechanism, such as the `usleep` or `sleep` function in C) triggers the transmission action cyclically at intervals specified by the CPU. At each trigger point, the keep-alive program calls the transmission function associated with the original socket handle, such as the `send` or `sendto` function, to push the assembled Ethernet frame from memory into the underlying hardware queue and send it out to the external physical link via the NCSI sideband channel.
[0048] Meanwhile, the sending loop is subject to state control: if a new instruction from the central processing unit is received during operation and the enable control flag is updated to the disabled state, for example, the value of send_flag is 0, then the keep-alive program interrupts the current timed sending loop, stops sending Ethernet frames, and falls back to the listening state with lower resource consumption, waiting for the next instruction to wake it up.
[0049] This invention introduces features such as timer-based or sleep-based triggering of transmission and stopping transmission while maintaining listening based on a disabled state to address the issue of maintaining the continued validity of switch entries without generating redundant packets during the CPU's network outage window. Through the timer mechanism, the keep-alive program can send packets to the physical link at a constant frequency, continuously triggering switch entry refreshes and repeatedly resetting the aging timers of neighbor entries, thereby maintaining uninterrupted service traffic addressing paths throughout the CPU restart period. Furthermore, the timely stop-transmission and listening mechanism under disabled states allows the baseboard management controller to quickly relinquish network control when the CPU resumes normal operation and regains control of the network protocol stack. This reduces the probability of conflicts caused by the coexistence of real packets and proxy packets, achieving a smooth handover of system control.
[0050] In some embodiments, before the central processing unit completes network configuration, the method further includes a system startup step: the startup process of the central processing unit and the startup process of the baseboard management controller are triggered in parallel by the host startup event of the server; the baseboard management controller enters a listening ready state after the startup process is completed, and the completion time of the listening ready state is earlier than the time when the central processing unit completes network configuration and sends key information.
[0051] This embodiment extends the timeline of the technical solution forward to the server cold start or global reset stage. When the server powers on or receives a reset command, the server's host startup event serves as a unified global trigger source, triggering the CPU startup process and the BMC startup process in parallel. Since the BMC typically runs a trimmed-down lightweight operating system, its kernel loading and application launch speed are relatively fast; while the CPU requires a longer process, including basic input / output system self-test, operating system boot, and network protocol stack initialization, before reaching the CPU network completion state. Based on this difference in startup time, this embodiment ensures that the BMC enters a listening-ready state after completing its own startup process, and the completion time of this listening-ready state is earlier than the time when the CPU completes network configuration and actively sends critical information.
[0052] This invention introduces a parallel trigger startup process and the feature that the listening readiness time is earlier than the critical information transmission time, directly addressing the problem of synchronization information loss caused by the mismatch in startup timing between distributed heterogeneous computing units. In a server motherboard environment, the central processing unit (CPU) and the baseboard management controller (BMC) are two independent computing domains. Without a unified trigger anchor point and timing guarantee, if the CPU's network initialization is faster and a critical information synchronization command is issued before the BMC's keep-alive program has started listening, this command will be discarded. As a result, when the first restart and network outage event occurs, the BMC will be unable to send the message on behalf of the CPU due to the lack of address parameters, and the keep-alive mechanism will fail. This embodiment anchors the startup of both components to the same host startup event, reducing race conditions during the system initialization phase. The direct technical effect is that it establishes a reliable timing prerequisite for subsequent cross-component communication, ensuring that the first synchronization command issued by the CPU can be stably received by the BMC, thus solidifying the reliability foundation of the entire network keep-alive scheme from the source.
[0053] In some embodiments, the sideband channel of the network controller is fixedly bound to the first channel of the network controller, which corresponds to the first physical port of the network controller; the baseboard management controller does not have an independent physical link directly connected to the switch, and the baseboard management controller communicates with the switch through the network controller via the sideband channel of the network controller, sharing the first physical port and its connected network link at the physical layer and the media access control layer.
[0054] Combination Figure 2 The hardware architecture shown in this embodiment illustrates the hardware topology mapping relationship and physical link multiplexing mechanism within the server. The NCSI sideband channel is fixedly bound to the first channel of the network controller in terms of hardware pins and firmware configuration. This first channel corresponds to the first physical port of the network controller in terms of external interface form, and the first physical port is connected to an external link via a physical interface module. In this topology, the baseboard management controller does not have a dedicated physical link (e.g., a dedicated management port and network cable) directly connected to the switch on the motherboard design. Network data sent by the baseboard management controller is injected via the NCSI sideband channel, passing through the network controller, thereby sharing the first physical port and its connected external network link with the central processing unit's service traffic at the physical layer and media access control layer, ultimately achieving communication with the switch.
[0055] This invention introduces the features of fixed binding to the first channel and sharing physical ports and network links with the network controller, directly addressing the problem of how the baseboard management controller delivers keep-alive packets to service switches when it lacks an independent physical network exit. In traditional out-of-band management architectures, the baseboard management controller is typically connected to a dedicated management switch via a separate management port, thus unable to affect the table status of switches connected to service ports. This embodiment establishes a sideband channel between the baseboard management controller and the network controller at the hardware circuit level via the NCSI standard protocol. The resulting technical effects are: firstly, it achieves physical layer multiplexing of the out-of-band management channel and the service data channel without increasing additional physical network cables, switch ports, and cabling costs; secondly, since keep-alive packets and real service packets flow from the same physical port, the switch at the receiving end has difficulty distinguishing the source of the packets at the physical link level, and neighbor entries can be correctly refreshed on the corresponding service ports, ensuring the consistency between physical and logical topologies.
[0056] In some embodiments, the central processing unit synchronizes key information of the keep-alive message to the baseboard management controller, including: the central processing unit sending a synchronization instruction to the baseboard management controller through the intelligent platform management interface, the synchronization instruction carrying key information, transmission period, and enable control flag; the baseboard management controller parsing the synchronization instruction and saving the key information to the local storage space for updating and replacement, so as to be read when constructing the keep-alive message.
[0057] Combination Figure 3 The illustrated logic flow, in this embodiment, explains the specific communication protocol and data saving actions for synchronizing key information. Once the network configuration is ready, the central processing unit (CPU) calls the underlying system management software and, through the server industry-standard Intelligent Platform Management Interface (IPMI), actively sends a notification command to the Baseboard Management Controller (BMC). The payload of this notification command encapsulates and carries the aforementioned key information. Subsequently, the BMC daemon listens for the IPMI instruction, parses the notification command according to a preset protocol format, extracts the control flags and address parameters, and performs the saving action. Figure 2 The process involves saving ARP-reply and NA information, writing critical information into the local storage space of the Baseboard Management Controller (BMC), such as a protected area of non-volatile memory or volatile memory. When the keep-alive procedure (arp-app) needs to construct a keep-alive message in a subsequent loop, it directly reads the required addressing parameters from this local storage space.
[0058] By introducing features such as sending notification commands through the intelligent platform management interface and saving critical information to local storage, this approach directly addresses the issue of highly reliable and standardized data interaction between two physically independent computing units. IPMI, as the underlying management standard interface in the server field, does not rely on the operating system's network protocol stack for signaling transmission. Therefore, even if the central processing unit's service network experiences congestion or configuration anomalies, synchronization commands can still be delivered to the baseboard management controller via the system management bus (e.g., the KCS interface or IPMB bus), improving the anti-interference capability of signaling transmission. Simultaneously, saving the parsed critical information to local storage decouples control plane signaling from data plane packet transmission: when the keep-alive program constructs messages at a periodic pace, it does not need to query the central processing unit each time, but instead directly reads locally. This reduces the system overhead of cross-component communication and ensures that the baseboard management controller (BMC) retains a complete data context to maintain continuous transmission of keep-alive messages during the central processing unit's power-off restart window.
[0059] In some embodiments, the keep-alive message is one of the following: when the CPU uses Network Protocol version 4, the keep-alive message is an Address Resolution Protocol (ARP) response message, and the switch refreshes the aging timer of the ARP entry based on the ARP response message; when the CPU uses Network Protocol version 6, the keep-alive message is a Neighbor Advertisement message, and the switch refreshes the aging timer of the Neighbor Discovery entry based on the Neighbor Advertisement message.
[0060] In modern data centers, server nodes may operate in IPv4, IPv6, or dual-stack network environments. To ensure the network keep-alive scheme has protocol universality, this embodiment designs the keep-alive message as one of the following specific protocol messages. When the CPU's network protocol stack uses IPv4, the keep-alive message constructed by the Baseboard Management Controller (BMC) is an Address Resolution Protocol (ARP) Reply message. When a switch's independent forwarding port receives this ARP Reply message, its control plane extracts the address mapping relationship from the message according to the Address Resolution Protocol specification and refreshes the aging timer of the local Address Resolution Protocol entry, resetting the entry's liveness status. When the CPU uses IPv6, since IPv6 no longer uses the Address Resolution Protocol, the keep-alive message constructed by the BMC is a Neighbor Advertisement (NA) message based on the ICMPv6 protocol. After receiving this NA message, the switch refreshes the aging timer of its local Neighbor Discovery (NDM) entry according to the Neighbor Discovery Protocol specification.
[0061] By introducing Address Resolution Protocol (ARP) response messages and Neighbor Advertisement (NAP) messages as the specific carriers of keep-alive messages, this approach directly addresses the problem of effectively triggering switch entry refreshes at a low cost. Both types of messages are response messages; upon receiving such messages, the switch refreshes the aging timer of its local cache entries without requiring a prior matching request message. Therefore, the Baseboard Management Controller (BMC) does not need to listen for requests from the switch; it can trigger the switch's entry learning and refresh mechanism through unilateral, periodic, proactive pushes. The direct technical effect of this approach is that, without modifying any switch firmware logic, and with low network bandwidth consumption (only tens of bytes of control frames per cycle), it achieves continuous keep-alive of logical entries in a dual-stack IPv4 and IPv6 environment, ensuring that service data packets can be correctly addressed and forwarded to the corresponding physical ports by the switch during network outage windows.
[0062] It should be noted that the above two message types can be used simultaneously in a dual-stack environment. That is, the Baseboard Management Controller (BMC) can construct and send ARP-Reply messages and NA messages in the same transmission cycle, thereby maintaining the validity of IPv4 entries and IPv6 entries at the same time. The specific message type(s) used can be determined based on the key information synchronized by the central processing unit and the actual protocol environment in which the node is running, and does not affect the implementation of the embodiments of this application.
[0063] In some embodiments, this application also provides a network keep-alive device based on a network controller sideband interface. The device operates on a server, which includes a central processing unit (CPU) and a baseboard management controller (BMC). The server is connected to a switch via the BMC. The device includes: an information synchronization module, used to synchronize key information of the keep-alive message to the BMC after the CPU completes network configuration. This key information includes a transmission period and an enable control flag; a message construction module, used to enable the BMC to construct a keep-alive message with the CPU's address information as the source address, based on the key information, when the enable control flag is enabled; and a periodic transmission module, used to enable the BMC to repeatedly send the keep-alive message to the switch according to the transmission period via the sideband channel of the network controller connected to the BMC, so that the switch refreshes its local neighbor table entries. The aggregation port of the switch is pre-enabled in independent forwarding mode. During a CPU restart, the aggregation port enters independent forwarding state due to the loss of protocol data units of the link aggregation control protocol.
[0064] Combination Figure 1This device operates as a functional module within the server nodes of the data center, and its execution logic corresponds to that of the aforementioned method embodiments. The information synchronization module is primarily deployed and runs on the central processing unit (CPU). Its function is to synchronize key information of the keep-alive message to the baseboard management controller after the CPU completes its network protocol stack configuration. This key information includes at least the sending period (interval) and the enable control flag (send_flag). The role of the information synchronization module is to build a state bridge between the service computing plane and the underlying management plane, enabling the network keep-alive strategy to be accurately distributed.
[0065] The message construction module primarily operates within the baseboard management controller (BMD). Upon receiving critical information, this module monitors the value of the enable control flag. Once it determines the flag is enabled, the message construction module is activated, enabling the BMD to construct a keep-alive message with the CPU's address information as the source address in the underlying network stack, based on the critical information. This module improves the mismatch between message source and table entry attribution through an identity impersonation mechanism, allowing the generated message to simulate the CPU's external behavior. The periodic transmission module also operates within the BMD and is closely integrated with the message construction module. Its function is to enable the BMD to continuously and repeatedly send the constructed keep-alive messages to the switch via the NCSI sideband channel connected to the network controller, periodically prompting the switch to refresh the aging timer of its local neighbor table entries.
[0066] While the aforementioned modules work collaboratively, this device solution relies on a specific configuration of the external network environment as a prerequisite: the aggregation ports of the switch are pre-enabled in independent forwarding mode. Therefore, during a central processing unit (CPU) restart, even if the aggregation port loses protocol data units of the link aggregation control protocol due to an operating system crash, the port will not be blocked but will smoothly degrade into independent forwarding mode. The three functional modules of the device, together with the switch's independent forwarding mode, form a technical closed loop, working together from two dimensions—logical table refresh and physical port keep-alive—to improve the problem of service outages during CPU restarts and achieve continuous forwarding of service traffic within the restart window.
[0067] In some embodiments, the key information in the above-described network keep-alive device also includes the network protocol address of the central processing unit, the media access control address of the central processing unit, the network protocol address of the switch, and the media access control address of the switch; the information synchronization module is also used to, when the state of the enable control flag changes, cause the central processing unit to send a change instruction to the baseboard management controller, the change instruction carrying the network protocol address of the central processing unit, the media access control address of the central processing unit, the network protocol address of the switch, the media access control address of the switch, the transmission period, and the changed enable control flag, to complete data synchronization in a one-time full coverage manner.
[0068] In this embodiment, the information synchronization module is given stricter state management responsibilities. Specifically, the information synchronization module monitors the state of the enable control flag in real time. When a change in this state is detected (e.g., the system's on-demand start / stop keep-alive function), the information synchronization module causes the central processing unit to send a change instruction to the baseboard management controller. When constructing this change instruction, the information synchronization module performs an atomic packaging operation, encapsulating CPUIP, CPUMAC, TorIP, TorMAC, the transmission period interval, and the changed enable control flag in the same instruction payload, thereby completing data synchronization with the baseboard management controller in a one-time full-coverage manner. Since all addressing parameters relied upon by the message construction module when extracting parameters are complete and self-consistent on the same time plane, this embodiment reduces the probability of baseboard management controller state disorder and sending source and destination address misaligned messages due to asynchronous parameter arrival; it also simplifies the parsing logic of the baseboard management controller receiver, reduces complex timing verification code, and enhances the operational stability of the entire device in complex network environments.
[0069] This application also provides a network keep-alive system, including: a baseboard management controller, a central processing unit (CPU), and a network controller. The baseboard management controller receives key information, transmission cycle, and enable control flag from the CPU in real time. The baseboard management controller determines that the enable control flag is in an enabled state and constructs a keep-alive message based on the key information. The enabled state indicates that the CPU has entered a restart state. The baseboard management controller sends the keep-alive message to the switch via the network controller according to the transmission cycle. The keep-alive message is used to ensure that the network connection between the switch and electronic devices is maintained.
[0070] In some embodiments, reference Figure 4This application also provides an electronic device 40, including: a baseboard management controller 401, the electronic device further including a central processing unit 402 and a network controller (not shown), the network controller being connected to the central processing unit and the baseboard management controller respectively, and the baseboard management controller and the network controller being connected via the sideband channel of the network controller, the network controller being further used to connect to a switch via a physical port; a memory for storing computer programs; wherein, when the central processing unit and the baseboard management controller execute the computer program, they jointly implement the network keep-alive method based on the network controller sideband interface in any of the foregoing embodiments.
[0071] This electronic device can be specifically represented as a physical server within a data center rack. Combined with... Figure 2 The hardware architecture shown includes at least a central processing unit (CPU), a baseboard management controller (BMC), a network controller, and memory. Internally, the network controller acts as a hub for network traffic, connecting to both the CPU and the BMC. Specifically, to integrate out-of-band management channels and service data channels, the BMC and network controller are connected via NCSI sideband channels on the motherboard wiring. Furthermore, the network controller extends externally, connecting to an external switch via physical ports of the physical interface module. The memory, distributed across the CPU's memory and the BMC's flash memory, stores computer programs, including, for example, an operating system kernel module, IPMI communication components, and keep-alive procedures. When the CPU and BMC collaboratively execute the computer program within their respective independent computing domains, they jointly implement the network keep-alive method described in any of the aforementioned embodiments.
[0072] The improvement of this electronic device lies in changing the isolation between the service data plane and the out-of-band management plane in traditional server architectures. One of the causes of network outages due to CPU restarts is that, in traditional architectures, once the CPU fails, the service network egress loses its maintenance mechanism, and while the baseboard management controller is still running, it lacks a channel to control the status of the service network interface. This electronic device directly improves this architectural disconnect by establishing the connection relationship of the NCSI sideband channel at the hardware level and giving the baseboard management controller the function of sending keep-alive messages at the software level. The technical effect of this hardware and software combination design is that, without changing the existing standard hardware components of the server or increasing additional hardware costs, the server can still maintain the connectivity of the external network topology during CPU restarts by relying on the low-power baseboard management controller, thus improving the availability of upper-layer distributed applications.
[0073] In some embodiments, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the network keep-alive method based on the network controller sideband interface in any of the foregoing embodiments.
[0074] In practical applications, the computer-readable storage medium can specifically manifest as an SPI flash memory chip on a server motherboard for storing the firmware of the baseboard management controller, a hard disk drive or solid-state drive for storing the operating system and network card drivers, read-only memory (ROM), random access memory (RAM), or any non-transitory storage medium that can be used to download and persistently store code over a network. The computer program stored on this computer-readable storage medium logically includes a network status monitoring and IPMI synchronization component running on the central processing unit (CPU), and a keep-alive program running on the baseboard management controller. When this computer program is loaded and executed by the processors (including the CPU and the baseboard management controller) within the server system, it can collaboratively implement the network keep-alive method of any of the aforementioned embodiments across different computing domains.
[0075] The value of this computer-readable storage medium lies in solidifying the network keep-alive logic across the hardware plane into a standardized, reproducible, and deployable set of software instructions. While related technologies often rely on deploying dedicated intelligent hardware to address network outages caused by CPU restarts, the computer program in this storage medium solves the problem at the software level by scheduling NCSI sideband channels, manipulating raw sockets, and cooperating with the switch's independent forwarding mode. The resulting technical benefit is that data center operations personnel can enable existing standard servers to maintain network connectivity during CPU restarts or DC power outages simply through firmware upgrades or driver updates. This significantly lowers the barrier to technology implementation, provides network connectivity guarantees for cloud service providers during large-scale underlying infrastructure upgrades and maintenance, and allows for a smooth transition of business traffic during network outage windows.
[0076] To facilitate a more intuitive understanding of the overall operation process of the embodiments of this application by those skilled in the art, the following is combined with... Figure 1 and Figure 2 This document provides a comprehensive explanation of the technical solutions in the above embodiments using a complete practical application example. The example describes the complete workflow of the network keep-alive mechanism throughout the entire lifecycle of a server, from cold start, normal operation, CPU restart, to recovery.
[0077] During the system initialization phase: After the server powers on, the host boot event triggers two branches: the CPU startup and the baseboard management controller startup. The baseboard management controller, relying on its lightweight operating system, completes the startup first, the keep-alive program is activated, and it enters the listening-ready state; the CPU continues to perform basic input / output system self-test and operating system boot, and then completes network protocol stack initialization, reaching the CPU network completion state. At this time, the switch's aggregated ports have been pre-enabled in independent forwarding mode, and a communication link is established between the server and the switch based on the LACP protocol, with service traffic forwarded normally.
[0078] During the parameter synchronization phase: The central processing unit (CPU) sends a synchronization command to the baseboard management controller (BMC) through the intelligent platform management interface. This command carries CPUIP, CPUMAC, TorIP, TorMAC, the transmission period (interval), and the enable control flag (send_flag). The BMC parses this synchronization command and writes the information to its local storage. Subsequently, the BMC determines whether to periodically send keep-alive messages: if send_flag is 1, the keep-alive program assembles a keep-alive message based on the original socket and sends it periodically according to the interval; if send_flag is 0, it remains in a listening state and does not send messages.
[0079] During the CPU restart phase: When maintenance operations trigger the CPU to enter a restart state, the LACP process running on the CPU terminates, and LACP protocol data units stop being transmitted. The switch's aggregation ports, having pre-enabled independent forwarding mode, can degenerate into independent forwarding ports after the loss of protocol data units, maintaining data forwarding capabilities. Simultaneously, the independently operating and unaffected baseboard management controller, based on locally stored critical information, continuously sends keep-alive packets with the CPU's address information as the source address to the switch via the NCSI sideband channel, network controller, and physical interface module at intervals. The switch accordingly continuously refreshes the aging timer of its local neighbor table entries, ensuring that service packets destined for that server node can still be correctly addressed and forwarded throughout the entire network outage window.
[0080] During the recovery phase: After the central processing unit (CPU) restarts and reconfigures the network, it resynchronizes or updates critical information to the baseboard management controller (BMC) via the intelligent platform management interface. Once the CPU regains control of the network protocol stack and resumes sending LACP protocol data units, the aggregation port returns to the aggregation negotiation state. If it is no longer necessary to send keep-alive messages, the CPU can issue a change command with a send_flag value of 0. This change command carries all address parameters in a full-overwrite manner. The BMC then stops sending and returns to the listening state, smoothly transferring network control back to the CPU.
[0081] It should be further noted that the specific implementation methods in the above embodiments can be replaced in various ways. For example, regarding the synchronization channel for critical information, in addition to using the intelligent platform management interface, another alternative implementation method can be to use other system management buses or shared memory mechanisms between the central processing unit and the baseboard management controller to transmit critical information. As long as the channel can complete parameter transmission independently of the central processing unit's service network protocol stack, its input is still the address parameters and control parameters generated after the central processing unit's network configuration, and its output is still saved to the local storage space by the baseboard management controller for the keep-alive program to read. The subsequent message construction and periodic transmission process remain unchanged. As another example, regarding the triggering method for the transmission rhythm, the timer mechanism and the sleep mechanism are functionally equivalent. Both trigger the transmission action at intervals equal to the transmission cycle interval, and either can be selected based on the operating system capabilities of the baseboard management controller.
[0082] Similarly, regarding the implementation language and operational form of the keep-alive procedure, those skilled in the art will understand that implementing the keep-alive procedure using other programming languages or operational frameworks capable of creating raw sockets and manipulating data link layer packets is also within the scope of this application. As for the value of the sending period, it can be set according to the configuration of the aging time of the switch's neighbor table entries. As long as the time interval between two adjacent transmissions is less than the aging time of the entry, the aging timer will be refreshed before it expires. The specific value does not constitute a limitation on the solution of this application.
[0083] Furthermore, those skilled in the art will understand that any equivalent method capable of achieving the same function, such as migrating the assembly location of the keep-alive message from the user mode of the keep-alive program to the kernel mode module of the baseboard management controller, or adjusting the storage location of critical information from volatile memory to non-volatile memory to enhance power-off retention capability, all fall within the scope of this application. The technical features in the above embodiments can be arbitrarily combined without contradicting each other, and the combined solutions also fall within the scope of this application.
[0084] The above description is merely an optional embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A network keep-alive method, characterized in that, A baseboard management controller for an electronic device, the electronic device further including a central processing unit and a network controller, the electronic device being connected to a switch via the network controller, the method comprising: Real-time reception of key information, transmission cycle, and enable control flags from the central processing unit; If the enable control flag is determined to be in an enabled state, a keep-alive message is constructed based on the key information, including: The key information to be read includes the network protocol address of the central processing unit, the media access control address of the central processing unit, the network protocol address of the switch, and the media access control address of the switch. The keep-alive message is constructed using the network protocol address and media access control address of the central processing unit as the source address and the network protocol address and media access control address of the switch as the destination address. The enable state indicates that the central processing unit has entered a restart state. The network controller sends the keep-alive message to the switch according to the sending period, wherein the keep-alive message is used to ensure that the network connection between the switch and the electronic device is maintained.
2. The network keep-alive method according to claim 1, characterized in that, Also includes: If the enable control flag is determined to be in a disabled state, the keep-alive message is not constructed, wherein the disabled state indicates that the central processing unit has entered the power-on state.
3. The network keep-alive method according to claim 1, characterized in that, The step of sending the keep-alive message to the switch via the network controller according to the sending period includes: Based on the timed triggering mechanism, the keep-alive message is sent to the physical link between the network controller and the switch via the first channel between the baseboard management controller and the network controller according to the sending period, and then sent to the switch according to the target address carried in the keep-alive message.
4. The network keep-alive method according to claim 1, characterized in that, No physical link is established between the baseboard management controller and the switch.
5. The network keep-alive method according to claim 1, characterized in that, The real-time reception of key information, transmission period, and enable control flags from the central processing unit includes: The received key information, transmission period, and enable control flag are saved to the local storage space, replacing the previously stored key information, transmission period, and enable control flag.
6. The network keep-alive method according to claim 1, characterized in that, A second channel is configured between the central processing unit and the baseboard management controller. The baseboard management controller synchronizes key information, transmission cycle and enable control flag from the central processing unit in real time through the second channel. The central processing unit and the baseboard management controller are identified by the media access control address of the baseboard management controller.
7. A network keep-alive system, characterized in that, include: The baseboard management controller, central processing unit, and network controller, among which, The baseboard management controller is used to receive key information, transmission cycle and enable control flag from the central processing unit in real time. The baseboard management controller determines that the enable control flag is enabled, and constructs a keep-alive message based on the key information, including: The key information to be read includes the network protocol address of the central processing unit, the media access control address of the central processing unit, the network protocol address of the switch, and the media access control address of the switch. The keep-alive message is constructed using the network protocol address and media access control address of the central processing unit as the source address and the network protocol address and media access control address of the switch as the destination address. The enable state indicates that the central processing unit has entered a restart state. The baseboard management controller sends the keep-alive message to the switch according to the sending cycle via the network controller, wherein the keep-alive message is used to ensure that the network connection between the switch and the electronic device is maintained.
8. The network keep-alive system according to claim 7, characterized in that, The baseboard management controller is also used to determine that the enable control flag is in a disabled state and not to construct the keep-alive message, wherein the disabled state indicates that the central processing unit has entered the power-on state.
9. An electronic device, characterized in that, include: A baseboard management controller is configured to execute the network keep-alive method as described in any one of claims 1 to 6, thereby enabling the electronic device to maintain network connectivity with the switch.
