WO2016004556A1 - Service flow processing method, apparatus and device - Google Patents

Service flow processing method, apparatus and device Download PDF

Info

Publication number
WO2016004556A1
WO2016004556A1 PCT/CN2014/080060 CN2014080060W WO2016004556A1 WO 2016004556 A1 WO2016004556 A1 WO 2016004556A1 CN 2014080060 W CN2014080060 W CN 2014080060W WO 2016004556 A1 WO2016004556 A1 WO 2016004556A1
Authority
WO
WIPO (PCT)
Prior art keywords
sfp
service
instance
service function
sff
Prior art date
Application number
PCT/CN2014/080060
Other languages
French (fr)
Chinese (zh)
Inventor
魏鑫鹏
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480031398.3A priority Critical patent/CN105379218B/en
Priority to PCT/CN2014/080060 priority patent/WO2016004556A1/en
Priority to JP2016573955A priority patent/JP2017518710A/en
Priority to EP14897135.1A priority patent/EP3148149A4/en
Publication of WO2016004556A1 publication Critical patent/WO2016004556A1/en
Priority to US15/381,759 priority patent/US10581700B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication
    • H04L41/342Signalling channels for network management communication between virtual entities, e.g. orchestrators, SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5051Service on demand, e.g. definition and deployment of services in real time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5058Service discovery by the service manager
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a method, device, and device for processing a service flow. Background technique
  • the service network (Service Function, SF for short), such as TCP accelerators, firewalls, and video accelerators, is deployed in the carrier network. These SFs are deployed by operators in fixed locations on the network. Statically deployed in a certain location in the network topology. When the network traffic flows through the network, it will pass through the SFs in the network according to the carrier configuration. When the SF is deployed in the static mode, the network location of the SF will not change after the SF is deployed. This will cause all network traffic to be processed through the network at any time. All the SFs, and their processing order is unique, can not meet the needs of the network service flow through different order SF. In response to the above problems, the network standardization organization proposed the concept of Service Function Chain (SFC).
  • SFC Service Function Chain
  • the main functional entities include: SFC controller (SFC Controller), various SF instances sf (ie, a specific instance of SF, such as a specific firewall device sf l), classifier (Classif ier), service forwarding device and underlying network forwarding device (such as layer three router, layer two switch).
  • SFC Controller receives the service chain request message, if there is a specific instance SFP of the SFC, and the SFP includes the specific sfs that provide the SFC function, and the sf load is low, then The SFC Control Manager selects the SFP to provide network services for the requested network service flow.
  • the SFC Control Manager needs to add the match rule in the request message to the matching rule corresponding to the SFP ID in the classifier.
  • SFC Control ler The SF instance may be selected according to the SF requested in the service chain request message, and then a new SFP is generated and assigned a new SFP ID. In the process of selecting the SF instance, if multiple SFs exist, the same SF exists. Instance, then SFC Control ler from multiple Select the SF instance with low load in the SF instance.
  • the SFC Control Manager selects any sf corresponding to an SF.
  • a large number of sfs will result in the existence of a large number of SFPs.
  • the SFC Controller is responsible for assigning a unique SFP ID to each SFP.
  • the corresponding service forwarding device SFF needs to store the forwarding entries corresponding to each SFP ID.
  • a large amount of signaling is used to configure the SFP information on the SFF.
  • the required signaling overhead is large.
  • the corresponding SFF needs to maintain more forwarding entries, requires more storage space, and has lower forwarding efficiency.
  • the embodiments of the present invention provide a method, a device, and a device for processing a service flow, so as to solve the problem that the SFC controller needs to maintain the SFP information in the SFF in the prior art, and accordingly, the SFF needs to be maintained.
  • an embodiment of the present invention provides a service flow processing method, including: receiving a service chain service request message for a service flow, where the service chain service request message includes a matching rule corresponding to the service flow, and The business chain required by the business flow
  • the service chain includes a plurality of network service functions SF arranged in sequence;
  • SF includes a stateless SF, and the stateless SF corresponds to
  • the SFP element is an element of the business function type
  • the SFF processes the service flow including the SFP ID according to the SFP element
  • the SFF processing the service flow including the SFP ID according to the SFP element includes: the SFF selecting a network service function instance for the SFP element belonging to the service function type to process the service flow.
  • the generating, by the multiple SFs, a corresponding SFP element for forming a service chain instance SFP corresponding to the SFC Includes:
  • the plurality of SFs include the state SF, selecting a network service function
  • An example is the SFP element corresponding to the stateful SF.
  • the SFF processes, according to the SFP element, a service flow that includes the SFP ID, and includes :
  • the SFF sends the service flow to the network service function instance corresponding to the SFP element for processing.
  • the selecting a network service function instance is the SFP element corresponding to the stateful SF, Includes:
  • the SFF selects a network service function instance for the SFP element that belongs to the service function type to process the service flow, including:
  • the SFF selects a network service function instance whose load satisfies a preset condition for the SFP element belonging to the service function type to process the service flow.
  • the SFF selects, for an SFP element that belongs to a service function type, a network service function instance that meets a preset condition To process the service flow, including:
  • the SFF selects a network service function instance whose load satisfies a preset condition for the SFP element belonging to the service function type to process the service flow.
  • the SFF selects, for an SFP element that belongs to a service function type, a network service function instance that meets a preset condition To process the service flow, the method further includes:
  • the SFF selects a network service function instance that meets a preset condition for the SFP element belonging to the service function type to process the The business flow.
  • the selecting a network that meets a preset condition is specifically as follows:
  • the embodiment of the present invention provides a service flow processing method, including: receiving a service chain instance SFP and a corresponding identifier SFP ID sent by a controller, where
  • the SFP is generated by the controller according to the service chain SFC required by the service flow, and the controller allocates a corresponding identifier SFP ID to the generated SFP, where the SFP includes multiple SFP elements, and the SFP
  • the element is generated by the controller according to a plurality of network service functions SF sequentially arranged in the SFC;
  • the processing, by the SFP element, the service flow that includes the SFP ID further includes:
  • the selecting, by the SFP element belonging to the service function type, a network service function instance to process the service flow Includes:
  • a traffic service function instance that satisfies a preset condition is selected for an SFP element belonging to a service function type to process the service flow.
  • the SFP element that belongs to the service function type selects a network service function instance that meets a preset condition. Processing the service flow, including:
  • the SFP element belonging to the service function type selects a network service function instance whose load meets the preset condition to process the service flow.
  • the example of selecting a network service function that meets a preset condition is: Select an instance of the network service function with a load less than a threshold; or
  • an embodiment of the present invention provides a controller, including:
  • a receiving module configured to receive a service chain service request message for a service flow, where the service chain service request message includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, the service chain
  • the method includes: a plurality of network service functions SF arranged in sequence; and a processing module, configured to generate, according to the plurality of SFs, corresponding SFP elements for forming a service chain instance SFP corresponding to the SFC, and generate the generated The SFP allocates a corresponding identifier SFP ID; wherein, if it is determined that the plurality of SFs include a stateless SF, the SFP element corresponding to the stateless SF is an element of a service function type;
  • a sending module configured to send the SFP and the SFP ID to each service forwarding device SFF, where the SFF processes the service flow including the SFP ID according to the SFP element;
  • the SFP element processing the service flow including the SFP ID includes: the SFF selecting a network service function instance for the SFP element belonging to the service function type to process the service flow.
  • the processing module is further configured to:
  • a network service function instance is selected as the SFP element corresponding to the stateful SF.
  • the selecting a network service function instance as the SFP element corresponding to the stateful SF includes:
  • the selecting a network service function instance in which a load meets a preset condition is:
  • a fourth aspect of the present invention provides a service forwarding device, including: a receiving module, configured to receive a service chain instance SFP and a corresponding identifier SFP ID sent by the controller, where the SFP is generated by the controller according to a service chain SFC required by the service flow, and configured by the controller And generating, by the SFP, a corresponding SFP ID, where the SFP includes a plurality of SFP elements, where the SFP element is generated by the controller according to the plurality of network service functions SF sequentially arranged in the SFC. of;
  • a processing module configured to process, according to the SFP element, a service flow that includes the SFP ID, where the processing, according to the SFP element, processing the service flow, includes: selecting, for an SFP element that belongs to a service function type An instance of a network service function to process the traffic flow.
  • the processing module is further configured to:
  • the processing module is specifically configured to:
  • a traffic service function instance that satisfies a preset condition is selected for an SFP element belonging to a service function type to process the service flow.
  • the processing module is specifically configured to:
  • the SFP element belonging to the service function type selects a network service function instance whose load meets the preset condition to process the service flow.
  • the network service function instance that selects a load that meets a preset condition is specifically:
  • an embodiment of the present invention provides a controller, including:
  • an embodiment of the present invention provides a service forwarding device, including: a processor and a memory, where the memory stores an execution instruction, and when the service forwarding device is running, the processor communicates with the memory, The processor executing the execution instructions causes the service forwarding device to perform the method of any of the second aspects.
  • the controller does not select the specific SF for the SF.
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for processing a service flow according to the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a method for processing a service flow according to the present invention
  • FIG. 3 is a network architecture diagram of a service function chain function implemented by the present invention.
  • Embodiment 4 is a signaling flowchart of Embodiment 3 of a method for processing a service flow according to the present invention
  • FIG. 5 is a flowchart of an SFP controller generating an SFP in a service flow processing method according to the present invention
  • FIG. 6 is a schematic diagram of a connection between each SFF and an SF instance in a service flow processing method according to the present invention. Schematic;
  • Embodiment 8 is a schematic structural diagram of Embodiment 1 of a service forwarding device according to the present invention.
  • Embodiment 9 is a schematic structural diagram of Embodiment 2 of a controller according to the present invention.
  • FIG. 10 is a schematic structural diagram of Embodiment 2 of a service forwarding device according to the present invention. detailed description
  • a network service function refers to a network function capable of processing a service flow, for example, a network address translation device (NAT), a firewall, and a TCP power port rater. Wait.
  • Each network service function SF can have one or more specific network service function instances sf, such as a specific firewall device.
  • the service chain of the embodiment of the present invention is an abbreviation of a service function chain (SFC), which connects multiple network service functions SF in a certain order to form a service chain, and network service functions in the SFC.
  • the SF processes the service flows in turn according to the order of the SFs in the SFC.
  • SFC is a TCP accelerator ⁇ a firewall-network address translation device (NAT), that is, a service flow needs to be processed by a TCP accelerator, processed by a firewall, and finally processed by NAT.
  • NAT firewall-network address translation device
  • a Service Function Path (SFP) in the embodiment of the present invention is a specific example of an SFC, and includes a specific network service function instance sf of each SF in the SFC, and the SF corresponding to each SF is in accordance with each SF.
  • the sequence of the SFC is composed of, for example, the sf corresponding to the TCP accelerator is sfl, the sf corresponding to the firewall is sf2, and the sf corresponding to the NAT is sf2, and the specific instance SFP of the SFC is sf I ⁇ sf2 ⁇ sf3.
  • the SFP ID (SFP IDentifier) in the embodiment of the present invention is used to uniquely identify an SFP identifier, and each SFP has a corresponding SFP ID to identify it.
  • the Service Function Forwarder (SFF) is used to forward the service flow to each sf included in the SFP corresponding to the SFP ID according to the SFP ID, and the service flow is performed by each sf. Processing, wherein one SFF can connect multiple sfs.
  • the controller involved in the embodiment of the present invention is an SFC controller, which is responsible for the business chain. Cheng, configure SFF, and related management.
  • the network service function SF is divided into two types, (1) stateful SF, and (2) stateless SF.
  • a stateful SF is a network service function that stores state information or context information of a service flow in a process of processing a service flow.
  • the NAT device is in a private network IPv4 value of the service flow.
  • the mapping between the private network IPv4 address and the public network IPv4 address is saved, so that the public network IPv4 address of the returned service flow is converted to the corresponding private network IPv4 address, that is, the NAT device.
  • the firewall can also be classified into a stateful SF. Specifically, the firewall generally maintains a context information for the detected service flow.
  • the multiple packets of the service flow are detected according to the context information to determine whether the service flow is determined. Trusted, that is, the state information of the service flow is maintained in the firewall device. Therefore, in the present invention, after the data packet of the service flow passes through the instance sf corresponding to the SF, the sf requires that the subsequent data packet of the service flow also passes through the sf, and the network service function instance sf having the characteristic belongs to the network.
  • the business function SF is defined as a stateful SF.
  • Stateless SF is a network service function that does not store state information or context information of a service flow during processing of a service flow, for example, a device that performs a simple packet filtering function using a port number. Therefore, in the present invention, after the data packet of the service flow passes through the instance sf corresponding to the SF, the subsequent data packet of the service flow is not required to pass through the sf, and the network service function instance sf having the characteristic belongs to the network.
  • the business function SF is defined as a stateless SF.
  • FIG. 1 is a flowchart of a first embodiment of a method for processing a service flow according to the present invention.
  • the main body of the embodiment is a controller, which may be an SFC controller.
  • the method in this embodiment may include:
  • Step 101 Receive a service chain service request message for a service flow, where the service chain service request message includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, where the service chain includes multiple networks arranged in sequence Business function SF.
  • the service chain service request message includes a matching rule corresponding to the service flow, and the matching rule may be a quintuple information, that is, a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol number of the service flow. .
  • Step 102 Generate corresponding services for forming an SFC corresponding to each of the multiple SFs
  • the SFP element of the SFP is chained, and the corresponding SFP ID is assigned to the generated SFP. If it is determined that the plurality of SFs include the stateless SF, the SFP element corresponding to the stateless SF is an element of the service function type.
  • a specific service chain instance SFP is generated, and the SFP includes multiple SFP elements corresponding to the SF in the SFC, and if the judgment is included in the SF,
  • the stateless SF, the element of the service function type is selected as the SFP element corresponding to the stateless SF, where the service function type may have the same function and configuration for including multiple SF instances, and the SF instances can provide the same service for the service flow. That is, when it is determined that the SF in the SFC includes the stateless SF, it only needs to indicate the type of service function that the service flow needs to pass, and does not need to specify the SF instance to be specifically passed.
  • Step 103 Send the SFP and the SFP ID to each service forwarding device SFF, so that the SFF processes the service flow including the SFP ID according to the SFP element.
  • the SFF processing the service flow including the SFP ID according to the SFP element may include: SFF selects a network service function instance for the SFP element belonging to the service function type to process the service flow.
  • the SFP and the SFP ID corresponding to the SFP are sent to each SFF, and each SFF updates the service forwarding table maintained by itself.
  • the SFP element corresponding to the service chain instance SFP corresponding to the SFC is generated according to the multiple SFs, and if it is determined that the plurality of SFs include the status SF, the method is selected.
  • a network service function instance is used as the SFP element corresponding to the stateful SF, that is, a specific network service function instance sf in the SF is directly selected as its corresponding SFP element.
  • the SFF processes the service flow including the SFP ID according to the SFP element, and may also be: SFF sends the service flow to the network service function instance corresponding to the SFP element for processing. That is, when the SFP element is a network service function instance, the SFF directly sends the service flow to the network service function instance, and the service flow is processed by the network service function instance.
  • the network service function instance is selected as the SFP element corresponding to the stateful SF, and the network service function instance that meets the preset condition is selected as the state according to the load information of each network service function instance.
  • SFP element corresponding to SF, the pre- The condition may be that the load is less than a threshold, or the load satisfies a service requirement, and may be flexibly set according to requirements. In a preferred manner, a network service function instance with a minimum load may be selected.
  • the service flow reaches the SFF, and the SFF forwards the service flow to the corresponding SFP element through the SFP element according to the SFP element in the SFP corresponding to the service flow, where the SFF selects a load for the SFP element belonging to the service function type to meet the preset condition.
  • the network service function instance is used to process the service flow.
  • the preset condition can be flexibly set according to requirements.
  • the load may be less than a threshold, or the load may satisfy a service requirement.
  • a network service function instance with a minimum load may be selected.
  • the SFP element is a service function type
  • the SFF selects a network whose load meets the preset condition for the SFP element belonging to the service function type in the network service function instance corresponding to the service function type.
  • the service function instance is used to process the service flow, that is, in the network service function instance corresponding to the SFP element of the service function type, a network service function instance is selected according to the load condition of each network service function instance.
  • the SFF forwards the service flow to the network service that meets the preset condition.
  • the SFF selects a network service function instance that meets the preset condition for the SFP element that belongs to the service function type in each network service function instance corresponding to the SFP element that belongs to the service function type. Process business flows.
  • the service chain service request message by receiving a service chain service request message for a service flow, includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, which is respectively generated according to multiple SFs in the SFC.
  • Corresponding SFP element for forming a service chain instance SFP corresponding to the SFC, and assigning a corresponding identifier SFP ID to the generated SFP, wherein if it is determined that the plurality of SFs include the stateless SF, the corresponding SFP element is An element of a service function type, the service function type includes a plurality of SF instances having the same function and configuration, that is, the controller does not specify a specific SF instance to pass through for the stateless SF, and sends the SFP and the SFP ID to each SFF to For the SFF to process the service flow including the SFP ID according to the SFP element, the SFF selects a specific SF instance for the SFP element of the service function type to process the service flow, and the technical solution of the embodiment divides the SF by Stateless SF is not selected As a specific example, the SFP and the number of SFP IDs for uniquely identifying the SFP can be effectively reduced, and the signaling overhead required for the controller to configure the SFP for the S
  • Embodiment 2 is a flowchart of Embodiment 2 of a method for processing a service flow according to the present invention.
  • the executor of this embodiment is a service forwarding device SFF. As shown in FIG. 2, the method in this embodiment may include:
  • Step 201 Receive a service chain instance SFP and a corresponding identifier SFP ID sent by the controller.
  • the SFP is generated by the controller according to the service chain SFC required by the service flow, and the controller allocates a corresponding identifier SFP ID for the generated SFP, the SFP includes multiple SFP elements, and the SFP element is included in the SFC according to the controller.
  • the plurality of network service functions SF are sequentially generated.
  • Step 202 Process the service flow including the SFP ID according to the SFP element.
  • the process of processing the service flow including the SFP ID according to the SFP element may be: selecting a network for the SFP element belonging to the service function type. A business function instance to process the business flow.
  • the SFF selects a network service function instance for the SFP element, and the network function instance processes the service flow.
  • the processing of the service flow including the SFP ID according to the SFP element may be: sending the service flow to the network service function instance corresponding to the SFP element, that is, when the SFP element is a network service function instance, the SFF is directly The service flow is sent to the network service function instance for processing.
  • the SFP element that belongs to the service function type can select a network service function instance whose load meets the preset condition to process the service.
  • the network service function instance that meets the preset condition may be an instance of the network service function whose load is less than a threshold, or may be an instance of the network service function that meets a service requirement, where the load may be flexibly set according to requirements, preferably,
  • the traffic flow can be processed according to the load information of each network service function instance to select a minimum load.
  • the SFF processes the service flow including the SFP ID according to the SFP element by receiving the service chain instance SFP and the corresponding identifier SFP ID sent by the controller, where a network service is selected for the SFP element belonging to the service function type.
  • Function instance to handle the business flow ie
  • the SFP includes an SFP element belonging to a service function type, that is, when the SF is a stateless SF, the controller does not specify a specific SFP during the process of generating the SFP.
  • the SF instance only sets a service function type, and the SFF selects a specific SF instance for the SFP element that belongs to the service function type. Therefore, the SFF does not include the SFP and the corresponding SFP ID sent by the receiving controller.
  • the SFP element effectively reduces the number of SFPs and their corresponding SFP IDs, thereby effectively saving storage space for storing the above information.
  • FIG. 3 is a schematic diagram of a network architecture for implementing a service function chain function according to the present invention.
  • FIG. 4 is a signaling flowchart of Embodiment 3 of a method for processing a service flow according to the present invention, and FIG. 4 is a network architecture shown in FIG. A method for processing a service flow implemented by a scenario is implemented.
  • FIG. 5 is a flowchart of a method for generating an SFP by an SFC controller in a method for processing a service flow according to the present invention.
  • the network architecture mainly includes functional entities including: SFC controller (SFC)
  • Control ler various SF instances sf (a specific instance of SF, such as a specific firewall device sf l), classifier (Classif ier), service forwarding device (SFF), and underlying network forwarding device (such as layer three routers) , layer two switches).
  • SF instances sf a specific instance of SF, such as a specific firewall device sf l
  • classifier Classif ier
  • SFF service forwarding device
  • underlying network forwarding device such as layer three routers
  • the SFC controller receives a service chain service request message for a service flow.
  • the service chain service request message includes a matching rule corresponding to the service flow.
  • the SFC includes a plurality of SFs arranged in sequence.
  • the SFC controller generates an SFP for the service flow according to the service chain service request message.
  • the SFC controller includes, according to the SFC in the received service chain service request message, the SFC includes multiple SFs, and generates corresponding SFPs for forming a service chain instance SFP corresponding to the SFC according to the multiple SFs.
  • the SFP element sequentially forms the SFP corresponding to the SFC.
  • the S402 implementation process is as shown in FIG. 5.
  • the S402 specific steps may include: S5001: The SFC controller receives the service chain service request message of the service flow.
  • S5002 The SFC controller determines whether the SF in the SFC is a stateful SF, and if so, executes S5003, otherwise executes S5004.
  • S5003 For stateful SF, the SFC controller directly selects a corresponding SF instance.
  • the SFC controller may select an instance with the lowest current load from multiple sfs, or select an sf that satisfies the service flow requirement in the service chain request. It is not necessarily the lowest load sf.
  • the SF instance indicates the specific SF instance that the traffic flow will go through.
  • S5004 For stateless SF, the SFC controller does not select a specific SF instance for this SF.
  • the SFC controller does not specify a specific SF instance for the SF, but only sets an SF type in the SFP.
  • An SF type can contain multiple SF instances.
  • the SF type indicates that the service flow needs to pass through a certain type of SF instance, but does not specify that it needs to pass through an SF instance.
  • the same type of SF instance refers to an SF instance that can provide the same service for the service flow, usually these same types. SF instances have the same functionality and configuration.
  • S5005 Generate an SFP and assign it a unique SFP ID.
  • the SFC controller can select the existing SFP for the service flow, and does not need to generate a new SFP, and uses the SFP corresponding to the existing SFP. ID, and if the same SFP is not available, the SFC controller generates a new SFP based on the above steps and assigns a new SFP ID to the SFP.
  • the S5001-S5005 generates an SFP.
  • the service chain SFC in the service chain is SF1 ⁇ SF2 ⁇ SF3, where SF2 is stateless SF, SF1 and SF2 are stateful SF, and the specific instance of SF1 is sf. l, the specific example of SF3 is sf3, then the SFP generated by the SFC controller is sf l ⁇ SF2 ⁇ sf3, where SF2 is SF type.
  • the SFC controller determines whether there is a new SFP generation.
  • the SFC controller configures the service forwarding table in each SFF according to the newly generated SFP and its corresponding SFP ID.
  • each SFF When the SFC controller generates a new SFP and SFP ID for the service chain service request, the service forwarding table in each SFF needs to be updated because the forwarding information corresponding to the SFP ID is not included in the service forwarding table of each SFF.
  • Each SFF maintains a packet for forwarding packets
  • the service forwarding table is responsible for forwarding the service flow to the specific SF instance according to the SFP ID carried by the service flow, so that the SF instance processes the service flow, and the SFC controller generates a new SFP and its corresponding SFP.
  • the SFC controller configures the information to the SFF, and the SFC controller also configures the load information of each SF instance belonging to the SF type in the service forwarding table maintained by the SFF into the service forwarding table of the SFF.
  • the SFF updates the service forwarding table maintained by itself according to the above information sent by the SFC controller.
  • the specific form of the service forwarding table maintained on the SFF can be as shown in Table 2.
  • the service forwarding table of the service forwarding device SFF-X is used as an example.
  • the SFP corresponding to the SDP ID 1 is sf l ⁇ SF2 ⁇ sf3, sfl and Sf3 is an SF instance, and SF2 is an SF type.
  • the SF instances specifically included in SF2 are sf21, sf22, sf23, and sf24, where locator refers to the location information of the SF instance, and the locator can be divided into two types: (1) if the SF instance The locator is the interface of the SFF to which the SF instance is connected.
  • the locator may be the network location of the SFF where the SF instance is located. , such as the IP address of SFF.
  • the load information (load) of each SF instance of the SF type is also maintained in the service forwarding table.
  • the SFF determines the forwarding path of the service flow through the SFP ID, and carries an index value in the service flow. The index value is used to indicate the SF instances currently processed in the SFP.
  • the SFC controller sends a ⁇ match rule, SFP ID> of the service flow to the classifier. If the SFP is generated according to the service chain service request, if the same SFP already exists, The SFC controller can select the existing SFP for the service flow, and does not need to generate a new SFP and its corresponding SFP ID, and only needs to add the match rule of the service flow to the match rule of the SFP ID, and Update the ⁇ match rule, SFP ID> entry in the classifier (ie update the match table in the classifier);
  • the SFC controller If the same SFP is not available, the SFC controller generates a new SFP and its corresponding SFP ID according to the above steps, and updates the ⁇ match rule, SFP 10> entry in the classifier (ie, updates the matching table in the classifier)
  • the classifier updates the matching table maintained by itself.
  • a match table is maintained in the classifier. As shown in Table 3, the match table maintains the SFP ID and all corresponding match rule information (that is, there may be multiple service flows using the same SFP, so An SFP ID can correspond to multiple match rules, and the classifier is responsible for performing SFP ID marking on the service flow according to the service rule's mathch rule and the matching table, that is, obtaining the match rule in the matching table according to the match rule of the service flow. SFP ID, which adds an SFC forwarding header (SFP ID) to the service flow.
  • SFP ID which adds an SFC forwarding header (SFP ID) to the service flow.
  • the classifier After the SFP is generated according to the service chain service request of the service flow, if the same SFP is available, the classifier only needs to add the match rule of the service flow to the match rule of the SFP ID.
  • the SFC controller If no SFP is available, the SFC controller generates a new SFP and its corresponding SFP ID according to the above steps, and the classifier adds the new SFP ID to the matching table, and the newly added SFP ID in the matching table.
  • the match rule join the match rule of the service flow.
  • the classifier matches and marks the service flow.
  • the classifier matches the traffic flow
  • the rule matches the match rule in the match table.
  • the SFP ID corresponding to the match rule is marked on the service flow.
  • the marked service flow is sent to the SFF0 integrated with the classifier function, and then forwarded to other SFF-Xs via SFF0 (for example, SFF-A, SFF-B, etc.), and the SFF-X is responsible for forwarding the service according to the SFP ID. Send to the SF instance.
  • Each SFF forwards the service flow according to the SFP ID and the service forwarding table marked in the service flow.
  • the multiple SFs in the SFC required by the service flow are classified into a stateful SF and a stateless SF, and the SFC controller selects a stateful SF.
  • a specific SF instance instead of selecting a specific SF instance for the stateless SF, setting the SFP element corresponding to the stateless SF to the SF type, and sending the generated SFP and SFP ID to each SFF, and each SFF is itself
  • the service forwarding table is updated, and the service flow is forwarded according to the updated service forwarding table, and the service flow is processed by the corresponding SF instance, that is, the SFC controller performs load balancing control on the stateful SF (SFC).
  • the controller selects a specific SF instance for the SF belonging to the stateful SF according to the load information of each SF instance, and transfers the load balancing control of the stateless SF to the service forwarding device for processing (the SFC controller is not a stateless SF)
  • the SF selects a specific SF instance), so this embodiment effectively reduces the SFC controller according to the service chain service request compared to the prior art.
  • the number of SFPs and corresponding SFP IDs is reduced, which effectively reduces the signaling overhead required for the SFC to configure the SFP for each SFF, and accordingly reduces the service forwarding table entries required for each SFF, saving each SFF.
  • the storage space, and the reduction of forwarding entries in the SFF can improve the forwarding efficiency.
  • the generated SFP ID is only 1/M of the number of SFP IDs in the prior art, and correspondingly, the required storage in the SFF.
  • the forwarding entry is only 1/M of the number of forwarding entries in the prior art.
  • FIG. 6 is a schematic diagram of a connection between each SFF and the SF instance in the service flow processing method of the present invention, where the service chain service is used.
  • the SFC in the request message is SF1 - SF2 ⁇ SF3
  • the SFC controller determines that SF1 and SF3 are stateful SFs, and SF2 is a stateless SF.
  • the SFP controller generates SFPs for the service chain service request as sf 11 ⁇ SF2 ⁇ sf31 and SFP ID is 1. Assume that the connection between each SFF and each SF instance is as shown in FIG.
  • each SFF is specifically SFF-A, SFF-B, and SFF-C, and sfl l and sf31 are SF instances, and SF2 is an SF type, which includes four specific examples of sf21, sf22, sf23, and sf24, and each SFF in this embodiment.
  • the service forwarding table maintained is specifically shown in Table 4, where load refers to the load information of the SF instance, and the load information can be obtained from the SFC controller.
  • Step a The classifier obtains the SFP ID corresponding to the match rule from the matching table according to the match rule of the service flow, marks the SFP ID to the service flow data packet, and sets the index to 0.
  • SFF0 received from the classifier to carry SFP ID traffic stream packets based on the acquired ID of the first hop SFP SFP is S f 11, it is sent to the traffic flow sfl position L, in which case sfl
  • the locator of l is the IP address of SFF-A.
  • the SFF-A After receiving the service flow data packet, the SFF-A determines that the service flow data packet needs to be forwarded to the sfl1 process according to the SFP ID and the index value in the service flow data packet, so the SFF-A will process the service flow data packet. Send to sf ll. When sfl l processes the service flow packet, index will add 1 and send the service flow packet to SFF-A.
  • Step d After receiving the service flow data packet returned by sf ll, the SFF-A determines that the service flow data packet is processed by the SF2 according to the SFP ID and the value of the index at this time, because the SF2 recorded in the SFF-A service forwarding table is SF type, so SFF-A selects a low-load SF2 instance and sends the service flow data packet to the SF instance.
  • SF 23 is the lowest load SF instance, where sf23 locator is SFF-C. IP address.
  • the SFF-C After receiving the service flow data packet, the SFF-C determines that the service flow data packet needs to be forwarded to the sf23 processing according to the SFP ID and the index value in the service flow data packet, so the SFF-C sends the service flow data packet. For sf 23, index will be incremented by 1 after sf 23 processes the service flow packet, and the service flow packet is sent to SFF-C.
  • Step f After receiving the service data packet returned by sf23, SFF-C determines that the service flow data packet is processed by sf31 according to the SFP ID and the value of the index at this time, so SFF-C sends the service flow data packet to sf31,
  • the locator of sf31 is the IP address of SFF-B.
  • the SFF-B After receiving the service flow data packet, the SFF-B determines that the service flow data packet needs to be forwarded to the sf31 processing according to the SFP ID in the service flow data packet and the index value at this time, so the SFF-B will flow the service flow.
  • the data packet is sent to sf31.
  • sf31 After processing the service flow data packet, sf31 returns the service flow data to SFF-B. At this time, the service flow data packet passes through the SFP elements in all SFPs.
  • the SFP element in the SFP in the present invention may be SF.
  • Type for these SFP elements, you need to select a specific SF instance by SFF.
  • the forwarding action of SFF can specifically include two ways:
  • the SFF determines the SF instance corresponding to the SF type, and the determining method is based on the load condition of each SF instance in the SF type. If the SFP element to which the SFF is to be forwarded is connected to the SFF, the SFF only needs to select a low-load sf for forwarding in the SF instance connected thereto; if the SFP element to which the SFF is to be forwarded is not connected to the SFF, The SFF selects a low-load sf from all the SF instances it maintains for forwarding.
  • FIG. 7 is a schematic structural diagram of Embodiment 1 of the controller of the present invention.
  • the apparatus in this embodiment may include: a receiving module 1 1 , a processing module 12 , and a sending module 13 , where the receiving module 1 1 is configured to receive a service chain service request message for a service flow, the service chain service request message includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, where the service chain includes sequentially arranged a plurality of network service functions SF, the processing module 12 is configured to generate, according to the plurality of SFs, corresponding SFP elements for forming a service chain instance SFP corresponding to the SFC, and assign corresponding to the generated SFPs.
  • the SFP ID is identified; wherein, if it is determined that the plurality of SFs include a stateless SF, the corresponding SFP element is an element of a service function type, and the sending module 13 is configured to send the SFP and the SFP ID to each service.
  • the processing of the service flow including the SFP ID includes: the SFF selecting a network service function instance for the SFP element belonging to the service function type to process the service flow.
  • the processing module 12 is further configured to: if it is determined that the plurality of SFs include the state SF, select a network service function instance as the SFP element corresponding to the stateful SF.
  • selecting a network service function instance as the SFP element corresponding to the stateful SF may include: selecting a network service function instance whose load meets a preset condition as the SFP corresponding to the stateful SF element.
  • the example of the network service function that selects a load that meets the preset condition may be: selecting a network service function instance whose load is less than a threshold; or selecting a network service function instance that meets a service requirement.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.
  • the device in this embodiment may include: a receiving module 21 and a processing module 22, where the receiving module 21 is configured to receive a service sent by the controller. a chain instance SFP and a corresponding identifier SFP ID, wherein the SFP is generated by the controller according to a service chain SFC required by the service flow, and the controller allocates a corresponding identifier SFP ID to the generated SFP.
  • the SFP includes a plurality of SFP elements, and the SFP element is generated by the controller according to the plurality of network service functions SF sequentially arranged in the SFC, and the processing module 22 is configured to use the SFP according to the SFP.
  • the element processes the service flow including the SFP ID, where the processing the service flow according to the SFP element includes: selecting a network service function instance for the SFP element belonging to the service function type to process the business flow.
  • the processing module 22 is further configured to send the service flow to the network service function instance corresponding to the SFP element for processing.
  • selecting a network service function instance for the SFP element belonging to the service function type to process the service flow may include: selecting a network service function that meets a preset condition for the SFP element belonging to the service function type. An instance to process the traffic flow.
  • the processing module is specifically configured to: select, in an instance of the network service function corresponding to the service function type, a network service function instance that meets a preset condition for the SFP element that belongs to the service function type.
  • the business flow is specifically configured to: select, in an instance of the network service function corresponding to the service function type, a network service function instance that meets a preset condition for the SFP element that belongs to the service function type.
  • the load meets the preset condition, and the load may be less than a threshold, or the load meets a service requirement. It can be understood that other conditions can also be selected, and are not limited thereto.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 9 is a schematic structural diagram of Embodiment 2 of the controller of the present invention.
  • the controller 30 provided in this embodiment includes a processor 301 and a memory 302.
  • the controller 30 can also include a transmitter 303, a receiver 304. Transmitter 303 and receiver 304 can be coupled to processor 301.
  • the transmitter 303 is configured to transmit data or information
  • the receiver 304 is configured to receive data or information
  • the memory 302 stores execution instructions.
  • the processor 301 and the storage The processor 302 calls the execution instruction in the memory 302 to execute the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of Embodiment 2 of a service forwarding device according to the present invention.
  • the service forwarding device 40 provided in this embodiment includes a processor 401 and a memory 402.
  • the service forwarding base station device 40 may also include a transmitter 403 and a receiver 404. Transmitter 403 and receiver 404 can be coupled to processor 401.
  • the transmitter 403 is configured to send data or information
  • the receiver 404 is configured to receive data or information
  • the memory 402 stores execution instructions.
  • the processor 401 communicates with the memory 402, and the processor 401 calls
  • the execution instructions in the memory 402 are used to perform the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the method of various embodiments of the present invention. Partially. And the foregoing
  • the storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code.

Abstract

Embodiments of the present invention provide a service flow processing method, apparatus and device. In the embodiments of the present invention, SFs are classified, and specific instances are not selected for stateless SFs, and therefore the number of SFPs and the number of SFP IDs used for uniquely identifying the SFPs can be effectively reduced, and signaling overheads required when a controller configures SFPs for the SFFs are reduced, and further, storage space for storing the configuration information by the SFFs is saved.

Description

业务流的处理方法、 装置及设备  Service flow processing method, device and device
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种业务流的处理方法、 装 置及设备。 背景技术  The embodiments of the present invention relate to communication technologies, and in particular, to a method, device, and device for processing a service flow. Background technique
运营商网络中通常会部署各种能够对网络业务流进行处理的网络业 务功能 (Service Function, 简称 SF) , 例如 TCP加速器、 防火墙、 视 频加速器等, 这些 SF被运营商部署在网络中固定位置 (静态的部署在网 络拓扑中的某个位置) , 当网络业务流流经网络时会根据运营商配置而依 次经过网络中的 SF。 采用上述静态的方式进行部署网络中各个 SF时, 当 SF 部署完成后, 其所在的网络位置就不会发生改变, 这样会导致所有的 网络业务流无论需要进行何种处理均需要一次性经过网络中所有的 SF, 并且其处理顺序唯一,无法满足网络业务流需要经过不同顺序 SF的功能, 针对上述问题, 网络标准化组织提出了业务功能链 (Service Function Chain, 简称 SFC) 的概念。  The service network (Service Function, SF for short), such as TCP accelerators, firewalls, and video accelerators, is deployed in the carrier network. These SFs are deployed by operators in fixed locations on the network. Statically deployed in a certain location in the network topology. When the network traffic flows through the network, it will pass through the SFs in the network according to the carrier configuration. When the SF is deployed in the static mode, the network location of the SF will not change after the SF is deployed. This will cause all network traffic to be processed through the network at any time. All the SFs, and their processing order is unique, can not meet the needs of the network service flow through different order SF. In response to the above problems, the network standardization organization proposed the concept of Service Function Chain (SFC).
现有网络实现 SFC功能的架构中, 主要的功能实体包括: SFC控制器 ( SFC Control ler ) , 各种 SF实例 sf (即 SF的一个具体实例, 例如一 个具体的防火墙设备 sf l ) , 分类器 (Classif ier ) , 业务转发设备以及 底层网络转发设备 (例如层三路由器、 层二交换机) 。 当 SFC Control ler 接收到业务链服务请求消息 (service chain request ) 之后, 如果存在 一个 SFC的具体实例 SFP可以使用, 并且该 SFP包括了提供 SFC功能的具 体的各个 sf, 且各 sf 负载低, 则 SFC Control ler选择该 SFP为请求的 网络业务流提供网络服务, 此时 SFC Control ler需要将请求消息中的匹 配规则 (match rule ) 添加到分类器中 SFP ID所对应的匹配规则中, SFC Control ler 也可以根据业务链请求消息中所请求的 SF来选取相应的 SF 实例, 然后生成新的 SFP并为其分配一个新的 SFP ID , 在选取 SF实例的 过程中, 如果同一个 SF存在多个可用实例, 则 SFC Control ler 从多个 SF实例中选择负载低的 SF实例。 In the architecture of the existing network to implement the SFC function, the main functional entities include: SFC controller (SFC Controller), various SF instances sf (ie, a specific instance of SF, such as a specific firewall device sf l), classifier (Classif ier), service forwarding device and underlying network forwarding device (such as layer three router, layer two switch). After the SFC Controller receives the service chain request message, if there is a specific instance SFP of the SFC, and the SFP includes the specific sfs that provide the SFC function, and the sf load is low, then The SFC Control Manager selects the SFP to provide network services for the requested network service flow. The SFC Control Manager needs to add the match rule in the request message to the matching rule corresponding to the SFP ID in the classifier. SFC Control ler The SF instance may be selected according to the SF requested in the service chain request message, and then a new SFP is generated and assigned a new SFP ID. In the process of selecting the SF instance, if multiple SFs exist, the same SF exists. Instance, then SFC Control ler from multiple Select the SF instance with low load in the SF instance.
由于在实际的网络部署中,可能会为一个 SF部署多个具体的实例 sf, 按照现有的技术方案, 为实现负载均衡, SFC Control ler会选择某个 SF 所对应的任何一个 sf,若存在大量的 sf 则会导致大量 SFP的存在,此时, SFC Control ler要负责为每个 SFP分配唯一 SFP ID , 相应的业务转发设 备 SFF需要存储每个 SFP ID所对应的转发条目, 这就造成需要大量的信 令来将这些 SFP信息配置到 SFF上, 所需的信令开销大, 相应的 SFF需要 维护的转发条目多, 需要的存储空间大, 转发效率低。 发明内容 本发明实施例提供一种业务流的处理方法、 装置及设备, 以解决现 有技术中 SFC控制器在向 SFF配置 SFP信息过程中, 所需信令开销大, 相 应地, SFF需要维护的转发条目多的问题。  In actual network deployment, multiple sfs may be deployed for an SF. According to the existing technical solution, the SFC Control Manager selects any sf corresponding to an SF. A large number of sfs will result in the existence of a large number of SFPs. In this case, the SFC Controller is responsible for assigning a unique SFP ID to each SFP. The corresponding service forwarding device SFF needs to store the forwarding entries corresponding to each SFP ID. A large amount of signaling is used to configure the SFP information on the SFF. The required signaling overhead is large. The corresponding SFF needs to maintain more forwarding entries, requires more storage space, and has lower forwarding efficiency. SUMMARY OF THE INVENTION The embodiments of the present invention provide a method, a device, and a device for processing a service flow, so as to solve the problem that the SFC controller needs to maintain the SFP information in the SFF in the prior art, and accordingly, the SFF needs to be maintained. The problem of forwarding more entries.
第一方面, 本发明实施例提供一种业务流的处理方法, 包括: 接收针对一业务流的业务链服务请求消息, 所述业务链服务请求消 息包括与所述业务流对应的匹配规则, 以及所述业务流需要的业务链 In a first aspect, an embodiment of the present invention provides a service flow processing method, including: receiving a service chain service request message for a service flow, where the service chain service request message includes a matching rule corresponding to the service flow, and The business chain required by the business flow
SFC , 所述业务链中包括依序排列的多个网络业务功能 SF; SFC, the service chain includes a plurality of network service functions SF arranged in sequence;
根据所述多个 SF分别生成对应的、 用于形成与所述 SFC对应的业务 链实例 SFP的 SFP元素, 并为生成的所述 SFP分配对应的标识 SFP ID; 其 中, 若判断获知所述多个 SF中包括无状态 SF, 则所述无状态 SF对应的 Generating, according to the plurality of SFs, a corresponding SFP element for forming a service chain instance SFP corresponding to the SFC, and assigning a corresponding identifier SFP ID to the generated SFP; SF includes a stateless SF, and the stateless SF corresponds to
SFP元素为业务功能类型的元素; The SFP element is an element of the business function type;
将所述 SFP 以及所述 SFP ID发送给各业务转发设备 SFF, 以供所述 Sending the SFP and the SFP ID to each service forwarding device SFF for the
SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理; 其中所述The SFF processes the service flow including the SFP ID according to the SFP element;
SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理包括: 所述 SFF为属于业务功能类型的 SFP元素选择一个网络业务功能实例来处理所 述业务流。 The SFF processing the service flow including the SFP ID according to the SFP element includes: the SFF selecting a network service function instance for the SFP element belonging to the service function type to process the service flow.
结合第一方面, 在第一方面的第一种可能实现的方式中, 所述根据 所述多个 SF分别生成对应的、 用于形成与所述 SFC对应的业务链实例 SFP 的 SFP元素, 还包括:  With reference to the first aspect, in a first possible implementation manner of the first aspect, the generating, by the multiple SFs, a corresponding SFP element for forming a service chain instance SFP corresponding to the SFC, Includes:
若判断获知所述多个 SF中包括有状态 SF, 则选择一网络业务功能实 例作为所述有状态 SF所对应的 SFP元素。 If it is determined that the plurality of SFs include the state SF, selecting a network service function An example is the SFP element corresponding to the stateful SF.
结合第一方面的第一种可能实现的方式, 在第一方面的第二种可能 的实现方式中, 所述 SFF根据所述 SFP元素对包括有所述 SFP ID的业务 流进行处理, 还包括:  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the SFF processes, according to the SFP element, a service flow that includes the SFP ID, and includes :
所述 SFF将所述业务流发送到 SFP元素所对应的网络业务功能实例进 行处理。  The SFF sends the service flow to the network service function instance corresponding to the SFP element for processing.
结合第一方面第一种或者第二种可能的实现方式, 在第一方面的第 三种可能实现的方式中, 所述选择一网络业务功能实例作为所述有状态 SF所对应的 SFP元素, 包括:  In conjunction with the first or second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the selecting a network service function instance is the SFP element corresponding to the stateful SF, Includes:
选择一个负载满足预设条件的网络业务功能实例作为所述有状态 SF 所对应的 SFP元素。  Select a network service function instance whose load meets the preset condition as the SFP element corresponding to the stateful SF.
结合第一方面, 在第一方面的第四种可能的实现方式中, 所述 SFF为 属于业务功能类型的 SFP元素选择一个网络业务功能实例来处理所述业务 流, 包括:  With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the SFF selects a network service function instance for the SFP element that belongs to the service function type to process the service flow, including:
所述 SFF为属于业务功能类型的 SFP元素选择一个负载满足预设条件 的网络业务功能实例来处理所述业务流。  The SFF selects a network service function instance whose load satisfies a preset condition for the SFP element belonging to the service function type to process the service flow.
结合第一方面的第四种可能的实现方式, 在第一方面的第五种可能 的实现方式中, 所述 SFF为属于业务功能类型的 SFP元素选择一个负载满 足预设条件的网络业务功能实例来处理所述业务流, 包括:  With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the SFF selects, for an SFP element that belongs to a service function type, a network service function instance that meets a preset condition To process the service flow, including:
在属于业务功能类型的 SFP 元素对应各网络业务功能实例中, 所述 In the network service function instance corresponding to the SFP element belonging to the service function type,
SFF为属于业务功能类型的 SFP元素选择一个负载满足预设条件的网络业 务功能实例来处理所述业务流。 The SFF selects a network service function instance whose load satisfies a preset condition for the SFP element belonging to the service function type to process the service flow.
结合第一方面的第五种可能的实现方式, 在第一方面的第六种可能 的实现方式中, 所述 SFF为属于业务功能类型的 SFP元素选择一个负载满 足预设条件的网络业务功能实例来处理所述业务流, 还包括:  With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the SFF selects, for an SFP element that belongs to a service function type, a network service function instance that meets a preset condition To process the service flow, the method further includes:
在与所述 SFF直接相连的属于业务功能类型的 SFP元素对应的各网络 业务功能实例中, 所述 SFF为属于业务功能类型的 SFP元素选择一个负载 满足预设条件的网络业务功能实例来处理所述业务流。  In the network service function instance corresponding to the service element type SFP element that is directly connected to the SFF, the SFF selects a network service function instance that meets a preset condition for the SFP element belonging to the service function type to process the The business flow.
结合第一方面的第三种至第六种任一种可能的实现方式, 在第一方 面的第七种可能的实现方式中, 所述选择一个负载满足预设条件的网络 业务功能实例具体为: With reference to the third to sixth possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the selecting a network that meets a preset condition The business function example is specifically as follows:
选择一个负载小于一阈值的网络业务功能实例; 或  Select an instance of the network service function with a load less than a threshold; or
选择一个负载满足一业务需求的网络业务功能实例。  Select a network service function instance that meets a business requirement.
第二方面, 本发明实施例提供一种业务流的处理方法, 包括: 接收控制器发送的业务链实例 SFP和对应的标识 SFP ID, 其中, 所述 In a second aspect, the embodiment of the present invention provides a service flow processing method, including: receiving a service chain instance SFP and a corresponding identifier SFP ID sent by a controller, where
SFP是由所述控制器根据业务流需要的业务链 SFC生成的, 并由所述控制 器为生成的所述 SFP分配对应的标识 SFP ID , 所述 SFP 中包括多个 SFP 元素, 所述 SFP元素为所述控制器根据所述 SFC中包括的依序排列的多个 网络业务功能 SF分别生成的; The SFP is generated by the controller according to the service chain SFC required by the service flow, and the controller allocates a corresponding identifier SFP ID to the generated SFP, where the SFP includes multiple SFP elements, and the SFP The element is generated by the controller according to a plurality of network service functions SF sequentially arranged in the SFC;
根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理; 其中, 所述根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理包括: 为 属于业务功能类型的 SFP元素选择一个网络业务功能实例来处理所述业务 流。  Processing the service flow including the SFP ID according to the SFP element; wherein, the processing, by the SFP element, the service flow including the SFP ID includes: selecting, for the SFP element belonging to the service function type An instance of a network service function to process the traffic flow.
结合第二方面, 在第二方面的第一种可能的实现方式中, 所述根据 所述 SFP元素对包括有所述 SFP ID的业务流进行处理, 还包括:  With reference to the second aspect, in a first possible implementation manner of the second aspect, the processing, by the SFP element, the service flow that includes the SFP ID, further includes:
将所述业务流发送到 SFP元素所对应的网络业务功能实例进行处理。 结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能 的实现方式中, 所述为属于业务功能类型的 SFP元素选择一个网络业务功 能实例来处理所述业务流, 包括:  The service flow is sent to the network service function instance corresponding to the SFP element for processing. With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the selecting, by the SFP element belonging to the service function type, a network service function instance to process the service flow, Includes:
为属于业务功能类型的 SFP元素选择一个负载满足预设条件的网络业 务功能实例来处理所述业务流。  A traffic service function instance that satisfies a preset condition is selected for an SFP element belonging to a service function type to process the service flow.
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能 的实现方式中, 所述为属于业务功能类型的 SFP元素选择一个负载满足预 设条件的网络业务功能实例来处理所述业务流, 包括:  With the second possible implementation of the second aspect, in a third possible implementation manner of the second aspect, the SFP element that belongs to the service function type selects a network service function instance that meets a preset condition. Processing the service flow, including:
在属于业务功能类型的 SFP元素对应各网络业务功能实例中, 为属于 业务功能类型的 SFP元素选择一个负载满足预设条件的网络业务功能实例 来处理所述业务流。  In the network service function instance corresponding to the service function type, the SFP element belonging to the service function type selects a network service function instance whose load meets the preset condition to process the service flow.
结合第二方面的第二种或者第三种可能的实现方式, 在第二方面的 第四种可能的实现方式中, 所述选择一个负载满足预设条件的网络业务 功能实例具体为: 选择一个负载小于一阈值的网络业务功能实例; 或 With reference to the second or the third possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, the example of selecting a network service function that meets a preset condition is: Select an instance of the network service function with a load less than a threshold; or
选择一个负载满足一业务需求的网络业务功能实例。  Select a network service function instance that meets a business requirement.
第三方面, 本发明实施例提供一种控制器, 包括:  In a third aspect, an embodiment of the present invention provides a controller, including:
接收模块, 用于接收针对一业务流的业务链服务请求消息, 所述业 务链服务请求消息包括与所述业务流对应的匹配规则, 以及所述业务流 需要的业务链 SFC , 所述业务链中包括依序排列的多个网络业务功能 SF; 处理模块, 用于根据所述多个 SF分别生成对应的、 用于形成与所述 SFC对应的业务链实例 SFP的 SFP元素, 并为生成的所述 SFP分配对应的 标识 SFP ID; 其中, 若判断获知所述多个 SF中包括无状态 SF, 则所述无 状态 SF对应的 SFP元素为业务功能类型的元素;  a receiving module, configured to receive a service chain service request message for a service flow, where the service chain service request message includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, the service chain The method includes: a plurality of network service functions SF arranged in sequence; and a processing module, configured to generate, according to the plurality of SFs, corresponding SFP elements for forming a service chain instance SFP corresponding to the SFC, and generate the generated The SFP allocates a corresponding identifier SFP ID; wherein, if it is determined that the plurality of SFs include a stateless SF, the SFP element corresponding to the stateless SF is an element of a service function type;
发送模块, 用于将所述 SFP以及所述 SFP ID发送给各业务转发设备 SFF, 以供所述 SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进行 处理; 其中所述 SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进 行处理包括: 所述 SFF为属于业务功能类型的 SFP元素选择一个网络业务 功能实例来处理所述业务流。  a sending module, configured to send the SFP and the SFP ID to each service forwarding device SFF, where the SFF processes the service flow including the SFP ID according to the SFP element; The SFP element processing the service flow including the SFP ID includes: the SFF selecting a network service function instance for the SFP element belonging to the service function type to process the service flow.
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述处理 模块还用于:  In conjunction with the third aspect, in a first possible implementation manner of the third aspect, the processing module is further configured to:
若判断获知所述多个 SF中包括有状态 SF, 则选择一网络业务功能实 例作为所述有状态 SF所对应的 SFP元素。  If it is determined that the plurality of SFs include the state SF, a network service function instance is selected as the SFP element corresponding to the stateful SF.
结合第三方面的第一种可能的实现方式, 在第三方面的第二种可能 的实现方式中, 所述选择一网络业务功能实例作为所述有状态 SF所对应 的 SFP元素, 包括:  With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the selecting a network service function instance as the SFP element corresponding to the stateful SF includes:
选择一个负载满足预设条件的网络业务功能实例作为所述有状态 SF 所对应的 SFP元素。  Select a network service function instance whose load meets the preset condition as the SFP element corresponding to the stateful SF.
结合第三方面的第二种可能的实现方式, 在第三方面的第三种可能 的实现方式中, 所述选择一个负载满足预设条件的网络业务功能实例具 体为:  With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the selecting a network service function instance in which a load meets a preset condition is:
选择一个负载小于一阈值的网络业务功能实例; 或  Select an instance of the network service function with a load less than a threshold; or
选择一个负载满足一业务需求的网络业务功能实例。  Select a network service function instance that meets a business requirement.
第四方面, 本发明实施例提供一种业务转发设备, 包括: 接收模块, 用于接收控制器发送的业务链实例 SFP和对应的标识 SFP ID, 其中, 所述 SFP 是由所述控制器根据业务流需要的业务链 SFC 生成 的, 并由所述控制器为生成的所述 SFP分配对应的标识 SFP ID, 所述 SFP 中包括多个 SFP元素, 所述 SFP元素为所述控制器根据所述 SFC中包括的 依序排列的多个网络业务功能 SF分别生成的; A fourth aspect of the present invention provides a service forwarding device, including: a receiving module, configured to receive a service chain instance SFP and a corresponding identifier SFP ID sent by the controller, where the SFP is generated by the controller according to a service chain SFC required by the service flow, and configured by the controller And generating, by the SFP, a corresponding SFP ID, where the SFP includes a plurality of SFP elements, where the SFP element is generated by the controller according to the plurality of network service functions SF sequentially arranged in the SFC. of;
处理模块, 用于根据所述 SFP元素对包括有所述 SFP ID的业务流进 行处理; 其中, 所述根据所述 SFP元素对所述业务流进行处理包括: 为属 于业务功能类型的 SFP 元素选择一个网络业务功能实例来处理所述业务 流。  a processing module, configured to process, according to the SFP element, a service flow that includes the SFP ID, where the processing, according to the SFP element, processing the service flow, includes: selecting, for an SFP element that belongs to a service function type An instance of a network service function to process the traffic flow.
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述处理 模块还用于:  In conjunction with the fourth aspect, in a first possible implementation manner of the fourth aspect, the processing module is further configured to:
将所述业务流发送到 SFP元素所对应的网络业务功能实例进行处理。 结合第四方面的第一种可能的实现方式, 在第四方面的第二种可能 的实现方式中, 所述处理模块具体用于:  The service flow is sent to the network service function instance corresponding to the SFP element for processing. In conjunction with the first possible implementation of the fourth aspect, in a second possible implementation manner of the fourth aspect, the processing module is specifically configured to:
为属于业务功能类型的 SFP元素选择一个负载满足预设条件的网络业 务功能实例来处理所述业务流。  A traffic service function instance that satisfies a preset condition is selected for an SFP element belonging to a service function type to process the service flow.
结合第四方面的第二种可能的实现方式, 在第四方面的第三种可能 的实现方式中, 所述处理模块具体用于:  In conjunction with the second possible implementation of the fourth aspect, in a third possible implementation manner of the fourth aspect, the processing module is specifically configured to:
在属于业务功能类型的 SFP元素对应各网络业务功能实例中, 为属于 业务功能类型的 SFP元素选择一个负载满足预设条件的网络业务功能实例 来处理所述业务流。  In the network service function instance corresponding to the service function type, the SFP element belonging to the service function type selects a network service function instance whose load meets the preset condition to process the service flow.
结合第四方面的第二种或者第三种可能的实现方式, 在第四方面的 第四中可能的实现方式中, 所述选择一个负载满足预设条件的网络业务 功能实例具体为:  With reference to the second or third possible implementation manner of the fourth aspect, in a possible implementation manner of the fourth aspect, the network service function instance that selects a load that meets a preset condition is specifically:
选择一个负载小于一阈值的网络业务功能实例; 或  Select an instance of the network service function with a load less than a threshold; or
选择一个负载满足一业务需求的网络业务功能实例。  Select a network service function instance that meets a business requirement.
第五方面, 本发明实施例提供一种控制器, 包括:  In a fifth aspect, an embodiment of the present invention provides a controller, including:
处理器和存储器, 所述存储器存储执行指令, 当所述控制器运行 时, 所述处理器与所述存储器之间通信, 所述处理器执行所述执行指令 使得所述控制器执行如第一方面中任一项所述的方法。 第六方面, 本发明实施例提供一种业务转发设备, 包括: 处理器和存储器, 所述存储器存储执行指令, 当所述业务转发设备 运行时, 所述处理器与所述存储器之间通信, 所述处理器执行所述执行 指令使得所述业务转发设备执行如第二方面中任一项所述的方法。 a processor and a memory, the memory storing execution instructions, when the controller is running, the processor is in communication with the memory, the processor executing the execution instruction such that the controller performs as the first The method of any of the aspects. According to a sixth aspect, an embodiment of the present invention provides a service forwarding device, including: a processor and a memory, where the memory stores an execution instruction, and when the service forwarding device is running, the processor communicates with the memory, The processor executing the execution instructions causes the service forwarding device to perform the method of any of the second aspects.
本发明实施例业务流的处理方法、 装置及设备, 通过对 SF 进行划 分, 在控制器根据业务链服务请求消息生成业务链实例 SFP过程中, 对于 无状态 SF, 控制器不为该 SF选取具体的 SF实例, 而将其对应的 SFP元素 设置为业务功能类型的元素, 该业务功能类型包括多个具有相同功能和 配置的 SF实例, 控制器将 SFP和 SFP ID发送给各 SFF, 以供 SFF根据 SFP 元素对包括有 SFP ID的业务流进行处理, 由 SFF为属于业务功能类型的 SFP元素选择一个具体 SF实例来处理业务流, 从而可以有效减少 SFP和用 于唯一标识 SFP的 SFP ID的数量, 并且减少了控制器为 SFF配置 SFP所 需的信令开销, 进而节省了各 SFF存储该配置信息的存储空间。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将 对实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易 见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术 人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得 其他的附图。  In the process, the device, the device and the device for processing the service flow, the SF is divided, and in the process of generating the service chain instance SFP according to the service chain service request message, the controller does not select the specific SF for the SF. SF instance, and set its corresponding SFP element as an element of the service function type, the service function type includes multiple SF instances with the same function and configuration, and the controller sends the SFP and SFP ID to each SFF for SFF According to the SFP element, the service flow including the SFP ID is processed, and the SFF selects a specific SF instance for the SFP element belonging to the service function type to process the service flow, thereby effectively reducing the number of SFPs and SFP IDs for uniquely identifying the SFP. And reducing the signaling overhead required by the controller to configure the SFP for the SFF, thereby saving the storage space for each SFF to store the configuration information. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明业务流的处理方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a method for processing a service flow according to the present invention;
图 2为本发明业务流的处理方法实施例二的流程图;  2 is a flowchart of Embodiment 2 of a method for processing a service flow according to the present invention;
图 3为本发明实现业务功能链功能的网络架构图;  3 is a network architecture diagram of a service function chain function implemented by the present invention;
图 4为本发明业务流的处理方法实施例三的信令流程图;  4 is a signaling flowchart of Embodiment 3 of a method for processing a service flow according to the present invention;
图 5为本发明业务流的处理方法中 SFC 控制器生成 SFP的流程图; 图 6为本发明业务流处理方法各 SFF与 SF实例的连接举例示意图; 图 7为本发明控制器实施例一的结构示意图;  FIG. 5 is a flowchart of an SFP controller generating an SFP in a service flow processing method according to the present invention; FIG. 6 is a schematic diagram of a connection between each SFF and an SF instance in a service flow processing method according to the present invention; Schematic;
图 8为本发明业务转发设备实施例一的结构示意图;  8 is a schematic structural diagram of Embodiment 1 of a service forwarding device according to the present invention;
图 9为本发明控制器实施例二的结构示意图;  9 is a schematic structural diagram of Embodiment 2 of a controller according to the present invention;
图 10为本发明业务转发设备实施例二的结构示意图。 具体实施方式 FIG. 10 is a schematic structural diagram of Embodiment 2 of a service forwarding device according to the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例所涉及的网络业务功能 (Service Function, 简称 SF) 指能够对业务流进行处理的网络功能, 例如, 网络地址转换设备 ( Network Address Translation, 简称 NAT) 、 防火墙、 TCP力口速器等。 各网络业务功能 SF可以有一个或者多个具体的网络业务功能实例 sf, 例 如一个具体的防火墙设备。  A network service function (SF) refers to a network function capable of processing a service flow, for example, a network address translation device (NAT), a firewall, and a TCP power port rater. Wait. Each network service function SF can have one or more specific network service function instances sf, such as a specific firewall device.
本发明实施例所涉及的业务链是业务功能链 (Service Function Chain, 简称 SFC) 的简称, 其将多个网络业务功能 SF按照一定顺序连接 在一起就形成一个业务链, SFC中的网络业务功能 SF按照各 SF在 SFC中 的先后顺序, 依次对业务流进行处理。 例如, 一 SFC为 TCP加速器→防火 墙一网络地址转换设备 (NAT) , 即业务流需要先经过 TCP加速器的处理 后, 经过防火墙处理, 最后经过 NAT处理。  The service chain of the embodiment of the present invention is an abbreviation of a service function chain (SFC), which connects multiple network service functions SF in a certain order to form a service chain, and network service functions in the SFC. The SF processes the service flows in turn according to the order of the SFs in the SFC. For example, an SFC is a TCP accelerator → a firewall-network address translation device (NAT), that is, a service flow needs to be processed by a TCP accelerator, processed by a firewall, and finally processed by NAT.
本发明实施例所涉及的业务链实例 (Service Function Path, 简称 SFP)是 SFC的一个具体实例, 其中包括了 SFC中各 SF的具体网络业务功 能实例 sf, 由各 SF对应的 sf按照各 SF在 SFC中的顺序组成, 例如, TCP 加速器对应的 sf为 sfl, 防火墙对应的 sf为 sf2, NAT对应的 sf为 sf2, 则上述 SFC的具体实例 SFP为 sf I→sf2→sf3。  A Service Function Path (SFP) in the embodiment of the present invention is a specific example of an SFC, and includes a specific network service function instance sf of each SF in the SFC, and the SF corresponding to each SF is in accordance with each SF. The sequence of the SFC is composed of, for example, the sf corresponding to the TCP accelerator is sfl, the sf corresponding to the firewall is sf2, and the sf corresponding to the NAT is sf2, and the specific instance SFP of the SFC is sf I→sf2→sf3.
本发明实施例所涉及的 SFP ID ( SFP IDentifier ) 为用于唯一标识一 个 SFP的标识, 每一个 SFP都会有一个与之对应的 SFP ID对其进行标识。  The SFP ID (SFP IDentifier) in the embodiment of the present invention is used to uniquely identify an SFP identifier, and each SFP has a corresponding SFP ID to identify it.
本发明实施例所涉及的业务转发设备 ( Service Function Forwarder, 简称 SFF) , 其负责根据 SFP ID将业务流转发到与该 SFP ID 对应的 SFP 中包括的各 sf 上, 由各 sf 对业务流进行处理, 其中, 一个 SFF可以连接多个 sf。  The Service Function Forwarder (SFF) is used to forward the service flow to each sf included in the SFP corresponding to the SFP ID according to the SFP ID, and the service flow is performed by each sf. Processing, wherein one SFF can connect multiple sfs.
本发明实施例所述涉及的控制器为 SFC 控制器, 其负责业务链的生 成, 对 SFF进行配置, 以及相关的管理。 The controller involved in the embodiment of the present invention is an SFC controller, which is responsible for the business chain. Cheng, configure SFF, and related management.
本发明各实施例中将网络业务功能 SF分为两种类型, (1 )有状态 SF ( stateful SF) , ( 2 ) 无状态 SF ( stateless SF) 。  In various embodiments of the present invention, the network service function SF is divided into two types, (1) stateful SF, and (2) stateless SF.
具体地, 有状态 SF ( stateful SF) 为在对业务流进行处理的过程中 会保存业务流的状态信息或者上下文信息的网络业务功能, 举例而言, NAT设备在将业务流的私网 IPv4值转换为公网 IPv4地址时, 会保存私网 IPv4地址与公网 IPv4地址之间的映射关系, 以便之后在将返回的业务流 的公网 IPv4地址转换为对应的私网 IPv4地址, 即 NAT设备为有状态 SF。 防火墙也可以分为有状态 SF, 具体地, 防火墙中通常为所检测的业务流 维护一个上下文信息, 这样进行入侵检测时, 对业务流的多个数据包进 行检测根据其上下文信息断定业务流是否可信, 即防火墙设备中维护有 业务流的状态信息。 因此, 在本发明中将业务流的数据包经过一 SF对应 的实例 sf后, 该 sf要求该业务流的后续数据包也要经过该 sf, 将具有此 种特性的网络业务功能实例 sf 所属网络业务功能 SF定义为有状态 SF。  Specifically, a stateful SF is a network service function that stores state information or context information of a service flow in a process of processing a service flow. For example, the NAT device is in a private network IPv4 value of the service flow. When the IPv4 address is converted to the public network, the mapping between the private network IPv4 address and the public network IPv4 address is saved, so that the public network IPv4 address of the returned service flow is converted to the corresponding private network IPv4 address, that is, the NAT device. For stateful SF. The firewall can also be classified into a stateful SF. Specifically, the firewall generally maintains a context information for the detected service flow. When performing intrusion detection, the multiple packets of the service flow are detected according to the context information to determine whether the service flow is determined. Trusted, that is, the state information of the service flow is maintained in the firewall device. Therefore, in the present invention, after the data packet of the service flow passes through the instance sf corresponding to the SF, the sf requires that the subsequent data packet of the service flow also passes through the sf, and the network service function instance sf having the characteristic belongs to the network. The business function SF is defined as a stateful SF.
无状态 SF ( stateless SF) 为在对业务流进行处理的过程中不会保存 业务流的状态信息或者上下文信息的网络业务功能, 例如, 利用端口号 执行简单包过滤功能的设备。 因此, 在本发明中将业务流的数据包经过 一 SF对应的实例 sf后, 并不要求改业务流的后续数据包也要经过该 sf, 将具有此种特性的网络业务功能实例 sf所属网络业务功能 SF定义为无状 态 SF。  Stateless SF (Networkless SF) is a network service function that does not store state information or context information of a service flow during processing of a service flow, for example, a device that performs a simple packet filtering function using a port number. Therefore, in the present invention, after the data packet of the service flow passes through the instance sf corresponding to the SF, the subsequent data packet of the service flow is not required to pass through the sf, and the network service function instance sf having the characteristic belongs to the network. The business function SF is defined as a stateless SF.
图 1为本发明业务流的处理方法实施例一的流程图, 本实施例的执行 主体为控制器, 具体可以为 SFC控制器, 如图 1所示, 本实施例的方法可 以包括:  1 is a flowchart of a first embodiment of a method for processing a service flow according to the present invention. The main body of the embodiment is a controller, which may be an SFC controller. As shown in FIG. 1, the method in this embodiment may include:
歩骤 101、 接收针对一业务流的业务链服务请求消息, 业务链服务请 求消息包括与业务流对应的匹配规则, 以及业务流需要的业务链 SFC, 业 务链中包括依序排列的多个网络业务功能 SF。  Step 101: Receive a service chain service request message for a service flow, where the service chain service request message includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, where the service chain includes multiple networks arranged in sequence Business function SF.
其中, 业务链服务请求消息包括的与业务流对应的匹配规则, 该匹 配规则具体可以为五元组信息, 即业务流的源 IP地址, 源端口, 目的 IP 地址, 目的端口和传输层协议号。  The service chain service request message includes a matching rule corresponding to the service flow, and the matching rule may be a quintuple information, that is, a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol number of the service flow. .
歩骤 102、 根据多个 SF分别生成对应的、 用于形成与 SFC对应的业务 链实例 SFP的 SFP元素, 并为生成的 SFP分配对应的标识 SFP ID ; 其中, 若判断获知多个 SF中包括无状态 SF, 则无状态 SF对应的 SFP元素为业务 功能类型的元素。 Step 102: Generate corresponding services for forming an SFC corresponding to each of the multiple SFs The SFP element of the SFP is chained, and the corresponding SFP ID is assigned to the generated SFP. If it is determined that the plurality of SFs include the stateless SF, the SFP element corresponding to the stateless SF is an element of the service function type.
具体地, 根据业务流的业务链服务请求消息中的业务流需要的 SFC , 生成具体的业务链实例 SFP , SFP中包含多个与 SFC中的 SF相对应的 SFP 元素, 若判断获知 SF中包括无状态 SF, 则选择业务功能类型的元素为该 无状态 SF对应的 SFP元素, 其中, 业务功能类型可以为包含多个 SF实例 具有相同功能和配置, 这些 SF实例能够为业务流提供相同的服务, 即当 判断获知 SFC中的 SF包括无状态 SF, 则只需要指示该业务流需要经过的 业务功能类型, 并不需要指定具体要经过的 SF实例。  Specifically, according to the SFC required by the service flow in the service chain service request message of the service flow, a specific service chain instance SFP is generated, and the SFP includes multiple SFP elements corresponding to the SF in the SFC, and if the judgment is included in the SF, The stateless SF, the element of the service function type is selected as the SFP element corresponding to the stateless SF, where the service function type may have the same function and configuration for including multiple SF instances, and the SF instances can provide the same service for the service flow. That is, when it is determined that the SF in the SFC includes the stateless SF, it only needs to indicate the type of service function that the service flow needs to pass, and does not need to specify the SF instance to be specifically passed.
歩骤 103、 将 SFP以及 SFP ID发送给各业务转发设备 SFF , 以供 SFF 根据 SFP元素对包括有 SFP ID的业务流进行处理。  Step 103: Send the SFP and the SFP ID to each service forwarding device SFF, so that the SFF processes the service flow including the SFP ID according to the SFP element.
其中 SFF根据 SFP元素对包括有 SFP ID的业务流进行处理可以包括: SFF为属于业务功能类型的 SFP元素选择一个网络业务功能实例来处理业 务流。  The SFF processing the service flow including the SFP ID according to the SFP element may include: SFF selects a network service function instance for the SFP element belonging to the service function type to process the service flow.
具体地, 将 SFP 以及与该 SFP对应的 SFP ID发送给各 SFF , 各 SFF 对其自身维护的业务转发表进行更新。  Specifically, the SFP and the SFP ID corresponding to the SFP are sent to each SFF, and each SFF updates the service forwarding table maintained by itself.
可选地, 在歩骤 102中, 根据多个 SF分别生成对应的、 用于形成与 SFC对应的业务链实例 SFP的 SFP元素过程中, 若判断获知多个 SF中包括 有状态 SF, 则选择一网络业务功能实例作为有状态 SF所对应的 SFP 元 素, 即直接选择该 SF中的一个具体的网络业务功能实例 sf作为其对应的 SFP元素。  Optionally, in step 102, the SFP element corresponding to the service chain instance SFP corresponding to the SFC is generated according to the multiple SFs, and if it is determined that the plurality of SFs include the status SF, the method is selected. A network service function instance is used as the SFP element corresponding to the stateful SF, that is, a specific network service function instance sf in the SF is directly selected as its corresponding SFP element.
进一歩地, 在歩骤 103中, SFF根据 SFP元素对包括有 SFP ID的业务 流进行处理, 还可以为: SFF将业务流发送到 SFP元素所对应的网络业务 功能实例进行处理。 即 SFP元素为一网络业务功能实例时, SFF直接将业 务流发送到该网络业务功能实例, 由该网络业务功能实例对该业务流进 行处理。  Further, in step 103, the SFF processes the service flow including the SFP ID according to the SFP element, and may also be: SFF sends the service flow to the network service function instance corresponding to the SFP element for processing. That is, when the SFP element is a network service function instance, the SFF directly sends the service flow to the network service function instance, and the service flow is processed by the network service function instance.
在上述歩骤中, 选择一网络业务功能实例作为有状态 SF 所对应的 SFP元素, 可以为根据各网络业务功能实例的负载信息, 选择一负载满足 预设条件的网络业务功能实例作为该有状态 SF所对应的 SFP元素, 该预 设条件可以为负载小于一阈值, 也可以为负载满足一业务需求, 这里可 以根据需要灵活设置, 一种优选的方式, 可以选择一负载最小的网络业 务功能实例。 In the foregoing step, the network service function instance is selected as the SFP element corresponding to the stateful SF, and the network service function instance that meets the preset condition is selected as the state according to the load information of each network service function instance. SFP element corresponding to SF, the pre- The condition may be that the load is less than a threshold, or the load satisfies a service requirement, and may be flexibly set according to requirements. In a preferred manner, a network service function instance with a minimum load may be selected.
业务流达到 SFF, SFF根据该业务流对应的 SFP中的 SFP元素, 将业 务流通过各 SFF转发到相应的 SFP元素上, 其中, SFF为属于业务功能类 型的 SFP元素选择一个负载满足预设条件的网络业务功能实例来处理该业 务流, 该预设条件可以根据需要灵活设置, 可以为负载小于一阈值, 也 可以为负载满足一业务需求, 优选的可以选择一负载最小的网络业务功 能实例。  The service flow reaches the SFF, and the SFF forwards the service flow to the corresponding SFP element through the SFP element according to the SFP element in the SFP corresponding to the service flow, where the SFF selects a load for the SFP element belonging to the service function type to meet the preset condition. The network service function instance is used to process the service flow. The preset condition can be flexibly set according to requirements. The load may be less than a threshold, or the load may satisfy a service requirement. Preferably, a network service function instance with a minimum load may be selected.
SFF在处理业务流过程中, SFP元素为业务功能类型, 则 SFF在属于 业务功能类型的 SFP元素对应各网络业务功能实例中, 为属于业务功能类 型的 SFP元素选择一个负载满足预设条件的网络业务功能实例来处理业务 流, 即在该属于业务功能类型的 SFP元素对应的所有网络业务功能实例中 根据各网络业务功能实例的负载情况选取一网络业务功能实例。  In the process of processing the service flow, the SFP element is a service function type, and the SFF selects a network whose load meets the preset condition for the SFP element belonging to the service function type in the network service function instance corresponding to the service function type. The service function instance is used to process the service flow, that is, in the network service function instance corresponding to the SFP element of the service function type, a network service function instance is selected according to the load condition of each network service function instance.
可选的, 在属于业务功能类型的 SFP元素对应的所有的网络业务功能 实例中选取的网络业务功能实例未与该 SFF直接相连, 则该 SFF将业务流 转发到与满足预设条件的网络业务功能实例直接相连的 SFF上, SFF在与 其相连的属于业务功能类型的 SFP元素对应的各网络业务功能实例中, 为 属于业务功能类型的 SFP元素选择一个负载满足预设条件的网络业务功能 实例来处理业务流。  Optionally, if the network service function instance selected in the network service function instance corresponding to the SFP element that belongs to the service function type is not directly connected to the SFF, the SFF forwards the service flow to the network service that meets the preset condition. On the SFF where the function instance is directly connected, the SFF selects a network service function instance that meets the preset condition for the SFP element that belongs to the service function type in each network service function instance corresponding to the SFP element that belongs to the service function type. Process business flows.
本实施例, 通过接收针对一业务流的业务链服务请求消息, 该业务 链服务请求消息包括与业务流对应的匹配规则, 以及业务流需要的业务 链 SFC,根据 SFC中的多个 SF分别生成对应的、 用于形成与 SFC对应的业 务链实例 SFP的 SFP元素, 并为生成的 SFP分配对应的标识 SFP ID , 其 中, 若判断获知多个 SF中包括无状态 SF, 则对应的 SFP元素为业务功能 类型的元素, 该业务功能类型包含多个具有相同功能和配置的 SF实例, 即控制器不为该无状态 SF指定具体要经过的 SF实例, 将 SFP和 SFP ID 发送给各 SFF, 以供 SFF根据 SFP元素对包括有 SFP ID的业务流进行处 理, 由 SFF为属于业务功能类型的 SFP元素选择一个具体的 SF实例来处 理业务流, 本实施例的技术方案通过对 SF的划分, 对无状态 SF并不选取 具体实例, 从而可以有效减少 SFP和用于唯一标识 SFP的 SFP ID的数量, 并且减少了控制器为 SFF配置 SFP所需的信令开销, 进而节省了各 SFF存 储该配置信息的存储空间。 In this embodiment, by receiving a service chain service request message for a service flow, the service chain service request message includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, which is respectively generated according to multiple SFs in the SFC. Corresponding SFP element for forming a service chain instance SFP corresponding to the SFC, and assigning a corresponding identifier SFP ID to the generated SFP, wherein if it is determined that the plurality of SFs include the stateless SF, the corresponding SFP element is An element of a service function type, the service function type includes a plurality of SF instances having the same function and configuration, that is, the controller does not specify a specific SF instance to pass through for the stateless SF, and sends the SFP and the SFP ID to each SFF to For the SFF to process the service flow including the SFP ID according to the SFP element, the SFF selects a specific SF instance for the SFP element of the service function type to process the service flow, and the technical solution of the embodiment divides the SF by Stateless SF is not selected As a specific example, the SFP and the number of SFP IDs for uniquely identifying the SFP can be effectively reduced, and the signaling overhead required for the controller to configure the SFP for the SFF is reduced, thereby saving the storage space for each SFF to store the configuration information.
图 2为本发明业务流的处理方法实施例二的流程图, 本实施例的执行 主体为业务转发设备 SFF, 如图 2所示, 本实施例的方法可以包括:  2 is a flowchart of Embodiment 2 of a method for processing a service flow according to the present invention. The executor of this embodiment is a service forwarding device SFF. As shown in FIG. 2, the method in this embodiment may include:
歩骤 201、 接收控制器发送的业务链实例 SFP和对应的标识 SFP ID。 其中, SFP是由控制器根据业务流需要的业务链 SFC生成的, 并由控 制器为生成的 SFP分配对应的标识 SFP ID , SFP中包括多个 SFP元素, SFP 元素为控制器根据 SFC中包括的依序排列的多个网络业务功能 SF分别生 成的。  Step 201: Receive a service chain instance SFP and a corresponding identifier SFP ID sent by the controller. The SFP is generated by the controller according to the service chain SFC required by the service flow, and the controller allocates a corresponding identifier SFP ID for the generated SFP, the SFP includes multiple SFP elements, and the SFP element is included in the SFC according to the controller. The plurality of network service functions SF are sequentially generated.
歩骤 202、 根据 SFP元素对包括有 SFP ID的业务流进行处理; 其中, 根据 SFP元素对包括有所述 SFP ID的业务流进行处理具体可以为: 为属 于业务功能类型的 SFP 元素选择一个网络业务功能实例来处理所述业务 流。  Step 202: Process the service flow including the SFP ID according to the SFP element. The process of processing the service flow including the SFP ID according to the SFP element may be: selecting a network for the SFP element belonging to the service function type. A business function instance to process the business flow.
即 SFP元素为业务功能类型时, SFF为该 SFP元素选择一个网络业务 功能实例, 由该网络功能实例处理该业务流。  That is, when the SFP element is a service function type, the SFF selects a network service function instance for the SFP element, and the network function instance processes the service flow.
可选地, 根据 SFP元素对包括有 SFP ID的业务流进行处理还可以为: 将业务流发送到 SFP元素所对应的网络业务功能实例进行处理, 即 SFP元 素为网络业务功能实例时, SFF直接将业务流发送到该网络业务功能实例 进行处理。  Optionally, the processing of the service flow including the SFP ID according to the SFP element may be: sending the service flow to the network service function instance corresponding to the SFP element, that is, when the SFP element is a network service function instance, the SFF is directly The service flow is sent to the network service function instance for processing.
进一歩地, SFF在为属于业务功能类型的 SFP元素选择一个网络业务 功能实例来处理业务流时, 可以为属于业务功能类型的 SFP元素选择一个 负载满足预设条件的网络业务功能实例来处理业务流, 负载满足预设条 件的网络业务功能实例具体可以为, 负载小于一阈值的网络业务功能实 例, 也可以为负载满足一业务需求的网络业务功能实例, 这里可以根据 需求灵活设置, 优选地, 可以根据各网络业务功能实例的负载信息选择 一个负载最小的来处理业务流。  Further, when the SFF selects a network service function instance for the SFP element belonging to the service function type to process the service flow, the SFP element that belongs to the service function type can select a network service function instance whose load meets the preset condition to process the service. The network service function instance that meets the preset condition may be an instance of the network service function whose load is less than a threshold, or may be an instance of the network service function that meets a service requirement, where the load may be flexibly set according to requirements, preferably, The traffic flow can be processed according to the load information of each network service function instance to select a minimum load.
本实施例, SFF通过接收控制器发送的业务链实例 SFP和对应的标识 SFP ID , 根据 SFP元素对包括有 SFP ID的业务流进行处理, 其中, 为属 于业务功能类型的 SFP元素选择一个网络业务功能实例来处理业务流, 即 SFF接收控制器发送的 SFP中, 该 SFP中包含属于业务功能类型的 SFP元 素, 即当 SF为无状态 SF时, 控制器在生成 SFP过程中不为其指定具体的In this embodiment, the SFF processes the service flow including the SFP ID according to the SFP element by receiving the service chain instance SFP and the corresponding identifier SFP ID sent by the controller, where a network service is selected for the SFP element belonging to the service function type. Function instance to handle the business flow, ie In the SFP sent by the SFF receiving controller, the SFP includes an SFP element belonging to a service function type, that is, when the SF is a stateless SF, the controller does not specify a specific SFP during the process of generating the SFP.
SF 实例而只是设置一业务功能类型, 由 SFF 为属于业务功能类型的 SFP 元素选择一个具体的 SF实例, 因此, SFF在接收控制器发送的 SFP和对应 的 SFP ID过程中, 该 SFP中不包含属于业务功能类型的具体的 SF实例的The SF instance only sets a service function type, and the SFF selects a specific SF instance for the SFP element that belongs to the service function type. Therefore, the SFF does not include the SFP and the corresponding SFP ID sent by the receiving controller. Specific SF instances belonging to the type of business function
SFP元素, 从有效减少 SFF接收 SFP和其对应的 SFP ID的数量, 从而有效 节省存储上述信息的存储空间。 The SFP element effectively reduces the number of SFPs and their corresponding SFP IDs, thereby effectively saving storage space for storing the above information.
下面采用一个具体的实施例, 对图 1和图 2所示方法实施例的技术方 案进行详细说明。 图 3为本发明实现业务功能链功能的网络架构图, 图 4 为本发明业务流的处理方法实施例三的信令流程图, 图 4所示实施例是以 图 3所示的网络架构为实施场景实现的业务流的处理方法, 图 5为本发明 业务流的处理方法中 SFC 控制器生成 SFP的流程图。  The technical scheme of the method embodiment shown in Figs. 1 and 2 will be described in detail below using a specific embodiment. FIG. 3 is a schematic diagram of a network architecture for implementing a service function chain function according to the present invention. FIG. 4 is a signaling flowchart of Embodiment 3 of a method for processing a service flow according to the present invention, and FIG. 4 is a network architecture shown in FIG. A method for processing a service flow implemented by a scenario is implemented. FIG. 5 is a flowchart of a method for generating an SFP by an SFC controller in a method for processing a service flow according to the present invention.
如图 3 所示, 该网络架构主要包括功能实体包括: SFC控制器 (SFC As shown in Figure 3, the network architecture mainly includes functional entities including: SFC controller (SFC)
Control ler ), 各种 SF实例 sf (即 SF的一个具体实例, 例如一个具体的 防火墙设备 sf l ) , 分类器(Classif ier ) , 业务转发设备 (SFF) 以及底 层网络转发设备 (例如层三路由器、 层二交换机) 。 图 4所示实施例是在 图 3 所示网络架构基础上实现的, 如图 4 所示, 本实施例的方法可以包 括: Control ler ), various SF instances sf (a specific instance of SF, such as a specific firewall device sf l), classifier (Classif ier), service forwarding device (SFF), and underlying network forwarding device (such as layer three routers) , layer two switches). The embodiment shown in FIG. 4 is implemented on the basis of the network architecture shown in FIG. 3. As shown in FIG. 4, the method in this embodiment may include:
5401、 SFC 控制器接收针对一业务流的业务链服务请求消息。  S401. The SFC controller receives a service chain service request message for a service flow.
其中, 该业务链服务请求消息包括与该业务流对应的匹配规则 The service chain service request message includes a matching rule corresponding to the service flow.
( match rule ) , 以及该业务流所需要的业务链 SFC, 该 SFC中包括依序 排列的多个 SF。 (match rule), and the service chain SFC required by the service flow, the SFC includes a plurality of SFs arranged in sequence.
5402、 SFC控制器根据业务链服务请求消息为业务流生成 SFP。  S402: The SFC controller generates an SFP for the service flow according to the service chain service request message.
其中, SFC 控制器根据接收到的业务链服务请求消息中的 SFC , 该 SFC中包括多个 SF, 根据该多个 SF分别生成对应的、 用于形成与该 SFC 对应的业务链实例 SFP的 SFP元素, 该 SFP元素依序组成该 SFC对应的 SFP o 具体地, S402具体实现过程如图 5所示, S402具体歩骤可以包括: S5001 : SFC 控制器接收业务流的业务链服务请求消息。  The SFC controller includes, according to the SFC in the received service chain service request message, the SFC includes multiple SFs, and generates corresponding SFPs for forming a service chain instance SFP corresponding to the SFC according to the multiple SFs. The SFP element sequentially forms the SFP corresponding to the SFC. Specifically, the S402 implementation process is as shown in FIG. 5. The S402 specific steps may include: S5001: The SFC controller receives the service chain service request message of the service flow.
S5002 : SFC控制器判断 SFC中的 SF是否为有状态 SF (stateful SF), 若是则执行 S5003 , 若否则执行 S5004。 S5003 : 对于有状态 SF ( stateful SF) , SFC控制器直接选取一个相 应的 SF实例。 S5002: The SFC controller determines whether the SF in the SFC is a stateful SF, and if so, executes S5003, otherwise executes S5004. S5003: For stateful SF, the SFC controller directly selects a corresponding SF instance.
其中, 如果该 SF属于 stateful SF, 该 SF存在多个实例 sf, 则 SFC 控制器可以从多个 sf 中选取当前负载最低的实例, 也可以选取一个可以 满足业务链请求中业务流需求的 sf, 而并不一定是负载最低的 sf。 SF实 例指示了业务流所要经过的具体的 SF实例。  If the SF belongs to the stateful SF and the SF has multiple instances sf, the SFC controller may select an instance with the lowest current load from multiple sfs, or select an sf that satisfies the service flow requirement in the service chain request. It is not necessarily the lowest load sf. The SF instance indicates the specific SF instance that the traffic flow will go through.
S5004: 对于无状态 SF (stateless SF), SFC控制器不为该 SF选取具 体的 SF实例。  S5004: For stateless SF, the SFC controller does not select a specific SF instance for this SF.
其中, 如果该 SF属于 stateless SF, 则 SFC控制器不为该 SF指定具 体的 SF实例, 而只是在 SFP中设置一个 SF类型。 SF类型可以包含多个 SF实例。 SF类型指示了业务流需要经过某种类型的 SF实例, 但并不指定 具体要经过某个 SF实例, 同一类型的 SF实例指能够为业务流提供相同服 务的 SF实例, 通常这些同种类型的 SF实例之间具有相同的功能和配置。  If the SF belongs to the stateless SF, the SFC controller does not specify a specific SF instance for the SF, but only sets an SF type in the SFP. An SF type can contain multiple SF instances. The SF type indicates that the service flow needs to pass through a certain type of SF instance, but does not specify that it needs to pass through an SF instance. The same type of SF instance refers to an SF instance that can provide the same service for the service flow, usually these same types. SF instances have the same functionality and configuration.
S5005 : 生成 SFP并为其分配一个唯一的 SFP ID。  S5005: Generate an SFP and assign it a unique SFP ID.
其中, 若根据业务链服务请求生成 SFP后, 如果已经存在相同 SFP可 用, SFC 控制器可以为业务流选择该已有 SFP , 而不需要再生成新的 SFP , 并使用该已有 SFP对应的 SFP ID, 而如果不存在相同 SFP可用, SFC 控制器根据上述歩骤生成新的 SFP, 并为该 SFP分配新的 SFP ID o  After the SFP is generated according to the service chain service request, if the same SFP is available, the SFC controller can select the existing SFP for the service flow, and does not need to generate a new SFP, and uses the SFP corresponding to the existing SFP. ID, and if the same SFP is not available, the SFC controller generates a new SFP based on the above steps and assigns a new SFP ID to the SFP.
举例说明 S5001-S5005生成 SFP的方式, 假设业务流的业务链请求中 的业务链 SFC为 SF1→SF2→SF3, 其中 SF2为 stateless SF, SF1和 SF2 为 stateful SF, 其中, SF1的具体实例为 sf l, SF3的具体实例为 sf3, 那么, SFC控制器生成的 SFP为 sf l→SF2→sf3, 其中, SF2为 SF类型。  For example, the S5001-S5005 generates an SFP. Assume that the service chain SFC in the service chain is SF1→SF2→SF3, where SF2 is stateless SF, SF1 and SF2 are stateful SF, and the specific instance of SF1 is sf. l, the specific example of SF3 is sf3, then the SFP generated by the SFC controller is sf l→SF2→sf3, where SF2 is SF type.
5403、 判断在 S402 中是否为业务链服务请求生成了新的 SFP , 则执 行 S404, 若否则执行 S405。  5403. Determine whether a new SFP is generated for the service chain service request in S402, and execute S404, if otherwise, execute S405.
其中, SFC 控制器判断是否有新的 SFP生成。  Among them, the SFC controller determines whether there is a new SFP generation.
5404、 SFC 控制器根据新生成的 SFP 和其对应的 SFP ID , 对各 SFF 中的业务转发表进行配置。  5404. The SFC controller configures the service forwarding table in each SFF according to the newly generated SFP and its corresponding SFP ID.
当 SFC 控制器为业务链服务请求生成了新的 SFP和 SFP ID时, 由于 各 SFF的业务转发表中没有这个 SFP ID对应的转发信息, 所以需要对各 SFF中的业务转发表进行更新, 其中, 各 SFF维护着一个用于转发数据包 的业务转发表, 其负责根据业务流所携带的 SFP ID将业务流转发到具体 的 SF实例上, 以使 SF实例对业务流进行处理, 当 SFC控制器生成了新的 SFP和其对应的 SFP ID, SFC 控制器会将该信息配置到 SFF上, 同时 SFC 控制器还会将 SFF所维护的业务转发表中的属于 SF类型的各 SF实例的负 载信息配置到 SFF的业务转发表中。 SFF根据 SFC控制器发送的上述信息 对自身维护的业务转发表进行更新。 When the SFC controller generates a new SFP and SFP ID for the service chain service request, the service forwarding table in each SFF needs to be updated because the forwarding information corresponding to the SFP ID is not included in the service forwarding table of each SFF. Each SFF maintains a packet for forwarding packets The service forwarding table is responsible for forwarding the service flow to the specific SF instance according to the SFP ID carried by the service flow, so that the SF instance processes the service flow, and the SFC controller generates a new SFP and its corresponding SFP. ID, the SFC controller configures the information to the SFF, and the SFC controller also configures the load information of each SF instance belonging to the SF type in the service forwarding table maintained by the SFF into the service forwarding table of the SFF. The SFF updates the service forwarding table maintained by itself according to the above information sent by the SFC controller.
SFF上维护的业务转发表的具体形式可以为表 2所示, 以业务转发设 备 SFF-X的业务转发表作举例说明, 其中, SDP ID 1对应的 SFP为 sf l→ SF2→sf3 , sfl和 sf3为 SF实例, SF2为 SF类型, SF2具体包括的 SF实 例有 sf21、 sf22、 sf23和 sf24, 其中 locator是指 SF实例的位置信息, locator的形式可以分为两种: (1 )如果 SF实例与本 SFF相连则 locator 是 SF实例所连接的 SFF的接口; (2 ) 如果 SF实例不与本 SFF相连, 例 如位于下一跳的 SFF上, 那么 locator就可以是该 SF实例所在 SFF的网 络位置, 例如 SFF的 IP地址。 在该业务转发表中还维护了 SF类型的各 SF 实例的负载信息 (load) 。 SFF通过 SFP ID来确定业务流的转发路径, 同 时在业务流中携带了一个 index值, 该 index 值用于指示当前处理到了 SFP中的第几个 SF实例。 表 2 业务转发设备 SFF-X所维护的业务转发表  The specific form of the service forwarding table maintained on the SFF can be as shown in Table 2. The service forwarding table of the service forwarding device SFF-X is used as an example. The SFP corresponding to the SDP ID 1 is sf l→ SF2→sf3, sfl and Sf3 is an SF instance, and SF2 is an SF type. The SF instances specifically included in SF2 are sf21, sf22, sf23, and sf24, where locator refers to the location information of the SF instance, and the locator can be divided into two types: (1) if the SF instance The locator is the interface of the SFF to which the SF instance is connected. (2) If the SF instance is not connected to the SFF, for example, on the SFF of the next hop, the locator may be the network location of the SFF where the SF instance is located. , such as the IP address of SFF. The load information (load) of each SF instance of the SF type is also maintained in the service forwarding table. The SFF determines the forwarding path of the service flow through the SFP ID, and carries an index value in the service flow. The index value is used to indicate the SF instances currently processed in the SFP. Table 2 Service forwarding table Service forwarding table maintained by SFF-X
Figure imgf000016_0001
Figure imgf000016_0001
S405、 SFC 控制器向分类器发送业务流的〈match rule, SFP ID〉。 其中, 若根据业务链服务请求生成 SFP后, 如果已经存在相同 SFP可 用, SFC 控制器可以为业务流选择该已有 SFP, 而不需要再生成新的 SFP 和与其对应的 SFP ID, 只需要将该业务流的 match rule加入到该 SFP ID 的 match rule中, 并更新分类器中的〈match rule, SFP ID〉条目 (即更新 分类器中的匹配表) ; S405. The SFC controller sends a <match rule, SFP ID> of the service flow to the classifier. If the SFP is generated according to the service chain service request, if the same SFP already exists, The SFC controller can select the existing SFP for the service flow, and does not need to generate a new SFP and its corresponding SFP ID, and only needs to add the match rule of the service flow to the match rule of the SFP ID, and Update the <match rule, SFP ID> entry in the classifier (ie update the match table in the classifier);
而如果不存在相同 SFP可用, SFC 控制器根据上述歩骤生成新的 SFP 和与其对应的 SFP ID, 并更新分类器中的〈match rule, SFP 10〉条目 (即 更新分类器中的匹配表)  If the same SFP is not available, the SFC controller generates a new SFP and its corresponding SFP ID according to the above steps, and updates the <match rule, SFP 10> entry in the classifier (ie, updates the matching table in the classifier)
S406、 分类器更新自身维护的匹配表。  S406. The classifier updates the matching table maintained by itself.
其中, 分类器中维护了一个匹配表, 如表 3所示, 该匹配表中维护了 SFP ID及其对应的所有 match rule信息 (即可能会存在多个业务流使用 同一个 SFP的情况, 所以一个 SFP ID可以对应多个 match rule ) , 并且 分类器负责根据业务流的 mathch rule 和该匹配表对业务流进行 SFP ID 标记, 即根据业务流的 match rule在匹配表中获取该 match rule对应的 SFP ID, 为业务流增加 SFC转发报文头 (SFP ID) 。  A match table is maintained in the classifier. As shown in Table 3, the match table maintains the SFP ID and all corresponding match rule information (that is, there may be multiple service flows using the same SFP, so An SFP ID can correspond to multiple match rules, and the classifier is responsible for performing SFP ID marking on the service flow according to the service rule's mathch rule and the matching table, that is, obtaining the match rule in the matching table according to the match rule of the service flow. SFP ID, which adds an SFC forwarding header (SFP ID) to the service flow.
表 3 分类器中的匹配表举例  Table 3 Examples of matching tables in the classifier
Figure imgf000017_0001
Figure imgf000017_0001
在根据业务流的业务链服务请求生成 SFP 后,如果已经存在相同 SFP 可用, 则分类器只需要将该业务流的 match rule加入到该 SFP ID的 match rule中  After the SFP is generated according to the service chain service request of the service flow, if the same SFP is available, the classifier only needs to add the match rule of the service flow to the match rule of the SFP ID.
而如果不存在相同 SFP可用, SFC 控制器根据上述歩骤生成新的 SFP 和与其对应的 SFP ID, 分类器将新的 SFP ID加入到匹配表中, 并在匹配 表中该新加入的 SFP ID的 match rule中, 加入该业务流的 match rule。  If no SFP is available, the SFC controller generates a new SFP and its corresponding SFP ID according to the above steps, and the classifier adds the new SFP ID to the matching table, and the newly added SFP ID in the matching table. In the match rule, join the match rule of the service flow.
S407、 分类器对业务流进行匹配和标记。  S407. The classifier matches and marks the service flow.
当业务流要由分类器进入 SFC 网络时, 分类器将该业务流的 match rule和匹配表中 match rule进行匹配, 当业务流与匹配表中某个 match rule匹配成功后, 则将该 match rule所对应的 SFP ID标记在该业务流 上。 将标记后的业务流发送给与分类器功能集成在一起的 SFF0 , 再经过 SFF0转发到其他 SFF-X (例如, SFF-A , SFF-B等), SFF-X负责根据 SFP ID 将业务流转发到 SF实例上。 When the traffic flow is to be entered by the classifier into the SFC network, the classifier matches the traffic flow The rule matches the match rule in the match table. After the service flow matches the match rule in the match table, the SFP ID corresponding to the match rule is marked on the service flow. The marked service flow is sent to the SFF0 integrated with the classifier function, and then forwarded to other SFF-Xs via SFF0 (for example, SFF-A, SFF-B, etc.), and the SFF-X is responsible for forwarding the service according to the SFP ID. Send to the SF instance.
S408、 各 SFF根据业务流中所标记的 SFP ID和业务转发表对业务流 进行转发。  S408. Each SFF forwards the service flow according to the SFP ID and the service forwarding table marked in the service flow.
需要说明的上述歩骤中, S404中 SFC 控制器与各 SFF之间的信令交 互, 以及 S405中 SFC控制器与分类器之间的信令交互, 并不存在时间上 的先后顺限制。  In the above steps, the signaling interaction between the SFC controller and each SFF in S404, and the signaling interaction between the SFC controller and the classifier in S405, there is no time limit.
本实施例, 在根据业务流的业务链请求消息为业务流生成 SFP 过程 中, 将业务流需要的 SFC中的多个 SF分为有状态 SF和无状态 SF, SFC控 制器为有状态 SF选取一具体的 SF实例, 而不为无状态 SF选取具体的 SF 实例, 而将该无状态 SF对应的 SFP元素设置为 SF类型, 将生成的 SFP和 SFP ID发送给各 SFF, 各 SFF对其自身维护的业务转发表进行更新, 根据 更新后的业务转发表对业务流进行转发, 由相应的 SF实例对业务流进行 处理, 即本实施例由 SFC 控制器对有状态 SF进行负载均衡控制 (SFC 控 制器为属于有状态 SF的 SF根据各 SF实例的负载信息选取一具体的 SF实 例), 而将无状态 SF的负载均衡控制交由业务转发设备进行处理(SFC控 制器不为属于无状态 SF的 SF选取具体的 SF实例) , 因此相对于现有技 术, 本实施例有效减少了 SFC 控制器根据业务链服务请求所生成的 SFP 和对应的 SFP ID的数量, 从而有效减少了 SFC 控制器为各 SFF配置 SFP 所需要的信令开销, 进而相应地降低了各 SFF 所需维护的业务转发表条 目, 节省了各 SFF的存储空间, 且 SFF中转发条目的减少可以提升转发效 率。 按照本发明实施例所描述的技术方案, 假设网络中总共有 M个无状态 SF, 那么生成的 SFP ID就只是现有技术中的 SFP ID数量的 1/M, 相应地, SFF中所需存储的转发条目只是现有技术中转发条目数量的 1/M。  In this embodiment, in the process of generating an SFP for a service flow according to a service chain request message of a service flow, the multiple SFs in the SFC required by the service flow are classified into a stateful SF and a stateless SF, and the SFC controller selects a stateful SF. a specific SF instance, instead of selecting a specific SF instance for the stateless SF, setting the SFP element corresponding to the stateless SF to the SF type, and sending the generated SFP and SFP ID to each SFF, and each SFF is itself The service forwarding table is updated, and the service flow is forwarded according to the updated service forwarding table, and the service flow is processed by the corresponding SF instance, that is, the SFC controller performs load balancing control on the stateful SF (SFC). The controller selects a specific SF instance for the SF belonging to the stateful SF according to the load information of each SF instance, and transfers the load balancing control of the stateless SF to the service forwarding device for processing (the SFC controller is not a stateless SF) The SF selects a specific SF instance), so this embodiment effectively reduces the SFC controller according to the service chain service request compared to the prior art. The number of SFPs and corresponding SFP IDs is reduced, which effectively reduces the signaling overhead required for the SFC to configure the SFP for each SFF, and accordingly reduces the service forwarding table entries required for each SFF, saving each SFF. The storage space, and the reduction of forwarding entries in the SFF can improve the forwarding efficiency. According to the technical solution described in the embodiment of the present invention, assuming that there are a total of M stateless SFs in the network, the generated SFP ID is only 1/M of the number of SFP IDs in the prior art, and correspondingly, the required storage in the SFF. The forwarding entry is only 1/M of the number of forwarding entries in the prior art.
下面以一个具体的实施例对上述实施例的 S408中 SFF如何对业务流 进行转发的进行具体说明, 图 6为本发明业务流处理方法各 SFF与 SF实 例的连接举例示意图, 此处以业务链服务请求消息中的 SFC 为 SF1— SF2 →SF3作为举例说明, SFC 控制器判断获知 SF1和 SF3为有状态 SF, SF2 为无状态 SF, SFC控制器为该业务链服务请求生成的 SFP为 sf 11→SF2→ sf31 , SFP ID为 1。 假设各 SFF与各 SF实例的连接情况如图 6所示, 此 处仅画出各 SFF和 SF实例的连接情况作示意说明。 其中, 各 SFF具体为 SFF-A、 SFF-B以及 SFF-C, sfl l和 sf31为 SF实例, SF2为 SF类型, 其 包括 sf21、 sf22、 sf23和 sf24四个具体实例, 本实施例各 SFF所维护的 业务转发表具体为表 4,其中, load指 SF实例的负载信息, 该负载信息可 以从 SFC 控制器获取得到。 In the following, a specific example of how the SFF in the S408 of the foregoing embodiment forwards the service flow is specifically described. FIG. 6 is a schematic diagram of a connection between each SFF and the SF instance in the service flow processing method of the present invention, where the service chain service is used. The SFC in the request message is SF1 - SF2 → SF3 As an example, the SFC controller determines that SF1 and SF3 are stateful SFs, and SF2 is a stateless SF. The SFP controller generates SFPs for the service chain service request as sf 11→SF2→sf31 and SFP ID is 1. Assume that the connection between each SFF and each SF instance is as shown in FIG. 6, and only the connection between each SFF and SF instance is shown here for illustration. Each SFF is specifically SFF-A, SFF-B, and SFF-C, and sfl l and sf31 are SF instances, and SF2 is an SF type, which includes four specific examples of sf21, sf22, sf23, and sf24, and each SFF in this embodiment. The service forwarding table maintained is specifically shown in Table 4, where load refers to the load information of the SF instance, and the load information can be obtained from the SFC controller.
表 4 各 SFF所维护的业务转发表  Table 4 Service forwarding table maintained by each SFF
Figure imgf000019_0001
Figure imgf000019_0002
Figure imgf000019_0001
Figure imgf000019_0002
SFF- A SFP SFF- A SFP
1: sfl l→SF2→sf31  1: sfl l→SF2→sf31
SFF-A FT: sfl l , locator  SFF-A FT: sfl l , locator
sf 31 , locator  Sf 31 , locator
SF2 sf 21, locator, load  SF2 sf 21, locator, load
sf 22, locator, load sf 23, locator, load sf 24, locator, load  Sf 22, locator, load sf 23, locator, load sf 24, locator, load
SFF- C SFP SFF- C SFP
1: sfl l→SF2→sf31  1: sfl l→SF2→sf31
SFF-C FT: sf 31 , locator  SFF-C FT: sf 31 , locator
SF2 sf 23, locator, load I I I sf 24, locator, load | 在上述实施场景下, 各 SFF的具体转发流程如下: SF2 sf 23, locator, load III sf 24, locator, load | In the above implementation scenario, the specific forwarding process of each SFF is as follows:
歩骤 a、 分类器根据业务流的 match rule 从匹配表中获取该 match rule对应的 SFP ID, 将该 SFP ID标记到该业务流数据包上, 并设置 index 为 0。  Step a: The classifier obtains the SFP ID corresponding to the match rule from the matching table according to the match rule of the service flow, marks the SFP ID to the service flow data packet, and sets the index to 0.
歩骤 b、 SFF0从分类器接收到携带有 SFP ID的业务流数据包之后, 根据该 SFP ID获取 SFP的第一跳为 Sf 11, 所以将业务流转发到 sfl l的位 置, 此时 sfl l的 locator为 SFF-A的 IP地址。 Ho after step b, SFF0 received from the classifier to carry SFP ID traffic stream packets, based on the acquired ID of the first hop SFP SFP is S f 11, it is sent to the traffic flow sfl position L, in which case sfl The locator of l is the IP address of SFF-A.
歩骤 c、 SFF-A 接收到业务流数据包之后, 根据业务流数据包中的 SFP ID以及 index值判断出需要将业务流数据包转发到 sfl l处理, 所以 SFF-A将业务流数据包发给 sf l l , 当 sfl l处理完业务流数据包之后 index 会加 1并将业务流数据包发给 SFF-A。  After receiving the service flow data packet, the SFF-A determines that the service flow data packet needs to be forwarded to the sfl1 process according to the SFP ID and the index value in the service flow data packet, so the SFF-A will process the service flow data packet. Send to sf ll. When sfl l processes the service flow packet, index will add 1 and send the service flow packet to SFF-A.
歩骤 d、 SFF-A接收到 sf l l返回的业务流数据包后, 根据 SFP ID以 及此时 index的值判断出业务流数据包将由 SF2处理, 由于 SFF-A业务转 发表中记录的 SF2为 SF类型, 所以 SFF-A选择一个负载低的 SF2实例, 并将业务流数据包发给该 SF实例, 假设此处 sf 23为负载最低的 SF实例, 此处的 sf23的 locator为 SFF-C的 IP地址。  Step d: After receiving the service flow data packet returned by sf ll, the SFF-A determines that the service flow data packet is processed by the SF2 according to the SFP ID and the value of the index at this time, because the SF2 recorded in the SFF-A service forwarding table is SF type, so SFF-A selects a low-load SF2 instance and sends the service flow data packet to the SF instance. Suppose sf 23 is the lowest load SF instance, where sf23 locator is SFF-C. IP address.
歩骤 e、 SFF-C 接收到业务流数据包之后, 根据业务流数据包中的 SFP ID以及 index值判断出需要将业务流数据包转发到 sf23处理, 所以 SFF-C将业务流数据包发给 sf 23, 当 sf 23处理完业务流数据包之后 index 会再加 1,并将业务流数据包发送给 SFF-C。  After receiving the service flow data packet, the SFF-C determines that the service flow data packet needs to be forwarded to the sf23 processing according to the SFP ID and the index value in the service flow data packet, so the SFF-C sends the service flow data packet. For sf 23, index will be incremented by 1 after sf 23 processes the service flow packet, and the service flow packet is sent to SFF-C.
歩骤 f、 SFF-C接收到 sf23返回的业务数据包后, 根据 SFP ID以及 此时的 index的值判断出业务流数据包将由 sf31处理, 所以 SFF-C将业 务流数据包发给 sf31, 此处 sf31的 locator为 SFF-B的 IP地址。  Step f: After receiving the service data packet returned by sf23, SFF-C determines that the service flow data packet is processed by sf31 according to the SFP ID and the value of the index at this time, so SFF-C sends the service flow data packet to sf31, Here the locator of sf31 is the IP address of SFF-B.
歩骤 g、 SFF-B 接收到业务流数据包之后, 根据业务流数据包中的 SFP ID 以及此时的 index 值判断出需要将业务流数据包转发到 sf31 处 理, 所以 SFF-B将业务流数据包发给 sf31, sf31处理完业务流数据包后 将业务流数据返回给 SFF-B,此时业务流数据包经过所有 SFP中的 SFP元 素。  After receiving the service flow data packet, the SFF-B determines that the service flow data packet needs to be forwarded to the sf31 processing according to the SFP ID in the service flow data packet and the index value at this time, so the SFF-B will flow the service flow. The data packet is sent to sf31. After processing the service flow data packet, sf31 returns the service flow data to SFF-B. At this time, the service flow data packet passes through the SFP elements in all SFPs.
由上述歩骤的说明可以得出, 本发明中的 SFP中的 SFP元素可能是 SF 类型, 对于这些 SFP元素就需要由 SFF来选择具体 SF实例, SFF的转发动 作具体可以包括两种方式: It can be concluded from the above description that the SFP element in the SFP in the present invention may be SF. Type, for these SFP elements, you need to select a specific SF instance by SFF. The forwarding action of SFF can specifically include two ways:
方式一、 若 SFP元素为 SF类型, 则由 SFF来判断该 SF类型对应的 SF 实例, 判断方法是根据 SF类型中各 SF实例的负载情况。 其中, 若 SFF要 转发到的 SFP元素与该 SFF相连, 则 SFF只需在与其相连的 SF实例中选 择一个负载低的 sf 进行转发; 若 SFF要转发到的 SFP元素不与该 SFF相 连, 则 SFF从其维护的所有 SF实例中选择一个负载低的 sf进行转发。  Manner 1: If the SFP element is of the SF type, the SFF determines the SF instance corresponding to the SF type, and the determining method is based on the load condition of each SF instance in the SF type. If the SFP element to which the SFF is to be forwarded is connected to the SFF, the SFF only needs to select a low-load sf for forwarding in the SF instance connected thereto; if the SFP element to which the SFF is to be forwarded is not connected to the SFF, The SFF selects a low-load sf from all the SF instances it maintains for forwarding.
方式二、 若 SFP元素为 SF实例, 则 SFF按照 SFP中指定的 sf进行转 发。  Manner 2: If the SFP element is an SF instance, the SFF is forwarded according to the sf specified in the SFP.
图 7为本发明控制器实施例一的结构示意图, 如图 7所示, 本实施例 的装置可以包括: 接收模块 1 1、 处理模块 12和发送模块 13, 其中, 接收 模块 1 1 用于接收针对一业务流的业务链服务请求消息, 所述业务链服务 请求消息包括与所述业务流对应的匹配规则, 以及所述业务流需要的业 务链 SFC , 所述业务链中包括依序排列的多个网络业务功能 SF, 处理模块 12用于根据所述多个 SF分别生成对应的、 用于形成与所述 SFC对应的业 务链实例 SFP的 SFP元素, 并为生成的所述 SFP分配对应的标识 SFP ID; 其中, 若判断获知所述多个 SF中包括无状态 SF, 则对应的 SFP元素为业 务功能类型的元素, 发送模块 13用于将所述 SFP以及所述 SFP ID发送给 各业务转发设备 SFF , 以供所述 SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理; 其中所述 SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理包括: 所述 SFF为属于业务功能类型的 SFP元素选择 一个网络业务功能实例来处理所述业务流。  FIG. 7 is a schematic structural diagram of Embodiment 1 of the controller of the present invention. As shown in FIG. 7, the apparatus in this embodiment may include: a receiving module 1 1 , a processing module 12 , and a sending module 13 , where the receiving module 1 1 is configured to receive a service chain service request message for a service flow, the service chain service request message includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, where the service chain includes sequentially arranged a plurality of network service functions SF, the processing module 12 is configured to generate, according to the plurality of SFs, corresponding SFP elements for forming a service chain instance SFP corresponding to the SFC, and assign corresponding to the generated SFPs. The SFP ID is identified; wherein, if it is determined that the plurality of SFs include a stateless SF, the corresponding SFP element is an element of a service function type, and the sending module 13 is configured to send the SFP and the SFP ID to each service. Forwarding device SFF for the SFF to process the service flow including the SFP ID according to the SFP element; wherein the SFF is based on the SFP element The processing of the service flow including the SFP ID includes: the SFF selecting a network service function instance for the SFP element belonging to the service function type to process the service flow.
可选地, 处理模块 12 还用于若判断获知所述多个 SF 中包括有状态 SF, 则选择一网络业务功能实例作为所述有状态 SF所对应的 SFP元素。  Optionally, the processing module 12 is further configured to: if it is determined that the plurality of SFs include the state SF, select a network service function instance as the SFP element corresponding to the stateful SF.
进一歩地, 所述选择一网络业务功能实例作为所述有状态 SF所对应 的 SFP元素, 具体可以包括: 选择一个负载满足预设条件的网络业务功能 实例作为所述有状态 SF所对应的 SFP元素。  Further, the selecting a network service function instance as the SFP element corresponding to the stateful SF may include: selecting a network service function instance whose load meets a preset condition as the SFP corresponding to the stateful SF element.
其中, 所述选择一个负载满足预设条件的网络业务功能实例具体可 以为: 选择一个负载小于一阈值的网络业务功能实例; 或, 选择一个负 载满足一业务需求的网络业务功能实例。 本实施例的装置, 可以用于执行图 1所示方法实施例的技术方案, 其 实现原理和技术效果类似, 此处不再赘述。 The example of the network service function that selects a load that meets the preset condition may be: selecting a network service function instance whose load is less than a threshold; or selecting a network service function instance that meets a service requirement. The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.
图 8为本发明业务转发设备实施例一的结构示意图, 如图 8所示, 本 实施例的装置可以包括: 接收模块 21和处理模块 22, 其中, 接收模块 21 用于接收控制器发送的业务链实例 SFP和对应的标识 SFP ID , 其中, 所述 SFP是由所述控制器根据业务流需要的业务链 SFC生成的, 并由所述控制 器为生成的所述 SFP分配对应的标识 SFP ID , 所述 SFP 中包括多个 SFP 元素, 所述 SFP元素为所述控制器根据所述 SFC中包括的依序排列的多个 网络业务功能 SF分别生成的, 处理模块 22用于根据所述 SFP元素对包括 有所述 SFP ID的业务流进行处理; 其中, 所述根据所述 SFP元素对所述 业务流进行处理包括: 为属于业务功能类型的 SFP元素选择一个网络业务 功能实例来处理所述业务流。  8 is a schematic structural diagram of Embodiment 1 of a service forwarding device according to the present invention. As shown in FIG. 8, the device in this embodiment may include: a receiving module 21 and a processing module 22, where the receiving module 21 is configured to receive a service sent by the controller. a chain instance SFP and a corresponding identifier SFP ID, wherein the SFP is generated by the controller according to a service chain SFC required by the service flow, and the controller allocates a corresponding identifier SFP ID to the generated SFP. The SFP includes a plurality of SFP elements, and the SFP element is generated by the controller according to the plurality of network service functions SF sequentially arranged in the SFC, and the processing module 22 is configured to use the SFP according to the SFP. The element processes the service flow including the SFP ID, where the processing the service flow according to the SFP element includes: selecting a network service function instance for the SFP element belonging to the service function type to process the business flow.
可选地, 处理模块 22还用于将所述业务流发送到 SFP元素所对应的 网络业务功能实例进行处理。  Optionally, the processing module 22 is further configured to send the service flow to the network service function instance corresponding to the SFP element for processing.
进一歩地, 所述为属于业务功能类型的 SFP元素选择一个网络业务功 能实例来处理所述业务流, 具体可以包括: 为属于业务功能类型的 SFP元 素选择一个负载满足预设条件的网络业务功能实例来处理所述业务流。  Further, the selecting a network service function instance for the SFP element belonging to the service function type to process the service flow may include: selecting a network service function that meets a preset condition for the SFP element belonging to the service function type. An instance to process the traffic flow.
可选的, 所述处理模块具体用于: 在属于业务功能类型的 SFP元素对 应各网络业务功能实例中, 为属于业务功能类型的 SFP元素选择一个负载 满足预设条件的网络业务功能实例来处理所述业务流。  Optionally, the processing module is specifically configured to: select, in an instance of the network service function corresponding to the service function type, a network service function instance that meets a preset condition for the SFP element that belongs to the service function type. The business flow.
其中, 负载满足预设条件可以为: 负载小于一阈值, 或者负载满足 一业务需求。 可以理解的, 也可以选择其他条件, 此处不以此作为限 制。  The load meets the preset condition, and the load may be less than a threshold, or the load meets a service requirement. It can be understood that other conditions can also be selected, and are not limited thereto.
本实施例的装置, 可以用于执行图 2所示方法实施例的技术方案, 其 实现原理和技术效果类似, 此处不再赘述。  The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and the technical effect are similar, and details are not described herein again.
图 9为本发明控制器实施例二的结构示意图, 如图 9所示, 本实施例 提供的控制器 30包括处理器 301和存储器 302。 控制器 30还可以包括发 射器 303、 接收器 304。 发射器 303和接收器 304可以和处理器 301相连。 其中, 发射器 303 用于发送数据或信息, 接收器 304 用于接收数据或信 息, 存储器 302存储执行指令, 当控制器 30运行时, 处理器 301与存储 器 302之间通信, 处理器 301调用存储器 302中的执行指令, 用于执行如 图 1所示方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 赘述。 FIG. 9 is a schematic structural diagram of Embodiment 2 of the controller of the present invention. As shown in FIG. 9, the controller 30 provided in this embodiment includes a processor 301 and a memory 302. The controller 30 can also include a transmitter 303, a receiver 304. Transmitter 303 and receiver 304 can be coupled to processor 301. The transmitter 303 is configured to transmit data or information, the receiver 304 is configured to receive data or information, and the memory 302 stores execution instructions. When the controller 30 is running, the processor 301 and the storage The processor 302 calls the execution instruction in the memory 302 to execute the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects are similar, and details are not described herein again.
图 10为本发明业务转发设备实施例二的结构示意图, 如图 10所示, 本实施例提供的业务转发设备 40包括处理器 401和存储器 402。 业务转发基 站设备 40还可以包括发射器 403、 接收器 404。 发射器 403和接收器 404可 以和处理器 401相连。 其中, 发射器 403用于发送数据或信息, 接收器 404 用于接收数据或信息,存储器 402存储执行指令,当业务转发设备 40运行时, 处理器 401与存储器 402之间通信, 处理器 401调用存储器 402中的执行指 令, 用于执行如图 2所示方法实施例的技术方案, 其实现原理和技术效果类 似, 此处不再赘述。  FIG. 10 is a schematic structural diagram of Embodiment 2 of a service forwarding device according to the present invention. As shown in FIG. 10, the service forwarding device 40 provided in this embodiment includes a processor 401 and a memory 402. The service forwarding base station device 40 may also include a transmitter 403 and a receiver 404. Transmitter 403 and receiver 404 can be coupled to processor 401. The transmitter 403 is configured to send data or information, the receiver 404 is configured to receive data or information, and the memory 402 stores execution instructions. When the service forwarding device 40 is running, the processor 401 communicates with the memory 402, and the processor 401 calls The execution instructions in the memory 402 are used to perform the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
在本发明所提供的几个实施例中, 应该理解到, 所揭露的装置和方法, 可以通过其它的方式实现。例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外 的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个***, 或 一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或 直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连 接, 可以是电性, 机械或其它的形式。  In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述该作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件 功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算机 可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若干指 令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 或处理器 (processor) 执行本发明各个实施例所述方法的部分歩骤。 而前述 的存储介质包括: U盘、移动硬盘、只读存储器(Read-Only Memory, ROM)、 随机存取存储器(Random Access Memory, RAM) 、 磁碟或者光盘等各种可 以存储程序代码的介质。 The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the method of various embodiments of the present invention. Partially. And the foregoing The storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code.
本领域技术人员可以清楚地了解到, 为描述的方便和简洁, 仅以上述各 功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分 配由不同的功能模块完成, 即将装置的内部结构划分成不同的功能模块, 以 完成以上描述的全部或者部分功能。 上述描述的装置的具体工作过程, 可以 参考前述方法实施例中的对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the device is installed. The internal structure is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the device described above, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 Claim
1、 一种业务流的处理方法, 其特征在于, 包括: A method for processing a service flow, comprising:
接收针对一业务流的业务链服务请求消息, 所述业务链服务请求消 息包括与所述业务流对应的匹配规则, 以及所述业务流需要的业务链  Receiving a service chain service request message for a service flow, the service chain service request message includes a matching rule corresponding to the service flow, and a service chain required by the service flow
SFC , 所述 SFC中包括依序排列的多个网络业务功能 SF; SFC, the SFC includes a plurality of network service functions SF arranged in sequence;
根据所述多个 SF分别生成对应的、 用于形成与所述 SFC对应的业务 链实例 SFP的 SFP元素, 并为生成的所述 SFP分配对应的标识 SFP ID; 其 中, 若判断获知所述多个 SF中包括无状态 SF, 则所述无状态 SF对应的 SFP元素为业务功能类型的元素;  Generating, according to the plurality of SFs, a corresponding SFP element for forming a service chain instance SFP corresponding to the SFC, and assigning a corresponding identifier SFP ID to the generated SFP; The SF includes a stateless SF, and the SFP element corresponding to the stateless SF is an element of a service function type;
将所述 SFP以及所述 SFP ID发送给各业务转发设备 SFF , 以供所述 Sending the SFP and the SFP ID to each service forwarding device SFF for the
SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理; 其中所述 SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理包括: 所述 SFF为属于业务功能类型的 SFP元素选择一个网络业务功能实例来处理所 述业务流。 The SFF processes the service flow including the SFP ID according to the SFP element, where the SFF processes the service flow including the SFP ID according to the SFP element, where the SFF belongs to the service function type. The SFP element selects a network service function instance to process the service flow.
2、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述多个 SF 分别生成对应的、 用于形成与所述 SFC对应的业务链实例 SFP的 SFP元 素, 还包括:  The method according to claim 1, wherein the generating, by the plurality of SFs, a corresponding SFP element for forming a service chain instance SFP corresponding to the SFC, further comprising:
若判断获知所述多个 SF中包括有状态 SF, 则选择一网络业务功能实 例作为所述有状态 SF所对应的 SFP元素。  If it is determined that the plurality of SFs include the state SF, a network service function instance is selected as the SFP element corresponding to the stateful SF.
3、 根据权利要求 2所述的方法, 其特征在于, 所述 SFF根据所述 SFP 元素对包括有所述 SFP ID的业务流进行处理, 还包括:  The method according to claim 2, wherein the SFF processes the service flow including the SFP ID according to the SFP element, and further includes:
所述 SFF将所述业务流发送到 SFP元素所对应的网络业务功能实例进 行处理。  The SFF sends the service flow to the network service function instance corresponding to the SFP element for processing.
4、 根据权利要求 2或 3所述的方法, 其特征在于, 所述选择一网络 业务功能实例作为所述有状态 SF所对应的 SFP元素, 包括:  The method according to claim 2 or 3, wherein the selecting a network service function instance as the SFP element corresponding to the stateful SF includes:
选择一个负载满足预设条件的网络业务功能实例作为所述有状态 SF 所对应的 SFP元素。  Select a network service function instance whose load meets the preset condition as the SFP element corresponding to the stateful SF.
5、 根据权利要求 1所述的方法, 其特征在于, 所述 SFF为属于业务 功能类型的 SFP元素选择一个网络业务功能实例来处理所述业务流, 包 括: 所述 SFF为属于业务功能类型的 SFP元素选择一个负载满足预设条件 的网络业务功能实例来处理所述业务流。 The method according to claim 1, wherein the SFF selects a network service function instance for the SFP element belonging to the service function type to process the service flow, including: The SFF selects a network service function instance whose load satisfies a preset condition for the SFP element belonging to the service function type to process the service flow.
6、 根据权利要求 5所述的方法, 其特征在于, 所述 SFF为属于业务 功能类型的 SFP元素选择一个负载满足预设条件的网络业务功能实例来处 理所述业务流, 包括:  The method according to claim 5, wherein the SFF selects a network service function instance whose load satisfies a preset condition for the SFP element of the service function type to process the service flow, including:
在属于业务功能类型的 SFP元素对应各网络业务功能实例中, 所述 SFF为属于业务功能类型的 SFP元素选择一个负载满足预设条件的网络业 务功能实例来处理所述业务流。  In the SFP element belonging to the service function type, the SFP element selects a network service function instance whose load meets the preset condition to process the service flow.
7、 根据权利要求 6所述的方法, 其特征在于, 所述 SFF为属于业务 功能类型的 SFP元素选择一个负载满足预设条件的网络业务功能实例来处 理所述业务流, 还包括:  The method according to claim 6, wherein the SFF selects a network service function instance whose load meets a preset condition to process the service flow for the SFP element of the service function type, and further includes:
在与所述 SFF直接相连的属于业务功能类型的 SFP元素对应的各网络 业务功能实例中, 所述 SFF为属于业务功能类型的 SFP元素选择一个负载 满足预设条件的网络业务功能实例来处理所述业务流。  In the network service function instance corresponding to the service element type SFP element that is directly connected to the SFF, the SFF selects a network service function instance that meets a preset condition for the SFP element belonging to the service function type to process the The business flow.
8、 根据权利要求 4至 7任一项所述的方法, 其特征在于, 所述选择 一个负载满足预设条件的网络业务功能实例具体为:  The method according to any one of claims 4 to 7, wherein the selecting a network service function instance in which a load meets a preset condition is specifically:
选择一个负载小于一阈值的网络业务功能实例; 或  Select an instance of the network service function with a load less than a threshold; or
选择一个负载满足一业务需求的网络业务功能实例。  Select a network service function instance that meets a business requirement.
9、 一种业务流的处理方法, 其特征在于, 包括:  9. A method for processing a service flow, the method comprising:
接收控制器发送的业务链实例 SFP和对应的标识 SFP ID, 其中, 所述 Receiving a service chain instance SFP and a corresponding identifier SFP ID sent by the controller, where
SFP是由所述控制器根据业务流需要的业务链 SFC生成的, 并由所述控制 器为生成的所述 SFP分配对应的标识 SFP ID , 所述 SFP中包括多个 SFP 元素, 所述 SFP元素为所述控制器根据所述 SFC中包括的依序排列的多个 网络业务功能 SF分别生成的; The SFP is generated by the controller according to the service chain SFC required by the service flow, and the controller allocates a corresponding identifier SFP ID to the generated SFP, where the SFP includes multiple SFP elements, and the SFP The element is generated by the controller according to a plurality of network service functions SF sequentially arranged in the SFC;
根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理; 其中, 所述根据所述 SFP元素对包括有所述 SFP ID的业务流进行处理包括: 为 属于业务功能类型的 SFP元素选择一个网络业务功能实例来处理所述业务 流。  Processing the service flow including the SFP ID according to the SFP element; wherein, the processing, by the SFP element, the service flow including the SFP ID includes: selecting, for the SFP element belonging to the service function type An instance of a network service function to process the traffic flow.
10、 根据权利要求 9所述的方法, 其特征在于, 所述根据所述 SFP元 素对包括有所述 SFP ID的业务流进行处理, 还包括: 将所述业务流发送到 SFP元素所对应的网络业务功能实例进行处理。 The method according to claim 9, wherein the processing, by the SFP element, the service flow including the SFP ID, further includes: The service flow is sent to the network service function instance corresponding to the SFP element for processing.
11、 根据权利要求 10所述的方法, 其特征在于, 所述为属于业务功 能类型的 SFP元素选择一个网络业务功能实例来处理所述业务流, 包括: 为属于业务功能类型的 SFP元素选择一个负载满足预设条件的网络业 务功能实例来处理所述业务流。  The method according to claim 10, wherein the selecting a network service function instance for the SFP element belonging to the service function type to process the service flow comprises: selecting one for the SFP element belonging to the service function type The network service function instance that satisfies the preset condition is loaded to process the service flow.
12、 根据权利要求 11所述的方法, 其特征在于, 所述为属于业务功 能类型的 SFP元素选择一个负载满足预设条件的网络业务功能实例来处理 所述业务流, 包括:  The method according to claim 11, wherein the selecting, by the SFP element belonging to the service function type, a network service function instance that meets a preset condition to process the service flow, includes:
在属于业务功能类型的 SFP元素对应各网络业务功能实例中, 为属于 业务功能类型的 SFP元素选择一个负载满足预设条件的网络业务功能实例 来处理所述业务流。  In the network service function instance corresponding to the service function type, the SFP element belonging to the service function type selects a network service function instance whose load meets the preset condition to process the service flow.
13、 根据权利要求 11或 12所述的方法, 其特征在于, 所述选择一个 负载满足预设条件的网络业务功能实例具体为:  The method according to claim 11 or 12, wherein the selecting a network service function instance in which a load meets a preset condition is specifically:
选择一个负载小于一阈值的网络业务功能实例; 或  Select an instance of the network service function with a load less than a threshold; or
选择一个负载满足一业务需求的网络业务功能实例。  Select a network service function instance that meets a business requirement.
14、 一种控制器, 其特征在于, 包括:  14. A controller, comprising:
接收模块, 用于接收针对一业务流的业务链服务请求消息, 所述业 务链服务请求消息包括与所述业务流对应的匹配规则, 以及所述业务流 需要的业务链 SFC, 所述 SFC中包括依序排列的多个网络业务功能 SF;  a receiving module, configured to receive a service chain service request message for a service flow, where the service chain service request message includes a matching rule corresponding to the service flow, and a service chain SFC required by the service flow, in the SFC Including a plurality of network service functions SF arranged in sequence;
处理模块, 用于根据所述多个 SF分别生成对应的、 用于形成与所述 a processing module, configured to generate, according to the multiple SFs, corresponding to,
SFC对应的业务链实例 SFP的 SFP元素, 并为生成的所述 SFP分配对应的 标识 SFP ID; 其中, 若判断获知所述多个 SF中包括无状态 SF, 则所述无 状态 SF对应的 SFP元素为业务功能类型的元素; An SFP element of the service chain instance SFP corresponding to the SFC, and assigning a corresponding identifier SFP ID to the generated SFP; wherein, if it is determined that the plurality of SFs include a stateless SF, the SFP corresponding to the stateless SF An element is an element of a business function type;
发送模块, 用于将所述 SFP以及所述 SFP ID发送给各业务转发设备 SFF, 以供所述 SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进行 处理; 其中所述 SFF根据所述 SFP元素对包括有所述 SFP ID的业务流进 行处理包括: 所述 SFF为属于业务功能类型的 SFP元素选择一个网络业务 功能实例来处理所述业务流。  a sending module, configured to send the SFP and the SFP ID to each service forwarding device SFF, where the SFF processes the service flow including the SFP ID according to the SFP element; The SFP element processing the service flow including the SFP ID includes: the SFF selecting a network service function instance for the SFP element belonging to the service function type to process the service flow.
15、 根据权利要求 14所述的控制器, 其特征在于, 所述处理模块还 用于: 若判断获知所述多个 SF中包括有状态 SF, 则选择一网络业务功能实 例作为所述有状态 SF所对应的 SFP元素。 The controller according to claim 14, wherein the processing module is further configured to: If it is determined that the plurality of SFs include the state SF, a network service function instance is selected as the SFP element corresponding to the stateful SF.
16、 根据权利要求 15所述的控制器, 其特征在于, 所述处理模块具 体用于: 选择一个负载满足预设条件的网络业务功能实例作为所述有状 态 SF所对应的 SFP元素。  The controller according to claim 15, wherein the processing module is configured to: select a network service function instance whose load meets a preset condition as an SFP element corresponding to the status SF.
17、 根据权利要求 16所述的控制器, 其特征在于, 所述选择一个负 载满足预设条件的网络业务功能实例具体为:  The controller according to claim 16, wherein the example of selecting a network service function that satisfies a preset condition is:
选择一个负载小于一阈值的网络业务功能实例; 或  Select an instance of the network service function with a load less than a threshold; or
选择一个负载满足一业务需求的网络业务功能实例。  Select a network service function instance that meets a business requirement.
18、 一种业务转发设备, 其特征在于, 包括:  18. A service forwarding device, comprising:
接收模块, 用于接收控制器发送的业务链实例 SFP和对应的标识 SFP ID, 其中, 所述 SFP是由所述控制器根据业务流需要的业务链 SFC生成 的, 并由所述控制器为生成的所述 SFP分配对应的标识 SFP ID, 所述 SFP 中包括多个 SFP元素, 所述 SFP元素为所述控制器根据所述 SFC中包括的 依序排列的多个网络业务功能 SF分别生成的;  a receiving module, configured to receive a service chain instance SFP and a corresponding identifier SFP ID sent by the controller, where the SFP is generated by the controller according to a service chain SFC required by the service flow, and is configured by the controller And generating, by the SFP, a corresponding SFP ID, where the SFP includes a plurality of SFP elements, where the SFP element is generated by the controller according to the plurality of network service functions SF sequentially arranged in the SFC. of;
处理模块, 用于根据所述 SFP元素对包括有所述 SFP ID的业务流进 行处理; 其中, 所述根据所述 SFP元素对所述业务流进行处理包括: 为属 于业务功能类型的 SFP元素选择一个网络业务功能实例来处理所述业务 流。  a processing module, configured to process, according to the SFP element, a service flow that includes the SFP ID, where the processing, according to the SFP element, processing the service flow, includes: selecting, for an SFP element that belongs to a service function type An instance of a network service function to process the traffic flow.
19、 根据权利要求 18所述的业务转发设备, 其特征在于, 所述处理 模块还用于:  The service forwarding device according to claim 18, wherein the processing module is further configured to:
将所述业务流发送到 SFP元素所对应的网络业务功能实例进行处理。 The service flow is sent to the network service function instance corresponding to the SFP element for processing.
20、 根据权利要求 19所述的业务转发设备, 其特征在于, 所述处理 模块具体用于: The service forwarding device according to claim 19, wherein the processing module is specifically configured to:
为属于业务功能类型的 SFP元素选择一个负载满足预设条件的网络业 务功能实例来处理所述业务流。  A traffic service function instance that satisfies a preset condition is selected for an SFP element belonging to a service function type to process the service flow.
21、 根据权利要求 20所述的业务转发设备, 其特征在于, 所述处理 模块具体用于:  The service forwarding device according to claim 20, wherein the processing module is specifically configured to:
在属于业务功能类型的 SFP元素对应各网络业务功能实例中, 为属于 业务功能类型的 SFP元素选择一个负载满足预设条件的网络业务功能实例 来处理所述业务流。 In the network service function instance corresponding to the service function type SFP element, select a network service function instance that meets the preset condition for the SFP element belonging to the service function type. To process the business flow.
22、 根据权利要求 20或 21所述的业务转发设备, 其特征在于, 所述 选择一个负载满足预设条件的网络业务功能实例具体为:  The service forwarding device according to claim 20 or 21, wherein the example of selecting a network service function that meets a preset condition is:
选择一个负载小于一阈值的网络业务功能实例; 或  Select an instance of the network service function with a load less than a threshold; or
选择一个负载满足一业务需求的网络业务功能实例。  Select a network service function instance that meets a business requirement.
23、 一种控制器, 其特征在于, 包括:  23. A controller, comprising:
处理器和存储器, 所述存储器存储执行指令, 当所述控制器运行 时, 所述处理器与所述存储器之间通信, 所述处理器执行所述执行指令 使得所述控制器执行如权利要求 1至 8任一项所述的方法。  a processor and a memory, the memory storing execution instructions, when the controller is running, the processor is in communication with the memory, the processor executing the execution instruction such that the controller performs the claim The method of any of 1 to 8.
24、 一种业务转发设备, 其特征在于, 包括:  24. A service forwarding device, comprising:
处理器和存储器, 所述存储器存储执行指令, 当所述业务转发设备 运行时, 所述处理器与所述存储器之间通信, 所述处理器执行所述执行 指令使得所述业务转发设备执行如权利要求 9至 13任一项所述的方法。  a processor and a memory, the memory storing execution instructions, when the service forwarding device is in operation, the processor is in communication with the memory, the processor executing the execution instruction to cause the service forwarding device to perform The method of any one of claims 9 to 13.
PCT/CN2014/080060 2014-06-17 2014-06-17 Service flow processing method, apparatus and device WO2016004556A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN201480031398.3A CN105379218B (en) 2014-06-17 2014-06-17 Processing method, device and the equipment of Business Stream
PCT/CN2014/080060 WO2016004556A1 (en) 2014-06-17 2014-06-17 Service flow processing method, apparatus and device
JP2016573955A JP2017518710A (en) 2014-06-17 2014-06-17 Service flow processing method, apparatus, and device
EP14897135.1A EP3148149A4 (en) 2014-06-17 2014-06-17 Service flow processing method, apparatus and device
US15/381,759 US10581700B2 (en) 2014-06-17 2016-12-16 Service flow processing method, apparatus, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/080060 WO2016004556A1 (en) 2014-06-17 2014-06-17 Service flow processing method, apparatus and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/381,759 Continuation US10581700B2 (en) 2014-06-17 2016-12-16 Service flow processing method, apparatus, and device

Publications (1)

Publication Number Publication Date
WO2016004556A1 true WO2016004556A1 (en) 2016-01-14

Family

ID=55063462

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080060 WO2016004556A1 (en) 2014-06-17 2014-06-17 Service flow processing method, apparatus and device

Country Status (5)

Country Link
US (1) US10581700B2 (en)
EP (1) EP3148149A4 (en)
JP (1) JP2017518710A (en)
CN (1) CN105379218B (en)
WO (1) WO2016004556A1 (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017133647A1 (en) * 2016-02-06 2017-08-10 华为技术有限公司 Packet processing method, traffic classifier, and service function instance
WO2018009475A1 (en) * 2016-07-06 2018-01-11 Cisco Technology, Inc. Automatic service function validation in a virtual network environment
CN107786437A (en) * 2016-08-24 2018-03-09 华为技术有限公司 Message forwarding method and device
US10148577B2 (en) 2014-12-11 2018-12-04 Cisco Technology, Inc. Network service header metadata for load balancing
US10187306B2 (en) 2016-03-24 2019-01-22 Cisco Technology, Inc. System and method for improved service chaining
US10218593B2 (en) 2016-08-23 2019-02-26 Cisco Technology, Inc. Identifying sources of packet drops in a service function chain environment
US10218616B2 (en) 2016-07-21 2019-02-26 Cisco Technology, Inc. Link selection for communication with a service function cluster
US10225187B2 (en) 2017-03-22 2019-03-05 Cisco Technology, Inc. System and method for providing a bit indexed service chain
US10225270B2 (en) 2016-08-02 2019-03-05 Cisco Technology, Inc. Steering of cloned traffic in a service function chain
US10237379B2 (en) 2013-04-26 2019-03-19 Cisco Technology, Inc. High-efficiency service chaining with agentless service nodes
US10257033B2 (en) 2017-04-12 2019-04-09 Cisco Technology, Inc. Virtualized network functions and service chaining in serverless computing infrastructure
US10320664B2 (en) 2016-07-21 2019-06-11 Cisco Technology, Inc. Cloud overlay for operations administration and management
US10333855B2 (en) 2017-04-19 2019-06-25 Cisco Technology, Inc. Latency reduction in service function paths
JP2019518272A (en) * 2016-04-29 2019-06-27 サイトリックス システムズ,インコーポレイテッド System and method for service chain load balancing
US10397271B2 (en) 2017-07-11 2019-08-27 Cisco Technology, Inc. Distributed denial of service mitigation for web conferencing
US10541893B2 (en) 2017-10-25 2020-01-21 Cisco Technology, Inc. System and method for obtaining micro-service telemetry data
US10554689B2 (en) 2017-04-28 2020-02-04 Cisco Technology, Inc. Secure communication session resumption in a service function chain
US10666612B2 (en) 2018-06-06 2020-05-26 Cisco Technology, Inc. Service chains for inter-cloud traffic
US10673698B2 (en) 2017-07-21 2020-06-02 Cisco Technology, Inc. Service function chain optimization using live testing
USRE48131E1 (en) 2014-12-11 2020-07-28 Cisco Technology, Inc. Metadata augmentation in a service function chain
US10735275B2 (en) 2017-06-16 2020-08-04 Cisco Technology, Inc. Releasing and retaining resources for use in a NFV environment
US10791065B2 (en) 2017-09-19 2020-09-29 Cisco Technology, Inc. Systems and methods for providing container attributes as part of OAM techniques
US10798187B2 (en) 2017-06-19 2020-10-06 Cisco Technology, Inc. Secure service chaining
JP2020188478A (en) * 2016-08-26 2020-11-19 華為技術有限公司Huawei Technologies Co.,Ltd. Method for synchronizing topology information in sfc network, and routing network element
US10884807B2 (en) 2017-04-12 2021-01-05 Cisco Technology, Inc. Serverless computing and task scheduling
US10931793B2 (en) 2016-04-26 2021-02-23 Cisco Technology, Inc. System and method for automated rendering of service chaining
US11018981B2 (en) 2017-10-13 2021-05-25 Cisco Technology, Inc. System and method for replication container performance and policy validation using real time network traffic
US11063856B2 (en) 2017-08-24 2021-07-13 Cisco Technology, Inc. Virtual network function monitoring in a network function virtualization deployment

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9225638B2 (en) 2013-05-09 2015-12-29 Vmware, Inc. Method and system for service switching using service tags
CN104954245B (en) * 2014-03-27 2019-07-16 中兴通讯股份有限公司 Business function chain processing method and processing device
US10225137B2 (en) 2014-09-30 2019-03-05 Nicira, Inc. Service node selection by an inline service switch
JP6481909B2 (en) 2014-09-30 2019-03-13 華為技術有限公司Huawei Technologies Co.,Ltd. Service route generation method and apparatus
US9825810B2 (en) 2014-09-30 2017-11-21 Nicira, Inc. Method and apparatus for distributing load among a plurality of service nodes
US10594743B2 (en) 2015-04-03 2020-03-17 Nicira, Inc. Method, apparatus, and system for implementing a content switch
US11356359B2 (en) * 2015-09-02 2022-06-07 Telefonaktiebolaget Lm Ericsson (Publ) Methods and network nodes for scalable top-of-chain selection in mobile service chaining
US10116553B1 (en) * 2015-10-15 2018-10-30 Cisco Technology, Inc. Application identifier in service function chain metadata
EP3435615B1 (en) * 2016-03-28 2021-04-14 Huawei Technologies Co., Ltd. Network service implementation method, service controller, and communication system
CN113055289B (en) * 2016-07-01 2023-12-08 华为技术有限公司 Message forwarding method, device and system based on service function chain SFC
US11277338B2 (en) 2016-09-26 2022-03-15 Juniper Networks, Inc. Distributing service function chain data and service function instance data in a network
KR101911913B1 (en) 2017-07-03 2019-01-04 성균관대학교산학협력단 Method and apparatus for service function chaining
US10797966B2 (en) 2017-10-29 2020-10-06 Nicira, Inc. Service operation chaining
US10797910B2 (en) 2018-01-26 2020-10-06 Nicira, Inc. Specifying and utilizing paths through a network
US10805192B2 (en) 2018-03-27 2020-10-13 Nicira, Inc. Detecting failure of layer 2 service using broadcast messages
US11595250B2 (en) 2018-09-02 2023-02-28 Vmware, Inc. Service insertion at logical network gateway
US10805221B2 (en) 2018-11-06 2020-10-13 Nanning Fugui Precision Industrial Co., Ltd. Service function chain (SFC) path selection method and system
US11467861B2 (en) * 2019-02-22 2022-10-11 Vmware, Inc. Configuring distributed forwarding for performing service chain operations
CN112087379B (en) * 2019-06-12 2023-08-01 南京中兴新软件有限责任公司 Service chain arranging method and device, storage medium and electronic device
US11140218B2 (en) 2019-10-30 2021-10-05 Vmware, Inc. Distributed service chain across multiple clouds
US11283717B2 (en) 2019-10-30 2022-03-22 Vmware, Inc. Distributed fault tolerant service chain
US11659061B2 (en) 2020-01-20 2023-05-23 Vmware, Inc. Method of adjusting service function chains to improve network performance
US11438257B2 (en) 2020-04-06 2022-09-06 Vmware, Inc. Generating forward and reverse direction connection-tracking records for service paths at a network edge
US11734043B2 (en) 2020-12-15 2023-08-22 Vmware, Inc. Providing stateful services in a scalable manner for machines executing on host computers
US11611625B2 (en) 2020-12-15 2023-03-21 Vmware, Inc. Providing stateful services in a scalable manner for machines executing on host computers
CN117099356A (en) * 2021-06-11 2023-11-21 华为技术有限公司 Instance-affine service scheduling
WO2023025387A1 (en) * 2021-08-26 2023-03-02 Huawei Technologies Co., Ltd. Service demand redirection in ingress-based service routing
US11863651B2 (en) * 2021-11-10 2024-01-02 At&T Intellectual Property I, L.P. Network service functions API
CN115296842A (en) * 2022-06-27 2022-11-04 深信服科技股份有限公司 Method and device for arranging service flow, application delivery equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780758A (en) * 2011-05-13 2012-11-14 国际商业机器公司 Distributed policy service method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE435540T1 (en) 2006-01-27 2009-07-15 Ibm METHOD, SYSTEM AND COMPUTER PROGRAM PRODUCT FOR AUTOMATICALLY CLONING IT EQUIPMENT STRUCTURES
US20110055845A1 (en) * 2009-08-31 2011-03-03 Thyagarajan Nandagopal Technique for balancing loads in server clusters
US8743885B2 (en) * 2011-05-03 2014-06-03 Cisco Technology, Inc. Mobile service routing in a network environment
US9258742B1 (en) * 2013-09-30 2016-02-09 Juniper Networks, Inc. Policy-directed value-added services chaining
US9385950B2 (en) * 2013-10-14 2016-07-05 Cisco Technology, Inc. Configurable service proxy local identifier mapping
WO2015062627A1 (en) * 2013-10-29 2015-05-07 Telefonaktiebolaget L M Ericsson (Publ) Control of a chain of services
US9344337B2 (en) * 2014-03-13 2016-05-17 Cisco Technology, Inc. Service node originated service chains in a network environment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780758A (en) * 2011-05-13 2012-11-14 国际商业机器公司 Distributed policy service method and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JIANG, Y. ET AL.: "An Architecture of Service Function Chaining draft-jiang-sfc-arch-01.txt", WORKING GROUP INTERNET DRAFT, 14 February 2014 (2014-02-14), XP015097057 *
KRISHNAN, R. ET AL.: "SFC Long-lived Flow Use Cases draft-krishnan-sfc-long-lived-flow-use-cases-02", SFC WORKING GROUP INTERNET DRAFT, 21 April 2014 (2014-04-21), XP015098773 *
QUINN , P. ET AL.: "Service Function Chaining (SFC) Architecture draft-quinn-sfc-arch-05.txt", NETWORK WORKING GROUP INTERNET -DRAFT, 5 May 2014 (2014-05-05), pages 4, XP015098997 *
See also references of EP3148149A4 *

Cited By (50)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10237379B2 (en) 2013-04-26 2019-03-19 Cisco Technology, Inc. High-efficiency service chaining with agentless service nodes
US10148577B2 (en) 2014-12-11 2018-12-04 Cisco Technology, Inc. Network service header metadata for load balancing
USRE48131E1 (en) 2014-12-11 2020-07-28 Cisco Technology, Inc. Metadata augmentation in a service function chain
CN107046506A (en) * 2016-02-06 2017-08-15 华为技术有限公司 A kind of message processing method, flow classifier and business function example
WO2017133647A1 (en) * 2016-02-06 2017-08-10 华为技术有限公司 Packet processing method, traffic classifier, and service function instance
CN107046506B (en) * 2016-02-06 2020-02-14 华为技术有限公司 Message processing method, flow classifier and service function example
US10812378B2 (en) 2016-03-24 2020-10-20 Cisco Technology, Inc. System and method for improved service chaining
US10187306B2 (en) 2016-03-24 2019-01-22 Cisco Technology, Inc. System and method for improved service chaining
US10931793B2 (en) 2016-04-26 2021-02-23 Cisco Technology, Inc. System and method for automated rendering of service chaining
US10630593B2 (en) 2016-04-29 2020-04-21 Citrix Systems, Inc. System and method for service chain load balancing
JP2019518272A (en) * 2016-04-29 2019-06-27 サイトリックス システムズ,インコーポレイテッド System and method for service chain load balancing
CN109417496A (en) * 2016-07-06 2019-03-01 思科技术公司 Automation services functional verification in virtual network environment
WO2018009475A1 (en) * 2016-07-06 2018-01-11 Cisco Technology, Inc. Automatic service function validation in a virtual network environment
US10419550B2 (en) 2016-07-06 2019-09-17 Cisco Technology, Inc. Automatic service function validation in a virtual network environment
CN109417496B (en) * 2016-07-06 2022-03-29 思科技术公司 Automatic service function verification in a virtual network environment
US10218616B2 (en) 2016-07-21 2019-02-26 Cisco Technology, Inc. Link selection for communication with a service function cluster
US10320664B2 (en) 2016-07-21 2019-06-11 Cisco Technology, Inc. Cloud overlay for operations administration and management
US10225270B2 (en) 2016-08-02 2019-03-05 Cisco Technology, Inc. Steering of cloned traffic in a service function chain
US10778551B2 (en) 2016-08-23 2020-09-15 Cisco Technology, Inc. Identifying sources of packet drops in a service function chain environment
US10218593B2 (en) 2016-08-23 2019-02-26 Cisco Technology, Inc. Identifying sources of packet drops in a service function chain environment
CN107786437B (en) * 2016-08-24 2020-12-15 华为技术有限公司 Message forwarding method and device
CN107786437A (en) * 2016-08-24 2018-03-09 华为技术有限公司 Message forwarding method and device
US11477109B2 (en) 2016-08-26 2022-10-18 Huawei Technologies Co., Ltd. Method for synchronizing topology information in SFC network, and routing network element
JP7077367B2 (en) 2016-08-26 2022-05-30 華為技術有限公司 Methods for synchronizing topology information in SFC networks, and routing network elements
JP2020188478A (en) * 2016-08-26 2020-11-19 華為技術有限公司Huawei Technologies Co.,Ltd. Method for synchronizing topology information in sfc network, and routing network element
US11627067B2 (en) 2016-08-26 2023-04-11 Huawei Technologies Co., Ltd. Method for synchronizing topology information in SFC network, and routing network element
US10225187B2 (en) 2017-03-22 2019-03-05 Cisco Technology, Inc. System and method for providing a bit indexed service chain
US10778576B2 (en) 2017-03-22 2020-09-15 Cisco Technology, Inc. System and method for providing a bit indexed service chain
US10257033B2 (en) 2017-04-12 2019-04-09 Cisco Technology, Inc. Virtualized network functions and service chaining in serverless computing infrastructure
US10938677B2 (en) 2017-04-12 2021-03-02 Cisco Technology, Inc. Virtualized network functions and service chaining in serverless computing infrastructure
US10884807B2 (en) 2017-04-12 2021-01-05 Cisco Technology, Inc. Serverless computing and task scheduling
US11102135B2 (en) 2017-04-19 2021-08-24 Cisco Technology, Inc. Latency reduction in service function paths
US10333855B2 (en) 2017-04-19 2019-06-25 Cisco Technology, Inc. Latency reduction in service function paths
US10554689B2 (en) 2017-04-28 2020-02-04 Cisco Technology, Inc. Secure communication session resumption in a service function chain
US11539747B2 (en) 2017-04-28 2022-12-27 Cisco Technology, Inc. Secure communication session resumption in a service function chain
US10735275B2 (en) 2017-06-16 2020-08-04 Cisco Technology, Inc. Releasing and retaining resources for use in a NFV environment
US11196640B2 (en) 2017-06-16 2021-12-07 Cisco Technology, Inc. Releasing and retaining resources for use in a NFV environment
US10798187B2 (en) 2017-06-19 2020-10-06 Cisco Technology, Inc. Secure service chaining
US11108814B2 (en) 2017-07-11 2021-08-31 Cisco Technology, Inc. Distributed denial of service mitigation for web conferencing
US10397271B2 (en) 2017-07-11 2019-08-27 Cisco Technology, Inc. Distributed denial of service mitigation for web conferencing
US11115276B2 (en) 2017-07-21 2021-09-07 Cisco Technology, Inc. Service function chain optimization using live testing
US10673698B2 (en) 2017-07-21 2020-06-02 Cisco Technology, Inc. Service function chain optimization using live testing
US11063856B2 (en) 2017-08-24 2021-07-13 Cisco Technology, Inc. Virtual network function monitoring in a network function virtualization deployment
US10791065B2 (en) 2017-09-19 2020-09-29 Cisco Technology, Inc. Systems and methods for providing container attributes as part of OAM techniques
US11018981B2 (en) 2017-10-13 2021-05-25 Cisco Technology, Inc. System and method for replication container performance and policy validation using real time network traffic
US11252063B2 (en) 2017-10-25 2022-02-15 Cisco Technology, Inc. System and method for obtaining micro-service telemetry data
US10541893B2 (en) 2017-10-25 2020-01-21 Cisco Technology, Inc. System and method for obtaining micro-service telemetry data
US11122008B2 (en) 2018-06-06 2021-09-14 Cisco Technology, Inc. Service chains for inter-cloud traffic
US10666612B2 (en) 2018-06-06 2020-05-26 Cisco Technology, Inc. Service chains for inter-cloud traffic
US11799821B2 (en) 2018-06-06 2023-10-24 Cisco Technology, Inc. Service chains for inter-cloud traffic

Also Published As

Publication number Publication date
CN105379218B (en) 2018-09-07
US10581700B2 (en) 2020-03-03
EP3148149A4 (en) 2017-05-03
US20170099194A1 (en) 2017-04-06
EP3148149A1 (en) 2017-03-29
CN105379218A (en) 2016-03-02
JP2017518710A (en) 2017-07-06

Similar Documents

Publication Publication Date Title
WO2016004556A1 (en) Service flow processing method, apparatus and device
US10791066B2 (en) Virtual network
US10742697B2 (en) Packet forwarding apparatus for handling multicast packet
US20150358232A1 (en) Packet Forwarding Method and VXLAN Gateway
US9419940B2 (en) IPv4 data center support for IPv4 and IPv6 visitors
WO2017004778A1 (en) Routing control method, device and system
JP6619096B2 (en) Firewall cluster
CA2950206A1 (en) Flow entry configuration method, apparatus, and system
CN106559292A (en) A kind of broad band access method and device
US10447603B2 (en) Control signaling transmission method and device
WO2015014187A1 (en) Data forwarding method and apparatus that support multiple tenants
WO2017186122A1 (en) Traffic scheduling
CN104852840A (en) Method and device for controlling mutual access between virtual machines
WO2014179923A1 (en) Network configuration method, device and system based on sdn
US11018990B2 (en) Route priority configuration method, device, and controller
WO2016049926A1 (en) Data packet processing apparatus and method
WO2014139157A1 (en) Method for packet processing and packet device and system
JP5534033B2 (en) Communication system, node, packet transfer method and program
WO2016019676A1 (en) Method, apparatus and system for processing data packet in software defined network (sdn)
US9438475B1 (en) Supporting relay functionality with a distributed layer 3 gateway
US9749240B2 (en) Communication system, virtual machine server, virtual network management apparatus, network control method, and program
EP3503484A1 (en) Message transmission method, device and network system
WO2018161827A1 (en) Address self-learning method and device, and switch
WO2015074258A1 (en) Method, apparatus and system for controlling forwarding of service data in virtual network
WO2012167480A1 (en) Method, device and system for detecting and establishing local route

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14897135

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016573955

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014897135

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014897135

Country of ref document: EP