A network management method, device, equipment and readable storage medium
Through the GPIO output function of the SWITCH chip, the BMC node is monitored and guided in real time to perform network configuration, solving the problems of low network switching efficiency and large resource usage in server management, and realizing efficient and reliable network management.
Patent Information
- Application Number
- CN202411746001.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In the prior art, server management network switching has the problems of low efficiency, large resource usage, high signal quality requirements, and difficulty in effectively solving the problem of limited interface resources in a multi-node environment.
Through the GPIO output function of the SWITCH chip, the network status is monitored in real time and management electrical signals are sent to guide the BMC node to perform network configuration, including maintaining or switching to the backup network.
It improves the efficiency and reliability of network management, simplifies hardware layout, reduces BMC chip pin resource usage, and solves the problem of dual-master SMI interface conflicts in multiple nodes.
Smart Images

Figure CN119603121B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present specification relates to the technical field of communication, and in particular, to a network management method and device, an equipment and a readable storage medium. BACKGROUND
[0002] In a large data center, there can be thousands of servers working simultaneously, which need to be effectively managed to ensure the security of data, the stability of system and the continuity of service. In order to realize the management of these server clusters, enterprises or government agencies usually use NCSI (Network Controller Sideband Interface) shared main network ports for management, so as to reduce the use of physical ports, make the server network layout more concise, and provide comprehensive control over the system. Such management includes starting, restarting the server in the server shutdown state, monitoring the hardware state, collecting logs, upgrading firmware and other key operations.
[0003] However, in the current technical practice, in order to improve the system stability of the server management application, the customer often needs to increase the additional cost and the complexity of the network layout, and manage the network backup through the connection of the server dedicated network port. This backup mechanism ensures that even if the NCSI carrier network card is damaged, the management of the server will not be affected. However, this network backup management involves network switching, and network switching involves network state awareness, which poses certain challenges in technology.
[0004] The most commonly used load for network state awareness is the switch chip and the PHY chip. The server BMC (Baseboard Management Controller) chip reads the network load chip related registers through the SMI (Serial Management Interface) interface to determine whether the link state is link up or link down. The software then selects whether to switch the network according to this information. This process is a polling process, which has the problems of low running efficiency, large occupation of running resources and slow effect speed. In addition, the SMI interface needs to occupy 2 GPIOs, which occupies more pin resources of the BMC chip, which is a significant disadvantage in the case of limited hardware resources. In terms of signal quality requirements, since the SMI interface works under a certain communication protocol, its identification data needs to rely on the clock, so the requirement for signal quality is higher, which to some extent limits its reliability in harsh environments. SUMMARY
[0005] Therefore, the present specification provides a network management method, device, electronic equipment and readable storage medium to improve the above-mentioned problem of lack of reliable network switching scheme.
[0006] The specific technical solution is as follows:
[0007] The present specification provides a network management method applied to a SWITCH chip of a server device with multiple BMC nodes, the SWITCH chip being used to connect a dedicated network port of a BMC node, the method comprising: calling a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring a target pin to enable a GPIO output function according to the management program; obtaining a network connection state, and assigning a value to a register associated with the target pin enabling the GPIO output function according to the network connection state; and sending a management electrical signal to the connected BMC node through the target pin in a GPIO output mode according to the assigned register, the management electrical signal being used to make the BMC node receiving the management electrical signal perform network configuration according to a network connection state corresponding to the management electrical signal, and the optional items of the network configuration including maintaining a current network and switching to a standby network.
[0008] As a technical solution, the obtaining of the network connection state and the assignment of a value to the register associated with the target pin enabling the GPIO output function according to the network connection state comprises: assigning a value of 0 to the register associated with the target pin according to the obtained network connection state being a Link down state; and the sending of the management electrical signal to the connected BMC node through the target pin in the GPIO output mode according to the assigned register comprises: sending a low-level management electrical signal to the connected BMC node through the target pin in the GPIO output mode according to the assigned value of the register being 0, so as to make the BMC node switch to the standby network according to the management electrical signal.
[0009] As a technical solution, the obtaining of the network connection state and the assignment of a value to the register associated with the target pin enabling the GPIO output function according to the network connection state comprises: assigning a value of 1 to the register associated with the target pin according to the obtained network connection state being a Link up state; and the sending of the management electrical signal to the connected BMC node through the target pin in the GPIO output mode according to the assigned register comprises: sending a high-level management electrical signal to the connected BMC node through the target pin in the GPIO output mode according to the assigned value of the register being 1, so as to make the BMC node maintain the current network according to the management electrical signal.
[0010] As a technical solution, the calling of the management program pre-configured and stored in the storage unit associated with the SWITCH chip and the configuration of the target pin to enable the GPIO output function according to the management program comprise: calling an eeprom program pre-written and stored, and configuring the target pin to enable the GPIO function and to output in a mode according to the eeprom program.
[0011] As a technical solution, the management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, and the management electrical signal is sent to all connected BMC nodes through the target pin in the form of GPIO output, so that the multiple BMC nodes perform network configuration according to the network connection state corresponding to the management electrical signal.
[0012] The present specification also provides a network management device applied to a SWITCH chip of a server device of multiple BMC nodes, the SWITCH chip being used for a special network port of the BMC node, and the device comprises: a first module configured to call a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configure a target pin to enable GPIO output function according to the management program; a second module configured to obtain a network connection state, and assign a register associated with the target pin enabling the GPIO output function according to the network connection state; and a third module configured to send a management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, wherein the management electrical signal is used to enable the BMC node receiving the management electrical signal to perform network configuration according to the network connection state corresponding to the management electrical signal, and the optional item of the network configuration comprises maintaining the current network or switching to a standby network.
[0013] As a technical solution, the network connection state is obtained, and the register associated with the target pin enabling the GPIO output function is assigned according to the network connection state, and the register associated with the target pin is assigned 0 according to the obtained network connection state being in a Link down state; and the management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, and the low-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register being 0, so that the BMC node switches to the standby network according to the management electrical signal.
[0014] As a technical solution, the network connection state is obtained, and the register associated with the target pin enabling the GPIO output function is assigned according to the network connection state, and the register associated with the target pin is assigned 1 according to the obtained network connection state being in a Link up state; and the management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, and the high-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register being 1, so that the BMC node maintains the current network according to the management electrical signal.
[0015] As a technical solution, the management program pre-configured and stored in the storage unit associated with the SWITCH chip is called to configure the target pin enable GPIO output function according to the management program, including: calling the pre-written and stored eeprom program, configuring the target pin enable GPIO function according to the eeprom program, and configuring it as an output mode.
[0016] As a technical solution, the management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, including: sending the management electrical signal to all connected BMC nodes through the target pin in the form of GPIO output, so that the multiple BMC nodes perform network configuration according to the corresponding network connection state of the management electrical signal.
[0017] The present specification also provides an electronic device, including a processor and a readable storage medium, the readable storage medium stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the network management method.
[0018] The present specification also provides a readable storage medium, which stores machine executable instructions, and the machine executable instructions cause the processor to implement the network management method when the machine executable instructions are called and executed by the processor.
[0019] The above technical solutions provided by the present specification at least have the following beneficial effects:
[0020] Through the GPIO output function of the SWITCH chip, efficient network management of the multiple BMC node server devices is realized. The method realizes real-time monitoring of the network state through the pre-configured management program, and sends the GPIO output management electrical signal to guide the BMC node to perform network configuration, such as maintaining or switching to a standby network, thereby improving the efficiency and reliability of network management. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments of the present specification or the prior art description. Obviously, the drawings in the following description are only some embodiments described in the present specification, and other drawings can also be obtained by those skilled in the art according to these drawings of the embodiments of the present specification.
[0022] Figure 1 is a flowchart of the network management method in an embodiment of the present specification;
[0023] Figure 2 is a flowchart in an embodiment of the present specification;
[0024] Figure 3 is a structural diagram of a network management device in one embodiment of this specification;
[0025] Figure 4 This is a hardware structure diagram of an electronic device in one embodiment of this specification.
[0026] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION
[0027] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments and are not intended to limit this specification. The singular forms "a," "the," and "the" used in this specification and claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to any or all possible combinations of one or more of the associated listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used in the embodiments of this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" may also be interpreted as "when...", "when...", or "in response to determining."
[0029] With the advent of the Internet AI era, the demand for big data processing, artificial intelligence training, database storage, and high-performance computing is growing, which has led to a significant increase in the demand for server clusters by large enterprises and government agencies. In large data centers, there may be thousands of servers running simultaneously. To effectively manage these servers, NCSI (Network Controller Sideband Interface) is usually used to share the main network port. This method can reduce the number of physical ports used, making the server network layout more concise, and provide comprehensive control capabilities for the system, such as allowing the server to be started or restarted when it is powered off, monitoring hardware status, collecting log information, and upgrading firmware.
[0030] Some customers are willing to increase the cost and the complexity of the network to improve the stability of the system, and choose to establish a management network backup through the dedicated management network port of the connection server. This approach ensures that even if the network card on which the NCSI depends fails, the management of the server will not be affected. In the case of single-node network management, the server BMC chip can read the relevant registers in the network load chip through the SMI interface to determine whether the link state is "link up" or "link down". Based on this information, the software layer can choose whether to switch the network path. However, such a polling process has some problems, such as low running efficiency, occupying more running resources, and slow response speed.
[0031] The above technical solution also has limitations in application, especially it cannot be directly applied to the case of dual-node configuration with only one dedicated management network port. This is because in this case, the SWITCH chip needs to be used for expansion to support the management function of two nodes, but the SWITCH chip generally has only one SMI interface, resulting in the problem of dual-node competition for the same SMI interface.
[0032] The above technical solution determines whether to perform a network switching operation by periodically querying the state of the network device through the BMC chip. Although this method can meet the needs to some extent, it exposes a series of shortcomings in actual application: first, the polling mechanism itself is inefficient, not only consuming a large amount of processor time, but also reducing the reaction speed of the entire system; second, since the SMI interface needs to follow a specific communication protocol when working, it has a high requirement for signal quality, increasing the instability of the system; finally, when facing the situation of multiple nodes sharing one management network interface, the existing method is not competent, and it is difficult to effectively solve the competition problem caused by limited interface resources.
[0033] Therefore, the present specification provides a network management method, device, electronic equipment and readable storage medium to at least improve one of the above technical problems.
[0034] The specific technical solution is described as follows.
[0035] In one embodiment, the present specification provides a network management method applied to a SWITCH chip of a server device with multiple BMC nodes, the SWITCH chip being used to connect the dedicated network interfaces of the BMC nodes, the method comprising: calling a management program preconfigured and stored in a storage unit associated with the SWITCH chip, and configuring a target pin to enable a GPIO output function according to the management program; obtaining a network connection state, and assigning a value to a register associated with the target pin enabling the GPIO output function according to the network connection state; and sending a management electrical signal to the connected BMC nodes through the target pin in a GPIO output mode according to the assigned register, the management electrical signal being used to enable the BMC nodes receiving the management electrical signal to perform network configuration according to a network connection state corresponding to the management electrical signal, and the options of the network configuration including maintaining the current network and switching to a backup network.
[0036] Specifically, as Figure 1 , comprising the following steps:
[0037] Step S11, calling a management program preconfigured and stored in a storage unit associated with the SWITCH chip, and configuring a target pin to enable a GPIO output function according to the management program.
[0038] The SWITCH chip is a core component, which is responsible for connecting the dedicated network interfaces of multiple BMC nodes. First, a management program is preconfigured and stored in the storage unit of the SWITCH chip. This management program is specially designed for network management, and can dynamically adjust the configuration of GPIO (General Purpose Input Output) pins according to the changes of network state.
[0039] Step S12, obtaining a network connection state, and assigning a value to a register associated with the target pin enabling the GPIO output function according to the network connection state.
[0040] After configuring the GPIO output function, the next step is to obtain the network connection state. The SWITCH chip will monitor the network connection state in real time, and assign a value to the register associated with the target pin enabling the GPIO output function according to the state. This step is automated and does not require human intervention, greatly improving the efficiency of network management.
[0041] Step S13, sending a management electrical signal to the connected BMC nodes through the target pin in a GPIO output mode according to the assigned register.
[0042] According to the assigned register, the SWITCH chip will send a management electrical signal to the connected BMC nodes through the target pin in a GPIO output mode. These management electrical signals contain information of the network connection state, and the BMC nodes receiving these signals will perform network configuration according to the network connection state corresponding to the management electrical signal.
[0043] Taking the 88E6141-switch chip of MARVELL as an example, an eeprom program is written to configure the pin as a GPIO function and set it to an output mode. The internal link state register can be assigned to the GPIO data register in real time through the program. When the SWITCH chip starts, the internal program of the eeprom is read, so that the Link state can be output through the GPIO. For example, the GPIO output low level (0) can be set to indicate that the Link is down, and the GPIO output high level (1) can be set to indicate that the Link is up.
[0044] If the management electrical signal indicates that the current network connection state is down, the BMC node can automatically switch to the backup network to ensure the continuous operation of the server and the safety of the data. Conversely, if the management electrical signal indicates that the current network connection state is up, the BMC node can maintain the current network configuration without switching.
[0045] Compared with the traditional polling mechanism, the above-mentioned embodiment realizes real-time monitoring and response through GPIO output, greatly improves the efficiency of network management, and the GPIO scheme only occupies a single pin, reduces the occupation of the pin resources of the BMC chip, and simplifies the hardware layout. Since the GPIO does not require a complex communication protocol, the BMC does not need a complex processing process, and the complex part has been processed in the SWITCH chip, the reliability of the system is improved, the problem of conflict between double SMI interfaces in multiple nodes is effectively solved, and the embodiment is suitable for a multi-node server environment.
[0046] In an embodiment, the obtaining the network connection state, the register associated with the target pin for enabling the GPIO output function is assigned according to the network connection state, including: according to the obtained network connection state being Link down state, the register associated with the target pin is assigned 0; and the management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, including: according to the register being assigned 0, the management electrical signal in the form of low level GPIO output is sent to the connected BMC node through the target pin, so that the BMC node switches to the backup network according to the management electrical signal.
[0047] In an embodiment, the acquiring the network connection state, and assigning a value to the register associated with the target pin enabling the GPIO output function according to the network connection state, comprises: assigning a value of 1 to the register associated with the target pin according to the acquired network connection state being Link up state; and the sending the management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, comprises: sending a high-level management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register being 1, so that the BMC node maintains the current network according to the management electrical signal.
[0048] In an embodiment, the calling the management program pre-configured and stored in the storage unit associated with the SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program, comprises: calling the pre-written and stored eeprom program, and configuring the target pin to enable the GPIO function and to output mode according to the eeprom program.
[0049] In an embodiment, the sending the management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, comprises: sending the management electrical signal to all connected BMC nodes through the target pin in the form of GPIO output, so that the multiple BMC nodes perform network configuration according to the network connection state corresponding to the management electrical signal.
[0050] In an embodiment, as Figure 2 In the SWITCH chip, there is a non-volatile storage unit (for example, EEPROM) associated therewith, in which a specific management program is pre-configured and stored. When the system starts, the SWITCH chip loads this program into the working memory. According to the indication of the management program, the selected target pin is configured to have the GPIO output function. This process is completed by writing a specific eeprom program, which ensures that the relevant pin can be correctly converted to the GPIO mode and set to the output state. This configuration enables the SWITCH chip to directly transmit the state information of the network link to the external device, such as the BMC node, in the form of physical signal.
[0051] The SWITCH chip continuously monitors the actual link status of the network port it is connected to. Whenever a change in the link status is detected (i.e. from "link up" to "link down", or vice versa), it immediately updates the data register value associated with the pin previously designated as GPIO output function. Specifically, if the link is active, the corresponding register is set to represent a logic high level (1); conversely, if the link is disconnected, the register value is adjusted to a logic low level (0). In this way, at any point in time, the BMC can accurately know whether the current network is available by reading the register values.
[0052] After the target register is assigned a new value, the SWITCH chip sends the corresponding high / low level change as a management electrical signal through the configured GPIO pin. These signals can be directly transmitted to all BMC nodes connected thereto. Upon receiving the signals, each BMC determines the current network status according to the preset logic and decides whether to perform a network configuration operation, such as maintaining the existing network connection or switching to a backup network path. This process does not require complex communication protocol processing, greatly simplifying the information transmission process, improving the response speed and the stability of the overall system.
[0053] In one embodiment, as Figure 3 The present specification also provides a network management device applied to a SWITCH chip of a server device with multiple BMC nodes, the SWITCH chip being used to connect the dedicated network port of the BMC node, the device comprising: a first module configured to call a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configure a target pin to enable GPIO output function according to the management program; a second module configured to obtain a network connection status, and assign a value to a register associated with the target pin enabling the GPIO output function according to the network connection status; and a third module configured to send a management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, the management electrical signal being used to make the BMC node receiving the management electrical signal perform network configuration according to the network connection status corresponding to the management electrical signal, and the optional items of the network configuration including maintaining the current network and switching to a backup network.
[0054] In an embodiment, the acquiring the network connection state, and assigning a register associated with the target pin enabling the GPIO output function according to the network connection state, comprises: assigning the register associated with the target pin as 0 according to the acquired network connection state being Link down state; and the sending the management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, comprises: sending the low-level management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register being 0, so that the BMC node switches to the standby network according to the management electrical signal.
[0055] In an embodiment, the acquiring the network connection state, and assigning a register associated with the target pin enabling the GPIO output function according to the network connection state, comprises: assigning the register associated with the target pin as 1 according to the acquired network connection state being Link up state; and the sending the management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, comprises: sending the high-level management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register being 1, so that the BMC node maintains the current network according to the management electrical signal.
[0056] In an embodiment, the calling the management program pre-configured and stored in the storage unit associated with the SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program, comprises: calling the pre-written and stored eeprom program, and configuring the target pin to enable the GPIO function and the output mode according to the eeprom program.
[0057] In an embodiment, the sending the management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, comprises: sending the management electrical signal to all connected BMC nodes through the target pin in the form of GPIO output, so that the multiple BMC nodes perform network configuration according to the network connection state corresponding to the management electrical signal.
[0058] The device embodiment is the same as or similar to the corresponding method embodiment, and will not be described here.
[0059] In an embodiment, the present specification provides an electronic device, comprising a processor and a readable storage medium, the readable storage medium stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the network management method described above. From the hardware layer, the hardware architecture schematic diagram can be referred to as Figure 4 shown.
[0060] In one embodiment, the present specification provides a readable storage medium storing machine executable instructions, which when invoked and executed by a processor, cause the processor to implement the aforementioned network management method.
[0061] Here, the readable storage medium can be any electronic, magnetic, optical, or other physical storage apparatus, and can contain or store information such as executable instructions, data, etc. For example, the readable storage medium can be a RAM (Random Access Memory), a volatile memory, a non-volatile memory, a flash memory, a storage drive (such as a hard drive), a solid state drive, any type of storage disc (such as an optical disc, a DVD, etc.), or similar storage medium, or a combination thereof.
[0062] The system, apparatus, module or unit illustrated in the above embodiments can be specifically implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is a computer, and the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0063] For the convenience of description, the above apparatus is described in various units by function respectively. Of course, the functions of each unit can be implemented in the same or multiple software and / or hardware in the implementation of the present specification.
[0064] Those skilled in the art will understand that the embodiments of the present specification can be provided as a method, a system, or a computer program product. Therefore, the present specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present specification can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, a disk storage, a CD-ROM, an optical storage, etc.) containing computer-usable program code.
[0065] The embodiments of the present specification are described with reference to the flowcharts and / or block diagrams of the methods, apparatus (systems) and computer program products according to the embodiments of the present specification. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, 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 apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus generate a means for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks. Figure 1 one or more flows and / or blocks.
[0066] Moreover, these computer program instructions can also be stored in a computer readable memory capable of directing a computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including instruction means, which implements the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks. Figure 1 one or more flows and / or blocks.
[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are performed on the computer or other programmable data processing apparatus to produce a computer-implemented process, so that the instructions executed on the computer or other programmable data processing apparatus provide steps for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks. Figure 1 one or more flows and / or blocks.
[0068] Those skilled in the art should understand that the embodiments of the present specification can be provided as a method, a system or a computer program product. Therefore, the present specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present specification can take the form of a computer program product implemented on one or more computer usable storage media (which can include, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
[0069] The above only describes the embodiments of the present specification and is not intended to limit the present specification. The present specification can have various changes and modifications for those skilled in the art. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present specification shall be included in the scope of claims of the present specification.
Claims
1. A network management method, characterized in that: A SWITCH chip applied to a server device with multiple BMC nodes, wherein the SWITCH chip is used to connect to a dedicated network port of a BMC node, and the method includes: Calling a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program; Get the network connection status and assign values to the registers associated with the target pins that enable the GPIO output function according to the network connection status; According to the assigned register, a management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output. The management electrical signal is used to enable the BMC node that receives the management electrical signal to perform network configuration according to the network connection status corresponding to the management electrical signal. The network configuration options include maintaining the current network and switching to a backup network.
2. The method according to claim 1, characterized in that The obtaining of the network connection status and assigning a value to a register associated with a target pin for enabling the GPIO output function according to the network connection status include: According to the obtained network connection status of Link down, the register associated with the target pin is assigned a value of 0; The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: According to the value assigned to the register as 0, a low-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output, so that the BMC node switches to the backup network according to the management electrical signal.
3. The method according to claim 1, characterized in that The obtaining of the network connection status and assigning a value to a register associated with a target pin for enabling the GPIO output function according to the network connection status include: According to the obtained network connection status of Link up, assign 1 to the register associated with the target pin; The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: According to the value assigned to the register as 1, a high-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output, so that the BMC node maintains the current network according to the management electrical signal.
4. The method according to claim 1, wherein The calling of a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring a target pin to enable a GPIO output function according to the management program, includes: Call the pre-written and stored eeprom program, configure the target pin according to the eeprom program to enable the GPIO function, and configure it as output mode.
5. The method according to claim 1, wherein The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: The management electrical signal is sent to all connected BMC nodes in the form of GPIO output through the target pin, so that multiple BMC nodes perform network configuration according to the network connection status corresponding to the management electrical signal.
6. A network management device, characterized in that: A SWITCH chip applied to a server device with multiple BMC nodes, wherein the SWITCH chip is used to connect to a dedicated network port of a BMC node, and the device comprises: The first module is used to call a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configure the target pin to enable the GPIO output function according to the management program; The second module is used to obtain the network connection status and assign a value to the register associated with the target pin that enables the GPIO output function according to the network connection status; The third module is used to send a management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register. The management electrical signal is used to enable the BMC node receiving the management electrical signal to perform network configuration according to the network connection status corresponding to the management electrical signal. The network configuration options include maintaining the current network and switching to a backup network.
7. The device according to claim 6, characterized in that The obtaining of the network connection status and assigning a value to a register associated with a target pin for enabling the GPIO output function according to the network connection status include: According to the obtained network connection status of Link down, the register associated with the target pin is assigned a value of 0; The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: According to the value assigned to the register as 0, a low-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output, so that the BMC node switches to the backup network according to the management electrical signal.
8. The device according to claim 6, characterized in that The obtaining of the network connection status and assigning a value to a register associated with a target pin for enabling the GPIO output function according to the network connection status include: According to the obtained network connection status of Link up, assign 1 to the register associated with the target pin; The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: According to the value assigned to the register as 1, a high-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output, so that the BMC node maintains the current network according to the management electrical signal.
9. The device according to claim 6, characterized in that The calling of a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring a target pin to enable a GPIO output function according to the management program, includes: Call the pre-written and stored eeprom program, configure the target pin according to the eeprom program to enable the GPIO function, and configure it as output mode.
10. The device according to claim 6, characterized in that The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: The management electrical signal is sent to all connected BMC nodes in the form of GPIO output through the target pin, so that multiple BMC nodes perform network configuration according to the network connection status corresponding to the management electrical signal.
11. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that: The readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method, system and device for obtaining IP address, and medium
CN111193818A
Network switching device of double-BMC system and network switching method thereof
CN112019460A