METHOD, APPARATUS, AND SYSTEM FOR LOAD BALANCING OF SERVICE CHAIN
First Claim
1. A flow classifier, comprising a receiver, a processor, and a transmitter, wherein:
- the receiver is configured to receive a service chain selection and control policy sent by a policy and charging rules function (PCRF) unit, and send the service chain selection and control policy to the processor, wherein the service chain selection and control policy comprises a service chain identifier and a correspondence between a service chain and a hash quantity, and the service chain selection and control policy is used to instruct the flow classifier to hash a service flow passing through the service chain, into subflows according to the hash quantity;
the processor is configured to hash, according to the hash quantity, the service flow corresponding to the service chain identifier, to obtain multiple subflows, add the service chain identifier and hashing factors to packets of the subflows, and send the packets of the subflows to the transmitter, wherein different subflows correspond to different hashing factors; and
the transmitter is configured to send the packets of the subflows after the service chain identifier and the hashing factors are added, to a forwarding device.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, an apparatus, and a system are provided for load balancing of a service chain. The method includes: receiving, by a flow classifier, a service chain selection and control policy sent by a policy and charging rules function PCRF unit; hashing, by the flow classifier according to a hash quantity, a service flow corresponding to a service chain identifier, to obtain multiple subflows, and adding the service chain identifier and hashing factors to packets of the subflows, where different subflows correspond to different hashing factors; and sending, by the flow classifier, the packets of the subflows after the service chain identifier and the hashing factors are added, to a forwarding device.
-
Citations
11 Claims
-
1. A flow classifier, comprising a receiver, a processor, and a transmitter, wherein:
-
the receiver is configured to receive a service chain selection and control policy sent by a policy and charging rules function (PCRF) unit, and send the service chain selection and control policy to the processor, wherein the service chain selection and control policy comprises a service chain identifier and a correspondence between a service chain and a hash quantity, and the service chain selection and control policy is used to instruct the flow classifier to hash a service flow passing through the service chain, into subflows according to the hash quantity; the processor is configured to hash, according to the hash quantity, the service flow corresponding to the service chain identifier, to obtain multiple subflows, add the service chain identifier and hashing factors to packets of the subflows, and send the packets of the subflows to the transmitter, wherein different subflows correspond to different hashing factors; and the transmitter is configured to send the packets of the subflows after the service chain identifier and the hashing factors are added, to a forwarding device. - View Dependent Claims (2, 3, 4)
-
-
5. A controller, comprising a processor and a memory accessible to the processor, wherein the processor is configured to:
-
receive a logical service chain definition and a hash quantity, wherein the logical service chain definition comprises information about at least one type of value-added service device that a service chain passes through, the service chain comprises at least one forwarding device that a service flow passes through and value-added service devices that the service flow passes through, the service chain has a service chain identifier, the service chain corresponds to the hash quantity, the hash quantity is configured to indicate a quantity of subflows that the service flow passing through the service chain is hashed into, and different subflows correspond to different hashing factors; determine, according to the hash quantity and a quantity of value-added service devices participating in a service, in value-added service devices of a same type, a subflow allocated to each value-added service device participating in the service, in the value-added service devices of the same type; generate, according to the logical service chain definition and subflow allocation information, a first flow forwarding table for the at least one forwarding device that the service chain passes through, wherein the first flow forwarding table comprises first matching information and first operation information, wherein the first matching information comprises the service chain identifier and the hashing factors, and the first operation information is configured to instruct the at least one forwarding device to send, after receiving a first packet having the service chain identifier and the hashing factor, the first packet to a value-added service device to which a subflow comprising the first packet is allocated; and send, to the at least one forwarding device that the service chain passes through, the first flow forwarding table generated for the at least one forwarding device. - View Dependent Claims (6, 7, 8, 9)
-
-
10. A system for load balancing of a service chain, comprising a controller and a flow classifier, wherein:
-
the controller comprising a first receiver, a first determining circuitry, a first generating circuitry, and a first transmitter, wherein; the first receiver is configured to receive a logical service chain definition and a hash quantity, send the hash quantity to the first determining circuitry, and send the logical service chain definition to the first generating circuitry, wherein the logical service chain definition comprises information about at least one type of value-added service device that a service chain passes through, the service chain comprises at least one second forwarding device that a service flow passes through and value-added service devices that the service flow passes through, the service chain has a service chain identifier, the service chain corresponds to the hash quantity, the hash quantity is used to indicate a quantity of subflows that the service flow passing through the service chain is hashed into, and different subflows correspond to different hashing factors; the first determining circuitry is configured to determine, according to the hash quantity and a quantity of value-added service devices participating in a service, in value-added service devices of a same type, a subflow allocated to each value-added service device participating in the service, in the value-added service devices of the same type, and send subflow allocation information to the first generating circuitry; the first generating circuitry is configured to generate, according to the logical service chain definition and subflow allocation information, a first flow forwarding table for each of the at least one second forwarding device that the service chain passes through, and send the first flow forwarding table to the first transmitter, wherein the first flow forwarding table comprises first matching information and first operation information, wherein the first matching information comprises the service chain identifier and the hashing factors, and the first operation information is used to instruct the at least one second forwarding device to send, after receiving a first packet having the service chain identifier and the hashing factor, the first packet to a value-added service device to which a subflow comprising the first packet is allocated; and the first transmitter is configured to send, to each of the at least one second forwarding device that the service chain passes through, the first flow forwarding table generated for each of the at least one second forwarding device; the flow classifier comprising a receiver, a processor, and a transmitter, wherein; the receiver is configured to receive a service chain selection and control policy sent by a policy and charging rules function PCRF unit, and send the service chain selection and control policy to the processor, wherein the service chain selection and control policy comprises a service chain identifier and a correspondence between a service chain and a hash quantity, and the service chain selection and control policy is used to instruct the flow classifier to hash a service flow passing through the service chain, into subflows according to the hash quantity; the processor is configured to hash, according to the hash quantity, the service flow corresponding to the service chain identifier, to obtain multiple subflows, add the service chain identifier and hashing factors to packets of the subflows, and send the packets of the subflows to the transmitter, wherein different subflows correspond to different hashing factors; and the transmitter is configured to send the packets of the subflows after the service chain identifier and the hashing factors are added, to a third forwarding device. - View Dependent Claims (11)
-
Specification