# US 11,310,081 B2 · Packet transmission method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,310,081 B2
- Document ID: US11310081B2
- Status: Granted
- Kind: B2
- Application number: 17/093,207
- Filed: 2020-11-09
- Published: 2021-06-24
- Granted: 2022-04-19
- Earliest claimed: 2018-05-10
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jun Gao; Yuan Gao; Wanmei Zeng
- Web page: https://patentgrep.com/patent/US11310081B2

## CPC

- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 12/4675: {Dynamic sharing of VLAN information amongst network nodes (configuration of the network or of network elements H04L41/08)}
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 45/74: Address processing for routing
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

This application provides a packet transmission method and apparatus. The method includes: receiving, by a first transmission device, a first VXLAN packet sent by a first service device through a first virtual extensible local area network VXLAN tunnel; determining, by the first transmission device, first egress information corresponding to a first BD and a first destination media access control MAC address, based on a correspondence between the first BD, the first destination MAC address, and the first egress information; generating, by the first transmission device, a second VXLAN packet based on the first VXLAN packet and the first egress information, where the second VXLAN packet includes a second VNI and an Ethernet frame; and sending, by the first transmission device sends the second VXLAN packet to a second transmission device through a second VXLAN tunnel. This application facilitates more flexible packet transmission.

## Claims

### Claim 1

A packet transmission method, comprising:
receiving, by a first transmission device, a first virtual extensible local area network (VXLAN) packet sent by a first service device through a first VXLAN tunnel, wherein the first VXLAN packet comprises a first VXLAN network identifier (VNI), the first VNI indicates that a broadcast domain (BD) to which the first VXLAN packet sent by the first service device through the first VXLAN tunnel belongs is a first BD, and the first transmission device and the first service device are located in a first data center (DC);
determining, by the first transmission device, first egress information corresponding to the first BD and a first destination media access control (MAC) address, based on a correspondence between the first BD, the first destination MAC address, and the first egress information, wherein the first destination MAC address indicates a destination address of an Ethernet frame contained in the first VXLAN packet, and the first egress information comprises a first virtual extensible local area network tunnel end point (VTEP) address and a second VNI;
generating, by the first transmission device, a second VXLAN packet based on the first VXLAN packet and the first egress information, wherein the second VXLAN packet comprises the second VNI and the Ethernet frame; and
sending, by the first transmission device, the second VXLAN packet to a second transmission device through a second VXLAN tunnel, wherein the second transmission device is located in a second DC, the second DC is different from the first DC, the first VTEP address indicates an address through which the second transmission device connects to the second VXLAN tunnel, and the second VNI indicates that a BD to which the second VXLAN packet sent by the first transmission device through the second VXLAN tunnel belongs is a second BD.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the second VNI is the same as a third VNI, the third VNI is contained in a third VXLAN packet sent by the second transmission device to a second service device through a third VXLAN tunnel, the third VXLAN packet is generated by the second transmission device based on the second VXLAN packet, and the second transmission device and the second service device are located in the second DC.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the second VNI is different from a third VNI, the third VNI is contained in a third VXLAN packet sent by the second transmission device to a second service device through a third VXLAN tunnel, the third VXLAN packet is generated by the second transmission device based on the second VXLAN packet, and the second transmission device and the second service device are located in the second DC.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the method further comprises:
receiving, by the first transmission device, a first MAC/internet protocol (IP) advertisement route sent by the second transmission device, wherein the first MAC/IP advertisement route comprises the first destination MAC address and the second VNI; and
generating, by the first transmission device, the correspondence between the first BD, the first destination MAC address, and the first egress information, based on the first MAC/IP advertisement route.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the method further comprises:
sending, by the first transmission device, a second MAC/IP advertisement route to the first service device, wherein the second MAC/IP advertisement route comprises the first destination MAC address and the first VNI.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the method further comprises:
receiving, by the first transmission device, a first route that is sent by the first service device and that is reflected by a first route reflector (RR) and that is used to establish the first VXLAN tunnel, wherein the first RR is located in the first DC;
adding, by the first transmission device, the first VXLAN tunnel to a first split horizon group, wherein the first split horizon group is a split horizon group in the first DC;
receiving, by the first transmission device, a second route that is sent by the second transmission device and that is reflected by a second RR, and that is used to establish the second VXLAN tunnel, wherein the second RR is located outside the first DC; and
adding, by the first transmission device, the second VXLAN tunnel to a second split horizon group, wherein the second split horizon group is outside the first DC.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the method further comprises:
determining, by the first transmission device based on the first VTEP address, that the second transmission device is located in the second DC.

### Claim 8

A packet transmission apparatus, comprising:
a memory, wherein the memory comprises instructions; and
a processor configured to communicate with the memory, wherein the processor is configured to execute the instructions to:
receive a first virtual extensible local area network (VXLAN) packet sent by a first service device through a first VXLAN tunnel, wherein the first VXLAN packet comprises a first VXLAN network identifier (VNI), the first VNI indicates that a broadcast domain (BD) to which the first VXLAN packet sent by the first service device through the first VXLAN tunnel belongs is a first BD, and the packet transmission apparatus and the first service device are located in a first data center (DC);
determine first egress information corresponding to the first BD and a first destination media access control, MAC, address, based on a correspondence between the first BD, the first destination MAC address, and the first egress information, wherein the first destination MAC address indicates a destination address of an Ethernet frame contained in the first VXLAN packet, and the first egress information comprises a first virtual extensible local area network tunnel end point (VTEP) address and a second VNI, wherein
generate a second VXLAN packet based on the first VXLAN packet and the first egress information, wherein the second VXLAN packet comprises the second VNI and the Ethernet frame; and
send the second VXLAN packet to a second transmission device through a second VXLAN tunnel, wherein the second transmission device is located in a second DC, the first VTEP address indicates an address through which the second transmission device connects to the second VXLAN tunnel, and the second VNI indicates that a BD to which the second VXLAN packet sent by the packet transmission apparatus through the second VXLAN tunnel belongs is a second BD.

### Claim 9 (depends on 8)

The apparatus according to claim 8, wherein the second VNI is the same as a third VNI, the third VNI is contained in a third VXLAN packet sent by the second transmission device to a second service device through a third VXLAN tunnel, the third VXLAN packet is generated by the second transmission device based on the second VXLAN packet, and the second transmission device and the second service device are located in the second DC.

### Claim 10 (depends on 8)

The apparatus according to claim 8, wherein the second VNI is different from a third VNI, the third VNI is contained in a third VXLAN packet sent by the second transmission device to a second service device through a third VXLAN tunnel, the third VXLAN packet is generated by the second transmission device based on the second VXLAN packet, and the second transmission device and the second service device are located in the second DC.

### Claim 11 (depends on 9)

The apparatus according to claim 9, wherein the processor is further configured to execute the instructions to:
receive a first media access control MAC/internet protocol (IP) advertisement route sent by the second transmission device, wherein the first MAC/IP advertisement route comprises the first destination MAC address and the second VNI; and
generate the correspondence between the first BD, the first destination MAC address, and the first egress information, based on the first MAC/IP advertisement route.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein the processor is further configured to execute the instructions to:
send a second MAC/IP advertisement route to the first service device, wherein the second MAC/IP advertisement route comprises the first destination MAC address and the first VNI.

### Claim 13 (depends on 8)

The apparatus according to claim 8, wherein the processor is further configured to execute the instructions to:
receive a first route that is sent by the first service device and that is reflected by a first route reflector (RR) and that is used to establish the first VXLAN tunnel, wherein the first RR is located in the first DC;
add the first VXLAN tunnel to a first split horizon group, wherein the first split horizon group is a split horizon group in the first DC;
receive a second route that is sent by the second transmission device and that is reflected by a second RR and that is used to establish the second VXLAN tunnel, wherein the second RR is located outside the first DC; and
add the second VXLAN tunnel to a second split horizon group, wherein the second split horizon group is outside the first DC.

### Claim 14 (depends on 8)

The apparatus according to claim 8, wherein the processor is further configured to execute the instructions to:
determine, based on the first VTEP address, that the second transmission device is located in the second DC.

### Claim 15

A non-transitory computer-readable storage medium, comprising instructions which, when executed by a computer, cause the computer to carry out the instructions to:
receive a first virtual extensible local area network (VXLAN) packet sent by a first service device through a first VXLAN tunnel, wherein the first VXLAN packet comprises a first VXLAN network identifier (VNI), the first VNI indicates that a broadcast domain (BD) to which the first VXLAN packet sent by the first service device through the first VXLAN tunnel belongs is a first BD, and the computer and the first service device are located in a first data center (DC);
determine first egress information corresponding to the first BD and a first destination media access control, MAC, address, based on a correspondence between the first BD, the first destination MAC address, and the first egress information, wherein the first destination MAC address indicates a destination address of an Ethernet frame contained in the first VXLAN packet, and the first egress information comprises a first virtual extensible local area network tunnel end point (VTEP) address and a second VNI;
generate a second VXLAN packet based on the first VXLAN packet and the first egress information, wherein the second VXLAN packet comprises the second VNI and the Ethernet frame; and
send the second VXLAN packet to a second transmission device through a second VXLAN tunnel, wherein the second transmission device is located in a second DC, the first VTEP address indicates an address through which the second transmission device connects to the second VXLAN tunnel, and the second VNI indicates that a BD to which the second VXLAN packet sent by the computer through the second VXLAN tunnel belongs is a second BD.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the second VNI is the same as a third VNI, the third VNI is contained in a third VXLAN packet sent by the second transmission device to a second service device through a third VXLAN tunnel, the third VXLAN packet is generated by the second transmission device based on the second VXLAN packet, and the second transmission device and the second service device are located in the second DC.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the second VNI is different from a third VNI, the third VNI is contained in a third VXLAN packet sent by the second transmission device to a second service device through a third VXLAN tunnel, the third VXLAN packet is generated by the second transmission device based on the second VXLAN packet, and the second transmission device and the second service device are located in the second DC.

### Claim 18 (depends on 16)

The non-transitory computer-readable storage medium according to claim 16, wherein the instructions, when executed by the computer, cause the computer to carry out the instructions to:
receive a first media access control MAC/internet protocol (IP) advertisement route sent by the second transmission device, wherein the first MAC/IP advertisement route comprises the first destination MAC address and the second VNI; and
generate the correspondence between the first BD, the first destination MAC address, and the first egress information, based on the first MAC/IP advertisement route.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein the instructions, when executed by the computer, cause the computer to carry out the instructions to:
send a second MAC/IP advertisement route to the first service device, wherein the second MAC/IP advertisement route comprises the first destination MAC address and the first VNI.

### Claim 20 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein the instructions, when executed by the computer, cause the computer to carry out the instructions to:
receive a first route that is sent by the first service device and that is reflected by a first route reflector (RR) and that is used to establish the first VXLAN tunnel, wherein the first RR is located in the first DC;
add the first VXLAN tunnel to a first split horizon group, wherein the first split horizon group is a split horizon group in the first DC;
receive a second route that is sent by the second transmission device and that is reflected by a second RR and that is used to establish the second VXLAN tunnel, wherein the second RR is located outside the first DC; and
add the second VXLAN tunnel to a second split horizon group, wherein the second split horizon group is a outside the first DC.
