# US 2023/0275830 A1 · Packet forwarding method, apparatus, and system

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

- Number: US 2023/0275830 A1
- Document ID: US20230275830A1
- Status: Published application
- Kind: A1
- Application number: 18/312,198
- Filed: 2023-05-04
- Published: 2023-08-31
- Earliest claimed: 2021-06-28
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xia CHEN; Bing LIU; Ling XU; Jianwei MAO
- Web page: https://patentgrep.com/patent/US20230275830A1

## CPC

- H04L 45/306: {Route determination based on the nature of the carried application}
- H04L 61/2514: between local and global IP addresses
- H04L 45/24: Multipath
- H04L 45/741: Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
- H04L 45/745: Address table lookup; Address filtering
- H04L 47/125: by balancing the load, e.g. traffic engineering
- H04L 61/256: NAT traversal
- H04L 61/59: using proxies for addressing
- H04L 67/565: Conversion or adaptation of application format or content (adding application control or application functional data H04L67/561)
- H04L 67/1006: with static server selection, e.g. the same server being selected for a specific client
- H04L 67/146: Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

This application discloses a packet forwarding method, an apparatus, and a system, and belongs to the field of communication technologies. The method includes: A first node receives a first packet. The first node sends a second packet to a second node based on the first packet, where a source address of the second packet is obtained by translating a source address of the first packet, a destination address of the second packet is a destination address of the first packet, a packet payload of the second packet is a packet payload of the first packet, the second packet further includes a session identifier, and the session identifier is used by the second node to forward the second packet.

## Claims

### Claim 1

A packet forwarding method, comprising:
receiving, by a first node, a first packet; and
sending, by the first node, a second packet to a second node based on the first packet, wherein a source address of the second packet is obtained by translating a source address of the first packet, a destination address of the second packet is a destination address of the first packet, a packet payload of the second packet is a packet payload of the first packet, the second packet further comprises a session identifier, and the session identifier is used by the second node to forward the second packet.

### Claim 2 (depends on 1)

The packet forwarding method according to claim 1, wherein the session identifier is used by the second node to perform load balancing.

### Claim 3 (depends on 1)

The packet forwarding method according to claim 1, wherein the session identifier comprises the source address of the first packet; or
the session identifier comprises a first application-aware identifier corresponding to the second packet.

### Claim 4 (depends on 3)

The packet forwarding method according to claim 3, wherein when the session identifier comprises the first application-aware identifier, the first packet further comprises the first application-aware identifier.

### Claim 5 (depends on 1)

The packet forwarding method according to claim 1, wherein the second packet is an internet protocol version 6 IPv6 packet, and the session identifier is in an extension header of the second packet; or
the second packet is an internet protocol version 4 IPv4 packet, and the session identifier is in an option field of the second packet.

### Claim 6 (depends on 5)

The packet forwarding method according to claim 5, wherein the extension header is a hop-by-hop options HBH header or a newly added extension header.

### Claim 7

A packet forwarding method, comprising:
receiving, by a second node, a first packet from a first node, wherein the first packet comprises a first session identifier; and
sending, by the second node, the first packet based on the first session identifier.

### Claim 8 (depends on 7)

The packet forwarding method according to claim 7, wherein the first session identifier is used by the second node to perform load balancing.

### Claim 9 (depends on 7)

The packet forwarding method according to claim 7, wherein a source address of the first packet is obtained by translating a source address of a second packet, a destination address of the first packet is a destination address of the second packet, and a packet payload of the first packet is a packet payload of the second packet; and
the first session identifier comprises the source address of the second packet; or the first session identifier comprises a first application-aware identifier corresponding to the first packet.

### Claim 10 (depends on 9)

The packet forwarding method according to claim 9, wherein when the first session identifier comprises the source address of the second packet, the first session identifier further comprises the destination address of the second packet;
the first session identifier further comprises the destination address of the second packet and a source port of the second packet; or
the first session identifier further comprises the destination address of the second packet, a source port of the second packet, and a destination port of the second packet.

### Claim 11 (depends on 7)

The packet forwarding method according to claim 7, wherein the first packet received by the second node is an IPv6 packet, and the first session identifier is in an extension header of the first packet; or
the first packet received by the first node is an IPv4 packet, and the first session identifier is in an option field of the first packet.

### Claim 12 (depends on 7)

The packet forwarding method according to claim 7, wherein the sending, by the second node, the first packet based on the first session identifier comprises:
generating, by the second node, a session table based on the first session identifier, wherein the session table comprises a key value and next-hop information, and the key value comprises the first session identifier; and
finding, by the second node, the next-hop information based on the key value corresponding to the first session identifier, and sending the first packet based on the next-hop information.

### Claim 13 (depends on 12)

The packet forwarding method according to claim 12, wherein the second node is an ingress router in compute first networking, and the generating, by the second node, a session table based on the first session identifier comprises:
obtaining, by the second node, computing power information of a plurality of third nodes that each provide a first service and that are in the compute first networking, wherein the first service is a service corresponding to the first packet;
determining, by the second node, a target node in the plurality of third nodes based on the computing power information of the plurality of third nodes, wherein the target node satisfies a computing power condition;
determining, by the second node, the next-hop information based on the target node, wherein the next-hop information is for sending a packet to the target node; and
generating, by the second node, the session table based on the next-hop information and the first session identifier.

### Claim 14 (depends on 12)

The packet forwarding method according to claim 12, wherein the second node is a load balancer node in load balancing networking, and the generating, by the second node, a session table based on the first session identifier comprises:
obtaining, by the second node, load information of a plurality of third nodes that each provide a first service and that are in the load balancing networking, wherein the first service is a service corresponding to the first packet;
determining, by the second node, a target node in the plurality of third nodes based on the load information of the plurality of third nodes, wherein the target node satisfies a load condition;
determining, by the second node, the next-hop information based on the target node, wherein the next-hop information is for sending a packet to the target node; and
generating, by the second node, the session table based on the next-hop information and the first session identifier.

### Claim 15 (depends on 7)

The packet forwarding method according to claim 7, wherein the first packet sent by the second node comprises the first session identifier.

### Claim 16 (depends on 7)

The packet forwarding method according to claim 7, wherein the method further comprises:
receiving, by the second node, a third packet from the first node, wherein the third packet comprises the first session identifier; and
sending, by the second node based on the first session identifier, the third packet to a destination node that is the same as that of the first packet.

### Claim 17 (depends on 7)

The packet forwarding method according to claim 7, wherein the method further comprises:
receiving, by the second node, a fourth packet from the first node, wherein the fourth packet comprises a second session identifier, and the second session identifier is different from the first session identifier; and
sending, by the second node, the fourth packet based on the second session identifier, so that the fourth packet and the first packet are sent to different serving nodes.

### Claim 18

A packet forwarding system, comprising:
a first node; and
a second node,
wherein the first node is configured to:
receive a first packet; and
send a second packet to a second node based on the first packet, wherein a source address of the second packet is obtained by translating a source address of the first packet, a destination address of the second packet is a destination address of the first packet, a packet payload of the second packet is a packet payload of the first packet, the second packet further comprises a session identifier, and the session identifier is used by the second node to forward the second packet, and wherein the second node is configured to:
receive a first packet from a first node, wherein the first packet comprises a first session identifier; and
send the first packet based on the first session identifier.

### Claim 19 (depends on 18)

The packet forwarding system according to claim 18, wherein the session identifier is used by the second node to perform load balancing.

### Claim 20 (depends on 18)

The packet forwarding system according to claim 18, wherein the session identifier comprises the source address of the first packet; or
the session identifier comprises a first application-aware identifier corresponding to the second packet.
