A data frame transmission method, virtualization platform and storage medium

By converting VLAN information into VLAN headers on the virtual machine platform, the problem of upgrading communication equipment in the data frame transmission processing in the virtualized environment is solved, and the service communication transmission and network automation configuration without upgrading is realized.

CN114726715BActive Publication Date: 2025-04-01CHINA MOBILE COMM LTD RES INST +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110005323.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-05
Publication Date
2025-04-01
Estimated Expiration
2041-01-05

AI Technical Summary

Technical Problem

In a virtualized environment, when the data frame is processed through the transmission, the communication device needs to be upgraded and transformed, resulting in network communication abnormalities.

Method used

The virtual machine platform receives data frames carrying VLAN information, converts the VLAN information into the corresponding VLAN header according to the configuration table, and sends data frames carrying VLAN header to the switch, realizing the transmission of "service VLAN".

Benefits of technology

There is no need to upgrade and transform existing communication equipment, which realizes normal transmission of data frames, ensures normal operation of service communication, and supports automatic network activation during the entire life cycle of the service.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114726715B_ABST
    Figure CN114726715B_ABST
Patent Text Reader

Abstract

The present invention discloses a data frame transmission method, a virtualization platform and a storage medium, comprising: a virtual machine platform receives a data frame carrying VLAN information sent by a virtual machine from a virtual port; converts the VLAN information in the data frame into a corresponding VLAN header according to a configuration table; and sends the data frame carrying the VLAN header to a switch. The virtual machine platform receives a data frame carrying a VLAN header sent by a switch; converts the VLAN header in the data frame into corresponding VLAN information according to a configuration table; and sends the data frame carrying VLAN information to a virtual port of the virtual machine, wherein the configuration table contains the corresponding relationship between the VLAN information and the VLAN header. By adopting the present invention, there is no requirement for modification of the upper layer services, the transparent transmission scheme of the data frame is more concise, the configuration process is simpler, and the automatic opening of the network during the entire life cycle of the service can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a data frame transmission method, a virtualization platform and a storage medium. Background Art

[0002] Virtualized network elements usually use VLAN (Virtual Local Area Network) to identify their service interfaces. For example, different VLANs are used to distinguish network planes (such as management plane and service plane), service exports (such as to CMNET (China Mobile Network), IP bearer network, etc.), and interfaces between network elements (such as S-GW (Serving Gateway) / P-GW (PDN Gateway; PDN: Packet Data Network) interface and S-GW / MME (Mobility Management Entity) interface). In a virtualized environment, the appearance of this service feature is that the data frames sent by the virtual machine from the virtual port carry VLAN information. The virtualization platform needs to retain this "service VLAN" when forwarding data frames. Figure 1 The following is a schematic diagram of VNF (Virtualization Network Function) using VLAN to distinguish service interfaces. In the figure, vSwitch is a virtual switch, and SR-IOV is single root I / O virtualization (I / O: input / output). Figure 1 shown.

[0003] At the same time, the virtualization platform itself has tenant isolation capabilities. For the UNTAG (untagged) data frames sent by the virtual port, the virtualization platform needs to encapsulate a layer of VLAN header (traditional networking) or VxLAN (VLAN extension) header (SDN (Software Defined Network) networking) header to distinguish the communication traffic of different tenant virtual networks, and for the inbound data packets, the additional VLAN header or VxLAN header is reversely stripped and sent to the virtual port. The module that performs this action is usually the virtual machine switch (vSwitch) or network card (SR-IOV) of the virtualization platform. Figure 2 Schematic diagram of virtual network isolation for vSwitch and SR-IOV, as shown below Figure 2 shown.

[0004] Under normal circumstances, since the virtual network isolation mechanism of vSwitch and SR-IOV conflicts with the "business VLAN" of VNF, vSwitch and SR-IOV network cards will discard data packets with "business VLAN" when they receive data packets sent by the virtual port, resulting in abnormal network communication. Therefore, a solution is needed to implement transparent transmission of "business VLAN" to achieve normal business communication.

[0005] The disadvantage of the prior art is that the existing transparent transmission processing technical solution cannot be supported by the existing communication equipment unless the communication equipment is upgraded and modified. Summary of the invention

[0006] The present invention provides a data frame transmission method, a virtualization platform and a storage medium, which are used to solve the problem that communication equipment needs to be upgraded and modified when transparent transmission of data frames in a virtualized environment is performed.

[0007] The present invention provides the following technical solutions:

[0008] A data frame transmission method, comprising:

[0009] The virtual machine platform receives a data frame carrying VLAN information sent by the virtual machine from the virtual port;

[0010] The virtual machine platform converts the VLAN information in the data frame into a corresponding VLAN header according to the configuration table, wherein the configuration table includes a corresponding relationship between the VLAN information and the VLAN header;

[0011] The virtual machine platform sends a data frame carrying a VLAN header to the switch.

[0012] In implementation, the data frame transmission is performed by vSwitch and / or SR-IOV.

[0013] In implementation, the configuration table is configured by the front-end API.

[0014] In implementation, the configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

[0015] During implementation, it further includes:

[0016] The virtual machine platform receives a data frame that does not carry VLAN information and is sent by the virtual machine from the virtual port;

[0017] The virtual machine platform encapsulates a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table contains a correspondence between the VLAN information not carried and the VLAN header;

[0018] The virtual machine platform sends a data frame carrying a VLAN header to the switch.

[0019] A data frame transmission method, comprising:

[0020] The virtual machine platform receives the data frame carrying the VLAN header sent by the switch;

[0021] The virtual machine platform converts the VLAN header in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table includes the corresponding relationship between the VLAN information and the VLAN header;

[0022] The virtual machine platform sends a data frame carrying VLAN information to the virtual port of the virtual machine.

[0023] In implementation, the data frame transmission is performed by vSwitch and / or SR-IOV.

[0024] In implementation, the configuration table is configured by the front-end API.

[0025] In implementation, the configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

[0026] During implementation, it further includes:

[0027] The virtual machine platform receives the data frame carrying the VLAN header sent by the switch;

[0028] After the virtual machine platform determines that the data frame does not carry VLAN information according to the configuration table, it strips the VLAN header of the data frame, wherein the configuration table contains the correspondence between the data frame not carrying VLAN information and the VLAN header;

[0029] The virtual machine platform sends a data frame with the VLAN header stripped off to a virtual port of the virtual machine corresponding to the VLAN information.

[0030] A virtualization platform, comprising:

[0031] The processor reads the program in the memory and performs the following processes:

[0032] Receive a data frame carrying VLAN information sent by the virtual machine from the virtual port;

[0033] Converting the VLAN information in the data frame into a corresponding VLAN header according to the configuration table, wherein the configuration table contains a corresponding relationship between the VLAN information and the VLAN header;

[0034] Send data frames carrying VLAN headers to the switch;

[0035] A transceiver is used to receive and send data under the control of the processor.

[0036] In implementation, the data frame transmission is performed by vSwitch and / or SR-IOV.

[0037] In implementation, the configuration table is configured by the front-end API.

[0038] In implementation, the configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

[0039] During implementation, it further includes:

[0040] Receive a data frame without VLAN information sent by the virtual machine from the virtual port;

[0041] Encapsulating a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table includes a correspondence between the VLAN information not carried and the VLAN header;

[0042] Send a data frame carrying a VLAN header to the switch.

[0043] A virtualization platform, comprising:

[0044] A first receiving module, used for receiving a data frame carrying VLAN information sent by the virtual machine from the virtual port;

[0045] A conversion module, used to convert the VLAN information in the data frame into a corresponding VLAN header according to a configuration table, wherein the configuration table contains a corresponding relationship between the VLAN information and the VLAN header;

[0046] The first sending module is used to send a data frame carrying a VLAN header to the switch.

[0047] During implementation, the vSwitch and / or SR-IOV of the virtualization platform performs data frame transmission.

[0048] During implementation, it further includes:

[0049] The configuration module is used to configure the configuration table through the front-end API.

[0050] During implementation, the configuration module is further used to call the front-end API to configure the configuration table through the northbound interface of the virtualization platform.

[0051] In implementation, the first receiving module is further used to receive a data frame that does not carry VLAN information and is sent by the virtual machine from the virtual port;

[0052] The conversion module is further used to encapsulate a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table contains a correspondence between the VLAN information not carried and the VLAN header;

[0053] The first sending module is further used to send a data frame carrying a VLAN header to the switch.

[0054] A virtualization platform, comprising:

[0055] The processor reads the program in the memory and performs the following processes:

[0056] Receive the data frame with VLAN header sent by the switch;

[0057] Converting the VLAN header in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table contains the corresponding relationship between the VLAN information and the VLAN header;

[0058] Send a data frame carrying VLAN information to the virtual port of the virtual machine;

[0059] A transceiver is used to receive and send data under the control of the processor.

[0060] In implementation, the data frame transmission is performed by vSwitch and / or SR-IOV.

[0061] In implementation, the configuration table is configured by the front-end API.

[0062] In implementation, the configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

[0063] During implementation, it further includes:

[0064] Receive the data frame with VLAN header sent by the switch;

[0065] After determining that the data frame does not carry VLAN information according to the configuration table, stripping the VLAN header of the data frame, wherein the configuration table contains the correspondence between the data frame that does not carry VLAN information and the VLAN header;

[0066] The data frame with the VLAN header stripped off is sent to the virtual port of the virtual machine corresponding to the VLAN information.

[0067] A virtualization platform, comprising:

[0068] The second receiving module is used to receive the data frame carrying the VLAN header sent by the switch;

[0069] A conversion module, used to convert the VLAN header in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table contains the corresponding relationship between the VLAN information and the VLAN header;

[0070] The second sending module is used to send a data frame carrying VLAN information to the virtual port of the virtual machine.

[0071] During implementation, the vSwitch and / or SR-IOV of the virtualization platform performs data frame transmission.

[0072] During implementation, it further includes:

[0073] The configuration module is used to configure the configuration table through the front-end API.

[0074] During implementation, the configuration module is further used to call the front-end API to configure the configuration table through the northbound interface of the virtualization platform.

[0075] In implementation, the second receiving module is further used to receive a data frame carrying a VLAN header sent by the switch;

[0076] The conversion module is further used to strip the VLAN header of the data frame after determining that the data frame does not carry VLAN information according to the configuration table, wherein the configuration table contains the correspondence between the data frame that does not carry VLAN information and the VLAN header;

[0077] The second sending module is further used to send a data frame stripped of a VLAN header to a virtual port of a virtual machine corresponding to the VLAN information.

[0078] A computer-readable storage medium stores a computer program for executing the above data frame transmission method.

[0079] The beneficial effects of the present invention are as follows:

[0080] In the technical solution provided by the embodiment of the present invention, the VLAN conversion of the vSwitch is realized by configuring a conversion table, that is, converting different service VLAN information into different corresponding virtual network ID VLAN headers. Since the data frame still contains a VLAN header instead of a "service VLAN", that is, the data frame from the virtual machine will only carry one layer of VLAN when forwarded to the access switch. Under SDN networking, the access switch will also convert the VLAN data frame into a VxLAN data frame. Whether it is a switch, a router or an SDN controller, it can support such data frames well. Therefore, the existing switches and routers in the data center can support this solution without replacement, which makes up for the defects of functional mechanisms such as DHCP under traditional networking, and does not require modification of upper-layer services. At the same time, it actually realizes transparent transmission processing, and can achieve normal business communication;

[0081] Furthermore, since the vSwitch or SR-IOV network card of the virtual machine platform and its supporting agent program can be expanded to introduce more network plug-ins to achieve automatic configuration of switches, routers and other devices, the data frame transparent transmission solution is simpler and the configuration process is simpler, which can realize automatic network activation during the entire life cycle of the service. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0083] Figure 1 A schematic diagram of VNF using VLAN to differentiate service interfaces in the background technology;

[0084] Figure 2 A schematic diagram of virtual network isolation using vSwitch and SR-IOV in the background technology;

[0085] Figure 3 Schematic diagram of VLAN transparent transmission in an embodiment of the present invention;

[0086] Figure 4 This is a schematic diagram of an implementation flow of a data frame transmission method 1 in an embodiment of the present invention;

[0087] Figure 5 This is a schematic diagram of the implementation process of the second data frame transmission method in an embodiment of the present invention;

[0088] Figure 6 The configuration diagram of the vSwitch or SR-IOV network card in the embodiment of the present invention is shown;

[0089] Figure 7 A schematic diagram of a network policy configuration process of a vSwitch or SR-IOV network card in an embodiment of the present invention;

[0090] Figure 8 This is a schematic diagram of data frame conversion in an embodiment of the present invention;

[0091] Fig. 9 A schematic diagram of a virtual network in an embodiment of the present invention;

[0092] Fig.10 A schematic diagram of a virtualization platform structure in an embodiment of the present invention;

[0093] Fig.11 Schematic diagram of the second virtualization platform structure in an embodiment of the present invention. DETAILED DESCRIPTION

[0094] The inventors noticed during the invention process that:

[0095] Existing transparent transmission processing technology solutions generally implement VLAN transparent transmission by encapsulating an additional VLAN layer on the outer layer of the service VLAN on the vSwitch and SR-IOV before the data frame is sent to the server to form a QinQ (802.1Q-in-802.1Q) data frame. Figure 3 This is a schematic diagram of VLAN transparent transmission. The specific solution is as follows Figure 3 shown.

[0096] When the data frame sent by the virtual port carries the "business VLAN" - Q1, the vSwitch or SR-IOV network card will encapsulate it with an additional layer of isolation VLAN - Q2 to become a QinQ data frame. The encapsulated Q2 is a fixed ID of the virtual network, and the inbound traffic is processed in the reverse direction.

[0097] To correctly transparently transmit QinQ data frames, you need to configure the QinQ data frame transparent transmission policy on the access switch (general switches support it). When QinQ data frames need to be routed (as shown in the figure, after being routed by the gateway, they are forwarded to the bearer network VLAN Q3), there are two options for traditional networking:

[0098] Option 1: Configure flexible QinQ policy on the uplink port of the access switch, strip the outer VLAN Q2 and send it to the gateway, then strip Q1 and forward it after entering the VPN corresponding to Q1, and process the inbound traffic in the reverse direction. Flexible QinQ policy is not supported by all switches.

[0099] Option 2: Configure QinQ termination policy on the downstream port of the gateway device. The original QinQ data packet directly enters the VPN corresponding to Q1+Q2, strips all VLANs, and then forwards them by table lookup. The inbound traffic is processed in the reverse direction. Currently, only high-end routers support QinQ termination policy, and switches do not support it.

[0100] In SDN networking, policies can be configured on access switches to convert QinQ data frames into VxLAN data frames, which are then routed and forwarded by the gateway, while inbound traffic is processed in the reverse direction.

[0101] This solution has at least one of the following disadvantages:

[0102] The overall solution is relatively complex, posing huge challenges to integrated configuration and subsequent operation and maintenance.

[0103] Access switches are required to support flexible QinQ policies, or gateway devices are required to support QinQ termination policies. When existing devices in the data center do not meet the requirements, additional funds need to be invested to purchase higher-end devices for replacement, and network upgrades and renovations will result in business interruption for a certain period of time.

[0104] The DHCP (Dynamic Host Configuration Protocol) service of the virtualization platform cannot support QinQ data frames. Unless SDN networking is adopted (SDN controllers generally support DHCP) or other alternative solutions (such as OpenStack Config Drive (OpenStack configuration drive, please refer to the technical definition of this field for the meaning of OpenStack, there is no corresponding Chinese)) are adopted, DHCP or its related functions (such as the virtual machine metadata service provided by the virtualization platform through DHCP) cannot be implemented. Alternative solutions often require certain upgrades and modifications to network elements.

[0105] Based on this, an embodiment of the present invention proposes a common technical solution for traditional networking and SDN networking to solve one of the above technical problems. Specific implementations of the present invention are described below in conjunction with the accompanying drawings.

[0106] In the description process, the implementation of sending data to a switch and sending data to a virtual port will be described respectively, and then an example of the coordinated implementation of the two will be given to better understand the implementation of the solution given in the embodiment of the present invention. This description does not mean that the two must be implemented in coordination or must be implemented separately. In fact, when sending data to a switch and sending data to a virtual port are implemented separately, they also solve the problem of sending data to a switch and sending data to a virtual port respectively, and when the two are used in combination, better technical effects will be obtained.

[0107] Figure 4 The data frame transmission method 1 is a flow chart of implementation, as shown in the figure, which may include:

[0108] Step 401: The virtual machine platform receives a data frame carrying VLAN information sent by the virtual machine from a virtual port;

[0109] Step 402: The virtual machine platform converts the VLAN information in the data frame into a corresponding VLAN header according to the configuration table, wherein the configuration table includes a correspondence between the VLAN information and the VLAN header;

[0110] Step 403: The virtual machine platform sends a data frame carrying a VLAN header to the switch.

[0111] Figure 5 The schematic diagram of the implementation flow of the second data frame transmission method is shown in the figure, which may include:

[0112] Step 501: The virtual machine platform receives a data frame carrying a VLAN header sent by a switch;

[0113] Step 502: The virtual machine platform converts the VLAN header in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table includes a correspondence between the VLAN information and the VLAN header;

[0114] Step 503: The virtual machine platform sends a data frame carrying VLAN information to the virtual port of the virtual machine.

[0115] In implementation, the data frame transmission is performed by vSwitch and / or SR-IOV.

[0116] When explaining with examples below, these two will be mainly used as examples.

[0117] Specifically, Figure 6 This is a schematic diagram of the configuration of a vSwitch or SR-IOV network card. UNTAG is untagged data, corresponding to the VLAN header Q2-1 of the isolation layer. Q1-1 of the service VLAN information corresponds to the VLAN header Q2-2 of the isolation layer. Similarly, Q1-n of a service VLAN information corresponds to the VLAN header Q2-n of an isolation layer.

[0118] As shown in the figure, when implementing transparent transmission of the "service VLAN", the vSwitch and SR-IOV network card can implement the vSwitch VLAN conversion by configuring a conversion table, that is, converting different service VLANs into different virtual network IDs.

[0119] In implementation, the configuration table is configured by the front-end API.

[0120] In a specific implementation, the configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

[0121] In implementation, for data frames that do not carry VLAN information, it can be implemented as follows:

[0122] The virtual machine platform receives a data frame that does not carry VLAN information and is sent by the virtual machine from the virtual port;

[0123] The virtual machine platform encapsulates a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table contains a correspondence between the VLAN information not carried and the VLAN header;

[0124] The virtual machine platform sends a data frame carrying a VLAN header to the switch.

[0125] as well as:

[0126] The virtual machine platform receives the data frame carrying the VLAN header sent by the switch;

[0127] After the virtual machine platform determines that the data frame does not carry VLAN information according to the configuration table, it strips the VLAN header of the data frame, wherein the configuration table contains the correspondence between the data frame not carrying VLAN information and the VLAN header;

[0128] The virtual machine platform sends a data frame with the VLAN header stripped off to a virtual port of the virtual machine corresponding to the VLAN information.

[0129] Figure 7 The network policy configuration process for a vSwitch or SR-IOV network card is shown in the figure, including:

[0130] 1. Configure network policies through the northbound interface of the virtualization platform;

[0131] 2. Call the network plug-in to send the network policy to the agent program of the relevant node;

[0132] 3. The agent is configured to the vSwitch or SR-IOV network card according to the policy.

[0133] The virtualization platform vSwitch Agent (virtual switch agent) or SR-IOV Agent (SR-IOV agent) program configures the vSwitch and SR-IOV network card according to the virtual network policy issued by the front-end API (Application Program Interface). The configured conversion table and conversion policy are the same as Figure 6 shown.

[0134] Through the above processing, the data frame from the virtual machine will only carry one layer of VLAN when forwarded to the access switch. Under SDN networking, the access switch will also convert the VLAN data frame into a VxLAN data frame. Whether it is a switch, router or SDN controller, it can support such data frames well. Figure 8 This is a schematic diagram of data frame conversion. The data frame conversion is shown in the figure.

[0135] Fig. 9 It is a virtual network schematic diagram. When a data frame corresponds to a virtual network, the virtualization platform configures a virtual DHCP server for each virtual network, as shown in the figure.

[0136] When receiving data packets sent by virtual machines, vSwitch and SR-IOV perform corresponding conversions based on the VLAN information carried, thereby connecting different types of data frames to different virtual networks (and their DHCP services):

[0137] When the data frame from the virtual machine does not carry VLAN, it is encapsulated as a data frame of net-1 (network 1) (ID is the ID of net1) data frame, and the service is identified by the ID of virtual network net1 to achieve tenant isolation. This is the default behavior of the virtualization platform.

[0138] When the data frame from the virtual machine carries VLAN Q2-N, it is converted into a data frame of netN (with the ID of netN), and the service is identified by the ID of the virtual network net-N, thus achieving tenant isolation. This is the effect achieved after the innovation of this proposal.

[0139] Based on the same inventive concept, a virtualization platform and a computer-readable storage medium are also provided in an embodiment of the present invention. Since the principles of solving the problems by these devices are similar to those of the data frame transmission method, the implementation of these devices can refer to the implementation of the method, and the repeated parts will not be repeated.

[0140] When implementing the technical solution provided by the embodiment of the present invention, it can be implemented as follows.

[0141] Fig.10 The following is a schematic diagram of the virtualization platform structure. As shown in the figure, the virtualization platform includes:

[0142] The processor 1000 is used to read the program in the memory 1020 and execute the following process:

[0143] Receive a data frame carrying VLAN information sent by the virtual machine from the virtual port;

[0144] Converting the VLAN information in the data frame into a corresponding VLAN header according to the configuration table, wherein the configuration table contains a corresponding relationship between the VLAN information and the VLAN header;

[0145] Send data frames carrying VLAN headers to the switch;

[0146] The transceiver 1010 is configured to receive and send data under the control of the processor 1000 .

[0147] In implementation, the data frame transmission is performed by vSwitch and / or SR-IOV.

[0148] In implementation, the configuration table is configured by the front-end API.

[0149] In implementation, the configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

[0150] During implementation, it further includes:

[0151] Receive a data frame without VLAN information sent by the virtual machine from the virtual port;

[0152] Encapsulating a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table includes a correspondence between the VLAN information not carried and the VLAN header;

[0153] Send a data frame carrying a VLAN header to the switch.

[0154] Among them, Fig.10 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 1000 and memory represented by memory 1020. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1010 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1000 when performing operations.

[0155] The embodiment of the present invention further provides a virtualization platform, including:

[0156] A first receiving module, used for receiving a data frame carrying VLAN information sent by the virtual machine from the virtual port;

[0157] A conversion module, used to convert the VLAN information in the data frame into a corresponding VLAN header according to a configuration table, wherein the configuration table contains a corresponding relationship between the VLAN information and the VLAN header;

[0158] The first sending module is used to send a data frame carrying a VLAN header to the switch.

[0159] During implementation, the vSwitch and / or SR-IOV of the virtualization platform performs data frame transmission.

[0160] During implementation, it further includes:

[0161] The configuration module is used to configure the configuration table through the front-end API.

[0162] During implementation, the configuration module is further used to call the front-end API to configure the configuration table through the northbound interface of the virtualization platform.

[0163] In implementation, the first receiving module is further used to receive a data frame that does not carry VLAN information and is sent by the virtual machine from the virtual port;

[0164] The conversion module is further used to encapsulate a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table contains a correspondence between the VLAN information not carried and the VLAN header;

[0165] The first sending module is further used to send a data frame carrying a VLAN header to the switch.

[0166] For the convenience of description, the various parts of the above-mentioned device are divided into various modules or units according to their functions and described separately. Of course, when implementing the present invention, the functions of each module or unit can be implemented in the same or multiple software or hardware.

[0167] Fig.11 This is a schematic diagram of the second virtualization platform structure. As shown in the figure, the virtualization platform includes:

[0168] The processor 1100 is used to read the program in the memory 1120 and execute the following process:

[0169] Receive the data frame with VLAN header sent by the switch;

[0170] Converting the VLAN header in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table contains the corresponding relationship between the VLAN information and the VLAN header;

[0171] Send a data frame carrying VLAN information to the virtual port of the virtual machine;

[0172] The transceiver 1110 is configured to receive and send data under the control of the processor 1100 .

[0173] In implementation, the data frame transmission is performed by vSwitch and / or SR-IOV.

[0174] In implementation, the configuration table is configured by the front-end API.

[0175] In implementation, the configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

[0176] During implementation, it further includes:

[0177] Receive the data frame with VLAN header sent by the switch;

[0178] After determining that the data frame does not carry VLAN information according to the configuration table, stripping the VLAN header of the data frame, wherein the configuration table contains the correspondence between the data frame that does not carry VLAN information and the VLAN header;

[0179] The data frame with the VLAN header stripped off is sent to the virtual port of the virtual machine corresponding to the VLAN information.

[0180] Among them, Fig.11 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 1100 and memory represented by memory 1120. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1110 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 may store data used by the processor 1100 when performing operations.

[0181] The embodiment of the present invention further provides a virtualization platform, including:

[0182] The second receiving module is used to receive the data frame carrying the VLAN header sent by the switch;

[0183] A conversion module, used to convert the VLAN header in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table contains the corresponding relationship between the VLAN information and the VLAN header;

[0184] The second sending module is used to send a data frame carrying VLAN information to the virtual port of the virtual machine.

[0185] During implementation, the vSwitch and / or SR-IOV of the virtualization platform performs data frame transmission.

[0186] During implementation, it further includes:

[0187] The configuration module is used to configure the configuration table through the front-end API.

[0188] During implementation, the configuration module is further used to call the front-end API to configure the configuration table through the northbound interface of the virtualization platform.

[0189] In implementation, the second receiving module is further used to receive a data frame carrying a VLAN header sent by the switch;

[0190] The conversion module is further used to strip the VLAN header of the data frame after determining that the data frame does not carry VLAN information according to the configuration table, wherein the configuration table contains the correspondence between the data frame that does not carry VLAN information and the VLAN header;

[0191] The second sending module is further used to send a data frame stripped of a VLAN header to a virtual port of a virtual machine corresponding to the VLAN information.

[0192] For the convenience of description, the various parts of the above-mentioned device are divided into various modules or units according to their functions and described separately. Of course, when implementing the present invention, the functions of each module or unit can be implemented in the same or multiple software or hardware.

[0193] A computer-readable storage medium is also provided in an embodiment of the present invention, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned data frame transmission method.

[0194] For details, please refer to the implementation of the data frame transmission method.

[0195] In summary, in the technical solution provided by the embodiment of the present invention, since the vSwitch or SR-IOV network card of the virtual machine platform and its supporting agent program can be used, it can be expanded to realize automatic configuration of switches, routers and other devices by introducing more network plug-ins. Therefore, the transparent transmission solution of data frames is more concise and the configuration process is simpler, so that the network can be automatically opened during the whole life cycle of the service.

[0196] It can be seen that there is at least one of the following effects:

[0197] The overall solution is simple and reliable, and the integration configuration and network operation and maintenance are easy;

[0198] The existing switches and routers in the data center can all support this solution without replacement, which makes the cost controllable and the impact of upgrades and renovations on existing services low.

[0199] It makes up for the defects of functional mechanisms such as DHCP in traditional networking, and does not require any modification to the upper-layer services.

[0200] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0201] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0202] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0203] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0204] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A data frame transmission method, characterized in that: include: The virtual machine platform receives a data frame carrying virtual local area network VLAN information sent by the virtual machine from the virtual port; The virtual machine platform converts the VLAN information in the data frame into a VLAN header corresponding to the virtual network ID according to the configuration table, wherein the configuration table includes a correspondence between the VLAN information and the VLAN header; The virtual machine platform sends a data frame carrying a VLAN header to the switch; Wherein, the method further comprises: The virtual machine platform receives a data frame that does not carry VLAN information and is sent by the virtual machine from the virtual port; The virtual machine platform encapsulates a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table contains a correspondence between the VLAN information not carried and the VLAN header; The virtual machine platform sends a data frame carrying a VLAN header to the switch; Wherein, the configuration table is configured by a front-end application programming interface API; or, The configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

2. The method according to claim 1, characterized in that The data frame transmission is performed by the virtual switch vSwitch and / or single root I / O virtualization SR-IOV.

3. A data frame transmission method, characterized in that: include: The virtual machine platform receives the data frame carrying the VLAN header sent by the switch; The virtual machine platform converts the VLAN header corresponding to the virtual network ID in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table includes the corresponding relationship between the VLAN information and the VLAN header; The virtual machine platform sends a data frame carrying VLAN information to the virtual port of the virtual machine; Wherein, the method further comprises: After the virtual machine platform determines that the data frame does not carry VLAN information according to the configuration table, it strips the VLAN header of the data frame, wherein the configuration table also includes the correspondence between the data frame not carrying VLAN information and the VLAN header; The virtual machine platform sends a data frame with the VLAN header stripped off to the virtual port of the virtual machine corresponding to the VLAN information; Wherein, the configuration table is configured by the front-end API; or The configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

4. The method according to claim 3, characterized in that The data frame transmission is performed by vSwitch and / or SR-IOV.

5. A virtualization platform, characterized in that: include: The processor reads the program in the memory and performs the following processes: Receive a data frame carrying VLAN information sent by the virtual machine from the virtual port; Converting the VLAN information in the data frame into a VLAN header corresponding to the virtual network ID according to the configuration table, wherein the configuration table includes a correspondence between the VLAN information and the VLAN header; Send data frames carrying VLAN headers to the switch; a transceiver for receiving and transmitting data under the control of the processor; Wherein, the processor is further configured to: Receive a data frame without VLAN information sent by the virtual machine from the virtual port; Encapsulating a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table includes a correspondence between the VLAN information not carried and the VLAN header; Send data frames carrying VLAN headers to the switch; Wherein, the configuration table is configured by a front-end application programming interface API; or, The configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

6. A virtualization platform, characterized in that: include: A first receiving module, used for receiving a data frame carrying VLAN information sent by the virtual machine from the virtual port; A conversion module, used to convert the VLAN information in the data frame into a corresponding VLAN header according to a configuration table, wherein the configuration table contains a corresponding relationship between the VLAN information and the VLAN header; A first sending module, used for sending a data frame carrying a VLAN header to a switch; The first receiving module is further used to receive a data frame that does not carry VLAN information and is sent by the virtual machine from the virtual port; The conversion module is further used to encapsulate a VLAN header corresponding to the VLAN information for the data frame according to the configuration table, wherein the configuration table contains a correspondence between the VLAN information not carried and the VLAN header; The first sending module is also used to send a data frame carrying a VLAN header to the switch. Wherein, the configuration table is configured by a front-end application programming interface API; or, The configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

7. A virtualization platform, characterized in that: include: The processor reads the program in the memory and performs the following processes: Receive the data frame with VLAN header sent by the switch; Converting the VLAN header in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table includes a corresponding relationship between the VLAN information and the VLAN header; Send a data frame carrying VLAN information to the virtual port of the virtual machine; a transceiver for receiving and transmitting data under the control of the processor; Wherein, the processor is further used for: After determining that the data frame does not carry VLAN information according to the configuration table, stripping the VLAN header of the data frame, wherein the configuration table also includes a correspondence between the data frame that does not carry VLAN information and the VLAN header; Sending a data frame stripped of the VLAN header to a virtual port of a virtual machine corresponding to the VLAN information; Wherein, the configuration table is configured by the front-end API; or The configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

8. A virtualization platform, characterized in that: include: The second receiving module is used to receive the data frame carrying the VLAN header sent by the switch; A conversion module, used to convert the VLAN header in the data frame into corresponding VLAN information according to the configuration table, wherein the configuration table contains the corresponding relationship between the VLAN information and the VLAN header; A second sending module is used to send a data frame carrying VLAN information to a virtual port of the virtual machine; The conversion module is further used to, after determining that the data frame does not carry VLAN information according to the configuration table, strip the VLAN header of the data frame, wherein the configuration table also includes a correspondence between the data frame not carrying VLAN information and the VLAN header; The second sending module is further used to send a data frame with a VLAN header stripped off to a virtual port of a virtual machine corresponding to the VLAN information; Wherein, the configuration table is configured by the front-end API; or The configuration table is configured by calling the front-end API through the northbound interface of the virtualization platform.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • VXLAN (Virtual extensible Loal Area Network) implementation device and working method thereof

    CN106817291A