Data transmission method, device, gateway node, storage medium and system
By setting up local gateway nodes in the server cluster and using the intra-group and upper-layer networks to form an auxiliary communication network, the stability problem of the out-of-band management network in the event of data traffic and equipment failure is solved, and real-time performance and stability are improved.
Patent Information
- Application Number
- CN202411027127.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-30
AI Technical Summary
When there is a large amount of data traffic or network equipment failure in the out-of-band management network of the server cluster, it is easy to cause network fluctuations, affecting management stability and real-time performance.
Set up local gateway nodes in the local server group, communicate with device nodes through the intra-group network, and communicate with the bastion host through the upper-layer network to form an auxiliary communication network to isolate the impact of abnormal situations on out-of-band management and improve real-time performance and stability. .
Through the auxiliary communication network of the local gateway node, the impact of abnormal situations on out-of-band management is physically isolated, and the real-time and stability of out-of-band management of the server cluster are improved.
Smart Images

Figure CN118555217B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a data transmission method, device, gateway node, storage medium and system. Background Art
[0002] In the server field, out-of-band management (OOBM) is usually used to maintain server clusters. Out-of-band management means that it does not rely on the control of the server's main operating system, but obtains server status monitoring information and completes terminal control of the server through the baseboard management controller (BMC); all control information is sent down and status information is uploaded through an independent management channel (usually Ethernet).
[0003] The out-of-band management channels of all servers are finally connected to the bastion host. Server maintenance personnel can obtain the status monitoring information of each server and initiate remote control of each server by connecting to the out-of-band management interface of the bastion host. When there is a large amount of data traffic on the Ethernet in the server cluster, causing the continuous network load to be too high, or when the Ethernet network equipment fails and causes network congestion, it is very easy to cause fluctuations in the out-of-band management network of the server cluster, affecting the stability of the out-of-band management channel and the real-time nature of information transmission. Summary of the invention
[0004] In view of this, the present invention provides a data transmission method, device, gateway node, storage medium and system to solve the problem of poor stability of out-of-band management.
[0005] In a first aspect, the present invention provides a data transmission method, applied to a local gateway node of a local server group, comprising:
[0006] When the local gateway node is in the master mode, obtaining a first report transaction data frame broadcasted by a first device node in the local server group to an intra-group network; the first device node is connected to the local gateway node through the intra-group network, a frame identifier of the first report transaction data frame is an identifier of the local gateway node, and a data segment of the first report transaction data frame includes report transaction information of the first device node;
[0007] Generate reporting information to be reported to the bastion host according to the reporting transaction information; the local gateway node is connected to the bastion host through an upper layer network, and the bastion host is configured to be connected to gateway nodes of multiple server groups;
[0008] Broadcast a second report transaction data frame to the upper network; the frame identifier of the second report transaction data frame is the identifier of the bastion machine, and the data segment of the second report transaction data frame includes the reporting information.
[0009] In a second aspect, the present invention provides a data transmission device, applied to a local gateway node of a local server group, comprising:
[0010] an acquisition module, configured to acquire, when the local gateway node is in a master mode, a first report transaction data frame broadcasted by a first device node in the local server group to an intra-group network; the first device node is connected to the local gateway node via the intra-group network, a frame identifier of the first report transaction data frame is an identifier of the local gateway node, and a data segment of the first report transaction data frame includes report transaction information of the first device node;
[0011] A processing module, configured to generate report information to be reported to a bastion host according to the report transaction information; the local gateway node is connected to the bastion host via an upper layer network, and the bastion host is configured to be connected to gateway nodes of multiple server groups;
[0012] A broadcast module is used to broadcast a second report transaction data frame to the upper network; the frame identifier of the second report transaction data frame is the identifier of the bastion machine, and the data segment of the second report transaction data frame includes the reporting information.
[0013] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the data transmission method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0014] In a fourth aspect, the present invention provides an out-of-band management system, comprising: a bastion host and a plurality of server groups; the server group comprises at least one gateway node and a plurality of device nodes;
[0015] The bastion host communicates with the gateway nodes of the multiple server groups via an upper layer network;
[0016] The gateway node in the server group communicates with multiple device nodes in the same server group through an intra-group network;
[0017] The gateway node is used to execute the data transmission method of the first aspect or any corresponding embodiment thereof.
[0018] In a fifth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the data transmission method of the first aspect or any corresponding embodiment thereof.
[0019] The present invention sets a local gateway node for a local server group, and the local gateway node is networked with the device nodes in the group through the intra-group network, and is networked with the bastion host through the upper network; the intra-group network and the upper network can be used as auxiliary communication networks for out-of-band management, so that the device nodes in the server group can upload the report transaction information of the out-of-band management to the bastion host through the local gateway node, which physically isolates the fluctuation of the server cluster out-of-band management Ethernet network caused by abnormal situations, and improves the real-time and stability of the out-of-band management. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are 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.
[0021] Figure 1 is a structural schematic diagram of an out-of-band management system according to an embodiment of the present invention;
[0022] Figure 2 is a flow chart of a data transmission method according to an embodiment of the present invention;
[0023] Figure 3 is a flow chart of another data transmission method according to an embodiment of the present invention;
[0024] Figure 4 is another structural schematic diagram of an out-of-band management system according to an embodiment of the present invention;
[0025] Figure 5 is a flowchart of initializing active and standby gateway nodes in an out-of-band management system according to an embodiment of the present invention;
[0026] Figure 6 is a workflow diagram of active and standby gateway nodes in an out-of-band management system according to an embodiment of the present invention;
[0027] Figure 7 is a structural block diagram of a data transmission device according to an embodiment of the present invention;
[0028] Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0030] According to an embodiment of the present invention, a data transmission method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] In this embodiment, a data transmission method is provided, which is applied to a local gateway node of a local server group. In this embodiment, the server cluster is divided into multiple server groups, each server group is provided with a corresponding gateway node, and multiple gateway nodes are used to implement out-of-band management of the server cluster; wherein the gateway node of the local server group is referred to as a local gateway node.
[0032] Figure 1 FIG. 1 shows a schematic diagram of the structure of an out-of-band management system for a server cluster. Figure 1 As shown in the figure, each server group contains multiple servers. Each server acts as a device node and communicates with the corresponding gateway node through the network within the group. In addition, the gateway node of each server group communicates with the bastion host through the upper network. Figure 1 Taking the structure shown as an example, server group 1 includes device nodes 1 to 3, and server group 2 includes device nodes 4 to 6. Generally, different server groups are provided with their own intra-group networks.
[0033] In this embodiment, the gateway node can realize the communication between the device node and the bastion host by using the intra-group network and the upper-layer network. The intra-group network and the upper-layer network can be specifically a CAN (Controller Area Network) bus network. It can be understood that Figure 1 The gateway node A and the gateway node B in the embodiment can both be used as local gateway nodes to execute the data transmission method. Figure 2 is a flow chart of a data transmission method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps.
[0034] Step S201, when the local gateway node is in the master mode, obtain a first report transaction data frame broadcasted by a first device node in the local server group to the intra-group network. The first device node is connected to the local gateway node through the intra-group network, the frame identifier of the first report transaction data frame is the identifier of the local gateway node, and the data segment of the first report transaction data frame includes the report transaction information of the first device node.
[0035] In this embodiment, in order to realize the upper-layer network networking, the bastion host and each gateway node are provided with a unique identifier (Identify, ID) to ensure the access uniqueness and orderly communication of the nodes in the upper-layer network. Similarly, for the intra-group network, the gateway node corresponding to the server group and each device node in the server group are also provided with a unique identifier (ID) in the group. That is, the local gateway node of the local server group is also provided with a corresponding identifier (ID).
[0036] In addition, for the device nodes in the local server group, the identifier (ID) of the corresponding local gateway node can be obtained in advance. When it is necessary to report the report transaction information related to the out-of-band management, the corresponding data frame can be sent to the local gateway node based on the identifier of the local gateway node. Among them, the data frame transmitted in the network includes a frame identifier representing the destination node and a data segment containing the corresponding data (Data); if the first device node in the local server group needs to report a transaction, the identifier of the local gateway node can be used as the frame identifier of the data frame, and the corresponding report transaction information can be written into the data segment of the data frame, thereby generating a corresponding report physical data frame, that is, the first report transaction data frame.
[0037] Taking the CAN bus standard data frame as an example, the CAN bus standard data frame includes an arbitration segment, a control end, a data segment of variable length, etc., wherein the arbitration segment is used to represent the corresponding frame identifier, and the data segment can record the data for transmission.
[0038] After the first device node generates the first report transaction data frame, it can broadcast the first report transaction data frame to the intra-group network. The local network node can receive the first report transaction data frame. Since the frame identifier of the first report transaction data frame is the identifier of the local network node, the local network node can determine that the first report transaction data frame is a data frame sent to itself, and then the first report transaction data frame can be processed.
[0039] Among them, if the local gateway node is in the main mode indicating normal transmission and reception, the local gateway node needs to process the first report transaction data frame after obtaining it. If the local gateway node is not currently in the main mode, for example, the local gateway node is in the standby mode of the bus monitoring state, then the local gateway node can also obtain the first report transaction data frame, but will not process the first report transaction data frame, that is, it is not necessary to report the report transaction information in the first report transaction data frame.
[0040] like Figure 1 As shown, the identifier of the bastion host is X0, that is, ID=X0, the identifier of gateway node A is A0, that is, ID=A0, and the identifier of gateway node B is B0, that is, ID=B0; wherein X0, A0, and B0 are different from each other. Moreover, for server group 1, the identifier of device node 1 inside it is A1 (ID=A1), the identifier of device node 2 is A2 (ID=A2), and the identifier of device node 3 is A3 (ID=A3), and A0, A1, A2, and A3 are different from each other. For server group 2, the identifier of device node 4 inside it is B1 (ID=B1), the identifier of device node 5 is B2 (ID=B2), and the identifier of device node 6 is B3 (ID=B3), and B0, B1, B2, and B3 are different from each other.
[0041] As described above, both gateway node A and gateway node B can be used as local gateway nodes. Unless otherwise specified, gateway node A is used as the local gateway node for example.
[0042] For example, if the local gateway node is gateway node A, the identifier of the local gateway node is A0. If device node 1 currently needs to report relevant report transaction information, such as sensor information in the server, device status information, mouse and keyboard information, etc., then device node 1 can be used as the first device node to generate a first report transaction data frame, the frame identifier of which is the identifier of the local gateway node, i.e. A0, and the data segment of which includes the corresponding report transaction information.
[0043] Step S202, generating reporting information to be reported to the bastion host according to the reporting transaction information; the local gateway node is connected to the bastion host through the upper network, and the bastion host is configured to be connected to the gateway nodes of multiple server groups.
[0044] In this embodiment, if the local gateway node is in the main mode (also called normal sending and receiving mode), after obtaining the first report transaction data frame, it can extract the report transaction information in the data segment, and then generate the report information to be reported to the bastion host based on the report transaction information.
[0045] For example, the report transaction information may be directly used as the reporting information; or, the report transaction information may be filtered and the filtered information may be used as the reporting information, which may be determined based on actual needs.
[0046] like Figure 1 As shown, each gateway node is connected to the bastion host through the upper network, and the bastion host can obtain the information reported by each gateway node through the upper network. It can be understood that the gateway nodes of different server groups can all realize information reporting based on the data transmission method provided in this embodiment.
[0047] Step S203: broadcast a second report transaction data frame to the upper layer network. The frame identifier of the second report transaction data frame is the identifier of the bastion machine, and the data segment of the second report transaction data frame includes reporting information.
[0048] In this embodiment, similar to the first device node broadcasting the first report transaction data frame, the local network node also generates a corresponding data frame, namely, the second report transaction data frame, when reporting to the bastion host. The difference is that the second report transaction data frame needs to be broadcast to the upper network, and the frame identifier of the second report transaction data frame is the identifier of the bastion host, and the data segment of the second report transaction data frame includes the reporting information. Figure 1 Taking the example shown, the identifier of the bastion host is X0, and the frame identifier of the second reporting transaction data frame is X0.
[0049] The bastion host can obtain the second report transaction data frame through the upper network, and then extract the reporting information therein, and finally realize that the server reports the corresponding out-of-band management transaction information to the bastion host.
[0050] Among them, in general, the out-of-band management is performed by the BMC (baseboard management controller) chip of the server. Specifically, the BMC chip can group and divert the out-of-band management transactions, and transmit the report transaction information with high real-time requirements in the server through the CAN out-of-band management network (including the intra-group network and the upper layer network) provided by this implementation, while the remaining large amounts of data are still transmitted through the Ethernet network.
[0051] The data transmission method provided in this embodiment sets a local gateway node for the local server group, and the local gateway node is networked with the device nodes in the group through the intra-group network, and is networked with the bastion host through the upper-layer network; the intra-group network and the upper-layer network can be used as auxiliary communication networks for out-of-band management, so that the device nodes in the server group can upload the report transaction information of out-of-band management to the bastion host through the local gateway node, which physically isolates the fluctuation of the server cluster out-of-band management Ethernet network caused by abnormal situations, and improves the real-time and stability of out-of-band management.
[0052] In this embodiment, a data transmission method is provided, which is applied to the local gateway node of a local server group; wherein the local gateway node records the upper layer sequence number of the local gateway node in the upper layer network, and also records in sequence the correspondence between the identifiers of multiple device nodes in the group network and the corresponding device identifications. Figure 3 is a flow chart of a data transmission method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps.
[0053] Step S301, when the local gateway node is initially in the master mode, obtain the identifier assigned to the local gateway node by the bastion host through the upper network, and determine the upper layer sequence number of the local gateway node according to the order in which the bastion host assigns the gateway node identifiers.
[0054] In this embodiment, if the local gateway node is in the master mode initially, it can determine its own identifier and sequence number, that is, the upper layer sequence number.
[0055] Specifically, the upper-layer network is provided with multiple gateway nodes, and the identifiers of these gateway nodes are allocated by the bastion host; and the bastion host allocates identifiers to the gateway nodes of the upper-layer network in a certain order, and then based on the order in which the bastion host allocates the gateway node identifiers, each gateway node can determine its own sequence number in the upper-layer network, that is, the upper-layer sequence number.
[0056] like Figure 1 As shown in the figure, if the bastion host first assigns identifier A0 to gateway node A and then assigns identifier B0 to gateway node B, the order of assigning identifiers to gateway node A is higher and its upper layer sequence number is smaller. Figure 1 As shown, SN2 represents the upper layer sequence number, then the upper layer sequence number of gateway node A is 01, that is, SN2=01; correspondingly, the upper layer sequence number of gateway node B is 02, that is, SN2=02.
[0057] Step S302: assign corresponding identifiers in sequence to a plurality of device nodes connected to the local gateway node through the intra-group network, and determine the intra-group sequence number of each device node according to the sequence of assigning the device node identifiers.
[0058] In this embodiment, similar to the process in which the bastion host assigns identifiers to each gateway node of the upper-layer network, the local gateway node will also assign corresponding identifiers in sequence to multiple device nodes connected to the local gateway node through the intra-group network; similarly, based on the order in which the device node identifiers are assigned, the sequence number of each device node in the intra-group network, i.e., the intra-group sequence number, can be determined.
[0059] like Figure 1As shown in FIG. 1 , when gateway node A allocates identifiers to device nodes 1 to 3 in the intra-group network, if the identifiers are allocated in the order of device node 1, device node 2, and device node 3, the intra-group serial numbers of device nodes 1 to 3 are also set in sequence. Figure 1 As shown in the figure, SN1 represents the intra-group sequence number, and the intra-group sequence numbers of device nodes 1 to 3 are: SN1=01, SN1=02, SN1=03. Similarly, if gateway node B allocates identifiers in the order of device node 4, device node 5, and device node 6, the intra-group sequence numbers of device nodes 4 to 6 are: SN1=01, SN1=02, SN1=03.
[0060] In some optional implementations, when the bastion host assigns identifiers to each gateway node, the bastion host is the master node of the upper network, the gateway node is the slave node of the upper network, and the master node assigns identifiers to each slave node; similarly, when the gateway node assigns identifiers to each device node, the gateway node is the master node of the intra-group network, and the device node is the slave node of the intra-group network, and the master node also assigns identifiers to each slave node. Specifically, the process of assigning identifiers may include the following steps a1 to a4.
[0061] Step a1: The master node selects a unique target identifier from the current identifier range and broadcasts an allocation data frame including the target identifier to the target network.
[0062] Step a2: The slave node receives the allocation data frame broadcast by the master node through the target network.
[0063] Step a3: broadcasting an arbitration data frame to the target network for competing with other slave nodes for the target identifier.
[0064] Step a4: When the bus arbitration result corresponding to the arbitration data frame indicates that the arbitration is successful, the slave node uses the target identifier as its own identifier.
[0065] Among them, when the target network is an upper-layer network, the bastion host is the master node, the local gateway node in master mode is one of the slave nodes, and the remaining gateway nodes are also slave nodes; when the target network is an intra-group network, the local gateway node in master mode is the master node, the first device node is one of the slave nodes, and the other device nodes in the local server group are also slave nodes.
[0066] In this embodiment, the slave node can broadcast a data frame for requesting the allocation of an identifier to the corresponding target network. After the master node receives the data frame, it can determine that there are currently slave nodes that need to be uniformly allocated identifiers. The master node can pre-set the identifier range and select the identifier to be allocated from the identifier range, that is, the target identifier; and the target identifier is unique, that is, it will not be allocated again after being allocated once. For example, after the target identifier is allocated, the target identifier is removed from the identifier range to ensure that the allocated target identifier is unique.
[0067] After the master node determines the target identifier, it can send a data frame containing the target identifier to the slave node, that is, an allocation data frame, so that the slave node can receive the allocation data frame. Specifically, the master node can broadcast the allocation data frame to the target network, so that the slave node can receive the allocation data frame broadcast by the master node, and then determine the target identifier currently allocated by the master node. After the slave node receives the target identifier allocated by the master node, it cannot directly use it as its own identifier, but uses an arbitration mechanism to determine which slave node to use the target identifier as.
[0068] Specifically, after the slave node obtains the target identifier, it continues to broadcast another data frame to the bus, namely, the arbitration data frame, which is used to compete with other slave nodes for the target identifier. Since each slave node can receive the allocation data frame, each slave node can initiate arbitration, that is, it can broadcast the arbitration data frame to the target network. If a slave node successfully arbitrates, it can use the target identifier at this time as its own identifier, while the remaining slave nodes fail in arbitration and need to wait for the master node to continue to allocate a new target identifier next time, and the slave nodes that successfully arbitrate do not need to arbitrate again.
[0069] When all slave nodes are assigned corresponding target identifiers, that is, all slave nodes have determined their own identifiers, the master node does not need to assign identifiers, that is, it is no longer necessary to perform steps a1 to a4. In addition, the master node can also broadcast a notification data frame to the target network, and the data segment of the notification data frame includes the master node's own identifier, so that the master node can send its own identifier to each slave node.
[0070] Based on this allocation method, the master node and each slave node can determine the serial number of the slave node, such as the upper layer serial number of the gateway node and the intra-group serial number of the device node.
[0071] For example, the master node broadcasts allocation data frames with different target identifiers in a certain order, so the master node can determine the sequence number corresponding to each target identifier (i.e., the identifier of the slave node) based on the order of the allocated target identifiers. In addition, for each slave node, it can determine its own sequence number based on the number of arbitration failures. Specifically, the slave node can add 1 to the number of its own arbitration failures and use the result after adding one as its own sequence number.
[0072] In this embodiment, the master node may uniformly allocate a unique identifier to each slave node, which can ensure that the identifiers of the slave nodes are different from each other and facilitate determination of the serial numbers of the slave nodes.
[0073] Optionally, in order to give priority to the data frame that needs to be processed currently, any target identifier assigned by the master node is greater than the identifier of the master node. The smaller the frame identifier of a data frame, the higher the processing priority of the data frame; when a slave node is assigned a target identifier greater than the identifier of the master node, when the slave node broadcasts a data frame whose frame identifier is the identifier of the master node to the target network, the data frame can be processed preferentially.
[0074] For example, the first report transaction data frame broadcast by the first device node to the intra-group network has a frame identifier that is the identifier of the local gateway node, that is, the identifier of the master node, so the local gateway node can preferentially process the first report transaction data frame. The second report transaction data frame is similar to this and will not be described in detail here.
[0075] In addition, when the master node allocates the target identifier, the frame identifier of the data frame is a special identifier, and the special identifier is smaller than the minimum value in the identifier range; in other words, the special identifier is not an identifier in the identifier range (the master node will not allocate the special identifier when allocating a unique identifier to the slave node), and the special identifier is smaller than any identifier in the identifier range. In general, an identifier with all bits 0 can be used as the special identifier. For example, the special identifier is an identifier with 11 bits all 0, that is, 000 0000 0000.
[0076] Moreover, the frame identifier of the arbitration data frame is a random identifier different from the special identifier, that is, when the slave node generates the arbitration data frame, the frame identifier of the arbitration data frame is randomly generated. Each slave node uses the randomly generated random identifier as the frame identifier of its own arbitration data frame and initiates arbitration. Based on the arbitration mechanism of the CAN bus, it can be known that the arbitration data frame with the smallest random identifier can be successfully arbitrated, that is, the target identifier can be used as the identifier of the corresponding slave node.
[0077] like Figure 1As shown, take the example of gateway node A allocating identifiers to device nodes in server group 1. Gateway node A first broadcasts an allocation data frame with a target identifier of A1 to the network within the group. After that, device nodes 1~3 all randomly generate random identifiers and broadcast arbitration data frames. If the random identifier of device node 1 is the smallest, device node 1 arbitrates successfully and its identifier is A1. After that, gateway node A broadcasts an allocation data frame with a target identifier of A2 to the network within the group again. At this time, device nodes 2 and 3 regenerate random identifiers and broadcast arbitration data frames. If the random identifier of device node 2 is the smallest, device node 2 arbitrates successfully and its identifier is A2. After that, gateway node A broadcasts an allocation data frame with a target identifier of A3 to the network within the group again. At this time, only device node 3 initiates arbitration, so device node 3 will definitely arbitrate successfully and its identifier is A3. After the allocation is completed, gateway node A also informs each device node of its own identifier A0 so that device nodes 1~3 can broadcast report transaction data frames.
[0078] Optionally, each device node may report its own device identification separately. Specifically, the process of reporting the device identification includes the following steps b1 to b3.
[0079] Step b1, obtaining the first management data frame broadcast by the first device node to the intra-group network; the frame identifier of the first management data frame is the identifier of the local gateway node, and the data segment of the first management data frame includes the intra-group sequence number of the first device node and the device identifier corresponding to the first device node.
[0080] Step b2, recording the correspondence between the intra-group sequence number of the first device node and the corresponding device identifier;
[0081] Step b3, broadcast the second management data frame to the upper network; the frame identifier of the second management data frame is the identifier of the bastion host, and the data segment of the second management data frame includes the upper layer sequence number of the local gateway node and the device identifiers of multiple device nodes in the group network.
[0082] In this embodiment, the bastion host first allocates identifiers to each gateway node through the upper network; after a gateway node determines its own identifier, it can allocate identifiers to the corresponding device nodes through the corresponding intra-group network. After the identifiers of the device nodes are allocated, each device node can report its own device identification.
[0083] Specifically, for the first device node in the local server group, the first device node can use the identifier of the local gateway node as the frame identifier, and use its own group sequence number and device identification as the data in the data segment to generate a corresponding data frame, i.e., a first management data frame, and broadcast the first management data frame to the network in the group. After receiving the first management data frame, the local gateway node can establish a corresponding relationship between the group sequence number and the device identification therein.
[0084] In addition, after the local gateway node receives the first management data frame of all device nodes in the group and determines the correspondence between each group sequence number and the corresponding device identifier, it can generate a second management data frame, the frame identifier of the second management data frame is the identifier of the bastion host, and the data segment of the second management data frame includes the upper-layer sequence number of the local gateway node and the device identifiers of multiple device nodes in the group network, and then broadcasts the second management data frame to the upper-layer network, so that the bastion host can obtain the device identifiers of the device nodes included in each server group.
[0085] For example, the device identifier may be a BMC device number. Figure 1 As shown in the example, device node 1 can generate a first management data frame with a frame identifier of A0, and a data segment including a group sequence number (SN1=01) and its own device identification (for example, the BMC device number is bmc1); after receiving the first management data frame, gateway node A can establish a corresponding relationship between the group sequence number (01) and the BMC device number (bmc1). In addition, after gateway node A determines the corresponding relationship between the group sequence number and the BMC device number of other device nodes 2 and 3, it packages the BMC device numbers of device nodes 1~3 in the local group and generates a second management data frame. The frame identifier of the second management data frame is X0, and its data segment includes the upper layer sequence number of gateway node A (SN2=01), and the BMC device numbers of device nodes 1~3, so that the bastion host can determine the gateway node corresponding to the upper layer sequence number (that is, the gateway node A corresponding to SN2=01), and the BMC device numbers of device nodes 1~3 are hung below.
[0086] In this embodiment, in order to realize the out-of-band management control of all servers in the out-of-band management of the server cluster by the bastion host master node, the gateway nodes in each main mode broadcast the second management data frame whose identifier is the identifier of the bastion host, and the data segment contains the upper-layer sequence number and the BMC device number of all servers in each group to the upper-layer network in sequence according to the upper-layer sequence number; the bastion host master node parses the upper-layer sequence number in the data segment of the second management data frame of each group, and corresponds to the identifier number assigned by the bastion host master node, finds the identifier of the corresponding gateway node, and establishes a many-to-one mapping between all BMC device numbers in the same group and the identifier of the corresponding gateway node. Through the above process, it can be realized that the BMC device numbers of all servers in the server cluster are stored on the bastion host master node end, and a mapping relationship is realized with the identifier of each gateway node.
[0087] Step S303, when the local gateway node is in the master mode, obtain a first report transaction data frame broadcasted by a first device node in the local server group to the intra-group network. The first device node is connected to the local gateway node through the intra-group network, the frame identifier of the first report transaction data frame is the identifier of the local gateway node, and the data segment of the first report transaction data frame includes the report transaction information of the first device node.
[0088] For details, please see Figure 1 Step S201 of the illustrated embodiment will not be described in detail here.
[0089] In some optional implementations, the data segment of the first reporting transaction data frame further includes the intra-group sequence number of the first device node.
[0090] The local server group includes multiple device nodes, and the frame identifier of the first report transaction data frame broadcast by each device node is the identifier of the local gateway node. In order to avoid bus errors caused by the same frame identifier but different data segments when multiple device nodes (slave nodes) send frames to the local gateway node (master node) at the same time, the device nodes can broadcast the first report transaction data frame to the network in the group in sequence based on the group sequence number. Since the data segment of the first report transaction data frame also includes the group sequence number of the first device node, other device nodes in the network in the group can determine which device node is currently broadcasting the data frame and whether they can broadcast based on the received first report transaction data frame.
[0091] Specifically, the process of the first device node broadcasting the first report transaction data frame to the intra-group network includes: obtaining other report transaction data frames broadcasted to the intra-group network by other device nodes in the local server group; the data segment of the other report transaction data frame includes the intra-group sequence number of the corresponding device node. When the intra-group sequence number in the data segment of the other report transaction data frame is the pre-sequence number of the first device node, the first device node broadcasts the first report transaction data frame to the intra-group network. It can be understood that the other report transaction data frames broadcasted by the device node are essentially also a first report transaction data frame.
[0092] by Figure 1 Take the server group 1 as an example, for device node 3, its group sequence number SN1=03, when broadcasting the report transaction information, the device node 1 with the smallest group sequence number first broadcasts the first report transaction data frame 1 to the intra-group network, and its data segment includes the group sequence number SN1=01. When device node 3 obtains the first report transaction data frame 1, since the group sequence number SN1=01 therein is not its own preceding sequence number (the preceding sequence number of device node 3 is 02), device node 3 continues to wait; but when device node 2 obtains the first report transaction data frame 1, since its group sequence number SN1=01 is the preceding sequence number of device node 2, device node 2 then broadcasts the first report transaction data frame 2 to the intra-group network, and its data segment includes the group sequence number SN1=02. When device node 3 obtains the first report transaction data frame 2, it obtains the data frame corresponding to the preceding sequence number, and then device node 3 can broadcast the first report transaction data frame to the intra-group network.
[0093] If the leading slave node cannot complete the out-of-band management transaction reporting in a single frame, it needs to broadcast multiple frames continuously. Then the data segments in the consecutive multiple frames must be filled with the same group sequence number (that is, the group sequence number of the leading slave node) to indicate that they are consecutive data frames broadcast by the same slave node. The trailing slave node can determine that the leading slave node has not completed the out-of-band management transaction transmission by listening to the group sequence number in the consecutive multiple-frame data segments in the group network, so the subsequent slave nodes continue to wait. The slave node broadcasts the management transaction data frame through continuous multiple-frame broadcasts, which ensures the orderly broadcast of multiple slave nodes to the master node while realizing the reporting of large-load out-of-band management transactions.
[0094] Step S304, generating reporting information to be reported to the bastion host according to the reporting transaction information; the local gateway node is connected to the bastion host through the upper network, and the bastion host is configured to be connected to the gateway nodes of multiple server groups.
[0095] For details, please see Figure 1 Step S202 of the illustrated embodiment will not be described in detail here.
[0096] In some optional implementations, the data segment of the first report transaction data frame further includes the intra-group sequence number of the first device node, and the data segment of the second report transaction data frame further includes the upper layer sequence number of the local gateway node.
[0097] Furthermore, the above step S304 "generating reporting information to be reported to the bastion server according to the reporting transaction information" includes the following steps c1 to c3.
[0098] Step c1, determining the identifier of the first device node according to the intra-group sequence number of the first device node.
[0099] Step c2: determining the target device identifier corresponding to the identifier of the first device node according to the corresponding relationship.
[0100] Step c3, generating reporting information to be reported to the bastion host according to the target device identifier and the report transaction information.
[0101] In this embodiment, the local gateway node can extract the group sequence number of the first device node in the first report transaction data frame. Since the local gateway node stores the identifiers of multiple device nodes in the group network in sequence, the identifier of the first device node can be determined based on the group sequence number. Further, based on the correspondence between the identifier of the device node and the corresponding device identification, the device identification corresponding to the identifier of the first device node can be determined. For the convenience of description, the device identification is referred to as the target device identification.
[0102] Afterwards, the local gateway node can generate reporting information to be reported to the bastion host based on the target device identifier and the report transaction information. The reporting information can include the target device identifier so that the bastion host can know the operation status of the device node (server) corresponding to the target device.
[0103] Optionally, the above step c3 "generating reporting information to be reported to the bastion server according to the target device identification and the report transaction information" may specifically include steps c31 to c33.
[0104] Step c31, determining whether the reported transaction information is abnormal.
[0105] Step c32: when the reported transaction information is abnormal, generate reporting information including the target device identification and the reported transaction information.
[0106] Step c33, when the report transaction information reported by all device nodes in the local server group is normal, generate reporting information indicating normality.
[0107] In this embodiment, after the local gateway node extracts the out-of-band management report transaction information from the first report transaction data frame, it can filter and process it. If the out-of-band management report transaction information reported by all slave nodes (device nodes) in the group network does not exceed the alarm threshold, then the local gateway node reports the group out-of-band management information normally. For example, it can only report the reporting information indicating that all slave nodes are normal, and there is no need to report specific detailed information.
[0108] If the local gateway node extracts the out-of-band management report transaction information from the first report transaction data frame and exceeds the alarm threshold, the report transaction information is abnormal, and the local gateway node packages the abnormal out-of-band management report transaction information reported by the first device node together with the target device identifier corresponding to the first device node (for example, the BMC device number of the server) as report information for forwarding. Afterwards, each gateway node broadcasts the second report transaction data frame to the upper network in the order of the upper sequence number. The frame identifier is the ID of the bastion host, and the data segment is filled with the upper sequence number of the sending node (gateway node) and the report information of the group in turn.
[0109] Similarly, if the local gateway node needs to broadcast multiple frames continuously, each frame data segment in the continuous multiple frames must be filled with the same upper layer sequence number, that is, the sequence number of the local gateway node.
[0110] In this embodiment, the gateway node filters and processes the out-of-band management report transaction information, and packages the abnormal out-of-band management transaction information together with the device identifier (such as the BMC device number) of the server to which the slave node reporting the abnormal information is connected as detailed out-of-band management report information; if the report transaction information broadcast by all slave nodes is normal, the information reported by the gateway node indicates that each node is normal. This greatly simplifies the length of the group out-of-band management information under normal circumstances, and only processes the group out-of-band management information in detail under abnormal circumstances, achieving high efficiency in the transmission of out-of-band management transactions, and effectively avoiding the excessive bus occupancy time caused by the gateway node broadcasting the second report transaction data frame in the upper network, affecting the transmission of other data frames in the upper network.
[0111] Step S305: broadcast a second report transaction data frame to the upper layer network. The frame identifier of the second report transaction data frame is the identifier of the bastion machine, and the data segment of the second report transaction data frame includes reporting information.
[0112] For details, please see Figure 1 Step S203 of the illustrated embodiment will not be described in detail here.
[0113] In some optional implementations, the data segment of the second reporting transaction data frame further includes an upper layer sequence number of the local gateway node.
[0114] In this embodiment, since the bastion host corresponds to multiple gateway nodes, and the frame identifier of the second report transaction data frame broadcast by each gateway node is the identifier of the bastion host, in order to avoid bus errors caused by the same frame identifier but different data segments when multiple gateway nodes (slave nodes) send frames to the bastion host (master node) at the same time, the gateway node can broadcast the second report transaction data frame to the upper network in sequence based on the upper sequence number. Since the data segment of the second report transaction data frame also includes the upper sequence number of the gateway node, other gateway nodes in the upper network can determine which gateway node is currently broadcasting the data frame and whether they can broadcast based on the received second report transaction data frame.
[0115] Specifically, the local gateway node broadcasts the second report transaction data frame to the upper network, including: obtaining other report transaction data frames broadcasted by gateway nodes of other server groups to the upper network; the data segment of other report transaction data frames includes the upper sequence number of the corresponding gateway node; when the upper sequence number in the data segment of other report transaction data frames is the leading sequence number of the local gateway node, the second report transaction data frame is broadcasted to the upper network. It can be understood that the other report transaction data frames broadcasted by the gateway node are essentially also a second report transaction data frame.
[0116] by Figure 1 For example, for gateway node B, its upper layer sequence number SN2 = 02, when broadcasting the reporting information, gateway node A with the smallest upper layer sequence number first broadcasts the second report transaction data frame 1 to the upper layer network, and its data segment includes the upper layer sequence number SN2 = 01. When gateway node B obtains the second report transaction data frame 1, since the upper layer sequence number SN2 = 01 is its own pre-sequence number, gateway node B then broadcasts the second report transaction data frame 2 to the upper layer network, and its data segment includes the upper layer sequence number SN2 = 02.
[0117] In this embodiment, the sequence number of each slave node can be used to broadcast data frames to the master node in sequence and send out-of-band management report transaction information; in addition, each slave node can determine whether the next slave node to send a data frame by listening to the data frame whose frame identifier is the master node ID and parsing the current sequence number of the out-of-band management report transaction information. This ensures the orderly broadcast of multiple slave nodes to the master node and solves problems such as bus errors caused by many-to-one broadcasts.
[0118] Moreover, although the frame identifier in the data frame is the identifier of the receiving node (for example, the local gateway node, the bastion host), a corresponding sequence number (upper-layer sequence number or intra-group sequence number) is added to the data segment. The receiving node can determine which sending node the data frame comes from by parsing the sequence number in the data segment, thereby ensuring the accuracy of the sending and receiving reporting transaction data frames.
[0119] In some optional implementations, in addition to reporting data frames to the bastion host, the local gateway node may also send control-related data frames to each device node to enable the bastion host to control each device node. Specifically, the method further includes the following steps d1 to d3.
[0120] Step d1, when the local gateway node is in the master mode, obtain the first control transaction data frame broadcast by the bastion host to the upper network; the frame identifier of the first control transaction data frame is the identifier of the local gateway node, and the data segment of the first control transaction data frame includes the device identification and control transaction information of the second device node.
[0121] Step d2: determining, according to the corresponding relationship, an identifier of the second device node corresponding to the device identification of the second device node.
[0122] Step d3, broadcasting a second control transaction data frame to the network within the group; the frame identifier of the second control transaction data frame is the identifier of the second device node, and the data segment of the second control transaction data frame includes control transaction information.
[0123] In this embodiment, when the bastion host needs to control a device node within the local server group, a corresponding control transaction data frame can be generated; for ease of description, the device node is called the second device node, and the control transaction data frame is called the first control transaction data frame; it can be understood that the second device node and the first device node can be the same or different.
[0124] Specifically, when the bastion host allocates identifiers to the gateway nodes, it can record the identifiers of each gateway node and determine the upper layer sequence number of each gateway node; after receiving the second management data frame broadcast by the gateway node, it can determine the intra-group device identifier corresponding to each gateway node. When the bastion host needs to control the second device node, it can determine the identifier of the gateway node corresponding to the second device node based on the locally recorded device identifier.
[0125] If the local gateway node is in the master mode and receives the first control transaction data frame, it can determine the identifier of the second device node corresponding to the device identifier of the second device node according to the preset corresponding relationship, and then use the identifier of the second device node as the frame identifier and the control transaction information as the data in the data segment to generate a second control transaction data frame, and broadcast it to the network within the group, so that when the second device node in the group receives the second control transaction data frame, since its frame identifier is its own identifier (that is, the identifier of the second device node), the second device node can read the control transaction information therein, and then perform corresponding operations, thereby realizing a control response to the bastion host.
[0126] In this embodiment, the bastion host can use the device identification of the device node (such as the BMC device number) to achieve the diversion of out-of-band management transactions, which can fully utilize the out-of-band management network and ensure the real-time nature of out-of-band management control transactions. In addition, the bastion host and each gateway node record the mapping relationship between the corresponding slave node identifier and the device identification, so that the bastion host and the gateway node can realize the layer-by-layer forwarding of the control transaction data frame based on the device identification, and can ensure the accuracy of sending and receiving the control transaction data frame.
[0127] In some optional implementations, in a multi-layer network architecture, the gateway device is one of the devices with the highest number of activations due to its role in forwarding the inter-layer network, and is therefore prone to failure. In this embodiment, a master-slave dual gateway redundancy design is adopted to ensure that when the master gateway node fails, the backup gateway node can complete the master-slave alternation, further ensuring the robustness of the out-of-band management network.
[0128] Specifically, the local gateway node can also work in the standby mode. In the standby mode, the local gateway node mainly performs bus monitoring operations. When other gateway nodes in the main mode are abnormal, the local gateway node switches from the standby mode to the main mode to replace the other abnormal gateway nodes.
[0129] Figure 4 Another structural diagram of an out-of-band management system for a server cluster is shown. Figure 4 As shown, each server group corresponds to two gateway nodes, one of which is a gateway node in the main mode, that is, the main gateway node, such as the main gateway node A and the main gateway node B, and the other gateway node is a gateway node in the standby mode, that is, the standby gateway node, such as the standby gateway node A' and the standby gateway node B'. When the main gateway node in the main mode is working, such as sending and receiving report transaction data frames, control transaction data frames, etc., the standby gateway node only performs bus monitoring.
[0130] The processing content of the local gateway node in the standby mode specifically includes the following steps e1 to e3.
[0131] Step e1, when the local gateway node is in the standby mode, monitor the data frames broadcast by other gateway nodes in the master mode in the local server group.
[0132] Step e2, determining whether the data frames broadcast by other gateway nodes are abnormal.
[0133] Step e3, when the data frames broadcast by other gateway nodes are abnormal, the local gateway node switches to the main mode and broadcasts a switching frame indicating the main-standby switching to the upper network and / or the network within the group; the switching frame is used to instruct other gateway nodes to switch to the standby mode.
[0134] In this embodiment, if the local gateway node is in the standby mode, the local server group also needs to have other gateway nodes in the main mode, and the other gateway nodes send, receive and process data frames, that is, execute the above steps S301 to S305.
[0135] When the local gateway node is in standby mode, it only monitors the data frames of the upper network and the intra-group network, that is, it can monitor the data frames broadcast by other gateway nodes in the main mode, and then determine whether the other gateway nodes are abnormal. If other gateway nodes are abnormal, they will switch from standby mode to main mode, and then send and receive and process data frames based on S303 to step S305. In addition, the local gateway node broadcasts a switching frame to instruct other gateway nodes to switch to standby mode, and notifies other nodes (bastion hosts, device nodes) that the main-standby switch has occurred at this time.
[0136] Optionally, when the local gateway node switches from the standby mode to the main mode, it is not necessary to perform steps S301 to S302. The local gateway node initially in the standby mode can determine the group sequence number, the upper layer sequence number, and the device identification when other gateway nodes initially in the main mode allocate identifiers. Specifically, the method also includes the following steps f1 to f4.
[0137] Step f1, when the local gateway node is initially in the standby mode, obtain the identifiers that the bastion host sequentially allocates to the multiple gateway nodes through the upper network, and record the identifiers of the multiple gateway nodes sequentially.
[0138] In this embodiment, for the local server group, a gateway node in the main mode (i.e., other gateway nodes, hereinafter referred to as the main gateway node) and a gateway node in the standby mode (i.e., local gateway nodes, hereinafter referred to as the standby gateway node) are initially provided. When the bastion host sequentially allocates identifiers to multiple gateway nodes through the upper network, the main gateway node can initiate arbitration using an arbitration data frame, and determine its own identifier, and use the number of arbitration failures + 1 as its own upper-layer sequence number. The standby gateway node is in bus monitoring mode (i.e., standby mode), and it will not respond to the data frames broadcast by the bastion host and each gateway node, so the standby gateway node will not initiate an arbitration data frame, and it cannot determine the identifier of the main gateway node, but at this time, it can determine the order of the identifiers of each gateway node based on the target identifier in the allocation data frame sent sequentially by the bastion host, so that the identifiers of multiple gateway nodes can be recorded in sequence.
[0139] Step f2, obtaining identifiers sequentially allocated to multiple device nodes by other gateway nodes through the intra-group network, and recording the identifiers of the multiple device nodes sequentially.
[0140] Step f3, determining the intra-group sequence number of each device node according to the order of allocating device node identifiers.
[0141] When the main gateway node sequentially allocates identifiers to multiple device nodes through the intra-group network, the backup gateway node can also determine the identifiers of the device nodes sequentially issued by the main gateway node through the intra-group network, so that the identifiers of multiple device nodes can be recorded in sequence. In addition, based on the order of each allocated device node identifier, the backup gateway node can also determine the intra-group sequence number of each device node.
[0142] In addition, when the device node broadcasts the first management data frame, similar to the main gateway node, the backup gateway node can also determine the device identifier corresponding to each group serial number, thereby establishing a corresponding relationship between the device identifier and the group serial number, but the backup gateway node does not need to broadcast the second management data frame to the upper network subsequently.
[0143] Step f4, obtaining identifiers of other gateway nodes, using the identifiers of other gateway nodes as the identifier of the local gateway node, and determining the upper layer sequence number of the local gateway node according to the identifiers of the multiple gateway nodes recorded in sequence.
[0144] The main gateway node can broadcast its own identifier to other nodes through the intra-group network. For example, after allocating the identifiers of all device nodes, the main gateway node can broadcast a new identifier, the data segment of which includes the identifier of the main gateway node; and the backup gateway node in bus monitoring mode can also monitor the identifier, thereby obtaining the identifier of the main gateway node. Afterwards, the backup gateway node sets its own identifier to the identifier of the main gateway node, that is, the identifiers of the backup gateway node and the main gateway node are the same.
[0145] Moreover, after determining the identifier of the main gateway node, based on the identifiers of multiple gateway nodes recorded in sequence in step f1, the position of the identifier of the main gateway node in all gateway node identifiers can be determined, and then the upper-level sequence number of the main gateway node can be determined. The upper-level sequence number is also the upper-level sequence number of the backup gateway node, that is, the upper-level sequence numbers of the backup gateway node and the main gateway node are also the same.
[0146] like Figure 4 As shown, the identifier of the standby gateway node A' is A0, and the upper layer sequence number SN2=01, both of which are the same as the main gateway node A. Similarly, the identifier of the standby gateway node B' is B0, and the upper layer sequence number SN2=02, both of which are the same as the main gateway node B.
[0147] In this embodiment, a master-slave dual gateway redundant design is adopted to further ensure the robustness of the out-of-band management network. When the gateway node is in the standby mode, it can continue to monitor the bus, not respond to normal data frames, and perform master-slave switching when the main gateway node is abnormal. While ensuring the authenticity of the working status of the main gateway node, the standby gateway node can also effectively monitor the main gateway node. In addition, the local gateway node in the standby mode can also determine the group sequence number, upper layer sequence number, and device identification required for sending and receiving data frames; the two gateway nodes in the master-slave mode are set with the same identifier and upper layer sequence number. After the master-slave switching, the working logic of the remaining nodes (bastion host, device node) does not need to change, and the switching method is simple.
[0148] In addition, the standby gateway node listens to the ID allocation process of each gateway node in the upper network, collects each allocated gateway node ID and sorts it from 1, obtains all gateway node IDs and the mapping relationship between the upper sequence numbers of each gateway node that is equal to the sorting number; then the standby gateway node obtains the ID of the main gateway node in the same server group in the intra-group network, and finds the upper sequence number of the main gateway node in the upper network through the mapping relationship. In this way, the standby gateway node can identify the frame sending situation of the main gateway node in the same server group by listening to the data frame with the frame identifier of the bastion host master node ID in the upper network and parsing the upper sequence number therein, thereby ensuring the effective identification of the main gateway node by the standby gateway node.
[0149] Optionally, the above step e2 "determining whether the data frames broadcast by other gateway nodes are abnormal" may specifically include the following steps e21 to e24, and / or steps e25 to e28.
[0150] Step e21, when monitoring the third report transaction data frame broadcasted by the device node in the local server group to the intra-group network, determine whether the third report transaction data frame is normally responded. It can be understood that the third report transaction data frame is similar to the first report transaction data frame, both of which are data frames reported by the device node, but the former is reported by the device node when the local gateway node is in the standby mode, while the latter is reported by the device node when the local gateway node is in the main mode.
[0151] Step e22: when the third reporting transaction data frame is not responded normally, determining that the downlink of other gateway nodes is abnormal.
[0152] Step e23, after monitoring the third report transaction data frame, determine whether a fourth report transaction data frame broadcasted by other gateway nodes to the upper network is monitored within a preset time period. It can be understood that the fourth report transaction data frame is similar to the second report transaction data frame, both of which are data frames reported by the master gateway node in the master mode, except that the former is reported by the master gateway node when the local gateway node is in the standby mode, while the latter is reported by the local gateway node itself when it is in the master mode.
[0153] Step e24: if the fourth reporting transaction data frame is not monitored within the preset time period, determining that the uplink of other gateway nodes is abnormal.
[0154] In this embodiment, the local gateway node in the standby mode (hereinafter referred to as the standby gateway node) continuously listens to the data frame broadcasted in the intra-group network, and determines whether the data frame is received by the main gateway node in the same server group through the identifier of the data frame. Specifically, if the frame identifier of the data frame is the identifier of the main gateway node (that is, the identifier of the standby gateway node itself), the standby gateway node determines that the third report transaction data frame is monitored; otherwise, the standby gateway node gives up continuing to listen to the data frame.
[0155] When the standby gateway node determines that it has listened to the third report transaction data frame, it continues to listen to the data frame to determine whether the data frame is normally responded. Specifically, the standby gateway node can listen to whether the ACK slot part of the data frame is normally pulled down. If it is, it proves that the main gateway node is receiving normally in the intra-group network, and the standby gateway node continues to be in the bus monitoring mode; if it is not, it proves that the main gateway node is receiving abnormally in the intra-group network, that is, the main gateway node is downlinking abnormally, and then the main-standby switching process can be executed.
[0156] In addition, the standby gateway node will also predict the frame sending behavior of the main gateway node in the upper network. When the standby gateway node listens to the out-of-band management report transaction data frame broadcast by all slave nodes in the server group, the standby gateway node will predict that within the preset time period (such as 5ms), the main gateway node will broadcast the report transaction data frame in the upper network, that is, the fourth report transaction data frame. The standby gateway node continues to listen to the data frame broadcast in the upper network, and determines whether to continue listening by whether the frame identifier of the data frame is the identifier of the bastion host, and continues to listen to the upper sequence number in the data segment of the data frame to determine whether the data frame is initiated by the main gateway node in the same server group. If yes, it means that the fourth report transaction data frame has been listened, proving that the main gateway node is sending normally in the upper network, and the standby gateway node gives up listening to the data frame and continues the bus listening mode; if the fourth report transaction data frame is still not listened to after the preset time period, the standby gateway node believes that the main gateway node is abnormal in sending in the upper network, that is, the main gateway node is abnormal in uplink, and then the master-slave switching process can be executed.
[0157] Step e25, when monitoring the third control transaction data frame broadcasted by the bastion host to the upper network, determine whether the third control transaction data frame is normally responded. It can be understood that the third control transaction data frame is similar to the first control transaction data frame, both of which are data frames sent by the bastion host, but the former is sent by the bastion host when the local gateway node is in the standby mode, and the latter is sent by the bastion host when the local gateway node is in the main mode.
[0158] Step e26: when the third control transaction data frame is not normally responded, determining that the uplink of other gateway nodes is abnormal.
[0159] Step e27, after monitoring the third control transaction data frame, determine whether a fourth control transaction data frame broadcasted by other gateway nodes to the intra-group network is monitored within a preset time period. It can be understood that the fourth control transaction data frame is similar to the second control transaction data frame, both of which are data frames sent by the master gateway node in the master mode, except that the former is sent by the master gateway node when the local gateway node is in the standby mode, while the latter is sent by the local gateway node itself when it is in the master mode.
[0160] Step e28: if the fourth control transaction data frame is not monitored within the preset time period, it is determined that the downlink of other gateway nodes is abnormal.
[0161] In this embodiment, similar to the above steps e21 to e24, the local gateway node in the standby mode (hereinafter referred to as the standby gateway node) continuously listens to the data frame broadcasted in the upper network, and determines whether the data frame is received by the main gateway node in the same server group through the identifier of the data frame. Specifically, if the frame identifier of the data frame is the identifier of the main gateway node (that is, the identifier of the standby gateway node itself), the standby gateway node determines that the third control transaction data frame is monitored; otherwise, the standby gateway node gives up continuing to listen to the data frame.
[0162] When the standby gateway node determines that it has monitored the third control transaction data frame, it continues to monitor the data frame to determine whether the data frame is normally responded. Specifically, the standby gateway node can monitor whether the ACK slot part of the data frame is normally pulled down. If it is, it proves that the main gateway node is receiving normally in the upper network, and the standby gateway node continues to be in the bus monitoring mode; if it is not, it proves that the main gateway node is receiving abnormally in the upper network, that is, the main gateway node is abnormal in the uplink, and then the main-standby switching process can be executed.
[0163] In addition, the standby gateway node will also predict the frame sending behavior of the main gateway node in the intra-group network. When the standby gateway node intercepts the third control transaction data frame broadcast by the bastion host, the standby gateway node will predict that within the preset time period (for example, 5ms), the main gateway node will broadcast the control transaction data frame, that is, the fourth control transaction data frame, in the intra-group network. The standby gateway node continuously intercepts the data frames broadcast in the intra-group network, and determines whether the data frame is initiated by the main gateway node in the same server group by whether the frame identifier of the data frame is the identifier of the corresponding controlled device node in the fourth control transaction data frame. If yes, it means that the fourth control transaction data frame has been intercepted, proving that the main gateway node is sending normally in the intra-group network, and the standby gateway node gives up continuing to intercept the data frame and continues the bus monitoring mode; if the fourth control transaction data frame is still not intercepted beyond the preset time period, the standby gateway node believes that the main gateway node is sending abnormally in the intra-group network, that is, the main gateway node is downlinking abnormally, and then the main-standby switching process can be executed.
[0164] In this embodiment, the standby gateway node can determine whether to continue to monitor the data frame by monitoring the frame identifier of the data frame, and immediately give up monitoring the frames that do not meet the requirements. This process does not use full frame information matching, but only uses the frame identifier and part of the frame data segment information, and the standby gateway node can complete key frame filtering, making full use of the ID filtering mechanism specified by the CAN bus protocol, so that the standby gateway node is in silent mode for a long time, greatly reducing the failure probability of the standby gateway node.
[0165] Optionally, the above-mentioned step e3 "broadcasting a switching frame indicating the active-standby switching to the upper-layer network and / or the network within the group" may specifically include: in the case of an uplink abnormality in other gateway nodes, at least broadcasting a switching frame indicating the active-standby switching to the network within the group; in the case of a downlink abnormality in other gateway nodes, at least broadcasting a switching frame indicating the active-standby switching to the upper-layer network.
[0166] In this embodiment, if the uplink of the main gateway node is abnormal, it means that its communication in the upper network is abnormal, so the standby gateway node can broadcast the switching frame through the intra-group network. On the contrary, if the downlink of the gateway node is abnormal, it means that its communication in the intra-group network is abnormal, so the standby gateway node can broadcast the switching frame through the upper network. In this way, the probability of the abnormal main gateway node receiving the switching frame can be increased, so that the abnormal main gateway node can switch to the standby mode.
[0167] The switching frame may be a remote control frame, whose frame identifier is the identifier of the failed master gateway node. By using the remote control frame for gateway switching, the orderly alternation of the master and backup gateways can be ensured.
[0168] Figure 5 FIG. 4 shows the initialization flow chart of the active and standby gateway nodes in the out-of-band management system. Figure 5 As shown, the process includes steps S501 to S515.
[0169] Step S501: The bastion host broadcasts an allocation data frame 1 to the upper network. The allocation data frame 1 includes a gateway node ID (identifier) to be allocated, that is, a target identifier.
[0170] Step S502: the main gateway node obtains the allocation data frame 1 from the upper network.
[0171] Step S503, the standby gateway node obtains the allocation data frame 1 from the upper network and records all gateway node IDs allocated by the bastion host.
[0172] Step S504: the master gateway node initiates arbitration to determine its own ID and upper layer sequence number SN2.
[0173] Step S505, after the allocation is completed, the bastion host broadcasts a notification data frame 2 to the upper network. The notification data frame 1 includes the bastion host ID.
[0174] Step S506: the main gateway node obtains the notification data frame 2 from the upper network.
[0175] Step S507, the standby gateway node obtains the notification data frame 2 from the upper network. At this point, both the active and standby gateway nodes have learned the bastion machine ID.
[0176] Step S508: the master gateway node broadcasts the allocation data frame 3 to the network in the group. The allocation data frame 3 includes the device node ID to be allocated, that is, the target identifier.
[0177] Step S509: the device node obtains the allocation data frame 3 from the intra-group network.
[0178] Step S510: the standby gateway node obtains the allocation data frame 3 from the intra-group network and records all device node IDs allocated by the main gateway node.
[0179] Step S511, the device node initiates arbitration to determine its own ID and the sequence number SN1 within the group.
[0180] Step S512: After the allocation is completed, the master gateway node broadcasts a notification data frame 4 to the network in the group. The notification data frame 4 includes the master gateway node ID.
[0181] Step S513: the device node obtains the notification data frame 4 from the intra-group network.
[0182] Step S514, the standby gateway node obtains the notification data frame 4 from the intra-group network. At this point, the standby gateway node and the device node both know the master gateway node ID, and the standby gateway node can further determine the upper layer sequence number SN2 of the master gateway node and set its own ID and SN2 to be consistent with the master gateway node.
[0183] At this point, the initialization process of the entire out-of-band management system is completed, after which the gateway node can report transaction information and issue control transaction information.
[0184] Figure 6 The figure shows the workflow of the active and standby gateway nodes in the out-of-band management system. Figure 6 The workflow is shown in Figure 1. Figure 6 As shown, the process includes steps S601 to S616.
[0185] Step S601: the device node broadcasts a first reporting transaction data frame to the intra-group network.
[0186] Step S602: the master gateway node obtains the first report transaction data frame from the intra-group network.
[0187] Step S603: The standby gateway node obtains the first report transaction data frame from the intra-group network, and continues to monitor whether the first report transaction data frame is responded to normally.
[0188] Step S604: the main gateway node filters the first report transaction data frame to generate a second report transaction data frame.
[0189] Step S605: the master gateway node broadcasts a second report transaction data frame to the upper layer network.
[0190] Step S606: The bastion host obtains the second reporting transaction data frame from the upper network.
[0191] Step S607, the standby gateway node obtains the second report transaction data frame from the upper network. If the second report transaction data frame is obtained, it means that the uplink of the main gateway node is normal.
[0192] At this point, the report transaction information of the device node is reported to the bastion host.
[0193] Step S608: The bastion host broadcasts the first control transaction data frame to the upper network.
[0194] Step S609: the master gateway node obtains the first control transaction data frame from the upper network. The first control transaction data frame includes a device identifier.
[0195] Step S610: The standby gateway node obtains the first control transaction data frame from the upper network, and continues to monitor whether the first control transaction data frame is responded normally.
[0196] Step S611: the master gateway node generates a second control transaction data frame and broadcasts the second control transaction data frame to the intra-group network. It can be understood that the frame identifier in the second control transaction data frame is the device node ID corresponding to the device identifier in the first control transaction data frame.
[0197] Step S612: the device node obtains the second control transaction data frame from the intra-group network.
[0198] Step S613, the standby gateway node obtains the second control transaction data frame from the intra-group network. If the second control transaction data frame is obtained, it means that the main gateway node is downlinking normally.
[0199] Step S614: when the master gateway node is abnormal, the backup gateway node switches to the master mode to perform master-backup switching.
[0200] Step S615: the standby gateway node broadcasts a switching frame to both the upper layer network and the intra-group network.
[0201] Step S616: the master gateway node switches to a standby mode.
[0202] The data transmission method provided in this embodiment builds an upper network and an intra-group network for the gateway node based on the CAN bus to form a two-layer CAN communication auxiliary network. The auxiliary network is used to transmit the transaction information of out-of-band management, which can ensure the real-time and stability of out-of-band management and realize the efficient transmission of out-of-band management transactions. The use of a master-slave dual gateway redundant design further ensures the robustness of the out-of-band management network. When the gateway node is in standby mode, it can continue to monitor the bus, not respond to normal data frames, and switch between the master and standby when the main gateway node is abnormal. While ensuring the authenticity of the working status of the main gateway node, it can also realize the effective monitoring of the main gateway node by the standby gateway node.
[0203] In this embodiment, a data transmission device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0204] This embodiment provides a data transmission device, such as Figure 7 As shown, including:
[0205] The acquisition module 701 is used to acquire, when the local gateway node is in the master mode, a first report transaction data frame broadcasted by a first device node in the local server group to an intra-group network; the first device node is connected to the local gateway node through the intra-group network, a frame identifier of the first report transaction data frame is an identifier of the local gateway node, and a data segment of the first report transaction data frame includes report transaction information of the first device node;
[0206] The processing module 702 is used to generate the reporting information to be reported to the bastion host according to the reporting transaction information; the local gateway node is connected to the bastion host through the upper network, and the bastion host is configured to be connected to the gateway nodes of multiple server groups;
[0207] The broadcast module 703 is used to broadcast a second report transaction data frame to the upper network; the frame identifier of the second report transaction data frame is the identifier of the bastion machine, and the data segment of the second report transaction data frame includes the reporting information.
[0208] In some optional implementations, the local gateway node records an upper layer sequence number of the local gateway node in the upper layer network, and also records in sequence a correspondence between identifiers of a plurality of device nodes in the intra-group network and corresponding device identifiers;
[0209] The data segment of the first report transaction data frame further includes the intra-group sequence number of the first device node, and the data segment of the second report transaction data frame further includes the upper layer sequence number of the local gateway node;
[0210] The processing module 702 generates reporting information to be reported to the bastion server according to the reporting transaction information, including:
[0211] Determining an identifier of the first device node according to the intra-group sequence number of the first device node;
[0212] Determining, according to the corresponding relationship, a target device identifier corresponding to the identifier of the first device node;
[0213] Generate reporting information to be reported to the bastion host based on the target device identifier and the report transaction information.
[0214] In some optional implementations, the acquisition module 701 is further used to, when the local gateway node is in the master mode, acquire a first control transaction data frame broadcast by the bastion host to the upper network; the frame identifier of the first control transaction data frame is the identifier of the local gateway node, and the data segment of the first control transaction data frame includes the device identification and control transaction information of the second device node;
[0215] The processing module 702 is further configured to determine, according to the corresponding relationship, an identifier of the second device node corresponding to the device identification of the second device node;
[0216] The broadcast module 703 is further used to broadcast a second control transaction data frame to the intra-group network; the frame identifier of the second control transaction data frame is the identifier of the second device node, and the data segment of the second control transaction data frame includes the control transaction information.
[0217] In some optional implementations, the processing module 702 generates reporting information to be reported to the bastion server according to the target device identifier and the report transaction information, including:
[0218] Determining whether the reported transaction information is abnormal;
[0219] In the case where the reported transaction information is abnormal, generating reporting information including the target device identifier and the reported transaction information;
[0220] When the report transaction information reported by all device nodes in the local server group is normal, report information indicating normality is generated.
[0221] In some optional implementations, the acquisition module 701 is also used to, when the local gateway node is initially in the master mode, obtain the identifier assigned by the bastion host to the local gateway node through the upper network, and determine the upper-layer sequence number of the local gateway node according to the order in which the bastion host assigns the gateway node identifier;
[0222] The processing module 702 is further used to sequentially allocate corresponding identifiers to a plurality of device nodes connected to the local gateway node through the intra-group network, and determine the intra-group sequence number of each of the device nodes according to the sequence of allocating the device node identifiers.
[0223] In some optional implementations, the process of assigning an identifier includes:
[0224] The master node selects a unique target identifier from the current identifier range and broadcasts an allocation data frame including the target identifier to the target network;
[0225] The slave node receives the allocation data frame broadcasted by the master node through the target network;
[0226] Broadcasting an arbitration data frame to the target network for competing with other slave nodes for the target identifier;
[0227] When the bus arbitration result corresponding to the arbitration data frame indicates that the arbitration is successful, the slave node uses the target identifier as its own identifier;
[0228] Wherein, when the target network is the upper layer network, the bastion host is the master node, and the local gateway node in the master mode is one of the slave nodes;
[0229] In the case where the target network is the intra-group network, the local gateway node in the master mode is the master node, and the first device node is one of the slave nodes.
[0230] In some optional embodiments, the target identifier is greater than the identifier of the master node; the frame identifier of the allocated data frame is a special identifier, and the special identifier is less than the minimum value within the identifier range; and the frame identifier of the arbitration data frame is a random identifier different from the special identifier.
[0231] In some optional implementations, the broadcast module 703 broadcasts the second report transaction data frame to the upper network, including:
[0232] Acquire other report transaction data frames broadcasted by gateway nodes of other server groups to the upper network; the data segments of the other report transaction data frames include the upper sequence numbers of the corresponding gateway nodes;
[0233] In the case where the upper layer sequence number in the data segment of the other report transaction data frame is the leading sequence number of the local gateway node, the second report transaction data frame is broadcasted to the upper layer network.
[0234] In some optional implementations, the acquisition module 701 is further used to acquire a first management data frame broadcast by the first device node to the intra-group network; the frame identifier of the first management data frame is the identifier of the local gateway node, and the data segment of the first management data frame includes the intra-group sequence number of the first device node and the device identifier corresponding to the first device node;
[0235] The processing module 702 is further used to record the correspondence between the identifier of the first device node and the corresponding device identification;
[0236] The broadcast module 703 is also used to broadcast a second management data frame to the upper network; the frame identifier of the second management data frame is the identifier of the bastion host, and the data segment of the second management data frame includes the upper layer sequence number of the local gateway node and the device identifiers of multiple device nodes in the group network.
[0237] In some optional implementations, the device further includes a primary / standby switching module, configured to:
[0238] When the local gateway node is in the standby mode, monitoring data frames broadcast by other gateway nodes in the master mode in the local server group;
[0239] Determining whether the data frames broadcast by the other gateway nodes are abnormal;
[0240] When the data frames broadcast by the other gateway nodes are abnormal, the local gateway node switches to the main mode and broadcasts a switching frame indicating the main-standby switching to the upper network and / or the network within the group; the switching frame is used to instruct the other gateway nodes to switch to the standby mode.
[0241] In some optional implementations, the active / standby switching module determines whether the data frame broadcast by the other gateway node is abnormal, including:
[0242] In case of monitoring a third report transaction data frame broadcasted by a device node in the local server group to the intra-group network, determining whether the third report transaction data frame is normally responded;
[0243] In the case that the third reporting transaction data frame is not normally responded, determining that the other gateway node is downlink abnormal;
[0244] After monitoring the third report transaction data frame, determining whether a fourth report transaction data frame broadcasted by the other gateway node to the upper network is monitored within a preset time period;
[0245] In the case where the fourth reporting transaction data frame is not monitored within the preset time period, determining that the uplink of the other gateway node is abnormal;
[0246] and / or,
[0247] In the case of monitoring the third control transaction data frame broadcasted by the bastion host to the upper network, determining whether the third control transaction data frame is normally responded;
[0248] In the case that the third control transaction data frame is not normally responded, determining that the uplink of the other gateway node is abnormal;
[0249] After monitoring the third control transaction data frame, determining whether a fourth control transaction data frame broadcasted by the other gateway node to the intra-group network is monitored within a preset time period;
[0250] When the fourth control transaction data frame is not monitored within the preset time period, it is determined that the downlink of the other gateway node is abnormal.
[0251] In some optional implementations, the active / standby switching module broadcasts a switching frame indicating active / standby switching to the upper layer network and / or the intra-group network, including:
[0252] In case of an uplink abnormality of the other gateway nodes, at least broadcast a switching frame indicating a master-slave switching to the network within the group;
[0253] In the case of downlink abnormality of the other gateway nodes, at least a switching frame indicating active / standby switching is broadcast to the upper network.
[0254] In some optional implementations, the acquisition module 701 is also used to, when the local gateway node is initially in a standby mode, obtain identifiers that the bastion host sequentially allocates to multiple gateway nodes through the upper network, and record the identifiers of the multiple gateway nodes in sequence; obtain identifiers that the other gateway nodes sequentially allocate to multiple device nodes through the intra-group network, and record the identifiers of the multiple device nodes in sequence;
[0255] The processing module 702 is also used to determine the intra-group sequence number of each of the device nodes according to the order of assigning device node identifiers; obtain the identifiers of the other gateway nodes, use the identifiers of the other gateway nodes as the identifiers of the local gateway node, and determine the upper-layer sequence number of the local gateway node according to the identifiers of the multiple gateway nodes recorded in sequence.
[0256] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0257] The data transmission device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, including a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0258] The embodiment of the present invention also provides a computer device having the above Figure 7 The data transmission device shown.
[0259] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.
[0260] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0261] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0262] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0263] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0264] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0265] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0266] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0267] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A data transmission method, characterized in that: Applied to a local gateway node of a local server group, the method comprises: When the local gateway node is in the master mode, obtaining a first report transaction data frame broadcasted by a first device node in the local server group to an intra-group network; the first device node is connected to the local gateway node through the intra-group network, a frame identifier of the first report transaction data frame is an identifier of the local gateway node, and a data segment of the first report transaction data frame includes report transaction information of the first device node; Generate reporting information to be reported to the bastion host according to the reporting transaction information; the local gateway node is connected to the bastion host through an upper layer network, and the bastion host is configured to be connected to gateway nodes of multiple server groups; broadcasting a second report transaction data frame to the upper network; the frame identifier of the second report transaction data frame is the identifier of the bastion machine, and the data segment of the second report transaction data frame includes the reporting information; The baseboard management controller of the first device node is used to group and divert out-of-band management transactions, transmit report transaction information through the intra-group network and the upper-layer network, and transmit remaining data through the Ethernet network.
2. The method according to claim 1, characterized in that The local gateway node records the upper layer sequence number of the local gateway node in the upper layer network, and also records the correspondence between the identifiers of multiple device nodes in the intra-group network and the corresponding device identifications in sequence; The data segment of the first report transaction data frame further includes the intra-group sequence number of the first device node, and the data segment of the second report transaction data frame further includes the upper layer sequence number of the local gateway node; The generating, according to the report transaction information, the reporting information to be reported to the bastion server includes: Determining an identifier of the first device node according to the intra-group sequence number of the first device node; Determining, according to the corresponding relationship, a target device identifier corresponding to the identifier of the first device node; Generate reporting information to be reported to the bastion host based on the target device identifier and the report transaction information.
3. The method according to claim 2, characterized in that Also includes: When the local gateway node is in the master mode, obtaining a first control transaction data frame broadcast by the bastion host to the upper network; The frame identifier of the first control transaction data frame is the identifier of the local gateway node, and the data segment of the first control transaction data frame includes the device identification of the second device node and the control transaction information; Determine, according to the corresponding relationship, an identifier of the second device node corresponding to the device identification of the second device node; Broadcasting a second control transaction data frame to the intra-group network; The frame identifier of the second control transaction data frame is the identifier of the second device node, and the data segment of the second control transaction data frame includes the control transaction information.
4. The method according to claim 2, characterized in that: The generating, according to the target device identifier and the report transaction information, the reporting information to be reported to the bastion host includes: Determining whether the reported transaction information is abnormal; In the case where the reported transaction information is abnormal, generating reporting information including the target device identifier and the reported transaction information; When the report transaction information reported by all device nodes in the local server group is normal, report information indicating normality is generated.
5. The method according to claim 2, characterized in that: Also includes: When the local gateway node is initially in the master mode, obtaining an identifier assigned to the local gateway node by the bastion host through the upper network, and determining an upper layer sequence number of the local gateway node according to the order in which the bastion host assigns the gateway node identifiers; Corresponding identifiers are sequentially allocated to a plurality of device nodes connected to the local gateway node through the intra-group network, and the intra-group sequence number of each of the device nodes is determined according to the sequence of allocating the device node identifiers.
6. The method according to claim 5, characterized in that The process of assigning identifiers involves: The master node selects a unique target identifier from the current identifier range and broadcasts an allocation data frame including the target identifier to the target network; The slave node receives the allocation data frame broadcasted by the master node through the target network; Broadcasting an arbitration data frame to the target network for competing with other slave nodes for the target identifier; When the bus arbitration result corresponding to the arbitration data frame indicates that the arbitration is successful, the slave node uses the target identifier as its own identifier; Wherein, when the target network is the upper layer network, the bastion host is the master node, and the local gateway node in the master mode is one of the slave nodes; In the case where the target network is the intra-group network, the local gateway node in the master mode is the master node, and the first device node is one of the slave nodes.
7. The method according to claim 6, characterized in that The target identifier is greater than the identifier of the master node; The frame identifier of the allocated data frame is a special identifier, and the special identifier is smaller than the minimum value in the identifier range; The frame identifier of the arbitration data frame is a random identifier different from the special identifier.
8. The method according to claim 2, characterized in that: The broadcasting of the second report transaction data frame to the upper network includes: Acquire other report transaction data frames broadcasted by gateway nodes of other server groups to the upper network; the data segments of the other report transaction data frames include the upper sequence numbers of the corresponding gateway nodes; In the case where the upper layer sequence number in the data segment of the other report transaction data frame is the leading sequence number of the local gateway node, the second report transaction data frame is broadcasted to the upper layer network.
9. The method according to claim 2, characterized in that: Also includes: Acquire a first management data frame broadcasted by the first device node to the intra-group network; The frame identifier of the first management data frame is the identifier of the local gateway node, and the data segment of the first management data frame includes the intra-group sequence number of the first device node and the device identifier corresponding to the first device node; Recording the correspondence between the identifier of the first device node and the corresponding device identification; Broadcasting a second management data frame to the upper layer network; The frame identifier of the second management data frame is the identifier of the bastion host, and the data segment of the second management data frame includes the upper layer sequence number of the local gateway node and the device identifiers of multiple device nodes in the intra-group network.
10. The method according to claim 1, characterized in that Also includes: When the local gateway node is in the standby mode, monitoring data frames broadcast by other gateway nodes in the master mode in the local server group; Determining whether the data frames broadcast by the other gateway nodes are abnormal; When the data frames broadcast by the other gateway nodes are abnormal, the local gateway node switches to the main mode and broadcasts a switching frame indicating the main-standby switching to the upper network and / or the network within the group; the switching frame is used to instruct the other gateway nodes to switch to the standby mode.
11. The method according to claim 10, characterized in that The determining whether the data frame broadcast by the other gateway node is abnormal includes: In case of monitoring a third report transaction data frame broadcasted by a device node in the local server group to the intra-group network, determining whether the third report transaction data frame is normally responded; In the case that the third reporting transaction data frame is not normally responded, determining that the other gateway node is downlink abnormal; After monitoring the third report transaction data frame, determining whether a fourth report transaction data frame broadcasted by the other gateway node to the upper network is monitored within a preset time period; In the case where the fourth reporting transaction data frame is not monitored within the preset time period, determining that the uplink of the other gateway node is abnormal; and / or, In the case of monitoring the third control transaction data frame broadcasted by the bastion host to the upper network, determining whether the third control transaction data frame is normally responded; In the case that the third control transaction data frame is not normally responded, determining that the uplink of the other gateway node is abnormal; After monitoring the third control transaction data frame, determining whether a fourth control transaction data frame broadcasted by the other gateway node to the intra-group network is monitored within a preset time period; When the fourth control transaction data frame is not monitored within the preset time period, it is determined that the downlink of the other gateway node is abnormal.
12. The method according to claim 11, characterized in that The broadcasting of the switching frame indicating the active / standby switching to the upper layer network and / or the network within the group includes: In case of an uplink abnormality of the other gateway nodes, at least broadcast a switching frame indicating a master-slave switching to the network within the group; In the case of downlink abnormality of the other gateway nodes, at least a switching frame indicating active / standby switching is broadcast to the upper network.
13. The method according to claim 10, characterized in that Also includes: When the local gateway node is initially in a standby mode, obtaining identifiers that are sequentially assigned by the bastion host to the multiple gateway nodes through the upper network, and recording the identifiers of the multiple gateway nodes in sequence; Obtain identifiers that are sequentially assigned by the other gateway nodes to the plurality of device nodes through the intra-group network, and record the identifiers of the plurality of device nodes in sequence; Determining the intra-group sequence number of each of the device nodes according to the order of allocating device node identifiers; The identifiers of the other gateway nodes are obtained, and the identifiers of the other gateway nodes are used as the identifiers of the local gateway node, and the upper layer sequence number of the local gateway node is determined according to the identifiers of the multiple gateway nodes recorded in sequence.
14. A data transmission device, characterized in that: A local gateway node applied to a local server group, the device comprising: an acquisition module, configured to acquire, when the local gateway node is in a master mode, a first report transaction data frame broadcasted by a first device node in the local server group to an intra-group network; the first device node is connected to the local gateway node via the intra-group network, a frame identifier of the first report transaction data frame is an identifier of the local gateway node, and a data segment of the first report transaction data frame includes report transaction information of the first device node; A processing module, configured to generate report information to be reported to a bastion host according to the report transaction information; the local gateway node is connected to the bastion host via an upper layer network, and the bastion host is configured to be connected to gateway nodes of multiple server groups; A broadcast module, used for broadcasting a second report transaction data frame to the upper network; the frame identifier of the second report transaction data frame is the identifier of the bastion machine, and the data segment of the second report transaction data frame includes the reporting information; The baseboard management controller of the first device node is used to group and divert out-of-band management transactions, transmit report transaction information through the intra-group network and the upper-layer network, and transmit remaining data through the Ethernet network.
15. A gateway node, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the data transmission method according to any one of claims 1 to 13 by executing the computer instructions.
16. An out-of-band management system, characterized in that: include: A bastion host and multiple server groups; the server group includes at least one gateway node and multiple device nodes; The bastion host communicates with the gateway nodes of the multiple server groups via an upper layer network; The gateway node in the server group communicates with multiple device nodes in the same server group through an intra-group network; The gateway node is used to execute the data transmission method according to any one of claims 1 to 13.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data transmission method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Systems and methods for forwarding traffic in a cluster network
CN104364761A
Method, apparatus and device for transmitting management data, and storage medium
CN109462497A
