Data transmission method, equipment and system based on VLAN (Virtual Local Area Network)

By configuring VLAN tags in the layer 2 switch of the AI ​​server, the communication security problem between the GPU BOX server and the main server HOST is solved, the isolation and safe transmission of the VLAN network are realized, and the robustness and IP address of the data center network are ensured. Resource saving.

CN118802804APending Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410864851.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the AI ​​server, the private communication between the GPU BOX server and the main server HOST only implements simple chip-level port isolation on the L2 LAN Switch and fails to implement IP address isolation between different virtual LAN VLANs, resulting in problems during transmission. Security risks.

Method used

By configuring VLAN tags on the ports of the Layer 2 switch, the VLAN network between the HOST BMC and the BOX BMC and the VLAN network between external devices are isolated to ensure the uniqueness and security of communication. The specific method includes configuring the first VLAN network and the second VLAN network in the layer 2 switch, parsing the VLAN tag in the request message, forwarding the message to the target network, and removing the VLAN tag during the transmission process.

Benefits of technology

It achieves the security and uniqueness of communication between HOST BMC and BOX BMC, ensures the robustness of the network in the data center network environment, and saves IP address resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802804A_ABST
    Figure CN118802804A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless local area network transmission, and particularly discloses a VLAN-based data transmission method, device and system, which are applied to a two-layer switch, and the method comprises the following steps: configuring a first port to support data transmission of a first VLAN network and a second VLAN network, and when the first port receives a first request message sent by a first BMC, sending the first request message to a second BMC; analyzing the first request message to obtain a first VLAN label contained in the first request message; determining a target network according to the first VLAN label; the first request message is forwarded to a target port corresponding to the target network, a second request message is transmitted to a second BMC or external equipment through the target port, and the second request message is a message obtained after the first VLAN label is removed from the first request message. According to the method, a VLAN label mode is adopted for communication port isolation, so that the uniqueness of communication between the main server and the BOX BMC is ensured, and the safety of communication is also ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless local area network transmission, and in particular to a VLAN-based data transmission method, equipment and system. Background Art

[0002] With the rapid development of artificial intelligence technology, the AI ​​server market is also growing. The government and enterprises' attention and investment in artificial intelligence technology have provided strong support for the development of the AI ​​server market. The launch of a large number of AI applications also urgently requires a large number of GPU (graphics processing unit) servers to train and learn models. The demand for GPU BOX servers in data centers has also seen a blowout growth.

[0003] In the AI ​​server, the GPU BOX server must be paired with the main server HOST to complete normal operation. The private communication between the BOX BMC and the HOST BMC (Baseboard Management Controller) as an out-of-band monitoring and management chassis avoids address access conflicts by enabling VLAN (Virtual Local Area Network) tags on the L2 LAN Switch (Layer 2 LAN Switch) on the BOX BMC. However, the L2LAN Switch only performs simple chip-level port isolation, and does not isolate the IP addresses of devices between different virtual LAN VLANs, so there will be security risks during transmission. Summary of the invention

[0004] The invention provides a VLAN-based data transmission method, device and system to solve the security problem of communication between a HOST BMC and a BOX BMC.

[0005] In a first aspect, the present invention provides a VLAN-based data transmission method, which is applied to a layer 2 switch, wherein the layer 2 switch includes at least a first port, a second port, and a third port, wherein the first port is connected to a first BMC of a main server, the second port is connected to a second BMC of a chassis, and the third port is connected to an external device, wherein the method includes:

[0006] Configuring the first port to support data transmission between a first VLAN network and a second VLAN network, wherein the first VLAN network is a network between a first BMC of the main server and a second BMC of the chassis, and the second VLAN network is a network between the first BMC of the main server and the external device;

[0007] When the first port receives the first request message sent by the first BMC, parsing the first request message to obtain the first VLAN tag contained therein;

[0008] determining a target network in the first VLAN network and the second VLAN network according to the first VLAN tag;

[0009] The first request message is forwarded to a target port corresponding to the target network, and the second request message is transmitted to the second BMC or the external device using the target port, wherein the target port corresponding to the target network is the second port or the third port, and the second request message is the message after the first VLAN tag is removed from the first request message.

[0010] In combination with the first aspect, in an optional implementation, the first VLAN tag obtained by parsing includes a VLAN ID, and the VLAN ID indicates the VLAN to which the first request message belongs. The step of determining a target network in the first VLAN network and the second VLAN network according to the first VLAN tag includes:

[0011] If the VLAN ID in the first VLAN tag indicates that the first request message belongs to the first VLAN network, the target network is determined to be the first VLAN network; if the VLAN ID in the first VLAN tag indicates that the first request message belongs to the second VLAN network, the target network is determined to be the second VLAN network.

[0012] In combination with the first aspect, in another optional implementation, forwarding the first request message to a target port corresponding to the target network, and transmitting the second request message to the second BMC or external device using the target port includes:

[0013] If the first request message belongs to the first VLAN network, forwarding the first request message to the second port, so that the second port forwards the second request message after the first VLAN tag is stripped from the first request message to the second BMC;

[0014] If the first request message belongs to the second VLAN network, the first request message is forwarded to the third port, so that the third port forwards the second request message after the first VLAN tag is stripped from the first request message to the external device.

[0015] In combination with the first aspect, in yet another optional implementation, the method further includes:

[0016] In a case where the second request message is transmitted to the second BMC by using the target port, a first response message from the second BMC is received by using the second port, where the first response message is a response message generated by the second BMC according to the first request message;

[0017] Determine, according to the MAC address list, that the target device to be forwarded is the first BMC;

[0018] After adding the second VLAN tag of the first VLAN network to the first response message, a second response message is generated, and the second response message is transmitted to the first BMC through the first port.

[0019] In combination with the first aspect, in yet another optional implementation, the method further includes: when the third port receives a third request message sent by the external device, adding a third VLAN tag to the third request message to generate a fourth request message, wherein the third VLAN tag includes a VLAN ID of the second VLAN network;

[0020] Transmitting the fourth request message to the first port through the second VLAN network;

[0021] After receiving the fourth request message, the first port removes the third VLAN tag in the fourth request message and forwards the message to the first BMC;

[0022] receiving a third response message fed back by the first BMC according to the request message after the third VLAN tag is stripped, wherein the third response message does not carry the VLAN tag;

[0023] If the target device of the third response message is the external device of the second VLAN network, adding the fourth VLAN tag of the second VLAN network to the third response message to generate a fourth response message;

[0024] Transmitting the fourth response message to the third port;

[0025] After receiving the fourth response message, the third port strips off the fourth VLAN tag in the fourth response message, and transmits the stripped response message to the external device.

[0026] In combination with the first aspect, in yet another optional implementation, the address of the second BMC of the chassis is a static address, and the second BMC communicates and transmits with the first BMC in the first VLAN network through the static address;

[0027] The address of the external device is a dynamic address, and the external device communicates with the first BMC in the second VLAN network through the dynamic address.

[0028] In a second aspect, the present invention further provides a VLAN-based data transmission method, which is applied to a primary server, and the method comprises:

[0029] Configure a first virtual port and a second virtual port of the BMC of the master server, wherein the first virtual port is used to transmit message data of a first VLAN network, and the second virtual port is used to transmit message data of a second VLAN network;

[0030] Generate a first request message including a first VLAN tag;

[0031] The first request message is sent to the first port of the layer 2 switch through the first virtual port or the second virtual port, so that the layer 2 switch forwards the first request message to the target port corresponding to the target network, and transmits the second request message to the second BMC or the external device through the target port.

[0032] In a third aspect, the present invention further provides a layer 2 switch, the layer 2 switch comprising at least a first port, a second port, a third port and a configuration module, wherein the first port is connected to a first BMC of a main server, the second port is connected to a second BMC of a chassis, and the third port is connected to an external device;

[0033] a configuration module, configured to configure the first port to support data transmission between a first VLAN network and a second VLAN network, wherein the first VLAN network is a network between the first BMC of the main server and the second BMC of the chassis, and the second VLAN network is a network between the first BMC of the main server and the external device;

[0034] The first port is used to parse the first request message to obtain the first VLAN tag contained therein when receiving the first request message sent by the first BMC; determine the target network in the first VLAN network and the second VLAN network according to the first VLAN tag, and forward the first request message to the target port corresponding to the target network, where the target port corresponding to the target network is the second port or the third port;

[0035] The second port is used to transmit the second request message to the second BMC; or,

[0036] The third port is used to transmit a second request message to the external device, wherein the second request message is the first request message without the first VLAN tag.

[0037] In a fourth aspect, the present invention further provides a main server, the main server comprising:

[0038] A configuration module, used to configure a first virtual port and a second virtual port of the BMC of the master server, wherein the first virtual port is used to transmit message data of a first VLAN network, and the second virtual port is used to transmit message data of a second VLAN network;

[0039] A processing module, configured to generate a first request message including a first VLAN tag;

[0040] A sending module is used to send the first request message to the first port of the second layer switch through the first virtual port or the second virtual port, so that the second layer switch forwards the first request message to the target port corresponding to the target network, and uses the target port to transmit the second request message to the second BMC or the external device.

[0041] In a fifth aspect, the present invention further provides a VLAN-based data transmission system, the system comprising: a main server BMC, a layer 2 switch, a chassis BMC and an external device, the layer 2 switch comprising at least a first port, a second port and a third port; wherein the first port is connected to the main server BMC, the second port is connected to the chassis BMC, and the third port is connected to the external device;

[0042] The layer 2 switch performs the VLAN-based data transmission method described in the first aspect or any implementation manner of the first aspect through the first port, the second port, and the third port;

[0043] The main server BMC executes the VLAN-based data transmission method described in the second aspect through a virtual port;

[0044] The chassis BMC is used to receive the second request message sent by the layer 2 switch through the first VLAN network, or the external device is used to receive the second request message sent by the layer 2 switch through the second VLAN network.

[0045] In the VLAN-based data transmission method, device and system provided by the present invention, the first BMC of the main server sends the first request message to the second BMC or the external device through the first VLAN network or the second VLAN network via the layer 2 switch. The port isolation between the BOX BMC and the HOST BMC adopts the VLAN tag method, which not only ensures the uniqueness of the communication between the main server and the BOX BMC, but also ensures the security of the communication, and ensures the robustness of the entire network when these models are deployed in large quantities in the network environment of the data center.

[0046] In addition, in the embodiment of the present invention, static IP addresses are configured for both BOX BMC and HOST BMC to save IP address resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 It is a schematic diagram of a GPU BOX server application scenario provided by an embodiment of the present invention;

[0049] Figure 2 It is a schematic diagram of a structure including a layer 2 switch provided by an embodiment of the present invention;

[0050] Figure 3 It is a flow chart of a VLAN-based data transmission method provided by an embodiment of the present invention;

[0051] Figure 4 It is a schematic diagram of a flow chart of VLAN-based message transmission provided by an embodiment of the present invention;

[0052] Figure 5 It is a flow chart of another VLAN-based data transmission method provided by an embodiment of the present invention;

[0053] Figure 6 It is a structural block diagram of a main server provided by an embodiment of the present invention;

[0054] Figure 7 It is a structural diagram of a hardware device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] 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.

[0056] First, the application scenarios and related terms of the technical solution of the present invention are introduced.

[0057] The technical solution of the present invention is applied to the technical field of switches, and specifically relates to L2 LAN SWITCH (second layer local area network switch), referred to as layer 2 switch.

[0058] Layer 2 switch is a key device in computer network for data exchange between interfaces within local area network (LAN). L2 LAN Switch mainly works at the data link layer (Layer 2) of the network. It uses the MAC address table to determine the port where the destination address is located, thereby realizing data forwarding. When the switch receives a data packet or data message, it will check the MAC address information of the data packet and look up the corresponding port in its MAC address table. If a matching entry is found, the switch will forward the data packet to the corresponding port; if no match is found, the data packet may be broadcast to all ports.

[0059] Since L2 LAN Switch only works in Layer 2 network, it forwards data very quickly, mainly due to its direct recognition and processing of MAC addresses. In addition, Layer 2 switch also has MAC address learning, broadcast and multicast control functions. Layer 2 switch can automatically learn and maintain MAC address table. When the switch receives a data packet, it updates its MAC address table from the source MAC address and port information. In addition, through intelligent broadcast and multicast control mechanism, L2LAN Switch can reduce unnecessary network traffic and improve network efficiency.

[0060] The layer 2 switch described in the embodiment of the present invention is an in-vehicle Ethernet switch, for example, it can be a Marvell 88E6321 layer 2 switch chip on a BOX mainboard.

[0061] With the launch of a large number of AI applications, a large number of GPU servers need to be trained and learn models, and the demand for GPU BOX servers in data centers has also seen a blowout growth. Among AI servers, there is a type of server: GPU BOX server. GPU BOX servers have gradually attracted a lot of attention in the market due to their unique features (such as high density and outstanding heat dissipation).

[0062] GPU BOX server is a server that uses graphics processing unit (GPU) for high-performance computing. Compared with traditional central processing unit (CPU) based servers, GPU BOX server has significant advantages in processing parallel computing-intensive tasks. By transferring the workload of the computing-intensive part of the application to the GPU, while the CPU runs the rest of the program code, GPU BOX server can significantly increase the running speed of the application.

[0063] See also Figure 1 , is a schematic diagram of a GPU BOX server application scenario provided by an embodiment of the present invention. The application scenario includes: a host server BMC (HOST BMC), a chassis BOX BMC, a layer 2 switch (L2 LAN Switch) and external devices, such as a PC.

[0064] The chassis BOX BMC can be used to install the GPU BOX server. The Layer 2 switch includes multiple ports, such as Figure 1 As shown, it includes 3 ports, such as Port3, Port4 and Port5. Port3 is connected to the main server BMC, Port4 is connected to the external device PC through the external network, and Port5 is connected to the BOX BMC.

[0065] At present, the L2 LAN switch chip on the BOX performs simple port isolation, such as port 4 can only communicate with port 3, and port 3 can communicate with both port 4 and port 5. The configuration method can be implemented by referring to the spec of the specific chip. The L2 LAN switch of the second layer switch only performs simple chip-level port isolation. When the device with the same IP address as the BOX BMC or HOST BMC is connected to the external switch, the communication between the HOST BMC and the BOX BMC may be intercepted by the PC connected to the switch of the external network, thereby affecting the normal communication of monitoring information between the main server and the BOX BMC, and creating security risks.

[0066] The embodiment of the present invention is mainly to solve the above-mentioned communication security problem. By configuring a VLAN tag on the port of the layer 2 switch, the proprietary communication data between the BOX BMC and the HOST BMC is isolated, thereby ensuring the security and uniqueness of the data communicated between the main server HOST and the BOX BMC.

[0067] See also Figure 2 , is a schematic diagram of a structure including a layer 2 switch provided in this embodiment. Figure 1 Similarly, the scenario includes: a layer 2 switch, wherein the layer 2 switch includes at least a first port.

[0068] Optionally, the first port corresponds to the aforementioned port3, the second port corresponds to the aforementioned port5, and the third port corresponds to the aforementioned port4, wherein the first port is connected to the first BMC (HOST BMC) of the host server, the second port is connected to the second BMC (BOX BMC) of the chassis, and the third port is connected to an external device.

[0069] Furthermore, the BMC (Baseboard Management Controller) complies with the IPMI (Intelligent Platform Management Interface) specification and provides management and monitoring functions for hardware and software such as the CPU, firmware (BIOS or UEFI) and operating system of the host system that are independent of the host system.

[0070] HOST BMC refers to the relationship or interaction between the HOST (host) and BMC (Baseboard Management Controller) in the server. It provides the following functions: remote server management, remote power control, sensor monitoring, event logging, remote console access, remote firmware update, remote alarm and notification, etc.

[0071] The HOST is the main computing unit of the server, and the first BMC is responsible for monitoring and managing the server. On the server, the HOST and the BMC interact extensively through the IPMI interface. These interactions enable the administrator to remotely manage and monitor the status, performance, and configuration of the HOST through the BMC. In this embodiment, a bond0.0 port with tag (102) vlan is added to the HOST BMC for communication with port3 of the LAN switch.

[0072] The second BMC of the chassis is used to place the GPU server and needs to be used together with the main server.

[0073] Optional, such as Figure 2 As shown, the first port of the layer 2 switch is connected to the main server through a tiered network port, and the third port of the layer 2 switch is connected to the external device through an external management network port.

[0074] It should be noted that, in this embodiment, in order to distinguish the HOST BMC from the BOX BMC, the HOST BMC is called the first BMC and the BOX BMC is called the second BMC.

[0075] In addition, in the present embodiment, the messages in different VLAN communications also carry VLAN tags, which are fields in Ethernet frames used to identify VLAN (Virtual Local Area Network) membership. In standard Ethernet frames, there is no direct way to distinguish different VLANs, so VLAN tags are introduced to achieve this function.

[0076] VLAN Tag is usually an extra field inserted into the header of an Ethernet frame, which contains the VLAN identifier (usually a 12-bit VLAN ID) and some other control information. When a network device (such as a switch or router) receives an Ethernet frame with a VLAN Tag, it will decide how to handle the frame based on the VLAN ID in the Tag. The main function of VLAN Tag is to allow the creation of multiple logically independent networks on the same physical network, each with its own broadcast domain, security policy, and access control, thereby improving the security, manageability, and flexibility of the network.

[0077] According to an embodiment of the present invention, a VLAN-based 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.

[0078] In this embodiment, a VLAN-based data transmission method is provided, which can be used in the above Figure 1 or Figure 2 The system architecture shown in the figure can be applied to a Layer 2 switch (L2 LAN Switch) such as Figure 3 As shown, the process includes the following steps:

[0079] Step S101: configuring a first port to support data transmission between a first VLAN network and a second VLAN network.

[0080] The first VLAN network is a network between the first BMC of the main server HOST and the second BMC of the chassis BOX, and the second VLAN network is a network between the first BMC of the main server and an external device.

[0081] Furthermore, combined with Figure 4As shown, step S101 specifically includes: the layer 2 switch sets the first port (such as port3) to support the message transmission of VLAN 102tag and VLAN 101tag; the layer 2 switch sets the second port (such as port5) to support the message transmission of VLAN 102tag; the layer 2 switch sets the third port (such as port4) to support the message transmission of VLAN 101tag.

[0082] The message of VLAN 102 tag is transmitted in the first VLAN network, and is used for communication between the BOX BMC and the first BMC of the main server. The message of VLAN 101 tag is transmitted in the second VLAN network.

[0083] Step S102: when the first port receives the first request message sent by the first BMC, the first request message is parsed to obtain the first VLAN tag contained therein.

[0084] In a specific implementation, the first port of the layer 2 switch receives a first request message sent from the first BMC on the main server through the connected tier network port, the first request message being used to request the second BMC to perform a task or service function. The first VLAN tag in the first request message is generated and configured by the main server.

[0085] In this embodiment, according to the IEEE 802.1Q protocol, a 4-byte VLAN tag ("Tag") is added between the protocol type field after the destination MAC address and source MAC address fields of the Ethernet data frame to identify the VLAN information. The VLAN tag includes: Type / TPID, Priority, CFI and VLAN ID fields.

[0086] Furthermore, the Type / TPID field identifies the frame type. When the value is 0x8100, it indicates an 802.1Q Tag frame. If a device that does not support 802.1Q receives such a frame, it will discard it. Priority is used to indicate the priority of the frame. The value range is 0 to 7. The larger the value, the higher the priority. It is used to give priority to sending high-priority data packets / messages when blocked. The CFI field is 1 bit long and indicates whether the MAC address is in the classic format. A CFI of 0 indicates a standard format, and a CFI of 0 indicates a non-standard format. It is used to distinguish Ethernet frames, FDDI frames, and token ring frames.

[0087] The VLAN ID is 12 bits long and indicates the VLAN to which the frame belongs. In VRP, the configurable VLAN ID value range is 1 to 4094. 0 and 4095 are reserved VLAN IDs in the protocol.

[0088] Step S103: determining a target network in the first VLAN network and the second VLAN network according to the first VLAN tag.

[0089] Specifically, one implementation is to determine the target network by using the VLAN ID obtained by parsing the first VLAN tag in step S102 to indicate the VLAN to which the first request message belongs.

[0090] If the VLAN ID in the first VLAN tag indicates that the first request message belongs to the first VLAN network, the target network is determined to be the first VLAN network. The first VLAN network is a communication network transmitted by the VLAN 102 tag.

[0091] If the VLAN ID in the first VLAN tag indicates that the first request message belongs to the second VLAN network, the target network is determined to be the second VLAN network. The second VLAN network is a communication network for messages transmitted by an external network.

[0092] Step S104: forwarding the first request message to a target port corresponding to the target network, and transmitting the second request message to the second BMC or the external device by using the target port.

[0093] The target port corresponding to the target network is the second port or the third port, and the second request message is the message obtained by removing the first VLAN tag from the first request message.

[0094] If the first request message belongs to the first VLAN network, the first request message is forwarded to the second port, so that the second port forwards the second request message after the first VLAN tag is stripped from the first request message to the second BMC.

[0095] like Figure 4 As shown, the first request message is a request message carrying a VLAN tag, for example, carrying a first VLAN tag. When the first port of the layer 2 switch parses and determines that the message is from the first VLAN network, the first port forwards the first request message to the second port, and transmits the message to the second port through the first VLAN network. The second port is an access port. Before forwarding the first request message, the first VLAN tag is stripped off to generate a second request message. Then, the second port forwards the second request message to the second BMC. The second request message does not carry a VLAN tag. Figure 4 The packet without VLAN tag is called "unTagged", or "unTag" for short.

[0096] If the first request message belongs to the second VLAN network, the first request message is forwarded to the third port, so that the third port forwards the second request message after the first VLAN tag is stripped from the first request message to the external device.

[0097] If the first request message is parsed in step S103 to belong to the second VLAN network, i.e., a message transmitted to an external device, the first port forwards the first request message to the third port through the second VLAN network, and the second VLAN network is used to transmit messages / request frames with an address of 101. After receiving the first request message from the first port, the third port strips off the first VLAN tag, generates a second request message, and forwards the unTag second request message to the external device. The third port is also an access port.

[0098] It should be noted that the second port and the third port are both access ports, corresponding to the access link type. The access link type only allows the default VLAN message, that is, it can only belong to one VLAN. After receiving the message, the access port adds a VLAN tag and removes the VLAN tag when forwarding.

[0099] The first port is a hybrid port. A hybrid port can allow multiple VLANs to pass through and can receive and send multiple VLAN messages. A hybrid port can allow multiple VLAN messages to be sent without tags. The working principle is as follows: During the sending process, the first port first determines which VLANs are unTagged and which are Tagged in the attributes of this port. If it is unTagged, the VLAN information is stripped and then sent. If it is a Tagged message, it is sent directly.

[0100] In this embodiment, the first BMC of the main server sends the first request message to the second BMC or the external device through the first VLAN network or the second VLAN network through the layer 2 switch. The port isolation between the BOX BMC and the HOST BMC adopts the VLAN tag method, which not only ensures the uniqueness of the communication between the main server and the BOX BMC, but also ensures the security of the communication, and ensures the robustness of the entire network when these models are deployed in large quantities in the network environment of the data center.

[0101] Optionally, in some implementations of this embodiment, after step S104, the following further includes:

[0102] In the case of using the target port to transmit the second request message to the second BMC, the second port is used to receive the first response message from the second BMC, and the first response message is a response message generated by the second BMC according to the first request message. Specifically, after receiving the second request message sent by the second port, the second BMC executes the task corresponding to the second request message to obtain the first response message, the first response message does not carry a VLAN tag, that is, an unTagged response message, and transmits the first response message to the second port of the layer 2 switch through the first VLAN network.

[0103] The second port determines that the target device to be forwarded is the first BMC according to the MAC address list, and then the second port adds the second VLAN tag of the first VLAN network to the first response message, generates a second response message, and sends the second response message to the first port through the access link. After the first port receives the second response message carrying the second VLAN tag, it transmits the second response message to the first BMC of the main server through the first port and the tiered network port. In this way, the transmission of the response message is realized, and a request and response communication between the main server BMC and the BOX BMC is completed.

[0104] In addition, in another embodiment, the above method further includes: a communication interaction process between an external device in an external network and the main server BMC. Specifically, it includes:

[0105] The external device sends a request message, such as a third request message, to the layer 2 switch through the external network. The third request message does not carry a VLAN tag.

[0106] When the third port of the layer 2 switch receives the third request message sent by the external device, a third VLAN tag, such as a VLAN tag of 101Tag, is added to the third request message to generate a fourth request message, wherein the third VLAN tag includes the VLAN ID of the second VLAN network.

[0107] The third port transmits the fourth request message to the first port through the second VLAN network, for example, transmits it to the first port of the layer 2 switch through the VLAN101 network.

[0108] After receiving the fourth request message, the first port removes the third VLAN tag in the fourth request message and forwards the message to the first BMC.

[0109] After receiving the request message after stripping the third VLAN tag, the first BMC executes the request message to obtain a response message, such as generating a third response message, which does not carry a VLAN tag.

[0110] The first BMC sends the third response message to the layer 2 switch. The first port of the layer 2 switch receives the third response message fed back by the first BMC according to the request message after the third VLAN tag is stripped, and parses the third response message.

[0111] If the target device of the third response message is an external device of the second VLAN network, a fourth response message is generated after adding a fourth VLAN tag of the second VLAN network to the third response message; for example, a VLAN tag of address 101 is added to the third response message, and then the fourth response message carrying the VLAN tag of 101 is transmitted to the third port. After receiving the fourth response message, the third port strips off the fourth VLAN tag, i.e., the 101 VLAN tag, from the fourth response message, and transmits the stripped response message to the external device. A communication transmission of a request and a response is realized between the main server and the external device.

[0112] It should be noted that this embodiment only exemplifies the interaction process of message request and response once. In actual situations, the BMC of the main server communicates with the BMC of the BOX or external devices multiple times in real time, and the process is the same or similar to the communication process in this embodiment, so this embodiment does not exemplify them one by one.

[0113] In addition, the address of the second BMC of the chassis BOX of this embodiment is a static address, and the second BMC communicates with the first BMC in the first VLAN network through the static address; the address of the external device is a dynamic address, and the external device communicates with the first BMC in the second VLAN network through the dynamic address.

[0114] During the network communication between the first BMC of the main server and the second BMC of the BOX server in the AI ​​server, the network of the main server BMC has two IP addresses, one is a dynamic address, such as 10.xxx, which can communicate normally with the external network, and the other is a static address, such as 192.168.xx.10, which is used for dedicated communication with the BOXserver (192.168.xx.11) through the Layer 2 switch LAN switch.

[0115] The BOX BMC has only one static address, such as 192.168.xx.11, and communicates with the static address of the main server BMC (192.168.xx.10) through the Layer 2 switch LAN switch. Special configuration is made to the LAN switch to meet the above data transmission requirements. In addition, in this embodiment, configuring static IP addresses for the BOX BMC and the HOST BMC can save IP address resources.

[0116] In another embodiment, the present invention also provides a VLAN-based data transmission method, which is applied to a main server and is similar to the above-mentioned Figure 3 The embodiment shown corresponds to Figure 5 As shown, the method includes:

[0117] Step S501: configuring a first virtual port and a second virtual port of the BMC of the master server, wherein the first virtual port is used to transmit message data of a first VLAN network, and the second virtual port is used to transmit message data of a second VLAN network.

[0118] Specifically, the main server BMC sets two virtual ports in its network card, namely the first virtual port and the second virtual port. The first virtual port supports DHCP dynamic IP address, and the second virtual port supports VLAN 102tag message transmission. For example, it supports static IP address, such as 192.168.xx.10. The IP address of the second virtual port belongs to the same network segment as the IP address of the BOX BMC, so that the main server BMC and the BOX BMC both support VLAN 102tag message transmission.

[0119] Similarly, the BOX BMC configuration process includes: configuring the BOX BMC with an IP address that belongs to the same network segment as the main server BMC, such as 192.168.xx.11.

[0120] Step S502: Generate a first request message including a first VLAN tag.

[0121] The first VLAN tag includes the above-mentioned Type / TPID, Priority, CFI and VLAN ID fields. The specific content and meaning of each field refer to the description of the above-mentioned embodiment, which will not be repeated here.

[0122] Step S503: the master server BMC sends the first request message to the first port of the layer-2 switch through the first virtual port or the second virtual port.

[0123] If the communication is with the BOX BMC, the first request message is transmitted to the first port of the layer 2 switch through the first virtual port, so that the layer 2 switch forwards the first request message to the target port corresponding to the target network, and uses the target port to transmit the second request message to the second BMC. Figure 3 The first and second request messages shown correspond to each other.

[0124] If the communication is with an external device, the first request message is transmitted to the first port of the layer 2 switch through the second virtual port, so that the layer 2 switch transmits the first request message to the external device through the third port.

[0125] It should be noted that the configuration commands for configuring the main server BMC, BOX BMC and layer 2 switch can refer to the Marvell 88E6321 chip rules, which will not be described in detail here.

[0126] In the method of this embodiment, when the external network enters the message from the third port, port4 of the second-layer switch, it will be tagged with VLAN 101 and can only be sent to the first port, such as port3's VLAN 101 network inside the second-layer switch. The first port, such as port3, will transmit the message to the second VLAN network of the main server to the first BMC.

[0127] If the message sent from the BOX BMC in the internal network is tagged with VLAN 102 inside the Layer 2 switch, it can only be transmitted to the first port, such as the VLAN 102 network of port3 (that is, the first VLAN network). Finally, it will be sent from the first port, port3, with the 102 tag to the 192.168.xx.10 network card of the main server.

[0128] In the method provided by this implementation, since only the switch port configured with VLAN can receive tagged messages, the tagged messages sent by the network card of 192.168.xx.10 cannot enter the external network, that is, the second VLAN network, so data can only be exchanged with the BOX BMC through the first VLAN network, thereby preventing the data messages between the HOST BMC and the BOX BMC from entering the external network, avoiding message pollution of the external network or reducing the load of the external switch.

[0129] In addition, in the embodiment of the present invention, which is applied to a multi-node server, the data interaction between nodes uses a fixed IP address, so a VLAN tag is adopted to ensure the security and uniqueness of data transmission.

[0130] In some embodiments, a layer 2 switch is also provided. The structure of the layer 2 switch can be seen in the above Figure 1 , Figure 2 and Figure 4 As shown, the layer 2 switch includes at least a first port, a second port, a third port and a configuration module (not shown in the figure). The first port is connected to the first BMC of the main server, the second port is connected to the second BMC of the chassis, and the third port (port4) is connected to an external device.

[0131] The configuration module is used to configure the first port to support data transmission between a first VLAN network and a second VLAN network, wherein the first VLAN network is a network between a first BMC of a main server and a second BMC of a chassis, and the second VLAN network is a network between the first BMC of the main server and an external device.

[0132] The first port is used to receive a first request message sent by the first BMC, parse the first request message to obtain a first VLAN tag contained therein; determine a target network in the first VLAN network and the second VLAN network according to the first VLAN tag, and forward the first request message to a target port corresponding to the target network, wherein the target port corresponding to the target network is the second port or the third port.

[0133] The second port is used to transmit the second request message to the second BMC. Alternatively, in another possible implementation, the third port is used to transmit the second request message to an external device. The second request message is the message after the first VLAN tag is removed from the first request message.

[0134] In addition, the embodiment of the present invention also provides a main server, such as Figure 6 As shown, the main server includes: a configuration module 610, a processing module 620 and a sending module 630. In addition, the main server may also include other more or fewer modules, such as a storage module, etc., which is not limited in this embodiment.

[0135] The configuration module 610 is used to configure a first virtual port and a second virtual port of the BMC of the master server, wherein the first virtual port is used to transmit message data of the first VLAN network, and the second virtual port is used to transmit message data of the second VLAN network;

[0136] The processing module 620 is configured to generate a first request message including a first VLAN tag.

[0137] The sending module 630 is used to send the first request message to the first port of the second layer switch through the first virtual port or the second virtual port, so that the second layer switch forwards the first request message to the target port corresponding to the target network, and uses the target port to transmit the second request message to the second BMC or external device.

[0138] 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.

[0139] In addition, this embodiment also provides a VLAN-based data transmission system, which includes: a main server BMC, a layer 2 switch, a chassis BMC, and an external device. The layer 2 switch includes at least a first port, a second port, and a third port; the first port is connected to the main server BMC, the second port is connected to the chassis BMC, and the third port is connected to the external device. For specific connection relationships and structures, see the aforementioned Figure 2 and Figure 4 .

[0140] The layer 2 switch performs the above steps through the first port, the second port and the third port. Figure 3 The data transmission method shown in the figure; the main server BMC executes the above-mentioned Figure 5 The data transmission method.

[0141] The chassis BMC is used to receive the second request message sent by the layer 2 switch through the first VLAN network, or the external device is used to receive the second request message sent by the layer 2 switch through the second VLAN network.

[0142] See also Figure 7 , a structural diagram of a hardware device provided by an optional embodiment of the present invention may correspond to a processing chip or a first port circuit in a layer 2 switch.

[0143] like Figure 7 As shown, the processing chip or the first port circuit includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the hardware device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface).

[0144] In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0145] 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.

[0146] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the data transmission method shown in the above embodiment.

[0147] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required for at least one function; the data storage area may store data created by the use of hardware devices, and the like.

[0148] 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 hardware device via a network. 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 hard disk; the memory 20 may also include a combination of the above-mentioned types of memory.

[0149] The hardware device also includes an input / output device. The input and output devices can be connected via a bus or other means. The hardware device also includes a communication interface 30, which is used for the hardware device to communicate with other devices or a communication network.

[0150] 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.

[0151] 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 VLAN-based data transmission method, characterized in that: Applied to a layer 2 switch, the layer 2 switch includes at least a first port, a second port and a third port, wherein the first port is connected to a first BMC of a main server, the second port is connected to a second BMC of a chassis, and the third port is connected to an external device, the method includes: Configuring the first port to support data transmission between a first VLAN network and a second VLAN network, wherein the first VLAN network is a network between a first BMC of the main server and a second BMC of the chassis, and the second VLAN network is a network between the first BMC of the main server and the external device; When the first port receives the first request message sent by the first BMC, parsing the first request message to obtain the first VLAN tag contained therein; determining a target network in the first VLAN network and the second VLAN network according to the first VLAN tag; The first request message is forwarded to a target port corresponding to the target network, and the second request message is transmitted to the second BMC or the external device using the target port, wherein the target port corresponding to the target network is the second port or the third port, and the second request message is the message after the first VLAN tag is removed from the first request message.

2. The method according to claim 1, characterized in that The first VLAN tag obtained by parsing includes a VLAN ID, and the VLAN ID indicates the VLAN to which the first request message belongs: The determining a target network in the first VLAN network and the second VLAN network according to the first VLAN tag includes: If the VLAN ID in the first VLAN tag indicates that the first request message belongs to a first VLAN network, determining that the target network is the first VLAN network; If the VLAN ID in the first VLAN tag indicates that the first request message belongs to a second VLAN network, the target network is determined to be the second VLAN network.

3. The method according to claim 2, characterized in that The step of forwarding the first request message to a target port corresponding to the target network, and transmitting the second request message to the second BMC or external device by using the target port, includes: If the first request message belongs to the first VLAN network, forwarding the first request message to the second port, so that the second port forwards the second request message after the first VLAN tag is stripped from the first request message to the second BMC; If the first request message belongs to the second VLAN network, the first request message is forwarded to the third port, so that the third port forwards the second request message after the first VLAN tag is stripped from the first request message to the external device.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In a case where the second request message is transmitted to the second BMC by using the target port, a first response message from the second BMC is received by using the second port, where the first response message is a response message generated by the second BMC according to the first request message; Determine, according to the MAC address list, that the target device to be forwarded is the first BMC; After adding the second VLAN tag of the first VLAN network to the first response message, a second response message is generated, and the second response message is transmitted to the first BMC through the first port.

5. The method according to any one of claims 1 to 3, characterized in that: After configuring the first port to support data transmission between the first VLAN network and the second VLAN network, the method further includes: When the third port receives the third request message sent by the external device, a third VLAN tag is added to the third request message to generate a fourth request message, wherein the third VLAN tag includes a VLAN ID of the second VLAN network; The third port transmits the fourth request message to the first port through the second VLAN network; After receiving the fourth request message, the first port removes the third VLAN tag in the fourth request message and forwards the message to the first BMC; The first port receives a third response message fed back by the first BMC according to the request message after the third VLAN tag is stripped, wherein the third response message does not carry the VLAN tag; If the target device of the third response message is the external device of the second VLAN network, adding the fourth VLAN tag of the second VLAN network to the third response message to generate a fourth response message; Transmitting the fourth response message to the third port; After receiving the fourth response message, the third port strips the fourth VLAN tag in the fourth response message; The stripped response message is transmitted to the external device.

6. The method according to claim 5, characterized in that The address of the second BMC of the chassis is a static address, and the second BMC communicates and transmits with the first BMC in the first VLAN network through the static address; The address of the external device is a dynamic address, and the external device communicates with the first BMC in the second VLAN network through the dynamic address.

7. A VLAN-based data transmission method, characterized in that: Applied to the main server, the method comprises: Configure a first virtual port and a second virtual port of the BMC of the master server, wherein the first virtual port is used to transmit message data of a first VLAN network, and the second virtual port is used to transmit message data of a second VLAN network; Generate a first request message including a first VLAN tag; The first request message is sent to the first port of the layer 2 switch through the first virtual port or the second virtual port, so that the layer 2 switch forwards the first request message to the target port corresponding to the target network, and transmits the second request message to the second BMC or external device through the target port.

8. A layer 2 switch, characterized in that: The layer 2 switch at least includes a first port, a second port, a third port and a configuration module, wherein the first port is connected to the first BMC of the main server, the second port is connected to the second BMC of the chassis, and the third port is connected to an external device; The configuration module is used to configure the first port to support data transmission between a first VLAN network and a second VLAN network, wherein the first VLAN network is a network between the first BMC of the main server and the second BMC of the chassis, and the second VLAN network is a network between the first BMC of the main server and the external device; The first port is used to parse the first request message to obtain a first VLAN tag contained therein when receiving the first request message sent by the first BMC; Determine a target network in the first VLAN network and the second VLAN network according to the first VLAN tag, and forward the first request message to a target port corresponding to the target network, where the target port corresponding to the target network is the second port or the third port; The second port is used to transmit the second request message to the second BMC; or, The third port is used to transmit a second request message to the external device, wherein the second request message is the first request message without the first VLAN tag.

9. A main server, characterized in that: The main server comprises: A configuration module, used to configure a first virtual port and a second virtual port of the BMC of the master server, wherein the first virtual port is used to transmit message data of a first VLAN network, and the second virtual port is used to transmit message data of a second VLAN network; A processing module, configured to generate a first request message including a first VLAN tag; A sending module is used to send the first request message to the first port of the second layer switch through the first virtual port or the second virtual port, so that the second layer switch forwards the first request message to the target port corresponding to the target network, and uses the target port to transmit the second request message to the second BMC or external device.

10. A VLAN-based data transmission system, characterized in that: The system comprises: a main server BMC, a layer 2 switch, a chassis BMC and an external device, wherein the layer 2 switch comprises at least a first port, a second port and a third port; wherein the first port is connected to the main server BMC, the second port is connected to the chassis BMC, and the third port is connected to the external device; The layer 2 switch performs the VLAN-based data transmission method according to any one of claims 1 to 6 through the first port, the second port and the third port; The main server BMC executes the VLAN-based data transmission method according to claim 7 through a virtual port; The chassis BMC is used to receive the second request message sent by the layer 2 switch through the first VLAN network, or the external device is used to receive the second request message sent by the layer 2 switch through the second VLAN network.

Citation Information

Cited By

  • Network equipment data processing method and network equipment

    CN119182743A

  • Intelligent driving domain control data transmission method and system based on combination of VLAN and SWITCH port isolation

    CN121585497A