# US 2020/0403910 A1 · Packet Processing Method, Controller, and Forwarding Device

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

- Number: US 2020/0403910 A1
- Document ID: US20200403910A1
- Status: Published application
- Kind: A1
- Application number: 17/012,982
- Filed: 2020-09-04
- Published: 2020-12-24
- Earliest claimed: 2018-03-07
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Zhibo Hu
- Web page: https://patentgrep.com/patent/US20200403910A1

## CPC

- H04L 45/306: {Route determination based on the nature of the carried application}
- H04L 45/16: Multipoint routing
- H04L 45/304: {Route determination for signalling traffic}
- H04L 45/38: {Flow based routing}
- H04L 45/64: using an overlay routing layer
- H04L 45/655: Interaction between route computation entities and forwarding entities, e.g. for route determination or for flow table update
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A packet processing method, a controller, and a forwarding device are provided. Under the method, a controller obtains service information, and determines at least one forwarding device based on the service information. The controller generates an instruction list based on the service information and network function information of the at least one forwarding device, where the network function information is used to indicate a network function of the at least one forwarding device, and the instruction list includes a control instruction generated by the controller for the at least one forwarding device. The controller sends the corresponding control instruction in the instruction list to the at least one forwarding device, where the control instruction is used to instruct the at least one forwarding device to perform corresponding processing on a service packet of a service corresponding to the service information.

## Claims

### Claim 1

A packet processing method, wherein the method comprises:
obtaining, by a controller, service information, and determining at least one forwarding device based on the service information;
generating, by the controller, an instruction list based on the service information and network function information of the at least one forwarding device, wherein the network function information is used to indicate a network function of the at least one forwarding device, and the instruction list comprises a control instruction generated by the controller for the at least one forwarding device; and
sending, by the controller, the corresponding control instruction in the instruction list to the at least one forwarding device, wherein the control instruction is used to instruct the at least one forwarding device to perform corresponding processing on a service packet of a service corresponding to the service information.

### Claim 2 (depends on 1)

The method according to claim 1, wherein before the generating, by the controller, an instruction list based on the service information and network function information of the at least one forwarding device, the method further comprises:
obtaining, by the controller, the network function information from the at least one forwarding device.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the network function information comprises a function instruction set, and the function instruction set is a set of network function instructions sent by the at least one forwarding device to the controller.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the service information comprises a destination address of the service, and the determining, by a controller, at least one forwarding device based on the service information comprises:
calculating, by the controller based on the destination address, a forwarding path corresponding to the service packet, wherein the at least one forwarding device is a device on the forwarding path.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the generating, by the controller, an instruction list based on the service information and network function information of the at least one forwarding device comprises:
generating, by the controller, the instruction list based on the service information, the forwarding path, and the network function information of the at least one forwarding device.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the service information comprises a service type of the service, and the generating, by the controller, the instruction list based on the service information, the forwarding path, and the network function information of the at least one forwarding device comprises:
determining, by the controller, an orchestration template corresponding to the service type, wherein the orchestration template is used to indicate a network function requirement corresponding to the service type; and
generating, by the controller, the instruction list based on the forwarding path, the orchestration template, and the network function information of the at least one forwarding device, wherein the instruction list comprises a forwarding instruction generated by the controller for the at least one forwarding device.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the control instruction comprises a forwarding instruction, the at least one forwarding device is a device having a packet forwarding function, and the generating, by the controller, the instruction list based on the forwarding path, the orchestration template, and the network function information of the at least one forwarding device comprises:
determining, by the controller, network function information that is of the at least one forwarding device and that corresponds to the orchestration template;
generating, by the controller, the forwarding instruction based on the forwarding path and the network function information that is of the at least one forwarding device and that corresponds to the orchestration template; and
generating, by the controller, the instruction list based on the forwarding instruction.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the control instruction comprises a forwarding instruction; and after the obtaining, by a controller, service information, and before the generating, by the controller, an instruction list based on the service information and network function information of the at least one forwarding device, the method further comprises:
determining, by the controller, that the service is a multicast service.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the sending, by the controller, the corresponding control instruction in the instruction list to the at least one forwarding device comprises:
sending, by the controller, at least two forwarding instructions in the instruction list to a forwarding device having a replication function in the at least one forwarding device, wherein the at least two forwarding instructions are used to instruct the forwarding device having a replication function to replicate and forward the service packet of the multicast service.

### Claim 10

A packet processing method, wherein the method comprises:
receiving, by a forwarding device, a control instruction sent by a controller, wherein the control instruction is an instruction generated by the controller based on service information and network function information of the forwarding device, and the network function information is used to indicate a network function of the forwarding device; and
performing, by the forwarding device according to the control instruction, a corresponding operation on a service packet of a service corresponding to the service information.

### Claim 11 (depends on 10)

The method according to claim 10, wherein before the receiving, by a forwarding device, a control instruction sent by a controller, the method further comprises:
sending, by the forwarding device, the network function information to the controller.

### Claim 12 (depends on 11)

The method according to claim 11, wherein before the sending, by the forwarding device, the network function information to the controller, the method further comprises:
generating, by the forwarding device, a network function instruction, wherein the network function instruction is used to indicate the network function of the forwarding device, and one network function instruction corresponds to one or more network functions; and
the sending, by the forwarding device, the network function information to the controller comprises:
sending, by the forwarding device, the network function instruction to the controller.

### Claim 13 (depends on 10)

The method according to claim 10, wherein the forwarding device is a device having a forwarding function, or a device having a packet replication function and a forwarding function, or a device having a corresponding encapsulation function and a forwarding function.

### Claim 14 (depends on 10)

The method according to claim 10, wherein the service corresponding to the service information is a multicast service, the control instruction comprises a forwarding instruction, the forwarding device is a device having a packet replication function and a forwarding function, and the receiving, by a forwarding device, a control instruction sent by the controller comprises:
receiving, by the forwarding device, at least two forwarding instructions sent by the controller.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the performing, by the forwarding device, a corresponding operation on the service packet according to the control instruction comprises:
replicating, by the forwarding device based on a target quantity of times, the service packet corresponding to the multicast service, to obtain a replicated service packet, wherein the target quantity of times is less than a quantity of the at least two forwarding instructions by 1; and
correspondingly forwarding, by the forwarding device according to the at least two forwarding instructions, the service packet corresponding to the multicast service and the replicated service packet.

### Claim 16 (depends on 14)

The method according to claim 14, wherein the control instruction comprises a forwarding instruction, the forwarding device is a device having a forwarding function, and the performing, by the forwarding device according to the control instruction, a corresponding operation on a service packet of a service corresponding to the service information comprises:
generating, by the forwarding device, a forwarding table based on the forwarding instruction; and
forwarding, by the forwarding device, the service packet based on the forwarding table.

### Claim 17

A forwarding device, wherein the forwarding device comprises:
a receiving unit, configured to receive a control instruction sent by a controller, wherein the control instruction is an instruction generated by the controller based on service information and network function information of the forwarding device, and the network function information is used to indicate a network function of the forwarding device; and
an execution unit, configured to perform, according to the control instruction, a corresponding operation on a service packet of a service corresponding to the service information.

### Claim 18 (depends on 17)

The forwarding device according to claim 17, wherein the forwarding device further comprises:
a sending unit, configured to send the network function information to the controller.

### Claim 19 (depends on 18)

The forwarding device according to claim 18, wherein the forwarding device further comprises:
a generation unit, configured to generate a network function instruction, wherein the network function instruction is used to indicate the network function of the forwarding device, and one network function instruction corresponds to one or more network functions; and
the sending unit is specifically configured to send the network function instruction to the controller.

### Claim 20 (depends on 17)

The forwarding device according to claim 17, wherein the forwarding device is a device having a forwarding function, or a device having a packet replication function and a forwarding function, or a device having a corresponding encapsulation function and a forwarding function.
