WO2016062061A1 - Method and device for synchronizing policy rule between network elements - Google Patents

Method and device for synchronizing policy rule between network elements Download PDF

Info

Publication number
WO2016062061A1
WO2016062061A1 PCT/CN2015/078392 CN2015078392W WO2016062061A1 WO 2016062061 A1 WO2016062061 A1 WO 2016062061A1 CN 2015078392 W CN2015078392 W CN 2015078392W WO 2016062061 A1 WO2016062061 A1 WO 2016062061A1
Authority
WO
WIPO (PCT)
Prior art keywords
cca
pcrf
session
policy
pcc
Prior art date
Application number
PCT/CN2015/078392
Other languages
French (fr)
Chinese (zh)
Inventor
姜志诚
陈刚
王长春
赵莉
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016062061A1 publication Critical patent/WO2016062061A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management

Definitions

  • the embodiments of the present invention relate to the field of communications, and in particular, to a method and a device for synchronizing policy rules between network elements.
  • PCC Policy and Charging Control
  • PCEF Policy and Charging Rules Function
  • BBERF Bearer Binding and Event Reporting Function
  • TDF Traffic Detection Function
  • AF Application Function
  • SPR User Profile Repository
  • OFCS Offline Charging System
  • OCS Online Charging System
  • the PCRF is responsible for the formulation of the policy and accounting rules.
  • the PCC policy and the accounting rules are sent to the PCEF through the Gx interface.
  • the PCEF installs and executes the PCC policy, and reports related events. Fee information.
  • the PCRF sends the QoS (Quality of Service) rules to the BBERF through the Gxx interface.
  • the BBERF does not exchange accounting information with the accounting system. It is only responsible for reporting bearer bindings and related events.
  • the PCRF sends the service information to be monitored to the TDF through the Sd interface.
  • the TDF performs service monitoring and reports it to the PCRF.
  • the AF provides service information to the PCRF through the Rx interface.
  • the SPR saves the service information that the user subscribes to.
  • the PCRF can query the SPR for the service information subscribed by the user through the Sp interface.
  • the OCS reports policy counter status information related to user consumption to the PCRF through the Sy interface.
  • the PCEF sends the online charging information to the OCS through the Gy interface for online charging statistics, and sends the offline charging information to the OFCS through the Gz interface.
  • the TDF sends the service-based online charging information to the OCS through the Gyn interface, and sends the service-based offline charging information to the OFCS through the Gz n interface.
  • IP-Connected Access Network (IP-CAN) session between the PCEF and the PCRF maintains a connection state with each other.
  • the PCEF sends a setup, update, and release IP-CAN session to the PCRF through a CCR (Credit-Control-Request) message.
  • CCR Clear-Control-Request
  • the PCRF formulates a PCC policy based on the service-related information provided by the AF, the bearer-related information reported by the PCEF, and the service information subscribed by the user in the SPR, and re-authorizes the request (RAR, Re-Auth-Request) or credit control response (CCA, Credit).
  • RAR Re-Auth-Request
  • CCA credit control response
  • the -Control-Answer message is sent to the PCEF, and the policy information includes QoS and accounting information.
  • the PCRF can also confirm whether the PCEF successfully updates (deletes) the policy information by using a Re-Auth-Answer response (RAA).
  • RAA Re-Auth-Answer response
  • the PCRF may not be aware of the packet loss of these CCAs.
  • the PCRF cannot send the policy information carried in the previous CCA to the PCEF again. For example, a policy deletion indication sent by the last CCA, the PCRF is After the policy is deleted in the CCA response, the policy does not exist. After the PCRF sends the policy, the policy will not be deleted again.
  • the principle that the Gx interface policy is delivered is the incremental update mode.
  • the PCEF does not receive the indication of the policy deletion, the PCEF does not actively update the policy.
  • Certain policies under certain IP-CAN sessions have been deleted on the PCRF, are still in the execution state on the PCEF, and may not be updated until the IP-CAN session goes offline. This will cause inconsistency in PCC rule data between network elements.
  • the PCC rule data is generally used to provide QoS guarantees or restrictions for the user to use certain services.
  • the policies formulated by the PCRF cannot be executed faithfully, which may affect the normal use of certain service functions by the user.
  • the embodiments of the present invention provide a method and a device for synchronizing policy rules between network elements, which can ensure that the control policies of the PCRF and the neighboring network elements are consistent, thereby ensuring synchronization of policy information between network elements.
  • the present invention discloses a method for synchronizing policy rules between network elements, including:
  • the DIAMETER protocol stack has a basic function. After the request is sent, if the response message is not received, the request message is retransmitted, and a "T" is set in the DIAMETER message header. Marker bit.
  • the policy control and charging rule function entity PCRF receives the retransmitted credit control request CCR message and formulates the policy and charging control PCC policy, all the PCC policy information that is formulated is added to the credit control response CCA. And indicating, in the CCA, that all the PCC policy information in the current IP connection access network IPCAN session is delivered;
  • the PCRF sends the CCA to the neighboring network element.
  • the method further includes:
  • the PCRF indicates, in the CCA, that all PCC policy information that is delivered in the current IP-CAN session is:
  • the PCRF configures the value of the new field in the CCA as a set value to indicate that all PCC policy information in the current IP-CAN session is delivered this time.
  • the neighboring network element includes at least a policy and charging execution function entity PCEF, and/or a bearer binding and event reporting function entity BBERF, and/or a traffic detection function entity TDF.
  • PCEF policy and charging execution function entity
  • BBERF bearer binding and event reporting function entity
  • TDF traffic detection function entity
  • the device of the present invention further discloses a device for synchronizing policy rules between network elements, including:
  • the message generating unit is configured to: after receiving the retransmitted CCR message and formulating a PCC policy, add all the PCC policy information that is formulated to the CCA, and indicate in the CCA that the current IP-CAN session is delivered. All PCC policy information;
  • a sending unit configured to send the CCA to the neighboring network element.
  • the message generating unit is configured to configure a new field in the CCA as a set value to indicate that all PCC policy information in the current IP-CAN session is delivered this time.
  • the above device is placed on the PCRF.
  • the device of the present invention further discloses a device for synchronizing policy rules between network elements, including:
  • the parsing judging unit is configured to: when the CCA is received, parse the indication in the CCA, and determine whether the PCRF sends the PCC policy information in the current IP-CAN session in the CCA;
  • a policy update unit configured to: when the parsing judging unit determines that all the PCC policy information in the current IP-CAN session is sent by the PCRF in the CCA, update all policies in the current IP-CAN session to the Describe all PCC strategies in CCA.
  • the parsing judging unit is configured to parse the value of the newly added field in the CCA, and when the value of the newly added field is a set value, determine that the PCRF is in the CCA. All PCC policy information within the current IP-CAN session is sent.
  • the above device is placed on the PCEF, and/or BBERF, and/or TDF.
  • the state of the policy is restored as soon as possible in the subsequent message interaction process, in particular, some are already in the PCRF network.
  • the policy is deleted on the element, thus ensuring the synchronization of the policy information between the network elements.
  • FIG. 1 is a schematic diagram of a conventional PCC logical architecture
  • FIG. 2 is a schematic flowchart of a synchronization rule between a PCRF and a PCEF according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a synchronization rule between a PCRF and a BBERF according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a synchronization rule between a PCRF and a TDF according to an embodiment of the present invention.
  • the embodiment of the present invention proposes that, based on the new policy confirmation mechanism, the PCRF can carry all the policies in an IP-CAN session to the CCA message and send it to the CCA message as soon as possible.
  • Adjacent NEs such as PCEF, carry a new field to indicate that the full rule under the current session is delivered this time.
  • the embodiment provides a method for synchronizing policy rules between network elements, including:
  • the PCRF After the PCRF receives the retransmitted CCR message and formulates the PCC policy, the PCRF adds all the PCC policy information that is formulated to the CCA, and indicates in the CCA that all PCC policies in the current IP-CAN session are delivered this time. information;
  • the PCRF sends the CCA to the neighboring network element.
  • the adjacent network elements involved in the present invention may include FCEF, and/or BBERF, and/or TDF.
  • the PCRF may add a field to the existing CCA, and configure the new field as a set value to indicate that all PCC policy information in the current IP-CAN session is delivered this time.
  • the newly added field may be defined as an Attribute Value Pairs (AVP), and the value of the flag AVP indicates that all PCC policy information in the current IP-CAN session is delivered this time.
  • AVP Attribute Value Pairs
  • a certain value of the tag AVP may be preset to indicate that all PCC policy information in the current IP-CAN session is delivered this time.
  • the foregoing method may further include the operation of the neighboring network element, that is, when the neighboring network element receives the CCA, it may be determined according to the indication in the CCA that all the PCCs in the current IP-CAN session are sent by the PCRF in the CCA.
  • the policy information updates all policies in the current IP-CAN session to all PCC policies in the CCA. It should be noted that the policy that is installed locally on the neighboring NE, but not included in the PCRF release, should be treated as a policy removal.
  • FIG. Figure 2 shows the implementation process of the synchronization policy rule between the PCRF and the neighboring network element PCEF, including:
  • Step 201 The PCEF sends an IP-CAN session establishment indication message to the PCRF, where the user identifier is carried, the PCRF obtains the subscription information of the user from the SPR, and performs a rule decision, and sends a session establishment response message to the PCEF, and the PCRF and the PCEF complete the creation of the IP- CAN session and save IP-CAN session information and user information on the PCRF.
  • Step 202 The PCEF triggers a CCR request policy update based on a bearer event change or the like.
  • Step 203 The PCRF receives the CCR request, determines that it is a non-retransmission CCR message, and formulates a PCC policy (update or delete) based on the local information, the service related information provided by the AF, the bearer information reported by the PCEF, and the service information subscribed by the user in the SPR. );
  • Step 204 The PCRF encodes the CCA response, and only carries the changed policy, and may carry the AVP indication as an incremental rule, or may not include the indication AVP, and the default is to issue an incremental rule.
  • Step 205 The PCRF replies with a CCA response.
  • Step 206 The PCEF does not receive the CCA response due to the network or the like, retransmits the CCR request, and marks the DIAMETER header "T".
  • Step 207 The PCEF sends a retransmission CCR request.
  • Step 208 The PCRF parses the CCR message header and determines to retransmit the request.
  • Step 209 The PCRF formulates a PCC policy (update or delete) based on local information, service related information provided by the AF, bearer information reported by the PCEF, and service information subscribed by the user in the SPR.
  • a PCC policy update or delete
  • Step 210 The PCRF encodes the CCA response, and all the policies in the current session are sent in the CCA, and the flag AVP indicates that the full-rule rule is delivered, that is, all the PCCs in the current IP-CAN session are indicated to be delivered this time. Strategy information.
  • Step 211 The PCRF replies with a CCA response.
  • Step 212 After receiving the CCA, the PCEF detects that the marked AVP indication is a full-quantity rule, that is, indicates that all the PCC policy information in the current IPCAN session is delivered, and all policies in the current session are updated, and the policy is not delivered in the CCA. Should be done delete processing.
  • the marked AVP indication is a full-quantity rule, that is, indicates that all the PCC policy information in the current IPCAN session is delivered, and all policies in the current session are updated, and the policy is not delivered in the CCA. Should be done delete processing.
  • FIG. 3 shows a specific implementation process of a synchronization policy rule between a PCRF and a neighboring network element BBERF.
  • the PCRF receives the policy update request of the BBERF, it checks the non-retransmitted CCR message, and after the QOS rule is formulated, the policy is delivered in the manner of the incremental delivery.
  • the BBERF does not receive the CCA response, the CCR request is retransmitted.
  • the PCRF receives the retransmission CCR of BBERF
  • the full policy is issued and the AVP instruction is carried.
  • FIG. 4 shows a specific implementation process of a synchronization policy rule between a PCRF and a neighboring network element TDF.
  • the PCRF receives the policy update request of the TDF, it checks the non-retransmitted CCR message, and after the ADC rule is formulated, the policy is delivered in the manner of the incremental delivery.
  • the TDF does not receive a CCA response, the CCR request is retransmitted.
  • the PCRF receives the retransmission CCR of the TDF, after the ADC rule is formulated, the full policy is delivered and the AVP indication is carried.
  • FIG. 3 and FIG. 4 are substantially the same as that of FIG. 2, and is easily understood by those skilled in the art, and will not be described in detail herein.
  • the CCA message of the Gx/Gxx/Sd interface may be extended, and an enumeration AVP is added in the command layer to indicate whether the policy rule update under the session is an incremental update or a full update.
  • the AVP is not carried in the CCA message, it can be incrementally updated by default.
  • the Gx interface AVP definition can refer to Table 1 below.
  • INCREMENTAL_Mode (0) Indicates that the rule is delivered in incremental mode and defaults to the value.
  • COMPLETE_MODE(1) Indicates that the rule is delivered in full mode.
  • Gxx interface AVP definition can refer to Table 2 below.
  • the enumeration value is interfaced with Gx.
  • the Sd interface AVP definition can refer to Table 3 below.
  • the enumeration value is interfaced with Gx.
  • This embodiment provides a device for synchronizing policy rules between network elements, which can be placed on a PCRF. It includes at least the following units:
  • the message generating unit is configured to add all the PCC policy information that is formulated to the CCA after the PCRF receives the retransmitted CCR message and formulates the PCC policy, and indicates in the CCA that the current IP-CAN session is delivered. All PCC policy information within;
  • the value of the tag AVP in the existing CCA may be used to indicate that all the PCC policy information in the current IPCAN session is delivered this time, that is, the value of the tag AVP of the CCA is configured to a predetermined value to indicate the current delivery. Is all PCC policy information in the current IPCAN session.
  • the sending unit is configured to send the CCA to the neighboring network element.
  • This embodiment provides an apparatus for synchronizing policy rules between network elements, including the following units.
  • the parsing judging unit is configured to parse the indication in the CCA when the CCA is received, and determine whether the PCRF sends the CCC policy information in the current IPCAN session in the CCA;
  • the parsing judging unit parses the CCA, and obtains the value of the flag AVP therein. If the value of the obtained tag AVP is the set value, it is determined that the PCRF delivers all the PCC policy information in the current IPCAN session in the CCA.
  • a policy update unit configured to update all policies in the current IPCAN session to all the CCAs in the current IPCAN session after the parsing judging unit determines that the PCRF delivers all PCC policy information in the current IPCAN session in the CCA.
  • PCC strategy configured to update all policies in the current IPCAN session to all the CCAs in the current IPCAN session after the parsing judging unit determines that the PCRF delivers all PCC policy information in the current IPCAN session in the CCA.
  • the above devices can be placed on PCEF, BBERF or TDF.
  • Embodiments 2 and 3 the technical solution of the foregoing Embodiment 1 can be implemented. Therefore, the detailed working process of the devices in Embodiments 2 and 3 can be referred to the corresponding content of Embodiment 1 above. I will not repeat them here.
  • the present application instructs and delivers all rules in the current IPCAN session by the PCRF at a specific time, so that the PCEF can update the locally executed rule to the state synchronized with the PCRF network element.
  • This scheme is specified by a specific AVP, and does not cause frequent and unnecessary synchronization of rules between network elements, and does not impose excessive burden on the network; and utilizes the interaction process between existing network elements, and the implementation is simple. Efficient.
  • the method and device for synchronizing policy rules between network elements include: after the PCRF receives the retransmitted CCR message and formulates the PCC policy, all the PCC policy information that is formulated is added to the CCA, and is in the CCA. Indicates that all the PCC policy information in the current IP-CAN session is delivered this time; the PCRF sends the CCA to the neighboring network element.
  • the state of the policy is restored as soon as possible in the subsequent message interaction process, in particular, some are already in the PCRF network. The policy is deleted on the element, thus ensuring the synchronization of the policy information between the network elements.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method and device for synchronizing a policy rule between network elements. The method for synchronizing a policy rule comprises: after receiving a retransmitted CCR message and making PCC policies, adding, by a PCRF, information about all the made PCC policies into a CCA, and indicating in the CCA that the information issued this time is the information about all the PCC policies in a current IP-CAN session; and sending, by the PCRF, the CCA to a neighboring network element. By means of the technical solution of the present application, when asynchronous policies occur between a PCRF and a neighboring network element due to the instability of a network environment or other abnormal reasons, the states of policies, in particular some policies which have been deleted from a PCRF network element, are recovered as quickly as possible in the subsequent message interaction process, thereby guaranteeing the policy information synchronization between network elements.

Description

一种网元间同步策略规则的方法及设备Method and device for synchronizing strategy rules between network elements 技术领域Technical field
本发明实施例涉及通信领域,尤指一种网元间同步策略规则的方法及设备。The embodiments of the present invention relate to the field of communications, and in particular, to a method and a device for synchronizing policy rules between network elements.
背景技术Background technique
随着策略和计费控制(PCC,Policy and Charging Control)架构不断演进,PCC架构包含图1所示的几个功能实体:策略控制与计费规则功能(PCRF,Policy and Charging Rules Function)、策略和计费执行功能(PCEF,Policy and Control Enforcement Function)、承载绑定和事件报告功能(BBERF,Bearer Binding and Event Reporting Function)、流量检测功能(TDF,Traffic Detection Function)、应用功能(AF,Application Function)、用户签约数据库(SPR,Subscription Profile Repository)、离线计费系统(OFCS,Offline charging system)、在线计费系统(OCS,Online charging system)。As the Policy and Charging Control (PCC) architecture evolves, the PCC architecture includes several functional entities as shown in Figure 1: Policy and Charging Rules Function (PCRF). And the PCEF (Policy and Control Enforcement Function), Bearer Binding and Event Reporting Function (BBERF), Traffic Detection Function (TDF), Application Function (AF, Application) Function), User Profile Repository (SPR), Offline Charging System (OFCS), Online Charging System (OCS).
图1中,PCRF主要负责策略和计费规则的制定,通过Gx接口将制定的PCC策略和计费规则下发给PCEF,PCEF安装、执行PCC策略,并上报相关事件,与计费系统交互计费信息。PCRF通过Gxx接口将业务服务质量(QoS,Quality of Service)规则下发给BBERF,BBERF不和计费系统交互计费信息,只负责承载绑定和相关事件的上报。PCRF通过Sd接口把需要监控的业务信息下发给TDF,TDF执行业务监控,并上报给PCRF。AF通过Rx接口向PCRF提供业务信息。SPR保存了用户签约的业务信息,PCRF可以通过Sp接口向SPR查询用户签约的业务信息。OCS通过Sy接口向PCRF报告与用户消费相关的策略计数器状态信息。PCEF通过Gy接口将在线计费信息发送给OCS进行在线计费的统计,通过Gz接口将离线计费信息发送给OFCS。TDF通过Gyn接口将基于业务的在线计费信息发送给OCS,通过Gz n接口将基于业务的离线计费信息发送给OFCS。In Figure 1, the PCRF is responsible for the formulation of the policy and accounting rules. The PCC policy and the accounting rules are sent to the PCEF through the Gx interface. The PCEF installs and executes the PCC policy, and reports related events. Fee information. The PCRF sends the QoS (Quality of Service) rules to the BBERF through the Gxx interface. The BBERF does not exchange accounting information with the accounting system. It is only responsible for reporting bearer bindings and related events. The PCRF sends the service information to be monitored to the TDF through the Sd interface. The TDF performs service monitoring and reports it to the PCRF. The AF provides service information to the PCRF through the Rx interface. The SPR saves the service information that the user subscribes to. The PCRF can query the SPR for the service information subscribed by the user through the Sp interface. The OCS reports policy counter status information related to user consumption to the PCRF through the Sy interface. The PCEF sends the online charging information to the OCS through the Gy interface for online charging statistics, and sends the offline charging information to the OFCS through the Gz interface. The TDF sends the service-based online charging information to the OCS through the Gyn interface, and sends the service-based offline charging information to the OFCS through the Gz n interface.
PCEF和PCRF之间通过IP连接接入网(IP-CAN,IP Connectivity Access Network,)会话互相维持连接状态。PCEF通过信用控制请求(CCR,Credit-Control-Request)消息向PCRF发送建立、更新、释放IP-CAN会话的 指示。PCRF则根据AF提供的业务相关信息、PCEF上报的承载相关信息以及SPR中用户签约的业务信息,制定PCC策略,通过重新授权请求(RAR,Re-Auth-Request)或信用控制应答(CCA,Credit-Control-Answer)消息下发给PCEF,策略信息中包含QoS和计费的信息。The IP-Connected Access Network (IP-CAN) session between the PCEF and the PCRF maintains a connection state with each other. The PCEF sends a setup, update, and release IP-CAN session to the PCRF through a CCR (Credit-Control-Request) message. Instructions. The PCRF formulates a PCC policy based on the service-related information provided by the AF, the bearer-related information reported by the PCEF, and the service information subscribed by the user in the SPR, and re-authorizes the request (RAR, Re-Auth-Request) or credit control response (CCA, Credit). The -Control-Answer message is sent to the PCEF, and the policy information includes QoS and accounting information.
此时,若由于网络不稳定等因素,导致PCRF网元发送的策略更新消息发生丢包或者其他一些异常,PCEF网元并未收到,则此次PCRF下发的策略信息就不能成功在PCEF上安装执行。At this time, if the PCEF network element is not received due to network instability or other factors, the policy information sent by the PCRF cannot be successfully obtained in the PCEF. Installed on the implementation.
若PCRF通过RAR请求消息下发,还可以通过重新授权应答(RAA,Re-Auth-Answer)响应来确认PCEF是否成功更新(删除)策略信息;If the PCRF is delivered by using the RAR request message, it can also confirm whether the PCEF successfully updates (deletes) the policy information by using a Re-Auth-Answer response (RAA).
若PCRF通过CCA响应消息下发,没有必须的确认机制来确认PCEF是否成功更新(删除)了策略信息,而且PCRF可能并未感知这些CCA的丢包。并且,PCRF在处理后续CCR更新请求下发策略时,无法将上一次CCA中携带的某些策略信息再次原样下发给PCEF:例如,上一次CCA中下发的某个策略删除指示,PCRF在CCA响应中下发策略删除之后,该策略已经不存在了,则之后PCRF在下发策略时,就不会再次下发这样一个策略删除了。If the PCRF is delivered by the CCA response message, there is no necessary acknowledgment mechanism to confirm whether the PCEF successfully updates (deleted) the policy information, and the PCRF may not be aware of the packet loss of these CCAs. In addition, when the PCRF processes the subsequent CCR update request, the PCRF cannot send the policy information carried in the previous CCA to the PCEF again. For example, a policy deletion indication sent by the last CCA, the PCRF is After the policy is deleted in the CCA response, the policy does not exist. After the PCRF sends the policy, the policy will not be deleted again.
由于Gx接口策略下发的原则是增量更新的方式,PCEF在没有收到这个策略删除的指示时,不会主动的对此策略进行更新。The principle that the Gx interface policy is delivered is the incremental update mode. When the PCEF does not receive the indication of the policy deletion, the PCEF does not actively update the policy.
这样,会造成如下的一种状态:This will result in one of the following states:
某些IP-CAN会话下的某些策略,在PCRF上已经删除了,在PCEF上仍然处于执行状态,并且可能一直不被更新,直至到该IP-CAN会话下线。这样就会造成网元间PCC规则数据的不一致的问题。PCC规则数据一般用于对用户使用某种业务提供Qos保障或限制,当PCC规则在网元间不一致时,PCRF制定的策略不能如实的被执行,则可能会影响用户正常使用某种业务功能。Certain policies under certain IP-CAN sessions have been deleted on the PCRF, are still in the execution state on the PCEF, and may not be updated until the IP-CAN session goes offline. This will cause inconsistency in PCC rule data between network elements. The PCC rule data is generally used to provide QoS guarantees or restrictions for the user to use certain services. When the PCC rules are inconsistent between the network elements, the policies formulated by the PCRF cannot be executed faithfully, which may affect the normal use of certain service functions by the user.
这个问题,同样也会出现在PCRF和BBERF网元间,造成QOS规则的不一致;出现在PCRF和TDF网元间,造成ADC规则的不一致。This problem also occurs between the PCRF and the BBERF network element, causing inconsistency in the QOS rules; it occurs between the PCRF and the TDF network element, causing inconsistency in the ADC rules.
这样,在后续的如果消息交互过程中不能恢复策略的状态,特别是一些已在PCRF网元上删除的策略,会导致网元间策略信息不同步的问题。 In this way, the status of the policy cannot be restored in the subsequent message exchange process, especially the policies that have been deleted on the PCRF network element, which may cause the policy information between the network elements to be out of synchronization.
发明内容Summary of the invention
为了解决上述技术问题,本发明实施例提供一种网元间同步策略规则的方法及设备,能够使得PCRF与邻接网元间控制策略保持一致,从而保证保证网元间策略信息的同步。In order to solve the above technical problem, the embodiments of the present invention provide a method and a device for synchronizing policy rules between network elements, which can ensure that the control policies of the PCRF and the neighboring network elements are consistent, thereby ensuring synchronization of policy information between network elements.
为了解决上述技术问题,本发明公开了一种网元间同步策略规则的方法,包括:In order to solve the above technical problem, the present invention discloses a method for synchronizing policy rules between network elements, including:
由于PCRF和邻接网元间是基于DIAMETER协议的,DIAMETER协议栈具有一个基本功能,在发送请求后,若未收到响应消息,则会重传请求消息,并且在DIAMETER消息头部设置“T”标记位。Since the PCRF and the adjacent network element are based on the DIAMETER protocol, the DIAMETER protocol stack has a basic function. After the request is sent, if the response message is not received, the request message is retransmitted, and a "T" is set in the DIAMETER message header. Marker bit.
基于此功能,当策略控制与计费规则功能实体PCRF收到重传的信用控制请求CCR消息并制定策略和计费控制PCC策略后,将制定的所有PCC策略信息添加到信用控制应答CCA中,并在所述CCA中指示此次下发的是当前IP连接接入网IPCAN会话内的所有PCC策略信息;Based on this function, when the policy control and charging rule function entity PCRF receives the retransmitted credit control request CCR message and formulates the policy and charging control PCC policy, all the PCC policy information that is formulated is added to the credit control response CCA. And indicating, in the CCA, that all the PCC policy information in the current IP connection access network IPCAN session is delivered;
PCRF将所述CCA发送给邻接网元。The PCRF sends the CCA to the neighboring network element.
可选地,该方法还包括:Optionally, the method further includes:
所述邻接网元收到所述CCA,根据所述CCA中的指示判断出PCRF在所述CCA中下发的是当前IP-CAN会话内的所有PCC策略信息,则将当前IP-CAN会话内的所有策略更新为所述CCA中的所有PCC策略。Receiving, by the neighboring network element, the CCA, according to the indication in the CCA, that the PCRF sends all PCC policy information in the current IP-CAN session in the CCA, and then the current IP-CAN session is All policies are updated to all PCC policies in the CCA.
可选地,所述PCRF在所述CCA中指示此次下发的是当前IP-CAN会话内的所有PCC策略信息包括:Optionally, the PCRF indicates, in the CCA, that all PCC policy information that is delivered in the current IP-CAN session is:
所述PCRF将所述CCA中的新增字段的值配置为设定值,以指示此次下发的是所述当前IP-CAN会话内的所有PCC策略信息。The PCRF configures the value of the new field in the CCA as a set value to indicate that all PCC policy information in the current IP-CAN session is delivered this time.
可选地,所述邻接网元至少包括策略和计费执行功能实体PCEF、和/或承载绑定和事件报告功能实体BBERF、和/或流量检测功能实体TDF。Optionally, the neighboring network element includes at least a policy and charging execution function entity PCEF, and/or a bearer binding and event reporting function entity BBERF, and/or a traffic detection function entity TDF.
本发明实施例还公开了一种网元间同步策略规则的设备,包括:The device of the present invention further discloses a device for synchronizing policy rules between network elements, including:
消息生成单元,设置为在收到重传的CCR消息并制定PCC策略,将制定的所有PCC策略信息添加到CCA中,并在所述CCA中指示此次下发的是当前IP-CAN会话内的所有PCC策略信息; The message generating unit is configured to: after receiving the retransmitted CCR message and formulating a PCC policy, add all the PCC policy information that is formulated to the CCA, and indicate in the CCA that the current IP-CAN session is delivered. All PCC policy information;
发送单元,设置为将所述CCA发送给邻接网元。And a sending unit, configured to send the CCA to the neighboring network element.
可选地,所述消息生成单元具体设置为将所述CCA中的新增字段配置为设定值以指示此次下发的是所述当前IP-CAN会话内的所有PCC策略信息。Optionally, the message generating unit is configured to configure a new field in the CCA as a set value to indicate that all PCC policy information in the current IP-CAN session is delivered this time.
可选地,上述设备置于PCRF上。Optionally, the above device is placed on the PCRF.
本发明实施例又公开了一种网元间同步策略规则的设备,包括:The device of the present invention further discloses a device for synchronizing policy rules between network elements, including:
解析判断单元,设置为收到CCA时,解析所述CCA中的指示,判断PCRF在所述CCA中下发的是否是当前IP-CAN会话内的所有PCC策略信息;The parsing judging unit is configured to: when the CCA is received, parse the indication in the CCA, and determine whether the PCRF sends the PCC policy information in the current IP-CAN session in the CCA;
策略更新单元,设置为在所述解析判断单元判断出PCRF在所述CCA中下发的是当前IP-CAN会话内的所有PCC策略信息时,将当前IP-CAN会话内的所有策略更新为所述CCA中的所有PCC策略。a policy update unit, configured to: when the parsing judging unit determines that all the PCC policy information in the current IP-CAN session is sent by the PCRF in the CCA, update all policies in the current IP-CAN session to the Describe all PCC strategies in CCA.
可选地,所述解析判断单元具体设置为解析所述CCA获取其中的新增字段的值,当所获取的新增字段的值为设定值时,判断出所述PCRF在所述CCA中下发的是所述当前IP-CAN会话内的所有PCC策略信息。Optionally, the parsing judging unit is configured to parse the value of the newly added field in the CCA, and when the value of the newly added field is a set value, determine that the PCRF is in the CCA. All PCC policy information within the current IP-CAN session is sent.
可选地,上述设备置于PCEF、和/或BBERF、和/或TDF上。Optionally, the above device is placed on the PCEF, and/or BBERF, and/or TDF.
通过本申请技术方案,在网络环境不稳定或其他异常原因导致PCRF和邻接网元间出现策略不同步时,在后续的消息交互过程中尽快地恢复了策略的状态,特别是一些已在PCRF网元上删除的策略,从而保证了网元间策略信息的同步。With the technical solution of the present application, when the network environment is unstable or other abnormal causes cause the policy to be out of synchronization between the PCRF and the neighboring network element, the state of the policy is restored as soon as possible in the subsequent message interaction process, in particular, some are already in the PCRF network. The policy is deleted on the element, thus ensuring the synchronization of the policy information between the network elements.
附图概述BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为现有PCC逻辑架构示意图;1 is a schematic diagram of a conventional PCC logical architecture;
图2为本发明实施例中PCRF与PCEF间同步规则的流程示意图;2 is a schematic flowchart of a synchronization rule between a PCRF and a PCEF according to an embodiment of the present invention;
图3为本发明实施例中PCRF与BBERF间同步规则的流程示意图;3 is a schematic flowchart of a synchronization rule between a PCRF and a BBERF according to an embodiment of the present invention;
图4为本发明实施例中PCRF与TDF间同步规则的流程示意图。FIG. 4 is a schematic flowchart of a synchronization rule between a PCRF and a TDF according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
为使本发明实施例的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
实施例1Example 1
本发明实施例提出,是在不增加新的策略确认机制的基础上,PCRF能够在策略出现不一致的情况下,尽早的将某个IP-CAN会话下的所有策略携带在CCA消息中下发给PCEF等邻接网元,并且携带新增字段以指示此次下发的是当前会话下的全量规则。The embodiment of the present invention proposes that, based on the new policy confirmation mechanism, the PCRF can carry all the policies in an IP-CAN session to the CCA message and send it to the CCA message as soon as possible. Adjacent NEs, such as PCEF, carry a new field to indicate that the full rule under the current session is delivered this time.
基于上述思想,本实施例提供一种网元间同步策略规则的方法,包括:Based on the above idea, the embodiment provides a method for synchronizing policy rules between network elements, including:
当PCRF收到重传的CCR消息并制定PCC策略之后,PCRF将制定的所有PCC策略信息添加到CCA中,并在该CCA中指示此次下发的是当前IP-CAN会话内的所有PCC策略信息;After the PCRF receives the retransmitted CCR message and formulates the PCC policy, the PCRF adds all the PCC policy information that is formulated to the CCA, and indicates in the CCA that all PCC policies in the current IP-CAN session are delivered this time. information;
PCRF将上述CCA发送给邻接网元。The PCRF sends the CCA to the neighboring network element.
其中,本发明所涉及的邻接网元可以包括FCEF、和/或BBERF、和/或TDF。The adjacent network elements involved in the present invention may include FCEF, and/or BBERF, and/or TDF.
优选地,上述PCRF可以在现有CCA中新增字段,并将此新增字段配置为设定值,以指示此次下发的是当前IP-CAN会话内的所有PCC策略信息。例如,可以将新增字段定义为标记属性值对(AVP,Attribute Value Pairs),该标记AVP的值来指示此次下发的是当前IP-CAN会话内的所有PCC策略信息。具体地,可以预设标记AVP的某个值用于指示此次下发的是当前IP-CAN会话内的所有PCC策略信息。Preferably, the PCRF may add a field to the existing CCA, and configure the new field as a set value to indicate that all PCC policy information in the current IP-CAN session is delivered this time. For example, the newly added field may be defined as an Attribute Value Pairs (AVP), and the value of the flag AVP indicates that all PCC policy information in the current IP-CAN session is delivered this time. Specifically, a certain value of the tag AVP may be preset to indicate that all PCC policy information in the current IP-CAN session is delivered this time.
另外,上述方法还可以包括邻接网元侧的操作,即邻接网元收到上述CCA时,可以根据CCA中的指示判断出PCRF在此CCA中下发的是当前IP-CAN会话内的所有PCC策略信息,则将当前IP-CAN会话内的所有策略更新为CCA中的所有PCC策略。需要说明的是,邻接网元本地已安装的策略,但PCRF此次下发中未涉及的,应该当作策略移除处理。In addition, the foregoing method may further include the operation of the neighboring network element, that is, when the neighboring network element receives the CCA, it may be determined according to the indication in the CCA that all the PCCs in the current IP-CAN session are sent by the PCRF in the CCA. The policy information updates all policies in the current IP-CAN session to all PCC policies in the CCA. It should be noted that the policy that is installed locally on the neighboring NE, but not included in the PCRF release, should be treated as a policy removal.
下面将主要结合附图2对上述方法的具体应用作进一步的详细完整的描述。图2所示为PCRF与邻接网元PCEF间同步策略规则的具体实现过程,包括: The specific application of the above method will be further described in detail below with reference mainly to FIG. Figure 2 shows the implementation process of the synchronization policy rule between the PCRF and the neighboring network element PCEF, including:
步骤201:PCEF向PCRF发送IP-CAN会话建立指示消息,其中携带用户标识,PCRF从SPR获取该用户的签约信息,并进行规则决策,发送会话建立响应消息给PCEF,PCRF和PCEF完成创建IP-CAN会话,并在PCRF上保存IP-CAN会话信息和用户信息。Step 201: The PCEF sends an IP-CAN session establishment indication message to the PCRF, where the user identifier is carried, the PCRF obtains the subscription information of the user from the SPR, and performs a rule decision, and sends a session establishment response message to the PCEF, and the PCRF and the PCEF complete the creation of the IP- CAN session and save IP-CAN session information and user information on the PCRF.
步骤202:PCEF基于承载事件变更等原因触发CCR请求策略更新。Step 202: The PCEF triggers a CCR request policy update based on a bearer event change or the like.
步骤203:PCRF接收到CCR请求,判断为非重传CCR消息,并基于本地信息、AF提供的业务相关信息、PCEF上报的承载信息以及SPR中用户签约的业务信息,制定PCC策略(更新或删除);Step 203: The PCRF receives the CCR request, determines that it is a non-retransmission CCR message, and formulates a PCC policy (update or delete) based on the local information, the service related information provided by the AF, the bearer information reported by the PCEF, and the service information subscribed by the user in the SPR. );
步骤204:PCRF编码CCA响应,只携带变化的策略,可携带AVP指示为增量规则,也可不带指示AVP,默认为下发增量规则。Step 204: The PCRF encodes the CCA response, and only carries the changed policy, and may carry the AVP indication as an incremental rule, or may not include the indication AVP, and the default is to issue an incremental rule.
步骤205:PCRF回复CCA响应。Step 205: The PCRF replies with a CCA response.
步骤206:PCEF因网络等原因未接收到CCA响应,重传CCR请求,并且将DIAMETER头部“T”标记位置位。Step 206: The PCEF does not receive the CCA response due to the network or the like, retransmits the CCR request, and marks the DIAMETER header "T".
步骤207:PCEF发送重传CCR请求。Step 207: The PCEF sends a retransmission CCR request.
步骤208:PCRF解析CCR消息头部,判断为重传请求。Step 208: The PCRF parses the CCR message header and determines to retransmit the request.
步骤209:PCRF基于本地信息、AF提供的业务相关信息、PCEF上报的承载信息以及SPR中用户签约的业务信息,制定PCC策略(更新或删除);Step 209: The PCRF formulates a PCC policy (update or delete) based on local information, service related information provided by the AF, bearer information reported by the PCEF, and service information subscribed by the user in the SPR.
步骤210:PCRF编码CCA响应,将当前会话内所有策略都在CCA中下发,并且携带标记AVP指示下发的为全量规则,即指示此次下发的是当前IP-CAN会话内的所有PCC策略信息。Step 210: The PCRF encodes the CCA response, and all the policies in the current session are sent in the CCA, and the flag AVP indicates that the full-rule rule is delivered, that is, all the PCCs in the current IP-CAN session are indicated to be delivered this time. Strategy information.
步骤211:PCRF回复CCA响应。Step 211: The PCRF replies with a CCA response.
步骤212:PCEF收到CCA后,检测到标记AVP指示为全量规则,即指示此次下发的是当前IPCAN会话内的所有PCC策略信息,更新当前会话内所有策略,CCA中未下发的策略应该做删除处理。Step 212: After receiving the CCA, the PCEF detects that the marked AVP indication is a full-quantity rule, that is, indicates that all the PCC policy information in the current IPCAN session is delivered, and all policies in the current session are updated, and the policy is not delivered in the CCA. Should be done delete processing.
图3所示为PCRF与邻接网元BBERF间同步策略规则的具体实现过程。在该过程中,当PCRF接收到BBERF的策略更新请求时,检查非重传的CCR消息,制定QOS规则后,只采用增量下发的方式下发变化的策略。当BBERF未接收到CCA响应时,重传CCR请求。当PCRF接收到BBERF的重传CCR 时,制定QOS规则后,下发全量策略,并携带AVP指示。FIG. 3 shows a specific implementation process of a synchronization policy rule between a PCRF and a neighboring network element BBERF. In this process, when the PCRF receives the policy update request of the BBERF, it checks the non-retransmitted CCR message, and after the QOS rule is formulated, the policy is delivered in the manner of the incremental delivery. When the BBERF does not receive the CCA response, the CCR request is retransmitted. When the PCRF receives the retransmission CCR of BBERF When the QOS rule is formulated, the full policy is issued and the AVP instruction is carried.
图4所示为PCRF与邻接网元TDF间同步策略规则的具体实现过程。在该过程中,当PCRF接收到TDF的策略更新请求时,检查非重传的CCR消息,制定ADC规则后,只采用增量下发的方式下发变化的策略。当TDF未接收到CCA响应时,重传CCR请求。当PCRF接收到TDF的重传CCR时,制定ADC规则后,下发全量策略,并携带AVP指示。FIG. 4 shows a specific implementation process of a synchronization policy rule between a PCRF and a neighboring network element TDF. In this process, when the PCRF receives the policy update request of the TDF, it checks the non-retransmitted CCR message, and after the ADC rule is formulated, the policy is delivered in the manner of the incremental delivery. When the TDF does not receive a CCA response, the CCR request is retransmitted. When the PCRF receives the retransmission CCR of the TDF, after the ADC rule is formulated, the full policy is delivered and the AVP indication is carried.
需要说明的是,图3和图4的实施过程与图2基本相同,对于本领域技术人员来讲是容易理解的,这里不再详细描述。It should be noted that the implementation process of FIG. 3 and FIG. 4 is substantially the same as that of FIG. 2, and is easily understood by those skilled in the art, and will not be described in detail herein.
优选地,在上述方法中可对Gx/Gxx/Sd接口的CCA消息进行扩展,在命令层中增加一个枚举AVP,指示此次会话下的策略规则更新是增量更新还是全量更新。另外,如果CCA消息中没有携带此AVP,可以默认为增量更新。Preferably, in the above method, the CCA message of the Gx/Gxx/Sd interface may be extended, and an enumeration AVP is added in the command layer to indicate whether the policy rule update under the session is an incremental update or a full update. In addition, if the AVP is not carried in the CCA message, it can be incrementally updated by default.
具体地,Gx接口AVP定义可以参照下表1。Specifically, the Gx interface AVP definition can refer to Table 1 below.
Figure PCTCN2015078392-appb-000001
Figure PCTCN2015078392-appb-000001
表1Table 1
如表1所示,枚举值为:As shown in Table 1, the enumeration values are:
INCREMENTAL_Mode(0):指示规则下发为增量模式,为默认取值。INCREMENTAL_Mode (0): Indicates that the rule is delivered in incremental mode and defaults to the value.
COMPLETE_MODE(1):指示规则下发为全量模式。COMPLETE_MODE(1): Indicates that the rule is delivered in full mode.
此AVP在CCA消息中的位置如下加粗字体所示:The location of this AVP in the CCA message is shown in bold font as follows:
<CC-Answer>::=<Diameter Header:272,PXY><CC-Answer>::=<Diameter Header: 272, PXY>
<Session-Id><Session-Id>
{Auth-Application-Id}{Auth-Application-Id}
{Origin-Host}{Origin-Host}
{Origin-Realm}{Origin-Realm}
[Result-Code][Result-Code]
[Experimental-Result][Experimental-Result]
{CC-Request-Type}{CC-Request-Type}
{CC-Request-Number}{CC-Request-Number}
……......
*[Charging-Rule-Remove] *[Charging-Rule-Remove]
*[Charging-Rule-Install]*[Charging-Rule-Install]
[Charging-Rule-Mode][Charging-Rule-Mode]
……......
具体地,Gxx接口AVP定义可以参照下表2。Specifically, the Gxx interface AVP definition can refer to Table 2 below.
Figure PCTCN2015078392-appb-000002
Figure PCTCN2015078392-appb-000002
表2Table 2
如表2所示,枚举值同Gx接口。As shown in Table 2, the enumeration value is interfaced with Gx.
此AVP在CCA消息中的位置如下加粗字体所示:The location of this AVP in the CCA message is shown in bold font as follows:
<CC-Answer>::=<Diameter Header:272,PXY><CC-Answer>::=<Diameter Header: 272, PXY>
<Session-Id><Session-Id>
{Auth-Application-Id}{Auth-Application-Id}
{Origin-Host}{Origin-Host}
{Origin-Realm}{Origin-Realm}
[Result-Code][Result-Code]
[Experimental-Result][Experimental-Result]
{CC-Request-Type}{CC-Request-Type}
{CC-Request-Number}{CC-Request-Number}
……......
*[Qos-Rule-Remvoe]*[Qos-Rule-Remvoe]
*[Qos-Rule-Install]*[Qos-Rule-Install]
[Qos-Rule-Mode][Qos-Rule-Mode]
……......
具体地,Sd接口AVP定义可以参照下表3。Specifically, the Sd interface AVP definition can refer to Table 3 below.
Figure PCTCN2015078392-appb-000003
Figure PCTCN2015078392-appb-000003
表3table 3
如表3所示,枚举值同Gx接口。As shown in Table 3, the enumeration value is interfaced with Gx.
此AVP在CCA消息中的位置如下加粗字体所示:The location of this AVP in the CCA message is shown in bold font as follows:
<CC-Answer>::=<Diameter Header:272,PXY><CC-Answer>::=<Diameter Header: 272, PXY>
<Session-Id> <Session-Id>
{Auth-Application-Id}{Auth-Application-Id}
{Origin-Host}{Origin-Host}
{Origin-Realm}{Origin-Realm}
[Result-Code][Result-Code]
[Experimental-Result][Experimental-Result]
{CC-Request-Type}{CC-Request-Type}
{CC-Request-Number}{CC-Request-Number}
……......
*[ADC-Rule-Remove]*[ADC-Rule-Remove]
*[ADC-Rule-Install]*[ADC-Rule-Install]
[ADC-Rule-Mode][ADC-Rule-Mode]
……......
实施例2Example 2
本实施例提供一种网元间同步策略规则的设备,可以置于PCRF上。其至少包括如下单元:This embodiment provides a device for synchronizing policy rules between network elements, which can be placed on a PCRF. It includes at least the following units:
消息生成单元,设置为在PCRF收到重传的CCR消息并制定PCC策略之后,将制定的所有PCC策略信息添加到CCA中,并在该CCA中指示此次下发的是当前IP-CAN会话内的所有PCC策略信息;The message generating unit is configured to add all the PCC policy information that is formulated to the CCA after the PCRF receives the retransmitted CCR message and formulates the PCC policy, and indicates in the CCA that the current IP-CAN session is delivered. All PCC policy information within;
优选地,可以通过现有CCA中的标记AVP的值指示此次下发的是当前IPCAN会话内的所有PCC策略信息,即将CCA的标记AVP的值配置为预定值,以指示此次下发的是当前IPCAN会话内的所有PCC策略信息。Preferably, the value of the tag AVP in the existing CCA may be used to indicate that all the PCC policy information in the current IPCAN session is delivered this time, that is, the value of the tag AVP of the CCA is configured to a predetermined value to indicate the current delivery. Is all PCC policy information in the current IPCAN session.
发送单元,设置为将上述CCA发送给邻接网元。The sending unit is configured to send the CCA to the neighboring network element.
实施例3Example 3
本实施例提供一种网元间同步策略规则的设备,包括如下单元。This embodiment provides an apparatus for synchronizing policy rules between network elements, including the following units.
解析判断单元,设置为收到CCA时,解析CCA中的指示,判断PCRF在CCA中下发的是否是当前IPCAN会话内的所有PCC策略信息;The parsing judging unit is configured to parse the indication in the CCA when the CCA is received, and determine whether the PCRF sends the CCC policy information in the current IPCAN session in the CCA;
具体地,解析判断单元解析CCA,获取其中的标记AVP的值,若所获取的标记AVP的值为设定值,则判断PCRF在CCA中下发的是当前IPCAN会话内的所有PCC策略信息。Specifically, the parsing judging unit parses the CCA, and obtains the value of the flag AVP therein. If the value of the obtained tag AVP is the set value, it is determined that the PCRF delivers all the PCC policy information in the current IPCAN session in the CCA.
策略更新单元,设置为在所述解析判断单元判断PCRF在所述CCA中下发的是当前IPCAN会话内的所有PCC策略信息,则将当前IPCAN会话内的所有策略更新为所述CCA中的所有PCC策略。 a policy update unit, configured to update all policies in the current IPCAN session to all the CCAs in the current IPCAN session after the parsing judging unit determines that the PCRF delivers all PCC policy information in the current IPCAN session in the CCA. PCC strategy.
实际应用中,上述设备可以置于PCEF、BBERF或者TDF上。In practical applications, the above devices can be placed on PCEF, BBERF or TDF.
还要说明的是,上述实施例2和3的设备配置工作,可以实现上述实施例1的技术方案,故实施例2和3中的设备的详细工作过程可参见上述实施例1的相应内容,在此不再赘述。It should be noted that, in the device configuration work of the foregoing Embodiments 2 and 3, the technical solution of the foregoing Embodiment 1 can be implemented. Therefore, the detailed working process of the devices in Embodiments 2 and 3 can be referred to the corresponding content of Embodiment 1 above. I will not repeat them here.
从上述实施例可以看出,本申请通过PCRF在某个特定时刻指示并下发当前IPCAN会话内的所有规则,使PCEF能够将本地执行的规则更新至与PCRF网元同步的状态。这种方案通过特定的AVP指示,并不会造成网元间规则的频繁及不必要的同步,不会对网络造成过多的负担;并且利用了现有网元间的交互流程,实现方式简单高效。As can be seen from the foregoing embodiment, the present application instructs and delivers all rules in the current IPCAN session by the PCRF at a specific time, so that the PCEF can update the locally executed rule to the state synchronized with the PCRF network element. This scheme is specified by a specific AVP, and does not cause frequent and unnecessary synchronization of rules between network elements, and does not impose excessive burden on the network; and utilizes the interaction process between existing network elements, and the implementation is simple. Efficient.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the steps described above can be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. This application is not limited to any specific combination of hardware and software.
以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only a 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.
工业实用性Industrial applicability
本发明实施例提出的网元间同步策略规则的方法及设备,包括:当PCRF收到重传的CCR消息并制定PCC策略之后,将制定的所有PCC策略信息添加到CCA中,并在CCA中指示此次下发的是当前IP-CAN会话内的所有PCC策略信息;PCRF将所述CCA发送给邻接网元。通过本申请技术方案,在网络环境不稳定或其他异常原因导致PCRF和邻接网元间出现策略不同步时,在后续的消息交互过程中尽快地恢复了策略的状态,特别是一些已在PCRF网元上删除的策略,从而保证了网元间策略信息的同步。 The method and device for synchronizing policy rules between network elements according to the embodiments of the present invention include: after the PCRF receives the retransmitted CCR message and formulates the PCC policy, all the PCC policy information that is formulated is added to the CCA, and is in the CCA. Indicates that all the PCC policy information in the current IP-CAN session is delivered this time; the PCRF sends the CCA to the neighboring network element. With the technical solution of the present application, when the network environment is unstable or other abnormal causes cause the policy to be out of synchronization between the PCRF and the neighboring network element, the state of the policy is restored as soon as possible in the subsequent message interaction process, in particular, some are already in the PCRF network. The policy is deleted on the element, thus ensuring the synchronization of the policy information between the network elements.

Claims (10)

  1. 一种网元间同步策略规则的方法,其特征在于,包括:A method for synchronizing policy rules between network elements, comprising:
    当策略控制与计费规则功能实体PCRF收到重传的信用控制请求CCR消息并制定策略和计费控制PCC策略后,将制定的所有PCC策略信息添加到信用控制应答CCA中,并在所述CCA中指示此次下发的是当前IP连接接入网IP-CAN会话内的所有PCC策略信息;After the policy control and charging rule function entity PCRF receives the retransmitted credit control request CCR message and formulates the policy and charging control PCC policy, all the PCC policy information that is formulated is added to the credit control response CCA, and The CCA indicates that all the PCC policy information in the IP-CAN session of the current IP connection access network is delivered.
    PCRF将所述CCA发送给邻接网元。The PCRF sends the CCA to the neighboring network element.
  2. 根据权利要求1所述的方法,其特征在于,该方法还包括:The method of claim 1 further comprising:
    所述邻接网元收到所述CCA,根据所述CCA中的指示判断出PCRF在所述CCA中下发的是当前IP-CAN会话内的所有PCC策略信息,则将当前IP-CAN会话内的所有策略更新为所述CCA中的所有PCC策略。Receiving, by the neighboring network element, the CCA, according to the indication in the CCA, that the PCRF sends all PCC policy information in the current IP-CAN session in the CCA, and then the current IP-CAN session is All policies are updated to all PCC policies in the CCA.
  3. 根据权利要求1或2所述的方法,其特征在于,所述在所述CCA中指示此次下发的是当前IP-CAN会话内的所有PCC策略信息包括:The method according to claim 1 or 2, wherein the indicating in the CCA that all the PCC policy information in the current IP-CAN session is delivered is:
    所述PCRF将所述CCA中的新增字段的值配置为设定值,以指示此次下发的是所述当前IP-CAN会话内的所有PCC策略信息。The PCRF configures the value of the new field in the CCA as a set value to indicate that all PCC policy information in the current IP-CAN session is delivered this time.
  4. 根据权利要求1或2所述的方法,其特征在于,Method according to claim 1 or 2, characterized in that
    所述邻接网元至少包括策略和计费执行功能实体PCEF、和/或承载绑定和事件报告功能实体BBERF、和/或流量检测功能实体TDF。The contiguous network element includes at least a policy and charging enforcement function entity PCEF, and/or a bearer binding and event reporting function entity BBERF, and/or a traffic detection function entity TDF.
  5. 一种网元间同步策略规则的设备,其特征在于,包括:A device for synchronizing policy rules between network elements, comprising:
    消息生成单元,设置为在收到重传的CCR消息并制定PCC策略,将制定的所有PCC策略信息添加到CCA中,并在所述CCA中指示此次下发的是当前IP-CAN会话内的所有PCC策略信息;The message generating unit is configured to: after receiving the retransmitted CCR message and formulating a PCC policy, add all the PCC policy information that is formulated to the CCA, and indicate in the CCA that the current IP-CAN session is delivered. All PCC policy information;
    发送单元,设置为将所述CCA发送给邻接网元。And a sending unit, configured to send the CCA to the neighboring network element.
  6. 根据权利要求5所述的设备,其特征在于,所述消息生成单元具体设置为将所述CCA中的新增字段配置为设定值以指示此次下发的是所述当前IP-CAN会话内的所有PCC策略信息。The device according to claim 5, wherein the message generating unit is specifically configured to configure a new field in the CCA as a set value to indicate that the current IP-CAN session is delivered this time. All PCC policy information within.
  7. 根据权利要求5或6所述的设备,其特征在于,所述设备置于PCRF 上。Device according to claim 5 or 6, characterized in that the device is placed in a PCRF on.
  8. 一种网元间同步策略规则的设备,其特征在于,包括:A device for synchronizing policy rules between network elements, comprising:
    解析判断单元,设置为收到CCA时,解析所述CCA中的指示,判断PCRF在所述CCA中下发的是否是当前IP-CAN会话内的所有PCC策略信息;The parsing judging unit is configured to: when the CCA is received, parse the indication in the CCA, and determine whether the PCRF sends the PCC policy information in the current IP-CAN session in the CCA;
    策略更新单元,设置为在所述解析判断单元判断出PCRF在所述CCA中下发的是当前IP-CAN会话内的所有PCC策略信息时,将当前IPCAN会话内的所有策略更新为所述CCA中的所有PCC策略。The policy update unit is configured to update all the policies in the current IPCAN session to the CCA when the parsing judging unit determines that all the PCC policy information in the current IP-CAN session is sent by the PCRF in the CCA. All PCC strategies in .
  9. 根据权利要求8所述的设备,其特征在于,所述解析判断单元具体设置为解析所述CCA获取其中的新增字段的值,当所获取的新增字段的值为设定值时,判断出所述PCRF在所述CCA中下发的是所述当前IP-CAN会话内的所有PCC策略信息。The device according to claim 8, wherein the parsing judging unit is configured to parse the value of the newly added field in the CCA, and determine that the value of the newly added field is a set value. The PCRF delivers in the CCA all the PCC policy information in the current IP-CAN session.
  10. 根据权利要求8或9所述的设备,其特征在于,所述设备置于PCEF、和/或BBERF、和/或TDF上。 Device according to claim 8 or 9, characterized in that the device is placed on a PCEF, and/or BBERF, and/or TDF.
PCT/CN2015/078392 2014-10-24 2015-05-06 Method and device for synchronizing policy rule between network elements WO2016062061A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410579315.6 2014-10-24
CN201410579315.6A CN105591783B (en) 2014-10-24 2014-10-24 Method and equipment for realizing policy rule synchronization between network elements

Publications (1)

Publication Number Publication Date
WO2016062061A1 true WO2016062061A1 (en) 2016-04-28

Family

ID=55760204

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078392 WO2016062061A1 (en) 2014-10-24 2015-05-06 Method and device for synchronizing policy rule between network elements

Country Status (2)

Country Link
CN (1) CN105591783B (en)
WO (1) WO2016062061A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113839800A (en) * 2020-06-24 2021-12-24 中国联合网络通信集团有限公司 Abnormal network element prompting method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222413A (en) * 2007-01-09 2008-07-16 华为技术有限公司 Service flow processing method and system
CN101355438A (en) * 2007-07-25 2009-01-28 华为技术有限公司 Method, equipment and system for implementing policy charging control
WO2011040740A2 (en) * 2009-09-29 2011-04-07 Samsung Electronics Co., Ltd. Apparatus and method for establishing session in a packet switched network
CN104053139A (en) * 2014-04-28 2014-09-17 大唐移动通信设备有限公司 Method and device for processing policy control and charging information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567793A (en) * 2008-04-25 2009-10-28 华为技术有限公司 Method, device and system for updating policy and charge control (PCC) rule
US8768295B2 (en) * 2010-02-18 2014-07-01 Alcatel Lucent Method of handling a change to bearer control mode
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
CN101222413A (en) * 2007-01-09 2008-07-16 华为技术有限公司 Service flow processing method and system
CN101355438A (en) * 2007-07-25 2009-01-28 华为技术有限公司 Method, equipment and system for implementing policy charging control
WO2011040740A2 (en) * 2009-09-29 2011-04-07 Samsung Electronics Co., Ltd. Apparatus and method for establishing session in a packet switched network
CN104053139A (en) * 2014-04-28 2014-09-17 大唐移动通信设备有限公司 Method and device for processing policy control and charging information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113839800A (en) * 2020-06-24 2021-12-24 中国联合网络通信集团有限公司 Abnormal network element prompting method and device, electronic equipment and storage medium
CN113839800B (en) * 2020-06-24 2023-12-12 中国联合网络通信集团有限公司 Abnormal network element prompting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105591783B (en) 2020-05-22
CN105591783A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US8059533B2 (en) Packet flow optimization (PFO) policy management in a communications network by rule name
CN101583112B (en) Method and device for marking session information
US9013979B2 (en) High-available policy and charging-control in geographical redundancy PCRF configurations
ES2424454T3 (en) Establishment of a communication session
US8949447B2 (en) Optimized interface between two network elements operating under an authentication, authorization and accounting protocol
EP2146458A1 (en) Method,system and entity of realizing event detection
US20120278472A1 (en) Usage monitoring after rollover
EP2521305B1 (en) Method, device and system for controlling user session policy
EP2566197A1 (en) Policy application method for machine type communication and policy and charging enforcement function
US20130122860A1 (en) Method for providing a monitoring of usage network resources of a user session within a network and a network device
WO2018082707A1 (en) Method and device for application detection and control
WO2012075875A1 (en) Method and system for signing and enforcing spending limit service
WO2009046678A1 (en) Method and device for obtaining the capability of policy and charging enforcement function
WO2009129747A1 (en) Pcc rules updating method, device and system
WO2009124441A1 (en) Session termination triggering method, implementing method and apparatus
US20170111181A1 (en) Method for Application Detection and Control in Roaming Scenario and V-PCRF
CN104735605A (en) User service control method and device
US8954565B2 (en) Method and system for determining a PCC rule waiting for further action
WO2009056046A1 (en) A method for session termination
EP2807796B1 (en) Session termination in a mobile packet core network
US11223492B2 (en) Wireless communication method and device
WO2016062061A1 (en) Method and device for synchronizing policy rule between network elements
WO2018201810A1 (en) Pcrf entity, storage medium, race-condition removal method and system
WO2016070556A1 (en) Method for acquiring user identifier and network side device
WO2019157898A1 (en) Rule management method and apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1