WO2009024056A1 - Method, system and device of expanding policy and charging control rule - Google Patents

Method, system and device of expanding policy and charging control rule Download PDF

Info

Publication number
WO2009024056A1
WO2009024056A1 PCT/CN2008/071961 CN2008071961W WO2009024056A1 WO 2009024056 A1 WO2009024056 A1 WO 2009024056A1 CN 2008071961 W CN2008071961 W CN 2008071961W WO 2009024056 A1 WO2009024056 A1 WO 2009024056A1
Authority
WO
WIPO (PCT)
Prior art keywords
policy
rule
pcrf
charging control
information
Prior art date
Application number
PCT/CN2008/071961
Other languages
French (fr)
Chinese (zh)
Inventor
Shibi Huang
Peng Zhao
Yuxin Mao
Shiyong Tan
Weihua Wei
Yan Li
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 WO2009024056A1 publication Critical patent/WO2009024056A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications

Definitions

  • the present invention relates to communication technologies, and in particular, to a method, system and apparatus for extending policies and charging control rules.
  • the telecommunication network is an operational network. Therefore, the resources used in the network and the resources used by the network must be controlled in a timely, accurate and comprehensive manner.
  • Policy and Charging Control (PCC) is an important part of it. one.
  • the Policy Control and Charging Rules Function (PCRF) is used to limit the access of the user equipment (UE, User Equipment) to the network, the policy formulated by the operator, and the The user subscription information obtained by the SPR (Subscription Profile Repository) and the service information currently being obtained by the user from the AF determine the corresponding policy and charging control rules, and issue the policy and charging control rules to the user. PCEF is executed.
  • SPR Subscribescription Profile Repository
  • PCEF Policy and Charging Enforcement Function
  • the interface between the PCRF and the PCEF is a Gx reference point, and the PCRF can dynamically control the policy and charging control rules executed by the PCEF through the reference point.
  • the dynamic policy and charging control rule are generated by the PCRF according to the user subscription information, the application layer service related information, the bearer related information, and the operator defined policy information, and are sent to the PCEF, and the policy and charging control rules executed by the PCEF are performed;
  • the predefined policy and charging control rules are mainly pre-configured on the PCEF. They are also divided into two types, one is Predefined on the PCEF, but the PCRF does not know the existence of the rule. When the predefined rule is executed, the PCEF directly executes the information for the user; the other is configured on the PCEF, but the information about the rule is saved on the PCRF.
  • the filtering rule information in the dynamic policy and charging control rule is mainly an IP 5 tuple, including source and destination IP addresses, source and destination port numbers, and protocol numbers; and filtering policy information in predefined policies and charging control rules.
  • IP 5 tuple information In addition to including IP 5 tuple information, it may also include extended 7-layer parsing filter rule information, such as a Uniform Resource Locator (URL).
  • URL Uniform Resource Locator
  • the Gx interface cannot transmit a policy and a charging control rule including extended layer 7 parsing filter rule information.
  • An embodiment of the present invention provides a method for extending a policy charging control rule, so that a policy including a layer 7 parsing filtering rule information and a charging control rule are transmitted between a PCEF and a PCRF.
  • the embodiment of the invention further provides a system for expanding the policy charging control rule, so that the policy including the extended layer 7 parsing filtering rule information and the charging control rule are implemented between the PCEF and the PCRF.
  • the embodiment of the invention further provides a PCRF, so that the transmission of the policy and the charging control rule including the extended layer 7 parsing filter rule information is implemented between the PCEF and the PCRF.
  • a method for extending a policy and charging control rules including:
  • the policy control and charging rule function device PCRF generates a policy and charging control rule including extended layer 7 parsing filter rule information, and sends it to the policy and charging execution function device PCEF for execution.
  • a system for extending policy and charging control rules including PCRF and PCEF,
  • the PCRF is configured to generate a policy and a charging control rule that includes extended layer 7 parsing filter rule information, and send the same.
  • the PCEF is configured to execute a policy and a charging control rule that includes the extended layer 7 parsing filtering rule information received from the PCRF.
  • a PCRF including a rule generation module and a sending module,
  • the rule generating module is configured to generate a policy and a charging control rule that include extended layer 7 parsing filtering rule information
  • the sending module is configured to send the policy and the charging control rule that are generated by the rule generating module and include the extended layer 7 parsing filtering rule information to the policy and charging execution function device PCEF.
  • FIG. 1 is a schematic diagram of a PCC architecture of an application scenario according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for expanding a policy and a charging control rule according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for extending a charging rule for a roaming user according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for extending a gate control policy control rule according to an embodiment of the present invention
  • FIG. 6 is a system structural diagram of an extended policy and a charging control rule according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a PCC architecture of an application scenario according to an embodiment of the present invention.
  • the PCC system includes an application layer functional entity (AF, Application Function), a policy control and a charging control function entity (PCRF, Policy Control and Charging Rules Function), and is usually set at a gateway (GW, Gateway). Internal Policy and Charging Enforcement Function (PCEF), offline charging system and online charging system.
  • AF application layer functional entity
  • PCRF Policy Control and Charging Rules Function
  • GW Gateway
  • PCEF Policy and Charging Enforcement Function
  • the AF is used to dynamically provide session information of the application layer to the PCRF.
  • the PCRF is used to limit the access network of the user equipment (UE, User Equipment), the policy formulated by the operator, the user subscription information obtained from the SPR (Spent Profile Repository), and the user acquired from the AF is currently in progress.
  • the service information and the like determine the corresponding policy and the charging control rule, and the policy and the charging control rule are sent to the PCEF for execution.
  • These policy and charging control rules include filtering rules and corresponding policy and charging control, wherein the policy and charging control includes but is not limited to: detection rules of service data flows, whether to gate, traffic data flow Corresponding quality of service (QoS) and flow-based charging rules; filtering rules are network protocol (IP, Internet Protocol) 5-tuple information, including source and destination IP addresses, source and destination port numbers, and protocols. number.
  • IP Internet Protocol
  • the PCEF is configured to perform a policy that is sent or specified by the PCRF, that is, to detect the service data flow according to the filtering rule in the policy and the charging control rule sent by the PCRF, and then execute the PCRF policy and the policy data flow.
  • Billing control For example, performing the detection and measurement of the corresponding service data flow, generating the charging information according to the traffic of the service data flow, sending the payment to the online charging system or the offline charging system for charging, performing the gating of the service data flow, and ensuring the service data.
  • Flow QoS user plane traffic processing and session management for triggering control planes.
  • the interface between the PCRF and the PCEF is a Gx reference point, and the PCRF can dynamically control the policy and charging control rules executed by the PCEF through the reference point.
  • the functions of the reference point include: establishing, maintaining, and terminating a network protocol connection access network (IP-CAN, Internet Protocol Connectivity Access Network) session, the PCEF requests policy and charging control rules from the PCRF, and the PCRF provides policy and charging to the PCEF. Control rules, negotiate IP-CAN bearer setup mode, etc.
  • IP-CAN Internet Protocol Connectivity Access Network
  • the IP-CAN session refers to the connection relationship between the UE and the Packet Data Network (PDN), which is identified by the IP address of the UE and the identity of the UE. As long as the UE is assigned an IP address that can be identified by the IP network, it indicates that the IP-CAN session has been established.
  • An IP-CAN session can contain one or more IP-CAN bearers.
  • FIG. 2 is a flowchart of establishing an IP-CAN session of an application scenario according to an embodiment of the present invention. As shown in FIG. 2, the session establishment process includes the following steps:
  • Step 200 The UE initiates an IP-CAN session establishment request message to the PCEF for requesting allocation of an IP address identifiable in the PDN network.
  • this step is to establish the first Packet Data Protocol (PDP) context.
  • PDP Packet Data Protocol
  • Step 201 The PCEF sends a CCR (Credit-Control-Request) message including a UE identifier and an IP address to the PCRF to notify the PCRF to establish an IP-CAN session.
  • the PCRF saves the Information in the CCR message.
  • Steps 202 to 203 If the PCRF needs to sign the related information, for example, the PCRF does not save the subscription related information of the user when establishing the session, and then requests the user subscription information from the SPR; the SPR returns the user subscription related information, including the user, to the PCRF. Information such as the current contracted service and the user's billing model.
  • Step 204 to step 205 The PCRF generates and stores a policy and charging control rule, and returns the policy and charging control rule to the PCEF through a CCA (Credit-Control-Answer) message.
  • CCA Clear-Control-Answer
  • Step 206 to step 207 The PCEF installs the policy and charging control rule, and returns an IP-CAN session establishment response to the UE.
  • the IP-CAN session is successfully established, and the UE can perform the transmission of the service data stream.
  • the PCEF performs the matching judgment of the data packet according to the installed policy and the filtering rule in the charging control rule. Then implement the corresponding policy and charging control.
  • the Gx interface in the PCC architecture mainly uses a Diameter message transmission policy and a charging control rule
  • the PCRF uses a Diameter CCA (this message is used to reply to a CCR message sent by the PCEF) or a re-authentication request (RAR, Re-Auth-Request).
  • the message is used by the PCRF to send the policy and charging control rules to the PCEF.
  • the policy and charging control rules of the service data flow are sent to the PCEF for execution.
  • a charging policy definition in the Charging-Rule-Definition of the CCA or RAR is defined as follows:
  • Flow-Description indicates one or more IP 5-tuple information of the service data flow;
  • Flow-Status indicates the gating policy information of the corresponding service data flow, for example, the data packet is uploaded up and down. Gating policy control; Rating-Group, Reporting-Level, Online, Offline, Metering-Method, etc., indicating charging control policy information corresponding to the service data flow, and charging rule name (Charging-Rule-Name) indicating carrying traffic data flow control Policy policy and billing control rule name.
  • FIG. 3 is a flowchart of a method for expanding a policy and a charging control rule according to an embodiment of the present invention. As shown in Figure 3, the method includes the following steps:
  • Step 300 The PCRF generates a policy and a charging control rule including the extended layer 7 parsing filtering rule information, and sends the packet to the PCEF through the Gx interface according to the policy context information.
  • the PCRF may generate a policy and a plan including extended 7-layer parsing filter rule information according to one or more of the policy context information such as the user subscription information, the bearer-related information, the application-related information, and the operator-defined policy. Fee control rules.
  • the existing PCRF can obtain the user's subscription information from the SPR as needed. Therefore, the related policy based on the extended 7-layer parsing filtering rule information may be pre-defined in the subscription information of the user, and the related policy based on the extended 7-layer parsing filtering rule information may be pre-configured on the PCRF, including whether to allow a certain service, Information such as the bandwidth allocated to the user and the billing method.
  • the filtering rules in the policy and charging control rules generated in this step may include IP 5-tuple information, Application protocol type (APP-Protocol) and extended 7-layer parsing filter rule information.
  • IP 5-tuple information Application protocol type (APP-Protocol)
  • APP-Protocol Application protocol type
  • extended 7-layer parsing filter rule information extended 7-layer parsing filter rule information.
  • the source IP address in the IP 5-tuple information is an IP address allocated to the UE when the IP-CAN session is established, and the corresponding destination IP address may be determined according to the service used by the UE, or may not be
  • the source and destination port numbers are the port number of the service corresponding protocol used by the UE, and the protocol number is the protocol number corresponding to the service used by the UE.
  • the source IP address in the IP 5-tuple information may be According to the service used by the UE, it may be indeterminate.
  • the corresponding destination IP address is the IP address assigned to the UE when the IP-CAN session is established, and the source and destination port numbers are the end numbers of the service corresponding protocol used by the UE.
  • the protocol number is the protocol number corresponding to the service used by the UE.
  • APP-Protocol is the protocol type corresponding to the service used by the UE.
  • the URL is a preset policy information.
  • the protocol type corresponding to the service used by the UE is the http service, and the operator pre-sets a free policy for the education website www edu access in the PCRF for the http service. Therefore, when the user uses the http service, the PCRF generates a Educational website free policy and billing control rules.
  • the PCRF After the PCRF formulates the policy and the charging control rule according to the policy context information, the PCRF sends the data to the PCEF through the Diameter CCA or RAR message.
  • the corresponding policy and charging controls may include control policies such as QoS, charging, and/or gating of the application traffic.
  • Method 1 Add APP-Protocol AVP and URL AVP directly to Charging-Rule-Definition, as defined below:
  • APP-Protocol indicates the application protocol type, such as HTTP, WAP2.0, RTSP and FTP.
  • the cell may not be included in the embodiment of the present invention.
  • the URL indicates that the 7-layer parsing filtering rule information is extended, for example, http://www.huawei.com. Wildcards (such as http://www.*.com ) can also be used in URLs.
  • Method 2 Add a new flow-filter AVP instead of the original Flow-Description AVP:
  • the Flow-Filter AVP extends the original filtering rules, including not only the IP 5-tuple information, but also the application protocol type and the extended 7-layer parsing filtering rule information.
  • the definition is as follows:
  • the Flow-Description is the same as the definition in the prior art, and mainly includes IP 5-tuple information: source IP address, destination IP address, source port number, destination port number, and protocol number.
  • the IP address can have a mask (for example, the mask length is 8, 16, or 24), and the port number can have a certain range (for example, 551-559).
  • APP-Protocol indicates application protocol types such as HTTP, WAP2.0, RTSP, and FTP.
  • the cell may not be included in the embodiment of the present invention.
  • the URL indicates that the 7-layer parsing filter rule information is extended, for example, http: ⁇ www.huawei.com. Wildcards (1 ⁇ J ⁇ .http: ⁇ www.*.com) can also be used in URLs.
  • the definitions of other cells are the same as those in the prior art, and are not described herein again.
  • the policy and the charging control rule that are generated in the PCRF are first sent to the PCRF of the user, and then sent by the user to the PCF to the PCEF.
  • Step 301 The PCEF performs policy control such as QoS, charging, and/or gating of the corresponding service data flow according to the delivered policy and charging control rule.
  • policy control such as QoS, charging, and/or gating of the corresponding service data flow according to the delivered policy and charging control rule.
  • the PCEF detects the received data packet, and first uses the IP 5 tuple in the filtering rule to perform rule matching. If the matching succeeds, the application protocol type is further matched. If the application protocol type matches, the PCEF continues. Match the URL information. Then, for the data packet matching the filtering rule, perform corresponding policy and charging control, and execute the corresponding policy and charging. The process of control is the same as the prior art and will not be described in detail herein. If the application protocol type is not included in the policy and charging control rule definition, this step directly matches the URL information after the IP 5 tuple is successfully matched.
  • the PCEF filters the data packet, and forwards or discards according to the indication (Disable, Enable, etc.) given by the gating control policy. Gating control; If the control policy information is a QoS control policy, the PCEF may initiate QoS policy control according to the QoS control policy, perform an update operation of the IP-CAN session, such as an QoS parameter update of the IP-CAN session, or an IP-CAN bearer If the control policy information is the charging control policy, the PCEF can perform charging control according to the charging control policy, such as charging according to traffic or duration, online or offline charging, and the like.
  • the charging policy defined by the operator for the user in the PCRF is to obtain a free charging policy for the user to access the educational website (www.*.edu).
  • FIG. 4 is a flowchart of a method for extending a charging rule for a roaming user according to an embodiment of the present invention. As shown in Figure 4, the method includes the following steps:
  • Step 400 When the user uses the data service in the roaming state, first initiate an IP-CAN session establishment request to the V-PCEF.
  • Steps 401 to 402 The V-PCEF sends a Diameter CCR message to the V-PCRF to request policy and charging control information.
  • the V-PCRF sends a policy and charging control request to the H-PCRF, requesting policy and charging control rules.
  • Step 403 If necessary, the H-PCRF may obtain the user subscription information according to the SPR.
  • Step 404 The H-PCRF generates a charging rule including extended 7-layer parsing filtering rule information according to the charging policy defined by the operator and/or the user subscription information, and sends the charging rule to the V-PCRF.
  • the operator defines the charging policy: the user accesses the education website (www.*.edu) to obtain a free charging policy, and the H-PCRF defines the charging policy and/or the user subscription information according to the operator.
  • a charging rule including extended 7-layer parsing filter rule information is generated and sent to the V-PCRF.
  • the billing rules include:
  • IP 5-tuple information The source IP address is the user IP; the destination IP address is arbitrary; the source and destination ports are arbitrary; the protocol number is 6. The protocol number is the protocol number corresponding to the Transmission Control Protocol (TCP).
  • TCP Transmission Control Protocol
  • the application protocol type is http.
  • the extended 7-layer parsing filter rule information is http: ⁇ www.*.edu.
  • the billing rules also carry DISABLE_OFFLINE ( 0 ) and DISABLE ONLINE ( 0 ) billing attributes.
  • the IP address corresponding to the education website is unknown, so the destination IP address here is arbitrary.
  • the port number corresponding to the protocol can be configured according to the actual application. Therefore, the source and destination port numbers are also arbitrary.
  • Step 405 The V-PCRF sends the charging rule to the V-PCEF.
  • the charging rules in this step contain filtering rule information:
  • the IP 5-tuple information is:
  • the source IP address is the user IP; the destination IP address is any; the source and destination ports are arbitrary; and the protocol number is 6 (TCP).
  • the application protocol (APP-Protocol) type is http.
  • the extended 7-layer parsing filter rule information is http: ⁇ www.*.edu.
  • Step 406 The V-PCEF installs the charging rule, and sends an IP-CAN session establishment response to the terminal. After the IP-CAN session is established, the service data stream can be transmitted, and the PCEF performs policy and charging on the service data flow according to the policy and charging control rule that is delivered by the extended layer 7 parsing filtering rule information. Control, for example, in this example, performs a free charging policy for data messages that the user accesses the educational website.
  • the process of performing the charging is the same as that of the prior art according to the charging rule that includes the information of the extended layer 7 parsing filtering rule, and details are not described herein again.
  • the strategy developed by the operator in the PCRF is: To prevent users from being infected with viruses, users are prohibited from accessing some unsafe websites abroad, and the domain name information of these websites is pre-configured.
  • FIG. 5 is a flowchart of a method for expanding a gate control policy control rule according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • Step 500 Establish an IP-CAN session for the user equipment.
  • Step 501 If an internal or external event is triggered, for example, when the user accesses the Internet and needs to access other services with larger bandwidth requirements, the UE needs to establish a new IP-CAN bearer, and therefore sends an IP-CAN bearer setup request to the PCEF. .
  • Step 502 The PCEF sends a Diameter CCR message to the PCRF, where the message carries bearer related information, such as a bearer identifier, and user information, etc., for requesting policy and charging control information.
  • bearer related information such as a bearer identifier, and user information, etc.
  • Step 503 If necessary, the PCRF may obtain the user subscription information according to the user information in the SPR.
  • Step 504 The PCRF generates a gating policy control rule that includes the extended layer 7 parsing filtering rule information corresponding to the bearer identifier according to the operator-defined gating policy, the bearer-related information, and/or the user subscription information, and sends the Gating Policy to the GX interface through the Gx interface. PCEF.
  • the operator's gating policy defined in the PCRF is: prohibiting users from accessing some foreign unsafe websites (www.unsafe*.com), and the PCRF is contracted according to the operator-defined gating policy, bearer related information, and/or user subscription.
  • the information generates a gating policy control rule and sends it to the PCEF for execution.
  • the gating policy control rule contains filtering rule information:
  • IP 5-tuple information The source IP address is the user IP; the destination IP address is arbitrary; the source and destination ports are arbitrary; the protocol number is 6 ( TCP);
  • the application protocol (APP-Protocol) type is WAP;
  • the extended 7-layer parsing filter rule information is http: ⁇ www.unsafe*.com.
  • Flow-Status defines gating both upstream and downstream.
  • Step 505 The PCEF installs the gating policy control rule, and sends an IP-CAN bearer setup response to the user equipment.
  • the PCEF After the bearer is successfully established, the PCEF performs filtering rule matching for the user's service data flow, such as If the filtering rule in the gating policy control rule is matched, the service data flow packet of the user is discarded, otherwise the service data flow packet of the user is forwarded.
  • FIG. 6 is a system structural diagram of an extended policy and a charging control rule according to an embodiment of the present invention. As shown in Figure 6, the system includes PCRF61 and PCEF62.
  • the PCRF61 is configured to generate a policy and a charging control rule including extended 7-layer parsing filtering rule information, and send the packet to the PCEF 62.
  • the PCEF62 performs a policy and a charging control rule that includes the extended 7-layer parsing filtering rule information received from the PCRF 61. .
  • the PCRF 61 includes a rule generation module 611, configured to generate a policy and a charging control rule including extended 7-layer parsing filter rule information, and a sending module 612, configured to include the extended 7-layer parsing filter generated by the rule generating module 611. Policy and charging control rules for rule information are sent to PCEF62.
  • the PCRF 61 further includes a policy context information obtaining module 613, configured to acquire policy context information from the SPR, the PCEF 62, or the AF, and save the information to the storage module 614.
  • the storage module 614 is configured to store the policy context information acquired by the policy context information acquiring module.
  • the rule generation module 611 generates a policy and a charging control rule including extended 7-layer parsing filter rule information according to the policy context information saved by the storage module 614.
  • the sending module 612 can further send the policy and the fee control rule including the extended layer 7 parsing filter rule information to the PCEF of the user visit.
  • the system may further include the user visited PCRF.
  • the PCRF 61 further sends the policy and charging control rule including the extended 7-layer parsing filtering rule information to the user visited PCRF; the user visited the PCRF, and receives the policy and charging including the extended 7-layer parsing filtering rule information sent by the user home PCRF. Control rules; and send to the PCEF where the user visits.
  • the PCRF61 generates a policy and a charging control rule that includes extended layer 7 parsing filtering rule information, and then sends the packet to the PCEF 62 for execution, so that when the user is roaming In the state, the visiting PCEF can obtain the attribution
  • the PCRF includes policies and charging control rules that extend the 7-layer parsing filter rule information to complete accurate and comprehensive policy and charging control.
  • the technical solution provided by the embodiment of the present invention can implement the transmission of the policy including the extended 7-layer parsing filtering rule information and the charging control rule by using the Gx interface. Therefore, the PCEF, the PCRF, and the SPR need not be saved simultaneously.
  • the policy of the filtering rule information and the charging control rule information are parsed, thereby saving network resources.
  • the PCRF since it is not necessary to save the policy and charging control rule information including the extended layer 7 parsing filter rule information in the PCEF, when the user's personalized setting is modified, the PCRF only needs to generate the real-time included according to the user's modified personalized setting.
  • the policy and charging control rules of the 7-layer parsing filtering rule are extended without separately modifying the policy and charging control rules configured on each network device, thereby facilitating management.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

A method of an expanding policy and charging control rule is disclosed, including: A policy control and charging rule function (PCRF) generating a policy and charging control rule which comprising an expanding 7 layers resolving filtering rule and sending to a policy and charging enforcement function (PCEF) performing. A system of an expanding policy and charging control rule including the PCRF and the PCEF is disclosed, and the PCRF is also disclosed.

Description

扩展策略和计费控制规则的方法、 系统及装置 技术领域  Method, system and device for expanding policy and charging control rules
本发明涉及通信技术, 具体涉及一种扩展策略和计费控制规则的方法、 系统及装置。  The present invention relates to communication technologies, and in particular, to a method, system and apparatus for extending policies and charging control rules.
背景技术 Background technique
电信网络是一个可运营的网络, 因此, 必须对网络中的业务和网络所使 用的资源进行及时、 准确、 全面的控制, 策略和计费控制 (PCC, Policy and Charging Control )就是其中的重要内容之一。  The telecommunication network is an operational network. Therefore, the resources used in the network and the resources used by the network must be controlled in a timely, accurate and comprehensive manner. Policy and Charging Control (PCC) is an important part of it. one.
在 PCC系统中, 策略控制和计费规则功能实体( PCRF , Policy Control and Charging Rules Function ) , 用于才艮据用户设备 ( UE, User Equipment )接入 网络的限制、运营商制定的策略、从用户签约数据库( SPR, Subscription Profile Repository )获取的用户签约信息以及从 AF获取的用户当前正在进行的业务信 息等决定对应的策略和计费控制规则, 并将该策略和计费控制规则下发给 PCEF执行。  In the PCC system, the Policy Control and Charging Rules Function (PCRF) is used to limit the access of the user equipment (UE, User Equipment) to the network, the policy formulated by the operator, and the The user subscription information obtained by the SPR (Subscription Profile Repository) and the service information currently being obtained by the user from the AF determine the corresponding policy and charging control rules, and issue the policy and charging control rules to the user. PCEF is executed.
策略和计费执行功能实体 (PCEF , Policy and Charging Enforcement Function ) PCEF, 用于执行 PCRF下发或者指定的策略, 即按照 PCRF所发送的 策略和计费控制规则中的过滤规则, 对业务数据流进行探测, 进而对这些业 务数据流执行 PCRF所制定的策略和计费控制。  The Policy and Charging Enforcement Function (PCEF) is used to perform the policy that is sent or specified by the PCRF, that is, according to the filtering rules in the policy and charging control rules sent by the PCRF, and the service data flow. Probing, and then performing the policy and charging control established by the PCRF for these service data streams.
其中, PCRF与 PCEF之间的接口为 Gx参考点, PCRF可以通过该参考点动 态控制 PCEF所执行的策略和计费控制规则。  The interface between the PCRF and the PCEF is a Gx reference point, and the PCRF can dynamically control the policy and charging control rules executed by the PCEF through the reference point.
现有的 PCC架构中主要有两种策略和计费控制规则:动态策略和计费控制 规则和预定义的策略和计费控制规则。 动态策略和计费控制规则是由 PCRF根 据用户签约信息、 应用层业务相关信息、 承载相关信息和运营商定义的策略 信息等产生并下发到 PCEF, 由 PCEF执行的策略和计费控制规则; 预定义的策 略和计费控制规则主要是在 PCEF上预先配置的, 也分为两种类型, 一种是在 PCEF上预定义, 但是 PCRF不知道该规则的存在, 在执行该预定义的规则时, 由 PCEF针对用户信息直接执行; 另外一种是在 PCEF上配置, 但是 PCRF上保 存有该规则的相关信息, 且这类规则由 PCRF激活。 动态策略和计费控制规则 中的过滤规则信息主要是 IP 5元组, 包括源和目的 IP地址、 源和目的端口号及 协议号; 而预定义的策略和计费控制规则中的过滤规则信息除了包含 IP 5元组 信息外还可以包含扩展 7层解析过滤规则信息, 例如统一资源定位符(URL, Uniform Resource Locator )等。 There are two main policy and charging control rules in the existing PCC architecture: dynamic policy and charging control rules and predefined policy and charging control rules. The dynamic policy and the charging control rule are generated by the PCRF according to the user subscription information, the application layer service related information, the bearer related information, and the operator defined policy information, and are sent to the PCEF, and the policy and charging control rules executed by the PCEF are performed; The predefined policy and charging control rules are mainly pre-configured on the PCEF. They are also divided into two types, one is Predefined on the PCEF, but the PCRF does not know the existence of the rule. When the predefined rule is executed, the PCEF directly executes the information for the user; the other is configured on the PCEF, but the information about the rule is saved on the PCRF. And such rules are activated by the PCRF. The filtering rule information in the dynamic policy and charging control rule is mainly an IP 5 tuple, including source and destination IP addresses, source and destination port numbers, and protocol numbers; and filtering policy information in predefined policies and charging control rules. In addition to including IP 5 tuple information, it may also include extended 7-layer parsing filter rule information, such as a Uniform Resource Locator (URL).
在实现本发明的过程中, 发明人发现现有技术中存在如下问题: Gx接口 无法传输包含扩展 7层解析过滤规则信息的策略和计费控制规则。  In the process of implementing the present invention, the inventors have found that the prior art has the following problems: The Gx interface cannot transmit a policy and a charging control rule including extended layer 7 parsing filter rule information.
发明内容 Summary of the invention
本发明实施例提供一种扩展策略计费控制规则的方法,使得 PCEF和 PCRF 之间实现包含扩展 7层解析过滤规则信息的策略和计费控制规则的传输。  An embodiment of the present invention provides a method for extending a policy charging control rule, so that a policy including a layer 7 parsing filtering rule information and a charging control rule are transmitted between a PCEF and a PCRF.
本发明实施例还提供一种扩展策略计费控制规则的系统, 使得 PCEF和 PCRF之间实现包含扩展 7层解析过滤规则信息的策略和计费控制规则的传 输。  The embodiment of the invention further provides a system for expanding the policy charging control rule, so that the policy including the extended layer 7 parsing filtering rule information and the charging control rule are implemented between the PCEF and the PCRF.
本发明实施例还提供一种 PCRF, 使得 PCEF和 PCRF之间实现包含扩展 7 层解析过滤规则信息的策略和计费控制规则的传输。  The embodiment of the invention further provides a PCRF, so that the transmission of the policy and the charging control rule including the extended layer 7 parsing filter rule information is implemented between the PCEF and the PCRF.
为达到上述目的, 本发明实施例的技术方案是这样实现的:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
一种扩展策略和计费控制规则的方法, 包括:  A method for extending a policy and charging control rules, including:
策略控制和计费规则功能设备 PCRF生成包含扩展 7层解析过滤规则信息 的策略和计费控制规则, 并发送到策略和计费执行功能设备 PCEF执行。  The policy control and charging rule function device PCRF generates a policy and charging control rule including extended layer 7 parsing filter rule information, and sends it to the policy and charging execution function device PCEF for execution.
一种扩展策略和计费控制规则的系统, 包括 PCRF及 PCEF,  A system for extending policy and charging control rules, including PCRF and PCEF,
所述 PCRF, 用于生成包含扩展 7层解析过滤规则信息的策略和计费控制 规则, 并发送;  The PCRF is configured to generate a policy and a charging control rule that includes extended layer 7 parsing filter rule information, and send the same.
所述 PCEF , 用于执行从所述 PCRF接收到的包含扩展 7层解析过滤规则信 息的策略和计费控制规则。 一种 PCRF, 包括规则生成模块和发送模块, The PCEF is configured to execute a policy and a charging control rule that includes the extended layer 7 parsing filtering rule information received from the PCRF. A PCRF, including a rule generation module and a sending module,
所述规则生成模块, 用于生成包含扩展 7层解析过滤规则信息的策略和计 费控制规则;  The rule generating module is configured to generate a policy and a charging control rule that include extended layer 7 parsing filtering rule information;
所述发送模块, 用于将所述规则生成模块生成的包含扩展 7层解析过滤规 则信息的策略和计费控制规则发送到策略和计费执行功能设备 PCEF。  The sending module is configured to send the policy and the charging control rule that are generated by the rule generating module and include the extended layer 7 parsing filtering rule information to the policy and charging execution function device PCEF.
附图说明 DRAWINGS
图 1为本发明实施例的一个应用场景的 PCC架构示意图;  FIG. 1 is a schematic diagram of a PCC architecture of an application scenario according to an embodiment of the present invention;
图 2为本发明实施例的一个应用场景的 IP-CAN会话建立流程;  2 is an IP-CAN session establishment process of an application scenario according to an embodiment of the present invention;
图 3为本发明实施例中扩展策略和计费控制规则的方法流程图;  3 is a flowchart of a method for expanding a policy and a charging control rule according to an embodiment of the present invention;
图 4为本发明实施例中针对漫游用户扩展计费规则的方法流程图; 图 5为本发明实施例中扩展门控策略控制规则的方法流程图;  4 is a flowchart of a method for extending a charging rule for a roaming user according to an embodiment of the present invention; FIG. 5 is a flowchart of a method for extending a gate control policy control rule according to an embodiment of the present invention;
图 6为本发明实施例中扩展策略和计费控制规则的系统结构图。  FIG. 6 is a system structural diagram of an extended policy and a charging control rule according to an embodiment of the present invention.
具体实施方式 detailed description
下面结合附图及具体实施例对本发明进行详细说明。  The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
图 1为本发明实施例的一个应用场景的 PCC架构示意图。如图 1所示,所述 PCC系统包括应用层功能实体( AF , Application Function )、 策略控制和计费 规则功能实体( PCRF, Policy Control and Charging Rules Function ) 、 通常设 置在网关(GW, Gateway ) 内的策略和计费执行功能实体( PCEF, Policy and Charging Enforcement Function ) 、 离线计费系统及在线计费系统。  FIG. 1 is a schematic diagram of a PCC architecture of an application scenario according to an embodiment of the present invention. As shown in FIG. 1, the PCC system includes an application layer functional entity (AF, Application Function), a policy control and a charging control function entity (PCRF, Policy Control and Charging Rules Function), and is usually set at a gateway (GW, Gateway). Internal Policy and Charging Enforcement Function (PCEF), offline charging system and online charging system.
AF用于向 PCRF动态提供应用层的会话信息。  The AF is used to dynamically provide session information of the application layer to the PCRF.
PCRF, 用于根据用户设备(UE, User Equipment )接入网络的限制、 运 营商制定的策略、 从用户签约数据库 ( SPR, Subscription Profile Repository ) 获取的用户签约信息以及从 AF获取的用户当前正在进行的业务信息等决定对 应的策略和计费控制规则, 并将该策略和计费控制规则下发给 PCEF执行。 这 些策略和计费控制规则包括过滤规则和对应的策略和计费控制, 其中的策略 和计费控制包括但不限于: 业务数据流的检测规则, 是否门控, 业务数据流 对应的服务质量(QoS, Quality of Service )和基于流的计费规则等; 过滤规 则是网络协议(IP, Internet Protocol ) 5元组信息, 包括源和目的 IP地址、 源 和目的端口号及协议号。 The PCRF is used to limit the access network of the user equipment (UE, User Equipment), the policy formulated by the operator, the user subscription information obtained from the SPR (Spent Profile Repository), and the user acquired from the AF is currently in progress. The service information and the like determine the corresponding policy and the charging control rule, and the policy and the charging control rule are sent to the PCEF for execution. These policy and charging control rules include filtering rules and corresponding policy and charging control, wherein the policy and charging control includes but is not limited to: detection rules of service data flows, whether to gate, traffic data flow Corresponding quality of service (QoS) and flow-based charging rules; filtering rules are network protocol (IP, Internet Protocol) 5-tuple information, including source and destination IP addresses, source and destination port numbers, and protocols. number.
PCEF, 用于执行 PCRF下发或者指定的策略, 即按照 PCRF所发送的策略 和计费控制规则中的过滤规则, 对业务数据流进行探测, 进而对这些业务数 据流执行 PCRF所制定的策略和计费控制。 例如, 执行相应的业务数据流的检 测和测量, 根据业务数据流的流量生成计费信息, 发送到在线计费系统或离 线计费系统进行计费, 执行业务数据流的门控, 保证业务数据流的 QoS, 进行 用户面流量处理和触发控制面的会话管理等。  The PCEF is configured to perform a policy that is sent or specified by the PCRF, that is, to detect the service data flow according to the filtering rule in the policy and the charging control rule sent by the PCRF, and then execute the PCRF policy and the policy data flow. Billing control. For example, performing the detection and measurement of the corresponding service data flow, generating the charging information according to the traffic of the service data flow, sending the payment to the online charging system or the offline charging system for charging, performing the gating of the service data flow, and ensuring the service data. Flow QoS, user plane traffic processing and session management for triggering control planes.
其中, PCRF与 PCEF之间的接口为 Gx参考点, PCRF可以通过该参考点动 态控制 PCEF所执行的策略和计费控制规则。 该参考点的功能包括: 建立、 维 护和终结网络协议连接接入网络 ( IP-CAN , Internet Protocol Connectivity Access Network )会话, PCEF向 PCRF请求策略和计费控制规则, PCRF向 PCEF 提供策略和计费控制规则, 协商 IP-CAN承载建立模式等。 该参考点釆用 Diameter协议。  The interface between the PCRF and the PCEF is a Gx reference point, and the PCRF can dynamically control the policy and charging control rules executed by the PCEF through the reference point. The functions of the reference point include: establishing, maintaining, and terminating a network protocol connection access network (IP-CAN, Internet Protocol Connectivity Access Network) session, the PCEF requests policy and charging control rules from the PCRF, and the PCRF provides policy and charging to the PCEF. Control rules, negotiate IP-CAN bearer setup mode, etc. This reference point uses the Diameter protocol.
IP-CAN会话指的是 UE和分组数据网 (PDN, Packet Data Network )之间 的连接关系,该连接关系通过 UE的 IP地址和 UE的标识来识别。只要为 UE分配 了能被 IP网络识别的 IP地址, 就表明 IP-CAN会话已建立。 IP-CAN会话可以包 含一个或多个 IP-CAN承载。  The IP-CAN session refers to the connection relationship between the UE and the Packet Data Network (PDN), which is identified by the IP address of the UE and the identity of the UE. As long as the UE is assigned an IP address that can be identified by the IP network, it indicates that the IP-CAN session has been established. An IP-CAN session can contain one or more IP-CAN bearers.
图 2为本发明实施例的一个应用场景的 IP-CAN会话建立流程。如图 2所示, 该会话建立流程包括以下步骤:  FIG. 2 is a flowchart of establishing an IP-CAN session of an application scenario according to an embodiment of the present invention. As shown in FIG. 2, the session establishment process includes the following steps:
步骤 200: UE向 PCEF发起 IP-CAN会话建立请求消息, 用于请求分配一个 在 PDN网络中可识别的 IP地址。 在 GPRS网络中, 本步骤就是建立第一个分组 数据协议(PDP, Packet Data Protocol )上下文。  Step 200: The UE initiates an IP-CAN session establishment request message to the PCEF for requesting allocation of an IP address identifiable in the PDN network. In the GPRS network, this step is to establish the first Packet Data Protocol (PDP) context.
步骤 201 : PCEF向 PCRF发送包含 UE标识和 IP地址的信用控制请求( CCR, Credit-Control-Request )消息, 以通知 PCRF建立 IP-CAN会话; 由 PCRF保存该 CCR消息中的信息。 Step 201: The PCEF sends a CCR (Credit-Control-Request) message including a UE identifier and an IP address to the PCRF to notify the PCRF to establish an IP-CAN session. The PCRF saves the Information in the CCR message.
步骤 202〜步骤 203: PCRF如果需要用户签约相关信息, 例如 PCRF在建立 该会话时还没有保存该用户的签约相关信息, 则向 SPR请求用户签约信息; SPR向 PCRF返回用户签约相关信息, 包括用户当前签约的业务及用户的计费 模式等信息。  Steps 202 to 203: If the PCRF needs to sign the related information, for example, the PCRF does not save the subscription related information of the user when establishing the session, and then requests the user subscription information from the SPR; the SPR returns the user subscription related information, including the user, to the PCRF. Information such as the current contracted service and the user's billing model.
步骤 204〜步骤 205: PCRF生成并存储策略和计费控制规则, 通过信用控 制应答(CCA, Credit-Control-Answer ) 消息将策略和计费控制规则返回给 PCEF。  Step 204 to step 205: The PCRF generates and stores a policy and charging control rule, and returns the policy and charging control rule to the PCEF through a CCA (Credit-Control-Answer) message.
步骤 206〜步骤 207 : PCEF安装该策略和计费控制规则, 并向 UE返回 IP-CAN会话建立响应。  Step 206 to step 207: The PCEF installs the policy and charging control rule, and returns an IP-CAN session establishment response to the UE.
至此 IP-CAN会话建立成功, UE可以进行业务数据流的传输, 在传输过程 中, PCEF根据安装的策略和计费控制规则中的过滤规则, 进行数据报文的匹 配判断, 如果匹配过滤规则, 则执行相应的策略和计费控制。  The IP-CAN session is successfully established, and the UE can perform the transmission of the service data stream. During the transmission process, the PCEF performs the matching judgment of the data packet according to the installed policy and the filtering rule in the charging control rule. Then implement the corresponding policy and charging control.
所述 PCC架构中的 Gx接口主要使用 Diameter消息传输策略和计费控制规 则, PCRF使用 Diameter CCA (该消息用于回复 PCEF发送的 CCR消息)或重 鉴权请求( RAR, Re-Auth-Request ) (该消息用于 PCRF主动将策略和计费控 制规则发送给 PCEF ) 消息, 通过该接口将业务数据流的策略和计费控制规则 发送给 PCEF执行。 例如一个在 CCA或 RAR的计 费规则 建立 ( Charging-Rule-Install ) 的计费规则定义( Charging-Rule-Definition ) 中携带 控制策略的定义如下:  The Gx interface in the PCC architecture mainly uses a Diameter message transmission policy and a charging control rule, and the PCRF uses a Diameter CCA (this message is used to reply to a CCR message sent by the PCEF) or a re-authentication request (RAR, Re-Auth-Request). The message is used by the PCRF to send the policy and charging control rules to the PCEF. The policy and charging control rules of the service data flow are sent to the PCEF for execution. For example, a charging policy definition in the Charging-Rule-Definition of the CCA or RAR is defined as follows:
Charging-Rule-Definition ::= < A VP Header: 1003 >  Charging-Rule-Definition ::= < A VP Header: 1003 >
{ Charging-Rule-Name }  { Charging-Rule-Name }
[ Service-Identifier ]  [ Service-Identifier ]
[ Rating-Group ]  [ Rating-Group ]
* [ Flow-Description ]  * [ Flow-Description ]
[ Flow- Status ]  [ Flow- Status ]
[ QoS-Information ] [ Reporting-Level ] [ QoS-Information ] [ Reporting-Level ]
[ Online ]  [ Online ]
[ Offline ]  [ Offline ]
[ Metering-Method ]  [ Metering-Method ]
[ Precedence ]  [ Precedence ]
[ AF-Charging-Identifier ]  [ AF-Charging-Identifier ]
* [ Flows ]  * [ Flows ]
*[ AVP ]  *[ AVP ]
其中, 大括号 "{}" 表示对应的项目是必选项, 中括号 "[]" 表示对应的 项目是可选项, "*"表示对应的项目可以有多个。 流描述( Flow-Description ) 表示业务数据流的一个或多个 IP 5元组信息; 流状态( Flow-Status )表示对应 业务数据流的门控策略信息, 例如对数据报文上下行都釆取门控策略控制; Rating-Group、 Reporting-Level、 Online、 Offline、 Metering-Method等表示对应 业务数据流的计费控制策略信息, 计费规则名称( Charging-Rule-Name )表示 携带业务数据流控制策略信息的策略和计费控制规则名称。  Among them, the braces "{}" indicate that the corresponding item is mandatory, the brackets "[]" indicate that the corresponding item is optional, and "*" indicates that there can be more than one item. Flow-Description indicates one or more IP 5-tuple information of the service data flow; Flow-Status indicates the gating policy information of the corresponding service data flow, for example, the data packet is uploaded up and down. Gating policy control; Rating-Group, Reporting-Level, Online, Offline, Metering-Method, etc., indicating charging control policy information corresponding to the service data flow, and charging rule name (Charging-Rule-Name) indicating carrying traffic data flow control Policy policy and billing control rule name.
图 3为本发明实施例中扩展策略和计费控制规则的方法流程图。 如图 3所 示, 该方法包括以下步骤:  FIG. 3 is a flowchart of a method for expanding a policy and a charging control rule according to an embodiment of the present invention. As shown in Figure 3, the method includes the following steps:
步骤 300: PCRF根据策略上下文信息, 生成包含扩展 7层解析过滤规则信 息的策略和计费控制规则, 通过 Gx接口发送到 PCEF。  Step 300: The PCRF generates a policy and a charging control rule including the extended layer 7 parsing filtering rule information, and sends the packet to the PCEF through the Gx interface according to the policy context information.
本步骤中, PCRF可以根据用户签约信息、 承载相关信息、 应用相关信息 和运营商自定义的策略等策略上下文信息中的一项或多项, 生成包含扩展 7层 解析过滤规则信息的策略和计费控制规则。  In this step, the PCRF may generate a policy and a plan including extended 7-layer parsing filter rule information according to one or more of the policy context information such as the user subscription information, the bearer-related information, the application-related information, and the operator-defined policy. Fee control rules.
现有的 PCRF可以根据需要从 SPR中获取用户的签约信息。 因此, 可以在 用户的签约信息中预先定义基于扩展 7层解析过滤规则信息的相关策略, 也可 以在 PCRF上预先配置基于扩展 7层解析过滤规则信息的相关策略, 包括是否 允许某种业务、 可以为用户分配的带宽以及计费方式等信息。  The existing PCRF can obtain the user's subscription information from the SPR as needed. Therefore, the related policy based on the extended 7-layer parsing filtering rule information may be pre-defined in the subscription information of the user, and the related policy based on the extended 7-layer parsing filtering rule information may be pre-configured on the PCRF, including whether to allow a certain service, Information such as the bandwidth allocated to the user and the billing method.
本步骤生成的策略和计费控制规则中的过滤规则可以包括 IP 5元组信息、 应用协议类型 ( APP-Protocol )和扩展 7层解析过滤规则信息。 The filtering rules in the policy and charging control rules generated in this step may include IP 5-tuple information, Application protocol type (APP-Protocol) and extended 7-layer parsing filter rule information.
其中,对于上行数据报文, IP 5元组信息中的源 IP地址为 IP-CAN会话建立 时为 UE分配的 IP地址, 对应的目的 IP地址可能根据 UE所使用业务确定的, 也 可能是不确定的, 源和目的端口号为 UE使用的业务对应协议的端号口, 协议 号为 UE使用的业务对应的协议号;对于下行数据报文, IP 5元组信息中的源 IP 地址可能是根据 UE所使用的业务确定的, 也可能是不确定的, 对应的目的 IP 地址为 IP-CAN会话建立时为 UE分配的 IP地址,源和目的端口号为 UE使用的业 务对应协议的端号口, 协议号为 UE使用的业务对应的协议号。 APP-Protocol 为 UE所使用业务对应的协议类型。 URL为预先设置的策略信息。 例如, UE所 使用的业务对应的协议类型为 http业务, 运营商针对 http业务在 PCRF预先设置 了对于教育网站 www edu访问进行免费的策略, 因此, 在用户使用 http业务 时, PCRF就会生成对于教育网站免费的策略和计费控制规则。  The source IP address in the IP 5-tuple information is an IP address allocated to the UE when the IP-CAN session is established, and the corresponding destination IP address may be determined according to the service used by the UE, or may not be The source and destination port numbers are the port number of the service corresponding protocol used by the UE, and the protocol number is the protocol number corresponding to the service used by the UE. For the downlink data packet, the source IP address in the IP 5-tuple information may be According to the service used by the UE, it may be indeterminate. The corresponding destination IP address is the IP address assigned to the UE when the IP-CAN session is established, and the source and destination port numbers are the end numbers of the service corresponding protocol used by the UE. Port, the protocol number is the protocol number corresponding to the service used by the UE. APP-Protocol is the protocol type corresponding to the service used by the UE. The URL is a preset policy information. For example, the protocol type corresponding to the service used by the UE is the http service, and the operator pre-sets a free policy for the education website www edu access in the PCRF for the http service. Therefore, when the user uses the http service, the PCRF generates a Educational website free policy and billing control rules.
PCRF根据策略上下文信息制定策略和计费控制规则后, 通过 Diameter CCA或 RAR消息发送给 PCEF执行。 相应的策略和计费控制可以包含应用业务 流的 QoS、 计费和 /或门控等控制策略。  After the PCRF formulates the policy and the charging control rule according to the policy context information, the PCRF sends the data to the PCEF through the Diameter CCA or RAR message. The corresponding policy and charging controls may include control policies such as QoS, charging, and/or gating of the application traffic.
例 ^口, 为了在 Charging-Rule-Definition属性值对 ( AVP, Attribute-Value -Pair ) 中包含扩展 7层解析过滤规则信息, 需要对现有过滤规则进行修改, 修 改示例 ^下:  For example, in order to include the extended 7-layer parsing filter rule information in the Charging-Rule-Definition attribute value pair (AVP, Attribute-Value - Pair), you need to modify the existing filter rule, and modify the example ^:
方法 1 : 直接在 Charging-Rule-Definition中增加 APP-Protocol AVP 和 URL AVP, 定义如下:  Method 1: Add APP-Protocol AVP and URL AVP directly to Charging-Rule-Definition, as defined below:
Charging-Rule-Definition ::= < AVP Header: 1003 >  Charging-Rule-Definition ::= < AVP Header: 1003 >
{ Charging-Rule-Name }  { Charging-Rule-Name }
[ Service-Identifier ]  [ Service-Identifier ]
[ Rating-Group ]  [ Rating-Group ]
* [ Flow-Description ]  * [ Flow-Description ]
[APP-Protocol]  [APP-Protocol]
[URL] [ Flow- Status ] [URL] [ Flow- Status ]
[ QoS-Information ]  [ QoS-Information ]
[ Reporting-Level ]  [ Reporting-Level ]
[ Online ]  [ Online ]
[ Offline ]  [ Offline ]
[ Metering-Method ]  [ Metering-Method ]
[ Precedence ]  [ Precedence ]
[ AF-Charging-Identifier ]  [ AF-Charging-Identifier ]
* [ Flows ]  * [ Flows ]
*[ AVP ]  *[ AVP ]
其中, APP-Protocol表示应用协议类型, 如 HTTP、 WAP2.0, RTSP和 FTP 等。 本发明实施例中可以不包含该信元。  Among them, APP-Protocol indicates the application protocol type, such as HTTP, WAP2.0, RTSP and FTP. The cell may not be included in the embodiment of the present invention.
URL表示扩展 7层解析过滤规则信息, 例如 http://www.huawei.com。 URL 中还可以使用通配符(例如 http://www.*.com ) 。  The URL indicates that the 7-layer parsing filtering rule information is extended, for example, http://www.huawei.com. Wildcards (such as http://www.*.com ) can also be used in URLs.
方法 2: 新增力口 Flow-Filter AVP替代原来的 Flow-Description AVP:  Method 2: Add a new flow-filter AVP instead of the original Flow-Description AVP:
Charging-Rule-Definition ::= < AVP Header: 1003 >  Charging-Rule-Definition ::= < AVP Header: 1003 >
{ Charging-Rule-Name }  { Charging-Rule-Name }
[ Service-Identifier ]  [ Service-Identifier ]
[ Rating-Group ]  [ Rating-Group ]
*[ Flow-Filter ]  *[ Flow-Filter ]
[ Flow- Status ]  [ Flow- Status ]
[ Authorized-QoS ]  [ Authorized-QoS ]
[ Reporting-Level ]  [ Reporting-Level ]
[ Online ]  [ Online ]
[ Offline ]  [ Offline ]
[ Metering-Method ]  [ Metering-Method ]
[ Precedence ]  [ Precedence ]
[ AF-Charging-Identifier ]  [ AF-Charging-Identifier ]
*[ Flows ] *[ AVP ] *[ Flows ] *[ AVP ]
其中, Flow-Filter AVP是对原有过滤规则进行了扩展, 不仅包含 IP 5元组 信息, 还包含应用协议类型和扩展 7层解析过滤规则信息, 定义如下:  The Flow-Filter AVP extends the original filtering rules, including not only the IP 5-tuple information, but also the application protocol type and the extended 7-layer parsing filtering rule information. The definition is as follows:
Flow-Filter ::= < AVP Header: xxxx >  Flow-Filter ::= < AVP Header: xxxx >
[Flow-Description]  [Flow-Description]
[APP-Protocol]  [APP-Protocol]
[URL]  [URL]
其中, Flow-Description与现有技术中的定义相同,主要包含 IP 5元组信息: 源 IP地址、 目的 IP地址、 源端口号、 目的端口号和协议号。 其中 IP地址可以有 掩码(例如掩码长度是 8、 16或 24等),端口号可以有一定范围(例如 551-559 )。 APP-Protocol表示应用协议类型, 如 HTTP、 WAP2.0, RTSP和 FTP等。 本发明 实施例中可以不包含该信元。 URL表示扩展 7层解析过滤规则信息, 例如 http:〃 www.huawei.com。 URL中还可以使用通配符 ( 1^J^。http:〃www.*.com ) 。 其它信元的定义与现有技术相同, 在此不再赘述。  The Flow-Description is the same as the definition in the prior art, and mainly includes IP 5-tuple information: source IP address, destination IP address, source port number, destination port number, and protocol number. The IP address can have a mask (for example, the mask length is 8, 16, or 24), and the port number can have a certain range (for example, 551-559). APP-Protocol indicates application protocol types such as HTTP, WAP2.0, RTSP, and FTP. The cell may not be included in the embodiment of the present invention. The URL indicates that the 7-layer parsing filter rule information is extended, for example, http:〃 www.huawei.com. Wildcards (1^J^.http:〃www.*.com) can also be used in URLs. The definitions of other cells are the same as those in the prior art, and are not described herein again.
以上所描述的只是以计费规则定义为例, 对本发明实施例中技术方案的 说明。 实际应用中, 可以利用上述方法在其它的策略和计费控制规则定义中 携带扩展 7层解析过滤规则信息。  The description above is only for the definition of the charging rule, and the description of the technical solution in the embodiment of the present invention. In practical applications, the above method can be used to carry extended 7-layer parsing filter rule information in other policy and charging control rule definitions.
当归属于该 PCRF的 UE处于漫游状态时, 本步骤 PCRF下发生成的策略和 计费控制规则,首先要发送到用户拜访地 PCRF,再由用户拜访地 PCRF下发至 用户拜访地 PCEF执行。  When the UE that belongs to the PCRF is in the roaming state, the policy and the charging control rule that are generated in the PCRF are first sent to the PCRF of the user, and then sent by the user to the PCF to the PCEF.
步骤 301 : PCEF根据下发的策略和计费控制规则,执行相应业务数据流的 QoS、 计费和 /或门控等策略控制。  Step 301: The PCEF performs policy control such as QoS, charging, and/or gating of the corresponding service data flow according to the delivered policy and charging control rule.
本步骤中, PCEF对于收到的数据报文进行检测, 首先使用过滤规则中的 IP 5元组进行规则匹配, 如果匹配成功, 则进一步进行应用协议类型的匹配, 如果应用协议类型匹配, 则继续进行 URL信息的匹配。 然后对于与过滤规则 匹配的数据报文, 执行相应的策略和计费控制, 具体执行相应的策略和计费 控制的过程与现有技术相同, 在此不再详述。 如果策略和计费控制规则定义 中没有携带应用协议类型, 则本步骤在 IP 5元组匹配成功后, 直接进行 URL信 息的匹配。 In this step, the PCEF detects the received data packet, and first uses the IP 5 tuple in the filtering rule to perform rule matching. If the matching succeeds, the application protocol type is further matched. If the application protocol type matches, the PCEF continues. Match the URL information. Then, for the data packet matching the filtering rule, perform corresponding policy and charging control, and execute the corresponding policy and charging. The process of control is the same as the prior art and will not be described in detail herein. If the application protocol type is not included in the policy and charging control rule definition, this step directly matches the URL information after the IP 5 tuple is successfully matched.
对于匹配过滤规则的数据报文, 如果控制策略信息是门控控制策略, 则 PCEF对数据报文进行过滤, 根据门控控制策略给出的指示 (Disable, Enable 等), 进行转发或者丟弃等门控控制; 如果控制策略信息是 QoS控制策略, 则 PCEF可以根据 QoS控制策略发起 QoS策略控制,进行 IP-CAN会话的更新操作, 例如 IP-CAN会话的 QoS参数更新, 或 IP-CAN承载的建立、 删除等操作; 如 果控制策略信息是计费控制策略, 则 PCEF可以根据计费控制策略进行计费控 制, 如按流量或时长计费, 在线或离线计费等计费控制。  For the data packet matching the filtering rule, if the control policy information is a gating control policy, the PCEF filters the data packet, and forwards or discards according to the indication (Disable, Enable, etc.) given by the gating control policy. Gating control; If the control policy information is a QoS control policy, the PCEF may initiate QoS policy control according to the QoS control policy, perform an update operation of the IP-CAN session, such as an QoS parameter update of the IP-CAN session, or an IP-CAN bearer If the control policy information is the charging control policy, the PCEF can perform charging control according to the charging control policy, such as charging according to traffic or duration, online or offline charging, and the like.
以下以扩展漫游用户的策略和计费控制规则为例, 对本发明实施例的技 术方案进行详细说明。 本例中, 运营商在 PCRF为该用户定义的计费策略是对 用户访问教育网站(www.*.edu )釆取免费的计费策略。  The technical solution of the embodiment of the present invention is described in detail below by taking the policy of the extended roaming user and the charging control rule as an example. In this example, the charging policy defined by the operator for the user in the PCRF is to obtain a free charging policy for the user to access the educational website (www.*.edu).
图 4为本发明实施例中针对漫游用户扩展计费规则的方法流程图。 如图 4 所示, 该方法包括以下步骤:  FIG. 4 is a flowchart of a method for extending a charging rule for a roaming user according to an embodiment of the present invention. As shown in Figure 4, the method includes the following steps:
步骤 400:用户在漫游状态下使用数据业务时,首先向 V-PCEF发起 IP-CAN 会话建立请求。  Step 400: When the user uses the data service in the roaming state, first initiate an IP-CAN session establishment request to the V-PCEF.
步骤 401〜步骤 402: V-PCEF向 V-PCRF发送 Diameter CCR消息, 以请求 策略和计费控制信息; V-PCRF向 H-PCRF发送策略和计费控制请求, 请求策 略和计费控制规则。  Steps 401 to 402: The V-PCEF sends a Diameter CCR message to the V-PCRF to request policy and charging control information. The V-PCRF sends a policy and charging control request to the H-PCRF, requesting policy and charging control rules.
步骤 403: 如果需要, H-PCRF可以根据到 SPR中获取用户签约信息。  Step 403: If necessary, the H-PCRF may obtain the user subscription information according to the SPR.
步骤 404: H-PCRF根据运营商定义的计费策略和 /或用户签约信息, 生成 包含扩展 7层解析过滤规则信息的计费规则, 并发送到 V-PCRF。  Step 404: The H-PCRF generates a charging rule including extended 7-layer parsing filtering rule information according to the charging policy defined by the operator and/or the user subscription information, and sends the charging rule to the V-PCRF.
本步骤中,运营商定义的计费策略是:对用户访问教育网站(www.*.edu ) 釆取免费的计费策略, H-PCRF根据运营商定义的计费策略和 /或用户签约信息 生成包含扩展 7层解析过滤规则信息的计费规则, 并发送给 V-PCRF。 计费规则中包含: In this step, the operator defines the charging policy: the user accesses the education website (www.*.edu) to obtain a free charging policy, and the H-PCRF defines the charging policy and/or the user subscription information according to the operator. A charging rule including extended 7-layer parsing filter rule information is generated and sent to the V-PCRF. The billing rules include:
过滤规则信息: IP 5元组信息: 源 IP地址为用户 IP; 目的 IP地址为任意; 源和目的端口为任意; 协议号为 6。 该协议号为传输控制协议(TCP, Transfer Control Protocol )对应的协议号。  Filtering rule information: IP 5-tuple information: The source IP address is the user IP; the destination IP address is arbitrary; the source and destination ports are arbitrary; the protocol number is 6. The protocol number is the protocol number corresponding to the Transmission Control Protocol (TCP).
应用协议类型为 http。  The application protocol type is http.
扩展 7层解析过滤规则信息 (URL )为 http:〃 www.*.edu。  The extended 7-layer parsing filter rule information (URL) is http:〃 www.*.edu.
因为是免费, 计费规则中还携带有 DISABLE— OFFLINE ( 0 ) 和 DISABLE ONLINE ( 0 )计费属性。  Because it is free, the billing rules also carry DISABLE_OFFLINE ( 0 ) and DISABLE ONLINE ( 0 ) billing attributes.
由于本发明实施例中扩展 7层解析过滤规则信息支持通配符, 教育网站对 应的 IP地址是不可知, 因此这里目的 IP地址为任意。协议对应的端口号可以根 据实际应用进行配置, 因此, 源和目的端口号也为任意。  Since the extended layer 7 parsing filter rule information supports the wildcard in the embodiment of the present invention, the IP address corresponding to the education website is unknown, so the destination IP address here is arbitrary. The port number corresponding to the protocol can be configured according to the actual application. Therefore, the source and destination port numbers are also arbitrary.
步骤 405: V-PCRF将计费规则发送到 V-PCEF。  Step 405: The V-PCRF sends the charging rule to the V-PCEF.
本步骤的计费规则中包含有过滤规则信息:  The charging rules in this step contain filtering rule information:
Flow-Description 中为 IP 5元组信息: 源 IP地址为用户 IP; 目的 IP地址为任 意; 源、 目的端口为任意; 协议号为 6 ( TCP ) 。  In the Flow-Description, the IP 5-tuple information is: The source IP address is the user IP; the destination IP address is any; the source and destination ports are arbitrary; and the protocol number is 6 (TCP).
应用协议( APP-Protocol )类型为 http。  The application protocol (APP-Protocol) type is http.
扩展 7层解析过滤规则信息 (URL )为 http:〃 www.*.edu。  The extended 7-layer parsing filter rule information (URL) is http:〃 www.*.edu.
因为是免费, 还携带有 DISABLE— OFFLINE ( 0 ) 和 DISABLE— ONLINE ( 0 )计费属性。  Because it is free, it also carries the DISABLE-OFFLINE ( 0 ) and DISABLE-ONLINE ( 0 ) billing properties.
步骤 406: V-PCEF安装计费规则, 并发送 IP-CAN会话建立应答到终端。 IP-CAN会话建立完成后, 即可进行业务数据流的传输, 并由 PCEF根据下 发的包含扩展 7层解析过滤规则信息的策略和计费控制规则, 对该业务数据流 进行策略和计费控制, 例如在本例中是对用户访问教育网站的数据报文执行 免费的计费策略。 根据包含扩展 7层解析过滤规则信息的计费规则, 进行计费 的过程与现有技术相同, 在此不再赘述。  Step 406: The V-PCEF installs the charging rule, and sends an IP-CAN session establishment response to the terminal. After the IP-CAN session is established, the service data stream can be transmitted, and the PCEF performs policy and charging on the service data flow according to the policy and charging control rule that is delivered by the extended layer 7 parsing filtering rule information. Control, for example, in this example, performs a free charging policy for data messages that the user accesses the educational website. The process of performing the charging is the same as that of the prior art according to the charging rule that includes the information of the extended layer 7 parsing filtering rule, and details are not described herein again.
以下以扩展门控策略控制规则为例, 对本发明实施例的技术方案进行详 细说明。 本例中, 运营商在 PCRF制定的策略是: 为了避免用户感染病毒, 禁 止用户访问国外一些不安全网站, 并预先配置了这些网站的域名信息。 The following takes the extended gating policy control rule as an example to describe the technical solution of the embodiment of the present invention. Detailed description. In this example, the strategy developed by the operator in the PCRF is: To prevent users from being infected with viruses, users are prohibited from accessing some unsafe websites abroad, and the domain name information of these websites is pre-configured.
图 5为本发明实施例中扩展门控策略控制规则的方法流程图。 如图 5所示, 该方法包括以下步骤:  FIG. 5 is a flowchart of a method for expanding a gate control policy control rule according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
步骤 500: 为用户设备建立 IP-CAN会话。  Step 500: Establish an IP-CAN session for the user equipment.
步骤 501 : 由于内部或外部事件触发, 例如用户在上网的同时, 还需要访 问其它一些带宽要求较大的业务时, UE需要建立新的 IP-CAN承载, 因此发送 IP-CAN承载建立请求到 PCEF。  Step 501: If an internal or external event is triggered, for example, when the user accesses the Internet and needs to access other services with larger bandwidth requirements, the UE needs to establish a new IP-CAN bearer, and therefore sends an IP-CAN bearer setup request to the PCEF. .
步骤 502: PCEF发送 Diameter CCR消息到 PCRF, 消息中携带有承载相关 信息, 例如承载标识等, 和用户信息等, 用于请求策略和计费控制信息。  Step 502: The PCEF sends a Diameter CCR message to the PCRF, where the message carries bearer related information, such as a bearer identifier, and user information, etc., for requesting policy and charging control information.
步骤 503:如果需要, PCRF可以到 SPR中根据用户信息获取用户签约信息。 步骤 504: PCRF根据运营商定义的门控策略、 承载相关信息和 /或用户签 约信息, 生成与承载标识对应的包含扩展 7层解析过滤规则信息的门控策略控 制规则, 并通过 Gx接口发送到 PCEF。  Step 503: If necessary, the PCRF may obtain the user subscription information according to the user information in the SPR. Step 504: The PCRF generates a gating policy control rule that includes the extended layer 7 parsing filtering rule information corresponding to the bearer identifier according to the operator-defined gating policy, the bearer-related information, and/or the user subscription information, and sends the Gating Policy to the GX interface through the Gx interface. PCEF.
本例中, 运营商在 PCRF定义的门控策略是: 禁止用户访问国外一些不安 全网站 (www.unsafe*.com ) , PCRF根据运营商定义的门控策略、 承载相关 信息和 /或用户签约信息生成门控策略控制规则, 并发送到 PCEF执行。  In this example, the operator's gating policy defined in the PCRF is: prohibiting users from accessing some foreign unsafe websites (www.unsafe*.com), and the PCRF is contracted according to the operator-defined gating policy, bearer related information, and/or user subscription. The information generates a gating policy control rule and sends it to the PCEF for execution.
该门控策略控制规则中包含有过滤规则信息:  The gating policy control rule contains filtering rule information:
Flow-Description: IP 5元组信息: 源 IP地址为用户 IP; 目的 IP地址为任意; 源、 目的端口为任意; 协议号为 6 ( TCP ) ;  Flow-Description: IP 5-tuple information: The source IP address is the user IP; the destination IP address is arbitrary; the source and destination ports are arbitrary; the protocol number is 6 ( TCP);
应用协议( APP-Protocol )类型为 WAP;  The application protocol (APP-Protocol) type is WAP;
扩展 7层解析过滤规则信息 (URL )为 http:〃 www.unsafe*.com。  The extended 7-layer parsing filter rule information (URL) is http:〃 www.unsafe*.com.
Flow-Status 定义了对上下行方向都进行门控。  Flow-Status defines gating both upstream and downstream.
步骤 505: PCEF安装门控策略控制规则, 并发送 IP-CAN承载建立应答到 用户设备。  Step 505: The PCEF installs the gating policy control rule, and sends an IP-CAN bearer setup response to the user equipment.
承载建立成功后, 对于用户的业务数据流, PCEF进行过滤规则匹配, 如 果匹配该门控策略控制规则中的过滤规则, 则将用户的业务数据流报文丟弃, 否则转发用户的业务数据流报文。 After the bearer is successfully established, the PCEF performs filtering rule matching for the user's service data flow, such as If the filtering rule in the gating policy control rule is matched, the service data flow packet of the user is discarded, otherwise the service data flow packet of the user is forwarded.
图 6为本发明实施例中的扩展策略和计费控制规则的系统结构图。 如图 6 所示, 该系统包括 PCRF61和 PCEF62。  FIG. 6 is a system structural diagram of an extended policy and a charging control rule according to an embodiment of the present invention. As shown in Figure 6, the system includes PCRF61 and PCEF62.
其中, PCRF61 , 用于生成包含扩展 7层解析过滤规则信息的策略和计费 控制规则, 发送至 PCEF62; 由 PCEF62执行从 PCRF61接收到的包含扩展 7层解 析过滤规则信息的策略和计费控制规则。  The PCRF61 is configured to generate a policy and a charging control rule including extended 7-layer parsing filtering rule information, and send the packet to the PCEF 62. The PCEF62 performs a policy and a charging control rule that includes the extended 7-layer parsing filtering rule information received from the PCRF 61. .
具体来说, PCRF61包括规则生成模块 611 , 用于生成包含扩展 7层解析过 滤规则信息的策略和计费控制规则;和发送模块 612,用于将规则生成模块 611 生成的包含扩展 7层解析过滤规则信息的策略和计费控制规则发送到 PCEF62。  Specifically, the PCRF 61 includes a rule generation module 611, configured to generate a policy and a charging control rule including extended 7-layer parsing filter rule information, and a sending module 612, configured to include the extended 7-layer parsing filter generated by the rule generating module 611. Policy and charging control rules for rule information are sent to PCEF62.
该 PCRF61还包括策略上下文信息获取模块 613 , 用于从 SPR、 PCEF62或 AF获取策略上下文信息, 并保存到存储模块 614; 及存储模块 614, 用于存储 策略上下文信息获取模块获取的策略上下文信息; 相应地, 规则生成模块 611 根据存储模块 614保存的策略上下文信息, 生成包含扩展 7层解析过滤规则信 息的策略和计费控制规则。  The PCRF 61 further includes a policy context information obtaining module 613, configured to acquire policy context information from the SPR, the PCEF 62, or the AF, and save the information to the storage module 614. The storage module 614 is configured to store the policy context information acquired by the policy context information acquiring module. Correspondingly, the rule generation module 611 generates a policy and a charging control rule including extended 7-layer parsing filter rule information according to the policy context information saved by the storage module 614.
发送模块 612还可以进一步将包含扩展 7层解析过滤规则信息的策略和计 费控制规则发送至用户拜访地 PCEF执行。  The sending module 612 can further send the policy and the fee control rule including the extended layer 7 parsing filter rule information to the PCEF of the user visit.
PCRF61为用户归属地 PCRF , 且 PCEF62为用户拜访地 PCEF时, 该系统可 以进一步包括用户拜访地 PCRF ,  When the PCRF 61 is the user's home PCRF and the PCEF 62 is the user visited PCEF, the system may further include the user visited PCRF.
PCRF61进一步将包含扩展 7层解析过滤规则信息的策略和计费控制规则 发送至用户拜访地 PCRF; 用户拜访地 PCRF, 接收用户归属地 PCRF发送的包 含扩展 7层解析过滤规则信息的策略和计费控制规则; 并发送至用户拜访地 PCEF。  The PCRF 61 further sends the policy and charging control rule including the extended 7-layer parsing filtering rule information to the user visited PCRF; the user visited the PCRF, and receives the policy and charging including the extended 7-layer parsing filtering rule information sent by the user home PCRF. Control rules; and send to the PCEF where the user visits.
由以上所述可以看出, 本发明实施例所提供的技术方案, 由 PCRF61生成 包含扩展 7层解析过滤规则信息的策略和计费控制规则, 然后发送到 PCEF62 进行执行, 从而使得当用户处于漫游状态时, 拜访地 PCEF可以获取归属地 PCRF的包含扩展 7层解析过滤规则信息的策略和计费控制规则, 完成准确全 面的策略和计费控制。 It can be seen from the foregoing that, in the technical solution provided by the embodiment of the present invention, the PCRF61 generates a policy and a charging control rule that includes extended layer 7 parsing filtering rule information, and then sends the packet to the PCEF 62 for execution, so that when the user is roaming In the state, the visiting PCEF can obtain the attribution The PCRF includes policies and charging control rules that extend the 7-layer parsing filter rule information to complete accurate and comprehensive policy and charging control.
同时,由于本发明实施例提供的技术方案可以通过 Gx接口实现包含扩展 7 层解析过滤规则信息的策略和计费控制规则的传输, 因此, 不需要在 PCEF、 PCRF及 SPR同时保存包含扩展 7层解析过滤规则信息的策略和计费控制规则 信息, 从而节省了网络资源。 另外, 由于不需要在 PCEF也保存包含扩展 7层解 析过滤规则信息的策略和计费控制规则信息, 在用户的个性化设置修改时, 只需由 PCRF根据用户修改后的个性化设置实时生成包含扩展 7层解析过滤规 则的策略和计费控制规则, 而不需要分别修改配置在各个网络设备的策略和 计费控制规则, 从而方便了管理。  At the same time, the technical solution provided by the embodiment of the present invention can implement the transmission of the policy including the extended 7-layer parsing filtering rule information and the charging control rule by using the Gx interface. Therefore, the PCEF, the PCRF, and the SPR need not be saved simultaneously. The policy of the filtering rule information and the charging control rule information are parsed, thereby saving network resources. In addition, since it is not necessary to save the policy and charging control rule information including the extended layer 7 parsing filter rule information in the PCEF, when the user's personalized setting is modified, the PCRF only needs to generate the real-time included according to the user's modified personalized setting. The policy and charging control rules of the 7-layer parsing filtering rule are extended without separately modifying the policy and charging control rules configured on each network device, thereby facilitating management.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存 己忆体 ( Random Access Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范 围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above description is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要求 书 Claim
1、 一种扩展策略和计费控制规则的方法, 其特征在于, 该方法包括: 策略控制和计费规则功能设备 PCRF生成包含扩展 7层解析过滤规则信息的 策略和计费控制规则, 并发送到策略和计费执行功能设备 PCEF执行。 A method for extending a policy and a charging control rule, the method comprising: the policy control and charging rule function device PCRF generating a policy and a charging control rule including extended layer 7 parsing filtering rule information, and sending The policy and billing execution function device PCEF is executed.
2、 如权利要求 1所述的方法, 其特征在于, 所述包含扩展 7层解析过滤规 则信息的策略和计费控制规则由 PCRF根据策略上下文信息生成。  2. The method of claim 1, wherein the policy and charging control rules including extended layer 7 parsing filter rule information are generated by the PCRF based on policy context information.
3、 如权利要求 2所述的方法, 其特征在于, 所述策略上下文信息包括: 从 签约数据库 SPR获取的用户签约信息、 从 PCEF获取的承载相关信息、 从应用 层功能设备获取的应用相关信息及预先设置的策略中的一项或多项。  The method according to claim 2, wherein the policy context information comprises: user subscription information acquired from the subscription database SPR, bearer related information acquired from the PCEF, and application related information acquired from the application layer function device. And one or more of the pre-set policies.
4、 如权利要求 1所述的方法, 其特征在于, 所述扩展 7层解析过滤规则信 息为统一资源定位符 URL。  The method according to claim 1, wherein the extended layer 7 parsing filter rule information is a uniform resource locator URL.
5、 如权利要求 1所述的方法, 其特征在于, 所述 PCRF生成包含扩展 7层 解析过滤规则信息的策略和计费控制规则包括:  The method according to claim 1, wherein the PCRF generates a policy and a charging control rule that includes extended layer 7 parsing filter rule information, including:
PCRF 在所述策略和计费控制规则的策略和计费控制规则定义中携带流过 滤规则 Flow-Filter; 所述 Flow-Filter包含流描述 Flow-Description和扩展 7层解 析过滤规则信息, 及对应的策略和计费控制;  The PCRF carries a flow filtering rule Flow-Filter in the policy and charging control rule definition of the policy and the charging control rule; the Flow-Filter includes a flow description Flow-Description and an extended 7-layer analytical filtering rule information, and corresponding Policy and billing control;
或者 PCRF 在所述策略和计费控制规则的策略和计费控制规则定义中携带 流描述 Flow-Description和扩展 7层解析过滤规则信息, 及对应的策略和计费控 制。  Or the PCRF carries the flow description Flow-Description and the extended layer 7 parsing filter rule information, and the corresponding policy and charging control in the policy and charging control rule definition of the policy and charging control rule.
6、 如权利要求 5所述的方法, 其特征在于, 所述 PCRF在所述策略和计费 控制规则定义中进一步携带应用协议类型。  The method according to claim 5, wherein the PCRF further carries an application protocol type in the policy and charging control rule definition.
7、 如权利要求 6所述的方法, 其特征在于, PCEF执行包含扩展 7层解析 过滤规则的策略和计费控制规则的过程包括:  7. The method according to claim 6, wherein the process of the PCEF executing the policy and the charging control rule including the extended layer 7 parsing filtering rule comprises:
PCEF接收数据报文, 当所述数据报文匹配所述流描述的内容, 且所述数据 报文匹配所述应用协议类型及扩展 7层解析过滤规则时, 执行所述策略和计费 控制。 The PCEF receives the data packet, and when the data packet matches the content of the flow description, and the data packet matches the application protocol type and the extended layer 7 parsing filtering rule, the policy and the charging are performed. Control.
8、如权利要求 1所述的方法,其特征在于,所述 PCRF为用户归属地 PCRF, 且所述 PCEF为用户拜访地 PCEF时,所述 PCRF将包含扩展 7层解析过滤规则 信息的策略和计费控制规则发送到 PCEF包括:  The method according to claim 1, wherein when the PCRF is a user-local PCRF, and the PCEF is a PCEF visited by a user, the PCRF includes a policy for extending 7 layers of parsing filter rule information. The charging control rules sent to the PCEF include:
用户归属地 PCRF将包含扩展 7层解析过滤规则信息的策略和计费控制规则 发送到用户拜访地 PCRF, 由用户拜访地 PCRF将接收到的包含扩展 7层解析过 滤规则信息的策略和计费控制规则发送到用户拜访地 PCEF执行。  The user-local PCRF sends the policy and charging control rule including the extended layer 7 parsing filter rule information to the user visited PCRF, and the policy and charging control including the extended 7-layer parsing filtering rule information received by the user visited by the PCRF The rules are sent to the PCEF where the user visits.
9、 一种扩展策略和计费控制规则的系统, 其特征在于, 该系统包括策略控 制和计费规则功能设备 PCRF ( 61 )及策略和计费执行功能设备 PCEF ( 62 ), 所述 PCRF ( 61 ), 用于生成包含扩展 7层解析过滤规则信息的策略和计费 控制规则, 并发送;  A system for extending a policy and a charging control rule, characterized in that the system comprises a policy control and charging rule function device PCRF (61) and a policy and charging execution function device PCEF (62), the PCRF ( 61), configured to generate a policy and charging control rule that includes extended layer 7 parsing filter rule information, and send the same;
所述 PCEF ( 62 ), 用于执行从所述 PCRF ( 61 )接收到的包含扩展 7层解析 过滤规则信息的策略和计费控制规则。  The PCEF (62) is configured to execute a policy and a charging control rule that is received from the PCRF (61) and includes extended layer 7 parsing filter rule information.
10、 如权利要求 9所述的系统, 其特征在于, 所述 PCRF ( 61 )为用户归属 地 PCRF, 所述 PCEF ( 62 ) 为用户拜访地 PCEF;  The system according to claim 9, wherein the PCRF (61) is a user-localized PCRF, and the PCEF (62) is a user visited PCEF;
该系统进一步包括用户拜访地 PCRF ,  The system further includes a user visited PCRF,
所述用户归属地 PCRF, 用于将包含扩展 7层解析过滤规则信息的策略和计 费控制规则发送至用户拜访地 PCRF;  The user attribution PCRF is used to send the policy and the charging control rule including the extended layer 7 parsing filter rule information to the user visited PCRF;
所述用户拜访地 PCRF, 用于接收用户归属地 PCRF发送的包含扩展 7层解 析过滤规则信息的策略和计费控制规则; 并发送至用户拜访地 PCEF。  The user visits the PCRF, and is configured to receive a policy and a charging control rule that is sent by the user's home PCRF and includes the extended layer 7 filtering and filtering rule information; and sends the policy to the user visited PCEF.
11、一种策略控制和计费规则功能设备 PCRF,其特征在于,所述 PCRF( 61 ) 包括规则生成模块(611 )和发送模块(612 ),  A policy control and charging rule function device PCRF, characterized in that the PCRF (61) comprises a rule generation module (611) and a transmission module (612),
所述规则生成模块( 611 ),用于生成包含扩展 7层解析过滤规则信息的策略 和计费控制规则;  The rule generation module (611) is configured to generate a policy and a charging control rule that include extended layer 7 parsing filter rule information;
所述发送模块(612 ), 用于将所述规则生成模块(611 )生成的包含扩展 7 层解析过滤规则信息的策略和计费控制规则发送到策略和计费执行功能设备 PCEF ( 62 )。 The sending module (612) is configured to send, by the rule generating module (611), a policy and a charging control rule that includes extended 7-layer parsing filtering rule information to a policy and charging execution function device. PCEF ( 62 ).
12、 如权利要求 11所述的 PCRF, 其特征在于, 所述 PCRF (61 )进一步包 括策略上下文信息获取模块(613)和存储模块(614),  The PCRF according to claim 11, wherein the PCRF (61) further includes a policy context information obtaining module (613) and a storage module (614),
所述策略上下文信息获取模块(613), 用于从 PCEF (62)、 用户签约数据 库 SPR或应用层功能设备获取策略上下文信息, 保存到存储模块(614);  The policy context information obtaining module (613) is configured to obtain policy context information from the PCEF (62), the user subscription database SPR or the application layer function device, and save the information to the storage module (614);
所述存储模块(614), 用于存储所述策略上下文信息获取模块(613)获取 的策略上下文信息;  The storage module (614) is configured to store policy context information acquired by the policy context information obtaining module (613);
所述规则生成模块 ( 611 )进一步根据所述存储模块 ( 614 )保存的策略上下 文信息, 生成包含扩展 7层解析过滤规则信息的策略和计费控制规则。  The rule generation module (611) further generates a policy and a charging control rule including extended layer 7 parsing filter rule information according to the policy context information saved by the storage module (614).
13、 如权利要求 11所述的 PCRF, 其特征在于, 所述发送模块(612)进一 步将包含扩展 7层解析过滤规则信息的策略和计费控制规则发送至用户拜访地 PCEF执行。  The PCRF according to claim 11, wherein the sending module (612) further sends the policy and the charging control rule including the extended layer 7 parsing filtering rule information to the PCEF of the user visited.
PCT/CN2008/071961 2007-08-17 2008-08-12 Method, system and device of expanding policy and charging control rule WO2009024056A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007101452608A CN101369917B (en) 2007-08-17 2007-08-17 Method, system and apparatus for expanding policy and charging control rules
CN200710145260.8 2007-08-17

Publications (1)

Publication Number Publication Date
WO2009024056A1 true WO2009024056A1 (en) 2009-02-26

Family

ID=40377845

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/071961 WO2009024056A1 (en) 2007-08-17 2008-08-12 Method, system and device of expanding policy and charging control rule

Country Status (2)

Country Link
CN (1) CN101369917B (en)
WO (1) WO2009024056A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458388A (en) * 2012-05-31 2013-12-18 中兴通讯股份有限公司 Method, device and system for content implantation
WO2017133293A1 (en) * 2016-02-01 2017-08-10 Telefonaktiebolaget Lm Ericsson (Publ) Method and network entity for control of charging for value added service (vas)
CN107483522A (en) * 2016-06-08 2017-12-15 华为技术有限公司 The method and apparatus of Operational Visit

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131172B (en) * 2010-01-18 2015-11-25 中兴通讯股份有限公司 Method for processing business and system
CN102137368B (en) * 2010-01-26 2015-01-28 中兴通讯股份有限公司 Enhanced policy and charge control method and system and PCC (Policy Charge Control) system
CN102215469B (en) * 2010-04-09 2015-01-28 中兴通讯股份有限公司 Policy and charging control (PCC) method and system based on network load
CN102137450B (en) * 2010-11-17 2014-02-19 华为技术有限公司 Strategy control method and device as well as gateway
CN102625272B (en) * 2011-01-31 2017-03-29 中兴通讯股份有限公司 A kind of consumption monitoring method and system for supporting current detection functionality
CN102711086B (en) * 2011-03-28 2017-08-01 中兴通讯股份有限公司 The processing method and strategy and charging regulation function entity of sponsored data cube computation
CN102497379B (en) * 2011-12-19 2015-01-21 华为数字技术(成都)有限公司 Network access method, system and equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747392A (en) * 2004-09-07 2006-03-15 华为技术有限公司 Accounting method and device for communication system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747392A (en) * 2004-09-07 2006-03-15 华为技术有限公司 Accounting method and device for communication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Technical Specification Group Core Network and Terminals; Policy and Charging Control over Gx reference point (Release 7", 3GPP TS 29.212 V7.1.0 3RD GENERATION PARTNERSHIP PROJECT;, 30 June 2007 (2007-06-30), XP055353227 *
"Technical Specification Group Services and System Aspects; Policy and charging control architecture (Release 7", 3GPP TS 23.203 V7.3.0 3RD GENERATION PARTNERSHIP PROJECT;, 30 June 2007 (2007-06-30), XP055353225 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458388A (en) * 2012-05-31 2013-12-18 中兴通讯股份有限公司 Method, device and system for content implantation
WO2017133293A1 (en) * 2016-02-01 2017-08-10 Telefonaktiebolaget Lm Ericsson (Publ) Method and network entity for control of charging for value added service (vas)
CN107483522A (en) * 2016-06-08 2017-12-15 华为技术有限公司 The method and apparatus of Operational Visit
CN107483522B (en) * 2016-06-08 2020-09-08 华为技术有限公司 Service access method and device

Also Published As

Publication number Publication date
CN101369917B (en) 2011-04-13
CN101369917A (en) 2009-02-18

Similar Documents

Publication Publication Date Title
US11083033B2 (en) Small data usage enablement in 3GPP networks
WO2009024056A1 (en) Method, system and device of expanding policy and charging control rule
JP5481563B2 (en) Service event trigger
JP5189108B2 (en) Service processing method and service processing system, and policy control and billing rule function
US9603058B2 (en) Methods, systems, and computer readable media for triggering a service node to initiate a session with a policy and charging rules function
EP2339781B1 (en) Method and system for realizing the policy and charging control in the multiple packet data networks (pdn) scene
EP2106070A1 (en) Method, system and device for making security control
WO2007143940A1 (en) A policy and charging control method, system and equipment when the user is roaming
WO2009018759A1 (en) Control device, execution device, method and system of generating filter rule
WO2009046678A1 (en) Method and device for obtaining the capability of policy and charging enforcement function
WO2011063688A1 (en) Method and system for selecting policy and charging rules function entity
WO2005109758A1 (en) A processing method for perfect charging on line based on the service data stream
WO2009021462A1 (en) Method and device for ip-can session establishment
KR101884048B1 (en) Methods and nodes for managing network resources as well as a corresponding system and computer program
WO2011029289A1 (en) Method and system for transmitting a bearer control mode in roaming scenarios
WO2011079773A1 (en) Method, device and system for controlling user session policy
WO2006015548A1 (en) A processing method based on charging trigger event and re-authorisation event of packet data flow
WO2014172858A1 (en) Method for charging for application, and charging device and system
WO2013091410A1 (en) Network access method, system and device
WO2018076974A1 (en) Policy control method, apparatus and system
WO2009056046A1 (en) A method for session termination
WO2012083779A1 (en) Policy control method and device
WO2009089776A1 (en) Method and apparatus for the policy and charging rule function information maintenance
WO2011088702A1 (en) Method and system for controlling resources in full-service convergence network
WO2009024049A1 (en) A method, communication system and corresponding device for controlling peer-to-peer service

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

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

Country of ref document: EP

Kind code of ref document: A1