IP Library Granted Patent US 11,831,551
Granted Patent B2
US 11,831,551 · App. 17/358,264 · Granted Nov 28, 2023

Cloud computing data center system, gateway, server, and packet processing method

Inventors: Zhengxian Zhang (Shenzhen, CN); Fuzhou Liu (Shenzhen, CN); Bo Yao (Hangzhou, CN)
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
H04L47/2408G06F9/45558H04L12/4637H04L12/4679H04L45/66H04L45/745G06F2009/45579G06F2009/45595
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,831,551
App. No.
17/358,264
Granted
Nov 28, 2023
Kind
B2
Abstract

A cloud computing data center system includes a first server, a second server, a cloud management platform, and a switch. The first server includes a first computing node and a first distributed gateway. The first distributed gateway receives a management packet sent by the cloud management platform. The first distributed gateway records network information of the second VLAN. A first virtual machine sends a first service packet that carries service data to a second virtual machine. The first distributed gateway receives the first service packet, generates a second service packet by modifying the first service packet based on the network information of the second VLAN, and sends the second service packet to the switch. A second distributed gateway receives the second service packet forwarded by the switch, and sends the second service packet to the second virtual machine. In this way, network reliability may be improved.

Claims (51)

1. A packet processing method for a distributed gateway, wherein the distributed gateway is connected to a first computing node by using a first peripheral component interconnect express (PCIe) link; the distributed gateway is connected to a switch; a first virtual machine is disposed on the first computing node; the first virtual machine is located in a first virtual local area network (VLAN); and the method comprises:

receivin a management packet sent by a cloud management platform, wherein the management packet carries network information of a second VLAN;

recordin the network information of the second VLAN;

receivin a first service packet that carries service data and that is sent by the first virtual machine to a second virtual machine, wherein the second virtual machine is located in the second VLAN;

generating a second service packet to reach the second VLAN based on the first service packet and the network information of the second VLAN, wherein the second service packet carries the service data; and

sending the second service packet to the switch;

wherein the distributed gateway comprises a network adapter controller and a network adapter; the network adapter is provided with a first physical function (PF), a first virtual function (VF), and a physical network port; the network adapter controller is connected to the first PF; the first virtual machine is connected to the first VF; and

the physical network port is connected to the switch;

wherein the receiving, by the distributed gateway, a first service packet that carries service data and that is sent by the first virtual machine to a second virtual machine further comprises: receiving, by the network adapter, the first service packet from the first VF;

wherein a destination MAC address of the management packet is a MAC address of the network adapter controller;

the network adapter records a third correspondence between the MAC address of the network adapter controller and the first PF;

the receiving, by the distributed gateway, a management packet sent by the cloud management platform further comprises:

receiving, by the network adapter, the management packet from the physical network port, selecting the first PF from the third correspondence based on the destination MAC address of the management packet, and forwarding the management packet to the first PF; and

receiving, by the network adapter controller, the management packet from the first PF.

2. The method according to claim 1 , wherein the generating a second service packet based on the first service packet and the network information of the second VLAN to that can reach the second VLAN comprises:

forwarding, by the network adapter, the first service packet to the first PF;

obtaining, by the network adapter controller, the first service packet from the first PF, modifying the first service packet based on the network information of the second VLAN to generate the second service packet, and sending the second service packet to the first PF; and

sending, by the network adapter, the second service packet to the physical network port.

3. The method according to claim 1 , wherein the recording the network information of the second VLAN comprises: obtaining, by the network adapter controller, the network information of the second VLAN from the management packet, and recording, by the distributed gateway, the network information of the second VLAN.

4. The method according to claim 1 , wherein the first service packet is a VLAN packet; a destination address of the first service packet is a MAC address of the second virtual machine; a first VLAN identifier is set for the first VLAN network; a second VLAN identifier different from the first VLAN identifier is set for the second VLAN network; the network information of the second VLAN comprises a first correspondence between the MAC address of the second virtual machine and the second VLAN identifier; and the generating a second service packet based on the first service packet and the network information of the second VLAN to reach the second VLAN comprises:

obtaining, by the distributed gateway, the second VLAN identifier from the first correspondence based on the destination MAC address of the first service packet; and

setting, by the distributed gateway, the second VLAN identifier in the first service packet to generate the second service packet.

5. The method according to claim 1 , wherein the first service packet is a VLAN packet; a destination MAC address of the first service packet is a MAC address of the second virtual machine; the network information of the second VLAN comprises a second correspondence between the MAC address of the second virtual machine and an IP address of another distributed gateway that is connected to a second computing node by using a second PCIe link; the second virtual machine is disposed on the second computing node; and the generating a second service packet based on the first service packet and the network information of the second VLAN to reach the second VLAN comprises:

obtaining, by the distributed gateway, the IP address from the second correspondence based on the destination address of the first service packet; and

encapsulating, by the distributed gateway, the first service packet into the second service packet, wherein the second service packet is an overlay packet, and a destination IP address of the second service packet is the IP address.

6. A distributed gateway, comprising a processor and a memory, wherein the distributed gateway is connected to a computing node on which a first virtual machine is disposed, the distributed gateway is connected to a switch, the first virtual machine is located in a first virtual local area network (VLAN), the memory stores a program instruction, and the program instruction is run by the processor, to that cause the processor to:

receive a management packet sent by a cloud management platform, wherein the management packet carries network information of a second VLAN;

record the network information of the second VLAN;

receive a first service packet that carries service data and that is sent by the first virtual machine to a second virtual machine, wherein the second virtual machine is located in the second VLAN;

modify the first service packet based on the network information of the second VLAN to generate a second service packet to reach the second VLAN, wherein the second service packet carries the service data; and

send the second service packet to the switch;

wherein the distributed gateway comprises a network adapter controller and a network adapter; the network adapter is provided with a first physical function (PF), a first virtual function (VF), and a physical network port; the network adapter controller is connected to the first PF; the first virtual machine is connected to the first VF; and the physical network port is connected to the switch;

wherein the program instruction further causes the processor to:

receive the first service packet from the first VF;

wherein a destination MAC address of the management packet is a MAC address of the network adapter controller; the network adapter records a third correspondence between the MAC address of the network adapter controller and the first PF;

wherein the receiving of the management packet sent by the cloud management platform further comprises:

receiving, by the network adapter, the management packet from the physical network port,

selecting the first PF from the third correspondence based on the destination MAC address of the management packet, and forward the management packet to the first PF; and

receiving, by the network adapter controller, the management packet from the first PF.

7. The distributed gateway according to claim 6 , wherein the program instruction further causes the processor to:

forward the first service packet to the first PF;

obtain the first service packet from the first PF, modify the first service packet based on the network information of the second VLAN to generate the second service packet, and send the second service packet to the first PF; and

send the second service packet to the physical network port.

8. The distributed gateway according to claim 6 , wherein the program instruction further causes the processor to:

obtain the network information of the second VLAN from the management packet, and record the network information of the second VLAN.

9. The distributed gateway according to claim 6 , wherein the first service packet is a VLAN packet; a destination address of the first service packet is a MAC address of the second virtual machine; a first VLAN identifier is set for the first VLAN network; a second VLAN identifier different from the first VLAN identifier is set for the second VLAN network; the network information of the second VLAN comprises a first correspondence between the MAC address of the second virtual machine and the second VLAN identifier; and the program instruction further causes the processor to:

obtain the second VLAN identifier from the first correspondence based on the destination MAC address of the first service packet; and

set the second VLAN identifier in the first service packet to generate the second service packet.

10. The distributed gateway according to claim 6 , wherein the first service packet is a VLAN packet; a destination MAC address of the first service packet is a MAC address of the second virtual machine; the network information of the second VLAN comprises a second correspondence between the MAC address of the second virtual machine and an IP address of another distributed gateway that is connected to a second computing node by using a second PCIe link; the second virtual machine is disposed on the second computing node; and the program instruction further cause the processor to:

obtain the IP address from the second correspondence based on the destination address of the first service packet; and

encapsulate the first service packet into the second service packet, wherein the second service packet is an overlay packet, and a destination IP address of the second service packet is the IP address.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 22, 2023
From: ZHANG, ZHENGXIAN; LIU, FUZHOU; YAO, BO
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 064991/0657 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →