Data processing method, device and network equipment

By distinguishing and isolating the business traffic of different sub-PORTs based on the mapping relationship between QinQ and VNI in the data processing method, the problem of inability to distinguish and isolate sub-PORT networks in the existing technology is solved, and correct VNI mapping and traffic forwarding are achieved. .

CN114553802BActive Publication Date: 2024-09-06CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011352576.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2024-09-06
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

The existing technology cannot meet the network differentiation and isolation requirements for different sub-PORTs, resulting in the inability to distinguish and isolate the service traffic of different sub-PORTs, resulting in all sub-PORT traffic being mapped to the same VXLAN subnet.

Method used

When the received packet carries the inner virtual LAN ID VLAN ID and the outer VLAN ID, the corresponding packet is determined based on the mapping relationship information between the dual virtual LAN QinQ and the network ID VNI of the virtual extended LAN VXLAN network. The VNI of the VXLAN network and map it to the correct VXLAN network, ensuring that the outer VLAN ID corresponds to the parent interface and the inner VLAN ID corresponds to the child interface.

Benefits of technology

It realizes network differentiation and isolation of different sub-PORTs, correctly maps the VNI of business packets, and solves the problem that the existing technology cannot meet the network differentiation and isolation requirements of sub-PORTs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114553802B
    Figure CN114553802B
Patent Text Reader

Abstract

The present invention provides a data processing method, device and network equipment, wherein the data processing method includes: when the received message carries an inner VLAN ID and an outer VLAN ID, according to the mapping relationship information between QinQ and VNI and the inner VLAN ID and the outer VLAN ID, determine the VNI of the VXLAN network corresponding to the message; according to the VNI, map the message to the VXLAN network; wherein the outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and the VNI. This scheme can meet the requirements of network distinction and isolation corresponding to different sub-PORTs, clearly distinguish the VNI of the actual business message, and correctly map the corresponding VNI for forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the requirements of network distinction and isolation corresponding to different sub-PORTs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a data processing method, device and network equipment. Background Art

[0002] At present, under the traditional hardware SDN (software defined network) solution, the hardware TOR (access switch) searches for the VXLAN ID to be mapped based on the physical port number of the incoming message and the outer VLAN (virtual local area network) ID (the VLAN ID corresponding to the main PORT (interface), which can also be called the parent PORT). This solution cannot currently meet the problem of network plane isolation corresponding to multiple VLAN sub-interfaces of the virtual machine, as follows:

[0003] like Figure 1 As shown in the figure, the controller allocates a VLAN to the network segment corresponding to the main PORT under each physical interface to realize VLAN-VXLAN (virtual extended local area network) mapping; in this scenario, for the scenario where the data packets generated by the network element do not carry VLAN when sent from the Guest OS (client operating system), there is no VLAN sub-interface (such as Figure 1 On the PORT1 side in the SDN TOR, the VLAN ID corresponding to the primary PORT is directly mapped to the corresponding VXLAN network. For example, for VM (virtual machine) 1, when it exits the vSwitch (virtual switch), the virtual layer carries VLAN = 10. After entering the TOR, according to the internal mapping mechanism of the switch, it can be known that the VXLAN network ID (VNI) corresponding to the VLAN is 100. However, for Figure 1 In the VM on the right side of the middle (PORT2 side), two VLAN sub-interfaces are divided on the main PORT to represent different network planes. The VLAN IDs carried by the two network planes are 30 and 40 respectively. After the message is transferred to the vSwitch, the virtual layer will mark the VLAN ID corresponding to the main PORT (VLAN = 30) on the outer layer. After reaching the TOR, according to the traditional mapping mechanism, all sub-PORTs will be mapped to the virtual network corresponding to the main PORT, and the business traffic corresponding to different sub-PORTs cannot be distinguished, which cannot meet the requirements of distinguishing and isolating the networks corresponding to different sub-PORTs; that is, the traffic of all sub-PORTs will be mapped to the same VXLAN subnet, which is inconsistent with the actual deployment.

[0004] As can be seen from the above, the data processing solution in the prior art has the problem of being unable to meet the network differentiation and isolation requirements corresponding to different sub-PORTs. Summary of the invention

[0005] The purpose of the present invention is to provide a data processing method, device and network equipment to solve the problem that the data processing scheme in the prior art cannot meet the network differentiation and isolation requirements corresponding to different sub-PORTs.

[0006] In order to solve the above technical problem, an embodiment of the present invention provides a data processing method, which is applied to a first network device, and the method includes:

[0007] In the case where the received message carries an inner virtual local area network identifier VLAN ID and an outer VLAN ID, the VNI of the VXLAN network corresponding to the message is determined according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID;

[0008] According to the VNI, mapping the message to the VXLAN network;

[0009] The outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface;

[0010] The mapping relationship information between QinQ and VNI includes first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

[0011] Optionally, before determining the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID, the method further includes:

[0012] Receive the mapping relationship information between QinQ and VNI sent by the second network device.

[0013] The embodiment of the present invention further provides a data processing method, which is applied to a second network device, and the method includes:

[0014] Receiving network configuration information sent by a third network device;

[0015] In the case where the network configuration information includes the first configuration information, a mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network is generated according to the first configuration information, and sent to the first network device;

[0016] The first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface;

[0017] The inner VLAN ID corresponds to the first sub-interface of the first parent interface.

[0018] Optionally, generating, according to the first configuration information, mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network includes:

[0019] Generate an outer VLAN ID corresponding to the first parent interface according to the network device information;

[0020] Obtain first mapping relationship information according to the outer VLAN ID, the inner VLAN ID and the VNI;

[0021] According to the first mapping relationship information, the mapping relationship information between QinQ and VNI is obtained.

[0022] The embodiment of the present invention further provides a data processing method, which is applied to a third network device, and the method includes:

[0023] If the first parent interface has a corresponding first sub-interface, determine the first configuration information;

[0024] Obtaining network configuration information according to the first configuration information, and sending the network configuration information to the second network device;

[0025] Among them, the first configuration information includes network device information corresponding to the first parent interface, the inner virtual local area network identifier VLAN ID corresponding to the first child interface, and the network identifier VNI corresponding to the virtual extended local area network VXLAN.

[0026] Optionally, the inner VLAN ID is located in an interface identification field of the first configuration information.

[0027] An embodiment of the present invention further provides a data processing device, which is applied to a first network device, and the device includes:

[0028] A first determination module is used to determine the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID when the received message carries the inner virtual local area network identifier VLAN ID and the outer VLAN ID;

[0029] A first processing module, configured to map the message to the VXLAN network according to the VNI;

[0030] The outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface;

[0031] The mapping relationship information between QinQ and VNI includes first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

[0032] Optionally, also include:

[0033] The first receiving module is used to receive the mapping relationship information between QinQ and VNI sent by the second network device before determining the VNI of the VXLAN network corresponding to the message based on the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID.

[0034] The embodiment of the present invention further provides a data processing device, which is applied to a second network device, and the device includes:

[0035] A second receiving module, used to receive network configuration information sent by a third network device;

[0036] A second processing module is used to generate, when the network configuration information includes the first configuration information, mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network according to the first configuration information, and send it to the first network device;

[0037] The first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface;

[0038] The inner VLAN ID corresponds to the first sub-interface of the first parent interface.

[0039] Optionally, the second processing module includes:

[0040] A first generating submodule, configured to generate an outer VLAN ID corresponding to the first parent interface according to the network device information;

[0041] A first processing submodule, configured to obtain first mapping relationship information according to the outer VLAN ID, the inner VLAN ID and the VNI;

[0042] The second processing submodule is used to obtain the mapping relationship information between QinQ and VNI according to the first mapping relationship information.

[0043] The embodiment of the present invention further provides a data processing device, which is applied to a third network device, and the device includes:

[0044] A second determination module, configured to determine the first configuration information when the first parent interface has a corresponding first sub-interface;

[0045] A third processing module, configured to obtain network configuration information according to the first configuration information, and send the network configuration information to a second network device;

[0046] Among them, the first configuration information includes network device information corresponding to the first parent interface, the inner virtual local area network identifier VLAN ID corresponding to the first child interface, and the network identifier VNI corresponding to the virtual extended local area network VXLAN.

[0047] Optionally, the inner VLAN ID is located in an interface identification field of the first configuration information.

[0048] An embodiment of the present invention further provides a network device, the network device is a first network device, and the network device includes: a processor and a transceiver;

[0049] The processor is used to determine the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID when the message received by the transceiver carries the inner virtual local area network identifier VLANID and the outer VLAN ID;

[0050] According to the VNI, mapping the message to the VXLAN network through the transceiver;

[0051] The outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface;

[0052] The mapping relationship information between QinQ and VNI includes first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

[0053] Optionally, the processor is further configured to:

[0054] Before determining the VNI of the VXLAN network corresponding to the message based on the mapping relationship information between the dual virtual LAN QinQ and the network identifier VNI of the virtual extended LAN VXLAN network and the inner VLAN ID and the outer VLAN ID, the mapping relationship information between QinQ and VNI sent by the second network device is received through the transceiver.

[0055] An embodiment of the present invention further provides a network device, the network device is a second network device, and the network device includes: a processor and a transceiver;

[0056] The processor is configured to receive network configuration information sent by a third network device through the transceiver;

[0057] In the case where the network configuration information includes the first configuration information, a mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network is generated according to the first configuration information, and sent to the first network device through the transceiver;

[0058] The first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface;

[0059] The inner VLAN ID corresponds to the first sub-interface of the first parent interface.

[0060] Optionally, the processor is specifically configured to:

[0061] Generate an outer VLAN ID corresponding to the first parent interface according to the network device information;

[0062] Obtain first mapping relationship information according to the outer VLAN ID, the inner VLAN ID and the VNI;

[0063] According to the first mapping relationship information, the mapping relationship information between QinQ and VNI is obtained.

[0064] The embodiment of the present invention further provides a network device, the network device is a third network device, and the network device includes: a processor and a transceiver;

[0065] The processor is configured to determine the first configuration information when the first parent interface has a corresponding first sub-interface;

[0066] Obtaining network configuration information according to the first configuration information, and sending the network configuration information to the second network device through the transceiver;

[0067] Among them, the first configuration information includes network device information corresponding to the first parent interface, the inner virtual local area network identifier VLAN ID corresponding to the first child interface, and the network identifier VNI corresponding to the virtual extended local area network VXLAN.

[0068] Optionally, the inner VLAN ID is located in an interface identification field of the first configuration information.

[0069] The embodiment of the present invention further provides a network device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the data processing method on the first network device side is implemented; or,

[0070] When the processor executes the program, the data processing method on the second network device side is implemented; or,

[0071] When the processor executes the program, the data processing method on the third network device side is implemented.

[0072] The embodiment of the present invention further provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the data processing method on the first network device side are implemented; or,

[0073] When the program is executed by the processor, the steps in the data processing method on the second network device side are implemented; or,

[0074] When the program is executed by the processor, the steps in the data processing method on the third network device side are implemented.

[0075] The beneficial effects of the above technical solution of the present invention are as follows:

[0076] In the above scheme, the data processing method determines the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID when the received message carries the inner virtual local area network identifier VLAN ID and the outer VLAN ID; maps the message to the VXLAN network according to the VNI; wherein the outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and VNI; it can meet the requirements of network distinction and isolation corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI for forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the requirements of network distinction and isolation corresponding to different sub-PORTs. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 It is a schematic diagram of a data processing solution in the prior art;

[0078] Figure 2 The data processing method of the embodiment of the present invention is shown in FIG. Figure 1 ;

[0079] Figure 3 The data processing method of the embodiment of the present invention is shown in FIG. Figure 2 ;

[0080] Figure 4 The data processing method of the embodiment of the present invention is shown in FIG. Figure 3 ;

[0081] Figure 5 A schematic diagram of a data processing method implementation framework according to an embodiment of the present invention;

[0082] Figure 6 A schematic diagram of a specific implementation flow of a data processing method according to an embodiment of the present invention;

[0083] Figure 7 The structure of the data processing device according to the embodiment of the present invention is shown in FIG. Figure 1 ;

[0084] Figure 8 The structure of the data processing device according to the embodiment of the present invention is shown in FIG. Figure 2 ;

[0085] Fig. 9 The structure of the data processing device according to the embodiment of the present invention is shown in FIG. Figure 3 ;

[0086] Fig.10 The network device structure of the embodiment of the present invention is shown in FIG. Figure 1 ;

[0087] Fig.11 The network device structure of the embodiment of the present invention is shown in FIG. Figure 2 ;

[0088] Fig.12 The network device structure of the embodiment of the present invention is shown in FIG. Figure 3 . DETAILED DESCRIPTION

[0089] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0090] The present invention aims at the problem that the data processing scheme in the existing technology cannot meet the requirements of differentiating and isolating the networks corresponding to different sub-PORTs, and provides a data processing method applied to a first network device, such as Figure 2 As shown, the method includes:

[0091] Step 21: When the received message carries the inner virtual local area network identifier VLAN ID and the outer VLAN ID, determine the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID;

[0092] Step 22: According to the VNI, map the message to the VXLAN network; wherein the outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

[0093] The data processing method provided in the embodiment of the present invention determines the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID when the received message carries the inner virtual local area network identifier VLAN ID and the outer VLAN ID; maps the message to the VXLAN network according to the VNI; wherein the outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and VNI; it can meet the requirements of distinguishing and isolating the networks corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI for forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the requirements of distinguishing and isolating the networks corresponding to different sub-PORTs.

[0094] Furthermore, before determining the VNI of the VXLAN network corresponding to the message based on the mapping relationship information between the dual virtual LAN QinQ and the network identifier VNI of the virtual extended LAN VXLAN network and the inner VLAN ID and the outer VLAN ID, it also includes: receiving the mapping relationship information between QinQ and VNI sent by the second network device.

[0095] The embodiment of the present invention also provides a data processing method, which is applied to a second network device, such as Figure 3 As shown, the method includes:

[0096] Step 31: Receive network configuration information sent by a third network device;

[0097] Step 32: When the network configuration information includes the first configuration information, generate mapping relationship information between the dual virtual LAN QinQ and the network identifier VNI of the virtual extended LAN VXLAN network according to the first configuration information, and send it to the first network device; wherein the first configuration information includes the inner virtual LAN identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface; the inner VLAN ID corresponds to the first sub-interface of the first parent interface.

[0098] The “network device information corresponding to the first parent interface” may be specifically understood as information about which switch the first parent interface is connected to.

[0099] The data processing method provided by the embodiment of the present invention receives network configuration information sent by a third network device; when the network configuration information includes the first configuration information, generates mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network according to the first configuration information, and sends it to the first network device; wherein the first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface; the inner VLAN ID corresponds to the first sub-interface of the first parent interface; it can support the realization of meeting the requirements of network distinction and isolation corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI for forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the requirements of network distinction and isolation corresponding to different sub-PORTs.

[0100] Among them, the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network is generated according to the first configuration information, including: generating an outer VLAN ID corresponding to the first parent interface according to the network device information; obtaining the first mapping relationship information according to the outer VLAN ID, the inner VLAN ID and the VNI; and obtaining the mapping relationship information between QinQ and VNI according to the first mapping relationship information.

[0101] The embodiment of the present invention also provides a data processing method, which is applied to a third network device, such as Figure 4 As shown, the method includes:

[0102] Step 41: When the first parent interface has a corresponding first sub-interface, determine first configuration information;

[0103] Step 42: Obtain network configuration information based on the first configuration information and send it to the second network device; wherein the first configuration information includes network device information corresponding to the first parent interface, the inner virtual LAN identifier VLAN ID corresponding to the first child interface, and the network identifier VNI corresponding to the virtual extended LAN VXLAN.

[0104] The “first parent interface has a corresponding first sub-interface” can be specifically understood as the existence of a VLAN sub-interface requirement.

[0105] The data processing method provided in an embodiment of the present invention determines the first configuration information when there is a corresponding first sub-interface in the first parent interface; obtains network configuration information based on the first configuration information and sends it to the second network device; wherein the first configuration information includes the network device information corresponding to the first parent interface, the inner virtual local area network identifier VLAN ID corresponding to the first sub-interface, and the network identifier VNI corresponding to the virtual extended local area network VXLAN; it can support the realization of meeting the network distinction and isolation requirements corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the network distinction and isolation requirements corresponding to different sub-PORTs.

[0106] The inner VLAN ID may be specifically located in the interface identification field (segmentID) of the first configuration information.

[0107] The data processing method provided by the embodiment of the present invention is further explained below in combination with multiple sides such as a first network device, a second network device, and a third network device. The first network device takes an access switch TOR (also known as SDNTOR) as an example, the second network device takes an SDN controller as an example, and the third network device takes a cloud computing management tool openstack as an example.

[0108] In response to the above technical problems, an embodiment of the present invention provides a data processing method, which specifically involves a network orchestration process and a device mapping mechanism: Different from the traditional single-layer VLAN + port information mapping to VNI, this solution redefines the upper-layer orchestration process to allow the SDN controller to perceive the inner VLAN ID, and configures the QINQ (also known as stacked virtual LAN Stacked VLAN or double virtual LAN Double VLAN) to VXLAN mapping mechanism (that is, the mapping relationship information between QinQ and VNI) in the SDN TOR, so as to achieve the distinction of each service message VxLAN network based on the inner-layer service and the outer-layer parent PORT VLAN tag, and map it to the corresponding VNI for forwarding.

[0109] The two stages involved in this scheme are described below.

[0110] Phase 1, deployment phase:

[0111] When the network is deployed, the main PORT (i.e., the parent PORT) and the corresponding VXLAN network are first created (by openstack), and a VNI identifier is assigned to the VXLAN network by openstack; after the SDN controller obtains the network information (i.e., the above-mentioned network configuration information, including the assigned VNI identifier, which switch the main PORT is attached to (i.e., the network device information corresponding to the parent interface), etc.), the outer VLAN ID corresponding to the main PORT is assigned to the network and can be configured to the corresponding vSwitch or SR-IOV (single root IO virtualization) network card by the virtual layer. Subsequently, under this PORT, all traffic on the outer layer carries this VLAN ID. If multiple VLAN sub-interfaces need to be created under the main PORT, when creating the VXLAN network corresponding to the sub-interface, in addition to assigning a VNI identifier to the VXLAN network, it is also necessary to write the VLAN ID corresponding to the sub-interface in the interface segment ID (identification field) when the network is created (that is, the inner VLAN ID carried when the service is sent). In this case, the SDN controller needs to configure the QinQ to VLXAN mapping mechanism on the physical interface corresponding to the SDN TOR. When there are multiple VLAN sub-interfaces, multiple pairs of mapping strategies need to be configured.

[0112] Specific as Figure 5 As shown:

[0113] 1. Openstack creates a VXLAN network and informs the SDN controller of relevant information; the relevant information may include the network ID, VNI, segment ID, etc.

[0114] 2. The SDN controller obtains the inner VLAN corresponding to the sub-interface based on the relevant information, performs hierarchical port binding operations, assigns an outer VLAN ID to the virtual machine, and writes it into the openstack database;

[0115] 3. After the virtual machine port goes online, Openstack sends the VLAN (outer VLAN) information carried by the virtual machine forwarding to the corresponding network plug-in of the SR-IOV (single root IO virtualization) network device or vSwitch network device, and the network card VF (VirutalFunction) or vSwitch encapsulates the outer VLAN for all subsequent messages received from the main interface;

[0116] 4. The SDN controller can send the relevant configuration of VXLAN and VLAN binding (i.e. the mapping relationship information between QinQ and VNI mentioned above) to the corresponding physical interface of the SDN TOR through the Netconf protocol.

[0117] The second stage, the forwarding stage:

[0118] VSwitch or SRIOV network card: For untagged traffic sent from the Guest OS (i.e., packets that do not carry the VLAN ID (i.e., inner VLAN ID) corresponding to the above sub-interface), directly encapsulate the VLAN ID corresponding to the main port (i.e., the outer VLAN ID) on the outer layer of the packet; for tagged traffic sent from the Guest OS (i.e., packets that carry the VLAN ID corresponding to the above sub-interface), do not change the inner VLAN ID, and encapsulate the VLAN ID corresponding to the main port on the outer layer of the packet;

[0119] SDN TOR: For untagged traffic, it is directly mapped to the VXLAN corresponding to the main port at the TOR for forwarding; for tagged traffic, it is implemented by using QinQ to map to the TOR switch and terminate to VXLAN (corresponding to the above-mentioned mapping relationship information between the network identifier VNI of the dual virtual LAN QinQ to the virtual extended LAN VXLAN network and the inner VLAN ID and the outer VLAN ID, determining the VNI of the VXLAN network corresponding to the message; according to the VNI, mapping the message to the VXLAN network), the return traffic is similar (return: the hardware access TOR switch maps the VXLAN message to the network element back to the QinQ message through table lookup and forwards it to the VSwitch or SRIOV, which is a reverse process), which will not be repeated here.

[0120] Specifically, Figure 6 As shown (it can be in the SR IOV scenario or the OVS (Open vSwitch) scenario, where VLAN trunk represents virtual LAN relay technology, SDN-GW represents SDN gateway, and Hypervisor represents virtual machine monitor):

[0121] Assume that the packet 1 sent by the Guest OS does not carry the VLAN corresponding to the sub-interface, but only corresponds to the parent interface, and the packet 2 carries the VLAN ID corresponding to the sub-interface (for example, VLAN 10); after the packet reaches the vSwitch, assuming the hierarchical port (VLAN 10), the hierarchical allocation of VLAN 50 is as follows:

[0122] After packet 1 reaches the vSwitch, the VLAN ID corresponding to the parent interface (for example, VLAN 50) will be encapsulated in the outer layer of the packet; and after packet 2 reaches the vSwitch, the VLAN ID corresponding to the parent interface will be encapsulated in the outer layer of the packet without changing the VLAN ID corresponding to the child interface (for example, if it is VLAN 50, packet 2 carries VLAN 50 and VLAN 10);

[0123] After the encapsulated message is transmitted to the SDN TOR, it can be parsed to find that message 1 and message 2 correspond to different VXLANs, for example, message 1 corresponds to VXLAN10, and message 2 corresponds to VXLAN100.

[0124] As can be seen from the above, the solution provided by the embodiment of the present invention involves:

[0125] 1. When creating a network, for scenarios where VLAN sub-interfaces are required, it is necessary to write the VLAN value corresponding to the sub-PORT in the corresponding field (taking segment ID as an example) when creating the VXLAN network, and inform the SDN controller that the QINQ to VXLAN mapping mechanism needs to be configured on the corresponding switch physical port.

[0126] 2. VSwitch needs to support obtaining the VLAN ID assigned by the controller to the main port and encapsulate the outer VLAN ID for the message.

[0127] 3. TOR needs to support the mapping mechanism and forwarding from QINQ to VLXAN.

[0128] In summary, this solution implements VNI mapping in VLAN Trunk scenarios through QinQ, solving the problem that the SDN solution that only maps the parent PORT information to the corresponding VNI in VLAN Trunk cannot meet the network differentiation and isolation requirements of different sub-PORTs, and cannot clearly distinguish the actual service message VNI and correctly map the corresponding VNI for forwarding.

[0129] That is, this solution implements VNI mapping under VLAN Trunk through hierarchical port binding QinQ, which can meet the network differentiation and isolation requirements of different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI forwarding, that is, correctly distinguish the business message VXLAN information in this scenario.

[0130] The embodiment of the present invention further provides a data processing device, which is applied to a first network device, such as Figure 7 As shown, the device comprises:

[0131] The first determination module 71 is used to determine the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID when the received message carries the inner virtual local area network identifier VLAN ID and the outer VLAN ID;

[0132] A first processing module 72, configured to map the message to the VXLAN network according to the VNI;

[0133] The outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface;

[0134] The mapping relationship information between QinQ and VNI includes first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

[0135] The data processing device provided in the embodiment of the present invention determines the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID when the received message carries the inner virtual local area network identifier VLAN ID and the outer VLAN ID; maps the message to the VXLAN network according to the VNI; wherein the outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and VNI; it can meet the requirements of distinguishing and isolating the networks corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI for forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the requirements of distinguishing and isolating the networks corresponding to different sub-PORTs.

[0136] Furthermore, the data processing device also includes: a first receiving module, which is used to receive the mapping relationship information between QinQ and VNI sent by the second network device before determining the VNI of the VXLAN network corresponding to the message based on the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID.

[0137] Among them, the implementation embodiments of the data processing method on the first network device side are all applicable to the embodiments of the data processing device and can also achieve the corresponding same technical effects.

[0138] The embodiment of the present invention further provides a data processing device, which is applied to a second network device, such as Figure 8 As shown, the device comprises:

[0139] A second receiving module 81, configured to receive network configuration information sent by a third network device;

[0140] A second processing module 82 is used to generate, when the network configuration information includes the first configuration information, mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network according to the first configuration information, and send it to the first network device;

[0141] The first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface;

[0142] The inner VLAN ID corresponds to the first sub-interface of the first parent interface.

[0143] The data processing device provided in the embodiment of the present invention receives network configuration information sent by a third network device; when the network configuration information includes the first configuration information, based on the first configuration information, generates mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network, and sends it to the first network device; wherein the first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface; the inner VLAN ID corresponds to the first sub-interface of the first parent interface; it can support the realization of meeting the requirements of network distinction and isolation corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI for forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the requirements of network distinction and isolation corresponding to different sub-PORTs.

[0144] Among them, the second processing module includes: a first generating submodule, used to generate an outer VLAN ID corresponding to the first parent interface according to the network device information; a first processing submodule, used to obtain first mapping relationship information according to the outer VLAN ID, the inner VLAN ID and the VNI; a second processing submodule, used to obtain the mapping relationship information between QinQ and VNI according to the first mapping relationship information.

[0145] Among them, the implementation embodiments of the data processing method on the second network device side are all applicable to the embodiments of the data processing device and can also achieve the corresponding same technical effects.

[0146] The embodiment of the present invention further provides a data processing device, which is applied to a third network device, such as Fig. 9 As shown, the device comprises:

[0147] A second determining module 91 is used to determine the first configuration information when the first parent interface has a corresponding first sub-interface;

[0148] A third processing module 92, configured to obtain network configuration information according to the first configuration information, and send the network configuration information to the second network device;

[0149] Among them, the first configuration information includes network device information corresponding to the first parent interface, the inner virtual local area network identifier VLAN ID corresponding to the first child interface, and the network identifier VNI corresponding to the virtual extended local area network VXLAN.

[0150] The data processing device provided in an embodiment of the present invention determines the first configuration information when there is a corresponding first sub-interface in the first parent interface; obtains network configuration information based on the first configuration information and sends it to the second network device; wherein the first configuration information includes the network device information corresponding to the first parent interface, the inner virtual local area network identifier VLAN ID corresponding to the first sub-interface, and the network identifier VNI corresponding to the virtual extended local area network VXLAN; it can support the realization of meeting the network distinction and isolation requirements corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the network distinction and isolation requirements corresponding to different sub-PORTs.

[0151] The inner VLAN ID is located in the interface identification field of the first configuration information.

[0152] Among them, the implementation embodiments of the data processing method on the third network device side are all applicable to the embodiments of the data processing device and can also achieve the corresponding same technical effects.

[0153] The embodiment of the present invention further provides a network device, wherein the network device is a first network device, such as Fig.10 As shown, the network device includes: a processor 101 and a transceiver 102;

[0154] The processor 101 is used to determine the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID when the message received by the transceiver 102 carries the inner virtual local area network identifier VLAN ID and the outer VLAN ID;

[0155] According to the VNI, mapping the message to the VXLAN network through the transceiver 102;

[0156] The outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface;

[0157] The mapping relationship information between QinQ and VNI includes first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

[0158] The network device provided in the embodiment of the present invention determines the VNI of the VXLAN network corresponding to the message according to the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID when the received message carries the inner virtual local area network identifier VLAN ID and the outer VLAN ID; maps the message to the VXLAN network according to the VNI; wherein the outer VLAN ID corresponds to the first parent interface, and the inner VLAN ID corresponds to the first sub-interface of the first parent interface; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and VNI; it can meet the requirements of network distinction and isolation corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI for forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the requirements of network distinction and isolation corresponding to different sub-PORTs.

[0159] Furthermore, the processor is also used to: before determining the VNI of the VXLAN network corresponding to the message based on the mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network and the inner VLAN ID and the outer VLAN ID, receive the mapping relationship information between QinQ and VNI sent by the second network device through the transceiver.

[0160] Among them, the implementation embodiments of the data processing method on the first network device side mentioned above are all applicable to the embodiments of the network device and can also achieve the corresponding same technical effects.

[0161] The embodiment of the present invention further provides a network device, wherein the network device is a second network device, such as Fig.11 As shown, the network device includes: a processor 111 and a transceiver 112;

[0162] The processor 111 is configured to receive network configuration information sent by a third network device through the transceiver 112;

[0163] In the case where the network configuration information includes the first configuration information, a mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network is generated according to the first configuration information, and sent to the first network device through the transceiver 112;

[0164] The first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface;

[0165] The inner VLAN ID corresponds to the first sub-interface of the first parent interface.

[0166] The network device provided in the embodiment of the present invention receives network configuration information sent by a third network device; when the network configuration information includes the first configuration information, based on the first configuration information, generates mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network, and sends it to the first network device; wherein the first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface; the inner VLAN ID corresponds to the first sub-interface of the first parent interface; it can support the realization of meeting the requirements of network distinction and isolation corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, and correctly map the corresponding VNI for forwarding, which well solves the problem that the data processing scheme in the prior art cannot meet the requirements of network distinction and isolation corresponding to different sub-PORTs.

[0167] Among them, the processor is specifically used to: generate an outer VLAN ID corresponding to the first parent interface according to the network device information; obtain first mapping relationship information according to the outer VLAN ID, inner VLAN ID and VNI; obtain mapping relationship information between QinQ and VNI according to the first mapping relationship information.

[0168] Among them, the implementation embodiments of the data processing method on the second network device side are all applicable to the embodiments of the network device and can achieve the corresponding same technical effects.

[0169] The embodiment of the present invention further provides a network device, wherein the network device is a third network device, such as Fig.12 As shown, the network device includes: a processor 121 and a transceiver 122;

[0170] The processor 121 is configured to determine first configuration information when a first sub-interface corresponding to the first parent interface exists;

[0171] Obtain network configuration information according to the first configuration information, and send the network configuration information to the second network device through the transceiver 122;

[0172] Among them, the first configuration information includes network device information corresponding to the first parent interface, the inner virtual local area network identifier VLAN ID corresponding to the first child interface, and the network identifier VNI corresponding to the virtual extended local area network VXLAN.

[0173] The network device provided in the embodiment of the present invention determines the first configuration information when there is a corresponding first sub-interface in the first parent interface; obtains network configuration information based on the first configuration information and sends it to the second network device; wherein the first configuration information includes the network device information corresponding to the first parent interface, the inner virtual local area network identifier VLAN ID corresponding to the first sub-interface, and the network identifier VNI corresponding to the virtual extended local area network VXLAN; it can support the realization of meeting the network distinction and isolation requirements corresponding to different sub-PORTs, clearly distinguish the actual business message VNI, correctly map the corresponding VNI forwarding, and well solves the problem that the data processing scheme in the prior art cannot meet the network distinction and isolation requirements corresponding to different sub-PORTs.

[0174] The inner VLAN ID is located in the interface identification field of the first configuration information.

[0175] Among them, the implementation embodiments of the data processing method on the third network device side mentioned above are all applicable to the embodiments of the network device and can also achieve the corresponding same technical effects.

[0176] The embodiment of the present invention further provides a network device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the data processing method on the first network device side is implemented; or,

[0177] When the processor executes the program, the data processing method on the second network device side is implemented; or,

[0178] When the processor executes the program, the data processing method on the third network device side is implemented.

[0179] Among them, the implementation embodiments of the data processing method on the first network device side, the second network device side or the third network device side are all applicable to the embodiments of the network device and can achieve the corresponding same technical effects.

[0180] The embodiment of the present invention further provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the data processing method on the first network device side are implemented; or,

[0181] When the program is executed by the processor, the steps in the data processing method on the second network device side are implemented; or,

[0182] When the program is executed by the processor, the steps in the data processing method on the third network device side are implemented.

[0183] Among them, the implementation embodiments of the data processing method on the first network device side, the second network device side or the third network device side are all applicable to the embodiments of the readable storage medium, and can also achieve the corresponding same technical effects.

[0184] It should be noted that many functional components described in this specification are referred to as modules / sub-modules in order to more particularly emphasize the independence of their implementation methods.

[0185] In the embodiment of the present invention, module / submodule can be implemented with software so that it can be performed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of this module.

[0186] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.

[0187] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.

[0188] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data processing method, applied to a second network device, characterized in that: The method comprises: Receiving network configuration information sent by a third network device; In the case where the network configuration information includes the first configuration information, a mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network is generated according to the first configuration information, and sent to the first network device; The first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface; The inner VLAN ID corresponds to the first sub-interface of the first parent interface; the first parent interface corresponds to the outer VLAN ID; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

2. The data processing method according to claim 1, characterized in that: The step of generating, according to the first configuration information, mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network includes: Generate an outer VLAN ID corresponding to the first parent interface according to the network device information; Obtain first mapping relationship information according to the outer VLAN ID, the inner VLAN ID and the VNI; According to the first mapping relationship information, the mapping relationship information between QinQ and VNI is obtained.

3. A data processing method, applied to a third network device, characterized in that: The method comprises: If the first parent interface has a corresponding first sub-interface, determine the first configuration information; Obtaining network configuration information according to the first configuration information, and sending the network configuration information to the second network device; The first configuration information includes network device information corresponding to the first parent interface, an inner virtual local area network identifier VLAN ID corresponding to the first sub-interface, and a network identifier VNI corresponding to the virtual extended local area network VXLAN; The inner VLAN ID corresponds to the first sub-interface of the first parent interface; the first parent interface corresponds to the outer VLAN ID; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

4. The data processing method according to claim 3, characterized in that: The inner VLAN ID is located in the interface identification field of the first configuration information.

5. A data processing device, applied to a second network device, characterized in that: The device comprises: A second receiving module, used to receive network configuration information sent by a third network device; A second processing module is used to generate, when the network configuration information includes the first configuration information, mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network according to the first configuration information, and send it to the first network device; The first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface; The inner VLAN ID corresponds to the first sub-interface of the first parent interface; the first parent interface corresponds to the outer VLAN ID; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

6. The data processing device according to claim 5, characterized in that: The second processing module comprises: A first generating submodule, configured to generate an outer VLAN ID corresponding to the first parent interface according to the network device information; A first processing submodule, configured to obtain first mapping relationship information according to the outer VLAN ID, the inner VLAN ID and the VNI; The second processing submodule is used to obtain the mapping relationship information between QinQ and VNI according to the first mapping relationship information.

7. A data processing device, applied to a third network device, characterized in that: The device comprises: A second determination module, configured to determine the first configuration information when the first parent interface has a corresponding first sub-interface; A third processing module, configured to obtain network configuration information according to the first configuration information, and send the network configuration information to a second network device; The first configuration information includes network device information corresponding to the first parent interface, an inner virtual local area network identifier VLAN ID corresponding to the first sub-interface, and a network identifier VNI corresponding to the virtual extended local area network VXLAN; The inner VLAN ID corresponds to the first sub-interface of the first parent interface; the first parent interface corresponds to the outer VLAN ID; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

8. The data processing device according to claim 7, characterized in that: The inner VLAN ID is located in the interface identification field of the first configuration information.

9. A network device, the network device being a second network device, characterized in that: The network device comprises: a processor and a transceiver; The processor is configured to receive network configuration information sent by a third network device through the transceiver; In the case where the network configuration information includes the first configuration information, generating mapping relationship information between the dual virtual local area network QinQ and the network identifier VNI of the virtual extended local area network VXLAN network according to the first configuration information, and sending it to the first network device through the transceiver; The first configuration information includes the inner virtual local area network identifier VLAN ID, the VNI corresponding to the VXLAN, and the network device information corresponding to the first parent interface; The inner VLAN ID corresponds to the first sub-interface of the first parent interface; the first parent interface corresponds to the outer VLAN ID; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

10. A network device, wherein the network device is a third network device, characterized in that: The network device comprises: a processor and a transceiver; The processor is configured to determine the first configuration information when the first parent interface has a corresponding first sub-interface; Obtaining network configuration information according to the first configuration information, and sending the network configuration information to the second network device through the transceiver; The first configuration information includes network device information corresponding to the first parent interface, an inner virtual local area network identifier VLAN ID corresponding to the first sub-interface, and a network identifier VNI corresponding to the virtual extended local area network VXLAN; The inner VLAN ID corresponds to the first sub-interface of the first parent interface; the first parent interface corresponds to the outer VLAN ID; the mapping relationship information between QinQ and VNI includes the first mapping relationship information between the first parent interface, the first sub-interface and the VNI.

11. A network device comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the data processing method according to any one of claims 1 to 2 is implemented; or, When the processor executes the program, the data processing method according to any one of claims 3 to 4 is implemented.

12. A readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the data processing method according to any one of claims 1 to 2 are implemented; or, When the program is executed by a processor, the steps in the data processing method according to any one of claims 3 to 4 are implemented.