Management communication method, device, equipment and medium
By using the switch processor for BMC management communication in the server + intelligent network card system, the problem of resource waste and complexity is solved, efficient management communication is achieved, resources are saved and data security is ensured.
Patent Information
- Application Number
- CN202411090398.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-08-09
AI Technical Summary
The current BMC out-of-band management method of the server + smart network card system wastes IP resources and hardware network port resources, resulting in resource waste and increased management complexity.
The switching processor is used to connect the dedicated network ports of the first baseboard management controller of the intelligent network card and the second baseboard management controller of the server to the first and second ports of the switching processor respectively, and through the third port of the switching processor The port is connected to the management network to realize unified management and communication of the entire system. Only one hardware network port and IP address are allocated.
It greatly saves IP resources and hardware network port resources, improves the management efficiency of the entire system BMC by the management network, and ensures data security through virtual LAN identifier and static IP address configuration.
Smart Images

Figure CN118748640A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of server technology, and in particular to a management communication method, device, equipment and medium. Background Art
[0002] Currently, mature server + Smart Network Interface Card (SmartNIC) systems on the market generally adopt a separate management method, treating the server and SmartNIC as two independent devices. Both the server's Baseboard Management Controller (BMC) and the SmartNIC's BMC need to have basic out-of-band management functions, that is, accessing the BMC through the network to monitor and maintain the server or SmartNIC.
[0003] Figure 1 This is a schematic diagram of the common server + smart network card system. Figure 1 As shown in the figure, the BMC has two built-in media access control (MAC) modules, one is a shared network port shared with the central processor; the other is a dedicated network port exclusively used by the BMC. Currently, the server's BMC and SmartNIC's BMC use their own two dedicated network ports to implement the BMC's out-of-band management function, which requires connecting two network cables to the external management switch and assigning Internet Protocol (IP) addresses to the two dedicated network ports, wasting IP resources and hardware network port resources.
[0004] In view of the above problems, how to solve the problem of the current BMC out-of-band management method of the server + smart network card system wasting IP resources and hardware network port resources is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0005] The purpose of the present invention is to provide a management communication method, device, equipment and medium to solve the problem that the BMC out-of-band management method of the current server + intelligent network card system wastes IP resources and hardware network port resources.
[0006] In order to solve the above technical problems, the present invention provides a management communication method, which is applied to a whole machine system including a smart network card and a server; wherein a switching processor is provided in the smart network card; a dedicated network port of a first baseboard management controller of the smart network card is communicatively connected to a first port of the switching processor; a dedicated network port of a second baseboard management controller of the server is communicatively connected to a second port of the switching processor; a third port of the switching processor is connected to a management network through a network interface; the method comprises:
[0007] Monitoring management network's management requests to the baseboard management controller in the whole system;
[0008] When receiving a first management request to the first baseboard management controller, transmitting the first management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller generates first management data according to the first management request;
[0009] transmitting the first management data to a management network through the switch processor;
[0010] When receiving a second management request to the second baseboard management controller, transmitting the second management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines second management data according to the second management request; wherein the second management data is pre-generated by the second baseboard management controller and transmitted to the first baseboard management controller through the switching processor;
[0011] The second management data is transmitted to the management network through the switch processor.
[0012] On the one hand, before the monitoring management network sends a management request to the baseboard management controller in the whole system, the method further includes:
[0013] assigning a same virtual local area network identifier to a first port and a second port of the switch processor;
[0014] Based on the proprietary network port of the first baseboard management controller and the proprietary network port of the second baseboard management controller, respectively create a first virtual network port and a second virtual network port; wherein the virtual local area network tag of the first virtual network port and the virtual local area network tag of the second virtual network port both contain the virtual local area network identifier;
[0015] A first static Internet Protocol address is configured for the first virtual network port, and a second static Internet Protocol address is configured for the second virtual network port.
[0016] On the other hand, the specific process of the second baseboard management controller pre-generating the second management data and transmitting the second management data to the first baseboard management controller through the switching processor includes:
[0017] Generate a data acquisition request to the second baseboard management controller through the first baseboard management controller; wherein the data acquisition request represents a request to acquire sensor information, status information and log of the second baseboard management controller;
[0018] Based on the first baseboard management controller, a request data packet is generated according to the data acquisition request and the virtual local area network tag;
[0019] Based on the first baseboard management controller, obtaining a second static Internet Protocol address of the second virtual network port;
[0020] Based on the first baseboard management controller, sending the request data packet to the second virtual network port of the second baseboard management controller according to the second static Internet Protocol address of the second virtual network port;
[0021] When the second baseboard management controller receives the request data packet, it parses the request data packet to obtain a data acquisition request and a virtual local area network tag;
[0022] Determining whether the virtual local area network label is correct by the second baseboard management controller;
[0023] If the second baseboard management controller confirms that the virtual local area network tag is correct, it generates corresponding second management data according to the data acquisition request; wherein the second management data includes sensor information, status information and log of the second baseboard management controller;
[0024] Based on the second baseboard management controller, a feedback data packet is generated according to the second management data and the virtual local area network tag;
[0025] Based on the second baseboard management controller, obtaining a first static Internet Protocol address of the first virtual network port;
[0026] Based on the second baseboard management controller, a feedback data packet is sent to the first virtual network port of the first baseboard management controller according to the first static Internet Protocol address of the first virtual network port, so that the first baseboard management controller parses the feedback data packet to obtain the second management data.
[0027] On the other hand, the first central processor of the smart network card is communicatively connected to the fourth port of the switching processor via the first physical layer transmitter; the second central processor of the server is communicatively connected to the fifth port of the switching processor via the second physical layer transmitter;
[0028] The virtual local area network identifiers of the first port, the second port, the fourth port and the fifth port are the same.
[0029] On the other hand, it also includes:
[0030] Monitor and manage network management requests to the central processor of the entire system;
[0031] When receiving a third management request to the first central processor, the third management request is transmitted to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines third management data according to the third management request; wherein the third management data is pre-generated by the first central processor and transmitted to the first baseboard management controller through the switching processor;
[0032] transmitting the third management data to the management network through the switching processor;
[0033] When receiving a fourth management request to the second central processor, transmitting the fourth management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines fourth management data according to the fourth management request; wherein the fourth management data is pre-generated by the second central processor and transmitted to the first baseboard management controller through the switching processor;
[0034] The fourth management data is transmitted to the management network through the switch processor.
[0035] On the other hand, the first baseboard management controller of the smart network card is connected to the second baseboard management controller of the server through a preset communication bus;
[0036] The second baseboard management controller of the server creates a virtual storage device through a preset communication bus, and stores sensor information, state information and logs of the second baseboard management controller in the virtual storage device.
[0037] On the other hand, it also includes:
[0038] outputting the first management data and / or the second management data through a web page interface of the management network;
[0039] Generate management logs for the baseboard management controller in the entire system based on the management network.
[0040] In order to solve the above technical problems, the present invention also provides a management communication device, which is applied to a whole machine system including an intelligent network card and a server; wherein the intelligent network card is provided with a switching processor; the dedicated network port of the first baseboard management controller of the intelligent network card is communicatively connected to the first port of the switching processor; the dedicated network port of the second baseboard management controller of the server is communicatively connected to the second port of the switching processor; the third port of the switching processor is connected to a management network through a network interface; the device comprises:
[0041] A monitoring module, used to monitor the management request of the management network to the baseboard management controller in the whole system;
[0042] a first transmission module, configured to, when receiving a first management request to the first baseboard management controller, transmit the first management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller generates first management data according to the first management request;
[0043] A second transmission module, configured to transmit the first management data to a management network via the switching processor;
[0044] a third transmission module, configured to, when receiving a second management request to the second baseboard management controller, transmit the second management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines second management data according to the second management request; wherein the second management data is pre-generated by the second baseboard management controller and transmitted to the first baseboard management controller through the switching processor;
[0045] The fourth transmission module is used to transmit the second management data to the management network through the switching processor.
[0046] In order to solve the above technical problems, the present invention further provides a management communication device, comprising:
[0047] Memory for storing computer programs;
[0048] The processor is used to implement the steps of the above-mentioned management communication method when executing the computer program.
[0049] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above management communication method are implemented.
[0050] The management communication method provided by the present invention is applied to a whole machine system including an intelligent network card and a server; wherein a switching processor is provided in the intelligent network card; a dedicated network port of a first baseboard management controller of the intelligent network card is communicatively connected to a first port of the switching processor; a dedicated network port of a second baseboard management controller of the server is communicatively connected to a second port of the switching processor; a third port of the switching processor accesses a management network through a network interface; the method specifically monitors a management request of the management network to the baseboard management controller in the whole machine system; when a first management request to the first baseboard management controller is received, the first management request is transmitted to the first baseboard management controller through the switching processor, so that the first baseboard management controller generates first management data according to the first management request; the first management data is transmitted to the management network through the switching processor; when a second management request to the second baseboard management controller is received, the second management request is transmitted to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines second management data according to the second management request; wherein the second management data is pre-generated by the second baseboard management controller and transmitted to the first baseboard management controller through the switching processor; the second management data is transmitted to the management network through the switching processor.
[0051] The beneficial effect of the present invention is that, based on a whole machine system including an intelligent network card and a server, a switching processor is set for communication between the whole machine system and a management network. The switching processor connects the BMC of the intelligent network card and the BMC of the server through the first port and the second port respectively, and the third port of the switching processor accesses the management network through a network interface, so that only one hardware network port and IP address need to be allocated to the whole machine system, which greatly saves IP resources and hardware network port resources. When managing and communicating with the BMC of the whole machine system, the intelligent network card is used as the main device to transmit the management data of its own BMC and the management data of the server BMC to the management network through the switching processor respectively. The management efficiency of the management network for the BMC of the whole machine system is improved.
[0052] On the other hand, the present invention specifically configures the communication between the first baseboard management controller and the second baseboard management controller by assigning the same virtual LAN identifier to the first port and the second port of the switching processor, creating the first virtual network port and the second virtual network port based on the proprietary network port of the first baseboard management controller and the proprietary network port of the second baseboard management controller, respectively, and configuring the first static Internet Protocol address of the first virtual network port and the second static Internet Protocol address of the second virtual network port. The first central processor of the smart network card is connected to the fourth port of the switching processor through the first physical layer transmitter; the second first central processor of the server is connected to the fifth port of the switching processor through the second physical layer transmitter; the virtual LAN identifiers of the first port, the second port, the fourth port and the fifth port of the switching processor are the same, so that when the first BMC communicates with other devices in the LAN, the internal LAN message will not be leaked to the external management network, ensuring the security of the data.
[0053] In addition, the present invention also provides a management communication device, equipment and medium, with the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 This is a schematic diagram of the common server + smart network card system.
[0056] Figure 2 A schematic diagram of a server+intelligent network card system provided by an embodiment of the present invention;
[0057] Figure 3A flow chart of a communication management method provided by an embodiment of the present invention;
[0058] Figure 4 A schematic diagram of a management communication device provided by an embodiment of the present invention;
[0059] Figure 5 A schematic diagram of a communication management device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The core of the present invention is to provide a management communication method, device, equipment and medium to solve the problem that the BMC out-of-band management method of the current server + intelligent network card system wastes IP resources and hardware network port resources.
[0062] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0063] Currently, mature server + SmartNIC whole machine systems generally adopt separate management methods, treating the server and SmartNIC as two independent devices. Both the server BMC and SmartNIC BMC need to have basic out-of-band management functions, that is, accessing the BMC through the network to monitor and maintain the server motherboard or network card.
[0064] BMC has two built-in MAC modules. One of them shares the external network port with the central processing unit (CPU) through the network connection status indicator (NCSI) function of the onboard network card, which is called the shared network port. The other is the network port exclusively used by BMC, which is called the dedicated network port. Currently, server BMC and SmartNIC BMC use their own two network ports to implement the out-of-band management function of BMC.
[0065] The smart network card is inserted into the Peripheral Component Interconnect Express (PCIE) slot of the server motherboard and is managed by the BMC. The two MAC modules of each BMC have two network ports, which is equivalent to having four out-of-band management IP addresses. Four network cables need to be connected to the external management switch, which consumes a large amount of IP resources and hardware network port resources. This design increases the complexity of network management and may lead to waste of resources. In view of the above problems, the present invention provides a management communication method.
[0066] It should be noted that this method is applied to a complete system including a smart network card and a server. Figure 2 Schematic diagram of a server + intelligent network card system provided by an embodiment of the present invention. Figure 2 As shown, a switching processor is provided in the smart network card; the dedicated network port of the first BMC of the smart network card is connected to the first port of the switching processor; the dedicated network port of the second BMC of the server is connected to the second port of the switching processor; the third port of the switching processor is connected to the management network through the network interface. It can be understood that the network interface in this embodiment can be specifically selected as an RJ45 network port.
[0067] Figure 3 A flow chart of a communication management method provided by an embodiment of the present invention. Figure 3 As shown, the method includes:
[0068] S10: monitoring the management network's management request to the baseboard management controller in the whole system.
[0069] In a specific implementation, the whole machine system monitors the management network's management request to the BMC in the whole machine system in real time. It can be understood that the management request to the BMC here can be a management request to the first BMC of the smart network card, or a management request to the second BMC of the server, or a management request to the first BMC of the smart network card and a management request to the second BMC of the server, which is not limited in this embodiment.
[0070] S11: when a first management request to a first baseboard management controller is received, the first management request is transmitted to the first baseboard management controller through a switching processor, so that the first baseboard management controller generates first management data according to the first management request.
[0071] S12: Transmit the first management data to the management network through the switching processor.
[0072] Further, when a first management request to the first BMC of the smart network card is received, the first management request is transmitted to the first BMC through the switching processor, so that the first BMC generates first management data according to the first management request.
[0073] It should be noted that the first management request for the first BMC here is at least a request to obtain the sensor information, status information and log of the first BMC. Correspondingly, the first management data generated by the first BMC according to the first management request should at least include the sensor information, status information and log of the first BMC. In this embodiment, there is no restriction on the first management request and its corresponding first management data.
[0074] Finally, after the first BMC of the smart network card generates the first management data, it dynamically obtains the Internet Protocol address of the management network, and transmits the first management data to the first port of the switching processor through its dedicated network port, so that the switching processor transmits the first management data to the network interface through the third port, and finally transmits it to the management network by the network interface, so as to realize the management network's management access to the first BMC.
[0075] S13: When a second management request to the second baseboard management controller is received, the second management request is transmitted to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines the second management data according to the second management request.
[0076] The second management data is pre-generated by the second baseboard management controller and transmitted to the first baseboard management controller through the switching processor.
[0077] S14: Transmit the second management data to the management network through the switching processor.
[0078] Similarly, when a second management request to the second BMC of the server is received, the second management request is transmitted to the first BMC through the switching processor, so that the first BMC determines the second management data according to the second management request.
[0079] It should be noted that the second management request for the second BMC here is at least a request to obtain the sensor information, status information and log of the second BMC. Correspondingly, the second management data should at least include the sensor information, status information and log of the second BMC. In this embodiment, there is no restriction on the second management request and its corresponding second management data.
[0080] In addition, the second management data is pre-generated by the second BMC of the server and transmitted to the first BMC through the switching processor; when receiving the second management request, the first BMC determines the second management data corresponding to the second management request in the management data stored in itself. Specifically, the first BMC of the smart network card pre-requests data from the second BMC, and the second BMC transmits the corresponding management data to the first BMC through the switching processor according to the request to store the management data. In this embodiment, there is no restriction on the specific process of the first BMC requesting management data from the second BMC and storing it, which depends on the specific implementation situation.
[0081] Finally, after the first BMC of the smart network card determines the second management data, it dynamically obtains the Internet Protocol address of the management network, and transmits the second management data to the first port of the switching processor through its dedicated network port, so that the switching processor transmits the first management data to the network interface through the third port, and finally transmits it to the management network by the network interface, so as to realize the management access of the management network to the second BMC.
[0082] In this embodiment, based on the whole machine system including the smart network card and the server, a switching processor is set for communication between the whole machine system and the management network. The switching processor connects the BMC of the smart network card and the BMC of the server through the first port and the second port respectively, and the third port of the switching processor is connected to the management network through a network interface, so that only one hardware network port and IP address need to be allocated to the whole machine system, which greatly saves IP resources and hardware network port resources. When managing and communicating with the BMC of the whole machine system, the smart network card is used as the main device to transmit the management data of its own BMC and the management data of the server BMC to the management network through the switching processor. The management efficiency of the management network for the BMC of the whole machine system is improved.
[0083] Based on the above embodiments, in some embodiments, before the monitoring management network sends a management request to the baseboard management controller in the whole machine system, the method further includes:
[0084] S15: Allocate the same virtual local area network identifier to the first port and the second port of the switch processor.
[0085] S16: Based on the dedicated network port of the first baseboard management controller and the dedicated network port of the second baseboard management controller, create a first virtual network port and a second virtual network port respectively.
[0086] The virtual local area network tag of the first virtual network port and the virtual local area network tag of the second virtual network port both include a virtual local area network identifier.
[0087] S17: Configure a first static Internet Protocol address for the first virtual network port, and configure a second static Internet Protocol address for the second virtual network port.
[0088] In order to establish communication between the first BMC of the smart network card and the second BMC of the server, in this embodiment, the first port and the second port of the switching processor are specifically assigned to the same virtual local area network (VLAN), which is specifically embodied in that the same virtual local area network identifier (VLAN ID) is assigned to the first port and the second port of the switching processor, for example, the VLAN ID is 1000. VLAN is a network technology that allows a physical local area network (LAN) to be divided into multiple logically independent sub-networks. Each sub-network is called a VLAN and has its own broadcast domain and communication rules. In this embodiment, the first port and the second port of the switching processor are assigned to the same VLAN, so that the first port and the second port communicate under the VLAN.
[0089] Further based on the proprietary network port of the first BMC and the proprietary network port of the second BMC, a first virtual network port and a second virtual network port are created respectively. It should be noted that the virtual local area network tag (VLAN Tag) is a tag used to carry VLAN ID information, and the VLAN ID is a unique identifier contained in the VLAN Tag. In simple terms, the VLAN ID is the unique identifier of the VLAN, and the VLAN Tag is a carrier for transmitting the VLAN ID information in a data packet. Therefore, the VLAN Tag of the first virtual network port and the VLAN Tag of the second virtual network port both contain the VLAN ID.
[0090] Finally, a first static Internet Protocol (IP) address of the first virtual network port is configured, and a second static Internet Protocol address of the second virtual network port is configured. In this way, when the first BMC and the second BMC communicate, data transmission between the first BMC and the second BMC can be achieved based on VLAN through the first static Internet Protocol address of the first virtual network port and the second static Internet Protocol address of the second virtual network port.
[0091] In this embodiment, the same virtual LAN identifier is assigned to the first port and the second port of the switching processor, and a first virtual network port and a second virtual network port are created based on the proprietary network port of the first baseboard management controller and the proprietary network port of the second baseboard management controller, respectively, and a first static Internet Protocol address of the first virtual network port is configured, and a second static Internet Protocol address of the second virtual network port is configured, thereby realizing the configuration of communication between the first baseboard management controller and the second baseboard management controller.
[0092] Based on the above embodiments, in some embodiments, the second baseboard management controller pre-generates the second management data, and transmits the second management data to the first baseboard management controller through the switching processor, including:
[0093] S130: generating, by the first baseboard management controller, a data acquisition request for the second baseboard management controller; wherein the data acquisition request represents a request for acquiring sensor information, status information, and logs of the second baseboard management controller;
[0094] S131: Based on the first baseboard management controller, generate a request data packet according to the data acquisition request and the virtual local area network tag;
[0095] S132: Based on the first baseboard management controller, obtain a second static Internet Protocol address of the second virtual network port;
[0096] S133: Based on the first baseboard management controller, send the request data packet to the second virtual network port of the second baseboard management controller according to the second static Internet Protocol address of the second virtual network port;
[0097] S134: When the second baseboard management controller receives the request data packet, it parses the request data packet to obtain a data acquisition request and a virtual local area network tag;
[0098] S135: determining whether the virtual local area network tag is correct by the second baseboard management controller; if the second baseboard management controller confirms that the virtual local area network tag is correct, proceeding to step S136;
[0099] S136: Generate corresponding second management data according to the data acquisition request; wherein the second management data includes sensor information, status information and log of the second baseboard management controller;
[0100] S137: Based on the second baseboard management controller, generate a feedback data packet according to the second management data and the virtual local area network tag;
[0101] S138: Acquire a first static Internet Protocol address of the first virtual network port based on the second baseboard management controller;
[0102] S139: Based on the second baseboard management controller, send the feedback data packet to the first virtual network port of the first baseboard management controller according to the first static Internet Protocol address of the first virtual network port, so that the first baseboard management controller parses the feedback data packet to obtain the second management data.
[0103] In a specific implementation, since the first port and the second port of the switching processor are assigned to the same VLAN, the second BMC pre-generates the second management data and transmits it to the first BMC through the switching processor. Specifically, the first BMC generates a data acquisition request for the second BMC. It can be understood that the data acquisition request represents a request to obtain sensor information, status information, and logs of the second BMC.
[0104] Further, the first BMC generates a request data packet according to the data acquisition request and the VLAN Tag, and obtains the second static IP address of the second virtual network port of the second BMC. Then the first BMC sends the request data packet to the second virtual network port of the second BMC according to the second static IP address of the second virtual network port.
[0105] When the second BMC receives the request data packet, it parses the request data packet to obtain the data acquisition request and VLANTag. The second BMC determines whether the VLAN Tag is correct; if the second BMC confirms that the VLAN Tag is incorrect, the process ends; if the second BMC confirms that the VLAN Tag is correct, the corresponding second management data is generated according to the data acquisition request; wherein the second management data includes the sensor information, status information and log of the second BMC.
[0106] After generating the second management data, the second BMC generates a feedback data packet according to the second management data and the VLAN Tag, and obtains the first static IP address of the first virtual network port. Further, the second BMC sends the feedback data packet to the first virtual network port of the first BMC according to the first static IP address of the first virtual network port, so that the first BMC parses the feedback data packet to obtain the second management data.
[0107] In this way, the transmission of management data from the second BMC to the first BMC is achieved.
[0108] Based on the above embodiments, in some embodiments, in order to enable the management network to perform management operations on the CPU of the smart network card and the CPU of the server, such as Figure 2 As shown, the first CPU of the smart network card is specifically connected to the fourth port of the switching processor through a first physical layer (PHY) transmitter; the second CPU of the server is connected to the fifth port of the switching processor through a second PHY transmitter.
[0109] It should be noted that the VLANIDs of the first port, the second port, the fourth port and the fifth port of the switching processor are the same. Therefore, when the first BMC, the second BMC, the first CPU and the second CPU communicate with each other, they can communicate through VLAN, thereby ensuring that the internal LAN messages will not be leaked to the external management network, thereby ensuring the security of the data.
[0110] Correspondingly, the management network's management access process to the CPU of the entire system is as follows:
[0111] S18: monitoring the management network's management request to the central processor of the whole system;
[0112] S19: when receiving a third management request to the first central processor, transmitting the third management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines third management data according to the third management request;
[0113] Wherein, the third management data is pre-generated by the first central processor and transmitted to the first baseboard management controller through the switching processor;
[0114] S20: transmitting the third management data to the management network through the switching processor;
[0115] S21: when receiving a fourth management request to the second central processor, transmitting the fourth management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines fourth management data according to the fourth management request;
[0116] Wherein, the fourth management data is pre-generated by the second central processor and transmitted to the first baseboard management controller through the switching processor;
[0117] S22: Transmit the fourth management data to the management network through the switch processor.
[0118] Specifically, the whole machine system monitors the management network's management request for the CPU of the whole machine system. When receiving the third management request for the first CPU, the third management request is transmitted to the first BMC through the switching processor, specifically, the third management request is transmitted to the first BMC through the network interface, the third port of the switching processor, and the first port in sequence.
[0119] The first BMC determines the third management data according to the third management request. It should be noted that the third management data is pre-generated by the first CPU and transmitted to the first BMC through the switching processor. The process is similar to the data interaction process between the first BMC and the second BMC in the above embodiment, both of which are implemented based on VLAN, and will not be repeated in this embodiment. Finally, the third management data is transmitted to the management network through the switching processor, so that the management network can obtain the management data of the first CPU.
[0120] When a fourth management request for the second CPU is received, the fourth management request is transmitted to the first BMC through the switching processor, specifically, sequentially through the network interface, the third port and the first port of the switching processor.
[0121] The first BMC determines the fourth management data according to the fourth management request. It should be noted that the fourth management data is pre-generated by the second CPU and transmitted to the first BMC through the switching processor, and the process is similar to the data interaction process between the first BMC and the second BMC in the above embodiment, both of which are implemented based on VLAN, and will not be described in detail in this embodiment. Finally, the fourth management data is transmitted to the management network through the switching processor, so that the management network can obtain the management data of the second CPU.
[0122] In this way, the management network can access the CPU of the entire system.
[0123] On the basis of the above embodiments, in some embodiments, when the smart network card and the server are connected by not configuring VLAN, or the server hardware cannot adapt to VLAN, the first BMC of the smart network card and the second BMC of the server can also be connected through a preset communication bus. In this embodiment, there is no restriction on the preset communication bus, for example, it can be an Inter-Integrated Circuit (I2C) bus or a Universal Serial Bus (USB), depending on the specific implementation.
[0124] The first BMC is connected to the second BMC of the server through a preset communication bus to realize communication between the first BMC and the second BMC, so that the switch processor does not need any VLAN division, and only needs to ensure the connectivity between the first port and the third port of the switch processor and the normal access of the first BMC to the management network.
[0125] Furthermore, the second BMC of the server can create a virtual storage device, such as an Electrically Erasable Programmable Read-Only Memory (EEPROM), through a preset communication bus, and store the sensor information, status information and logs of the second BMC in the virtual storage device for reading and processing by the first BMC.
[0126] In addition, when the first BMC and the second BMC are connected through the I2C bus, the communication between the first BMC and the second BMC can be realized by implementing the in-band Intelligent Platform Management Bus (IPMB) protocol. This communication method utilizes the in-band Intelligent Platform Management Interface (IPMI) command to enable various information to be transmitted between the two BMCs.
[0127] When more complex information needs to be synchronized, such as event logs or image files that need to be transferred during firmware upgrades, the USB channel can be used to achieve this. For example, the log packages of the second BMC can be synchronized to the first BMC through the USB channel regularly for further analysis and management.
[0128] Through the above methods, efficient communication and data synchronization between the two BMCs can be achieved, thereby improving the management efficiency and reliability of the entire system. Whether it is simple information transmission or complex data synchronization, you can choose the appropriate communication method and protocol according to actual needs.
[0129] Based on the above embodiments, in some embodiments, the following further includes:
[0130] S23: outputting the first management data and / or the second management data through a web page interface of the management network;
[0131] S24: Generate a management log for the baseboard management controller in the entire system based on the management network.
[0132] In a specific implementation, the system can provide the user with the output of the first management data and / or the second management data through the web interface of the management network. These data may include key information such as operating status, performance indicators, resource usage, and alarm information, helping the user to understand and manage the status of the entire system in real time.
[0133] In addition, based on the management network, the system can also generate management logs for the baseboard management controllers in the entire system, including the management logs of the first BMC and the management logs of the second BMC. These logs record various operations and events of the BMC during system operation, including but not limited to system startup and shutdown records, fault and alarm records, configuration change records, and performance monitoring records. Through these management logs, users can fully understand the system operation status, discover and solve potential problems in a timely manner, and optimize system performance and reliability.
[0134] In the above embodiments, the management communication method is described in detail. The present invention also provides a corresponding embodiment of the management communication device.
[0135] Figure 4 A schematic diagram of a management communication device provided by an embodiment of the present invention. The device is applied to a whole machine system including an intelligent network card and a server; wherein a switching processor is provided in the intelligent network card; a dedicated network port of a first baseboard management controller of the intelligent network card is connected to a first port of the switching processor for communication; a dedicated network port of a second baseboard management controller of the server is connected to a second port of the switching processor for communication; a third port of the switching processor is connected to a management network through a network interface; Figure 4 As shown, the device comprises:
[0136] Monitoring module 10, used for monitoring the management request of the management network to the baseboard management controller in the whole system;
[0137] The first transmission module 11 is used for transmitting the first management request to the first baseboard management controller through the switching processor when receiving the first management request to the first baseboard management controller, so that the first baseboard management controller generates first management data according to the first management request;
[0138] A second transmission module 12, configured to transmit the first management data to the management network via the switching processor;
[0139] The third transmission module 13 is used for, when receiving a second management request to the second baseboard management controller, transmitting the second management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines the second management data according to the second management request; wherein the second management data is pre-generated by the second baseboard management controller and transmitted to the first baseboard management controller through the switching processor;
[0140] The fourth transmission module 14 is configured to transmit the second management data to the management network through the switching processor.
[0141] In some embodiments, it also includes:
[0142] an allocating submodule, configured to allocate the same virtual local area network identifier to the first port and the second port of the switch processor;
[0143] A creation submodule is used to create a first virtual network port and a second virtual network port respectively based on the proprietary network port of the first baseboard management controller and the proprietary network port of the second baseboard management controller; wherein the virtual local area network tag of the first virtual network port and the virtual local area network tag of the second virtual network port both include a virtual local area network identifier;
[0144] The configuration submodule is used to configure a first static Internet Protocol address of the first virtual network port and a second static Internet Protocol address of the second virtual network port.
[0145] In some embodiments, the second baseboard management controller pre-generates the second management data, and transmits the second management data to the first baseboard management controller through the switching processor. The specific process is:
[0146] Generate a data acquisition request to the second baseboard management controller through the first baseboard management controller; wherein the data acquisition request represents a request to acquire sensor information, status information and log of the second baseboard management controller;
[0147] Based on the first baseboard management controller, a request data packet is generated according to the data acquisition request and the virtual local area network tag;
[0148] Based on the first baseboard management controller, obtaining a second static Internet Protocol address of the second virtual network port;
[0149] Based on the first baseboard management controller, sending the request data packet to the second virtual network port of the second baseboard management controller according to the second static Internet Protocol address of the second virtual network port;
[0150] When the second baseboard management controller receives the request data packet, it parses the request data packet to obtain a data acquisition request and a virtual local area network tag;
[0151] Determining whether the virtual local area network label is correct by the second baseboard management controller;
[0152] If the second baseboard management controller confirms that the virtual local area network tag is correct, it generates corresponding second management data according to the data acquisition request; wherein the second management data includes sensor information, status information and log of the second baseboard management controller;
[0153] Based on the second baseboard management controller, a feedback data packet is generated according to the second management data and the virtual local area network tag;
[0154] Based on the second baseboard management controller, obtaining a first static Internet Protocol address of the first virtual network port;
[0155] Based on the second baseboard management controller, a feedback data packet is sent to the first virtual network port of the first baseboard management controller according to the first static Internet Protocol address of the first virtual network port, so that the first baseboard management controller parses the feedback data packet to obtain the second management data.
[0156] In some embodiments, the first central processor of the smart network card is communicatively connected to the fourth port of the switching processor via the first physical layer transmitter; the second central processor of the server is communicatively connected to the fifth port of the switching processor via the second physical layer transmitter;
[0157] The virtual local area network identifiers of the first port, the second port, the fourth port and the fifth port are the same.
[0158] In some embodiments, it also includes:
[0159] The first monitoring submodule is used to monitor the management request of the management network to the central processor of the whole system;
[0160] a first transmission submodule, configured to, when receiving a third management request to the first central processor, transmit the third management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines third management data according to the third management request; wherein the third management data is pre-generated by the first central processor and transmitted to the first baseboard management controller through the switching processor;
[0161] A second transmission submodule, used for transmitting the third management data to the management network through the switching processor;
[0162] a third transmission submodule, configured to, when receiving a fourth management request to the second central processor, transmit the fourth management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines fourth management data according to the fourth management request; wherein the fourth management data is pre-generated by the second central processor and transmitted to the first baseboard management controller through the switching processor;
[0163] The fourth transmission submodule is used to transmit the fourth management data to the management network through the switching processor.
[0164] In some embodiments, the first baseboard management controller of the smart network card is connected to the second baseboard management controller of the server via a preset communication bus;
[0165] The second baseboard management controller of the server creates a virtual storage device through a preset communication bus, and stores the sensor information, state information and log of the second baseboard management controller in the virtual storage device.
[0166] In some embodiments, it also includes:
[0167] An output submodule, used for outputting the first management data and / or the second management data through a web page interface of the management network;
[0168] The generation submodule is used to generate a management log for the baseboard management controller in the entire system based on the management network.
[0169] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0170] Figure 5 A schematic diagram of a management communication device provided by an embodiment of the present invention. Figure 5 As shown, the management communication equipment includes:
[0171] A memory 20, for storing computer programs;
[0172] The processor 21 is used to implement the steps of the communication management method mentioned in the above embodiment when executing the computer program.
[0173] The management communication device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0174] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0175] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the management communication method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to data related to the management communication method.
[0176] In some embodiments, the management communication device may further include a display screen 22 , an input and output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0177] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the management communication device, and may include more or less components than shown in the figure.
[0178] In addition, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned management communication method when executed by a processor.
[0179] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0180] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.
[0181] The above is a detailed introduction to the management communication method, device, equipment and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
[0182] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A management communication method, characterized in that: Applicable to a whole machine system including a smart network card and a server; wherein a switching processor is provided in the smart network card; a dedicated network port of a first baseboard management controller of the smart network card is communicatively connected to a first port of the switching processor; a dedicated network port of a second baseboard management controller of the server is communicatively connected to a second port of the switching processor; a third port of the switching processor is connected to a management network through a network interface; the method comprises: Monitoring management network's management requests to the baseboard management controller in the whole system; When receiving a first management request to the first baseboard management controller, transmitting the first management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller generates first management data according to the first management request; transmitting the first management data to a management network through the switch processor; When receiving a second management request to the second baseboard management controller, transmitting the second management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines second management data according to the second management request; wherein the second management data is pre-generated by the second baseboard management controller and transmitted to the first baseboard management controller through the switching processor; The second management data is transmitted to the management network through the switch processor.
2. The management communication method according to claim 1, characterized in that: Before the monitoring management network sends a management request to the baseboard management controller in the whole machine system, the method further includes: assigning a same virtual local area network identifier to a first port and a second port of the switch processor; Based on the proprietary network port of the first baseboard management controller and the proprietary network port of the second baseboard management controller, respectively create a first virtual network port and a second virtual network port; wherein the virtual local area network tag of the first virtual network port and the virtual local area network tag of the second virtual network port both contain the virtual local area network identifier; A first static Internet Protocol address is configured for the first virtual network port, and a second static Internet Protocol address is configured for the second virtual network port.
3. The management communication method according to claim 2, characterized in that: The specific process of the second baseboard management controller pre-generating the second management data and transmitting the second management data to the first baseboard management controller through the switching processor includes: Generate a data acquisition request to the second baseboard management controller through the first baseboard management controller; wherein the data acquisition request represents a request to acquire sensor information, status information and log of the second baseboard management controller; Based on the first baseboard management controller, a request data packet is generated according to the data acquisition request and the virtual local area network tag; Based on the first baseboard management controller, obtaining a second static Internet Protocol address of the second virtual network port; Based on the first baseboard management controller, sending the request data packet to the second virtual network port of the second baseboard management controller according to the second static Internet Protocol address of the second virtual network port; When the second baseboard management controller receives the request data packet, it parses the request data packet to obtain a data acquisition request and a virtual local area network tag; Determining whether the virtual local area network label is correct by the second baseboard management controller; If the second baseboard management controller confirms that the virtual local area network tag is correct, it generates corresponding second management data according to the data acquisition request; wherein the second management data includes sensor information, status information and log of the second baseboard management controller; Based on the second baseboard management controller, a feedback data packet is generated according to the second management data and the virtual local area network tag; Based on the second baseboard management controller, obtaining a first static Internet Protocol address of the first virtual network port; Based on the second baseboard management controller, a feedback data packet is sent to the first virtual network port of the first baseboard management controller according to the first static Internet Protocol address of the first virtual network port, so that the first baseboard management controller parses the feedback data packet to obtain the second management data.
4. The management communication method according to claim 2, characterized in that: The first central processor of the smart network card is communicatively connected to the fourth port of the switching processor via the first physical layer transmitter; the second central processor of the server is communicatively connected to the fifth port of the switching processor via the second physical layer transmitter; The virtual local area network identifiers of the first port, the second port, the fourth port and the fifth port are the same.
5. The management communication method according to claim 4, characterized in that: Also includes: Monitor and manage network management requests to the central processor of the entire system; When receiving a third management request to the first central processor, the third management request is transmitted to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines third management data according to the third management request; wherein the third management data is pre-generated by the first central processor and transmitted to the first baseboard management controller through the switching processor; transmitting the third management data to the management network through the switching processor; When receiving a fourth management request to the second central processor, transmitting the fourth management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines fourth management data according to the fourth management request; wherein the fourth management data is pre-generated by the second central processor and transmitted to the first baseboard management controller through the switching processor; The fourth management data is transmitted to the management network through the switch processor.
6. The management communication method according to any one of claims 1 to 5, characterized in that: The first baseboard management controller of the smart network card is connected to the second baseboard management controller of the server through a preset communication bus; The second baseboard management controller of the server creates a virtual storage device through a preset communication bus, and stores sensor information, state information and logs of the second baseboard management controller in the virtual storage device.
7. The management communication method according to claim 1, characterized in that: Also includes: outputting the first management data and / or the second management data through a web page interface of the management network; Generate management logs for the baseboard management controller in the entire system based on the management network.
8. A management communication device, characterized in that: Applicable to a whole machine system including an intelligent network card and a server; wherein the intelligent network card is provided with a switching processor; the dedicated network port of the first baseboard management controller of the intelligent network card is communicatively connected with the first port of the switching processor; the dedicated network port of the second baseboard management controller of the server is communicatively connected with the second port of the switching processor; the third port of the switching processor is connected to a management network through a network interface; the device comprises: A monitoring module, used to monitor the management request of the management network to the baseboard management controller in the whole system; a first transmission module, configured to, when receiving a first management request to the first baseboard management controller, transmit the first management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller generates first management data according to the first management request; A second transmission module, configured to transmit the first management data to a management network via the switching processor; a third transmission module, configured to, when receiving a second management request to the second baseboard management controller, transmit the second management request to the first baseboard management controller through the switching processor, so that the first baseboard management controller determines second management data according to the second management request; wherein the second management data is pre-generated by the second baseboard management controller and transmitted to the first baseboard management controller through the switching processor; The fourth transmission module is used to transmit the second management data to the management network through the switching processor.
9. A management communication device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the communication management method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the communication management method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Removing method, device and equipment of server virtual address
CN102983989A
Out-of-band management system and server based on intelligent network card
CN113645047A
Switch management network construction method and system, terminal and storage medium
CN115134256A
Intelligent network card out-of-band management system, method, device, equipment, medium and product
CN115801477A
Server and network card association registration method and device, electronic equipment and storage medium
CN115834531A
Cited By
Network connection device and electronic equipment
CN119402471A
Network connection device and electronic device
CN119402471B
Communication method, device and system and electronic equipment
CN120455435A
Communication method, device, system and electronic equipment
CN120455435B
Websocket connections supporting system management communications
US12665880B2
