# US 2023/0421499 A1 · 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 2023/0421499 A1
- Document ID: US20230421499A1
- Status: Published application
- Kind: A1
- Application number: 18/459,163
- Filed: 2023-08-31
- Published: 2023-12-28
- Earliest claimed: 2021-03-02
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Zhibo Hu; Ping’an Yang; Tao Han; Jie Dong
- Web page: https://patentgrep.com/patent/US20230421499A1

## 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 45/745: Address table lookup; Address filtering
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 45/566: {Routing instructions carried by the data packet, e.g. active networks}
- H04L 45/64: using an overlay routing layer
- H04L 45/50: using label swapping, e.g. multi-protocol label switch [MPLS]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A packet transmission method includes: A first network device receives a first data packet; and the first network device updates the first data packet to obtain a second data packet, where the second data packet includes a global identifier; the first network device sends the second data packet to a second network device, where the global identifier is used by the second network device to verify the second data packet based on a correspondence, and the correspondence is a correspondence between the global identifier and an egress port through which the second network device transmits the second data packet.

## Claims

### Claim at position 1

-30. (canceled)

### Claim 31

A method, comprising:
receiving, by a first network device, a first data packet;
updating, by the first network device, the first data packet to obtain a second data packet, wherein the second data packet comprises a global identifier; and
sending, by the first network device, the second data packet to a second network device, wherein the second network device verifies the second data packet based on a correspondence between the global identifier and a first egress port for the second network device to transmit the second data packet.

### Claim 32 (depends on 31)

The method according to claim 31, wherein the first network device is a provider edge (PE) device, and before updating, by the first network device, the first data packet, the method further comprises:
determining, by the PE device based on a stored correspondence between an ingress port through which the PE device receives the first data packet and the global identifier, the global identifier corresponding to the ingress port.

### Claim 33 (depends on 32)

The method according to claim 32, wherein sending, by the first network device, the second data packet to the second network device comprises:
searching, by the first network device, a public network routing table based on a destination address of the first data packet, to determine a second egress port matching the destination address; and
sending, by the first network device, the second data packet to the second network device through the second egress port matching the destination address.

### Claim 34 (depends on 31)

The method according to claim 31, wherein the first network device is a customer-premises equipment (CPE), and before the updating, by first network device, the first data packet, the method further comprises:
determining, by the CPE based on a stored correspondence between a third egress port through which the CPE sends the first data packet and the global identifier, the global identifier corresponding to the third egress port through which the CPE sends the first data packet.

### Claim 35 (depends on 31)

The method according to claim 31, wherein the first network device is a customer-premises equipment (CPE), and before updating, by the first network device, the first data packet, the method further comprises:
determining, by the CPE based on a correspondence between a packet characteristic of the first data packet and the global identifier, the global identifier corresponding to the packet characteristic.

### Claim 36 (depends on 31)

The method according to claim 31, wherein before updating, by the first network device, the first data packet, the method further comprises:
receiving, by the first network device, the global identifier from a control device.

### Claim 37 (depends on 36)

The method according to claim 36, wherein the first network device is a customer-premises equipment (CPE), and the control device comprises a software-defined wide area network (SD-WAN) controller.

### Claim 38 (depends on 31)

The method according to claim 31, wherein the second data packet is an IPv6 packet, and the global identifier is carried in one or more of the following fields in a basic header of the IPv6 packet:
a flow label field or a destination address field.

### Claim 39 (depends on 31)

The method according to claim 31, wherein the second data packet is an IPv6 packet, and the global identifier is carried in one or more of the following extension headers of the IPv6 packet:
a destination options header (DOH) or a hop-by-hop options header (HBH).

### Claim 40 (depends on 31)

The method according to claim 31, wherein the global identifier comprises:
a slice identifier slice (ID), a virtual network identifier (VNID), or a preset identifier.

### Claim 41

A method, comprising:
receiving, by a second network device, a second data packet from a first network device, wherein the second data packet comprises a first global identifier;
determining, by the second network device based on a correspondence between an egress port for sending the second data packet and a second global identifier, the second global identifier corresponding to the egress port; and
forwarding, by the second network device, the second data packet based on the egress port in response to a match between the first global identifier and the second global identifier.

### Claim 42 (depends on 41)

The method according to claim 41, wherein before determining, by the second network device, the second global identifier corresponding to the egress port, the method further comprises:
searching, by the second network device, a public network routing table based on a destination address of the second data packet, to determine the egress port matching the destination address.

### Claim 43 (depends on 41)

The method according to claim 41, wherein the method further comprises:
discarding, by the second network device, the second data packet in response to a mismatch between the first global identifier and the second global identifier.

### Claim 44 (depends on 41)

The method according to claim 41, wherein before determining, by the second network device based on the correspondence between the egress port for sending the second data packet and a second global identifier, the second global identifier corresponding to the egress port, the method further comprises:
determining, by the second network device based on a correspondence between an ingress port for receiving the second data packet and a third global identifier, the third global identifier corresponding to the ingress port; and
determining, by the second network device based on the correspondence between the egress port for sending the second data packet and the second global identifier, the second global identifier corresponding to the egress port in response to a match between the first global identifier and the third global identifier.

### Claim 45 (depends on 41)

The method according to claim 41, wherein the first network device is a customer-premises equipment CPE, and the second network device is a provider edge PE device.

### Claim 46 (depends on 41)

The method according to claim 41, wherein both the first network device and the second network device are PE devices.

### Claim 47 (depends on 41)

The method according to claim 41, wherein the forwarding, by the second network device, the second data packet based on the egress port comprises:
forwarding, by the second network device, the second data packet to a third network device based on the egress port, wherein the third network device is a CPE.

### Claim 48 (depends on 41)

The method according to claim 41, wherein before forwarding, by the second network device, the second data packet based on the egress port, the method further comprises:
receiving, by the first network device, the second global identifier from a control device.

### Claim 49

An apparatus, wherein the apparatus is used in a first network device and comprises:
a non-transitory memory storing instructions; and
one or more processors coupled to the non-transitory memory; wherein the instructions, when executed by the one or more processor, cause the apparatus to:
receive a first data packet;
update the first data packet to obtain a second data packet, wherein the second data packet comprises a global identifier, a second network device verifies the second data packet based on a correspondence between the global identifier and a first egress port through which the second network device transmits the second data packet; and
forward the second data packet to the second network device.

### Claim 50 (depends on 49)

The apparatus according to claim 49, wherein the first network device is a provider edge (PE) device; and the instructions, when executed by the processor, further cause the apparatus to:
determine, based on a stored correspondence between an ingress port through which the PE device receives the first data packet and a global identifier, the global identifier corresponding to the ingress port.

### Claim 51 (depends on 50)

The apparatus according to claim 50, wherein the instructions, when executed by the processor, further cause the apparatus to:
search a public network routing table based on a destination address of the first data packet, to determine a second egress port matching the destination address; and
send the second data packet to the second network device through the second egress port matching the destination address.

### Claim 52 (depends on 49)

The apparatus according to claim 49, wherein the first network device is a customer-premises equipment (CPE); and the instructions, when executed by the processor, further cause the apparatus to:
determine, based on a stored correspondence between a third egress port through which the CPE sends the first data packet and the global identifier, the global identifier corresponding to the third egress port through which the CPE sends the first data packet.

### Claim 53 (depends on 49)

The apparatus according to claim 49, wherein the first network device is a customer-premises equipment (CPE); and the instructions, when executed by the processor, further cause the apparatus to:
determine, based on a correspondence between a packet characteristic of the first data packet and the global identifier, the global identifier corresponding to the packet characteristic.

### Claim 54 (depends on 49)

The apparatus according to claim 49, wherein the instructions, when executed by the processor, further cause the apparatus to:
receive the global identifier from a control device.

### Claim 55 (depends on 49)

The apparatus according to claim 49, wherein the second data packet is an IPv6 packet, and the global identifier is carried in one or more of the following fields in a basic header of the IPv6 packet:
a flow label field or a destination address field.

### Claim 56

An apparatus, wherein the apparatus is used in a second network device and comprises:
a non-transitory memory storing instructions; and
one or more processors coupled to the non-transitory memory; wherein the instructions, when executed by the one or more processors, cause the apparatus to:
receive a second data packet from a first network device, wherein the second data packet comprises a first global identifier;
determine, based on a correspondence between an egress port for forwarding the second data packet and a second global identifier, the second global identifier corresponding to the egress port; and
forward the second data packet based on the egress port in response to a match between the first global identifier and the second global identifier.

### Claim 57 (depends on 56)

The apparatus according to claim 56, wherein the instructions, when executed by the processor, further cause the apparatus to be configured to:
search a public network routing table based on a destination address of the second data packet, to determine the egress port matching the destination address.

### Claim 58 (depends on 56)

The apparatus according to claim 56, wherein the instructions, when executed by the processor, further cause the apparatus to be configured to:
discard the second data packet in response to a mismatch between the first global identifier and the second global identifier.

### Claim 59 (depends on 56)

The apparatus according to claim 56, wherein the instructions, when executed by the processor, further cause the apparatus to be configured to:
determine, based on a correspondence between an ingress port for receiving the second data packet and a third global identifier, the third global identifier corresponding to the ingress port; and
determine, based on the correspondence between the egress port for forwarding the second data packet and the second global identifier, the second global identifier corresponding to the egress port in response to a match between the first global identifier and the third global identifier.

### Claim 60 (depends on 56)

The apparatus according to claim 56, wherein the second data packet is an IPv6 packet, and the first global identifier is carried in one or more of the following extension headers of the IPv6 packet:
a destination options header (DOH) or a hop-by-hop options header (HBH).
