WO2014082519A1 - Charging method, and policy enforcement and policy and charging rules function devices - Google Patents

Charging method, and policy enforcement and policy and charging rules function devices Download PDF

Info

Publication number
WO2014082519A1
WO2014082519A1 PCT/CN2013/086339 CN2013086339W WO2014082519A1 WO 2014082519 A1 WO2014082519 A1 WO 2014082519A1 CN 2013086339 W CN2013086339 W CN 2013086339W WO 2014082519 A1 WO2014082519 A1 WO 2014082519A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet loss
entity
loss amount
charging
pcrf
Prior art date
Application number
PCT/CN2013/086339
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 WO2014082519A1 publication Critical patent/WO2014082519A1/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
    • H04L12/1403Architecture for metering, charging or billing
    • H04L12/1407Policy-and-charging control [PCC] architecture
    • 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
    • H04L12/1485Tariff-related aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5029Service quality level-based billing, e.g. dependent on measured service level customer is charged more or less
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Definitions

  • the present invention relates to the field of communications, and in particular, to a charging method and a policy enforcement, policy, and charging rule function device.
  • PCC Policy and Charging Control
  • 3GPP 3rd Generation Partnership Project
  • the Policy and Charging Rules Function (PCRF) is used to formulate resource control policies, including QoS (Quality of Service) control policies and charging control, for the service data flows included in the service. Strategy.
  • QoS Quality of Service
  • PCEF Policy and Charging Enforcement Function
  • IP Internet Protocol
  • the BBERF (Bearer Binding and Event Report Function) is mainly used to detect IP packets transmitted on the network and map the IP packets to the bearer channel according to the rules.
  • the BBERF also performs the reporting of the bearer-related event. For example, when the bearer is lost or the access network is switched, the event is reported to the PCRF to request the PCRF to make a decision.
  • the TDF Traffic Detection Function
  • the PCRF Policy Detection Function
  • policy control on the detected application according to the policy issued by the PCRF, for example, gating, bandwidth limitation, application redirection, and collecting and reporting charging information to the charging system.
  • the SPR Subscribescription Profile Repository
  • OCS Online Charging System
  • OFCS Offline Charging System
  • IP-CAN IP Connectivity Access Network
  • the application function reports the service information or the application information detected by the TDF to the PCRF, where the service information and/or the application information includes a quintuple and other services such as services/applications. Type and other information.
  • the PCRF formulates a PCC rule for the data flow according to the service information and/or the application information, where the PCC rule includes a Service Data Flow Template (SDF Template, ie, contains quintuple information), and a service/application identifier.
  • SDF Template Service Data Flow Template
  • MRR Maximum Bit Rate
  • GRR Guaranteed Bit Rate
  • the PCRF sends the PCC rule to the PCEF.
  • the PCEF performs the bearer binding according to the QCI. If the QCI of the existing bearer corresponds to the QCI in the PCC rule, the PCC rule is bound to the bearer. If the QCI of the bearer does not correspond to the QCI of the PCC rule, the PCEF initiates A bearer that matches the QCI is established, and the PCC rule is bound to the bearer. After the bearer binding is completed, the correspondence between the PCC rules and the bearers is established. PCC rules with the same QCI can be bound to the same bearer, that is, multiple service data streams can share the same bearer. Thereafter, when the data packet passes through the PCEF, the PCEF matches the quintuple of the data packet with the SDF Template on the bearer.
  • the SDF template When it matches the SDF template, it knows which PCC rule is used for the data packet, and then according to the binding relationship between the PCC rule and the bearer, it knows which bearer to use for the data packet. Therefore, the data packet is provided with a corresponding QoS and bandwidth guarantee, and the charging information of the data packet is collected and reported to the charging system according to the charging policy.
  • the above bearers are classified into GBR bearers and non-GBR (Non-GBR) bearers.
  • the GBR bearer provides absolute QoS and bandwidth guarantee for the service data flow. That is, the data packet using the bearer must provide the service quality guarantee according to the QoS and bandwidth resources allocated by the authorization, even if the resource usage is tight in the network. In this case, resources will not be seized by other data packets.
  • Non-GBR bearer It provides relative QoS and bandwidth guarantees for business data flows. All the service data flows on the Non-GBR bearer share an Access Point Name-Aggregate Maximum Bit Rate (APN-AMBR) (this information is shared by all Non-GBR services carried out by the user. The contracted bandwidth is delivered to the PCEF when the IP-CAN session is established.
  • API-AMBR Access Point Name-Aggregate Maximum Bit Rate
  • QoS and bandwidth guarantee may be provided for the network data resources.
  • the service data flow is Resource preemption will be performed in accordance with QCI. Therefore, services carried using Non-GBR cannot obtain reliable QoS and bandwidth guarantee from the network.
  • TDF When TDF is deployed on the network, there is a problem of inaccurate charging during billing.
  • the TDF applies detection and control according to the application sent by the PCRF (Application Detection and Control).
  • the ADC rule detects the data stream, identifies the application, and allows the data flow to pass according to the control policy on the TDF, and records the traffic information and reports it to the charging system.
  • the quintuple of the data stream matches the SDF template, and the PCEF controls the PCEC according to the corresponding PCC rules, and the traffic is changed to 150 kb/s, causing packet loss.
  • TDF Since TDF does not know that the flow rate is limited when it passes through the PCEF, it causes packet loss, which in turn causes the traffic on the TDF to be larger than the traffic on the PCEF. When the user is charged in this case, the traffic should be charged according to the actual received traffic (that is, the traffic after packet loss on the PCEF). Obviously, the traffic reported by the TDF to the charging system is inaccurate. The billing of traffic will inevitably lead to the problem of excessive charges.
  • the related art proposes a solution, which includes the following steps:
  • Step (1) all the SDF templates on the PCEF are reported to the TDF through the PCRF.
  • Step (2) when the data stream passes through the TDF for detection, the TDF matches the quintuple information of the data stream with the SDF Template.
  • the amount of the TDF flowing through the PCEF is the same as the amount flowing through the PCEF, and the charging is not accurate. happensing. In this case, the TDF reports the usage directly to the billing system. Information.
  • the quintuple information matches the SDF template, it means that there is a corresponding PCC rule on the PCEF to control the data flow, which may result in the usage of the data stream on the TDF and PCEF.
  • Step (3) in the case that the step (2) is matched, the TDF reports the SDF template corresponding to the data stream to the PCRF.
  • step (4) the PCRF requests the PCEF to report the usage information of the data stream corresponding to the SDF template, and sends the usage information to the TDF.
  • step (5) the TDF is used for the amount correction.
  • TDF compares the amount collected on the TDF with the amount collected from the PCEF (reported to the TDF via the PCRF). If the amount on the TDF is greater than the amount on the PCEF, the TDF reports the amount collected by the PCEF to the billing system, if TDF If the amount used is less than the amount on the PCEF, the TDF will charge the amount collected by itself to the billing system.
  • the PCRF In the above process of controlling the data flow, in order to achieve accurate billing, the PCRF needs to continuously monitor the amount on the PCEF, and needs to pass it to the TDF through the PCRF, or monitor the amount on the TDF and pass the amount to the PCEF through the PCRF. For quantity correction, accurate billing is achieved.
  • the embodiments of the present invention provide a charging method and a policy execution, policy, and charging rule function device to improve the accuracy of charging.
  • the embodiment of the invention provides a charging method, including:
  • the policy execution function entity reports the packet loss amount for the data flow, and reports the packet loss amount to the policy and charging rule function PCRF entity when the packet loss amount reaches the set packet loss threshold.
  • the PCRF entity reports the packet loss amount to the charging system
  • the charging system performs charging correction according to the amount of packet loss.
  • the set packet loss threshold is pre-configured on the policy execution function entity; or
  • the policy enforcement function entity is a policy and charging execution function PCEF entity or a flow detection function TDF entity.
  • the PCRF entity sends the packet loss amount to the charging system: the PCRF entity directly reports the packet loss amount to the charging system; or
  • the PCRF entity reports the packet loss amount to the charging system by using a TDF entity; or the PCRF entity device reports the packet loss amount to the charging system by using a PCEF entity.
  • the set packet loss threshold is a value, or is a time.
  • the foregoing method further includes:
  • the TDF entity performs charging, and sets a packet loss threshold on the PCEF entity, and the TDF entity collects charging information for the data flow and reports the information to the charging system; wherein the policy execution function entity is for the data flow.
  • the amount of packet loss is reported, and when the packet loss reaches the set packet loss threshold, reporting the packet loss to the PCRF entity includes:
  • the PCEF entity collects the packet loss amount for the data flow, and when the packet loss amount reaches the packet loss threshold, the PCEF entity reports the packet loss amount to the PCRF entity;
  • the reporting, by the PCRF entity, the amount of the packet loss to the charging system includes:
  • the PCRF entity directly reports the packet loss amount to the charging system, or the PCRF entity sends the packet loss amount to the charging system through the TDF;
  • the method further includes:
  • the charging system performs the charging correction according to the charging information reported by the TDF entity and the amount of packet loss.
  • the foregoing method further includes:
  • the PCEF entity performs charging, and sets a packet loss threshold on the TDF entity, and the PCEF entity collects charging information for the data flow and reports the charging information to the charging system;
  • the policy execution function entity collects the packet loss amount for the data flow, and when the packet loss amount reaches the set packet loss threshold, reporting the packet loss amount to the PCRF entity includes: The TDF entity reports the packet loss amount for the data stream, and when the packet loss amount reaches the packet loss threshold, the TDF entity reports the packet loss amount to the PCRF;
  • the reporting, by the PCRF entity, the amount of the packet loss to the charging system includes:
  • the PCRF entity directly reports the packet loss amount to the charging system, or the PCRF entity reports the packet loss amount to the charging system by using the PCEF entity;
  • the method further includes:
  • the charging system performs the charging correction according to the charging information reported by the PCEF entity and the amount of packet loss.
  • the embodiment of the invention further provides a policy execution device, comprising: a statistical unit, a determining unit and an upper unit, wherein:
  • the statistical unit is configured to: count the amount of packet loss for the data stream;
  • the determining unit is configured to: determine whether the amount of packet loss counted by the statistical unit reaches a set packet loss threshold;
  • the reporting unit is configured to report the packet loss amount to the policy and charging rule function PCRF device when the determining unit determines that the amount of packet loss reaches the set packet loss threshold.
  • the set packet loss threshold is previously configured on the policy execution device.
  • the set packet loss threshold is sent by the PCRF device to the policy enforcement device.
  • the set packet loss threshold is a value, or is a time.
  • the policy enforcement device is a policy and charging execution function PCEF entity or a flow detection function TDF entity.
  • the embodiment of the present invention further provides a policy and charging rule function PCRF device, including: a receiving unit and a sending unit, where:
  • the receiving unit is configured to: receive the amount of packet loss reported by the policy execution device;
  • the sending unit is configured to: report the received packet loss amount to the charging system.
  • the sending unit is further configured to: send a packet loss threshold to the policy execution device.
  • the packet loss threshold is a value, or is a time.
  • the sending unit is configured to report the received packet loss amount to the charging system in the following manner:
  • the packet loss function is sent to the charging system by the TDF entity; or the packet loss amount is reported to the charging system by the PCEF entity.
  • An optimization scheme for charging correction proposed by the technical solution of the present application solves the problem that the control of the same data stream is inconsistent on the PCEF and the TDF, resulting in inaccurate charging on the TDF and the PCEF. At the same time, it avoids the problem that the network processing burden is increased due to frequent transmission and processing of a large amount of usage information, which affects the stability of the network.
  • FIG. 1 is a schematic diagram of a related art 3GPP PCC architecture
  • FIG. 2 is a schematic diagram of data stream processing under the control of PCC of the related art
  • FIG. 3 is a flowchart of a charging method according to Embodiment 1 of the present invention.
  • FIG. 4 is a flowchart of a charging method of scenario 1 according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a charging method of scenario 2 according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a charging method of scenario 3 in the embodiment of the present invention.
  • FIG. 7 is a flowchart of a charging method of scenario 4 according to an embodiment of the present invention.
  • Embodiment 9 is a structural diagram of a policy execution device according to Embodiment 2 of the present invention.
  • Figure 10 is a structural diagram of a policy and charging rule function device of Embodiment 3 of the present invention. Preferred embodiment of the invention
  • a charging method is introduced.
  • the implementation process of the method is as shown in FIG. 3, and includes the following steps 301 to 303.
  • Step 301 The policy execution function entity collects the packet loss amount for the data flow, and reports the packet loss amount to the PCRF entity when the packet loss amount reaches the set packet loss threshold.
  • the set packet loss threshold may be configured on the policy execution device in advance, or may be sent by the policy control device to the policy execution device.
  • the policy control device is a PCRF entity.
  • the set packet loss threshold may be a value or a time.
  • the value is set to a value, that is, when the number of lost packets reaches a certain value, the report is triggered.
  • time that is, when the packet loss statistics reaches a certain time, the report is triggered.
  • the policy enforcement function entity includes a PCEF entity and a TDF entity. In this step, when the packet loss is counted for the data stream, it is performed by the PCEF entity or the TDF entity.
  • Step 302 The PCRF entity reports the packet loss amount to the charging system.
  • the policy control device directly reports the amount of packet loss to the charging system.
  • the policy control device reports the packet loss amount to the charging system through other network element devices.
  • the policy control device is PCRF step 303, and the charging system performs charging correction according to the amount of packet loss.
  • the TDF entity performs the charging, and sets the packet loss threshold on the PCEF entity.
  • the TDF entity collects the accounting information for the data flow and reports it to the charging system.
  • the PCEF entity collects the packet loss amount for the data flow, and when the packet loss reaches the packet loss. When the value is wide, the PCEF entity reports the packet loss to the PCRF entity, and the PCRF entity reports the packet loss amount to the charging system.
  • the charging system performs the charging correction according to the charging information reported by the TDF entity and the packet loss reported by the PCEF entity. .
  • the PCEF entity performs the charging, and sets the packet loss threshold on the TDF entity.
  • the PCEF entity collects the charging information for the data flow and reports it to the charging system.
  • the TDF entity counts the packet loss amount for the data flow. When the packet loss reaches the packet loss threshold, the TDF entity reports the packet loss to the PCRF entity, and the PCRF entity reports the packet loss to the charging system.
  • the charging system reports the accounting information reported by the PCEF and the TDF entity reports the lost packet. The amount is performed to perform billing correction.
  • This topic describes how to implement accounting on the TDF, configure the packet loss threshold on the PCEF, and perform packet loss statistics on the service that sends the service information to the AF.
  • the billing process is as shown in Figure 4, including the following steps:
  • Step 401 Configure a packet loss threshold on the PCEF.
  • the packet loss threshold configured on the PCEF may be a packet loss value, that is, when the number of packet loss statistics reaches a certain value, it needs to be reported.
  • the packet loss threshold can also be a time value, that is, when the packet loss statistics reach a certain time, it needs to be reported.
  • the packet loss threshold configured on the PCEF can be used for each service data stream on the PCEF.
  • the same packet loss threshold can be used for each data stream on the PCEF.
  • Step 402 Install an ADC rule on the TDF.
  • the ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF. Send the SDF Template corresponding to all activated PCC rules on the PCEF to the TDF.
  • Step 403 The user conducts a service, and the AF sends the service information to the PCRF.
  • Step 404 The PCRF makes policy decisions for the service according to the service information, the user subscription information, and the operator policy, and formulates a PCC rule for the service data flow.
  • Step 405 The PCRF sends the PCC rule to the PCEF.
  • Step 406 The PCRF sends the SDF Template corresponding to the PCC rule to the TDF, and the TDF performs the SDF Template update.
  • Step 407 When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF.
  • Step 408 The TDF detects the quintuple of the service data stream, and matches all the SDF templates on the quintuple and the TDF.
  • the TDF collects usage for the business data stream.
  • the business The usage of the data stream and the corresponding SDF Template are reported to the OCS.
  • Step 409 When the service data flow arrives at the PCEF, the PCEF performs policy control on the service data flow according to the PCC rule.
  • Step 410 The PCEF collects a packet loss amount of the service data flow.
  • Step 411 The PCEF reports the packet loss amount and the SDF Template of the service data flow to the PCRF when the packet loss of the service data flow reaches the threshold.
  • Step 412 The PCRF reports the packet loss and the SDF template of the service data flow to the OCS. In fact, there are two methods:
  • the PCRF directly reports the SDF Template and the packet loss information of the service data flow to the OCS through the Sy interface.
  • the PCRF reports the SDF Template and the packet loss information of the service data flow to the TDF through the Sd interface, and then the TDF sends the SDF Template and the packet loss amount to the OCS.
  • Step 413 The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported by the PCRF or the TDF, and the OCS deducts the packet loss information from the usage information to obtain the service data flow. Accurate traffic, so that accurate accounting can be implemented for the service data flow.
  • the accounting is implemented on the TDF, and the packet loss threshold is sent to the PCEF through the PCRF, and the packet loss statistics are performed on the service that sends the service information to the AF.
  • the accounting process is as shown in Figure 5, including the following steps:
  • Step 501 Install an ADC rule on the TDF.
  • the ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF.
  • the SDF template corresponding to the PCC rule activated on the PCEF is reported to the TDF.
  • Step 502 The user conducts a service, and the AF sends the service information to the PCRF.
  • Step 503 The PCRF performs policy decision on the service according to the service information, the user subscription information, and the operator policy, and formulates a PCC rule for the service data flow.
  • Step 504 The PCRF sends the PCC rule to the PCEF.
  • Step 505 The PCRF sends the SDF Template corresponding to the PCC rule to the TDF.
  • the TDF collects the usage of the service data stream.
  • the TDF reports the SDF Template and the collected usage information that match the service data flow to the OCS.
  • Step 508 The TDF reports the SDF Template matching the quintuple of the service data flow to the PCRF.
  • Step 509 The PCRF sends the SDF template and the packet loss threshold to the PCEF, and the packet data of the service data flow corresponding to the SDF template needs to be performed, and the packet loss amount needs to be reported when the threshold is reached.
  • Step 510 When the service data flow reaches the PCEF, the PCEF performs policy control on the service data flow according to the PCC rule.
  • Step 511 The PCEF, according to the indication, calculates a packet loss amount for the service data flow corresponding to the SDF template.
  • Step 512 The PCEF reports the packet loss amount and the SDF template to the PCRF when the packet loss amount of the service data flow reaches the threshold.
  • Step 513 The PCRF reports the packet loss amount and the SDF template to the OCS. It reports the process reference step 411 of the scenario one.
  • Step 514 The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported in step 513, and the OCS deducts the usage information from the usage information to obtain the service data flow. Accurate traffic, so that accurate accounting can be implemented for the service data flow. If the service data stream has arrived at the PCEF and starts to lose packets before the PCRF sends the packet loss statistics indication to the PCEF in step 509, the packet loss pre-statistics may be set in the PCEF, and after receiving the indication, It is included in the scope of official statistics. If the indication is not received, the PCEF discards the amount of packet loss for that portion. Scene three
  • the accounting is implemented on the TDF, and the packet loss threshold is sent to the PCEF through the PCRF to perform packet loss statistics on the application service that needs TDF detection.
  • the accounting process is shown in Figure 6, which includes the following steps:
  • Step 601 Install an ADC rule on the TDF.
  • the ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF.
  • the SDF template corresponding to the PCC rule activated on the PCEF is reported to the TDF.
  • Step 602 When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF. When the quintuple of the service data stream is detected, the quintuple is matched with all SDF templates on the TDF.
  • Step 603 The TDF collects the usage corresponding to the service data flow.
  • the TDF will match the SDF Template and the collected usage of the quintuple of the service data stream to the OCS.
  • Step 604 The TDF reports the SDF Template matching the quintuple of the service data flow to the PCRF.
  • Step 605 The PCRF sends the SDF template and the packet loss threshold to the PCEF, and the indication needs to perform packet loss statistics on the service data flow corresponding to the SDF template, and needs to report the packet loss amount when the threshold is reached.
  • Step 606 When the service data flow arrives at the PCEF, the PCEF performs policy control on the service data flow according to the PCC rule.
  • Step 607 The PCEF, according to the indication, counts the amount of packet loss for the service data flow corresponding to the SDF template.
  • Step 608 The PCEF reports the packet loss amount and the SDF template to the PCRF when the packet loss statistics of the service data flow reaches the threshold.
  • Step 609 The PCRF reports the packet loss amount and the SDF template to the OCS. It reports the process reference step 411 of the scenario one.
  • Step 610 The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported in step 609, and the OCS deducts the usage information.
  • the packet loss information obtains the accurate traffic of the service data flow, so that the service data flow can be accurately charged.
  • the accounting is implemented on the PCEF, and the packet loss threshold is sent to the TDF through the PCRF to perform packet loss statistics on the application service that needs TDF detection.
  • the charging process in this scenario is shown in Figure 7, and includes the following steps:
  • Step 701 Install an ADC rule on the TDF.
  • the ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF.
  • the SDF template corresponding to the PCC rule activated on the PCEF is reported to the TDF.
  • Step 702 When the service data flow arrives at the PCEF, the PCEF performs uplink bearer binding verification, verifies whether the service data flow uses the corresponding bearer transmission, and executes a corresponding control policy.
  • Step 703 The PCEF collects the usage of the service data flow, and reports the usage and the SDF Template of the service data flow to the OCS.
  • Step 704 When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF. When the quintuple of the service data stream is detected, the quintuple is matched with all SDF templates on the TDF.
  • Step 705 If the quintuple of the service data stream matches the SDF template, the TDF reports the SDF template that matches the quintuple of the service data flow to the PCRF.
  • Step 706 The PCRF sends the SDF template and the packet loss threshold to the TDF, indicating that the packet data is to be sent for the service data flow corresponding to the SDF template, and the packet loss amount needs to be reported when the threshold is reached.
  • Step 707 When the service data flow reaches the PCEF, the PCEF performs policy control on the service data flow according to the PCC rule.
  • Step 708 The TDF calculates the amount of packet loss for the service data flow corresponding to the SDF Template according to the indication.
  • Step 709 When the TDF statistics on the packet loss of the service data flow reaches a threshold, the TDF will use the packet loss amount and the JDF PCRF on the SDF Template. In step 710, the PCRF reports the packet loss and the SDF template of the service data flow to the OCS.
  • the PCRF directly reports the SDF Template and the packet loss information of the service data flow to the OCS through the Sy interface.
  • the PCRF reports the SDF of the service data flow to the PCEF through the Gx interface.
  • Step 711 The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported in step 710, and the OCS deducts the usage information from the usage information to obtain the service data flow. Accurate traffic, so that accurate accounting can be implemented for the service data flow.
  • the accounting is implemented on the PCEF.
  • the packet loss threshold is configured on the TDF to perform packet loss statistics on the application services that require TDF detection.
  • the charging process in this scenario is shown in Figure 8. It includes the following steps:
  • Step 801 Configure a packet loss threshold on the TDF.
  • the threshold value can be the value of the packet loss amount, that is, when the packet loss statistics reaches a certain amount, the value needs to be reported, or the threshold value is a time threshold, that is, when the packet loss statistics reaches a certain time, it needs to be up.
  • the packet loss threshold configured on the TDF can be used for each service data stream on the TDF.
  • Step 802 Install an ADC rule on the TDF.
  • the ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF. Send the SDF Template corresponding to all activated PCC rules on the PCEF to the TDF.
  • Step 803 When the service data flow arrives at the PCEF, the PCEF performs uplink bearer binding verification, verifies whether the service data flow uses the corresponding bearer transmission, and executes a corresponding control policy.
  • Step 804 The PCEF collects the usage of the service data flow, and reports the usage and the SDF template corresponding to the service data flow to the OCS.
  • Step 805 When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF. Detecting a five-tuple of the business data stream, and the five-tuple and TDF All SDF Templates are matched. And counting the amount of packet loss of the service data flow.
  • Step 806 When the packet loss amount of the service data stream reaches a threshold, the TDF sends the packet loss amount to the SDF Template corresponding to the service data stream.
  • Step 807 The PCRF reports the packet loss and the SDF template of the service data flow to the OCS. In fact, there are two methods:
  • the PCRF directly reports the SDF Template and the packet loss information of the service data flow to the OCS through the Sy interface.
  • the PCRF reports the SDF Template and the packet loss information of the service data flow to the PCEF through the Gx interface, and the PCEF sends the SDF Template and the packet loss amount to the OCS.
  • Step 808 The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported in step 807, and the OCS deducts the usage information from the usage information to obtain the service data flow. Accurate traffic, so that accurate accounting can be implemented for the service data flow.
  • a charging device is introduced, which includes at least a policy execution device, a policy control device, and a charging system.
  • the policy execution device is configured to: report the packet loss amount to the data flow, and report the packet loss amount to the policy control device when the packet loss amount reaches the set packet loss threshold;
  • the set packet loss threshold is configured on the policy execution device in advance, or may be sent to the policy execution device by the policy control device.
  • the set packet loss threshold may be a packet loss threshold, that is, when the packet loss statistics reach a certain amount, it needs to be reported, or the threshold may be a time threshold, that is, the packet loss statistics reach a certain value. Time needs to be reported.
  • the policy enforcement device may be a PCEF entity or a TDF entity.
  • the policy control device is configured to: report the received packet loss amount to the charging system;
  • the policy control device can directly report the packet loss amount to the charging system. Or the policy control device reports the packet loss amount to the charging system through the TDF entity or the PCEF entity.
  • the policy control device is a PCRF entity.
  • the charging system is configured to: perform charging correction according to the received packet loss amount.
  • the following describes the working process of the above device in combination with the application scenario.
  • the PCEF entity is a policy enforcement device, and the TDF entity performs charging.
  • the TDF entity collects charging information for the data flow and reports it to the charging system.
  • the PCEF entity collects the packet loss amount for the data flow. When the packet loss reaches the packet loss. When the value is wide, the PCEF entity reports the packet loss to the PCRF entity, and the PCRF entity reports the packet loss to the charging system.
  • the charging system can report the packet loss information reported by the TDF entity and the packet loss reported by the PCEF entity. Perform the billing correction.
  • the PCEF entity collects the charging information for the data flow and reports it to the charging system.
  • the TDF entity collects the packet loss amount for the data flow, and when the packet loss reaches the lost amount.
  • the TDF entity reports the packet loss to the PCRF entity, and the PCRF entity reports the packet loss to the charging system.
  • the charging system performs the accounting information reported by the PCEF entity and the packet loss reported by the TDF entity. Billing correction can be.
  • a policy execution device is introduced. As shown in FIG. 9, the policy execution device includes at least a statistics unit 91, a determining unit 92, and an upper unit 93.
  • the statistical unit 91 is configured to: count the amount of packet loss for the data stream;
  • the determining unit 92 is configured to: determine whether the counted amount of lost packets reaches a set value of the lost packet; it should be noted that the packet loss threshold used by the determining unit 92 in the determining operation is configured in advance in the policy execution. On the device. It can also be sent to the policy execution device by the PCRF device. In addition, the set packet loss threshold may be a value or a time.
  • the reporting unit 93 is configured to report the packet loss amount to the PCRF device when it is determined that the packet loss amount reaches the set packet loss threshold.
  • the above policy enforcement device may use a PCEF device or a TDF device.
  • Embodiment 3 This embodiment introduces a PCRF device. As shown in FIG. 10, the PCRF device includes: a receiving unit 101 and a transmitting unit 102.
  • the receiving unit 101 is configured to: receive a packet loss amount reported by the policy execution device;
  • the sending unit 102 is configured to: report the received packet loss amount to the charging system.
  • the packet loss amount can be directly reported to the charging system.
  • the preferred solution proposes that the sending unit 102 in the PCRF device can report the packet loss amount to the policy execution device, so that the policy execution device can use the packet loss threshold according to the packet loss threshold. Determine when to report the amount of lost packets.
  • the packet loss threshold may be a value or a time.
  • the problem that the control is inconsistent on the PCEF and the TDF for the same data flow is solved, and the usage inconsistency between the TDF and the PCEF causes the charging to be inaccurate.
  • the network processing burden caused by frequent transmission and processing of a large amount of usage information leads to network stability.

Abstract

A charging method, and policy enforcement and policy and charging rules function devices. The charging method comprises: a policy enforcement function entity collecting statistics on a packet loss amount for a data stream, and when the packet loss amount reaches a set packet loss threshold, reporting the packet loss amount to a policy and charging rules function entity; the policy and charging rules function entity reporting the packet loss amount to a charging system; and the charging system executing charging correction according to the packet loss amount.

Description

一种计费方法以及策略执行、 策略和计费规则功能设备  Accounting method and policy execution, policy and charging rule function device
技术领域 Technical field
本发明涉及通信领域, 尤其涉及一种计费方法以及策略执行、 策略和计 费规则功能设备。  The present invention relates to the field of communications, and in particular, to a charging method and a policy enforcement, policy, and charging rule function device.
背景技术 Background technique
第三代合作伙伴计划(3GPP, 3rd Generation Partnership Project )定义的 针对移动网络的策略和计费控制(PCC, Policy and Charging Control )架构如 图 1所示, 各实体功能如下描述:  The Policy and Charging Control (PCC) architecture defined by the 3rd Generation Partnership Project (3GPP) is shown in Figure 1. The functions of each entity are described as follows:
PCRF ( Policy and Charging Rules Function, 策略和计费规则功能)为业 务包含的业务数据流在传输过程中使用网络资源制定资源控制策略, 包括 QoS ( Quality of Service, 服务质量)控制策略和计费控制策略。  The Policy and Charging Rules Function (PCRF) is used to formulate resource control policies, including QoS (Quality of Service) control policies and charging control, for the service data flows included in the service. Strategy.
PCEF( Policy and Charging Enforcement Function,策略和计费执行功能 ) 用于执行 PCRF下发的或者 PCEF上预配置的 PCC规则,对网络上传输的互 联网协议( Internet Protocol, IP )报文进行检测 , 识别该 IP报文隶属的业务 数据流, 并对业务数据流提供 QoS和计费控制。  PCEF (Policy and Charging Enforcement Function) is used to perform PCC rules pre-configured on the PCF or preconfigured on the PCEF to detect and identify Internet Protocol (IP) packets transmitted on the network. The service data flow to which the IP packet belongs, and provides QoS and charging control for the service data flow.
BBERF ( Bearer Binding and Event Report Function, 载绑定和事件上才艮 功能 )主要用于对网络上传输的 IP报文进行检测, 并将 IP报文按照规则映 射到承载通道上。 BBERF还执行承载相关事件的上报, 例如, 当承载丟失, 或者发生接入网络切换的时候, 都需要将事件上报给 PCRF, 请求 PCRF进 行决策。  The BBERF (Bearer Binding and Event Report Function) is mainly used to detect IP packets transmitted on the network and map the IP packets to the bearer channel according to the rules. The BBERF also performs the reporting of the bearer-related event. For example, when the bearer is lost or the access network is switched, the event is reported to the PCRF to request the PCRF to make a decision.
TDF ( Traffic Detection Function, 流检测功能)用于执行应用检测, 并 将检测的应用信息上报给 PCRF。 还可以实现对检测到的应用按照 PCRF下 发的策略实施策略控制, 例如, 门控、 带宽限制、 应用重定向, 以及收集并 向计费系统上报计费信息等。  The TDF (Traffic Detection Function) is used to perform application detection and report the detected application information to the PCRF. It is also possible to implement policy control on the detected application according to the policy issued by the PCRF, for example, gating, bandwidth limitation, application redirection, and collecting and reporting charging information to the charging system.
SPR ( Subscription Profile Repository, 用户签约数据库)用于保存用户签 约的业务信息, 为 PCRF 制订 PCC 规则提供必要的用户签约信息。 OCS ( Online Charging System,在线计费系统)和 OFCS( Offline Charging System, 离线计费系统)分别用于离线计费和在线计费。 The SPR (Subscription Profile Repository) is used to store the service information subscribed by the user, and provides the necessary user subscription information for the PCRF to formulate PCC rules. OCS (Online Charging System, Online Charging System) and OFCS (Offline Charging System) are used for offline charging and online charging, respectively.
用户在接入网络时, PCEF 和 PCRF 之间建立 IP 连接接入网 (IP Connectivity Access Network, IP-CAN )会话,用于所述用户开展业务过程中, PCRF向 PCEF下发针对业务数据流的 QoS和计费策略。 PCC对业务提供 QoS 和计费控制的过程如下描述:  When the user accesses the network, an IP Connectivity Access Network (IP-CAN) session is established between the PCEF and the PCRF, and the PCRF sends the service data flow to the PCEF. QoS and charging policies. The process by which PCC provides QoS and charging control for services is described as follows:
用户开展业务的时候, 应用功能(Application Function, AF )将业务信 息或者 TDF将检测到的应用信息上报给 PCRF,所述业务信息和 /或应用信息 中包含了五元组以及其他如业务 /应用类型等信息。 PCRF根据所述业务信息 和 /或应用信息, 为数据流制定 PCC规则, 所述 PCC规则包含业务数据流模 板( Service Data Flow Template, SDF Template, 即, 包含五元组信息) 、 业 务 /应用标识、 授权 QoS和带宽 (包括 QoS分类标识 ( QoS Class Identifier, QCI )、最大比特率( Maximum Bit Rate, MBR )和保证比特速率( Guaranteed Bit Rate, GBR ) ) , 以及计费策略等。 PCRF将所述 PCC规则下发给 PCEF。 PCEF按照 QCI执行承载绑定, 如果已有承载的 QCI和 PCC规则中的 QCI 对应, 则将该 PCC规则绑定到该承载上; 如果没有承载的 QCI和 PCC规则 中的 QCI对应,则 PCEF发起和该 QCI匹配的承载建立, 并将该 PCC规则绑 定到该承载中。当承载绑定完成之后,就建立了 PCC规则和承载的对应关系。 具有相同 QCI的 PCC规则可以绑定到同一个承载中, 即, 多个业务数据流 可以共享同一个承载。 此后当数据报文经过 PCEF时, PCEF将该数据报文 的五元组和承载上的 SDF Template进行匹配。 当和其中 SDF Template匹配 时, 就知道该数据报文用哪个 PCC规则控制, 再根据 PCC规则和承载的绑 定关系, 知道该数据报文使用哪个承载。 从而为该数据报文提供对应的 QoS 和带宽保证, 同时按照计费策略, 收集该数据报文的计费信息, 并上报给计 费系统。  When the user conducts the service, the application function (AF) reports the service information or the application information detected by the TDF to the PCRF, where the service information and/or the application information includes a quintuple and other services such as services/applications. Type and other information. The PCRF formulates a PCC rule for the data flow according to the service information and/or the application information, where the PCC rule includes a Service Data Flow Template (SDF Template, ie, contains quintuple information), and a service/application identifier. Authorized QoS and bandwidth (including QoS Class Identifier (QCI), Maximum Bit Rate (MBR) and Guaranteed Bit Rate (GBR)), and charging policies. The PCRF sends the PCC rule to the PCEF. The PCEF performs the bearer binding according to the QCI. If the QCI of the existing bearer corresponds to the QCI in the PCC rule, the PCC rule is bound to the bearer. If the QCI of the bearer does not correspond to the QCI of the PCC rule, the PCEF initiates A bearer that matches the QCI is established, and the PCC rule is bound to the bearer. After the bearer binding is completed, the correspondence between the PCC rules and the bearers is established. PCC rules with the same QCI can be bound to the same bearer, that is, multiple service data streams can share the same bearer. Thereafter, when the data packet passes through the PCEF, the PCEF matches the quintuple of the data packet with the SDF Template on the bearer. When it matches the SDF template, it knows which PCC rule is used for the data packet, and then according to the binding relationship between the PCC rule and the bearer, it knows which bearer to use for the data packet. Therefore, the data packet is provided with a corresponding QoS and bandwidth guarantee, and the charging information of the data packet is collected and reported to the charging system according to the charging policy.
上述承载分为 GBR承载和非 GBR ( Non-GBR )承载。 其中 GBR承载 是为业务数据流提供绝对的 QoS和带宽保证, 即, 使用该承载的数据报文一 定会按照授权分配的 QoS和带宽资源为其提供服务质量保证, 即使在网络发 生资源使用紧张的情况下, 也不会被其他数据报文抢占资源。 Non-GBR承载 是为业务数据流提供相对的 QoS和带宽保证。 所有 Non-GBR承载上的业务 数据流都共享一个接入点名称-聚合最大比特率 ( Access Point Name-Aggregate Maximum Bit Rate , APN-AMBR ) (该信息为用户开展的所 有 Non-GBR业务共享的签约带宽,在 IP-CAN会话建立时,下发给 PCEF )。 当网络资源足够可以按照每个业务数据流的授权 QoS 和带宽分配给所述业 务数据流的时候, 可以为其提供 QoS和带宽保证, 当网络资源发生使用紧张 的时候, 所述业务数据流就会按照 QCI执行资源抢占。 因此使用 Non-GBR 承载的业务无法从网络获得可靠的 QoS和带宽保证。 The above bearers are classified into GBR bearers and non-GBR (Non-GBR) bearers. The GBR bearer provides absolute QoS and bandwidth guarantee for the service data flow. That is, the data packet using the bearer must provide the service quality guarantee according to the QoS and bandwidth resources allocated by the authorization, even if the resource usage is tight in the network. In this case, resources will not be seized by other data packets. Non-GBR bearer It provides relative QoS and bandwidth guarantees for business data flows. All the service data flows on the Non-GBR bearer share an Access Point Name-Aggregate Maximum Bit Rate (APN-AMBR) (this information is shared by all Non-GBR services carried out by the user. The contracted bandwidth is delivered to the PCEF when the IP-CAN session is established. When the network resources are sufficient to be allocated to the service data flow according to the authorized QoS and bandwidth of each service data flow, QoS and bandwidth guarantee may be provided for the network data resources. When the network resources are used, the service data flow is Resource preemption will be performed in accordance with QCI. Therefore, services carried using Non-GBR cannot obtain reliable QoS and bandwidth guarantee from the network.
当网络中部署了 TDF, 在计费时存在计费不准确的问题。 以下行数据流 (网络发送给用户 )为例, 如图 2所示, 当所述数据流以 200kb/S的速率通 过 TDF的时候, TDF按照 PCRF下发的应用检测和控制( Application Detection and Control, ADC )规则对该数据流进行检测, 识别出应用, 并按照 TDF上 的控制策略, 允许该数据流通过, 并记录流量信息, 上报给计费系统。 但是 当该数据流到达 PCEF时, 该数据流的五元组和 SDF Template匹配, PCEF 按照对应的 PCC规则对其实施控制, 进行限速, 流量变为 150kb/s, 并导致 丟包。 由于 TDF并不知道该流经过 PCEF时进行了限速, 导致丟包, 进而导 致 TDF上的流量大于 PCEF上的流量。 在这种情况下对用户收费的时候, 应 该按照实际接收的流量(即,在 PCEF上丟包后的流量 )进行计费,显然 TDF 上报给计费系统的流量是不准确的, 按照此部分流量进行计费, 必然导致多 收费的问题。  When TDF is deployed on the network, there is a problem of inaccurate charging during billing. For example, as shown in Figure 2, when the data stream passes through the TDF at a rate of 200 kb/s, the TDF applies detection and control according to the application sent by the PCRF (Application Detection and Control). The ADC rule detects the data stream, identifies the application, and allows the data flow to pass according to the control policy on the TDF, and records the traffic information and reports it to the charging system. However, when the data stream arrives at the PCEF, the quintuple of the data stream matches the SDF template, and the PCEF controls the PCEC according to the corresponding PCC rules, and the traffic is changed to 150 kb/s, causing packet loss. Since TDF does not know that the flow rate is limited when it passes through the PCEF, it causes packet loss, which in turn causes the traffic on the TDF to be larger than the traffic on the PCEF. When the user is charged in this case, the traffic should be charged according to the actual received traffic (that is, the traffic after packet loss on the PCEF). Obviously, the traffic reported by the TDF to the charging system is inaccurate. The billing of traffic will inevitably lead to the problem of excessive charges.
针对上述针对相同数据流在 TDF和 PCEF控制不一致,进而导致用量(例 如, 流量、 时间等) 不一致, 产生计费不准确的情况, 相关技术中对此提出 了一种解决方法, 包括如下步骤:  For the above-mentioned inconsistency in the control of the TDF and the PCEF for the same data stream, and thus the usage (for example, the traffic, the time, and the like) is inconsistent, and the charging is inaccurate, the related art proposes a solution, which includes the following steps:
步骤( 1 ) , 将 PCEF上的所有 SDF Template通过 PCRF上报给 TDF。 步骤(2 ) , 当数据流经过 TDF, 进行检测时, TDF将该数据流的五元 组信息和 SDF Template匹配。  Step (1), all the SDF templates on the PCEF are reported to the TDF through the PCRF. Step (2), when the data stream passes through the TDF for detection, the TDF matches the quintuple information of the data stream with the SDF Template.
如果五元组信息和所有 SDF Template都不匹配,说明在 PCEF上没有对 应的 PCC规则控制该数据流, 因此流经 TDF的用量和流经 PCEF上的用量 一致, 不会出现计费不准确的情况。该情况下 TDF直接向计费系统上报用量 信息。 If the quintuple information and all the SDF templates do not match, there is no corresponding PCC rule on the PCEF to control the data flow. Therefore, the amount of the TDF flowing through the PCEF is the same as the amount flowing through the PCEF, and the charging is not accurate. Happening. In this case, the TDF reports the usage directly to the billing system. Information.
如果五元组信息和其中的 SDF Template匹配,说明在 PCEF上有对应的 PCC规则控制该数据流,则有可能导致该数据流在 TDF和 PCEF上的用量不 一致。  If the quintuple information matches the SDF template, it means that there is a corresponding PCC rule on the PCEF to control the data flow, which may result in the usage of the data stream on the TDF and PCEF.
步骤( 3 ),在步骤( 2 )匹配的情况下, TDF将该数据流对应的 SDF Template 上报给 PCRF。  Step (3), in the case that the step (2) is matched, the TDF reports the SDF template corresponding to the data stream to the PCRF.
步骤( 4 ) , PCRF要求 PCEF上报该 SDF Template对应的数据流的用量 信息, 并将用量信息下发给 TDF。  In step (4), the PCRF requests the PCEF to report the usage information of the data stream corresponding to the SDF template, and sends the usage information to the TDF.
步骤(5 ) , TDF进行用量校正。  In step (5), the TDF is used for the amount correction.
例如, TDF比较 TDF上收集的用量和从 PCEF上收集的用量(通过 PCRF 上报给 TDF ) , 如果 TDF上的用量大于 PCEF上的用量, 则 TDF将 PCEF 收集的用量上报给计费系统, 如果 TDF上的用量小于 PCEF上的用量, 则 TDF将自己收集的用量上^艮给计费系统。  For example, TDF compares the amount collected on the TDF with the amount collected from the PCEF (reported to the TDF via the PCRF). If the amount on the TDF is greater than the amount on the PCEF, the TDF reports the amount collected by the PCEF to the billing system, if TDF If the amount used is less than the amount on the PCEF, the TDF will charge the amount collected by itself to the billing system.
在上述对数据流的控制过程中, 为了达到准确计费的目的, PCRF 需要 不断监控 PCEF上的用量, 并需要通过 PCRF传递给 TDF, 或者在 TDF上监 控用量并通过 PCRF将用量传递给 PCEF,以进行用量校正,实现准确计费。 这种在 Gx接口 ( PCEF和 PCRF之间) 、 Sd接口 ( TDF和 PCRF之间)上 传递用量的方式, 在网络中有大量数据流的时候, 就会导致频繁传递和处理 用量信息, 这样势必会增加系统设备的处理负担, 影响网络稳定性。 发明内容  In the above process of controlling the data flow, in order to achieve accurate billing, the PCRF needs to continuously monitor the amount on the PCEF, and needs to pass it to the TDF through the PCRF, or monitor the amount on the TDF and pass the amount to the PCEF through the PCRF. For quantity correction, accurate billing is achieved. This way of transferring usage on the Gx interface (between PCEF and PCRF) and Sd interface (between TDF and PCRF), when there are a large number of data streams in the network, it will cause frequent transmission and processing of usage information, which is bound to be It will increase the processing load of system equipment and affect network stability. Summary of the invention
本发明实施例提供一种计费方法以及策略执行、 策略和计费规则功能设 备, 以提高计费的准确度。  The embodiments of the present invention provide a charging method and a policy execution, policy, and charging rule function device to improve the accuracy of charging.
本发明实施例提供了一种计费方法, 包括:  The embodiment of the invention provides a charging method, including:
策略执行功能实体针对数据流统计丟包量, 当丟包量达到设定的丟包阔 值时, 向策略和计费规则功能 PCRF实体上报所述丟包量;  The policy execution function entity reports the packet loss amount for the data flow, and reports the packet loss amount to the policy and charging rule function PCRF entity when the packet loss amount reaches the set packet loss threshold.
所述 PCRF实体将所述丟包量上报给计费系统; 以及  The PCRF entity reports the packet loss amount to the charging system;
所述计费系统根据所述丟包量执行计费校正。 可选地,所述设定的丟包阔值在所述策略执行功能实体上预配置;或者, The charging system performs charging correction according to the amount of packet loss. Optionally, the set packet loss threshold is pre-configured on the policy execution function entity; or
可选地, 所述策略执行功能实体为策略和计费执行功能 PCEF实体或者 流检测功能 TDF实体。 Optionally, the policy enforcement function entity is a policy and charging execution function PCEF entity or a flow detection function TDF entity.
可选地, 所述 PCRF实体将所述丟包量上 ^艮给所述计费系统包括: 所述 PCRF实体直接将所述丟包量上报给所述计费系统; 或者  Optionally, the PCRF entity sends the packet loss amount to the charging system: the PCRF entity directly reports the packet loss amount to the charging system; or
所述 PCRF实体通过 TDF实体将所述丟包量上报给所述计费系统;或者 所述 PCRF实体设备通过 PCEF实体将所述丟包量上报给所述计费系统。 可选地, 所述设定的丟包阔值为一数值, 或者为一时间。  The PCRF entity reports the packet loss amount to the charging system by using a TDF entity; or the PCRF entity device reports the packet loss amount to the charging system by using a PCEF entity. Optionally, the set packet loss threshold is a value, or is a time.
可选地, 上述方法还包括:  Optionally, the foregoing method further includes:
所述 TDF实体执行计费, 则在 PCEF实体上设置丟包阔值, 所述 TDF 实体针对数据流收集计费信息并上报给所述计费系统; 其中, 所述策略执行功能实体针对数据流统计丟包量, 当所述丟包量达 到设定的丟包阔值时, 向 PCRF实体上报所述丟包量包括:  The TDF entity performs charging, and sets a packet loss threshold on the PCEF entity, and the TDF entity collects charging information for the data flow and reports the information to the charging system; wherein the policy execution function entity is for the data flow. The amount of packet loss is reported, and when the packet loss reaches the set packet loss threshold, reporting the packet loss to the PCRF entity includes:
所述 PCEF实体针对数据流统计丟包量,当丟包量达到所述丟包阔值时, 所述 PCEF实体将所述丟包量上报给所述 PCRF实体;  The PCEF entity collects the packet loss amount for the data flow, and when the packet loss amount reaches the packet loss threshold, the PCEF entity reports the packet loss amount to the PCRF entity;
所述 PCRF实体将所述丟包量上报给计费系统包括:  The reporting, by the PCRF entity, the amount of the packet loss to the charging system includes:
所述 PCRF实体直接将所述丟包量上报给所述计费系统,或者所述 PCRF 实体通过所述 TDF将所述丟包量上 ^艮给所述计费系统;  The PCRF entity directly reports the packet loss amount to the charging system, or the PCRF entity sends the packet loss amount to the charging system through the TDF;
所述方法还包括:  The method further includes:
所述计费系统根据所述 TDF 实体上报的计费信息和所述丟包量执行计 费校正。  The charging system performs the charging correction according to the charging information reported by the TDF entity and the amount of packet loss.
可选地, 上述方法还包括:  Optionally, the foregoing method further includes:
所述 PCEF实体执行计费, 则在 TDF实体上设置丟包阔值, 所述 PCEF 实体针对数据流收集计费信息并上报给所述计费系统;  The PCEF entity performs charging, and sets a packet loss threshold on the TDF entity, and the PCEF entity collects charging information for the data flow and reports the charging information to the charging system;
其中, 所述策略执行功能实体针对数据流统计丟包量, 当所述丟包量达 到设定的丟包阔值时, 向 PCRF实体上报所述丟包量包括: 所述 TDF实体针对数据流统计丟包量, 当丟包量达到所述丟包阔值时, 所述 TDF实体将所述丟包量上报给所述 PCRF; The policy execution function entity collects the packet loss amount for the data flow, and when the packet loss amount reaches the set packet loss threshold, reporting the packet loss amount to the PCRF entity includes: The TDF entity reports the packet loss amount for the data stream, and when the packet loss amount reaches the packet loss threshold, the TDF entity reports the packet loss amount to the PCRF;
所述 PCRF实体将所述丟包量上报给计费系统包括:  The reporting, by the PCRF entity, the amount of the packet loss to the charging system includes:
所述 PCRF实体直接将所述丟包量上报给所述计费系统,或者所述 PCRF 实体通过所述 PCEF实体将所述丟包量上报给所述计费系统;  The PCRF entity directly reports the packet loss amount to the charging system, or the PCRF entity reports the packet loss amount to the charging system by using the PCEF entity;
所述方法还包括:  The method further includes:
所述计费系统根据所述 PCEF实体上报的计费信息和所述丟包量执行计 费校正。 本发明实施例还提供了一种策略执行设备, 包括: 统计单元、 判断单元 及上 4艮单元, 其中:  The charging system performs the charging correction according to the charging information reported by the PCEF entity and the amount of packet loss. The embodiment of the invention further provides a policy execution device, comprising: a statistical unit, a determining unit and an upper unit, wherein:
所述统计单元设置成: 针对数据流统计丟包量;  The statistical unit is configured to: count the amount of packet loss for the data stream;
所述判断单元设置成: 判断所述统计单元统计的丟包量是否达到设定的 丟包阔值; 以及  The determining unit is configured to: determine whether the amount of packet loss counted by the statistical unit reaches a set packet loss threshold;
所述上报单元设置成: 在所述判断单元判断统计的丟包量达到设定的丟 包阔值时, 将所述丟包量上报给策略和计费规则功能 PCRF设备。  The reporting unit is configured to report the packet loss amount to the policy and charging rule function PCRF device when the determining unit determines that the amount of packet loss reaches the set packet loss threshold.
可选地, 所述设定的丟包阔值是事先配置在所述策略执行设备上的; 或 者,  Optionally, the set packet loss threshold is previously configured on the policy execution device; or
所述设定的丟包阔值由所述 PCRF设备下发给所述策略执行设备的。 可选地, 所述设定的丟包阔值为一数值, 或者为一时间。  The set packet loss threshold is sent by the PCRF device to the policy enforcement device. Optionally, the set packet loss threshold is a value, or is a time.
可选地, 所述策略执行设备为策略和计费执行功能 PCEF实体或者流检 测功能 TDF实体。  Optionally, the policy enforcement device is a policy and charging execution function PCEF entity or a flow detection function TDF entity.
本发明实施例还提供了一种策略和计费规则功能 PCRF设备, 包括: 接 收单元和发送单元, 其中:  The embodiment of the present invention further provides a policy and charging rule function PCRF device, including: a receiving unit and a sending unit, where:
接收单元设置成: 接收策略执行设备上报的丟包量; 以及  The receiving unit is configured to: receive the amount of packet loss reported by the policy execution device;
发送单元设置成: 将所接收到的丟包量上报给计费系统。  The sending unit is configured to: report the received packet loss amount to the charging system.
可选地, 所述发送单元还设置成: 向策略执行设备下发丟包阔值。 可选地, 所述丟包阔值为一数值, 或者为一时间。 Optionally, the sending unit is further configured to: send a packet loss threshold to the policy execution device. Optionally, the packet loss threshold is a value, or is a time.
可选地, 所述发送单元是设置成以如下方式将所接收到的丟包量上报给 计费系统:  Optionally, the sending unit is configured to report the received packet loss amount to the charging system in the following manner:
直接将所述丟包量上报给所述计费系统; 或者  Directly reporting the amount of the packet loss to the charging system; or
通过流检测功能 TDF实体将所述丟包量上 给所述计费系统; 或者 通过策略和计费执行功能 PCEF实体将所述丟包量上报给所述计费系统。 本申请技术方案提出的一种计费校正的优化方案中, 解决了针对相同数 据流在 PCEF上和 TDF上控制不一致, 导致在 TDF和 PCEF上的用量不一 致而引发计费不准确的问题。 同时避免了因为频繁传递和处理大量用量信息 而引发的网络处理负担增加导致影响网络稳定的问题。 附图概述  The packet loss function is sent to the charging system by the TDF entity; or the packet loss amount is reported to the charging system by the PCEF entity. An optimization scheme for charging correction proposed by the technical solution of the present application solves the problem that the control of the same data stream is inconsistent on the PCEF and the TDF, resulting in inaccurate charging on the TDF and the PCEF. At the same time, it avoids the problem that the network processing burden is increased due to frequent transmission and processing of a large amount of usage information, which affects the stability of the network. BRIEF abstract
图 1 是相关技术的 3GPP PCC架构的示意图;  1 is a schematic diagram of a related art 3GPP PCC architecture;
图 2 是相关技术的 PCC控制下的数据流处理的示意图;  2 is a schematic diagram of data stream processing under the control of PCC of the related art;
图 3 是本发明实施例 1的计费方法的流程图;  3 is a flowchart of a charging method according to Embodiment 1 of the present invention;
图 4 是本发明实施例的场景一的计费方法的流程图;  4 is a flowchart of a charging method of scenario 1 according to an embodiment of the present invention;
图 5是本发明实施例的场景二的计费方法的流程图;  FIG. 5 is a flowchart of a charging method of scenario 2 according to an embodiment of the present invention;
图 6是本发明实施例的场景三的计费方法的流程图;  6 is a flowchart of a charging method of scenario 3 in the embodiment of the present invention;
图 7是本发明实施例的场景四的计费方法的流程图;  7 is a flowchart of a charging method of scenario 4 according to an embodiment of the present invention;
图 8是本发明实施例的场景五的计费方法的流程图;  8 is a flowchart of a charging method of scenario 5 in the embodiment of the present invention;
图 9 是本发明实施例 2的策略执行设备的结构图;  9 is a structural diagram of a policy execution device according to Embodiment 2 of the present invention;
图 10是本发明实施例 3的策略和计费规则功能设备的结构图。 本发明的较佳实施方式  Figure 10 is a structural diagram of a policy and charging rule function device of Embodiment 3 of the present invention. Preferred embodiment of the invention
下文将结合附图对本发明实施例的技术方案作详细说明。需要说明的是, 在不冲突的情况下, 本申请的实施例和实施例中的特征可以任意相互组合。 The technical solutions of the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted, The features of the embodiments and the embodiments of the present application may be combined with each other arbitrarily without conflict.
实施例 1 Example 1
本实施例中介绍一种计费方法, 该方法的实现过程如图 3所示, 包括如 下步骤 301至 303。  In this embodiment, a charging method is introduced. The implementation process of the method is as shown in FIG. 3, and includes the following steps 301 to 303.
步骤 301 , 策略执行功能实体针对数据流统计丟包量, 当丟包量达到设 定的丟包阔值时, 向 PCRF实体上报丟包量。  Step 301: The policy execution function entity collects the packet loss amount for the data flow, and reports the packet loss amount to the PCRF entity when the packet loss amount reaches the set packet loss threshold.
该步骤中, 设定的丟包阔值可以是事先配置在策略执行设备上的, 也可 以由策略控制设备下发给策略执行设备。本实施例中,策略控制设备为 PCRF 实体。  In this step, the set packet loss threshold may be configured on the policy execution device in advance, or may be sent by the policy control device to the policy execution device. In this embodiment, the policy control device is a PCRF entity.
还要说明的是, 设定的丟包阔值可以是一数值, 也可以是一时间。 设置 为数值时, 即, 当丟包统计个数达到一定数值时,触发上报。设置为时间时, 即, 在丟包统计达到一定的时间时, 触发上报。  It should also be noted that the set packet loss threshold may be a value or a time. When the value is set to a value, that is, when the number of lost packets reaches a certain value, the report is triggered. When it is set to time, that is, when the packet loss statistics reaches a certain time, the report is triggered.
另夕卜, 在本实施例中, 策略执行功能实体包括 PCEF实体和 TDF实体。 而本步骤中针对数据流统计丟包量时,是由 PCEF实体或 TDF实体进行统计 操作的。  In addition, in this embodiment, the policy enforcement function entity includes a PCEF entity and a TDF entity. In this step, when the packet loss is counted for the data stream, it is performed by the PCEF entity or the TDF entity.
步骤 302, PCRF实体将丟包量上报给计费系统。  Step 302: The PCRF entity reports the packet loss amount to the charging system.
该步骤中, 策略控制设备直接将丟包量上报给计费系统。 或者, 策略控 制设备通过其他网元设备将丟包量上报给计费系统。 策略控制设备为 PCRF 步骤 303 , 计费系统根据丟包量执行计费校正。  In this step, the policy control device directly reports the amount of packet loss to the charging system. Alternatively, the policy control device reports the packet loss amount to the charging system through other network element devices. The policy control device is PCRF step 303, and the charging system performs charging correction according to the amount of packet loss.
TDF实体执行计费, 则在 PCEF实体上设置丟包阔值, TDF实体针对数 据流收集计费信息并上报给计费系统; PCEF 实体针对数据流统计丟包量, 当丟包量达到丟包阔值时, PCEF实体将丟包量上报给 PCRF实体, PCRF实 体将丟包量上报给计费系统, 计费系统根据 TDF 实体上报的计费信息和 PCEF实体上报的丟包量执行计费校正。  The TDF entity performs the charging, and sets the packet loss threshold on the PCEF entity. The TDF entity collects the accounting information for the data flow and reports it to the charging system. The PCEF entity collects the packet loss amount for the data flow, and when the packet loss reaches the packet loss. When the value is wide, the PCEF entity reports the packet loss to the PCRF entity, and the PCRF entity reports the packet loss amount to the charging system. The charging system performs the charging correction according to the charging information reported by the TDF entity and the packet loss reported by the PCEF entity. .
PCEF实体执行计费, 则在 TDF实体上设置丟包阔值, PCEF实体针对 数据流收集计费信息并上报给计费系统; TDF 实体针对数据流统计丟包量, 当丟包量达到丟包阔值时, TDF实体将丟包量上报给 PCRF实体, PCRF实 体将丟包量上报给计费系统,计费系统根据 PCEF上报的计费信息和 TDF实 体上报的丟包量执行计费校正。 The PCEF entity performs the charging, and sets the packet loss threshold on the TDF entity. The PCEF entity collects the charging information for the data flow and reports it to the charging system. The TDF entity counts the packet loss amount for the data flow. When the packet loss reaches the packet loss threshold, the TDF entity reports the packet loss to the PCRF entity, and the PCRF entity reports the packet loss to the charging system. The charging system reports the accounting information reported by the PCEF and the TDF entity reports the lost packet. The amount is performed to perform billing correction.
下面结合各种应用场景, 说明上述计费方法的实现过程。  The implementation process of the foregoing charging method will be described below in combination with various application scenarios.
场景一  scene one
本场景描述的是在 TDF上实施计费, 在 PCEF上配置丟包阔值, 对 AF 下发业务信息的业务执行丟包统计。 此该场景下, 计费过程如图 4所示, 包 括如下步骤:  This topic describes how to implement accounting on the TDF, configure the packet loss threshold on the PCEF, and perform packet loss statistics on the service that sends the service information to the AF. In this scenario, the billing process is as shown in Figure 4, including the following steps:
步骤 401 , 在 PCEF上配置丟包阔值。  Step 401: Configure a packet loss threshold on the PCEF.
需要说明的是,上述在 PCEF上配置的丟包阔值可以是一丟包数值,即, 当丟包统计个数达到一定的值时需要上报。丟包阔值还可为一时间阔值,即, 在丟包统计达到一定的时间时需要上报。  It should be noted that the packet loss threshold configured on the PCEF may be a packet loss value, that is, when the number of packet loss statistics reaches a certain value, it needs to be reported. The packet loss threshold can also be a time value, that is, when the packet loss statistics reach a certain time, it needs to be reported.
另外, 在 PCEF上配置的丟包阔值对 PCEF上的每个业务数据流都可以 使用。 且对 PCEF上的每个数据流都可以使用相同的丟包阔值。  In addition, the packet loss threshold configured on the PCEF can be used for each service data stream on the PCEF. The same packet loss threshold can be used for each data stream on the PCEF.
步骤 402 , 在 TDF上安装 ADC规则, 该 ADC规则用于 TDF执行流检 测, 由 PCRF下发给 TDF或者在 TDF上配置。 将 PCEF上所有激活的 PCC 规则对应的 SDF Template发送至 TDF上。  Step 402: Install an ADC rule on the TDF. The ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF. Send the SDF Template corresponding to all activated PCC rules on the PCEF to the TDF.
步骤 403 , 用户开展业务, AF将业务信息下发给 PCRF。  Step 403: The user conducts a service, and the AF sends the service information to the PCRF.
步骤 404, PCRF根据业务信息、用户签约信息和运营商策略为所述业务 进行策略决策, 为业务数据流制定 PCC规则。  Step 404: The PCRF makes policy decisions for the service according to the service information, the user subscription information, and the operator policy, and formulates a PCC rule for the service data flow.
步骤 405 , PCRF将所述 PCC规则下发给 PCEF。  Step 405: The PCRF sends the PCC rule to the PCEF.
步骤 406 , PCRF将所述 PCC规则对应的 SDF Template下发给 TDF , TDF 进行 SDF Template更新。  Step 406: The PCRF sends the SDF Template corresponding to the PCC rule to the TDF, and the TDF performs the SDF Template update.
步骤 407,当业务数据流到达 TDF时,首先 TDF按照 PCRF下发的 ADC 规则执行流检测。  Step 407: When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF.
步骤 408, TDF检测该业务数据流的五元组, 并将所述五元组和 TDF上 所有的 SDF Template进行匹配。 TDF对所述业务数据流收集用量。将该业务 数据流的用量和对应的 SDF Template上报给 OCS。 Step 408: The TDF detects the quintuple of the service data stream, and matches all the SDF templates on the quintuple and the TDF. The TDF collects usage for the business data stream. The business The usage of the data stream and the corresponding SDF Template are reported to the OCS.
步骤 409, 当业务数据流到达 PCEF, 按照 PCC规则, PCEF对所述业务 数据流执行策略控制。  Step 409: When the service data flow arrives at the PCEF, the PCEF performs policy control on the service data flow according to the PCC rule.
步骤 410, PCEF统计所述业务数据流的丟包量。  Step 410: The PCEF collects a packet loss amount of the service data flow.
步骤 411 , 当 PCEF对所述业务数据流统计的丟包量到达阔值时, PCEF 将所述丟包量和该业务数据流的 SDF Template上报给 PCRF。  Step 411: The PCEF reports the packet loss amount and the SDF Template of the service data flow to the PCRF when the packet loss of the service data flow reaches the threshold.
步骤 412 , PCRF将所述业务数据流的丟包量和 SDF Template上报给 OCS , 其实现有两种方式:  Step 412: The PCRF reports the packet loss and the SDF template of the service data flow to the OCS. In fact, there are two methods:
方式一, PCRF通过 Sy接口, 直接向 OCS上报所述业务数据流的 SDF Template和丟包量信息。  In the first mode, the PCRF directly reports the SDF Template and the packet loss information of the service data flow to the OCS through the Sy interface.
方式二, PCRF 通过 Sd接口向 TDF上报所述业务数据流的 SDF Template 和丟包量信息, 再由 TDF向 OCS上"¾所述 SDF Template和丟包量。  In the second mode, the PCRF reports the SDF Template and the packet loss information of the service data flow to the TDF through the Sd interface, and then the TDF sends the SDF Template and the packet loss amount to the OCS.
步骤 413 , OCS根据 SDF Template关联 TDF上报的所述业务数据流的 用量信息, 以及 PCRF或者 TDF上报的丟包量信息, OCS将所述用量信息 扣减所述丟包量信息得到该业务数据流的准确流量, 从而可以对所述业务数 据流实施准确计费。  Step 413: The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported by the PCRF or the TDF, and the OCS deducts the packet loss information from the usage information to obtain the service data flow. Accurate traffic, so that accurate accounting can be implemented for the service data flow.
场景二 Scene two
本场景中描述的是在 TDF上实施计费,通过 PCRF向 PCEF下发丟包阔 值, 对 AF下发业务信息的业务执行丟包统计。 该场景下, 计费过程如图 5 所示, 包括如下步骤:  In this scenario, the accounting is implemented on the TDF, and the packet loss threshold is sent to the PCEF through the PCRF, and the packet loss statistics are performed on the service that sends the service information to the AF. In this scenario, the accounting process is as shown in Figure 5, including the following steps:
步骤 501 , 在 TDF上安装 ADC规则, 该 ADC规则用于 TDF执行流检 测,由 PCRF下发给 TDF或者在 TDF上配置。并将所有 PCEF上激活的 PCC 规则对应的 SDF Template上报给 TDF。  Step 501: Install an ADC rule on the TDF. The ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF. The SDF template corresponding to the PCC rule activated on the PCEF is reported to the TDF.
步骤 502, 用户开展业务, AF将业务信息下发给 PCRF。  Step 502: The user conducts a service, and the AF sends the service information to the PCRF.
步骤 503 , PCRF根据业务信息、用户签约信息和运营商策略为所述业务 进行策略决策, 为业务数据流制定 PCC规则。 步骤 504 , PCRF将所述 PCC规则下发给 PCEF。 Step 503: The PCRF performs policy decision on the service according to the service information, the user subscription information, and the operator policy, and formulates a PCC rule for the service data flow. Step 504: The PCRF sends the PCC rule to the PCEF.
步骤 505, PCRF将所述 PCC规则对应的 SDF Template下发到 TDF。 步骤 506,当业务数据流到达 TDF时,首先 TDF按照 PCRF下发的 ADC 规则执行流检测。 当检测到所述业务数据流的五元组时, 将所述五元组和 TDF上所有的 SDF Template进行匹配。  Step 505: The PCRF sends the SDF Template corresponding to the PCC rule to the TDF. Step 506: When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF. When the quintuple of the service data stream is detected, the quintuple is matched with all SDF templates on the TDF.
步骤 507, TDF收集该业务数据流的用量。 TDF将和该业务数据流匹配 的 SDF Template和收集的用量信息上报给 OCS。  In step 507, the TDF collects the usage of the service data stream. The TDF reports the SDF Template and the collected usage information that match the service data flow to the OCS.
步骤 508, TDF将和所述业务数据流的五元组匹配的 SDF Template上报 给 PCRF。  Step 508: The TDF reports the SDF Template matching the quintuple of the service data flow to the PCRF.
步骤 509, PCRF向 PCEF下发所述 SDF Template和丟包阔值, 指示针 对该 SDF Template对应的业务数据流需要执行丟包统计,并在达到阔值的情 况下需要上报丟包量。  Step 509: The PCRF sends the SDF template and the packet loss threshold to the PCEF, and the packet data of the service data flow corresponding to the SDF template needs to be performed, and the packet loss amount needs to be reported when the threshold is reached.
步骤 510, 当业务数据流到达 PCEF时, PCEF按照 PCC规则对所述业 务数据流执行策略控制。  Step 510: When the service data flow reaches the PCEF, the PCEF performs policy control on the service data flow according to the PCC rule.
步骤 511 , PCEF按照指示, 对和所述 SDF Template对应的业务数据流 统计丟包量。  Step 511: The PCEF, according to the indication, calculates a packet loss amount for the service data flow corresponding to the SDF template.
步骤 512, 当 PCEF对所述业务数据流统计的丟包量到达阔值时, PCEF 将所述丟包量和 SDF Template上报给 PCRF。  Step 512: The PCEF reports the packet loss amount and the SDF template to the PCRF when the packet loss amount of the service data flow reaches the threshold.
步骤 513 , PCRF将所述丟包量和 SDF Template上报给 OCS。 其上报过 程参考场景一的步骤 411。  Step 513: The PCRF reports the packet loss amount and the SDF template to the OCS. It reports the process reference step 411 of the scenario one.
步骤 514, OCS根据 SDF Template关联 TDF上报的所述业务数据流的 用量信息, 以及步骤 513上报的丟包量信息, OCS将所述用量信息扣减所述 丟包量信息得到该业务数据流的准确流量, 从而可以对所述业务数据流实施 准确计费。 如果在步骤 509中 PCRF向 PCEF下发丟包统计的指示之前, 所述业务 数据流已经到达 PCEF, 并开始丟包时, 可以在 PCEF设置丟包预统计, 在 收到所述指示之后, 再将其计入正式统计的范围之内。 如果没有收到所述指 示, 则 PCEF丟弃该部分的丟包量。 场景三 Step 514: The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported in step 513, and the OCS deducts the usage information from the usage information to obtain the service data flow. Accurate traffic, so that accurate accounting can be implemented for the service data flow. If the service data stream has arrived at the PCEF and starts to lose packets before the PCRF sends the packet loss statistics indication to the PCEF in step 509, the packet loss pre-statistics may be set in the PCEF, and after receiving the indication, It is included in the scope of official statistics. If the indication is not received, the PCEF discards the amount of packet loss for that portion. Scene three
本场景中描述的是在 TDF上实施计费,通过 PCRF向 PCEF下发丟包阔 值, 对需要 TDF检测的应用业务执行丟包统计。 该场景下, 计费过程如图 6 所示, 包括如下步骤:  In this scenario, the accounting is implemented on the TDF, and the packet loss threshold is sent to the PCEF through the PCRF to perform packet loss statistics on the application service that needs TDF detection. In this scenario, the accounting process is shown in Figure 6, which includes the following steps:
步骤 601 , 在 TDF上安装 ADC规则, 该 ADC规则用于 TDF执行流检 测,由 PCRF下发给 TDF或者在 TDF上配置。并将所有 PCEF上激活的 PCC 规则对应的 SDF Template上报给 TDF。  Step 601: Install an ADC rule on the TDF. The ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF. The SDF template corresponding to the PCC rule activated on the PCEF is reported to the TDF.
步骤 602,当业务数据流到达 TDF时,首先 TDF按照 PCRF下发的 ADC 规则执行流检测。 当检测到所述业务数据流的五元组时, 将所述五元组和 TDF上所有的 SDF Template进行匹配。  Step 602: When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF. When the quintuple of the service data stream is detected, the quintuple is matched with all SDF templates on the TDF.
步骤 603 , TDF收集该业务数据流对应的用量。 TDF将和该业务数据流 的五元组匹配的 SDF Template和收集的用量上 4艮给 OCS。  Step 603: The TDF collects the usage corresponding to the service data flow. The TDF will match the SDF Template and the collected usage of the quintuple of the service data stream to the OCS.
步骤 604, TDF将与所述业务数据流的五元组匹配的 SDF Template上报 给 PCRF。  Step 604: The TDF reports the SDF Template matching the quintuple of the service data flow to the PCRF.
步骤 605 , PCRF向 PCEF下发所述 SDF Template和丟包阔值, 指示针 对该 SDF Template对应的业务数据流需要执行丟包统计,并在达到阔值的情 况下需要上报丟包量。  Step 605: The PCRF sends the SDF template and the packet loss threshold to the PCEF, and the indication needs to perform packet loss statistics on the service data flow corresponding to the SDF template, and needs to report the packet loss amount when the threshold is reached.
步骤 606, 当业务数据流到达 PCEF时, PCEF按照 PCC规则对所述业 务数据流执行策略控制。  Step 606: When the service data flow arrives at the PCEF, the PCEF performs policy control on the service data flow according to the PCC rule.
步骤 607, PCEF按照指示, 对和所述 SDF Template对应的业务数据流 统计丟包量。  Step 607: The PCEF, according to the indication, counts the amount of packet loss for the service data flow corresponding to the SDF template.
步骤 608, 当 PCEF对所述业务数据流的丟包量统计到达阔值时, PCEF 将所述丟包量和 SDF Template上报给 PCRF。  Step 608: The PCEF reports the packet loss amount and the SDF template to the PCRF when the packet loss statistics of the service data flow reaches the threshold.
步骤 609, PCRF将所述丟包量和 SDF Template上报给 OCS。 其上报过 程参考场景一的步骤 411。  Step 609: The PCRF reports the packet loss amount and the SDF template to the OCS. It reports the process reference step 411 of the scenario one.
步骤 610, OCS根据 SDF Template关联 TDF上报的所述业务数据流的 用量信息, 以及步骤 609上报的丟包量信息, OCS将所述用量信息扣减所述 丟包量信息得到该业务数据流的准确流量, 从而可以对所述业务数据流实施 准确计费。 Step 610: The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported in step 609, and the OCS deducts the usage information. The packet loss information obtains the accurate traffic of the service data flow, so that the service data flow can be accurately charged.
场景四 Scene four
本场景中描述的是在 PCEF上实施计费,通过 PCRF向 TDF下发丟包阔 值, 对需要 TDF检测的应用业务执行丟包统计。 该场景下的计费过程如图 7 所示, 包括如下步骤:  In this scenario, the accounting is implemented on the PCEF, and the packet loss threshold is sent to the TDF through the PCRF to perform packet loss statistics on the application service that needs TDF detection. The charging process in this scenario is shown in Figure 7, and includes the following steps:
步骤 701 , 在 TDF上安装 ADC规则, 该 ADC规则用于 TDF执行流检 测,由 PCRF下发给 TDF或者在 TDF上配置。并将所有 PCEF上激活的 PCC 规则对应的 SDF Template上报给 TDF。  Step 701: Install an ADC rule on the TDF. The ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF. The SDF template corresponding to the PCC rule activated on the PCEF is reported to the TDF.
步骤 702, 当业务数据流到达 PCEF时, PCEF执行上行承载绑定验证, 验证所述业务数据流是否使用对应的承载传输, 并执行相应的控制策略。  Step 702: When the service data flow arrives at the PCEF, the PCEF performs uplink bearer binding verification, verifies whether the service data flow uses the corresponding bearer transmission, and executes a corresponding control policy.
步骤 703 , PCEF收集所述业务数据流的用量, 并将所述用量和该业务数 据流的 SDF Template上报给 OCS。  Step 703: The PCEF collects the usage of the service data flow, and reports the usage and the SDF Template of the service data flow to the OCS.
步骤 704 ,当业务数据流到达 TDF时,首先 TDF按照 PCRF下发的 ADC 规则执行流检测。 当检测到所述业务数据流的五元组时, 将所述五元组和 TDF上所有的 SDF Template进行匹配。  Step 704: When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF. When the quintuple of the service data stream is detected, the quintuple is matched with all SDF templates on the TDF.
步骤 705, 如果所述业务数据流的五元组和其中的 SDF Template匹配, 则 TDF将和所述业务数据流的五元组匹配的 SDF Template上报给 PCRF。  Step 705: If the quintuple of the service data stream matches the SDF template, the TDF reports the SDF template that matches the quintuple of the service data flow to the PCRF.
步骤 706, PCRF向 TDF下发所述 SDF Template和丟包阔值, 指示针对 该 SDF Template对应的业务数据流需要执行丟包统计,并在达到阔值的情况 下需要上报丟包量。  Step 706: The PCRF sends the SDF template and the packet loss threshold to the TDF, indicating that the packet data is to be sent for the service data flow corresponding to the SDF template, and the packet loss amount needs to be reported when the threshold is reached.
步骤 707, 当业务数据流到达 PCEF时, PCEF按照 PCC规则对所述业 务数据流执行策略控制。  Step 707: When the service data flow reaches the PCEF, the PCEF performs policy control on the service data flow according to the PCC rule.
步骤 708, TDF按照指示, 对和所述 SDF Template对应的业务数据流统 计丟包量。  Step 708: The TDF calculates the amount of packet loss for the service data flow corresponding to the SDF Template according to the indication.
步骤 709, 当 TDF对所述业务数据流的丟包量统计到达阔值时, TDF将 所述丟包量和 SDF Template上 J^ PCRF。 步骤 710, PCRF将所述业务数据流的丟包量和 SDF Template上报给 OCS, 其实现有两种方式: Step 709: When the TDF statistics on the packet loss of the service data flow reaches a threshold, the TDF will use the packet loss amount and the JDF PCRF on the SDF Template. In step 710, the PCRF reports the packet loss and the SDF template of the service data flow to the OCS.
方式一, PCRF通过 Sy接口, 直接向 OCS上报所述业务数据流的 SDF Template和丟包量信息。  In the first mode, the PCRF directly reports the SDF Template and the packet loss information of the service data flow to the OCS through the Sy interface.
方式二, PCRF 通过 Gx接口向 PCEF 上报所述业务数据流的 SDF In the second mode, the PCRF reports the SDF of the service data flow to the PCEF through the Gx interface.
Template和丟包量信息, PCEF向 OCS上^艮所述 SDF Template和丟包量。 Template and packet loss information, PCEF to OCS on the SDF Template and the amount of packet loss.
步骤 711 , OCS根据 SDF Template关联 TDF上报的所述业务数据流的 用量信息, 以及 710步上报的丟包量信息, OCS将所述用量信息扣减所述丟 包量信息得到该业务数据流的准确流量, 从而可以对所述业务数据流实施准 确计费。  Step 711: The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported in step 710, and the OCS deducts the usage information from the usage information to obtain the service data flow. Accurate traffic, so that accurate accounting can be implemented for the service data flow.
场景五 Scene five
本场景中描述的是在 PCEF上实施计费, 通过在 TDF上配置丟包阔值, 对需要 TDF检测的应用业务执行丟包统计。该场景下的计费过程如图 8所示, 包括如下步骤:  In this scenario, the accounting is implemented on the PCEF. The packet loss threshold is configured on the TDF to perform packet loss statistics on the application services that require TDF detection. The charging process in this scenario is shown in Figure 8. It includes the following steps:
步骤 801 , 在 TDF上配置丟包阔值。 该阔值可以是丟包量阔值, 即, 当 丟包统计达到一定的量时需要上报, 或者该阔值为时间阔值, 即, 在丟包统 计达到一定的时间时需要上 ·¾。 在 TDF上配置的丟包阔值对 TDF上的每个 业务数据流都可以使用。  Step 801: Configure a packet loss threshold on the TDF. The threshold value can be the value of the packet loss amount, that is, when the packet loss statistics reaches a certain amount, the value needs to be reported, or the threshold value is a time threshold, that is, when the packet loss statistics reaches a certain time, it needs to be up. The packet loss threshold configured on the TDF can be used for each service data stream on the TDF.
步骤 802 , 在 TDF上安装 ADC规则, 该 ADC规则用于 TDF执行流检 测, 由 PCRF下发给 TDF或者在 TDF上配置。 将 PCEF上所有激活的 PCC 规则对应的 SDF Template发送至 TDF。  Step 802: Install an ADC rule on the TDF. The ADC rule is used to perform flow detection on the TDF, and is sent by the PCRF to the TDF or configured on the TDF. Send the SDF Template corresponding to all activated PCC rules on the PCEF to the TDF.
步骤 803 , 当业务数据流到达 PCEF时, PCEF执行上行承载绑定验证, 验证所述业务数据流是否使用对应的承载传输, 并执行相应的控制策略。  Step 803: When the service data flow arrives at the PCEF, the PCEF performs uplink bearer binding verification, verifies whether the service data flow uses the corresponding bearer transmission, and executes a corresponding control policy.
步骤 804, PCEF收集所述业务数据流的用量, 并将所述用量和该业务数 据流对应的 SDF Template上报给 OCS。  Step 804: The PCEF collects the usage of the service data flow, and reports the usage and the SDF template corresponding to the service data flow to the OCS.
步骤 805,当业务数据流到达 TDF时,首先 TDF按照 PCRF下发的 ADC 规则执行流检测。检测所述业务数据流的五元组, 并将所述五元组和 TDF上 所有的 SDF Template进行匹配。 并统计所述业务数据流的丟包量。 步骤 806, 当所述业务数据流的丟包量达到阔值时, TDF将所述丟包量 和该业务数据流对应的 SDF Template上 J^ PCRF。 Step 805: When the service data flow arrives at the TDF, the TDF first performs flow detection according to the ADC rule delivered by the PCRF. Detecting a five-tuple of the business data stream, and the five-tuple and TDF All SDF Templates are matched. And counting the amount of packet loss of the service data flow. Step 806: When the packet loss amount of the service data stream reaches a threshold, the TDF sends the packet loss amount to the SDF Template corresponding to the service data stream.
步骤 807 , PCRF将所述业务数据流的丟包量和 SDF Template上报给 OCS , 其实现有两种方式:  Step 807: The PCRF reports the packet loss and the SDF template of the service data flow to the OCS. In fact, there are two methods:
方式一, PCRF通过 Sy接口, 直接向 OCS上报所述业务数据流的 SDF Template和丟包量信息。  In the first mode, the PCRF directly reports the SDF Template and the packet loss information of the service data flow to the OCS through the Sy interface.
方式二, PCRF 通过 Gx接口向 PCEF 上报所述业务数据流的 SDF Template和丟包量信息, PCEF向 OCS上^艮所述 SDF Template和丟包量。  In the second mode, the PCRF reports the SDF Template and the packet loss information of the service data flow to the PCEF through the Gx interface, and the PCEF sends the SDF Template and the packet loss amount to the OCS.
步骤 808, OCS根据 SDF Template关联 TDF上报的所述业务数据流的 用量信息, 以及步骤 807上报的丟包量信息, OCS将所述用量信息扣减所述 丟包量信息得到该业务数据流的准确流量, 从而可以对所述业务数据流实施 准确计费。 本实施例中介绍一种计费装置, 该装置至少包括策略执行设备、 策略控 制设备和计费系统。  Step 808: The OCS associates the usage information of the service data flow reported by the TDF with the SDF template, and the packet loss information reported in step 807, and the OCS deducts the usage information from the usage information to obtain the service data flow. Accurate traffic, so that accurate accounting can be implemented for the service data flow. In this embodiment, a charging device is introduced, which includes at least a policy execution device, a policy control device, and a charging system.
策略执行设备用于: 针对数据流统计丟包量, 当丟包量达到设定的丟包 阔值时, 向策略控制设备上报所述丟包量;  The policy execution device is configured to: report the packet loss amount to the data flow, and report the packet loss amount to the policy control device when the packet loss amount reaches the set packet loss threshold;
需要说明的是, 设定的丟包阔值是事先配置在策略执行设备上的, 也可 以是策略控制设备下发给策略执行设备的。 另外, 设定的丟包阔值可以是丟 包量阔值, 即, 当丟包统计达到一定的量时需要上报, 或者该阔值可以为时 间阔值, 即, 在丟包统计达到一定的时间时需要上报。  It should be noted that the set packet loss threshold is configured on the policy execution device in advance, or may be sent to the policy execution device by the policy control device. In addition, the set packet loss threshold may be a packet loss threshold, that is, when the packet loss statistics reach a certain amount, it needs to be reported, or the threshold may be a time threshold, that is, the packet loss statistics reach a certain value. Time needs to be reported.
在本实施例中 , 策略执行设备可以是 PCEF实体或者 TDF实体。  In this embodiment, the policy enforcement device may be a PCEF entity or a TDF entity.
策略控制设备用于: 将所收到的丟包量上报给计费系统;  The policy control device is configured to: report the received packet loss amount to the charging system;
其中, 策略控制设备可以直接将丟包量上报给计费系统。 或者策略控制 设备通过 TDF实体或者 PCEF实体将丟包量上报给计费系统。  The policy control device can directly report the packet loss amount to the charging system. Or the policy control device reports the packet loss amount to the charging system through the TDF entity or the PCEF entity.
在本实施例中, 策略控制设备为 PCRF实体。  In this embodiment, the policy control device is a PCRF entity.
计费系统用于: 根据所收到的丟包量执行计费校正。 下面结合应用场景, 说明上述装置的工作过程。 The charging system is configured to: perform charging correction according to the received packet loss amount. The following describes the working process of the above device in combination with the application scenario.
假设 PCEF实体为策略执行设备, TDF实体执行计费, 则 TDF实体针对 数据流收集计费信息并上报给计费系统; PCEF实体针对数据流统计丟包量, 当丟包量达到所述丟包阔值时, PCEF 实体将此丟包量上报给 PCRF 实体, PCRF实体将此丟包量上报给计费系统, 计费系统即可根据 TDF实体上报的 计费信息和 PCEF实体上报的丟包量执行计费校正即可。  Assume that the PCEF entity is a policy enforcement device, and the TDF entity performs charging. The TDF entity collects charging information for the data flow and reports it to the charging system. The PCEF entity collects the packet loss amount for the data flow. When the packet loss reaches the packet loss. When the value is wide, the PCEF entity reports the packet loss to the PCRF entity, and the PCRF entity reports the packet loss to the charging system. The charging system can report the packet loss information reported by the TDF entity and the packet loss reported by the PCEF entity. Perform the billing correction.
再假设 TDF实体为策略执行设备, PCEF实体执行计费, 则 PCEF实体 针对数据流收集计费信息并上报给计费系统; TDF实体针对数据流统计丟包 量,当丟包量达到所述丟包阔值时, TDF实体将此丟包量上报给 PCRF实体, PCRF 实体将此丟包量上报给计费系统, 计费系统根据 PCEF 实体上报的计 费信息和 TDF实体上报的丟包量执行计费校正即可。  Assuming that the TDF entity is the policy enforcement device and the PCEF entity performs the charging, the PCEF entity collects the charging information for the data flow and reports it to the charging system. The TDF entity collects the packet loss amount for the data flow, and when the packet loss reaches the lost amount. When the packet is wide, the TDF entity reports the packet loss to the PCRF entity, and the PCRF entity reports the packet loss to the charging system. The charging system performs the accounting information reported by the PCEF entity and the packet loss reported by the TDF entity. Billing correction can be.
实施例 2 Example 2
本实施例中介绍一种策略执行设备, 如图 9所示, 该策略执行设备至少 包括统计单元 91、 判断单元 92及上 ^艮单元 93。  In this embodiment, a policy execution device is introduced. As shown in FIG. 9, the policy execution device includes at least a statistics unit 91, a determining unit 92, and an upper unit 93.
统计单元 91用于: 针对数据流统计丟包量;  The statistical unit 91 is configured to: count the amount of packet loss for the data stream;
判断单元 92用于: 判断所统计的丟包量是否达到设定的丟包阔值; 需要说明的是,判断单元 92在判断操作中所用到的丟包阔值是事先配置 在所述策略执行设备上的。也可以是由 PCRF设备下发给本策略执行设备的。 另外, 设定的丟包阔值可为一数值, 也可以为一时间。  The determining unit 92 is configured to: determine whether the counted amount of lost packets reaches a set value of the lost packet; it should be noted that the packet loss threshold used by the determining unit 92 in the determining operation is configured in advance in the policy execution. On the device. It can also be sent to the policy execution device by the PCRF device. In addition, the set packet loss threshold may be a value or a time.
上报单元 93用于: 在判断统计的丟包量达到设定的丟包阔值时,将此丟 包量上报给 PCRF设备。  The reporting unit 93 is configured to report the packet loss amount to the PCRF device when it is determined that the packet loss amount reaches the set packet loss threshold.
在本实施例中, 上述策略执行设备可釆用 PCEF设备或者 TDF设备。  In this embodiment, the above policy enforcement device may use a PCEF device or a TDF device.
实施例 3本实施例介绍一种 PCRF设备,如图 10所示, 该 PCRF设备包 括: 接收单元 101和发送单元 102。 Embodiment 3 This embodiment introduces a PCRF device. As shown in FIG. 10, the PCRF device includes: a receiving unit 101 and a transmitting unit 102.
接收单元 101用于: 接收策略执行设备上报的丟包量; 发送单元 102用于: 将所接收到的丟包量上报给计费系统。 The receiving unit 101 is configured to: receive a packet loss amount reported by the policy execution device; The sending unit 102 is configured to: report the received packet loss amount to the charging system.
上述发送单元 102上报丟包量时,可以直接将此丟包量上报给计费系统。 另外, 优选方案提出, PCRF设备中的发送单元 102 , 除了将丟包量上报 给计费系统外, 还可以将丟包阔值下发给策略执行设备以便策略执行设备根 据此丟包阔值来判断何时上报丟包量。 需要说明的是, 此丟包阔值可为一数 值, 或者为一时间。  When the sending unit 102 reports the packet loss, the packet loss amount can be directly reported to the charging system. In addition, the preferred solution proposes that the sending unit 102 in the PCRF device can report the packet loss amount to the policy execution device, so that the policy execution device can use the packet loss threshold according to the packet loss threshold. Determine when to report the amount of lost packets. It should be noted that the packet loss threshold may be a value or a time.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如, 只 读存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使 用一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆 用硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本申请不限制于 任何特定形式的硬件和软件的结合。 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 to be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. 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 above 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 description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. All modifications, equivalents, improvements, etc., made within the spirit and scope of the embodiments of the present invention are intended to be included within the scope of the appended claims.
工业实用性 Industrial applicability
本发明实施例的技术方案中, 解决了针对相同数据流在 PCEF上和 TDF 上控制不一致,导致在 TDF和 PCEF上的用量不一致而引发计费不准确的问 题。 同时避免了因为频繁传递和处理大量用量信息而引发的网络处理负担增 加导致影响网络稳定的问题。  In the technical solution of the embodiment of the present invention, the problem that the control is inconsistent on the PCEF and the TDF for the same data flow is solved, and the usage inconsistency between the TDF and the PCEF causes the charging to be inaccurate. At the same time, it avoids the problem that the network processing burden caused by frequent transmission and processing of a large amount of usage information leads to network stability.

Claims

权利要求书 claims
1、 一种计费方法, 包括: 1. A billing method, including:
策略执行功能实体针对数据流统计丟包量, 当所述丟包量达到设定的丟 包阔值时, 向策略和计费规则功能 PCRF实体上报所述丟包量; The policy execution function entity counts the packet loss amount for the data flow, and when the packet loss amount reaches the set packet loss threshold, reports the packet loss amount to the policy and charging rule function PCRF entity;
所述 PCRF实体将所述丟包量上报给计费系统; 以及 The PCRF entity reports the packet loss amount to the billing system; and
所述计费系统根据所述丟包量执行计费校正。 The charging system performs charging correction according to the packet loss amount.
2、 如权利要求 1所述的方法, 其中, 2. The method of claim 1, wherein,
所述设定的丟包阔值在所述策略执行功能实体上预配置; 或者, The set packet loss threshold is preconfigured on the policy execution function entity; or,
3、 如权利要求 1所述的方法, 其中, 3. The method of claim 1, wherein,
所述策略执行功能实体为策略和计费执行功能 PCEF实体或者流检测功 能 TDF实体。 The policy execution function entity is a policy and charging execution function PCEF entity or a flow detection function TDF entity.
4、 如权利要求 1所述的方法, 其中, 4. The method of claim 1, wherein,
所述 PCRF实体将所述丟包量上报给所述计费系统包括: The PCRF entity reporting the packet loss amount to the billing system includes:
所述 PCRF实体直接将所述丟包量上报给所述计费系统; 或者 The PCRF entity directly reports the packet loss amount to the billing system; or
所述 PCRF通过所述 TDF实体将所述丟包量上报给所述计费系统;或者 所述 PCRF通过所述 PCEF实体将所述丟包量上报给所述计费系统。 The PCRF reports the packet loss amount to the charging system through the TDF entity; or the PCRF reports the packet loss amount to the charging system through the PCEF entity.
5、 如权利要求 1至 4任一项所述的方法, 其中, 5. The method according to any one of claims 1 to 4, wherein,
所述设定的丟包阔值为一数值, 或者为一时间。 The set packet loss threshold is a numerical value or a time.
6、 如权利要求 5所述的方法, 还包括: 6. The method of claim 5, further comprising:
所述 TDF 实体执行计费, 则在所述 PCEF 实体上设置丟包阔值, 所述 TDF实体针对数据流收集计费信息并上报给所述计费系统; When the TDF entity performs charging, a packet loss threshold is set on the PCEF entity, and the TDF entity collects charging information for the data flow and reports it to the charging system;
其中, 所述策略执行功能实体针对数据流统计丟包量, 当所述丟包量达 到设定的丟包阔值时, 向 PCRF实体上报所述丟包量包括: Wherein, the policy execution function entity counts the packet loss amount for the data flow, and when the packet loss amount reaches the set packet loss threshold, reporting the packet loss amount to the PCRF entity includes:
所述 PCEF实体针对数据流统计丟包量,当丟包量达到所述丟包阔值时, 所述 PCEF实体将所述丟包量上报给所述 PCRF实体; 所述 PCRF实体将所述丟包量上报给计费系统包括: The PCEF entity counts the packet loss amount for the data flow. When the packet loss amount reaches the packet loss threshold, the PCEF entity reports the packet loss amount to the PCRF entity; The PCRF entity reports the packet loss amount to the billing system including:
所述 PCRF实体直接将所述丟包量上报给所述计费系统,或者所述 PCRF 实体通过所述 TDF实体将所述丟包量上报给所述计费系统; The PCRF entity directly reports the packet loss amount to the charging system, or the PCRF entity reports the packet loss amount to the charging system through the TDF entity;
所述方法还包括: The method also includes:
所述计费系统根据所述 TDF 实体上报的计费信息和所述丟包量执行计 费校正。 The charging system performs charging correction based on the charging information reported by the TDF entity and the packet loss amount.
7、 如权利要求 5所述的方法, 还包括: 7. The method of claim 5, further comprising:
所述 PCEF 实体执行计费, 则在所述 TDF 实体上设置丟包阔值, 所述 PCEF实体针对数据流收集计费信息并上报给所述计费系统; When the PCEF entity performs charging, a packet loss threshold is set on the TDF entity, and the PCEF entity collects charging information for the data flow and reports it to the charging system;
其中, 所述策略执行功能实体针对数据流统计丟包量, 当所述丟包量达 到设定的丟包阔值时, 向 PCRF实体上报所述丟包量包括: Wherein, the policy execution function entity counts the packet loss amount for the data flow, and when the packet loss amount reaches the set packet loss threshold, reporting the packet loss amount to the PCRF entity includes:
所述 TDF实体针对数据流统计丟包量, 当丟包量达到所述丟包阔值时, 所述 TDF实体将所述丟包量上报给所述 PCRF; The TDF entity counts the packet loss amount for the data flow, and when the packet loss amount reaches the packet loss threshold, the TDF entity reports the packet loss amount to the PCRF;
所述 PCRF实体将所述丟包量上报给计费系统包括: The PCRF entity reporting the packet loss amount to the billing system includes:
所述 PCRF实体直接将所述丟包量上报给所述计费系统,或者所述 PCRF 实体通过所述 PCEF将所述丟包量上报给所述计费系统; The PCRF entity directly reports the packet loss amount to the charging system, or the PCRF entity reports the packet loss amount to the charging system through the PCEF;
所述方法还包括: The method also includes:
所述计费系统根据所述 PCEF实体上报的计费信息和所述丟包量执行计 费校正。 The charging system performs charging correction based on the charging information reported by the PCEF entity and the packet loss amount.
8、 一种策略执行设备, 包括: 统计单元、 判断单元及上报单元, 其中: 所述统计单元设置成: 针对数据流统计丟包量; 8. A policy execution device, including: a statistics unit, a judgment unit and a reporting unit, wherein: the statistics unit is set to: count packet loss for data flows;
所述判断单元设置成: 判断所述统计单元统计的丟包量是否达到设定的 丟包阔值; 以及 The judgment unit is configured to: judge whether the packet loss counted by the statistics unit reaches a set packet loss threshold; and
所述上报单元设置成: 在所述判断单元判断所述统计的丟包量达到所述 设定的丟包阔值时, 将所述丟包量上报给策略和计费规则功能 PCRF设备。 The reporting unit is configured to: when the judgment unit determines that the statistical packet loss amount reaches the set packet loss threshold, report the packet loss amount to the policy and charging rule function PCRF device.
9、 如权利要求 8所述的设备, 其中, 9. The device of claim 8, wherein,
所述设定的丟包阔值是事先配置在所述策略执行设备上的; 或者, 所述设定的丟包阔值由所述 PCRF设备下发给所述策略执行设备的。 The set packet loss threshold is configured in advance on the policy execution device; or, The set packet loss threshold is delivered by the PCRF device to the policy execution device.
10、 如权利要求 8或 9所述的设备, 其中, 10. The device according to claim 8 or 9, wherein,
所述设定的丟包阔值为一数值, 或者为一时间。 The set packet loss threshold is a numerical value or a time.
11、 如权利要求 10所述的设备, 其中, 11. The device of claim 10, wherein,
所述策略执行设备为策略和计费执行功能 PCEF 实体或者流检测功能 The policy execution device is the policy and charging execution function PCEF entity or the flow detection function
TDF实体。 TDF entity.
12、一种策略和计费规则功能 PCRF设备,包括:接收单元和发送单元, 其中: 12. A policy and charging rule function PCRF equipment, including: a receiving unit and a sending unit, where:
接收单元设置成: 接收策略执行设备上报的丟包量; 以及 The receiving unit is set to: receive the packet loss amount reported by the policy execution device; and
发送单元设置成: 将所接收到的丟包量上报给计费系统。 The sending unit is set to: report the received packet loss amount to the billing system.
13、 如权利要求 12所述的设备, 其中, 13. The device of claim 12, wherein,
所述发送单元还设置成: 向所述策略执行设备下发丟包阔值。 The sending unit is further configured to: deliver a packet loss threshold to the policy execution device.
14、 如权利要求 13所述的设备, 其中, 14. The device of claim 13, wherein,
所述丟包阔值为一数值, 或者为一时间。 The packet loss threshold is a numerical value or a time.
15、 如权利要求 12、 13或 14所述的设备, 其中, 15. The device according to claim 12, 13 or 14, wherein,
所述发送单元是设置成以如下方式将所接收到的丟包量上报给计费系统: 直接将所述丟包量上报给所述计费系统; 或者 The sending unit is configured to report the received packet loss amount to the charging system in the following manner: directly reporting the packet loss amount to the charging system; or
通过流检测功能 TDF实体将所述丟包量上 给所述计费系统; 或者 通过策略和计费执行功能 PCEF实体将所述丟包量上报给所述计费系统。 The TDF entity reports the packet loss amount to the charging system through the flow detection function; or the PCEF entity reports the packet loss amount to the charging system through the policy and charging execution function PCEF entity.
PCT/CN2013/086339 2012-11-28 2013-10-31 Charging method, and policy enforcement and policy and charging rules function devices WO2014082519A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210494841.3A CN103856926A (en) 2012-11-28 2012-11-28 Charging method and strategy execution, strategy and charging control function device
CN201210494841.3 2012-11-28

Publications (1)

Publication Number Publication Date
WO2014082519A1 true WO2014082519A1 (en) 2014-06-05

Family

ID=50827164

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/086339 WO2014082519A1 (en) 2012-11-28 2013-10-31 Charging method, and policy enforcement and policy and charging rules function devices

Country Status (2)

Country Link
CN (1) CN103856926A (en)
WO (1) WO2014082519A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591828A (en) * 2014-10-20 2016-05-18 中兴通讯股份有限公司 Traffic monitoring method and device
CN108696363B (en) * 2017-02-25 2022-03-08 华为技术有限公司 Charging method and device
WO2024031394A1 (en) * 2022-08-09 2024-02-15 北京小米移动软件有限公司 Information processing method, system and apparatus, communication device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001274794A (en) * 2000-03-24 2001-10-05 Nec Corp Fabric information collection method and fiber channel system
CN101047516A (en) * 2006-03-30 2007-10-03 华为技术有限公司 Compensation method for drop-out flow of service sort charging in communication network and its system
CN102625272A (en) * 2011-01-31 2012-08-01 中兴通讯股份有限公司 Usage monitoring method supporting traffic detection function and usage monitoring system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012045341A2 (en) * 2010-10-06 2012-04-12 Nokia Siemens Networks Oy Method, apparatus and system for detecting service data of a packet data connection
CN103444226A (en) * 2011-03-18 2013-12-11 瑞典爱立信有限公司 Method and apparatuses for TDF session establishment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001274794A (en) * 2000-03-24 2001-10-05 Nec Corp Fabric information collection method and fiber channel system
CN101047516A (en) * 2006-03-30 2007-10-03 华为技术有限公司 Compensation method for drop-out flow of service sort charging in communication network and its system
CN102625272A (en) * 2011-01-31 2012-08-01 中兴通讯股份有限公司 Usage monitoring method supporting traffic detection function and usage monitoring system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3GPPTS 23.203 VL1.0.0, 31 December 2010 (2010-12-31) *

Also Published As

Publication number Publication date
CN103856926A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
US9769326B2 (en) Charging method and device
US9191960B2 (en) Methods and apparatus for mitigating service interruption
EP2901750B1 (en) Congestion control for radio access networks (ran)
WO2012103770A1 (en) Usage monitoring method and system supporting traffic detection function
CN101431423B (en) Reduction method and apparatus for user service flow accounting
JP6213972B2 (en) Application charging method, device, and system
WO2010091635A1 (en) Method, apparatus for controlling policy
WO2009024050A1 (en) Method, system and device for policy control
EP3474527A2 (en) Charging session management method and apparatus
WO2011120378A1 (en) Method and device for controlling data flow of subscriber service
WO2011085614A1 (en) Method for controlling resources in full service converged network and system therefor
WO2014146502A1 (en) Radio access network congestion management method and apparatus, and congestion strategy management method and system
WO2013007142A1 (en) Usage monitoring method and system
WO2013091410A1 (en) Network access method, system and device
WO2016107280A1 (en) Data service charging method and system, and relevant device
WO2014082519A1 (en) Charging method, and policy enforcement and policy and charging rules function devices
WO2012083779A1 (en) Policy control method and device
WO2011088702A1 (en) Method and system for controlling resources in full-service convergence network
WO2014079294A1 (en) Method and system for managing data stream
WO2014176987A1 (en) Policy control method and network element
WO2012041150A1 (en) Volume usage monitoring method and policy control and charging rules functional entity
WO2011003307A1 (en) Charging method and system for evolved packet system
WO2011157137A2 (en) Policy control method, apparatus and communication system
WO2014198016A1 (en) Method, device and system for flow monitoring
WO2013097251A1 (en) Message processing method and device under pcc architecture

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

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

Country of ref document: EP

Kind code of ref document: A1