[go: up one dir, main page]

WO2016029698A1 - Policy control method and system and gateway - Google Patents

Policy control method and system and gateway Download PDF

Info

Publication number
WO2016029698A1
WO2016029698A1 PCT/CN2015/076336 CN2015076336W WO2016029698A1 WO 2016029698 A1 WO2016029698 A1 WO 2016029698A1 CN 2015076336 W CN2015076336 W CN 2015076336W WO 2016029698 A1 WO2016029698 A1 WO 2016029698A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
policy
action
priority
actions
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2015/076336
Other languages
French (fr)
Chinese (zh)
Inventor
葛正恺
仲其涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2016029698A1 publication Critical patent/WO2016029698A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a policy control method, system, and gateway.
  • the policy and charging function is implemented by a Policy and Charging Control (PCC) system.
  • PCC Policy and Charging Control
  • the PCC system includes a Policy and Charging Rules Function (PCRF), a Policy and Charging Enforcement Function (PCEF), and a charging device.
  • PCRF Policy and Charging Rules Function
  • PCEF Policy and Charging Enforcement Function
  • the PCRF After detecting that the user equipment is online, the PCEF reports the information about the user equipment to the PCRF.
  • the PCRF generates a control policy for the user according to the information about the user equipment, and sends a control policy to the PCEF.
  • the PCEF executes the user equipment according to the control policy. Policy control.
  • the control strategy includes a combination of different types of control actions, such as a charging action, a bandwidth control action, and the like.
  • the PCEF selects only the control strategy with the highest priority to perform, and the adaptability is poor.
  • Embodiments of the present invention provide a method, system, and gateway for implementing policy control according to priorities of control actions in at least two control policies.
  • an embodiment of the present invention provides a policy control method, including:
  • control policy set matching the user equipment, where the control policy set includes multiple control policies
  • the control strategy includes a priority of the control action and the control policy
  • determining, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set includes: :
  • Control actions in the control policy set according to types of control actions
  • the control action with the highest priority in each packet is determined according to the priority of the control action, and the priority of the control action is the same as the priority of the control policy in which the control action is located.
  • the determining, according to the priority of the control policy, determining that the control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set includes :
  • the control action with the highest priority in each packet is determined according to the priority of the control action, and the priority of the control action is the same as the priority of the control policy in which the control action is located.
  • the acquiring a control policy set that matches the user equipment include:
  • the method further includes:
  • the control policy update message may specifically be a Credit Control Answer Update (CCA-Update) update message or a re-authentication request (Re-Auth-Request, RAR) commands, etc.
  • CCA-Update Credit Control Answer Update
  • RAR re-authentication request
  • the type of the control action includes one or more of a bandwidth control, a charging policy, and a usage monitoring.
  • an embodiment of the present invention provides a gateway, including:
  • a policy obtaining unit configured to acquire a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy;
  • An action determining unit configured to determine, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set;
  • a policy execution unit configured to perform policy control on the user equipment according to the control action with the highest priority.
  • the action determining unit includes:
  • a first grouping module configured to group control actions in the control policy set according to a type of the control action
  • the first determining module is configured to determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy in which the control action is located.
  • the action determining unit includes:
  • An obtaining module configured to acquire a first control policy that includes the largest number of control actions in the control policy set
  • a second grouping module configured to group the control actions in the control policy set according to a type of the control action in the first control policy
  • a second determining module configured to determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy where the control action is located.
  • the gateway further includes:
  • a policy update unit configured to receive a control policy update message delivered by the policy and charging rule function, Updating the control policy set, triggering the action determining unit to perform the step of determining, according to the priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set.
  • the embodiment of the present invention further provides a policy and charging control system, including a policy and charging rule function, and a gateway as described above, where the policy and charging rule function is sent to the gateway through a Gx interface. Send a control policy.
  • the PCEF determines, according to the priority of the control policy, the control action with the highest priority among the same type of control actions included in the at least two control policies, and then performs the action according to the control action with the highest priority.
  • Policy control of the user equipment Compared with the prior art, the embodiment of the present invention performs policy control according to the control action with the highest priority among the same type of control actions, and can combine the control actions in multiple different control strategies, and overcomes the prior art only according to the priority.
  • the highest one control strategy is used to carry out technical defects caused by policy control, which improves the efficiency of policy control in complex business scenarios and is more adaptable.
  • FIG. 1 is a block diagram of a policy and charging control system in an embodiment of the present invention
  • Embodiment 3 is a flowchart of a policy control method according to Embodiment 2 of the present invention.
  • FIG. 5 is a flowchart of a policy control method according to Embodiment 4 of the present invention.
  • FIG. 6 is a flowchart of a policy control method according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic structural diagram of a gateway according to Embodiment 6 of the present invention.
  • FIG. 8 is a schematic structural diagram of an action determining unit in a gateway according to Embodiment 6 of the present invention.
  • FIG. 9 is another schematic structural diagram of an action determining unit in a gateway according to Embodiment 6 of the present invention.
  • FIG. 10 is a schematic structural diagram of a gateway according to Embodiment 7 of the present invention.
  • FIG. 11 is a schematic structural diagram of a policy and charging control system according to Embodiment 8 of the present invention.
  • FIG. 1 is a structural diagram of a policy and charging control system in an embodiment of the present invention.
  • the policy and charging control system in the embodiment of the present invention includes a PCRF 110, a gateway 120, an online charging system (OCS) 130, and an offline charging system 140 (Offline Charging System, The OFCS), the Application Function (AF) unit 150, the User Data Repository (UDR) 160, the AN Gateway 170, and the Traffic Detection Function (TDF) 180.
  • a PCRF 110 a gateway 120
  • OCS online charging system
  • OCS offline charging system 140
  • AF Application Function
  • UDR User Data Repository
  • TDF Traffic Detection Function
  • the gateway 120 includes a PCEF.
  • the AN-Gateway 170 includes a Bearing Binding and Event Report Function (BBERF).
  • BBERF Bearing Binding and Event Report Function
  • the policy is transmitted between the PCRF and the PCEF through the Gx interface.
  • the Gx interface is based on the Diameter Credit Control (DCC) interface protocol.
  • DCC Diameter Credit Control
  • FIG. 2 is a flowchart of a policy control method according to Embodiment 1 of the present invention.
  • the policy control method provided by the embodiment of the present invention mainly includes:
  • Step 201 Acquire a control policy set that matches the user equipment, where the control policy set includes multiple control policies, where the control policy includes a control action and a priority of the control policy.
  • the PCEF obtains multiple control policies that match the services of the user equipment (such as data services, voice services, and the like) from the control policy delivered by the PCRF, and each control policy includes multiple different types of control actions or only A control action.
  • each control policy includes multiple different types of control actions or only A control action.
  • control policy set In the embodiment of the present invention, the multiple control policies are collectively referred to as a control policy set.
  • Each control policy in the control policy set corresponds to a priority, which is used to identify the priority of the control policy.
  • Step 202 Determine, according to the priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set.
  • the control action is divided into types according to the type, including charging rules, bandwidth control, usage monitoring, etc., and the priority of the control action inherits the priority of the control policy in which the control action is located, that is, the control action and Its control strategy has the same priority. It should be noted that the same type of control action may exist only in one of the at least two control strategies, that is, the control action is a single type.
  • the PCEF may determine, according to a priority of the control policy, a control action with the highest priority among each type of control actions included in the at least two control policies, where the at least two control policies are from the foregoing control policy set. .
  • Step 203 Perform policy control on the user equipment according to the control action with the highest priority.
  • the PCEF performs policy control on the user equipment according to the control action with the highest priority.
  • the PCEF may combine the determined highest priority control actions for each type into a new control policy and then execute the new control strategy.
  • the PCEF determines, according to the priority of the control policy, the control action with the highest priority among the same type of control actions included in the at least two control policies, and then performs the action according to the control action with the highest priority.
  • Policy control of the user equipment Compared with the prior art, the embodiment of the present invention performs policy control according to the control action with the highest priority among the same type of control actions, and can combine the control actions in multiple different control strategies, and overcomes the prior art only according to the priority.
  • the highest one control strategy is used to carry out technical defects caused by policy control, which improves the efficiency of policy control in complex business scenarios and is more adaptable.
  • FIG. 3 is a flowchart of a policy control method according to Embodiment 2 of the present invention.
  • the policy control method provided by the embodiment of the present invention includes:
  • Step 301 Obtain a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy.
  • step 301 The specific implementation process of the step 301 is the same as the process of the step 201 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.
  • Step 302 Determine a first type of control action in the control action included in the control policy set that is different from a type of a control action included in the highest priority control policy.
  • control policy set includes more types of control actions than the highest priority control policy, and thus the PCEF can determine the control included in the control policy set.
  • the control actions in the system action are different from the types of control actions included in the highest priority control strategy. These different types of control actions are collectively referred to as the first type of control actions, and the first type of control actions may include multiple different types of control actions. .
  • Step 303 Perform policy control on the user equipment according to the control action in the highest priority control policy and the first type control action.
  • the PCEF can perform policy control on the user equipment according to the control action in the highest priority control policy and the first type of control action.
  • the PCEF can specifically combine the control actions in the highest priority control strategy and the first type of control actions into a new control policy, and then execute the new control strategy.
  • the PCEF may further group the first type of control actions according to the action type, and determine the highest priority control action in each group according to the priority of the control action, and the priority of the control action inherits the control strategy of the control action.
  • the priority is further combined with the control action in the highest priority control policy and the control action with the highest priority in each packet.
  • the embodiment of the present invention combines multiple control strategies of different priorities (the highest priority control strategy and the control action in another control strategy) to implement policy control, overcoming the prior art only according to the highest priority.
  • the level control strategy is used to control the technical defects caused by the policy control, and the efficiency of the policy control in the complex business scenario is improved, and the adaptability is better.
  • FIG. 4 is a flowchart of a policy control method according to Embodiment 3 of the present invention.
  • the policy control method provided by the embodiment of the present invention includes:
  • Step 401 Obtain a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy.
  • step 401 The specific execution process of the step 401 is the same as the process of the step 201 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.
  • Step 402 Group the control actions in the control policy set according to the type of the control action.
  • the PCEF groups control actions in the control policy set according to types of control actions, such as charging rules, bandwidth control, and usage monitoring, and the same type of control actions are located in one group.
  • Step 403 Determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy where the control action is located.
  • each control policy corresponds to a unique priority
  • the priority of the control action inherits the priority of the control policy in which the control action is located, that is, the priority of the control action is the same as the priority of the control policy in which the control action is located. Therefore, each control action corresponds to a unique priority.
  • the PCEF determines the highest priority control action within each packet based on the priority of the control action.
  • Step 404 Perform policy control on the user equipment according to the control action with the highest priority.
  • step 404 The specific execution process of the step 404 is the same as the process of the step 203 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.
  • Step 405 Receive a control policy update message sent by the PCRF, update a control policy in the control policy set, and perform a step of grouping control actions in the control policy set according to the type of the control action.
  • the PCEF may also receive the control policy update message sent by the PCRF to update the control policy set.
  • the update process may include adding, modifying, and deleting control actions in the control policy set.
  • the control policy update message may be a Credit Control Answer Update (CCA-Update) update message, a Re-Auth-Request (RAR) command, or the like.
  • the different types of control actions with the highest priority are determined according to the control actions in the control policy set, so that all the control policies in the control policy set can be used to control the user equipment and improve the policy.
  • the efficiency of policy control is determined according to the control policy set, so that all the control policies in the control policy set can be used to control the user equipment and improve the policy.
  • the efficiency of policy control is further updated the control policy set according to the control policy update message sent by the PCRF, and re-controls the user according to the updated control policy set, thereby further improving the efficiency of the policy control.
  • FIG. 5 is a flowchart of a policy control method according to Embodiment 4 of the present invention. As shown, the policy control method provided by the embodiment of the present invention includes:
  • Step 501 Obtain a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy.
  • step 501 The specific implementation process of the step 501 is the same as the process of the step 201 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.
  • Step 502 Acquire, in the control policy set, a first control policy that includes the largest number of control actions.
  • the PCEF acquisition control policy set since the number of control actions included in each control policy is different, the PCEF acquisition control policy set includes the first control policy with the largest number of control actions.
  • the control policy that includes the largest number of control actions may include multiple, and the embodiment of the present invention obtains one of them (for example, the one with the highest priority) as the first control policy.
  • the PCEF can also acquire any one of the plurality of control strategies including the largest number of control actions as the first control strategy.
  • Step 503 Group control actions in the control policy set according to types of control actions in the first control policy.
  • the PCEF groups all the control actions in the control policy set according to each type of the control action in the first control policy, and further has the same type of control action in the same group as the control action in the first control policy, and A control action in which the types of control actions in a control strategy are different may not be grouped.
  • Step 504 Determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy where the control action is located.
  • each control policy corresponds to a unique priority, and the priority of the control action inherits the priority of the control policy in which the control action is located, each control action corresponds to a unique priority.
  • the PCEF determines the highest priority control action within each packet based on the priority of the control action.
  • Step 505 Perform policy control on the user equipment according to the control action with the highest priority.
  • step 505 The specific execution process of the step 505 is the same as the process of the step 203 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.
  • Step 506 Receive a control policy update message sent by the PCRF, update a control policy in the control policy set, and perform a jump to execute the control control policy set that includes the largest number of control actions.
  • a control strategy step Receive a control policy update message sent by the PCRF, update a control policy in the control policy set, and perform a jump to execute the control control policy set that includes the largest number of control actions.
  • the PCEF may also receive the control policy update message sent by the PCRF to update the control policy set.
  • the update process may include adding, modifying, and deleting control actions in the control policy set.
  • the control policy update message may be a (Credit Control Answer Update, CCA-Update) update message, a Re-Auth-Request (RAR) command, or the like.
  • the embodiment of the present invention jumps to perform step 502 of the first control policy in which the acquisition control policy set includes the largest number of control actions.
  • the policy execution method provided by the fourth embodiment of the present invention different types of control actions with the highest priority are determined according to the type of the control action in the first control policy, and thus the policy of the user equipment can be combined with multiple control policies. Control can improve the efficiency of policy control.
  • the embodiment of the present invention further updates the control policy set according to the control policy update message sent by the PCRF, and re-controls the user according to the updated control policy set, thereby further improving the efficiency of the policy control.
  • FIG. 6 is a flowchart of a policy control method according to Embodiment 5 of the present invention.
  • the device that interacts in this embodiment includes the user equipment UE, the PCEF, and the PCRF.
  • the policy control method specifically includes the following steps:
  • Step 601 The UE sends a user online notification.
  • the user equipment is online (the wireless network is attached), and the related information of the user is reported to the PCEF through the online notification.
  • Step 602 The PCEF sends user equipment related information to the PCRF.
  • the PCEF After detecting that the user equipment is online, the PCEF reports the information about the user equipment (location, access APN, access network, IP address, terminal information, etc.) to the PCRF through a Credit Control Request (CCR) message.
  • CCR Credit Control Request
  • Step 603 The PCRF generates a control policy and delivers the policy to the PCEF.
  • the PCRF determines the control policy that is effective for the user according to the information about the user equipment and other information (user brand, subscription information, time, etc.), and informs the PCEF of the control strategy to be executed through a Credit Control Answer (CCA) message. .
  • CCA Credit Control Answer
  • the CCA message deletes the charging rule field (Charging-Rule-Remove),
  • the Charging-Rule-Install field identifies the control policy that needs to be uninstalled or installed.
  • the Charging-Rule-Definition field indicates a plurality of actions included in a policy. Multiple actions such as bandwidth control, charging policy, and usage monitoring can be included in one control policy.
  • the PCRF returns three control strategies:
  • Step 604 The user equipment sends a data packet to the PCEF.
  • the user uses the Internet service (visiting the Facebook website), and the user equipment forwards the data packet to the PCEF.
  • Step 605 The PCEF acquires a control policy that matches a service type of the user equipment.
  • the PCEF identifies the service accessed by the user and obtains a control policy that matches the type of the service.
  • the Internet access service performed by the user equipment simultaneously satisfies Rule 1, Rule 2, and Rule 3, and the three control policies Rule 1, Rule 2, and Rule 3 form a control policy set.
  • Step 606 The PCEF groups all control actions in the control policy set according to the type of the control action.
  • the embodiment traverses three control policies, and determines the types of control actions, including: charging rules and bandwidth control, respectively corresponding to two groups, as shown in the following table:
  • Step 607 Determine, according to the priority of the control action, a control action with the highest priority in each group, and the priority of the control action inherits the priority of the control policy in which the action is controlled.
  • the highest priority control action in the charging rule group is charging RG1 (priority 1); the highest priority control action in the bandwidth control packet is bandwidth control QOS1 (priority 2) .
  • Step 608 The PCEF performs policy control on the user equipment according to the control action with the highest priority of each type.
  • the user accesses facebook, and the final charging rule is RG1, the bandwidth control rule QOS1, and the bandwidth limit is 1 Mb/s.
  • the PCRF After the PCEF performs policy control, if the charging rule of the user equipment needs to be changed (for example, the traffic reaches the threshold), the PCRF sends a control policy update message.
  • Step 609 The PCRF sends a control policy update message.
  • the PCRF sends a control policy update message (for example, a CCA message), modifies the charging rule in Rule 1, and modifies the charging RG1 to the charging RG4.
  • a control policy update message for example, a CCA message
  • the Control Policy Update message also updates the priority of the control policy, updating the priority of Rule1 to 4.
  • Step 610 The PCRF updates the charging rule in the control policy Rule1, and the process proceeds to step 606.
  • the charging rule RG1 in the PCRF update control policy Rule1 is RG4, and the overall priority of the policy is updated (the priority is updated to 4), and the process proceeds to step 606 to re-execute the step of determining the control action with the highest priority.
  • the charging rule RG1 in the PCRF update control policy Rule1 is RG4, and the overall priority of the policy is updated (the priority is updated to 4), and the process proceeds to step 606 to re-execute the step of determining the control action with the highest priority.
  • policy control is performed according to the highest priority control policy, that is, Rule1 is selected for policy control, so that the policy control process cannot include the QOS actions in the other two policies, and the embodiment of the present invention combines Rule 1, Rule 2, and Rule 3 All control actions in the policy control, the policy control process includes charging rules, bandwidth control, multiple control actions, improve the efficiency of policy control, and can be applied to complex business control scenarios.
  • FIG. 7 is a schematic structural diagram of a gateway according to Embodiment 6 of the present invention.
  • the gateway provided by the embodiment of the present invention mainly includes:
  • the policy obtaining unit 710 is configured to acquire a control policy set that matches the user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy;
  • the action determining unit 720 is configured to determine, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set;
  • the policy execution unit 730 is configured to perform policy control on the user equipment according to the control action with the highest priority.
  • the gateway provided by the embodiment of the present invention may be used in the foregoing corresponding policy control method in the first embodiment to the fifth embodiment.
  • the gateway provided by the embodiment of the present invention may be used in the foregoing corresponding policy control method in the first embodiment to the fifth embodiment.
  • gateway provided by the embodiment of the present invention may further include:
  • the policy update unit 740 is configured to receive a control policy update message sent by the PCRF, update the control policy set, and trigger the action determining unit 720 to perform, according to the priority of the control policy, determine at least two controls in the control policy set. The step of the highest priority control action in the same type of control action included in the policy, so that the gateway can perform policy control according to the latest control policy.
  • FIG. 8-9 is a schematic structural diagram of an action determining unit in a gateway according to Embodiment 6 of the present invention.
  • the action determining unit 720 in the gateway includes:
  • the first grouping module 721 is configured to group the control actions in the control policy set according to the type of the control action
  • the first determining module 722 is configured to determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy in which the control action is located.
  • the embodiment of the present invention can increase the first grouping module 721 and the first determining module 722, so that the gateway can determine a plurality of different types of control actions with the highest priority according to the control actions in the control policy set, and thus can combine all the control policy pairs.
  • User equipment performs policy control to improve the efficiency of policy control.
  • the action determining unit 720 in the gateway includes:
  • the obtaining module 723 is configured to obtain a first control policy that includes the largest number of control actions in the control policy set;
  • the second grouping module 724 is configured to group the control actions in the control policy set according to the type of the control action in the first control policy
  • a second determining module 725 configured to determine, according to the priority of the control action, an intra-group optimization The highest level of control action, the priority of the control action being the same as the priority of the control strategy in which the control action is located.
  • the second grouping module 724 in this embodiment controls the control policy set according to the type of the control action in the first control policy, with respect to the grouping of the control actions in the control policy set.
  • grouping actions the number of packets can be reduced, thereby speeding up the steps of determining the highest priority control action within each packet, further improving execution efficiency.
  • FIG. 10 is a schematic structural diagram of a gateway according to Embodiment 7 of the present invention.
  • the gateway provided by the embodiment of the present invention includes:
  • the processor 802 executes the computer to execute instructions to cause the gateway to perform the following method:
  • control policy set that matches the user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy;
  • the gateway provided by the embodiment of the present invention may be specifically configured in a Gateway GPRS Support Node (GGSN) and an Evolved Packet Core (EPC) in a General Packet Radio Service (GPRS). Packet Data Gateway (P-GW), Packet Data Gateway (PDG) in Wireless Local Area Networks (WLAN), and the like.
  • GGSN Gateway GPRS Support Node
  • EPC Evolved Packet Core
  • GPRS General Packet Radio Service
  • P-GW Packet Data Gateway
  • PGW Packet Data Gateway
  • WLAN Wireless Local Area Networks
  • FIG. 11 is a schematic structural diagram of a policy and charging control system according to Embodiment 8 of the present invention.
  • the policy and charging control system provided by the embodiment of the present invention includes a policy and charging rule function (PCRF) 910 and the above-mentioned gateway 920, the policy and charging rule.
  • the function (PCRF) 910 sends a control policy to the gateway through the Gx interface.
  • the PCC system may further include other devices, such as UDR, AF, and the like.
  • the policy and charging control system provided by the embodiment of the present invention performs policy control according to the control action with the highest priority among the same type of control actions, and can overcome the control actions in multiple different control strategies to overcome
  • the prior art only implements technical defects caused by policy control according to a control strategy with the highest priority, and improves the efficiency of policy control in a complex service scenario, and the adaptability is better.
  • aspects of the present invention, or possible implementations of various aspects may be embodied as a system, method, or computer program product.
  • aspects of the invention, or possible implementations of various aspects may be in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or a combination of software and hardware aspects, They are collectively referred to herein as "circuits," “modules,” or “systems.”
  • aspects of the invention, or possible implementations of various aspects may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.
  • the computer readable medium can be a computer readable signal medium or a computer readable storage medium.
  • the computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).
  • the processor in the computer reads the computer readable program code stored in the computer readable medium such that the processor is capable of performing the various functional steps specified in each step of the flowchart, or a combination of steps; A device that functions as specified in each block, or combination of blocks.
  • the computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's computer and partly on the remote computer, or entirely on the remote computer or server.
  • the functions noted in the various steps in the flowcharts or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks, shown in succession may be executed substantially concurrently or the blocks may be executed in the reverse order.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a policy control method and system and a gateway. In the policy control method provided by embodiments of the present invention, a PCEF determines according to the priorities of control policies the control action of the highest priority in the same type of control actions contained in part of or all of the control policies, and executes the policy control on a user equipment according to the control action of the highest priority. Compared with the prior art, in the embodiments of the present invention, the policy control is performed according to the control action of the highest priority in the same type of the control actions, and the control actions in different control policies can be used at the same time, so that the technical defect in the prior art due to the fact that the policy control is performed only according to the control policy of the highest priority is solved, the efficiency of the policy control in complex service scenarios is improved, and the adaptability is better.

Description

策略控制方法、系统及网关Policy control method, system and gateway

本申请要求于2014年8月30日提交中国专利局、申请号为201410438791.6发明名称为“策略控制方法、系统及网关”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410438791.6, entitled "Policy Control Method, System and Gateway", filed on August 30, 2014, the entire disclosure of which is incorporated herein by reference.

技术领域Technical field

本发明涉及通信技术领域,具体而言涉及一种策略控制方法、系统及网关。The present invention relates to the field of communications technologies, and in particular, to a policy control method, system, and gateway.

背景技术Background technique

在第三代移动通信标准化伙伴项目(3rd Generation Partnership Project,3GPP)体系中,策略与计费功能由策略与计费控制(PCC,Policy and Charging Control)系统来实现。In the 3rd Generation Partnership Project (3GPP) system, the policy and charging function is implemented by a Policy and Charging Control (PCC) system.

PCC系统包括策略与计费规则功能(Policy and Charging Rules Function,PCRF)、策略与计费执行功能(PCEF,Policy and Charging Enforcement Function)和计费装置等。其中,PCEF在检测到用户设备上线后,向PCRF上报用户设备的相关信息,PCRF根据用户设备的相关信息生成用户的控制策略,并向PCEF下发控制策略,PCEF根据该控制策略执行对用户设备的策略控制。其中,控制策略中包括不同类型的控制动作的组合,例如计费动作、带宽控制动作等。The PCC system includes a Policy and Charging Rules Function (PCRF), a Policy and Charging Enforcement Function (PCEF), and a charging device. After detecting that the user equipment is online, the PCEF reports the information about the user equipment to the PCRF. The PCRF generates a control policy for the user according to the information about the user equipment, and sends a control policy to the PCEF. The PCEF executes the user equipment according to the control policy. Policy control. The control strategy includes a combination of different types of control actions, such as a charging action, a bandwidth control action, and the like.

但是,现有技术提供的策略控制方法在PCRF针对用户设备下发多条控制策略的情况下,PCEF只选择优先级最高的控制策略来执行,适应性较差。However, in the case of the policy control method provided by the prior art, in the case that the PCRF issues multiple control policies for the user equipment, the PCEF selects only the control strategy with the highest priority to perform, and the adaptability is poor.

发明内容Summary of the invention

本发明实施例提供了一种根据至少两条控制策略中的控制动作的优先级来实现策略控制的方法、系统和网关。Embodiments of the present invention provide a method, system, and gateway for implementing policy control according to priorities of control actions in at least two control policies.

第一方面,本发明实施例提供一种策略控制方法,包括:In a first aspect, an embodiment of the present invention provides a policy control method, including:

获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策 略,所述控制策略中包含控制动作及所述控制策略的优先级;Obtaining a control policy set matching the user equipment, where the control policy set includes multiple control policies The control strategy includes a priority of the control action and the control policy;

根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作;Determining, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set;

根据所述优先级最高的控制动作执行对所述用户设备的策略控制。Performing policy control on the user equipment according to the highest priority control action.

结合第一方面,在第一种可能的实现方式中,所述根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作包括:With reference to the first aspect, in a first possible implementation manner, determining, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set includes: :

根据控制动作的类型对所述控制策略集中的控制动作进行分组;Grouping control actions in the control policy set according to types of control actions;

根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。The control action with the highest priority in each packet is determined according to the priority of the control action, and the priority of the control action is the same as the priority of the control policy in which the control action is located.

结合第一方面,在第二种可能的实现方式中,所述根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作包括:With reference to the first aspect, in a second possible implementation, the determining, according to the priority of the control policy, determining that the control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set includes :

获取所述控制策略集中包含控制动作数量最多的第一控制策略;Obtaining, in the control policy set, a first control policy that includes the largest number of control actions;

根据第一控制策略中控制动作的类型对所述控制策略集中的控制动作进行分组;And grouping the control actions in the control policy set according to the type of the control action in the first control policy;

根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。The control action with the highest priority in each packet is determined according to the priority of the control action, and the priority of the control action is the same as the priority of the control policy in which the control action is located.

结合第一方面、第一方面的第一种可能的实现方式、第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述获取与用户设备匹配的控制策略集包括:With reference to the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, in a third possible implementation manner, the acquiring a control policy set that matches the user equipment include:

接收策略与计费规则功能下发的多条控制策略;Receiving multiple control policies issued by the policy and charging rule function;

获取与用户设备的业务类型匹配的控制策略集。Get the set of control policies that match the type of service of the user device.

结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,该方法还包括:In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation, the method further includes:

接收策略与计费规则功能下发的控制策略更新消息,更新所述控制策略集,跳转执行所述根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作的步骤。Receiving a control policy update message sent by the policy and charging rule function, updating the control policy set, and performing the priority according to the control policy, and determining the same type included in at least two control policies in the control policy set The step of controlling the highest priority control action in the action.

其中,控制策略更新消息具体可以为信用控制响应(Credit Control Answer Update,CCA-Update)更新消息、重新认证请求(Re-Auth-Request, RAR)命令等。The control policy update message may specifically be a Credit Control Answer Update (CCA-Update) update message or a re-authentication request (Re-Auth-Request, RAR) commands, etc.

结合第一方面、第一方面的第一种可能的实现方式、第一方面的第二种可能的实现方式、第一方面的第三种可能的实现方式、第一方面的第四种可能的实现方式,在第四种可能的实现方式中,所述控制动作的类型包括带宽控制、计费策略和使用量监控中的一种或多种。With reference to the first aspect, the first possible implementation of the first aspect, the second possible implementation of the first aspect, the third possible implementation of the first aspect, the fourth possible aspect of the first aspect In a fourth possible implementation manner, the type of the control action includes one or more of a bandwidth control, a charging policy, and a usage monitoring.

第二方面,本发明实施例提供一种网关,包括:In a second aspect, an embodiment of the present invention provides a gateway, including:

策略获取单元,用于获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作及所述控制策略的优先级;a policy obtaining unit, configured to acquire a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy;

动作确定单元,用于根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作;An action determining unit, configured to determine, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set;

策略执行单元,用于根据所述优先级最高的控制动作执行对所述用户设备的策略控制。And a policy execution unit, configured to perform policy control on the user equipment according to the control action with the highest priority.

结合第二方面,在第一种可能的实现方式中,所述动作确定单元包括:With reference to the second aspect, in a first possible implementation, the action determining unit includes:

第一分组模块,用于根据控制动作的类型对所述控制策略集中的控制动作进行分组;a first grouping module, configured to group control actions in the control policy set according to a type of the control action;

第一确定模块,用于根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。The first determining module is configured to determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy in which the control action is located.

结合第二方面,在第二种可能的实现方式中,所述动作确定单元包括:With reference to the second aspect, in a second possible implementation manner, the action determining unit includes:

获取模块,用于获取所述控制策略集中包含控制动作数量最多的第一控制策略;An obtaining module, configured to acquire a first control policy that includes the largest number of control actions in the control policy set;

第二分组模块,用于根据第一控制策略中控制动作的类型对所述控制策略集中的控制动作进行分组;a second grouping module, configured to group the control actions in the control policy set according to a type of the control action in the first control policy;

第二确定模块,用于根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。And a second determining module, configured to determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy where the control action is located.

结合第二方面、第二方面的第一种可能的实现方式、第二方面的第二种可能的实现方式,在第三种可能的实现方式中,该网关还包括:With reference to the second aspect, the first possible implementation manner of the second aspect, and the second possible implementation manner of the second aspect, in a third possible implementation manner, the gateway further includes:

策略更新单元,用于接收策略与计费规则功能下发的控制策略更新消息, 更新所述控制策略集,触发所述动作确定单元执行所述根据控制策略的优先级确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作的步骤。a policy update unit, configured to receive a control policy update message delivered by the policy and charging rule function, Updating the control policy set, triggering the action determining unit to perform the step of determining, according to the priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set.

第三方面,本发明实施例还提供一种策略与计费控制系统,包括策略与计费规则功能,还包括如上所述的网关,所述策略与计费规则功能通过Gx接口向所述网关发送控制策略。In a third aspect, the embodiment of the present invention further provides a policy and charging control system, including a policy and charging rule function, and a gateway as described above, where the policy and charging rule function is sent to the gateway through a Gx interface. Send a control policy.

在本发明实施例提供的策略控制方法中,PCEF根据控制策略的优先级确定至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作,然后根据优先级最高的控制动作执行对所述用户设备的策略控制。与现有技术相比,本发明实施例根据同一类型的控制动作中优先级最高的控制动作进行策略控制,可以结合多条不同的控制策略中的控制动作,克服了现有技术仅根据优先级最高的一条控制策略来进行策略控制所带来的技术缺陷,提高了复杂业务场景下的策略控制效率,适应性更好。In the policy control method provided by the embodiment of the present invention, the PCEF determines, according to the priority of the control policy, the control action with the highest priority among the same type of control actions included in the at least two control policies, and then performs the action according to the control action with the highest priority. Policy control of the user equipment. Compared with the prior art, the embodiment of the present invention performs policy control according to the control action with the highest priority among the same type of control actions, and can combine the control actions in multiple different control strategies, and overcomes the prior art only according to the priority. The highest one control strategy is used to carry out technical defects caused by policy control, which improves the efficiency of policy control in complex business scenarios and is more adaptable.

附图说明DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。其中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work. among them:

图1是本发明实施例中策略与计费控制系统的架构图;1 is a block diagram of a policy and charging control system in an embodiment of the present invention;

图2是本发明实施例一提供的策略控制方法的流程图;2 is a flowchart of a policy control method according to Embodiment 1 of the present invention;

图3是本发明实施例二提供的策略控制方法的流程图;3 is a flowchart of a policy control method according to Embodiment 2 of the present invention;

图4是本发明实施例三提供的策略控制方法的流程图;4 is a flowchart of a policy control method according to Embodiment 3 of the present invention;

图5是本发明实施例四提供的策略控制方法的流程图;FIG. 5 is a flowchart of a policy control method according to Embodiment 4 of the present invention; FIG.

图6是本发明实施例五提供的策略控制方法的流程图;6 is a flowchart of a policy control method according to Embodiment 5 of the present invention;

图7是本发明实施例六提供的网关的结构示意图;7 is a schematic structural diagram of a gateway according to Embodiment 6 of the present invention;

图8是本发明实施例六提供的网关中动作确定单元的一种结构示意图;FIG. 8 is a schematic structural diagram of an action determining unit in a gateway according to Embodiment 6 of the present invention; FIG.

图9是本发明实施例六提供的网关中动作确定单元的另一种结构示意图;9 is another schematic structural diagram of an action determining unit in a gateway according to Embodiment 6 of the present invention;

图10是本发明实施例七提供的网关的结构示意图; 10 is a schematic structural diagram of a gateway according to Embodiment 7 of the present invention;

图11是本发明实施例八提供的策略与计费控制系统的结构示意图。11 is a schematic structural diagram of a policy and charging control system according to Embodiment 8 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 accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but 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 departing from the inventive scope are the scope of the present invention.

参见图1,图1是本发明实施例中策略与计费控制系统的架构图。如图所示,本发明实施例中的策略与计费控制系统包括PCRF 110、网关(Gateway)120、在线计费系统(Online Charging System,OCS)130、离线计费系统140(Offline Charging System,OFCS)、应用功能(Application Function,AF)单元150、用户数据仓库(User Data Repository,UDR)160、AN网关170以及流量监测功能单元(Traffic Detection Function,TDF)180。Referring to FIG. 1, FIG. 1 is a structural diagram of a policy and charging control system in an embodiment of the present invention. As shown in the figure, the policy and charging control system in the embodiment of the present invention includes a PCRF 110, a gateway 120, an online charging system (OCS) 130, and an offline charging system 140 (Offline Charging System, The OFCS), the Application Function (AF) unit 150, the User Data Repository (UDR) 160, the AN Gateway 170, and the Traffic Detection Function (TDF) 180.

其中,网关120中包括PCEF。AN网关(AN-Gateway)170中包括承载绑定及事件报告功能(Bearing Binding and Event Report Function,BBERF)。PCRF和PCEF之间通过Gx接口进行策略的传递。Gx接口基于信用控制(Diameter Credit Control,DCC)接口协议。The gateway 120 includes a PCEF. The AN-Gateway 170 includes a Bearing Binding and Event Report Function (BBERF). The policy is transmitted between the PCRF and the PCEF through the Gx interface. The Gx interface is based on the Diameter Credit Control (DCC) interface protocol.

参见图2,图2是本发明实施例一提供的策略控制方法的流程图。本发明实施例提供的策略控制方法主要包括:Referring to FIG. 2, FIG. 2 is a flowchart of a policy control method according to Embodiment 1 of the present invention. The policy control method provided by the embodiment of the present invention mainly includes:

步骤201、获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作以及该控制策略的优先级。Step 201: Acquire a control policy set that matches the user equipment, where the control policy set includes multiple control policies, where the control policy includes a control action and a priority of the control policy.

具体的,PCEF从PCRF下发的控制策略中获取与用户设备的业务(例如数据业务、语音业务等)匹配的多条控制策略,每条控制策略中包含多个不同类型的控制动作或仅包含一个控制动作。Specifically, the PCEF obtains multiple control policies that match the services of the user equipment (such as data services, voice services, and the like) from the control policy delivered by the PCRF, and each control policy includes multiple different types of control actions or only A control action.

在本发明实施例中,该多条控制策略统称为控制策略集。控制策略集中的每一控制策略均对应一优先级,用于标识该控制策略的优先级。In the embodiment of the present invention, the multiple control policies are collectively referred to as a control policy set. Each control policy in the control policy set corresponds to a priority, which is used to identify the priority of the control policy.

步骤202、根据控制策略的优先级,确定控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作。Step 202: Determine, according to the priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set.

其中,控制动作按照类型划分包括计费规则、带宽控制和使用量监控等,控制动作的优先级继承该控制动作所在的控制策略的优先级,即控制动作与 其所在控制策略的优先级相同。需要说明的是,同一类型的控制动作可以只存在于上述至少两条控制策略中的一条控制策略中,即该控制动作单独作为一个类型。The control action is divided into types according to the type, including charging rules, bandwidth control, usage monitoring, etc., and the priority of the control action inherits the priority of the control policy in which the control action is located, that is, the control action and Its control strategy has the same priority. It should be noted that the same type of control action may exist only in one of the at least two control strategies, that is, the control action is a single type.

在另一种实施方式中,PCEF可以根据控制策略的优先级确定至少两条控制策略所包含的每一类型控制动作中优先级最高的控制动作,该至少两条控制策略来自于上述控制策略集。In another implementation manner, the PCEF may determine, according to a priority of the control policy, a control action with the highest priority among each type of control actions included in the at least two control policies, where the at least two control policies are from the foregoing control policy set. .

步骤203、根据上述优先级最高的控制动作执行对所述用户设备的策略控制。Step 203: Perform policy control on the user equipment according to the control action with the highest priority.

具体的,在步骤202中确定了上述优先级最高的控制动作后,PCEF根据所述优先级最高的控制动作执行对所述用户设备的策略控制。Specifically, after the control action with the highest priority is determined in step 202, the PCEF performs policy control on the user equipment according to the control action with the highest priority.

在另一实施例中,PCEF可以将确定的每一类型的优先级最高的控制动作组合成一条新的控制策略,然后执行该新的控制策略。In another embodiment, the PCEF may combine the determined highest priority control actions for each type into a new control policy and then execute the new control strategy.

在本发明实施例提供的策略控制方法中,PCEF根据控制策略的优先级确定至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作,然后根据优先级最高的控制动作执行对所述用户设备的策略控制。与现有技术相比,本发明实施例根据同一类型的控制动作中优先级最高的控制动作进行策略控制,可以结合多条不同的控制策略中的控制动作,克服了现有技术仅根据优先级最高的一条控制策略来进行策略控制所带来的技术缺陷,提高了复杂业务场景下的策略控制效率,适应性更好。In the policy control method provided by the embodiment of the present invention, the PCEF determines, according to the priority of the control policy, the control action with the highest priority among the same type of control actions included in the at least two control policies, and then performs the action according to the control action with the highest priority. Policy control of the user equipment. Compared with the prior art, the embodiment of the present invention performs policy control according to the control action with the highest priority among the same type of control actions, and can combine the control actions in multiple different control strategies, and overcomes the prior art only according to the priority. The highest one control strategy is used to carry out technical defects caused by policy control, which improves the efficiency of policy control in complex business scenarios and is more adaptable.

参见图3,图3是本发明实施例二提供的策略控制方法的流程图。如图所示,本发明实施例提供的策略控制方法包括:Referring to FIG. 3, FIG. 3 is a flowchart of a policy control method according to Embodiment 2 of the present invention. As shown in the figure, the policy control method provided by the embodiment of the present invention includes:

步骤301、获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作及所述控制策略的优先级。Step 301: Obtain a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy.

其中,步骤301的具体执行过程和上述实施例中步骤201的执行过程相同,详情参见上述实施例的描述,在此不再赘述。The specific implementation process of the step 301 is the same as the process of the step 201 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.

步骤302、确定所述控制策略集所包含的控制动作中与最高优先级控制策略所包含的控制动作的类型不同的第一类控制动作。Step 302: Determine a first type of control action in the control action included in the control policy set that is different from a type of a control action included in the highest priority control policy.

具体的,控制策略集所包含的控制动作的类型多于最高优先级控制策略所包含的控制动作的类型,因而PCEF可以确定所述控制策略集所包含的控 制动作中与最高优先级控制策略所包含的控制动作的类型不同的控制动作,这些不同类型的控制动作统称为第一类控制动作,第一类控制动作中可以包括多个不同类型的控制动作。Specifically, the control policy set includes more types of control actions than the highest priority control policy, and thus the PCEF can determine the control included in the control policy set. The control actions in the system action are different from the types of control actions included in the highest priority control strategy. These different types of control actions are collectively referred to as the first type of control actions, and the first type of control actions may include multiple different types of control actions. .

步骤303、根据所述最高优先级的控制策略中的控制动作以及所述第一类控制动作执行对所述用户设备的策略控制。Step 303: Perform policy control on the user equipment according to the control action in the highest priority control policy and the first type control action.

具体的,PCEF可以根据最高优先级的控制策略中的控制动作以及第一类控制动作执行对用户设备的策略控制。PCEF具体可以将最高优先级的控制策略中的控制动作以及第一类控制动作组合成一条新的控制策略,然后执行该新的控制策略。Specifically, the PCEF can perform policy control on the user equipment according to the control action in the highest priority control policy and the first type of control action. The PCEF can specifically combine the control actions in the highest priority control strategy and the first type of control actions into a new control policy, and then execute the new control strategy.

其中,PCEF可以进一步对第一类控制动作按照动作类型进行分组,根据控制动作的优先级确定每个分组内优先级最高的控制动作,控制动作的优先级继承所述控制动作所在的控制策略的优先级,进而根据最高优先级控制策略中的控制动作以及每个分组内优先级最高的控制动作联合进行策略控制。The PCEF may further group the first type of control actions according to the action type, and determine the highest priority control action in each group according to the priority of the control action, and the priority of the control action inherits the control strategy of the control action. The priority is further combined with the control action in the highest priority control policy and the control action with the highest priority in each packet.

与现有技术相比,本发明实施例结合多条不同优先级的控制策略(最高优先级的控制策略以及另外一条控制策略中的控制动作)进行策略控制,克服了现有技术仅根据最高优先级的控制策略来进行策略控制所带来的技术缺陷,提高了复杂业务场景下的策略控制效率,适应性更好。Compared with the prior art, the embodiment of the present invention combines multiple control strategies of different priorities (the highest priority control strategy and the control action in another control strategy) to implement policy control, overcoming the prior art only according to the highest priority. The level control strategy is used to control the technical defects caused by the policy control, and the efficiency of the policy control in the complex business scenario is improved, and the adaptability is better.

参见图4,图4是本发明实施例三提供的策略控制方法的流程图。如图所示,本发明实施例提供的策略控制方法包括:Referring to FIG. 4, FIG. 4 is a flowchart of a policy control method according to Embodiment 3 of the present invention. As shown in the figure, the policy control method provided by the embodiment of the present invention includes:

步骤401、获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作及所述控制策略的优先级。Step 401: Obtain a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy.

其中,步骤401的具体执行过程和上述实施例中步骤201的执行过程相同,详情参见上述实施例的描述,在此不再赘述。The specific execution process of the step 401 is the same as the process of the step 201 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.

步骤402、根据控制动作的类型对所述控制策略集中的控制动作进行分组。Step 402: Group the control actions in the control policy set according to the type of the control action.

具体的,PCEF根据控制动作的类型,如计费规则、带宽控制和使用量监控等,对控制策略集中的控制动作进行分组,进而相同类型的控制动作位于一个分组中。 Specifically, the PCEF groups control actions in the control policy set according to types of control actions, such as charging rules, bandwidth control, and usage monitoring, and the same type of control actions are located in one group.

特殊情况下,一个分组中也可以只存在一个控制动作。In special cases, there can be only one control action in a group.

步骤403、根据控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。Step 403: Determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy where the control action is located.

由于每条控制策略都对应唯一的优先级,且控制动作的优先级继承所述控制动作所在的控制策略的优先级,即控制动作的优先级与所述控制动作所在的控制策略的优先级相同,因而每个控制动作都对应唯一的优先级。PCEF根据控制动作的优先级即可确定每个分组内优先级最高的控制动作。Since each control policy corresponds to a unique priority, and the priority of the control action inherits the priority of the control policy in which the control action is located, that is, the priority of the control action is the same as the priority of the control policy in which the control action is located. Therefore, each control action corresponds to a unique priority. The PCEF determines the highest priority control action within each packet based on the priority of the control action.

步骤404、根据所述优先级最高的控制动作执行对所述用户设备的策略控制。Step 404: Perform policy control on the user equipment according to the control action with the highest priority.

其中,步骤404的具体执行过程和上述实施例中步骤203的执行过程相同,详情参见上述实施例的描述,在此不再赘述。The specific execution process of the step 404 is the same as the process of the step 203 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.

步骤405、接收PCRF下发的控制策略更新消息,更新所述控制策略集中的控制策略,跳转执行根据控制动作的类型对控制策略集中的控制动作进行分组的步骤。Step 405: Receive a control policy update message sent by the PCRF, update a control policy in the control policy set, and perform a step of grouping control actions in the control policy set according to the type of the control action.

在本实施例中,PCEF在根据上述优先级最高的多个不同类型的控制动作执行策略控制之后,还可以接收PCRF下发的控制策略更新消息,更新上述控制策略集。其中,更新过程可以包括增加、修改、删除控制策略集中的控制动作。控制策略更新消息具体可以为信用控制响应(Credit Control Answer Update,CCA-Update)更新消息、重新认证请求(Re-Auth-Request,RAR)命令等。In this embodiment, after performing the policy control according to the multiple different types of control actions with the highest priority, the PCEF may also receive the control policy update message sent by the PCRF to update the control policy set. The update process may include adding, modifying, and deleting control actions in the control policy set. The control policy update message may be a Credit Control Answer Update (CCA-Update) update message, a Re-Auth-Request (RAR) command, or the like.

在更新上述控制策略集之后,本发明实施例跳转执根据控制动作的类型对所述控制策略集中的控制动作进行分组的步骤402。After updating the foregoing control policy set, the embodiment of the present invention jumps to step 402 of grouping the control actions in the control policy set according to the type of the control action.

在本发明实施例三提供的策略执行方法中,根据控制策略集中的控制动作来确定优先级最高的不同类型的控制动作,因而可以结合控制策略集中所有的控制策略对用户设备进行策略控制,提高策略控制的效率。另外,本发明实施例还根据PCRF下发的控制策略更新消息随时更新控制策略集,并根据更新的控制策略集重新对用户进行策略控制,进一步提高了策略控制的效率。In the policy execution method provided by the third embodiment of the present invention, the different types of control actions with the highest priority are determined according to the control actions in the control policy set, so that all the control policies in the control policy set can be used to control the user equipment and improve the policy. The efficiency of policy control. In addition, the embodiment of the present invention further updates the control policy set according to the control policy update message sent by the PCRF, and re-controls the user according to the updated control policy set, thereby further improving the efficiency of the policy control.

参见图5,图5是本发明实施例四提供的策略控制方法的流程图。如图 所示,本发明实施例提供的策略控制方法包括:Referring to FIG. 5, FIG. 5 is a flowchart of a policy control method according to Embodiment 4 of the present invention. As shown As shown, the policy control method provided by the embodiment of the present invention includes:

步骤501、获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作及所述控制策略的优先级。Step 501: Obtain a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy.

其中,步骤501的具体执行过程和上述实施例中步骤201的执行过程相同,详情参见上述实施例的描述,在此不再赘述。The specific implementation process of the step 501 is the same as the process of the step 201 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.

步骤502、获取所述控制策略集中包含控制动作数量最多的第一控制策略。Step 502: Acquire, in the control policy set, a first control policy that includes the largest number of control actions.

在本发明实施例中,由于每条控制策略中包含的控制动作数量存在不同的情况,PCEF获取控制策略集中包含控制动作数量最多的第一控制策略。In the embodiment of the present invention, since the number of control actions included in each control policy is different, the PCEF acquisition control policy set includes the first control policy with the largest number of control actions.

其中,包含控制动作数量最多的控制策略可能包括多个,本发明实施例获取其中一个(例如获取优先级最高的一个)作为第一控制策略。为简化逻辑,PCEF也可以获取多个包含控制动作数量最多的控制策略中任一个作为第一控制策略。The control policy that includes the largest number of control actions may include multiple, and the embodiment of the present invention obtains one of them (for example, the one with the highest priority) as the first control policy. To simplify the logic, the PCEF can also acquire any one of the plurality of control strategies including the largest number of control actions as the first control strategy.

步骤503、根据第一控制策略中控制动作的类型对所述控制策略集中的控制动作进行分组。Step 503: Group control actions in the control policy set according to types of control actions in the first control policy.

具体的,PCEF根据第一控制策略中控制动作的各类型对控制策略集中所有的控制动作进行分组,进而与第一控制策略中的控制动作具有相同类型的控制动作位于相同的分组中,与第一控制策略中的控制动作的类型均不同的控制动作可以不进行分组。Specifically, the PCEF groups all the control actions in the control policy set according to each type of the control action in the first control policy, and further has the same type of control action in the same group as the control action in the first control policy, and A control action in which the types of control actions in a control strategy are different may not be grouped.

步骤504、根据控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。Step 504: Determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy where the control action is located.

由于每条控制策略都对应唯一的优先级,且控制动作的优先级继承所述控制动作所在的控制策略的优先级,因而每个控制动作都对应唯一的优先级。PCEF根据控制动作的优先级即可确定每个分组内优先级最高的控制动作。Since each control policy corresponds to a unique priority, and the priority of the control action inherits the priority of the control policy in which the control action is located, each control action corresponds to a unique priority. The PCEF determines the highest priority control action within each packet based on the priority of the control action.

步骤505、根据所述优先级最高的控制动作执行对所述用户设备的策略控制。Step 505: Perform policy control on the user equipment according to the control action with the highest priority.

其中,步骤505的具体执行过程和上述实施例中步骤203的执行过程相同,详情参见上述实施例的描述,在此不再赘述。The specific execution process of the step 505 is the same as the process of the step 203 in the foregoing embodiment. For details, refer to the description of the foregoing embodiment, and details are not described herein again.

步骤506、接收PCRF下发的控制策略更新消息,更新所述控制策略集中的控制策略,跳转执行所述获取控制策略集中包含控制动作数量最多的第 一控制策略步骤。Step 506: Receive a control policy update message sent by the PCRF, update a control policy in the control policy set, and perform a jump to execute the control control policy set that includes the largest number of control actions. A control strategy step.

在本实施例中,PCEF在根据上述优先级最高的多个不同类型的控制动作执行策略控制之后,还可以接收PCRF下发的控制策略更新消息,更新上述控制策略集。其中,更新过程可以包括增加、修改、删除控制策略集中的控制动作。控制策略更新消息具体可以为(Credit Control Answer Update,CCA-Update)更新消息、重新认证请求(Re-Auth-Request,RAR)命令等。In this embodiment, after performing the policy control according to the multiple different types of control actions with the highest priority, the PCEF may also receive the control policy update message sent by the PCRF to update the control policy set. The update process may include adding, modifying, and deleting control actions in the control policy set. The control policy update message may be a (Credit Control Answer Update, CCA-Update) update message, a Re-Auth-Request (RAR) command, or the like.

在更新上述控制策略集之后,本发明实施例跳转执行所述获取控制策略集中包含控制动作数量最多的第一控制策略的步骤502。After updating the foregoing control policy set, the embodiment of the present invention jumps to perform step 502 of the first control policy in which the acquisition control policy set includes the largest number of control actions.

在本发明实施例四提供的策略执行方法中,以第一控制策略中的控制动作的类型为准来确定优先级最高的不同类型的控制动作,因而可以结合多条控制策略对用户设备进行策略控制,可以提高策略控制的效率。另外,本发明实施例还根据PCRF下发的控制策略更新消息随时更新控制策略集,并根据更新的控制策略集重新对用户进行策略控制,进一步提高了策略控制的效率。In the policy execution method provided by the fourth embodiment of the present invention, different types of control actions with the highest priority are determined according to the type of the control action in the first control policy, and thus the policy of the user equipment can be combined with multiple control policies. Control can improve the efficiency of policy control. In addition, the embodiment of the present invention further updates the control policy set according to the control policy update message sent by the PCRF, and re-controls the user according to the updated control policy set, thereby further improving the efficiency of the policy control.

参见图6,图6是本发明实施例五提供的策略控制方法的流程图。Referring to FIG. 6, FIG. 6 is a flowchart of a policy control method according to Embodiment 5 of the present invention.

本实施例中交互的设备包括用户设备UE、PCEF和PCRF,策略控制方法具体包括以下步骤:The device that interacts in this embodiment includes the user equipment UE, the PCEF, and the PCRF. The policy control method specifically includes the following steps:

步骤601、UE发送用户上线通知。Step 601: The UE sends a user online notification.

用户设备上线(无线网络附着),用户的相关信息会通过上线通知上报给PCEF。The user equipment is online (the wireless network is attached), and the related information of the user is reported to the PCEF through the online notification.

步骤602、PCEF向PCRF发送用户设备相关信息。Step 602: The PCEF sends user equipment related information to the PCRF.

PCEF检测到用户设备上线后,会通过信用控制请求(Credit Control Request,CCR)消息向PCRF上报用户设备的相关信息(位置、接入APN、接入网络、IP地址、终端信息等)。After detecting that the user equipment is online, the PCEF reports the information about the user equipment (location, access APN, access network, IP address, terminal information, etc.) to the PCRF through a Credit Control Request (CCR) message.

步骤603、PCRF生成控制策略并向PCEF下发。Step 603: The PCRF generates a control policy and delivers the policy to the PCEF.

PCRF根据用户设备的相关信息并结合用户其它信息(用户品牌、签约信息、时间等)决策对用户生效的控制策略,并通过信用控制响应(Credit Control Answer,CCA)消息告知PCEF需要执行的控制策略。The PCRF determines the control policy that is effective for the user according to the information about the user equipment and other information (user brand, subscription information, time, etc.), and informs the PCEF of the control strategy to be executed through a Credit Control Answer (CCA) message. .

其中,CCA消息中通过删除计费规则字段(Charging-Rule-Remove)、 安装计费规则字段(Charging-Rule-Install)标识需要卸载或安装的控制策略。而计费规则定义字段(Charging-Rule-Definition)表明了一个策略包含的多个动作(action)。在一个控制策略中可以包含带宽控制、计费策略、使用量监控等多个动作。Among them, the CCA message deletes the charging rule field (Charging-Rule-Remove), The Charging-Rule-Install field identifies the control policy that needs to be uninstalled or installed. The Charging-Rule-Definition field indicates a plurality of actions included in a policy. Multiple actions such as bandwidth control, charging policy, and usage monitoring can be included in one control policy.

在本实施例中,PCRF返三条控制策略:In this embodiment, the PCRF returns three control strategies:

Rule1:计费RG1,无带宽控制,绑定facebook业务,优先级1;Rule1: billing RG1, no bandwidth control, binding facebook service, priority 1;

Rule2:计费RG2,带宽控制QOS1:1Mb/s,绑定HTTP业务,优先级2;Rule2: charging RG2, bandwidth control QOS1:1Mb/s, binding HTTP service, priority 2;

Rule3:计费RG3,带宽控制QOS2:3Mb/s,绑定所有业务,优先级3。Rule3: Accounting RG3, bandwidth control QOS2: 3Mb/s, binding all services, priority 3.

优先级从高到低的顺序为:优先级1>优先级2>优先级3。The order of priority from high to low is: priority 1 > priority 2 > priority 3.

步骤604、用户设备发送数据报文到PCEF。Step 604: The user equipment sends a data packet to the PCEF.

用户使用上网业务(访问Facebook网站),用户设备将数据报文转发给PCEF。The user uses the Internet service (visiting the Facebook website), and the user equipment forwards the data packet to the PCEF.

步骤605、PCEF获取与用户设备的业务类型匹配的控制策略。Step 605: The PCEF acquires a control policy that matches a service type of the user equipment.

PCEF识别出用户访问的业务,获取与业务类型匹配的控制策略。The PCEF identifies the service accessed by the user and obtains a control policy that matches the type of the service.

在本实施例中,用户设备进行的上网业务同时满足Rule1、Rule2、Rule3,三条控制策略Rule1、Rule2和Rule3组成控制策略集。In this embodiment, the Internet access service performed by the user equipment simultaneously satisfies Rule 1, Rule 2, and Rule 3, and the three control policies Rule 1, Rule 2, and Rule 3 form a control policy set.

步骤606、PCEF根据控制动作的类型对所述控制策略集中所有的控制动作进行分组。Step 606: The PCEF groups all control actions in the control policy set according to the type of the control action.

具体的,本实施例遍历三条控制策略,确定控制动作的类型包括:计费规则、带宽控制,分别对应两个分组,具体如下表所示:Specifically, the embodiment traverses three control policies, and determines the types of control actions, including: charging rules and bandwidth control, respectively corresponding to two groups, as shown in the following table:

Figure PCTCN2015076336-appb-000001
Figure PCTCN2015076336-appb-000001

步骤607、根据控制动作的优先级确定每个分组内优先级最高的控制动作,控制动作的优先级继承控制动作所在的控制策略的优先级。 Step 607: Determine, according to the priority of the control action, a control action with the highest priority in each group, and the priority of the control action inherits the priority of the control policy in which the action is controlled.

在按控制动作的类型进行分组后,计费规则分组中最高优先级的控制动作为计费RG1(优先级1);带宽控制分组中最高优先级的控制动作为带宽控制QOS1(优先级2)。After grouping according to the type of control action, the highest priority control action in the charging rule group is charging RG1 (priority 1); the highest priority control action in the bandwidth control packet is bandwidth control QOS1 (priority 2) .

步骤608、PCEF根据各类型的优先级最高的控制动作执行对用户设备的策略控制。Step 608: The PCEF performs policy control on the user equipment according to the control action with the highest priority of each type.

在本实施例中,用户访问facebook,最终生效的计费规则为RG1,带宽控制规则QOS1,限制带宽1Mb/s。In this embodiment, the user accesses facebook, and the final charging rule is RG1, the bandwidth control rule QOS1, and the bandwidth limit is 1 Mb/s.

PCEF在进行策略控制之后,若用户设备的计费规则需要发生改变(例如流量达到阈值),则PCRF将下发控制策略更新消息。After the PCEF performs policy control, if the charging rule of the user equipment needs to be changed (for example, the traffic reaches the threshold), the PCRF sends a control policy update message.

步骤609、PCRF下发控制策略更新消息。Step 609: The PCRF sends a control policy update message.

具体的,PCRF下发控制策略更新消息(例如CCA消息),修改Rule1中的计费规则,将计费RG1修改为计费RG4。此外,控制策略更新消息还更新控制策略的优先级,将Rule1的优先级更新为4。Specifically, the PCRF sends a control policy update message (for example, a CCA message), modifies the charging rule in Rule 1, and modifies the charging RG1 to the charging RG4. In addition, the Control Policy Update message also updates the priority of the control policy, updating the priority of Rule1 to 4.

步骤610、PCRF更新控制策略Rule1中的计费规则,跳转到步骤606。Step 610: The PCRF updates the charging rule in the control policy Rule1, and the process proceeds to step 606.

具体的,PCRF更新控制策略Rule1中的计费规则RG1为RG4,并更新该策略的整体优先级(优先级更新为4),跳转到步骤606,重新执行确定优先级最高的控制动作的步骤,以便于最新的计费规则得到执行。Specifically, the charging rule RG1 in the PCRF update control policy Rule1 is RG4, and the overall priority of the policy is updated (the priority is updated to 4), and the process proceeds to step 606 to re-execute the step of determining the control action with the highest priority. In order to facilitate the implementation of the latest billing rules.

在现有技术中根据优先级最高的控制策略进行策略控制,即选择Rule1进行策略控制,导致策略控制过程无法包含其他两条策略中的QOS动作,而本发明实施例结合了Rule1、Rule2和Rule3中的所有控制动作进行策略控制,策略控制过程包括计费规则、带宽控制多个控制动作,提高了策略控制的效率,可以适用于复杂的业务控制场景。In the prior art, policy control is performed according to the highest priority control policy, that is, Rule1 is selected for policy control, so that the policy control process cannot include the QOS actions in the other two policies, and the embodiment of the present invention combines Rule 1, Rule 2, and Rule 3 All control actions in the policy control, the policy control process includes charging rules, bandwidth control, multiple control actions, improve the efficiency of policy control, and can be applied to complex business control scenarios.

参见图7,图7是本发明实施例六提供的网关的结构示意图。Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a gateway according to Embodiment 6 of the present invention.

如图所示,本发明实施例提供的网关主要包括:As shown in the figure, the gateway provided by the embodiment of the present invention mainly includes:

策略获取单元710,用于获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作及所述控制策略的优先级;The policy obtaining unit 710 is configured to acquire a control policy set that matches the user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy;

动作确定单元720,用于根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作; The action determining unit 720 is configured to determine, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set;

策略执行单元730,用于根据所述优先级最高的控制动作执行对所述用户设备的策略控制。The policy execution unit 730 is configured to perform policy control on the user equipment according to the control action with the highest priority.

本发明实施例提供的网关可以使用在前述对应的策略控制方法实施例一到实施例五中,具体实现方式以及相应的有益效果可以参见上述方法实施例的描述。The gateway provided by the embodiment of the present invention may be used in the foregoing corresponding policy control method in the first embodiment to the fifth embodiment. For the specific implementation manner and the corresponding beneficial effects, refer to the description of the foregoing method embodiment.

进一步的,本发明实施例提供的网关还可以包括:Further, the gateway provided by the embodiment of the present invention may further include:

策略更新单元740,用于接收PCRF下发的控制策略更新消息,更新所述控制策略集,触发所述动作确定单元720执行所述根据控制策略的优先级确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作的步骤,从而使得网关可以根据最新的控制策略执行策略控制。The policy update unit 740 is configured to receive a control policy update message sent by the PCRF, update the control policy set, and trigger the action determining unit 720 to perform, according to the priority of the control policy, determine at least two controls in the control policy set. The step of the highest priority control action in the same type of control action included in the policy, so that the gateway can perform policy control according to the latest control policy.

参见图8-9,图8-9分别是本发明实施例六提供的网关中动作确定单元的结构示意图。Referring to FIG. 8-9, FIG. 8-9 is a schematic structural diagram of an action determining unit in a gateway according to Embodiment 6 of the present invention.

如图所示,网关中的所述动作确定单元720包括:As shown, the action determining unit 720 in the gateway includes:

第一分组模块721,用于根据控制动作的类型对所述控制策略集中的控制动作进行分组;The first grouping module 721 is configured to group the control actions in the control policy set according to the type of the control action;

第一确定模块722,用于根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。The first determining module 722 is configured to determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy in which the control action is located.

本发明实施例通过增加第一分组模块721以及第一确定模块722,可以使得网关根据控制策略集中的控制动作来确定优先级最高的多个不同类型的控制动作,因而可以结合所有的控制策略对用户设备进行策略控制,可以提高策略控制的效率。The embodiment of the present invention can increase the first grouping module 721 and the first determining module 722, so that the gateway can determine a plurality of different types of control actions with the highest priority according to the control actions in the control policy set, and thus can combine all the control policy pairs. User equipment performs policy control to improve the efficiency of policy control.

在图9公开的另一实施例中,网关中的动作确定单元720包括:In another embodiment disclosed in FIG. 9, the action determining unit 720 in the gateway includes:

获取模块723,用于获取所述控制策略集中包含控制动作数量最多的第一控制策略;The obtaining module 723 is configured to obtain a first control policy that includes the largest number of control actions in the control policy set;

第二分组模块724,用于根据第一控制策略中控制动作的类型对所述控制策略集中的控制动作进行分组;The second grouping module 724 is configured to group the control actions in the control policy set according to the type of the control action in the first control policy;

第二确定模块725,用于根据所述控制动作的优先级确定每个分组内优 先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。a second determining module 725, configured to determine, according to the priority of the control action, an intra-group optimization The highest level of control action, the priority of the control action being the same as the priority of the control strategy in which the control action is located.

在本实施例提供的网关中,相对于直接对控制策略集中的控制动作进行分组,本实施例中的第二分组模块724根据第一控制策略中控制动作的类型对所述控制策略集中的控制动作进行分组,可以减少分组的数量,进而加快确定每个分组内优先级最高的控制动作的步骤,进一步提高了执行效率。In the gateway provided in this embodiment, the second grouping module 724 in this embodiment controls the control policy set according to the type of the control action in the first control policy, with respect to the grouping of the control actions in the control policy set. By grouping actions, the number of packets can be reduced, thereby speeding up the steps of determining the highest priority control action within each packet, further improving execution efficiency.

参见图10,图10是本发明实施例七提供的网关的结构示意图。Referring to FIG. 10, FIG. 10 is a schematic structural diagram of a gateway according to Embodiment 7 of the present invention.

如图所示,本发明实施例提供的网关包括:As shown in the figure, the gateway provided by the embodiment of the present invention includes:

输入输出接口801、处理器802、存储器803和总线804,所述存储器803用于存储计算机执行指令,所述处理器802与所述存储器803通过所述总线804连接,当所述网关运行时,所述处理器802执行所述计算机执行指令,以使所述网关执行如下方法:An input/output interface 801, a processor 802, a memory 803 for storing computer execution instructions, and a bus 804, the processor 802 being connected to the memory 803 via the bus 804, when the gateway is running, The processor 802 executes the computer to execute instructions to cause the gateway to perform the following method:

获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作及所述控制策略的优先级;Obtaining a control policy set that matches the user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy;

根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作;Determining, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set;

根据所述优先级最高的控制动作执行对所述用户设备的策略控制。Performing policy control on the user equipment according to the highest priority control action.

其中,网关执行上述策略控制方法的过程参见上述实施例一到实施例五,具体实现方式以及相应的有益效果可以参见上述方法实施例的描述。For the process of the above-mentioned method control method, refer to the foregoing embodiment 1 to the fifth embodiment. For the specific implementation manner and the corresponding beneficial effects, refer to the description of the foregoing method embodiment.

本发明实施例提供的网关具体可以为通用分组无线服务技术(General Packet Radio Service,GPRS)中的网关GPRS支持节点(Gateway GPRS Support Node,GGSN)、演进分组核心(Evolved Packet Core,EPC)中的分组数据网络网关(PDN Gateway,P-GW)、无线局域网(Wireless Local Area Networks,WLAN)中的分组数据网关(Packet Data Gateway,PDG)等。The gateway provided by the embodiment of the present invention may be specifically configured in a Gateway GPRS Support Node (GGSN) and an Evolved Packet Core (EPC) in a General Packet Radio Service (GPRS). Packet Data Gateway (P-GW), Packet Data Gateway (PDG) in Wireless Local Area Networks (WLAN), and the like.

参见图11,图11是本发明实施例八提供的策略与计费控制系统的结构示意图。Referring to FIG. 11, FIG. 11 is a schematic structural diagram of a policy and charging control system according to Embodiment 8 of the present invention.

如图所示,本发明实施例提供的策略与计费控制系统(PCC系统)包括策略与计费规则功能(PCRF)910以及上述的网关920,所述策略与计费规 则功能(PCRF)910通过Gx接口向所述网关发送控制策略。As shown in the figure, the policy and charging control system (PCC system) provided by the embodiment of the present invention includes a policy and charging rule function (PCRF) 910 and the above-mentioned gateway 920, the policy and charging rule. The function (PCRF) 910 sends a control policy to the gateway through the Gx interface.

其中,网关920的具体结构参见上述实施例六和实施例七的相关描述,在此不再赘述,PCC系统中还可以包括其他设备,例如UDR、AF等。For the specific structure of the gateway 920, refer to the related descriptions of the foregoing embodiment 6 and the seventh embodiment. For details, the PCC system may further include other devices, such as UDR, AF, and the like.

与现有技术相比,本发明实施例提供的策略与计费控制系统根据同一类型的控制动作中优先级最高的控制动作进行策略控制,可以结合多条不同的控制策略中的控制动作,克服了现有技术仅根据优先级最高的一条控制策略来进行策略控制所带来的技术缺陷,提高了复杂业务场景下的策略控制效率,适应性更好。Compared with the prior art, the policy and charging control system provided by the embodiment of the present invention performs policy control according to the control action with the highest priority among the same type of control actions, and can overcome the control actions in multiple different control strategies to overcome The prior art only implements technical defects caused by policy control according to a control strategy with the highest priority, and improves the efficiency of policy control in a complex service scenario, and the adaptability is better.

本领域普通技术人员将会理解,本发明的各个方面、或各个方面的可能实现方式可以被具体实施为系统、方法或者计算机程序产品。因此,本发明的各方面、或各个方面的可能实现方式可以采用完全硬件实施例、完全软件实施例(包括固件、驻留软件等等),或者组合软件和硬件方面的实施例的形式,在这里都统称为“电路”、“模块”或者“系统”。此外,本发明的各方面、或各个方面的可能实现方式可以采用计算机程序产品的形式,计算机程序产品是指存储在计算机可读介质中的计算机可读程序代码。Those of ordinary skill in the art will appreciate that various aspects of the present invention, or possible implementations of various aspects, may be embodied as a system, method, or computer program product. Thus, aspects of the invention, or possible implementations of various aspects, may be in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or a combination of software and hardware aspects, They are collectively referred to herein as "circuits," "modules," or "systems." Furthermore, aspects of the invention, or possible implementations of various aspects, may take the form of a computer program product, which is a computer readable program code stored in a computer readable medium.

计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质包含但不限于电子、磁性、光学、电磁、红外或半导体系统、设备或者装置,或者前述的任意适当组合,如随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、光纤、便携式只读存储器(CD-ROM)。The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).

计算机中的处理器读取存储在计算机可读介质中的计算机可读程序代码,使得处理器能够执行在流程图中每个步骤、或各步骤的组合中规定的功能动作;生成实施在框图的每一块、或各块的组合中规定的功能动作的装置。The processor in the computer reads the computer readable program code stored in the computer readable medium such that the processor is capable of performing the various functional steps specified in each step of the flowchart, or a combination of steps; A device that functions as specified in each block, or combination of blocks.

计算机可读程序代码可以完全在用户的计算机上执行、部分在用户的计算机上执行、作为单独的软件包、部分在用户的计算机上并且部分在远程计算机上,或者完全在远程计算机或者服务器上执行。也应该注意,在某些替代实施方案中,在流程图中各步骤、或框图中各块所注明的功能可能不按图中注明的顺序发生。例如,依赖于所涉及的功能,接连示出的两个步骤、或两个块实际上可能被大致同时执行,或者这些块有时候可能被以相反顺序执行。 The computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's computer and partly on the remote computer, or entirely on the remote computer or server. . It should also be noted that in some alternative implementations, the functions noted in the various steps in the flowcharts or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks, shown in succession may be executed substantially concurrently or the blocks may be executed in the reverse order.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (11)

一种策略控制方法,其特征在于,包括:A policy control method, comprising: 获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作及所述控制策略的优先级;Obtaining a control policy set that matches the user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy; 根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作;Determining, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set; 根据所述优先级最高的控制动作执行对所述用户设备的策略控制。Performing policy control on the user equipment according to the highest priority control action. 如权利要求1所述的方法,其特征在于,所述根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作包括:The method according to claim 1, wherein the determining, according to the priority of the control policy, the control action having the highest priority among the same type of control actions included in the at least two control policies in the control policy set includes: 根据控制动作的类型对所述控制策略集中的控制动作进行分组;Grouping control actions in the control policy set according to types of control actions; 根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。The control action with the highest priority in each packet is determined according to the priority of the control action, and the priority of the control action is the same as the priority of the control policy in which the control action is located. 如权利要求1所述的方法,其特征在于,所述根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作包括:The method according to claim 1, wherein the determining, according to the priority of the control policy, the control action having the highest priority among the same type of control actions included in the at least two control policies in the control policy set includes: 获取所述控制策略集中包含控制动作数量最多的第一控制策略;Obtaining, in the control policy set, a first control policy that includes the largest number of control actions; 根据第一控制策略中控制动作的类型对所述控制策略集中的控制动作进行分组;And grouping the control actions in the control policy set according to the type of the control action in the first control policy; 根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。The control action with the highest priority in each packet is determined according to the priority of the control action, and the priority of the control action is the same as the priority of the control policy in which the control action is located. 如权利要求1-3任一项所述的方法,其特征在于,所述获取与用户设备匹配的控制策略集包括:The method according to any one of claims 1 to 3, wherein the obtaining a control policy set matching the user equipment comprises: 接收策略与计费规则功能下发的多条控制策略;Receiving multiple control policies issued by the policy and charging rule function; 获取与用户设备的业务类型匹配的控制策略集。Get the set of control policies that match the type of service of the user device. 如权利要求4所述的方法,其特征在于,还包括:The method of claim 4, further comprising: 接收策略与计费规则功能下发的控制策略更新消息,更新所述控制策略集,跳转执行所述根据控制策略的优先级,确定所述控制策略集中至少两条 控制策略所包含的同一类型控制动作中优先级最高的控制动作的步骤。Receiving a control policy update message delivered by the policy and charging rule function, updating the control policy set, and performing the priority according to the control policy, and determining that the control policy set is at least two The step of the highest priority control action among the same type of control actions included in the control strategy. 如权利要求4或5所述的方法,其特征在于,所述控制动作的类型包括带宽控制、计费策略和使用量监控中的一种或多种。The method according to claim 4 or 5, wherein the type of the control action comprises one or more of bandwidth control, charging policy, and usage monitoring. 一种网关,其特征在于,包括:A gateway, comprising: 策略获取单元,用于获取与用户设备匹配的控制策略集,所述控制策略集中包含多条控制策略,所述控制策略中包含控制动作及所述控制策略的优先级;a policy obtaining unit, configured to acquire a control policy set that matches a user equipment, where the control policy set includes a plurality of control policies, where the control policy includes a control action and a priority of the control policy; 动作确定单元,用于根据控制策略的优先级,确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作;An action determining unit, configured to determine, according to a priority of the control policy, a control action with the highest priority among the same type of control actions included in the at least two control policies in the control policy set; 策略执行单元,用于根据所述优先级最高的控制动作执行对所述用户设备的策略控制。And a policy execution unit, configured to perform policy control on the user equipment according to the control action with the highest priority. 如权利要求7所述的网关,其特征在于,所述动作确定单元包括:The gateway according to claim 7, wherein the action determining unit comprises: 第一分组模块,用于根据控制动作的类型对所述控制策略集中的控制动作进行分组;a first grouping module, configured to group control actions in the control policy set according to a type of the control action; 第一确定模块,用于根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。The first determining module is configured to determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy in which the control action is located. 如权利要求7所述的网关,其特征在于,所述动作确定单元包括:The gateway according to claim 7, wherein the action determining unit comprises: 获取模块,用于获取所述控制策略集中包含控制动作数量最多的第一控制策略;An obtaining module, configured to acquire a first control policy that includes the largest number of control actions in the control policy set; 第二分组模块,用于根据第一控制策略中控制动作的类型对所述控制策略集中的控制动作进行分组;a second grouping module, configured to group the control actions in the control policy set according to a type of the control action in the first control policy; 第二确定模块,用于根据所述控制动作的优先级确定每个分组内优先级最高的控制动作,所述控制动作的优先级与所述控制动作所在的控制策略的优先级相同。And a second determining module, configured to determine, according to the priority of the control action, a control action with the highest priority in each group, the priority of the control action being the same as the priority of the control policy where the control action is located. 如权利要求7所述的网关,其特征在于,还包括:The gateway according to claim 7, further comprising: 策略更新单元,用于接收策略与计费规则功能下发的控制策略更新消息,更新所述控制策略集,触发所述动作确定单元执行所述根据控制策略的优先级确定所述控制策略集中至少两条控制策略所包含的同一类型控制动作中优先级最高的控制动作的步骤。 a policy update unit, configured to receive a control policy update message sent by the policy and charging rule function, and update the control policy set, triggering the action determining unit to perform the determining, according to a priority of the control policy, the control policy set The step of the highest priority control action among the same type of control actions included in the two control strategies. 一种策略与计费控制系统,包括策略与计费规则功能,其特征在于,A policy and charging control system, including a policy and charging rule function, characterized in that 还包括如权利要求7-10任一项所述的网关,所述策略与计费规则功能通过Gx接口向所述网关发送控制策略。 Also included is a gateway according to any of claims 7-10, the policy and charging rules function transmitting a control policy to the gateway over a Gx interface.
PCT/CN2015/076336 2014-08-30 2015-04-10 Policy control method and system and gateway Ceased WO2016029698A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410438791.6A CN104202738A (en) 2014-08-30 2014-08-30 Policy control method and system and gateway
CN201410438791.6 2014-08-30

Publications (1)

Publication Number Publication Date
WO2016029698A1 true WO2016029698A1 (en) 2016-03-03

Family

ID=52087951

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076336 Ceased WO2016029698A1 (en) 2014-08-30 2015-04-10 Policy control method and system and gateway

Country Status (2)

Country Link
CN (1) CN104202738A (en)
WO (1) WO2016029698A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202738A (en) * 2014-08-30 2014-12-10 华为技术有限公司 Policy control method and system and gateway
CN108460681B (en) * 2017-02-20 2020-07-03 阿里巴巴集团控股有限公司 Risk management and control method and device
CN110650467B (en) * 2018-06-26 2022-03-29 华为技术有限公司 Method and device for managing user data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370263A (en) * 2007-08-15 2009-02-18 华为技术有限公司 A policy control method and system
CN102726076A (en) * 2011-12-12 2012-10-10 华为技术有限公司 Policy and charging control method, policy and charging rules function and policy and charging control system
US20130077491A1 (en) * 2011-09-26 2013-03-28 George Cherian Systems and methods for traffic detection network control
CN104202738A (en) * 2014-08-30 2014-12-10 华为技术有限公司 Policy control method and system and gateway

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272256B (en) * 2007-03-23 2011-07-06 华为技术有限公司 Business handling method and system, policy control and charging regulation functional entity
CN101309214A (en) * 2008-06-24 2008-11-19 华为技术有限公司 A method and device for controlling network resource access
CN102469020B (en) * 2010-11-19 2017-10-17 华为技术有限公司 A kind of service control method and system, evolution base station, packet data network gateway
WO2014101239A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Method and device for policy and charging controlling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370263A (en) * 2007-08-15 2009-02-18 华为技术有限公司 A policy control method and system
US20130077491A1 (en) * 2011-09-26 2013-03-28 George Cherian Systems and methods for traffic detection network control
CN102726076A (en) * 2011-12-12 2012-10-10 华为技术有限公司 Policy and charging control method, policy and charging rules function and policy and charging control system
CN104202738A (en) * 2014-08-30 2014-12-10 华为技术有限公司 Policy control method and system and gateway

Also Published As

Publication number Publication date
CN104202738A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
JP7588667B2 (en) Enabling small data usage in 3GPP networks
US9917700B2 (en) Systems, methods, and computer readable media for policy enforcement correlation
US9641346B2 (en) Method and apparatus for performing charging control to application-layer data
US9331857B2 (en) Application charging method, device, and system
US10609225B2 (en) Charging method, apparatus, and system
US10277637B2 (en) Methods, systems, and computer readable media for clearing diameter session information
US9801229B2 (en) Method for processing service connection in a communication network and device thereof
US8787382B2 (en) Per-peer request delivery timeouts
US9036631B2 (en) Identifying Gn/Gp mode at PCRF
WO2016029698A1 (en) Policy control method and system and gateway
CN102075386B (en) Identification method and device
KR102039545B1 (en) Method and apparatus for processing packet
CN103648126B (en) A kind of fault handling method and equipment
CN102726076B (en) Policy and charging control method, policy and charging rules function and policy and charging control system
CN103108362B (en) A kind of method carrying out strategic decision-making and the network equipment
CN109040991B (en) Method and apparatus for wireless communication
US12039544B2 (en) Adaptive M2M billing
US9247073B2 (en) Method of pacing bulk operations based on available system resources
WO2018201810A1 (en) Pcrf entity, storage medium, race-condition removal method and system
WO2016091126A1 (en) Policy-making method, device and system
CN108271153B (en) A method, device and system for realizing user equipment authentication
WO2017128817A1 (en) Third-party application access method and apparatus
WO2025017695A1 (en) System and method for throttling services associated with users in a network
CN105450423B (en) A kind of account status information calibration method and device
WO2016078418A1 (en) Method and device for sponsor service decision

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

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

Country of ref document: EP

Kind code of ref document: A1