# US 2021/0083974 A1 · Packet Processing Method and System, and Device

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

- Number: US 2021/0083974 A1
- Document ID: US20210083974A1
- Status: Published application
- Kind: A1
- Application number: 17/107,909
- Filed: 2020-11-30
- Published: 2021-03-18
- Earliest claimed: 2013-03-15
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co.,Ltd.
- Inventors: Changjiang Yan
- Web page: https://patentgrep.com/patent/US20210083974A1

## CPC

- H04L 45/74: Address processing for routing
- H04L 45/306: {Route determination based on the nature of the carried application}
- H04L 45/38: {Flow based routing}
- H04L 45/50: using label swapping, e.g. multi-protocol label switch [MPLS]
- H04L 45/64: using an overlay routing layer
- H04L 45/66: {Layer 2 routing, e.g. in Ethernet based MAN's}
- H04L 47/19: at layers above the network layer (network arrangements for networked applications for scheduling or organising the servicing of application requests H04L67/60)
- H04L 61/5007: Internet protocol [IP] addresses
- H04L 2101/622: Layer-2 addresses, e.g. medium access control [MAC] addresses
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The application disclose a packet processing method that includes: receiving, by a service distribution node, service routing information sent by a controller, where the service routing information includes a flow identifier, a service identifier, and a next-hop address, the flow identifier is used to identify a packet flow, the service identifier is used to identify a sequence of a service node instance that processes the packet flow, and the next-hop address is used to identify the service node instance that processes the packet flow; receiving a first packet; acquiring a first flow identifier according to the first packet, and searching the service routing information according to the first flow identifier to acquire a matched service identifier and a matched next-hop address; and sending a second packet to a first service node instance that has the matched next-hop address, which implements service processing on a packet flow.

## Claims

### Claim 1

A packet processing method, comprising:
receiving, by a service distribution node, a first flow identifier, a first service identifier, and a first next-hop address from a controller, wherein the first flow identifier identifies a packet flow, the first service identifier is allocated to the packet flow, and the first next-hop address identifies an address of a first service node instance that processes the packet flow;
obtaining, by the service distribution node, the first flow identifier based on a first packet;
obtaining, by the service distribution node, a second packet based on the first packet and the first service identifier corresponding to the first flow identifier, wherein the second packet comprises the first packet and the first service identifier; and
sending, by the service distribution node, the second packet to a first service node instance that has the matched first next-hop address corresponding to the first service identifier.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
obtaining, by the service distribution node, a first entry based on the first service identifier and the first next-hop address, wherein the first entry comprises the first service identifier and the first next-hop address.

### Claim 3 (depends on 1)

The method according to claim 1, wherein obtaining the second packet comprises:
obtaining, by the service distribution node, the first service identifier based on the obtained first flow identifier; and
generating, by the service distribution node, the second packet based on the first packet and the obtained first service identifier.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the sending the second packet comprises:
querying, by the service distribution node, the first entry based on the first service identifier to obtain the first next-hop address; and
sending, by the service distribution node, the second packet to the first service node instance based on the first next-hop address.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
receiving, by the service distribution node, an identifier of the first service node instance from the controller; and
obtaining, by the service distribution node, a first entry based on the first service identifier, the identifier of the first service node instance and the first next-hop address, wherein the first entry comprises the first service identifier, the identifier of the first service node instance and the first next-hop address.

### Claim 6 (depends on 1)

The method according to claim 1, wherein obtaining the second packet comprises:
obtaining, by the service distribution node, the first service identifier and the identifier of the first service node instance based on the obtained first flow identifier; and
generating, by the service distribution node, the second packet based on the first packet, the obtained first service identifier and the obtained identifier of the first service node instance, wherein the second packet further comprises the identifier of the first service node instance.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the sending the second packet comprises:
querying, by the service distribution node, the first entry based on the first service identifier and the identifier of the first service node instance to obtain the first next-hop address; and
sending, by the service distribution node, the second packet to the first service node instance based on the first next-hop address.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the first flow identifier comprises 5-tuple information of the packet flow.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the address of the first service node instance is an Internet Protocol (IP) address of the first service node instance, or an Media Access Control (MAC) address of the first service node instance, or an Multiprotocol Label Switching (MPLS) label of the first service node instance.

### Claim 10

A service distribution node, comprising:
a processor; and
a non-transitory computer-readable storage medium coupled to the processor and storing programming instructions for execution by the processor, the programming instructions cause the service distribution node to:
receive a first flow identifier, a first service identifier, and a first next-hop address from a controller, wherein the flow identifier identifies a packet flow, the first service identifier is allocated to the packet flow, and the first next-hop address identifies an address of a first service node instance that processes the packet flow;
obtain a first flow identifier based on a first packet;
obtain a second packet based on the first packet and the first service identifier corresponding to the first flow identifier, wherein the second packet comprises the first packet and the first service identifier; and
send the second packet to a first service node instance that has the matched first next-hop address corresponding to the first service identifier.

### Claim 11 (depends on 10)

The service distribution node according to claim 10, wherein the programming instructions further instruct the processor to:
obtain a first entry based on the first service identifier and the first next-hop address, wherein the first entry comprises the first service identifier and the first next-hop address.

### Claim 12 (depends on 10)

The service distribution node according to claim 10, wherein the programming instructions instruct the processor to:
obtain the first service identifier based on the obtained first flow identifier; and
generate, the second packet based on the first packet and the obtained first service identifier.

### Claim 13 (depends on 11)

The service distribution node according to claim 11, wherein the programming instructions cause the service distribution node to:
query the first entry based on the first service identifier to obtain the first next-hop address; and
send the second packet to the first service node instance based on the first next-hop address.

### Claim 14 (depends on 10)

The service distribution node according to claim 10, wherein the programming instructions further cause the service distribution node to:
receive an identifier of the first service node instance from the controller; and
obtain a first entry based on the first service identifier, the identifier of the first service node instance and the first next-hop address, wherein the first entry comprises the first service identifier, the identifier of the first service node instance and the first next-hop address.

### Claim 15 (depends on 10)

The service distribution node according to claim 10, wherein the programming instructions cause the service distribution node to:
obtain the first service identifier and the identifier of the first service node instance based on the obtained first flow identifier; and
generate the second packet based on the first packet, the obtained first service identifier and the obtained identifier of the first service node instance, wherein the second packet further comprises the identifier of the first service node instance.

### Claim 16 (depends on 14)

The service distribution node according to claim 14, wherein the programming instructions service distribution node to:
query the first entry based on the first service identifier and the identifier of the first service node instance to obtain the first next-hop address; and
send the second packet to the first service node instance based on the first next-hop address.

### Claim 17 (depends on 10)

The service distribution node according to claim 10, wherein the first flow identifier comprises 5-tuple information of the packet flow.

### Claim 18 (depends on 10)

The service distribution node according to claim 10, wherein the address of the first service node instance is an Internet Protocol (IP) address of the first service node instance, or an Media Access Control (MAC) address of the first service node instance, or an Multiprotocol Label Switching (MPLS) label of the first service node instance.
