WO2015085470A1 - Method and apparatus for service routing - Google Patents

Method and apparatus for service routing Download PDF

Info

Publication number
WO2015085470A1
WO2015085470A1 PCT/CN2013/088898 CN2013088898W WO2015085470A1 WO 2015085470 A1 WO2015085470 A1 WO 2015085470A1 CN 2013088898 W CN2013088898 W CN 2013088898W WO 2015085470 A1 WO2015085470 A1 WO 2015085470A1
Authority
WO
WIPO (PCT)
Prior art keywords
service chain
user data
service
label
vas
Prior art date
Application number
PCT/CN2013/088898
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 PCT/CN2013/088898 priority Critical patent/WO2015085470A1/en
Priority to CN201380081474.7A priority patent/CN105814860B/en
Publication of WO2015085470A1 publication Critical patent/WO2015085470A1/en

Links

Classifications

    • 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
    • H04L67/1027Persistence of sessions during load balancing

Definitions

  • Embodiments of the present invention relate to the field of communications and, more particularly, to methods and apparatus for traffic routing. Background technique
  • VAS value-added service servers
  • the service routing process for providing a value-added service to the user is as follows:
  • the controller generates a flow table according to the service routing policy of the user data packet and sends the flow table to the switch; the switch performs service routing on the user data packet according to the service routing policy of the user data packet.
  • the user data message is passed through the corresponding VAS to obtain the service quality of the corresponding VAS.
  • VAS value-added service services
  • VAS instances are deployed for similar value-added service services, and VAS instances that provide similar value-added service services form a VAS pool.
  • the method for performing service routing on user data packets provided in the prior art, The user data packet can be obtained through the corresponding VAS pool, and the value-added service is provided by the specific VAS instance in the VAS pool. This causes the load of the specific VAS instance in the same VAS pool to be unbalanced.
  • How to implement load balancing between similar VAS instances in a VAS pool is a problem that network operators need to solve when providing value-added services for users of the same value-added service. Summary of the invention
  • the embodiments of the present invention provide a device, a method, and a system for service routing, which can implement load balancing between similar VAS instances in a VAS pool to ensure user service experience.
  • a method for service routing including: a traffic classifier (Traffic Clas s if ier, abbreviated as "TC") acquiring a policy and a charging function entity (Poic icy and Charging Rules Funct.
  • the TC is configured to mark the service data label of the user data packet, and send the user data packet marked with the service chain label to the switch, so that the switch receives the controller according to the service.
  • the service data route is performed on the user data packet marked with the service chain label according to the flow table.
  • the method further includes: the TC receiving a service chain identifier of a user data packet sent by the PCRF; the TC randomly assigning a group number to the user datagram a service chain label constituting the user data packet;
  • the service chain label of the user data packet includes a service chain identifier and an extended identifier, where the extended identifier is a group number randomly assigned by the TC to the user data packet.
  • the PCRF acquires a service chain identifier of the user data packet, and the PCRF randomly assigns a group number to the user data packet to form the user data.
  • the service chain label of the packet, the service chain label of the user data packet includes a service chain identifier and an extended identifier, where the extension identifier is a group number randomly assigned by the TC to the user data packet.
  • the switch receiving, by the controller, a flow table that is generated by the controller according to the service chain label and the weight of the specific VAS instance on the service chain specifically includes: the controller The VAS instance in the VAS pool is allocated to the user data according to the service chain label and the weight of each VAS instance in the VAS pool through which the service chain passes, and a flow table is generated and sent to the switch.
  • the second aspect provides a service routing method, including: receiving, by a controller, a service chain label of a user data packet sent by a traffic classifier TC, where the service chain label includes a service chain identifier and an extended identifier;
  • the VAS instance in the VAS pool is allocated to the user data packet according to the service chain label and the weight of each VAS instance in the VAS pool of the value-added service server, and the flow table is generated and sent to the switch.
  • the third aspect provides a method for service routing, including: a traffic classifier TC acquiring a service chain label of a user data packet sent by a policy and a charging function entity PCRF, or acquiring a user data packet from the TC itself.
  • the service chain label or the service chain label of the user data packet sent by the controller where the service chain label is used to identify a service chain composed of a VAS instance of the specific value-added service server; a service chain label, sending the user data packet marked with the service chain label to the switch, so that the switch receives the flow table generated by the controller according to the service chain label, and then, according to the flow table, User data packets of the service chain label are used for service routing.
  • the TC acquires a service chain label of a user data packet from the TC itself, including: the TC receiving a service route of a user data packet sent by the PCRF The TC selects a specific VAS instance for the user data according to the weight information of the VAS instance in the VAS pool of the user data packet service chain, and forms a service chain to obtain a service chain label corresponding to the service chain. .
  • the method before the TC acquires the service chain label of the user data packet sent by the PCRF, the method further includes: the VSF that the PCRF passes according to the service chain of the user data packet
  • the weight information of the VAS instance in the pool is the user data "3", and the specific VAS instance is selected to form a service chain, and the service chain label corresponding to the service chain is obtained.
  • the method further includes: the TC sending the service chain label to the controller And the controller is configured to obtain, according to the service chain label, a service chain consisting of a specific VAS instance that is marked by the service chain label, and generate a flow table.
  • the method before the TC acquires the service chain information of the user data packet sent by the controller, the method further includes: the controller receiving the service chain sent by the TC; The controller selects a specific VAS instance for the user data packet according to the weight of the VAS instance on the VAS pool that the service chain passes, and allocates the service chain label.
  • the fourth aspect provides an apparatus for service routing, including: an acquiring unit, configured to acquire a service chain label of a user data packet sent by a policy and charging function entity PCRF, or a user datagram from the apparatus itself.
  • the service chain label includes a service chain identifier and an extended identifier, where the service chain identifier is used to mark a service chain
  • the processing unit is configured to: label the user data packet with the service chain label; a unit, configured to send the user data packet labeled with the service chain label to the switch, so that the switch receives the flow generated by the controller according to the service chain label and the weight of the specific value-added service server VAS instance on the service chain.
  • the service routing is performed on the user data packet marked with the service chain label according to the flow table.
  • the fifth aspect provides an apparatus for service routing, including: a receiving unit, configured to receive a service chain label of a user data packet sent by a traffic classifier TC, where the service chain label includes a service chain identifier and an extended identifier. a processing unit, configured to allocate a VAS instance in the VAS pool to the user data packet according to a service chain label and a weight of each VAS instance in the VAS pool of the value-added service server, and generate a flow table. Send to the switch.
  • a receiving unit configured to receive a service chain label of a user data packet sent by a traffic classifier TC, where the service chain label includes a service chain identifier and an extended identifier.
  • a processing unit configured to allocate a VAS instance in the VAS pool to the user data packet according to a service chain label and a weight of each VAS instance in the VAS pool of the value-added service server, and generate a flow table. Send to the switch.
  • the sixth aspect provides an apparatus for service routing, including: an acquiring unit, configured to acquire a service chain label of a user data packet sent by a policy and charging function entity PCRF, or obtain user data from the apparatus itself. a service chain label of the packet or a service chain label of the user data packet sent by the controller, where the service chain label is used to identify a service chain formed by a specific VAS instance, and the processing unit is configured to: a service chain label, configured to send the user data packet marked with the service chain label to the switch, so that the switch receives the controller according to the service After the flow table generated by the chain tag, the service data route is performed on the user data packet marked with the service chain label according to the flow table.
  • the service chain label of the service chain formed by the specific VAS instance is allocated to the user data packet of the same service routing policy by the controller according to the foregoing technical solution.
  • the service chain label generates a flow table and sends it to the switch, which is used by the switch to perform service routing on the user data packet to implement load balancing between the VAS instances to ensure the service experience of the user.
  • FIG. 1 is a schematic diagram of a network architecture based on an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a method for service routing according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of another method for service routing according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another method for service routing according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of an apparatus for service routing according to an embodiment of the present invention.
  • FIG. 6 is a schematic block diagram of an apparatus for service routing according to an embodiment of the present invention.
  • FIG. 7 is a schematic block diagram of another apparatus for service routing according to an embodiment of the present invention.
  • FIG. 8 is a signaling interaction diagram of a method for service routing according to an embodiment of the present invention.
  • FIG. 9 is a signaling diagram of another method for service routing according to an embodiment of the present invention.
  • FIG. 10 is a signaling interaction diagram of another method for service routing according to an embodiment of the present invention.
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • FDD Frequency Division Duplex
  • TDD Time Division Duplex
  • Universal Mobile Communication System Universal Mobile Communication System
  • UMTS Global Interconnected Wave Access ( Worldwide Interoperability for Microwave Access , referred to as "UMTS”
  • UMTS Global Interconnected Wave Access
  • Worldwide Interoperability for Microwave Access referred to as
  • WiMAX WiMAX
  • FIG. 1 is a schematic diagram of a network architecture based on an embodiment of the present invention. It should be understood that the network architecture shown in FIG. 1 is a preferred application architecture of the embodiment of the present invention, but the embodiment of the present invention may be based on other network architectures, which is not limited by the embodiment of the present invention.
  • the Policy and Charging Enforcement Function (PCEF), the Policy and Charging Rules Function ("PCRF")
  • PCEF Policy and Charging Rules Function
  • the TC is mainly used to classify user data packets and put corresponding service chain labels.
  • the PCRF is mainly used to select a corresponding service routing policy for the user data packet.
  • the controller is mainly used to generate a flow table for the user data packet and send it to the switch.
  • the switch is mainly used to perform service on the user data packet according to the flow table. Routing;
  • the VAS pool includes multiple specific VAS instances that provide homogeneous value-added services.
  • FIG. 2 is a schematic flowchart of a method for service routing according to an embodiment of the present invention.
  • the method may be performed by any suitable device, for example, by a TC, but the present invention is not limited thereto.
  • the traffic classifier TC obtains a service chain label of the user data packet sent by the policy and the charging function entity PCRF, or obtains a service chain label of the user data packet from the TC itself, where the service chain label includes a service chain.
  • the TC acquires the TC to acquire a user data packet from the TC.
  • the method further includes: the TC receiving the service chain identifier of the user data packet sent by the PCRF; the TC randomly assigning the group number to the user data packet, and forming a service chain of the user data packet
  • the service chain label of the user data packet includes a service chain identifier and an extended identifier, where the extended identifier is a group number randomly assigned by the TC to the user data packet.
  • the service chain identifier is used to identify the service routing policy.
  • the TC is randomly assigned a group number for the user data packet of the same service routing policy; after the TC forms the service chain label of the user data packet, the service chain label is sent to the controller.
  • the controller obtains the service routing policy of the user data packet according to the service chain identifier in the service chain label; the controller further selects a specific one according to the weight of the VAS instance in the VAS pool on the service routing policy.
  • the VAS instance forms a service chain, generates a flow table, and sends the flow table to the switch, where the switch performs service routing on the user data packet according to the flow table.
  • the weight of the VAS instance may be static or dynamic, and the static weight represents an initial value of load capacity, capacity, and the like of the VAS instance, and the dynamic weight indicates The load capacity, capacity and other parameters of the VAS instance are updated in real time.
  • the user data packets of the same service routing policy pass through the VAS instance in the VAS pool, which may result in unbalanced load between the VAS instances in the same VAS pool, that is, the number of user data packets passing through some VAS instances.
  • the weights of VAS instances do not correspond. Therefore, the method for service routing provided by the embodiment of the present invention can implement load balancing between VAS instances in the VAS pool to ensure the service experience of the user.
  • the S201 further includes: the PCRF acquiring a service chain identifier of the user data packet; the PCRF randomly assigning a group number to the user data packet to form the user data
  • the service chain label of the packet, the service chain label of the user data packet includes a service chain identifier and an extended identifier, where the extension identifier is a group number randomly assigned by the TC to the user data packet.
  • the TC sends the service chain label to the user data packet, and sends the user data packet labeled with the service chain label to the switch, so that the switch receives the controller according to the service chain label and the After the flow table generated by the weight of the VAS instance of the specific value-added service server in the service chain, the service data route is performed on the user data packet marked with the service chain label according to the flow table.
  • the switch receiving the flow table generated by the controller according to the service chain label and the weight of the specific VAS instance on the service chain specifically includes: the controller passes the service chain label and the service chain.
  • the weight of each VAS instance in the VAS pool is assigned to the VAS instance in the VAS pool for the user data packet, and a flow table is generated and sent to the switch.
  • the TC adds a service chain label including a service chain identifier and an extended identifier to the user data packet, and sends the user data packet labeled with the service chain label to the switch, and the switch controls the packet according to the control.
  • the controller sends a service route to the user data packet according to the traffic table generated by the service chain label and the weight of the specific value-added service server VAS instance on the service chain.
  • the load balancing between VAS instances in the VAS pool can be implemented to ensure the user experience.
  • FIG. 3 is a schematic flowchart of another method for service routing according to an embodiment of the present invention.
  • the method may be performed by any suitable device, for example, a controller, but the invention is not limited thereto.
  • the method provided by the embodiment of the present invention can cooperate with the method shown in FIG. 2.
  • the method provided by the embodiment of the present invention includes:
  • the controller receives a service chain label of a user data packet sent by the stream classifier TC, where the service chain label includes a service chain identifier and an extended identifier, where the service chain identifier is used to indicate a service chain.
  • the controller allocates a VAS instance in the VAS pool to the user data packet according to a service chain label and a weight of each VAS instance in the VAS pool of the value-added service server, and generates a flow table. Send to the switch.
  • the controller sends the service chain label including the service chain identifier and the extended identifier and the weight of each VAS instance in the VAS pool that the service chain passes according to the traffic classifier to the user.
  • the data is allocated to the VAS instance in the VAS pool, and a flow table is generated and sent to the switch.
  • the extension identifier is a group number of the user data packet, so the controller selects the same VAS instance for the user data packet of the same group according to the weight of the VAS instance in the upper VAS pool of the service routing policy, and forms a service chain to generate a stream. table.
  • the load balancing between VAS instances in the VAS is implemented to ensure the user experience.
  • FIG. 4 is a schematic diagram of another method for service routing according to an embodiment of the present invention.
  • the method provided by the embodiment of the present invention includes:
  • the traffic classifier TC obtains the service chain label of the user data packet sent by the policy and the charging function entity PCRF, or obtains the service chain label of the user data packet from the TC itself, or obtains the user data packet sent by the controller. a service chain label, where the service chain label is used to identify a service chain composed of a VAS instance of a specific value-added service server;
  • the TC acquires a service chain label of a user data packet from the TC itself, and includes a service routing policy of the TC receiving a user data packet sent by the PCRF, where the TC is based on the user data packet service.
  • the weight information of the VAS instance in the VAS pool that the chain passes through selects a specific VAS instance for the user data packet, and forms a service chain to obtain the service chain label of the service chain; or the PCRF passes the service data packet according to the service data packet.
  • the weight information of the VAS instance in the VAS pool is used to select a specific VAS instance for the user data packet, and form a service chain.
  • the service chain label corresponding to the service chain is obtained and sent to the TC.
  • the TC further sends the service chain label to the controller, and the controller is configured to query, according to the service chain label, a service chain consisting of a specific VAS instance indicated by the service chain label, to generate a flow table.
  • a specific VAS instance is selected for the user data according to the weight information of the VAS instance in the VAS pool of the user data packet service chain to form a service chain.
  • Load balancing between VAS instances in the VAS pool can be implemented to ensure the user experience.
  • the TC before the TC acquires the service chain label of the user data packet sent by the controller, the TC further includes the controller receiving the service chain sent by the TC; the controller is based on the VAS on the VAS pool that the service chain passes. The weight of the instance, select a specific VAS instance for the user data file, and assign the service chain label.
  • the TC sends the service data label to the user data packet, and sends the user data packet labeled with the service chain label to the switch, so that the switch receiving controller generates the label according to the service chain label.
  • the service routing is performed on the user data packet marked with the service chain label according to the flow table.
  • a VAS instance in a VAS pool can be implemented.
  • Balanced load balancing ensures the user's business experience.
  • FIG. 5 is a schematic block diagram of an apparatus for service routing according to an embodiment of the present invention.
  • the apparatus may be a TC500, but the present invention is not limited thereto, and the apparatus may be used to perform the method shown in FIG. A method for service routing provided by an embodiment of the present invention.
  • an apparatus for service routing includes: an obtaining unit 501, configured to acquire a service chain label of a user data packet sent by a policy and a charging function entity PCRF, or from the apparatus itself. a service chain label of the user data packet, where the service chain label includes a service chain identifier and an extended identifier, where the service chain identifier is used to mark the service chain;
  • the processing unit 502 is configured to apply the service chain label to the user data file, and send, by the sending unit 503, the user data packet that is marked with the service chain label to the switch, so that the switch receives the controller according to the After the service chain label and the flow table generated by the weight of the VAS instance of the specific value-added service server in the service chain, the service route is performed on the user data packet marked with the service chain label according to the flow table.
  • the device for service routing sends a service chain label including a service chain identifier and an extended identifier to a user data packet, and sends the label to the switch, and the switch receives the controller according to the service chain.
  • the service route is performed on the user data packet marked with the service chain label according to the flow table. The load balancing between VAS instances in the VAS is implemented to ensure the user experience.
  • FIG. 6 is a schematic block diagram of an apparatus for service routing according to an embodiment of the present invention.
  • the apparatus may be a controller 600, and the present invention is not limited thereto.
  • the apparatus provided may perform the method provided by the embodiment of the invention illustrated in FIG.
  • the apparatus provided by the embodiment of the present invention includes:
  • the receiving unit 601 is configured to receive a service chain label of the user data packet sent by the stream classifier TC, where the service chain label includes a service chain identifier and an extended identifier.
  • the processing unit 602 is configured to allocate a VAS instance in the VAS pool to the user data packet according to the weight of each VAS instance in the VAS pool of the value-added service server, and generate a flow.
  • the sending unit 603 is configured to send the flow table to the switch.
  • the device receives the service chain label including the service chain identifier and the extended identifier sent by the TC, according to the weight of each VAS instance in the VAS pool of the value-added service server passing through the service chain label and the service chain. And allocating a VAS instance in the VAS pool to the user data packet, generating a flow table, and sending the flow table to the switch.
  • the load balancing between VAS instances in the VAS pool can be implemented to ensure the user experience.
  • FIG. 7 is a schematic block diagram of another apparatus for service routing according to an embodiment of the present invention.
  • the apparatus may be a TC, but the present invention is not limited thereto.
  • the apparatus provided by the embodiment of the present invention may perform the method provided by the embodiment of the present invention shown in FIG.
  • the apparatus provided by the embodiment of the present invention includes:
  • the obtaining unit 701 is configured to obtain a service chain label of the user data packet sent by the policy and the charging function entity PCRF, or obtain a service chain label of the user data packet from the TC itself, or obtain a user data packet sent by the controller. a service chain label, where the service chain label is used to identify a service chain composed of specific VAS instances;
  • the processing unit 702 is configured to apply the service chain label to the user data packet.
  • the sending unit 703 is configured to send the user data packet that is marked with the service chain label to the switch, so that the switch receives the flow table generated by the controller according to the service chain label, and then, according to the flow table, The user data packet marked with the service chain label is used for service routing.
  • the device provided by the embodiment of the present invention obtains the service chain label of the service chain formed by the specific VAS instance, and adds the service chain label to the user data packet, and sends the user tagged with the service chain label.
  • the data packet is sent to the switch, so that the switch receives the flow table generated by the controller according to the service chain label, and then performs service routing on the user data packet marked with the service chain label according to the flow table.
  • the load balancing between VAS instances in the VAS is implemented to ensure the user experience.
  • Figure 8 is a diagram showing a signaling interaction diagram of a method for service routing according to an embodiment of the present invention.
  • the embodiment of the present invention is a specific embodiment of the embodiment of the present invention shown in Figure 2 and Figure 3.
  • the service chain label is allocated to the user data packet by the TC, and is sent to the controller, and is used by the controller according to the service chain label and the weight of each VAS in the VAS pool that the service chain passes. Generate a flow table and send it to the switch.
  • the method for service routing includes: S80 policy and charging execution function entity (Po l i cy and Charg ing
  • PCEF The Enforcement Functation
  • IP-connected access network session IP-connect ivi ty acces s network, referred to as 'IP_CA'
  • 'IP_CA' IP-connected access network session
  • the PCEF sends an IP-CAN session establishment indication to the PCRF.
  • the indication message includes an identifier of the user, an IP address of the user, and the user.
  • the requested quality of service the user's access type and other parameters.
  • the PCRF sends a request to the SPR to request to obtain the subscription information of the user.
  • the SPR returns the user's subscription information to the PCRF.
  • the subscription information includes user priority information, a service identifier that the user is allowed to access, and whether the user can be detected or the like.
  • the PCEF formulates a Policy Control and Charging (PCC) policy and an Application Detection Control (ADC) for the user according to the information and parameters obtained in steps 2, 3, and 4. Strategy, make strategic decisions.
  • PCC Policy Control and Charging
  • ADC Application Detection Control
  • the PCRF queries the routing policy of the service chain according to the priority information of the user, the service type that the user is allowed to access, and the access type of the user, and selects an appropriate service chain for the user data packet.
  • the PCRF obtains the service chain identifier of the user data packet.
  • the PCRF sends a traffic detection function (Traffic Detection Function, TDF for short) session establishment request information to the TC.
  • TDF Traffic Detection Function
  • the TDF session establishment request information includes an execution control cell, where the execution control cell includes a service chain identifier, and the service chain identifier is used to identify the same type of service chain.
  • the content of the VAS in the service chain identifier may be described by a VAS function, which may be a video optimization, a web cache, or the like; or the VAS function is configured in the controller to describe the VAS function in advance. If VAS 1 is used to represent VAS for video optimization, that is, the same service chain identifier is used to identify the service that has undergone the same function VAS. Chain.
  • the TC sends a TDF session establishment response message to the PCRF.
  • the TC receives the user data packet, randomly assigns a group number to the user data packet, and forms a service chain label.
  • the TC groups the service chain identifier, where the service chain identifier is subdivided into multiple groups, and the TC randomly allocates the group group number to the user data packet.
  • User data packets on the service chain corresponding to the same service chain identifier are evenly distributed to each group.
  • the service chain label is composed of two parts: a service chain identifier and an extension identifier, and the extension identifier is a group number assigned to the service chain.
  • the same business chain logo 1 is subdivided into
  • the group numbers are 1, 2, 10 respectively.
  • the numbers in the group numbers 1-10 are randomly assigned; if the user data is The packet random assignment group number is 6, and the service chain label of the user data packet includes the service chain identifier and the assigned group number.
  • the service chain label can be expressed in the form of 1-5, the first line in front of the short line indicates the service chain identifier, and the 5 after the short line indicates the assigned group number; or the service chain identifier can be described by the VAS of the function of the service chain.
  • web cache->video opt imizat ion 5
  • "web cache->v ideo opt imiza t ion” indicates that the service chain passes the VAS functioning as data buffer and the VAS functioning as video optimization, and the next 5 indicates the allocation.
  • the service chain identifier of the user data packet is obtained; and the PCRF encrypts the service chain identifier of the user data. Grouping; the PCRF randomly assigns the group of groups Sending the user data packet to the service chain label of the user data packet, and sending the service chain label to the TC
  • step 9 The specific steps of the PCRF to allocate the service chain label can be referred to step 9.
  • the TC adds a service chain label to the user data packet.
  • the service chain label includes the service chain identifier and the group group number.
  • the S81 TC sends the user data packet labeled with the service chain to the switch.
  • the switch does not have a corresponding flow table, and the switch sends the packet packet to the controller, where the incoming packet includes the service chain label.
  • the controller receives the service chain label, and according to the service chain label, the user data is allocated to a specific VAS instance in the VAS pool to calculate a specific service routing path and generate a flow. Table, sends the flow table to the switch.
  • the controller may share the service load of the user data packet to the specific VAS instance in the VAS pool according to the weight of the VAS instance in the VAS pool in the service chain.
  • the weight information of the VAS instance may be static or dynamic.
  • the static weight indicates an initial value of load capacity, capacity, and the like of the VAS instance
  • the dynamic weight indicates a load that is updated by the VAS instance in real time. Capabilities, capacity and other parameters.
  • the controller can share the user data packets according to the weight information in the specific VAS instance.
  • a VAS instance user data packets belonging to the same group number are assigned to the same VAS instance, and a flow table is generated. S814. The switch performs service routing on the user data packet marked with the service chain label according to the flow table.
  • the TC forms a service chain label of the user data packet, and sends the label to the controller for the controller to pass according to the service chain label and the service chain.
  • the weight of each VAS in the VAS pool is generated and sent to the switch. This implements load balancing between VAS instances to ensure the user's service experience.
  • FIG. 9 is a schematic diagram of a signaling interaction diagram of another method for service routing according to an embodiment of the present invention.
  • the embodiment of the present invention is a specific embodiment provided in FIG.
  • the weight information of the VAS instance in the VAS pool of the user data packet is selected as a specific VAS instance for the user data packet to form a service chain, and the service chain label corresponding to the service chain is obtained and sent to the controller.
  • the controller queries the service chain formed by the VAS instance in the VAS pool according to the service chain label, and sends a flow table to the switch.
  • the specific VAS instances in the VAS pool that have passed the service routing policy are fully aligned according to the service routing policy, and the service chain labels are allocated.
  • the specific VAS instances on the VAS pool that have passed the service routing policy are fully aligned and assigned service chain labels.
  • S901-S906 can refer to the steps in the service routing method shown in FIG.
  • the PCRF sends TDF session establishment request information to the TC.
  • the TDF session establishment request information includes an execution control cell, where the execution control cell includes a service chain identifier, and the service chain identifier is used to identify the same type of service chain.
  • the service chain identifier may identify the service routing policy 1 in the example in the embodiment of the present invention, that is, the service routing policy passing through the VAS pool 1 and the VAS pool 2.
  • the TC sends a TDF session establishment response message to the PCRF.
  • the TC selects a specific VAS instance for the user data packet according to the weight information of the VAS instance in the VAS pool of the service routing policy of the user data packet, and forms a service chain to obtain a service chain corresponding to the service chain. label.
  • the TC learns the VAS pool that the user data packet passes according to the service reason policy of the user data packet, and selects a specific VAS instance according to the weight information of the VAS instance in the passed VAS pool to form a specific VAS instance.
  • Business chain In this way, load balancing in the VAS pool is achieved.
  • the TC can obtain the service chain label corresponding to the service chain in the internal database according to the list of the service chain and the service chain label formed by the specific VAS instance.
  • the PCRF may select a specific VAS instance for the user according to the weight information of the VAS instance in the VAS pool in the VAS pool of the service routing policy of the user data packet, and form a service chain. Describe a service chain label corresponding to the service chain, and send the service chain label to the TC. Refer to step 9 for specific steps.
  • the TC receives a user data packet, and labels the service data label for the user data packet.
  • the service chain label identifies a service chain formed by the VAS instance in the VAS pool through which the service routing policy passes;
  • the TC sends the user data packet marked with the service chain label to the switch.
  • the switch does not have a corresponding flow table, and the switch sends the packet packet to the controller, where the incoming packet message includes the service chain label.
  • the controller receives the service chain label, and queries the service chain formed by the VAS instance in the VAS pool according to the service chain label, and sends the flow table to the switch.
  • the switch performs service routing on the user data packet marked with the service chain according to the flow table.
  • the controller queries the service chain formed by the VAS instance in the VAS pool according to the configured service chain of the specific V AS instance and the service chain label, and sends the flow table to the switch.
  • the TC selects a specific VAS instance for the user data packet according to the weight information of the specific VAS instance, forms a service chain, queries the service chain label, and sends the label to the controller.
  • the controller sends a flow table to the switch according to the service chain label. This implements load balancing between VAS instances to ensure the user's service experience.
  • FIG. 10 is a schematic diagram of a signaling interaction diagram of another method for service routing according to an embodiment of the present invention.
  • the embodiment of the present invention is a specific embodiment of FIG.
  • the controller selects a specific VAS instance for the user data packet according to the weight of the VAS instance in the VAS pool that the service routing policy passes, and forms a service chain, and allocates a service chain label.
  • S1001-1006 can refer to steps S801-S806 in the method for service routing shown in FIG.
  • the TC receives a user data packet.
  • the TC sends the service routing policy to a controller.
  • the controller selects a specific VAS instance for the user data packet according to the weight of the VAS instance in the VAS pool that the service routing policy passes, and forms a service chain, and allocates a service chain label.
  • the S101 controller sends the service chain label to the TC.
  • the TC sends the service chain label to the user data packet and sends the label to the switch.
  • the controller generates a flow table that is sent to the switch.
  • the switch performs service routing on user data packets according to the flow table. Therefore, based on the method for the service routing provided by the embodiment of the present invention, the controller root selects a specific VAS instance for the user data packet according to the weight of the VAS instance in the VAS pool that the service routing policy passes, and forms a service chain. Load balancing between VAS instances in the VAS pool is implemented.
  • FIG. 4 and FIG. 5 can be implemented by a general-purpose processor, a digital signal processor, and an application specific integrated circuit ( ASIC), Field Programmable Gate Array (FPGA) or other programmable logic
  • a general purpose processor may be a microprocessor, which may alternatively be any conventional processor, controller, microcontroller or state machine.
  • the processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration. achieve.
  • a system for content caching which includes the TC 500 shown in FIG. 5 and the controller 600 shown in FIG. 6.
  • TC 500 shown in FIG. 5
  • controller 600 shown in FIG. 6.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • 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 Electrical, mechanical or other forms of connection may also be made through indirect coupling or communication connections of some interfaces, devices or units.
  • 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 embodiments of the present invention.
  • 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 a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (Read-Only Memory, abbreviated as "ROM”), a random access memory (“RAM”), a disk or A variety of media such as optical discs that can store program code.
  • ROM Read-Only Memory
  • RAM random access memory

Abstract

Disclosed are a method and apparatus for service routing. The method comprises: selecting a specific VAS example for a user data packet to form a service link according to a service link tag of the user data packet; or selecting a specific VAS example for a user data packet to further allocate the service link tag for the user data packet; and generating, by a controller, a flow table according to the service link tag, and sending same to a switch for performing service routing on the user data packet by the switch. A service link is formed by selecting a specific VAS example for a user data packet. The problem that urgently needs to be solved by network operators currently is to realize the load balance among similar VAS examples in a VAS pool.

Description

一种业务路由的方法和装置 技术领域  Method and device for service routing
本发明实施例涉及通信领域, 并且更具体地, 涉及用于业务路由 的方法和装置。 背景技术  Embodiments of the present invention relate to the field of communications and, more particularly, to methods and apparatus for traffic routing. Background technique
互联网技术的飞速发展和智能终端的广泛普及,使得各种移动应 用渗透到人们的日常生活中, 也带来了移动端流量井喷式增长,但运 营商收益并未增加, 每用户收益反而在下降。 目前, 运营商釆用部署 各种增值业务服务器(Va lue Added Service , 简称为 "VAS" ) 的方 式部署各种增值服务的方式, 以吸引更多用户,从而提升其每用户收 益。 上述 VAS包括有视频优化器、 业务流压缩器、 数据緩存器、 深度 报文检测器等等。  The rapid development of Internet technology and the widespread popularity of intelligent terminals have made various mobile applications penetrate into people's daily lives, and have also led to the growth of mobile-side traffic, but the revenue of operators has not increased, and the revenue per user has declined. . At present, operators deploy various value-added service servers (Va lue added service, referred to as "VAS") to deploy various value-added services to attract more users and increase their per-user revenue. The above VAS includes a video optimizer, a traffic stream compressor, a data buffer, a deep message detector, and the like.
一般地, 为用户提供增值服务的业务路由过程如下: 控制器根据 用户数据报文的业务路由策略生成流表发送至交换机;交换机根据用 户数据报文的业务路由策略对用户数据报文进行业务路由,使得用户 数据报文经过相应的 VAS , 获取相应 VAS的服务质量。  Generally, the service routing process for providing a value-added service to the user is as follows: The controller generates a flow table according to the service routing policy of the user data packet and sends the flow table to the switch; the switch performs service routing on the user data packet according to the service routing policy of the user data packet. The user data message is passed through the corresponding VAS to obtain the service quality of the corresponding VAS.
随着使用增值业务服务的用户群体的增加,经常出现多个用户请 求同类增值业务服务的场景。 当前部署 VAS时, 对同类增值业务服务 会部署多个 VAS实例, 提供同类增值业务服务的 VAS实例组成一个 VAS 池。 然而, 现有技术中提供的对用户数据报文进行业务路由的方法, 可以使得用户数据报文经过相应的 VAS池获取相应的服务, 并不关注 由 VAS池中哪一个具体 VAS实例提供增值服务, 如此会造成同一个 VAS 池中具体 VAS实例的负载不均衡。 如何为多个同类增值业务服务的用 户提供增值服务时, 实现 VAS池中同类 VAS实例间的负载均衡, 是目前 网络运营商亟待解决的问题。 发明内容 With the increase in the number of users using value-added service services, there are often scenarios in which multiple users request similar value-added service services. When VAS is deployed, multiple VAS instances are deployed for similar value-added service services, and VAS instances that provide similar value-added service services form a VAS pool. However, the method for performing service routing on user data packets provided in the prior art, The user data packet can be obtained through the corresponding VAS pool, and the value-added service is provided by the specific VAS instance in the VAS pool. This causes the load of the specific VAS instance in the same VAS pool to be unbalanced. How to implement load balancing between similar VAS instances in a VAS pool is a problem that network operators need to solve when providing value-added services for users of the same value-added service. Summary of the invention
本发明实施例提供了一种业务路由的装置、方法及***, 能够实 现 VAS池中同类 VAS实例间的负载均衡, 保证用户的业务体验。  The embodiments of the present invention provide a device, a method, and a system for service routing, which can implement load balancing between similar VAS instances in a VAS pool to ensure user service experience.
第一方面,提供了一种业务路由的方法,包括:流分类器(Traff ic Clas s if ier , 简称为 "TC" )获取策略和计费功能实体( Pol icy and Charg ing Rules Funct ion, 简称 "PCRF" )发送的用户数据 4艮文的 业务链标签或者获取来自所述 TC 自身的用户数据报文的业务链标签, 所述业务链标签包括业务链标识和扩展标识,所述业务链标识用于标 示业务链; 所述 TC为用户数据报文打上所述业务链标签,发送所述打 上所述业务链标签的用户数据报文至交换机,以便于所述交换机接收 控制器根据所述业务链标签和所述业务链上具体 VAS实例的权重生成 的流表后,根据所述流表对所述打上业务链标签的用户数据报文进行 业务路由。  In a first aspect, a method for service routing is provided, including: a traffic classifier (Traffic Clas s if ier, abbreviated as "TC") acquiring a policy and a charging function entity (Poic icy and Charging Rules Funct. The service chain label of the user data sent by the "PCRF" or the service chain label of the user data packet from the TC itself, the service chain label includes a service chain identifier and an extended identifier, and the service chain identifier The TC is configured to mark the service data label of the user data packet, and send the user data packet marked with the service chain label to the switch, so that the switch receives the controller according to the service. After the chain label and the flow table generated by the weight of the specific VAS instance on the service chain, the service data route is performed on the user data packet marked with the service chain label according to the flow table.
结合第一方面, 在第一种可能实现的方式中, 所述方法还包括: 所述 TC接收 PCRF发送的用户数据报文的业务链标识;所述 TC随机分配 组号给所述用户数据报文, 组成所述用户数据报文的业务链标签; 所 述用户数据报文的业务链标签包括业务链标识和扩展标识,所述扩展 标识为所述 TC随机分配给所述用户数据报文的组号。 With reference to the first aspect, in a first possible implementation, the method further includes: the TC receiving a service chain identifier of a user data packet sent by the PCRF; the TC randomly assigning a group number to the user datagram a service chain label constituting the user data packet; The service chain label of the user data packet includes a service chain identifier and an extended identifier, where the extended identifier is a group number randomly assigned by the TC to the user data packet.
结合第一方面, 在第二种可能的实现方式中, 所述 PCRF获取所述 用户数据报文的业务链标识;所述 PCRF随机分配组号给所述用户数据 报文, 组成所述用户数据报文的业务链标签, 所述用户数据报文的业 务链标签包括业务链标识和扩展标识,所述扩展标识为所述 TC为所述 用户数据报文随机分配的组号。  With reference to the first aspect, in a second possible implementation manner, the PCRF acquires a service chain identifier of the user data packet, and the PCRF randomly assigns a group number to the user data packet to form the user data. The service chain label of the packet, the service chain label of the user data packet includes a service chain identifier and an extended identifier, where the extension identifier is a group number randomly assigned by the TC to the user data packet.
结合第一方面, 在第三种可能的实现方式中, 所述交换机接收控 制器根据所述业务链标签和所述业务链上具体 VAS实例的权重生成的 流表,具体包括:所述控制器根据业务链标签和所述业务链经过的 VAS 池中各个 VAS实例的权重, 为所述用户数据 ^艮文分配所述 VAS池中的 VAS实例, 生成流表并发送至交换机。  With reference to the first aspect, in a third possible implementation manner, the switch receiving, by the controller, a flow table that is generated by the controller according to the service chain label and the weight of the specific VAS instance on the service chain, specifically includes: the controller The VAS instance in the VAS pool is allocated to the user data according to the service chain label and the weight of each VAS instance in the VAS pool through which the service chain passes, and a flow table is generated and sent to the switch.
第二方面, 提供了一种业务路由的方法, 包括: 控制器接收流分 类器 TC发送的用户数据报文的业务链标签,所述业务链标签包括业务 链标识和扩展标识;所述控制器根据业务链标签和所述业务链经过的 增值业务服务器 VAS池中各个 VAS实例的权重,为所述用户数据报文分 配所述 VAS 池中的 VAS实例, 生成流表并发送至交换机。  The second aspect provides a service routing method, including: receiving, by a controller, a service chain label of a user data packet sent by a traffic classifier TC, where the service chain label includes a service chain identifier and an extended identifier; The VAS instance in the VAS pool is allocated to the user data packet according to the service chain label and the weight of each VAS instance in the VAS pool of the value-added service server, and the flow table is generated and sent to the switch.
第三方面, 提供了一种业务路由的方法, 包括: 流分类器 TC获取 策略和计费功能实体 PCRF发送的用户数据报文的业务链标签或者获 取来自所述 TC 自身的用户数据报文的业务链标签或者获取控制器发 送的用户数据报文的业务链标签,所述业务链标签用于标识具体增值 业务服务器 VAS实例组成的业务链; 所述 TC为用户数据 文打上所述 业务链标签,发送所述打上所述业务链标签的用户数据报文至交换机, 以便于所述交换机接收控制器根据所述业务链标签生成的流表后,根 据所述流表对所述打上业务链标签的用户数据报文进行业务路由。 The third aspect provides a method for service routing, including: a traffic classifier TC acquiring a service chain label of a user data packet sent by a policy and a charging function entity PCRF, or acquiring a user data packet from the TC itself. The service chain label or the service chain label of the user data packet sent by the controller, where the service chain label is used to identify a service chain composed of a VAS instance of the specific value-added service server; a service chain label, sending the user data packet marked with the service chain label to the switch, so that the switch receives the flow table generated by the controller according to the service chain label, and then, according to the flow table, User data packets of the service chain label are used for service routing.
结合第三方面, 在第一种可能的实现方式中, 所述 TC获取来自所 述 TC自身的用户数据报文的业务链标签, 包括: 所述 TC接收 PCRF发送 的用户数据报文的业务路由策略;所述 TC根据所述用户数据报文业务 链经过的 VAS池中 VAS实例的权重信息为用户数据 ^艮文选择具体的 VAS 实例, 组成业务链, 获得所述业务链对应的业务链标签。  With reference to the third aspect, in a first possible implementation manner, the TC acquires a service chain label of a user data packet from the TC itself, including: the TC receiving a service route of a user data packet sent by the PCRF The TC selects a specific VAS instance for the user data according to the weight information of the VAS instance in the VAS pool of the user data packet service chain, and forms a service chain to obtain a service chain label corresponding to the service chain. .
结合第三方面, 在第二种可能的实现方式中, 所述 TC获取来自 PCRF发送的用户数据报文的业务链标签之前, 还包括: 所述 PCRF根据 用户数据报文的业务链经过的 VAS池中 VAS实例的权重信息为用户数 据"¾文选择具体的 VAS实例, 组成业务链, 获得所述业务链对应的业 务链标签。  With reference to the third aspect, in a second possible implementation manner, before the TC acquires the service chain label of the user data packet sent by the PCRF, the method further includes: the VSF that the PCRF passes according to the service chain of the user data packet The weight information of the VAS instance in the pool is the user data "3", and the specific VAS instance is selected to form a service chain, and the service chain label corresponding to the service chain is obtained.
结合第三方面,或者第三方面的第一种、第二种可能的实现方式, 在第三种可能的实现方式中, 所述方法还包括: 所述 TC发送所述业务 链标签至控制器, 用于所述控制器根据所述业务链标签, 查询获得所 述业务链标签标示的由具体 VAS实例组成的业务链, 生成流表。  With the third aspect, or the first and second possible implementation manners of the third aspect, in a third possible implementation, the method further includes: the TC sending the service chain label to the controller And the controller is configured to obtain, according to the service chain label, a service chain consisting of a specific VAS instance that is marked by the service chain label, and generate a flow table.
结合第三方面, 在第四种可能的实现方式中, 所述 TC获取来自控 制器发送的用户数据报文的业务链信息之前, 还包括: 所述控制器接 收所述 TC发送的业务链; 所述控制器根据所述业务链经过的 VAS池上 VAS实例的权重, 为用户数据报文选择具体的 VAS实例, 并分配业务链 标签。 第四方面, 提供了一种用于业务路由的装置, 包括: 获取单元, 用于获取策略和计费功能实体 PCRF发送的用户数据报文的业务链标 签或者来自所述装置自身的用户数据报文的业务链标签,所述业务链 标签包括业务链标识和扩展标识, 所述业务链标识用于标示业务链; 处理单元,用于为所述用户数据报文打上所述业务链标签;发送单元, 用于发送所述打上业务链标签的用户数据报文至交换机,以便于所述 交换机接收控制器根据所述业务链标签和所述业务链上具体增值业 务服务器 VAS实例的权重生成的流表后,根据所述流表对所述打上业 务链标签的用户数据报文进行业务路由。 With reference to the third aspect, in a fourth possible implementation, before the TC acquires the service chain information of the user data packet sent by the controller, the method further includes: the controller receiving the service chain sent by the TC; The controller selects a specific VAS instance for the user data packet according to the weight of the VAS instance on the VAS pool that the service chain passes, and allocates the service chain label. The fourth aspect provides an apparatus for service routing, including: an acquiring unit, configured to acquire a service chain label of a user data packet sent by a policy and charging function entity PCRF, or a user datagram from the apparatus itself. a service chain label, the service chain label includes a service chain identifier and an extended identifier, where the service chain identifier is used to mark a service chain, and the processing unit is configured to: label the user data packet with the service chain label; a unit, configured to send the user data packet labeled with the service chain label to the switch, so that the switch receives the flow generated by the controller according to the service chain label and the weight of the specific value-added service server VAS instance on the service chain. After the table, the service routing is performed on the user data packet marked with the service chain label according to the flow table.
第五方面, 提供了一种用于业务路由的装置, 包括: 接收单元, 用于接收流分类器 TC发送的用户数据报文的业务链标签,所述业务链 标签包括业务链标识和扩展标识; 处理单元, 用于根据业务链标签和 所述业务链经过的增值业务服务器 VAS池中各个 VAS实例的权重,为所 述用户数据报文分配所述 VAS池中的 VAS实例,生成流表并发送至交换 机。  The fifth aspect provides an apparatus for service routing, including: a receiving unit, configured to receive a service chain label of a user data packet sent by a traffic classifier TC, where the service chain label includes a service chain identifier and an extended identifier. a processing unit, configured to allocate a VAS instance in the VAS pool to the user data packet according to a service chain label and a weight of each VAS instance in the VAS pool of the value-added service server, and generate a flow table. Send to the switch.
第六方面, 提供了一种用于业务路由的装置, 包括: 获取单元, 用于获取策略和计费功能实体 PCRF发送的用户数据报文的业务链标 签或者获取来自所述装置自身的用户数据报文的业务链标签或者获 取控制器发送的用户数据报文的业务链标签,所述业务链标签用于标 识具体 VAS实例组成的业务链; 处理单元, 用于为用户数据报文打上 所述业务链标签; 发送单元, 用于发送所述打上所述业务链标签的用 户数据报文至交换机, 以便于所述交换机接收控制器根据所述业务 链标签生成的流表后,根据所述流表对所述打上业务链标签的用户数 据报文进行业务路由。 The sixth aspect provides an apparatus for service routing, including: an acquiring unit, configured to acquire a service chain label of a user data packet sent by a policy and charging function entity PCRF, or obtain user data from the apparatus itself. a service chain label of the packet or a service chain label of the user data packet sent by the controller, where the service chain label is used to identify a service chain formed by a specific VAS instance, and the processing unit is configured to: a service chain label, configured to send the user data packet marked with the service chain label to the switch, so that the switch receives the controller according to the service After the flow table generated by the chain tag, the service data route is performed on the user data packet marked with the service chain label according to the flow table.
基于上述的技术方案, 本发明提供的业务路由的装置、 方法及系 统中, 通过为同类业务路由策略的用户数据报文分配具体 VAS实例组 成的业务链的业务链标签, 由控制器根据所述业务链标签生成流表, 并发送至交换机, 用于交换机对所述用户数据报文进行业务路由, 实 现 VAS实例间的负载均衡, 保证用户的业务体验。 附图说明  The service chain label of the service chain formed by the specific VAS instance is allocated to the user data packet of the same service routing policy by the controller according to the foregoing technical solution. The service chain label generates a flow table and sends it to the switch, which is used by the switch to perform service routing on the user data packet to implement load balancing between the VAS instances to ensure the service experience of the user. DRAWINGS
图 1示出了本发明实施例基于的网络架构示意图。  FIG. 1 is a schematic diagram of a network architecture based on an embodiment of the present invention.
图 2示出了本发明实施例提供的一种业务路由的方法的示意性流 程图。  FIG. 2 is a schematic flow chart of a method for service routing according to an embodiment of the present invention.
图 3示出了本发明实施例的另一种业务路由的方法的示意性流程 图。  FIG. 3 is a schematic flow chart of another method for service routing according to an embodiment of the present invention.
图 4示出了本发明实施例提供的另一种业务路由的方法的示意性 流程图。  FIG. 4 is a schematic flowchart of another method for service routing according to an embodiment of the present invention.
图 5示出了本发明实施例提供的一种用于业务路由的装置的示意 性框图。  FIG. 5 is a schematic block diagram of an apparatus for service routing according to an embodiment of the present invention.
图 6示出了本发明实施例提供的一种业务路由的装置的示意性框 图。  FIG. 6 is a schematic block diagram of an apparatus for service routing according to an embodiment of the present invention.
图 7示出了本发明实施例提供的另一种业务路由的装置的示意性 框图。 图 8示出了本发明实施例提供的一种业务路由的方法的信令交互 图。 FIG. 7 is a schematic block diagram of another apparatus for service routing according to an embodiment of the present invention. FIG. 8 is a signaling interaction diagram of a method for service routing according to an embodiment of the present invention.
图 9示出了本发明实施例提供的另一种业务路由的方法的信令交 互图。  FIG. 9 is a signaling diagram of another method for service routing according to an embodiment of the present invention.
图 10示出了本发明实施例提供的另一种业务路由的方法的信令 交互图。  FIG. 10 is a signaling interaction diagram of another method for service routing according to an embodiment of 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 drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
应理解, 本发明实施例的技术方案可以应用于各种通信***, 例 如: 全球移动通讯 ( Global System of Mobile communication, 简 称为 "GSM" ) ***、 码分多址 ( Code Division Multiple Access, 简称为 "CDMA" ) ***、 宽带码分多址 (Wideband Code Division Multiple Access,简称为 "WCDMA" )***、通用分组无线业务( General Packet Radio Service, 简称为 "GPRS" ) 、 长期演进 (Long Term Evolution, 简称为 "LTE" )***、 LTE频分双工 ( Frequency Divis ion Duplex,简称为 "FDD" )***、 LTE时分双工( Time Divis ion Duplex, 简称为 "TDD" ) 、 通用移动通信***(Universal Mobile  It should be understood that the technical solutions of the embodiments of the present invention can be applied to various communication systems, such as: Global System of Mobile communication ("GSM") system, Code Division Multiple Access (Code Division Multiple Access, referred to as "CDMA") system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service ("GPRS"), Long Term Evolution (Long Term Evolution, Referred to as "LTE" system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Communication System (Universal) Mobile
Telecommunication System, 简称为 "UMTS" ) 、 全球互联 波接入 ( Worldwide Interoperability for Microwave Access , 简称为Telecommunication System, referred to as "UMTS", Global Interconnected Wave Access ( Worldwide Interoperability for Microwave Access , referred to as
"WiMAX" )通信***等。 "WiMAX") communication system, etc.
图 1示出了本发明实施例基于的网络架构示意图。 应理解, 图 1 所示的网络架构为本发明实施例的优选应用架构 ,但本发明实施例还 可以基于其它的网络架构, 本发明实施例对此不作限定。  FIG. 1 is a schematic diagram of a network architecture based on an embodiment of the present invention. It should be understood that the network architecture shown in FIG. 1 is a preferred application architecture of the embodiment of the present invention, but the embodiment of the present invention may be based on other network architectures, which is not limited by the embodiment of the present invention.
如图 1所示, 在由策略和计费执行功能实体(Policy and Charging Enforcement Function, 简称为 "PCEF" ) 、 策略和计费执行功能单 元 (Policy and Charging Rules Function, 简称为 "PCRF" ) 、 流 分类器(Traffic Classifier,简称为 "TC" )、控制器( Control ler )、 交换机、 VAS池组成的网络架构图中, TC主要用于对用户数据报文进 行分类, 打上相应的业务链标签; PCRF主要用于为用户数据报文选择 相应的业务路由策略; 控制器主要用于为用户数据报文生成流表, 并 发送至交换机;交换机主要用于根据流表对用户数据报文进行业务路 由; VAS池中包括提供同类增值服务的多个具体 VAS实例。  As shown in Figure 1, the Policy and Charging Enforcement Function (PCEF), the Policy and Charging Rules Function ("PCRF"), In the network architecture diagram consisting of a traffic classifier ("Traffic Classifier"), a controller (controller), a switch, and a VAS pool, the TC is mainly used to classify user data packets and put corresponding service chain labels. The PCRF is mainly used to select a corresponding service routing policy for the user data packet. The controller is mainly used to generate a flow table for the user data packet and send it to the switch. The switch is mainly used to perform service on the user data packet according to the flow table. Routing; The VAS pool includes multiple specific VAS instances that provide homogeneous value-added services.
图 2示出了本发明实施例提供的一种业务路由的方法的示意性流 程图, 所述方法可以由任何合适的装置执行, 例如由 TC执行, 但本发 明不限于此。  FIG. 2 is a schematic flowchart of a method for service routing according to an embodiment of the present invention. The method may be performed by any suitable device, for example, by a TC, but the present invention is not limited thereto.
S 201、流分类器 TC获取策略和计费功能实体 PCRF发送的用户数据 报文的业务链标签或者获取来自所述 TC 自身的用户数据报文的业务 链标签, 所述业务链标签包括业务链标识和扩展标识, 所述业务链标 识用于标示业务链;  S201, the traffic classifier TC obtains a service chain label of the user data packet sent by the policy and the charging function entity PCRF, or obtains a service chain label of the user data packet from the TC itself, where the service chain label includes a service chain. An identifier and an extended identifier, where the service chain identifier is used to mark a service chain;
所述 S201中 ,所述 TC获取所述 TC获取来自所述 TC的用户数据报文 的业务链标签之前,还包括: 所述 TC接收 PCRF发送的用户数据报文的 业务链标识; 所述 TC随机分配组号给所述用户数据报文, 组成所述用 户数据报文的业务链标签;所述用户数据报文的业务链标签包括业务 链标识和扩展标识,所述扩展标识为所述 TC随机分配给所述用户数据 报文的组号。 其中业务链标识用于标识业务路由策略。 所述技术方案 中, 所述 TC为同类业务路由策略的用户数据报文随机分配组号; 所述 TC组成所述用户数据报文的业务链标签后,将发送所述业务链标签至 控制器; 控制器根据所述业务链标签中的业务链标识, 获取所述用户 数据报文的业务路由策略;所述控制器进而根据所述业务路由策略上 VAS池中 VAS实例的权重,选择具体的 VAS实例组成业务链,生成流表, 并发送所述流表至交换机,用于所述交换机根据所述流表对所述用户 数据报文进行业务路由。 本发明的所有实施例中, 所述 VAS实例的权 重可以是静态地, 也可以是动态地, 所述静态权重表示所述 VAS实例 的负载能力、 容量等的初始值, 所述动态权重表示所述 VAS实例实时 更新的负载能力、容量等参数。 而之前同类业务路由策略的用户数据 报文随意经过 VAS池中的 VAS实例,很可能导致同一 VAS池中 VAS实例之 间负载不均衡,即经过有些 VAS实例的用户数据报文的数量与所述 VAS 实例的权重并不相对应。 因此,基于本发明实施例提供的用于业务路 由的方法, 可以实现 VAS池中 VAS实例间负载均衡,保证用户的业务体 验。 In the S201, the TC acquires the TC to acquire a user data packet from the TC. Before the service chain label, the method further includes: the TC receiving the service chain identifier of the user data packet sent by the PCRF; the TC randomly assigning the group number to the user data packet, and forming a service chain of the user data packet The service chain label of the user data packet includes a service chain identifier and an extended identifier, where the extended identifier is a group number randomly assigned by the TC to the user data packet. The service chain identifier is used to identify the service routing policy. In the technical solution, the TC is randomly assigned a group number for the user data packet of the same service routing policy; after the TC forms the service chain label of the user data packet, the service chain label is sent to the controller. The controller obtains the service routing policy of the user data packet according to the service chain identifier in the service chain label; the controller further selects a specific one according to the weight of the VAS instance in the VAS pool on the service routing policy. The VAS instance forms a service chain, generates a flow table, and sends the flow table to the switch, where the switch performs service routing on the user data packet according to the flow table. In all embodiments of the present invention, the weight of the VAS instance may be static or dynamic, and the static weight represents an initial value of load capacity, capacity, and the like of the VAS instance, and the dynamic weight indicates The load capacity, capacity and other parameters of the VAS instance are updated in real time. However, the user data packets of the same service routing policy pass through the VAS instance in the VAS pool, which may result in unbalanced load between the VAS instances in the same VAS pool, that is, the number of user data packets passing through some VAS instances. The weights of VAS instances do not correspond. Therefore, the method for service routing provided by the embodiment of the present invention can implement load balancing between VAS instances in the VAS pool to ensure the service experience of the user.
所述 S201中还包括,所述 PCRF获取所述用户数据报文的业务链标 识; 所述 PCRF随机分配组号给所述用户数据报文, 组成所述用户数据 报文的业务链标签,所述用户数据报文的业务链标签包括业务链标识 和扩展标识,所述扩展标识为所述 TC为所述用户数据报文随机分配的 组号。 The S201 further includes: the PCRF acquiring a service chain identifier of the user data packet; the PCRF randomly assigning a group number to the user data packet to form the user data The service chain label of the packet, the service chain label of the user data packet includes a service chain identifier and an extended identifier, where the extension identifier is a group number randomly assigned by the TC to the user data packet.
S202 , 所述 TC为用户数据报文打上所述业务链标签,发送所述打 上所述业务链标签的用户数据报文至交换机,以便于所述交换机接收 控制器根据所述业务链标签和所述业务链上具体增值业务服务器 VAS 实例的权重生成的流表后,根据所述流表对所述打上业务链标签的用 户数据报文进行业务路由。  S202, the TC sends the service chain label to the user data packet, and sends the user data packet labeled with the service chain label to the switch, so that the switch receives the controller according to the service chain label and the After the flow table generated by the weight of the VAS instance of the specific value-added service server in the service chain, the service data route is performed on the user data packet marked with the service chain label according to the flow table.
所述 S202中,所述交换机接收控制器根据所述业务链标签和所述 业务链上具体 VAS实例的权重生成的流表, 具体包括: 所述控制器根 据业务链标签和所述业务链经过的 VAS池中各个 VAS实例的权重,为所 述用户数据报文分配所述 VAS池中的 VAS实例,生成流表并发送至交换 机。  In the S202, the switch receiving the flow table generated by the controller according to the service chain label and the weight of the specific VAS instance on the service chain, specifically includes: the controller passes the service chain label and the service chain. The weight of each VAS instance in the VAS pool is assigned to the VAS instance in the VAS pool for the user data packet, and a flow table is generated and sent to the switch.
因此,基于本发明实施例提供的技术方案, TC为用户数据报文打 上包括业务链标识和扩展标识的业务链标签,发送所述打上业务链标 签的用户数据报文至交换机,由交换机根据控制器发送的所述控制器 根据所述业务链标签和所述业务链上具体增值业务服务器 VAS实例的 权重生成的流表对用户数据报文进行业务路由。可以实现 VAS池中 VAS 实例间负载均衡, 保证用户的业务体验。  Therefore, based on the technical solution provided by the embodiment of the present invention, the TC adds a service chain label including a service chain identifier and an extended identifier to the user data packet, and sends the user data packet labeled with the service chain label to the switch, and the switch controls the packet according to the control. The controller sends a service route to the user data packet according to the traffic table generated by the service chain label and the weight of the specific value-added service server VAS instance on the service chain. The load balancing between VAS instances in the VAS pool can be implemented to ensure the user experience.
图 3示出了本发明实施例的另一种业务路由的方法的示意性流程 图, 所述方法可以由任何合适的装置执行, 例如, 控制器, 但本发明 不限于此。 本发明实施例提供的方法可以和图 2示出的方法相配合。 如图 3所示, 本发明实施例提供的方法包括: FIG. 3 is a schematic flowchart of another method for service routing according to an embodiment of the present invention. The method may be performed by any suitable device, for example, a controller, but the invention is not limited thereto. The method provided by the embodiment of the present invention can cooperate with the method shown in FIG. 2. As shown in FIG. 3, the method provided by the embodiment of the present invention includes:
S 301、控制器接收流分类器 TC发送的用户数据报文的业务链标签, 所述业务链标签包括业务链标识和扩展标识,所述业务链标识用于标 示业务链;  S 301: The controller receives a service chain label of a user data packet sent by the stream classifier TC, where the service chain label includes a service chain identifier and an extended identifier, where the service chain identifier is used to indicate a service chain.
S302、所述控制器根据业务链标签和所述业务链经过的增值业务 服务器 VAS池中各个 VAS实例的权重, 为所述用户数据报文分配所述 VAS池中的 VAS实例, 生成流表并发送至交换机。  S302. The controller allocates a VAS instance in the VAS pool to the user data packet according to a service chain label and a weight of each VAS instance in the VAS pool of the value-added service server, and generates a flow table. Send to the switch.
因此,基于本发明实施例提供的方法, 控制器根据流分类器发送 的包括业务链标识和扩展标识的业务链标签和所述业务链经过的 VAS 池中各个 VAS实例的权重, 为所述用户数据 ^艮文分配所述 VAS池中的 VAS实例, 生成流表并发送至交换机。 所述扩展标识为所述用户数据 报文的组号,因此控制器根据业务路由策略的上 VAS池中 VAS实例的权 重为同一小组的用户数据报文选择相同 VAS实例, 组成业务链, 生成 流表。 可以实现 VAS池中 VAS实例间负载均衡, 保证用户的业务体验。  Therefore, based on the method provided by the embodiment of the present invention, the controller sends the service chain label including the service chain identifier and the extended identifier and the weight of each VAS instance in the VAS pool that the service chain passes according to the traffic classifier to the user. The data is allocated to the VAS instance in the VAS pool, and a flow table is generated and sent to the switch. The extension identifier is a group number of the user data packet, so the controller selects the same VAS instance for the user data packet of the same group according to the weight of the VAS instance in the upper VAS pool of the service routing policy, and forms a service chain to generate a stream. table. The load balancing between VAS instances in the VAS is implemented to ensure the user experience.
图 4示出了本发明实施例提供的另一种业务路由的方法的示意性  FIG. 4 is a schematic diagram of another method for service routing according to an embodiment of the present invention.
TC400, 但本发明不限于此。 TC400, but the invention is not limited thereto.
如图 4所示, 本发明实施例提供的方法包括:  As shown in FIG. 4, the method provided by the embodiment of the present invention includes:
S401、流分类器 TC获取策略和计费功能实体 PCRF发送的用户数据 报文的业务链标签或者获取来自所述 TC 自身的用户数据报文的业务 链标签或者获取控制器发送的用户数据报文的业务链标签,所述业务 链标签用于标识具体增值业务服务器 VAS实例组成的业务链; S401中,所述 TC获取来自所述 TC自身的用户数据报文的业务链标 签, 包括所述 TC接收 PCRF发送的用户数据报文的业务路由策略; 所述 TC根据所述用户数据报文业务链经过的 VAS池中 VAS实例的权重信息 为用户数据报文选择具体的 VAS实例, 组成业务链, 获得所述业务链 的业务链标签; 或者由 PCRF根据所述用户数据报文业务链经过的 VAS 池中 VAS实例的权重信息为用户数据报文选择具体的 VAS实例,组成业 务链, 获得所述业务链对应的业务链标签, 发送至所述 TC。 所述 TC 进而发送所述业务链标签至控制器,用于所述控制器根据所述业务链 标签, 查询所述业务链标签标示的由具体 VAS实例组成的业务链, 生 成流表。基于本发明实施例提供技术方案,根据用户数据报文业务链 经过的 VAS池中 VAS实例的权重信息为用户数据 ^艮文选择具体的 VAS实 例, 组成业务链。 可以实现 VAS池中 VAS实例间负载均衡, 保证用户的 业务体验。 S401. The traffic classifier TC obtains the service chain label of the user data packet sent by the policy and the charging function entity PCRF, or obtains the service chain label of the user data packet from the TC itself, or obtains the user data packet sent by the controller. a service chain label, where the service chain label is used to identify a service chain composed of a VAS instance of a specific value-added service server; In S401, the TC acquires a service chain label of a user data packet from the TC itself, and includes a service routing policy of the TC receiving a user data packet sent by the PCRF, where the TC is based on the user data packet service. The weight information of the VAS instance in the VAS pool that the chain passes through selects a specific VAS instance for the user data packet, and forms a service chain to obtain the service chain label of the service chain; or the PCRF passes the service data packet according to the service data packet. The weight information of the VAS instance in the VAS pool is used to select a specific VAS instance for the user data packet, and form a service chain. The service chain label corresponding to the service chain is obtained and sent to the TC. And the TC further sends the service chain label to the controller, and the controller is configured to query, according to the service chain label, a service chain consisting of a specific VAS instance indicated by the service chain label, to generate a flow table. According to the technical solution provided by the embodiment of the present invention, a specific VAS instance is selected for the user data according to the weight information of the VAS instance in the VAS pool of the user data packet service chain to form a service chain. Load balancing between VAS instances in the VAS pool can be implemented to ensure the user experience.
所述 S401中, TC获取控制器发送的用户数据报文的业务链标签之 前,还包括所述控制器接收所述 TC发送的业务链; 所述控制器根据所 述业务链经过的 VAS池上 VAS实例的权重,为用户数据 文选择具体的 VAS实例, 并分配业务链标签。  In the S401, before the TC acquires the service chain label of the user data packet sent by the controller, the TC further includes the controller receiving the service chain sent by the TC; the controller is based on the VAS on the VAS pool that the service chain passes. The weight of the instance, select a specific VAS instance for the user data file, and assign the service chain label.
S402、 所述 TC为用户数据报文打上所述业务链标签,发送所述打 上所述业务链标签的用户数据报文至交换机, 以便于所述交换机接 收控制器根据所述业务链标签生成的流表后,根据所述流表对所述打 上业务链标签的用户数据报文进行业务路由。  S402. The TC sends the service data label to the user data packet, and sends the user data packet labeled with the service chain label to the switch, so that the switch receiving controller generates the label according to the service chain label. After the flow table, the service routing is performed on the user data packet marked with the service chain label according to the flow table.
因此,基于本发明实施例提供的方法, 可以实现 VAS池中 VAS实例 间负载均衡, 保证用户的业务体验。 Therefore, based on the method provided by the embodiment of the present invention, a VAS instance in a VAS pool can be implemented. Balanced load balancing ensures the user's business experience.
图 5示出了本发明实施例提供的一种用于业务路由的装置的示意 性框图, 所述装置可以是 TC500 , 但本发明不限于此, 所述装置可以 用于执行图 2示出的本发明实施例提供的一种业务路由的方法。  FIG. 5 is a schematic block diagram of an apparatus for service routing according to an embodiment of the present invention. The apparatus may be a TC500, but the present invention is not limited thereto, and the apparatus may be used to perform the method shown in FIG. A method for service routing provided by an embodiment of the present invention.
如图 5所示, 本发明实施例提供的一种业务路由的装置包括: 获取单元 501 , 用于获取策略和计费功能实体 PCRF发送的用户数 据报文的业务链标签或者来自所述装置自身的用户数据报文的业务 链标签, 所述业务链标签包括业务链标识和扩展标识, 所述业务链标 识用于标示业务链;  As shown in FIG. 5, an apparatus for service routing according to an embodiment of the present invention includes: an obtaining unit 501, configured to acquire a service chain label of a user data packet sent by a policy and a charging function entity PCRF, or from the apparatus itself. a service chain label of the user data packet, where the service chain label includes a service chain identifier and an extended identifier, where the service chain identifier is used to mark the service chain;
处理单元 502 , 用于为所述用户数据 文打上所述业务链标签; 发送单元 503 , 用于发送所述打上业务链标签的用户数据报文至 交换机,以便于所述交换机接收控制器根据所述业务链标签和所述业 务链上具体增值业务服务器 VAS实例的权重生成的流表后,根据所述 流表对所述打上业务链标签的用户数据报文进行业务路由。  The processing unit 502 is configured to apply the service chain label to the user data file, and send, by the sending unit 503, the user data packet that is marked with the service chain label to the switch, so that the switch receives the controller according to the After the service chain label and the flow table generated by the weight of the VAS instance of the specific value-added service server in the service chain, the service route is performed on the user data packet marked with the service chain label according to the flow table.
基于本发明实施例提供的一种业务路由的装置,通过为用户数据 报文打上包括业务链标识和扩展标识的业务链标签, 发送至交换机, 用于所述交换机接收控制器根据所述业务链标签和所述业务链上具 体增值业务服务器 VAS实例的权重生成的流表后,根据所述流表对所 述打上业务链标签的用户数据报文进行业务路由。 可以实现 VAS池中 VAS实例间负载均衡, 保证用户的业务体验。  The device for service routing according to the embodiment of the present invention sends a service chain label including a service chain identifier and an extended identifier to a user data packet, and sends the label to the switch, and the switch receives the controller according to the service chain. After the label and the flow table generated by the weight of the VAS instance of the specific value-added service server in the service chain, the service route is performed on the user data packet marked with the service chain label according to the flow table. The load balancing between VAS instances in the VAS is implemented to ensure the user experience.
图 6示出了本发明实施例提供的一种业务路由的装置的示意性框 图, 所述装置可以是控制器 600 , 本发明不限于此, 本发明实施例提 供的装置可以执行图 3示出的本发明实施例提供的方法。 FIG. 6 is a schematic block diagram of an apparatus for service routing according to an embodiment of the present invention. The apparatus may be a controller 600, and the present invention is not limited thereto. The apparatus provided may perform the method provided by the embodiment of the invention illustrated in FIG.
如图 6所示, 本发明实施例提供的装置包括:  As shown in FIG. 6, the apparatus provided by the embodiment of the present invention includes:
接收单元 601 , 用于接收流分类器 TC发送的用户数据报文的业务 链标签, 所述业务链标签包括业务链标识和扩展标识;  The receiving unit 601 is configured to receive a service chain label of the user data packet sent by the stream classifier TC, where the service chain label includes a service chain identifier and an extended identifier.
处理单元 602 , 用于根据所述业务链标签和所述业务链经过的增 值业务服务器 VAS池中各个 VAS实例的权重,为所述用户数据报文分配 所述 VAS池中的 VAS实例, 生成流表;  The processing unit 602 is configured to allocate a VAS instance in the VAS pool to the user data packet according to the weight of each VAS instance in the VAS pool of the value-added service server, and generate a flow. Table
发送单元 603 , 用于发送所述流表至交换机。  The sending unit 603 is configured to send the flow table to the switch.
基于本发明实施例提供的装置,通过接收 TC发送的包括业务链标 识和扩展标识的业务链标签,根据所述业务链标签和所述业务链经过 的增值业务服务器 VAS池中各个 VAS实例的权重,为所述用户数据报文 分配所述 VAS池中的 VAS实例,生成流表并发送至交换机。可以实现 VAS 池中 VAS实例间负载均衡, 保证用户的业务体验。  The device according to the embodiment of the present invention receives the service chain label including the service chain identifier and the extended identifier sent by the TC, according to the weight of each VAS instance in the VAS pool of the value-added service server passing through the service chain label and the service chain. And allocating a VAS instance in the VAS pool to the user data packet, generating a flow table, and sending the flow table to the switch. The load balancing between VAS instances in the VAS pool can be implemented to ensure the user experience.
图 7示出了本发明实施例提供的另一种业务路由的装置的示意性 框图, 所述装置可以是 TC , 但本发明不限于此。 本发明实施例提供的 装置可以执行图 4示出的本发明实施例提供的方法。  FIG. 7 is a schematic block diagram of another apparatus for service routing according to an embodiment of the present invention. The apparatus may be a TC, but the present invention is not limited thereto. The apparatus provided by the embodiment of the present invention may perform the method provided by the embodiment of the present invention shown in FIG.
如图 7所述, 本发明实施例提供的装置包括:  As shown in FIG. 7, the apparatus provided by the embodiment of the present invention includes:
获取单元 701 , 用于获取策略和计费功能实体 PCRF发送的用户数 据报文的业务链标签或者获取来自所述 TC 自身的用户数据报文的业 务链标签或者获取控制器发送的用户数据报文的业务链标签,所述业 务链标签用于标识具体 VAS实例组成的业务链;  The obtaining unit 701 is configured to obtain a service chain label of the user data packet sent by the policy and the charging function entity PCRF, or obtain a service chain label of the user data packet from the TC itself, or obtain a user data packet sent by the controller. a service chain label, where the service chain label is used to identify a service chain composed of specific VAS instances;
处理单元 702 , 用于为用户数据报文打上所述业务链标签; 发送单元 703 , 用于发送所述打上所述业务链标签的用户数据报 文至交换机, 以便于所述交换机接收控制器根据所述业务链标签生 成的流表后,根据所述流表对所述打上业务链标签的用户数据报文进 行业务路由。 The processing unit 702 is configured to apply the service chain label to the user data packet. The sending unit 703 is configured to send the user data packet that is marked with the service chain label to the switch, so that the switch receives the flow table generated by the controller according to the service chain label, and then, according to the flow table, The user data packet marked with the service chain label is used for service routing.
基于本发明实施例提供的装置, 通过获取用于标识具体 VAS实例 组成的业务链的业务链标签,并为用户数据报文打上所述业务链标签, 发送所述打上所述业务链标签的用户数据报文至交换机, 以便于所 述交换机接收控制器根据所述业务链标签生成的流表后,根据所述流 表对所述打上业务链标签的用户数据报文进行业务路由。 可以实现 VAS池中 VAS实例间负载均衡, 保证用户的业务体验。  The device provided by the embodiment of the present invention obtains the service chain label of the service chain formed by the specific VAS instance, and adds the service chain label to the user data packet, and sends the user tagged with the service chain label. The data packet is sent to the switch, so that the switch receives the flow table generated by the controller according to the service chain label, and then performs service routing on the user data packet marked with the service chain label according to the flow table. The load balancing between VAS instances in the VAS is implemented to ensure the user experience.
图 8示出了本发明实施例提供的用于业务路由的方法的信令交互 图,本发明实施例为图 2、图 3示出的本发明实施例的一个具体实施例。 本发明实施例中, 通过 TC为用户数据报文分配业务链标签,发送至控 制器, 用于所述控制器根据所述业务链标签和所述业务链经过的 VAS 池中各个 VAS的权重, 生成流表并发送至交换机。  Figure 8 is a diagram showing a signaling interaction diagram of a method for service routing according to an embodiment of the present invention. The embodiment of the present invention is a specific embodiment of the embodiment of the present invention shown in Figure 2 and Figure 3. In the embodiment of the present invention, the service chain label is allocated to the user data packet by the TC, and is sent to the controller, and is used by the controller according to the service chain label and the weight of each VAS in the VAS pool that the service chain passes. Generate a flow table and send it to the switch.
如图 8所示, 本发明实施例提供的用于业务路由的方法包括: S80 策略及计费执行功能实体 ( Po l i cy and Charg ing  As shown in FIG. 8, the method for service routing provided by the embodiment of the present invention includes: S80 policy and charging execution function entity (Po l i cy and Charg ing
Enforcement Funct ion ,简称 "PCEF" )收到来自 MME发送的 IP连通 性接入网会话( IP-connect ivi ty acces s network, 简称 ' 'IP_CA『 ) 承载建立请求。 The Enforcement Functation ("PCEF") receives an IP-connected access network session (IP-connect ivi ty acces s network, referred to as 'IP_CA') bearer setup request from the MME.
S802、 PCEF向 PCRF发送建立 IP-CAN会话建立指示。  S802. The PCEF sends an IP-CAN session establishment indication to the PCRF.
具体地, 所述指示消息中包含用户的标识, 用户的 IP地址, 用户 请求的服务质量, 用户的接入类型等参数。 Specifically, the indication message includes an identifier of the user, an IP address of the user, and the user. The requested quality of service, the user's access type and other parameters.
5803、 PCRF向 SPR发送请求, 请求获取用户的签约信息。  5803. The PCRF sends a request to the SPR to request to obtain the subscription information of the user.
5804、 SPR向 PCRF返回用户的签约信息。  5804. The SPR returns the user's subscription information to the PCRF.
具体地, 该签约信息中包含用户的优先级信息, 用户允许访问的 业务类型(Application identifier ),用户是否可以被检测等参数。  Specifically, the subscription information includes user priority information, a service identifier that the user is allowed to access, and whether the user can be detected or the like.
5805、 PCEF根据步骤 2、 3、 4中获取的信息、 参数, 为用户制定 策略控制和计费控制(Policy Control and Charging,简称" PCC" ) 策略和应用检测控制( Application Detection Control, 简称 ADC) 策略, 进行策略决策。  5805. The PCEF formulates a Policy Control and Charging (PCC) policy and an Application Detection Control (ADC) for the user according to the information and parameters obtained in steps 2, 3, and 4. Strategy, make strategic decisions.
5806、 PCRF根据用户的优先级信息、 用户允许访问的业务类型和 用户的接入类型查询业务链的路由策略,为用户数据报文选择合适的 业务链。  5806. The PCRF queries the routing policy of the service chain according to the priority information of the user, the service type that the user is allowed to access, and the access type of the user, and selects an appropriate service chain for the user data packet.
具体地, PCRF为用户数据报文选择合适的业务链时, 获取用户数 据报文的业务链标识。  Specifically, when the PCRF selects an appropriate service chain for the user data packet, the PCRF obtains the service chain identifier of the user data packet.
5807、 PCRF向 TC发送业务检测功能(Traffic Detection Function , 简称 TDF)会话建立请求信息。  5807. The PCRF sends a traffic detection function (Traffic Detection Function, TDF for short) session establishment request information to the TC.
具体地, 所述 TDF会话建立请求信息中包括执行控制信元, 所述执 行控制信元包括业务链标识,所述业务链标识用于标识同一类业务链。  Specifically, the TDF session establishment request information includes an execution control cell, where the execution control cell includes a service chain identifier, and the service chain identifier is used to identify the same type of service chain.
具体地, 业务链标识中 VAS的内容可以通过 VAS功能来描述, 该 VAS 功能可以为视频仂匕(video optimization) , 数据緩存(web cache) 等; 或者预先在控制器配置 VAS ID表述 VAS功能, 如用 VAS 1表示进行 视频优化的 VAS ,即同一业务链标识用于标识经过同类功能 VAS的业务 链。 Specifically, the content of the VAS in the service chain identifier may be described by a VAS function, which may be a video optimization, a web cache, or the like; or the VAS function is configured in the controller to describe the VAS function in advance. If VAS 1 is used to represent VAS for video optimization, that is, the same service chain identifier is used to identify the service that has undergone the same function VAS. Chain.
5808、 TC向 PCRF发送 TDF会话建立响应信息。  5808. The TC sends a TDF session establishment response message to the PCRF.
5809、 TC接收用户数据报文, 为用户数据报文随机分配组号, 组 成业务链标签。  5809. The TC receives the user data packet, randomly assigns a group number to the user data packet, and forms a service chain label.
具体地,所述 TC接收所述业务链标识后,对业务链标识进行分组, 所述业务链标识被细分为多个小组,所述 TC随机分配所述分组组号给 用户数据报文,属于同类业务链标识对应的业务链上的用户数据报文 被均匀分配到各个小组。  Specifically, after receiving the service chain identifier, the TC groups the service chain identifier, where the service chain identifier is subdivided into multiple groups, and the TC randomly allocates the group group number to the user data packet. User data packets on the service chain corresponding to the same service chain identifier are evenly distributed to each group.
由此, 业务链标签由两部分组成: 业务链标识和扩展标识, 所述 扩展标识为该类业务链分配的组号。例如:同类业务链标识 1被细分为 Thus, the service chain label is composed of two parts: a service chain identifier and an extension identifier, and the extension identifier is a group number assigned to the service chain. For example: the same business chain logo 1 is subdivided into
10组, 组号分别为 1、 2 , 10 , 每当属于业务链标识 1对应的 业务链上的用户数据报文发起业务时, 随机分配组号 1-10中的数字; 若所述用户数据报文随机分配组号为 6 , 所述用户数据报文的业务链 标签包括业务链标识和所分配到的组号。该业务链标签的表现形式可 以是 1-5 , 短折线前面的 1表示业务链标识, 短折线后面的 5表示分配 的组号; 或者业务链标识可以用业务链经过哪些功能的 VAS来描述, 如 web cache->video opt imiza t ion: 5, "web cache->v ideo opt imiza t ion" 表示该业务链经过功能为数据緩存的 VAS和功能为视 频优化的 VAS , 之后的 5表示分配的组号。 10 groups, the group numbers are 1, 2, 10 respectively. When the user data packets belonging to the service chain corresponding to the service chain identifier 1 initiate the service, the numbers in the group numbers 1-10 are randomly assigned; if the user data is The packet random assignment group number is 6, and the service chain label of the user data packet includes the service chain identifier and the assigned group number. The service chain label can be expressed in the form of 1-5, the first line in front of the short line indicates the service chain identifier, and the 5 after the short line indicates the assigned group number; or the service chain identifier can be described by the VAS of the function of the service chain. For example, web cache->video opt imizat ion: 5, "web cache->v ideo opt imiza t ion" indicates that the service chain passes the VAS functioning as data buffer and the VAS functioning as video optimization, and the next 5 indicates the allocation. Group No.
可选地, 在本发明的另一实施例中, 可以由 PCRF为用户数据报文 选择合适的业务链时, 获取用户数据报文的业务链标识; PCRF将用户 数据 的业务链标识进行均勾分组;所述 PCRF随机分配所述分组组 号给所述用户数据报文, 组成用户数据报文的业务链标签, 并发送所 述业务链标签至 TC Optionally, in another embodiment of the present invention, when the PCRF selects an appropriate service chain for the user data packet, the service chain identifier of the user data packet is obtained; and the PCRF encrypts the service chain identifier of the user data. Grouping; the PCRF randomly assigns the group of groups Sending the user data packet to the service chain label of the user data packet, and sending the service chain label to the TC
所述 PCRF分配业务链标签的具体步骤可以参考步骤 9。  The specific steps of the PCRF to allocate the service chain label can be referred to step 9.
S810、 TC为用户数据报文打上业务链标签; 所述业务链标签包括 所述业务链标识和分组组号。  S810. The TC adds a service chain label to the user data packet. The service chain label includes the service chain identifier and the group group number.
S81 TC发送所述打上业务链标签的用户数据报文至交换机。 The S81 TC sends the user data packet labeled with the service chain to the switch.
5812、 对于首包, 交换机并无对应流表, 交换机发送入分组报文 至控制器, 该入分组报文包括所述业务链标签。 5812. For the first packet, the switch does not have a corresponding flow table, and the switch sends the packet packet to the controller, where the incoming packet includes the service chain label.
5813、 所述控制器接收所述业务链标签, 根据所述业务链标签, 将所述用户数据"¾文业务负荷分担到 VAS池中的具体 VAS实例中,计算 具体的业务路由路径并生成流表, 将流表发送至交换机。  S813, the controller receives the service chain label, and according to the service chain label, the user data is allocated to a specific VAS instance in the VAS pool to calculate a specific service routing path and generate a flow. Table, sends the flow table to the switch.
具体地, 所述控制器可以根据业务链标识对应的业务链上 VAS池 中 VAS实例的权重, 将用户数据报文业务负荷分担到 VAS池中的具体 VAS实例。 所述 VAS实例的权重信息可以是静态地, 也可以是动态地, 所述静态权重表示所述 VAS实例的负载能力、 容量等的初始值, 所述 动态权重表示所述 VAS实例实时更新的负载能力、 容量等参数。  Specifically, the controller may share the service load of the user data packet to the specific VAS instance in the VAS pool according to the weight of the VAS instance in the VAS pool in the service chain. The weight information of the VAS instance may be static or dynamic. The static weight indicates an initial value of load capacity, capacity, and the like of the VAS instance, and the dynamic weight indicates a load that is updated by the VAS instance in real time. Capabilities, capacity and other parameters.
进一步地, 为了达到良好的负载均衡效果, 需要保证每类业务链 标识的分组数目远大于其业务链上 V AS池之间具有的最大的 V AS实例 数量。 例如: 业务链 A的分组数目为 100 , 业务链上 VAS池中同类功能 VAS实例的数目为 10, 所述情况下, 控制器可以根据具体 VAS实例中的 权重信息将用户数据报文分担到具体 VAS实例中, 属于同一组号的用 户数据报文被分配到相同 VAS实例上, 并生成流表。 S814、所述交换机根据所述流表对所述打上业务链标签的用户数 据报文进行业务路由。 Further, in order to achieve a good load balancing effect, it is required to ensure that the number of packets of each type of service chain identifier is far greater than the maximum number of V AS instances between the V AS pools in the service chain. For example, the number of packets of the service chain A is 100, and the number of VAS instances of the VAS in the service chain is 10. In this case, the controller can share the user data packets according to the weight information in the specific VAS instance. In a VAS instance, user data packets belonging to the same group number are assigned to the same VAS instance, and a flow table is generated. S814. The switch performs service routing on the user data packet marked with the service chain label according to the flow table.
因此,根据本发明实施例的用于业务路由的方法, TC组成用户数据 报文的业务链标签,发送至控制器, 用于所述控制器根据所述业务链 标签和所述业务链经过的 VAS池中各个 VAS的权重,生成流表并发送至 交换机。 从而实现 VAS实例间的负载均衡, 保证用户的业务体验。  Therefore, according to the method for service routing according to the embodiment of the present invention, the TC forms a service chain label of the user data packet, and sends the label to the controller for the controller to pass according to the service chain label and the service chain. The weight of each VAS in the VAS pool is generated and sent to the switch. This implements load balancing between VAS instances to ensure the user's service experience.
图 9示出了本发明实施例提供的另一种用于业务路由的方法的 信令交互图, 本发明实施例为图 4提供的一个具体实施例, 本发明实 施例中, TC根据所述用户数据报文的业务路由策略经过的 VAS池中 VAS 实例的权重信息为用户数据报文选择具体的 VAS实例, 组成业务链, 获得所述业务链对应的业务链标签, 发送至控制器, 以便于控制器根 据所述业务链标签查询所述 VAS池中 VAS实例组成的业务链,下发流表 至交换机。  FIG. 9 is a schematic diagram of a signaling interaction diagram of another method for service routing according to an embodiment of the present invention. The embodiment of the present invention is a specific embodiment provided in FIG. The weight information of the VAS instance in the VAS pool of the user data packet is selected as a specific VAS instance for the user data packet to form a service chain, and the service chain label corresponding to the service chain is obtained and sent to the controller. The controller queries the service chain formed by the VAS instance in the VAS pool according to the service chain label, and sends a flow table to the switch.
本发明实施例提供的方法中,初始化配置时,在 TC、控制器和 PCRF 中, 根据业务路由策略, 对经过业务路由策略的 VAS池上的具体 VAS 实例进行全排列组合, 并分配业务链标签。 所述 TC、 控制器、 PCRF 中配置有的具体 VAS实例组成的业务链及其业务链标签的列表。  In the method provided by the embodiment of the present invention, in the TC, the controller, and the PCRF, the specific VAS instances in the VAS pool that have passed the service routing policy are fully aligned according to the service routing policy, and the service chain labels are allocated. A list of service chains and service chain labels formed by the specific VAS instance configured in the TC, the controller, and the PCRF.
例如, 根据业务路由策略, 对经过业务路由策略的 VAS池上的具 体 VAS实例进行全排列组合, 并分配业务链标签。  For example, according to the service routing policy, the specific VAS instances on the VAS pool that have passed the service routing policy are fully aligned and assigned service chain labels.
S901-S906可以参考图 8示出的用于业务路由方法中的步骤  S901-S906 can refer to the steps in the service routing method shown in FIG.
S801- S806。 S801-S806.
S907、 PCRF向 TC发送 TDF会话建立请求信息。 具体地, 所述 TDF会话建立请求信息中包括执行控制信元, 所述执 行控制信元包括业务链标识,所述业务链标识用于标识同一类业务链。 S907. The PCRF sends TDF session establishment request information to the TC. Specifically, the TDF session establishment request information includes an execution control cell, where the execution control cell includes a service chain identifier, and the service chain identifier is used to identify the same type of service chain.
所述业务链标识可以标识本发明实施例中所述举例中的业务路 由策略 1 , 即经过 VAS池 1和 VAS池 2的业务路由策略。  The service chain identifier may identify the service routing policy 1 in the example in the embodiment of the present invention, that is, the service routing policy passing through the VAS pool 1 and the VAS pool 2.
5908、 TC向 PCRF发送 TDF会话建立响应信息。  5908. The TC sends a TDF session establishment response message to the PCRF.
5909、 所述 TC根据所述用户数据报文的业务路由策略经过的 VAS 池中 VAS实例的权重信息为用户数据报文选择具体的 VAS实例,组成业 务链, 获得所述业务链对应的业务链标签。  S909: The TC selects a specific VAS instance for the user data packet according to the weight information of the VAS instance in the VAS pool of the service routing policy of the user data packet, and forms a service chain to obtain a service chain corresponding to the service chain. label.
具体地,所述 TC根据所述用户数据报文的业务理由策略了解所述 用户数据报文经过的 VAS池, 根据所述经过的 VAS池中 VAS实例的权重 信息,选择具体的 VAS实例,组成业务链。以此实现 VAS池中负载均衡。 具体的业务链组成后, 所述 TC可以根据配置的具体 VAS实例组成的业 务链及其业务链标签的列表,在内部数据库中获得所述业务链对应的 业务链标签。  Specifically, the TC learns the VAS pool that the user data packet passes according to the service reason policy of the user data packet, and selects a specific VAS instance according to the weight information of the VAS instance in the passed VAS pool to form a specific VAS instance. Business chain. In this way, load balancing in the VAS pool is achieved. After the specific service chain is formed, the TC can obtain the service chain label corresponding to the service chain in the internal database according to the list of the service chain and the service chain label formed by the specific VAS instance.
可选地, 在本发明的另一实施例中, 可以由 PCRF根据用户数据报 文的业务路由策略经过的 VAS池中 VAS实例的权重信息为用户选择具 体的 VAS实例, 组成业务链, 获得所述业务链对应的业务链标签, 并 发送所述业务链标签至 TC。 具体步骤可以参考步骤 9。  Optionally, in another embodiment of the present invention, the PCRF may select a specific VAS instance for the user according to the weight information of the VAS instance in the VAS pool in the VAS pool of the service routing policy of the user data packet, and form a service chain. Describe a service chain label corresponding to the service chain, and send the service chain label to the TC. Refer to step 9 for specific steps.
5910、 所述 TC接收用户数据报文, 为用户数据报文打上所述业务 链标签。  5910: The TC receives a user data packet, and labels the service data label for the user data packet.
所述业务链标签标识用于标识业务路由策略经过的 VAS池中的 VAS实例组成的业务链; 5911、所述 TC发送所述打上业务链标签的用户数据报文至交换机。The service chain label identifies a service chain formed by the VAS instance in the VAS pool through which the service routing policy passes; The TC sends the user data packet marked with the service chain label to the switch.
5912、 对于首包, 交换机并无对应流表, 交换机发送入分组报文 至控制器, 该入分组报文包括所述业务链标签。 5912. For the first packet, the switch does not have a corresponding flow table, and the switch sends the packet packet to the controller, where the incoming packet message includes the service chain label.
5913、 所述控制器接收所述业务链标签, 根据所述业务链标签, 查询所述 VAS池中 VAS实例组成的业务链, 下发流表至交换机。  S913. The controller receives the service chain label, and queries the service chain formed by the VAS instance in the VAS pool according to the service chain label, and sends the flow table to the switch.
5914、所述交换机根据所述流表对所述打上业务链标签的用户数 据报文进行业务路由。  5914. The switch performs service routing on the user data packet marked with the service chain according to the flow table.
具体地, 所述控制器根据配置的具体 V AS实例组成的业务链及其 业务链标签的列表, 查询所述 VAS池中 VAS实例组成的业务链, 下发流 表至交换机。  Specifically, the controller queries the service chain formed by the VAS instance in the VAS pool according to the configured service chain of the specific V AS instance and the service chain label, and sends the flow table to the switch.
因此,根据本发明实施例的用于业务路由的方法, TC根据具体 VAS 实例的权重信息为用户数据报文选择具体的 VAS实例, 组成业务链, 查询所述业务链标签, 发送至控制器, 用于控制器根据所述业务链标 签, 下发流表至交换机。 从而实现 VAS实例间的负载均衡, 保证用户 的业务体验。  Therefore, according to the method for service routing according to the embodiment of the present invention, the TC selects a specific VAS instance for the user data packet according to the weight information of the specific VAS instance, forms a service chain, queries the service chain label, and sends the label to the controller. The controller sends a flow table to the switch according to the service chain label. This implements load balancing between VAS instances to ensure the user's service experience.
图 10示出了本发明实施例提供的另一种用于业务路由的方法的 信令交互图, 本发明实施例为图 4的一个具体实施例。 本发明实施例 中, 由控制器根据业务路由策略经过的 VAS池上的 VAS实例的权重, 为 用户数据报文选择具体的 VAS实例,组成业务链,并分配业务链标签。  FIG. 10 is a schematic diagram of a signaling interaction diagram of another method for service routing according to an embodiment of the present invention. The embodiment of the present invention is a specific embodiment of FIG. In the embodiment of the present invention, the controller selects a specific VAS instance for the user data packet according to the weight of the VAS instance in the VAS pool that the service routing policy passes, and forms a service chain, and allocates a service chain label.
S1001-1006可以参考图 8示出的用于业务路由的方法中的步骤 S801- S806。  S1001-1006 can refer to steps S801-S806 in the method for service routing shown in FIG.
S1007、 PCRF发送业务路由策略至 TC。 51008、 所述 TC接收用户数据报文。 S1007 and the PCRF send a service routing policy to the TC. 51008. The TC receives a user data packet.
51009、 所述 TC发送所述业务路由策略至控制器。 51009. The TC sends the service routing policy to a controller.
51010、 所述控制器根据所述业务路由策略经过的 VAS池上的 VAS 实例的权重, 为用户数据报文选择具体的 VAS实例, 组成业务链, 并 分配业务链标签。 51010: The controller selects a specific VAS instance for the user data packet according to the weight of the VAS instance in the VAS pool that the service routing policy passes, and forms a service chain, and allocates a service chain label.
S101 控制器发送所述业务链标签至 TC。 所述 S1012之后, 所述 TC为用户数据报文打上所述业务链标签, 发送至交换机。 所述控制器生成流表, 发送至交换机。 所述交换机根 据所述流表对用户数据报文进行业务路由。 因此,基于本发明实施例提供的用于业务路由的方法, 控制器根 根据业务路由策略经过的 VAS池上的 VAS实例的权重,为用户数据报文 选择具体的 VAS实例, 组成业务链。 实现了 VAS池中 VAS实例间的负载 均衡。 The S101 controller sends the service chain label to the TC. After the S1012, the TC sends the service chain label to the user data packet and sends the label to the switch. The controller generates a flow table that is sent to the switch. The switch performs service routing on user data packets according to the flow table. Therefore, based on the method for the service routing provided by the embodiment of the present invention, the controller root selects a specific VAS instance for the user data packet according to the weight of the VAS instance in the VAS pool that the service routing policy passes, and forms a service chain. Load balancing between VAS instances in the VAS pool is implemented.
本领域技术人员应理解, 所述图 5、 图 6、 图 7示出的本发明实施 例提供的装置中列出的各种说明性逻辑块可以通过电子硬件、电脑软 件, 或两者的结合进行实现。 为清楚展示硬件和软件的可替换性 ( interchangeab i l i ty ) , 所述的各种说明性部件 ( i l lus tra t ive component s )和步骤已经通用地描述了它们的功能。 这样的功能是通 过硬件还是软件来实现取决于特定的应用和整个***的设计要求。本 领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述 的功能,但这种实现不应被理解为超出本发明实施例保护的范围。 所 述图 2、 图 3、 图 4、 图 5示出的本发明实施例提供的装置中各种说明性 的逻辑块, 模块和电路可以通过通用处理器, 数字信号处理器, 专用 集成电路(ASIC ) , 现场可编程门阵列 (FPGA )或其它可编程逻辑装 置, 离散门或晶体管逻辑, 离散硬件部件, 或上述任何组合的设计来 实现或操作所描述的功能。 通用处理器可以为微处理器, 可选地, 该 通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。 处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微 处理器, 多个微处理器, 一个或多个微处理器联合一个数字信号处理 器核, 或任何其它类似的配置来实现。 Those skilled in the art should understand that the various illustrative logic blocks listed in the apparatus provided by the embodiment of the present invention shown in FIG. 5, FIG. 6, and FIG. 7 may be through electronic hardware, computer software, or a combination of the two. Implement it. To clearly demonstrate the interchangeability of hardware and software, the various illustrative components and steps described have generally described their functionality. Whether such functionality is implemented by hardware or software depends on the design requirements of the particular application and the overall system. A person skilled in the art can implement the described functions using various methods for each specific application, but such implementation should not be construed as being beyond the scope of the embodiments of the present invention. The various illustrative logic blocks, modules and circuits in the apparatus provided by the embodiments of the present invention shown in FIG. 2, FIG. 3, FIG. 4 and FIG. 5 can be implemented by a general-purpose processor, a digital signal processor, and an application specific integrated circuit ( ASIC), Field Programmable Gate Array (FPGA) or other programmable logic The discrete gate or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functionality. A general purpose processor may be a microprocessor, which may alternatively be any conventional processor, controller, microcontroller or state machine. The processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration. achieve.
进一步地,在本发明的另一实施例中提供了一种用于内容緩存的 ***, 所述***中包括所述图 5示出的 TC500、 所述图 6示出的控制器 600。 本领域普通技术人员可以意识到,结合本文中所公开的实施例中 描述的各方法步骤和单元, 能够以电子硬件、计算机软件或者二者的 结合来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中 已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟 以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束 条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来 实现所描述的功能, 但是这种实现不应认为超出本发明的范围。  Further, in another embodiment of the present invention, a system for content caching is provided, which includes the TC 500 shown in FIG. 5 and the controller 600 shown in FIG. 6. Those skilled in the art will appreciate that the various method steps and elements described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the steps and composition of the various embodiments have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. Different methods may be used to implement the described functionality for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁, 上述描述的***、装置和单元的具体工作过程, 可以参考前述方法实 施例中的对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的***、 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实 施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能 划分, 实际实现时可以有另外的划分方式, 例如多个单元或组件可以 结合或者可以集成到另一个***, 或一些特征可以忽略, 或不执行。 另夕卜,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是 通过一些接口、 装置或单元的间接耦合或通信连接, 也可以是电的, 机械的或其它的形式连接。 开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可以 位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的 需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。 In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. 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 Electrical, mechanical or other forms of connection may also be made through indirect coupling or communication connections of some interfaces, devices or units. 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 embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理 单元中, 也可以是各个单元单独物理存在, 也可以是两个或两个以上 单元集成在一个单元中。上述集成的单元既可以釆用硬件的形式实现, 也可以釆用软件功能单元的形式实现。  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 a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的 产品销售或使用时, 可以存储在一个计算机可读取存储介质中。基于 这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的 部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一 台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行 本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包 括: U盘、移动硬盘、只读存储器(Read-On ly Memory,简称为" ROM" )、 随机存取存储器 ( Random Acces s Memory, 简称为 " RAM" ) 、 磁碟 或者光盘等各种可以存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (Read-Only Memory, abbreviated as "ROM"), a random access memory ("RAM"), a disk or A variety of media such as optical discs that can store program code.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并 不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范 围内, 可轻易想到各种等效的修改或替换, 这些修改或替换都应涵盖 在本发明的保护范围之内。 因此, 本发明的保护范围应以权利要求的 保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权利要求 Rights request
1、 一种业务路由的方法, 其特征在于, 包括: 1. A service routing method, characterized by including:
流分类器 TC获取策略和计费功能实体 PCRF发送的用户数据报文 的业务链标签或者获取来自所述 TC 自身的用户数据报文的业务链标 签, 所述业务链标签包括业务链标识和扩展标识, 所述业务链标识用 于标示业务链; The traffic classifier TC obtains the service chain label of the user data packet sent by the policy and charging function entity PCRF or obtains the service chain label of the user data packet from the TC itself. The service chain label includes the service chain identification and extension. Identification, the business chain identification is used to mark the business chain;
所述 TC为用户数据报文打上所述业务链标签,发送所述打上所述 业务链标签的用户数据报文至交换机,以便于所述交换机接收控制器 根据所述业务链标签和所述业务链上具体增值业务服务器 VAS实例的 权重生成的流表后,根据所述流表对所述打上业务链标签的用户数据 报文进行业务路由。 The TC labels the user data packets with the service chain label, and sends the user data packets with the service chain label to the switch, so that the switch receives the controller according to the service chain label and the service After the flow table is generated based on the weight of the specific value-added service server VAS instance on the chain, the user data packets labeled with the service chain are routed according to the flow table.
2、 根据权利要求 1所述的方法, 其特征在于, 所述 TC获取来自所 述 TC的用户数据报文的业务链标签之前, 还包括: 2. The method according to claim 1, characterized in that, before the TC obtains the service chain label of the user data message from the TC, it further includes:
所述 TC接收 PCRF发送的用户数据报文的业务链标识; The TC receives the service chain identifier of the user data message sent by the PCRF;
所述 TC随机分配组号给所述用户数据报文,组成所述用户数据报 文的业务链标签; The TC randomly assigns a group number to the user data message to form a service chain label of the user data message;
所述用户数据报文的业务链标签包括业务链标识和扩展标识,所 述扩展标识为所述 TC随机分配给所述用户数据报文的组号。 The service chain label of the user data message includes a service chain identifier and an extended identifier. The extended identifier is a group number randomly assigned by the TC to the user data message.
3、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 所述 PCRF获取所述用户数据报文的业务链标识; 3. The method according to claim 1, characterized in that, the method further includes: the PCRF obtaining the service chain identifier of the user data message;
所述 PCRF随机分配组号给所述用户数据报文,组成所述用户数据 报文的业务链标签,所述用户数据报文的业务链标签包括业务链标识 和扩展标识,所述扩展标识为所述 TC为所述用户数据报文随机分配的 组号。 The PCRF randomly assigns a group number to the user data message to form a service chain label of the user data message. The service chain label of the user data message includes a service chain identifier. and an extended identifier, where the extended identifier is a group number randomly assigned by the TC to the user data packet.
4、 根据权利要求 1所述的方法, 其特征在于, 所述交换机接收控 制器根据所述业务链标签和所述业务链上具体 VAS实例的权重生成的 流表, 具体包括: 4. The method according to claim 1, characterized in that the switch receives a flow table generated by the controller based on the service chain label and the weight of a specific VAS instance on the service chain, specifically including:
所述控制器根据业务链标签和所述业务链经过的 VAS池中各个 生成流表并发送至交换机。 The controller generates a flow table based on the service chain label and each VAS pool that the service chain passes through, and sends it to the switch.
5、 一种业务路由的方法, 其特征在于, 包括: 5. A service routing method, characterized by including:
控制器接收流分类器 TC发送的用户数据报文的业务链标签,所述 业务链标签包括业务链标识和扩展标识,所述业务链标识用于标示业 务链; The controller receives the service chain label of the user data message sent by the traffic classifier TC. The service chain label includes a service chain identifier and an extended identifier, and the service chain identifier is used to mark the service chain;
所述控制器根据业务链标签和所述业务链经过的增值业务服务 器 VAS池中各个 VAS实例的权重,为所述用户数据报文分配所述 VAS 池 中的 VAS实例, 生成流表并发送至交换机。 The controller allocates the VAS instances in the VAS pool to the user data message according to the business chain label and the weight of each VAS instance in the value-added service server VAS pool through which the business chain passes, generates a flow table and sends it to switch.
6、 一种业务路由的方法, 其特征在于, 包括: 6. A service routing method, characterized by including:
流分类器 TC获取策略和计费功能实体 PCRF发送的用户数据报文 的业务链标签或者获取来自所述 TC 自身的用户数据报文的业务链标 签或者获取控制器发送的用户数据报文的业务链标签,所述业务链标 签用于标识具体增值业务服务器 VAS实例组成的业务链; The traffic classifier TC obtains the service chain label of the user data packet sent by the policy and charging function entity PCRF or obtains the service chain label of the user data packet from the TC itself or obtains the service of the user data packet sent by the controller. Chain tag, the business chain tag is used to identify the business chain composed of specific value-added service server VAS instances;
所述 TC为用户数据报文打上所述业务链标签,发送所述打上所述 业务链标签的用户数据报文至交换机, 以便于所述交换机接收控制 器根据所述业务链标签生成的流表后,根据所述流表对所述打上业务 链标签的用户数据报文进行业务路由。 The TC labels user data packets with the service chain label, and sends the user data packets with the service chain label to the switch, so that the switch receives control After the flow table generated by the server according to the service chain label is generated, the user data packet labeled with the service chain label is routed according to the flow table.
7、 根据权利要求 6所述的方法, 其特征在于, 所述 TC获取来自所 述 TC自身的用户数据报文的业务链标签, 包括: 7. The method according to claim 6, characterized in that the TC obtains the service chain label of the user data message from the TC itself, including:
所述 TC接收 PCRF发送的用户数据报文的业务路由策略; 所述 TC根据所述用户数据报文业务链经过的 VAS池中 VAS实例的 权重信息为用户数据报文选择具体的 VAS实例, 组成业务链, 获得所 述业务链对应的业务链标签。 The TC receives the service routing policy of the user data message sent by the PCRF; the TC selects a specific VAS instance for the user data message according to the weight information of the VAS instance in the VAS pool through which the user data message service chain passes, consisting of Business chain, obtain the business chain label corresponding to the business chain.
8、根据权利要求 6所述的方法,其特征在于,所述 TC获取来自 PCRF 发送的用户数据报文的业务链标签之前, 还包括: 8. The method according to claim 6, characterized in that before the TC obtains the service chain label of the user data message sent from the PCRF, it also includes:
所述 PCRF根据用户数据报文的业务链经过的 VAS池中 VAS实例的 权重信息为用户数据报文选择具体的 VAS实例, 组成业务链, 获得所 述业务链对应的业务链标签。 The PCRF selects a specific VAS instance for the user data message according to the weight information of the VAS instance in the VAS pool through which the service chain of the user data message passes, forms a service chain, and obtains the service chain label corresponding to the service chain.
9、 根据权利要求 6-8中所述任一方法, 其特征在于, 所述方法还 包括: 9. The method according to any one of claims 6-8, characterized in that the method further includes:
所述 TC发送所述业务链标签至控制器 ,用于所述控制器根据所述 业务链标签, 查询获得所述业务链标签标示的由具体 VAS实例组成的 业务链, 生成流表。 The TC sends the business chain label to the controller, for the controller to query and obtain the business chain consisting of specific VAS instances marked by the business chain label according to the business chain label, and generate a flow table.
10、 根据权利要求 6所述的方法, 其特征在于, 所述 TC获取来自 控制器发送的用户数据报文的业务链信息之前, 还包括: 10. The method according to claim 6, characterized in that, before the TC obtains the service chain information from the user data message sent by the controller, it also includes:
所述控制器接收所述 TC发送的业务链; The controller receives the service chain sent by the TC;
所述控制器根据所述业务链经过的 VAS池上 VAS实例的权重,为用 户数据报文选择具体的 V AS实例, 并分配业务链标签。 The controller determines the weight of the VAS instance in the VAS pool through which the business chain passes. Select a specific V AS instance for the household data message and assign a business chain label.
11、 一种业务路由的装置, 其特征在于, 包括: 11. A service routing device, characterized by including:
获取单元,用于获取策略和计费功能实体 PCRF发送的用户数据报 文的业务链标签或者来自所述装置自身的用户数据报文的业务链标 签, 所述业务链标签包括业务链标识和扩展标识, 所述业务链标识用 于标示业务链; The acquisition unit is used to acquire the service chain label of the user data message sent by the policy and charging function entity PCRF or the service chain label of the user data message from the device itself. The service chain label includes a service chain identifier and an extension. Identification, the business chain identification is used to mark the business chain;
处理单元, 用于为所述用户数据报文打上所述业务链标签; 发送单元,用于发送所述打上业务链标签的用户数据报文至交换 机,以便于所述交换机接收控制器根据所述业务链标签和所述业务链 上具体增值业务服务器 VAS实例的权重生成的流表后,根据所述流表 对所述打上业务链标签的用户数据报文进行业务路由。 a processing unit, configured to label the user data message with the service chain label; a sending unit, configured to send the user data message with the service chain label to the switch, so that the switch receives the controller according to the After generating a flow table based on the service chain label and the weight of the specific value-added service server VAS instance on the service chain, service routing is performed on the user data packet labeled with the service chain label according to the flow table.
12、 一种业务路由的装置, 其特征在于, 包括: 12. A service routing device, characterized by including:
接收单元,用于接收流分类器 TC发送的用户数据报文的业务链标 签, 所述业务链标签包括业务链标识和扩展标识, 所述业务链标识用 于标示业务链; A receiving unit, configured to receive the service chain label of the user data message sent by the traffic classifier TC. The service chain label includes a service chain identifier and an extended identifier, and the service chain identifier is used to mark the service chain;
处理单元,用于根据业务链标签和所述业务链经过的增值业务服 务器 VAS池中各个 VAS实例的权重, 为所述用户数据报文分配所述 VAS 池中的 VAS实例, 生成流表, A processing unit, configured to allocate VAS instances in the VAS pool to the user data message according to the business chain label and the weight of each VAS instance in the VAS pool of the value-added service server through which the business chain passes, and generate a flow table,
发送单元, 用于发送所述流表至交换机。 A sending unit, configured to send the flow table to the switch.
13、 一种业务路由的装置, 其特征在于, 包括: 13. A service routing device, characterized by including:
获取单元,用于获取策略和计费功能实体 PCRF发送的用户数据报 文的业务链标签或者获取来自所述 TC 自身的用户数据报文的业务链 标签或者获取控制器发送的用户数据报文的业务链标签,所述业务链 标签用于标识具体 VAS实例组成的业务链; The acquisition unit is used to obtain the service chain label of the user data message sent by the policy and charging function entity PCRF or obtain the service chain of the user data message from the TC itself. Label or obtain the business chain label of the user data message sent by the controller. The business chain label is used to identify the business chain composed of specific VAS instances;
处理单元, 用于为用户数据报文打上所述业务链标签; 发送单元,用于发送所述打上所述业务链标签的用户数据报文至 交换机, 以便于所述交换机接收控制器根据所述业务链标签生成的 流表后,根据所述流表对所述打上业务链标签的用户数据报文进行业 务路由。 a processing unit, configured to label user data packets with the service chain label; a sending unit, configured to send the user data packets labeled with the service chain label to the switch, so that the switch receives the controller according to the After the flow table is generated by the service chain label, service routing is performed on the user data packets labeled with the service chain label according to the flow table.
PCT/CN2013/088898 2013-12-09 2013-12-09 Method and apparatus for service routing WO2015085470A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/088898 WO2015085470A1 (en) 2013-12-09 2013-12-09 Method and apparatus for service routing
CN201380081474.7A CN105814860B (en) 2013-12-09 2013-12-09 A kind of method and apparatus of business routing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/088898 WO2015085470A1 (en) 2013-12-09 2013-12-09 Method and apparatus for service routing

Publications (1)

Publication Number Publication Date
WO2015085470A1 true WO2015085470A1 (en) 2015-06-18

Family

ID=53370441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088898 WO2015085470A1 (en) 2013-12-09 2013-12-09 Method and apparatus for service routing

Country Status (2)

Country Link
CN (1) CN105814860B (en)
WO (1) WO2015085470A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686678A (en) * 2015-11-10 2017-05-17 ***通信集团公司 Service route system and service processing method thereof
CN107113235A (en) * 2015-09-30 2017-08-29 华为技术有限公司 A kind of method and device of data route

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812379A (en) * 2006-03-03 2006-08-02 清华大学 Split network processor control information cache memory
CN101227417A (en) * 2006-08-04 2008-07-23 华为技术有限公司 Apparatus and method for data package classification

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812379A (en) * 2006-03-03 2006-08-02 清华大学 Split network processor control information cache memory
CN101227417A (en) * 2006-08-04 2008-07-23 华为技术有限公司 Apparatus and method for data package classification

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107113235A (en) * 2015-09-30 2017-08-29 华为技术有限公司 A kind of method and device of data route
US10659350B2 (en) 2015-09-30 2020-05-19 Huawei Technologies Co., Ltd. Data routing method and apparatus
CN107113235B (en) * 2015-09-30 2020-06-02 华为技术有限公司 Data routing method and device
CN106686678A (en) * 2015-11-10 2017-05-17 ***通信集团公司 Service route system and service processing method thereof

Also Published As

Publication number Publication date
CN105814860B (en) 2019-01-25
CN105814860A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
US11317316B2 (en) Communication apparatus, system, method, allocation apparatus, and non-transitory recording medium
US11871340B2 (en) Network slice selection
US11539626B2 (en) Method, apparatus, and system for load balancing of service chain
US20160323193A1 (en) Service Routing Method, Device, and System
US11051201B2 (en) Dynamic selection of network elements
US20220247688A1 (en) Establishing a Packet Forwarding Control Protocol Session
JP5575928B2 (en) Various source message associations
JP2018509838A (en) Network management
EP2716097A1 (en) Implementing epc in a cloud computer with openflow data plane
US20200059525A1 (en) Redirection method, control plane network element, aggregation user plane network element, content server, and terminal device
US20150163331A1 (en) Packet control method and apparatus
US20210084100A1 (en) Packet Processing Method, Related Device, and Computer Storage Medium
Ricart‐Sanchez et al. Toward hardware‐accelerated QoS‐aware 5G network slicing based on data plane programmability
CN110870256B (en) Method, system and computer readable medium for operating a telecommunication network
CN106792923B (en) Method and device for configuring QoS strategy
WO2017128819A1 (en) Policy and charging control method and apparatus based on application, and storage medium
WO2016115672A1 (en) Bearer resource processing method and apparatus
CN111587586A (en) GTP tunnel supporting anchor-free backhaul
WO2015085470A1 (en) Method and apparatus for service routing
US20150100620A1 (en) Packet processing method, system, and device
US20170099221A1 (en) Service packet distribution method and apparatus
JP6306202B2 (en) Method and apparatus for supporting network traffic
EP3322124A1 (en) Control method for application feature rules and application feature server
US20220132279A1 (en) Information transmission method, network element selector, and controller
WO2016023167A1 (en) Service routing method, apparatus and system

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: 13899337

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13899337

Country of ref document: EP

Kind code of ref document: A1