摘要 |
Embodiments of the present application provide a service flow processing method, an apparatus, and a device. In the embodiments of the present application, SFs are classified, and a specific instance is not selected for a stateless SF, which can effectively reduce a quantity of SFPs and a quantity of SFP IDs used to uniquely identify the SFPs, reduce signaling overheads required by a controller to configure an SFP for an SFF, and reduce storage space of each SFF for storing configuration information. |
主权项 |
1. A service flow processing method, comprising:
receiving a service chain service request message for a service flow, wherein the service chain service request message comprises a match rule corresponding to the service flow and a service chain (SFC) required by the service flow, and the SFC comprises multiple sequentially arranged network service functions SFs; separately generating, according to the multiple SFs, corresponding SFP elements used to form a service chain instance SFP corresponding to the SFC, and allocating a corresponding identifier SFP ID to the generated SFP, wherein if it is determined and learned that the multiple SFs comprise a stateless SF, an SFP element corresponding to the stateless SF is an element of a service function type; and sending the SFP and the SFP ID to each service forwarding device SFF, so that the SFF processes, according to the SFP element, a service flow comprising the SFP ID, wherein that the SFF processes, according to the SFP element, the service flow comprising the SFP ID comprises: selecting, by the SFF, a network service function instance for the SFP element that belongs to the service function type, to process the service flow. |