WO2017050121A1 - Overload control method and apparatus for accounting request - Google Patents

Overload control method and apparatus for accounting request Download PDF

Info

Publication number
WO2017050121A1
WO2017050121A1 PCT/CN2016/098087 CN2016098087W WO2017050121A1 WO 2017050121 A1 WO2017050121 A1 WO 2017050121A1 CN 2016098087 W CN2016098087 W CN 2016098087W WO 2017050121 A1 WO2017050121 A1 WO 2017050121A1
Authority
WO
WIPO (PCT)
Prior art keywords
overload control
acr
overload
function unit
data function
Prior art date
Application number
PCT/CN2016/098087
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 WO2017050121A1 publication Critical patent/WO2017050121A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Definitions

  • the present application relates to, but is not limited to, the field of communications, and in particular, to an overload control method and apparatus for a charging request message.
  • the Diameter overload control mode of the existing offline charging interface Rf of 3GPP uses the "DIAMETER_TOO_BUSY” error response code to indicate that the charging interface has reached the overload state.
  • the Charging Trigger Function CTF
  • ACA Accounting Request Answer
  • CDF Charging Data Function
  • the CTF will Each time a certain operator can configure the waiting time, the cached ACR is sent to the broken CDF. Since the charging information cannot be lost, such retransmission process will be repeated indefinitely until the link is restored. .
  • the present application provides an overload control method and apparatus for a charging request message to at least solve the problem of overloading caused by an excessive overload of the overload control in the related art.
  • An aspect of the present invention provides an overload control method for a charging request message, including: transmitting a current ACR to a first charging data function unit; acquiring an overload control reduction percentage information and an overload control identifier carried in the current ACR ACA; The above-mentioned overload control reduction percentage information in the ACA determines whether the ACR in the first charging data function unit is overloaded; if the ACR in the first charging data function unit is overloaded, the overload control method indicated by the overload control identifier is used. Performing an overload control operation on the current ACR, wherein the overload control operation is at least used to indicate that the current ACR is not sent to the first charging data function unit.
  • the overload control manner indicated by the overload control identifier includes at least one of: performing an overload control operation proportionally, and performing an overload control operation all.
  • performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier includes: randomly acquiring a target value in a predetermined sequence, wherein the predetermined sequence is arranged in ascending order; acquiring the target value a percentage, wherein the above-mentioned acquisition percentage is a percentage of the serial number of the target value in the predetermined sequence and the total amount of the predetermined sequence; and comparing the above-mentioned acquisition percentage with the reduction percentage of the overload control indicated by the overload control reduction percentage information; And if the obtained percentage is greater than the overload control reduction percentage, the current ACR is sent to the first charging data function unit; if the acquisition percentage is less than or equal to the overload control reduction percentage, the overload control operation is performed on the current ACR.
  • performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier includes: performing an overload control operation on each of the current ACRs.
  • performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier includes at least one of: caching the current ACR into the local memory in accordance with the overload control mode indicated by the overload control identifier. In the queue, or sending the current ACR to the second charging data function unit according to the overload control mode indicated by the overload control identifier.
  • the ACR carries the identifier information that supports the Diameter overload indication transmission DOIC.
  • the method further includes: determining whether the ACR in the first charging data function unit is overloaded; and determining the first When the ACR has been released from the overload in the charging data function unit, the buffered ACR is sequentially read from the ACR queue in the local storage and sent to the first charging data function unit.
  • overload control reduction percentage information and the overload control identifier are combined into an AVP overload report and carried in the ACA.
  • the overload control manner indicated by the overload control identifier includes at least one of: performing an overload control operation proportionally, and performing an overload control operation all.
  • control unit includes: a first acquiring module, configured to randomly acquire a target value within a predetermined sequence, wherein the predetermined sequence is arranged in ascending order; and the second obtaining module is configured to obtain a percentage of obtaining the target value, The obtaining percentage is a percentage of the serial number of the target value in the predetermined sequence and the total amount of the predetermined sequence; and the comparing module is configured to compare the percentage of the overload and the percentage of the overload control indicated by the overload control percentage information.
  • the first sending module is configured to send the current ACR to the first charging data function unit when the obtaining percentage is greater than the overload control reducing percentage; the first processing module is configured to set the percentage of the obtaining to be less than or equal to When the above overload control reduces the percentage, the overload control operation is performed on the current ACR described above.
  • control unit includes: a second processing module configured to perform an overload control operation on each of the current ACRs.
  • the foregoing control unit includes at least one of: a cache module configured to cache the current ACR into an ACR queue in the local storage according to the overload control manner indicated by the overload control identifier; or a second sending module, The current ACR is sent to the second charging data function unit in accordance with the overload control mode indicated by the overload control flag.
  • the ACR carries the identifier information that supports the Diameter overload indication transmission DOIC.
  • the method further includes: a second determining unit, configured to determine whether the ACR in the first charging data function unit is overloaded; and the second sending unit is configured to determine the foregoing first charging data function unit When the ACR has been unloaded, the cached ACR is sequentially read from the ACR queue in the local storage and sent to the first charging data function unit.
  • overload control reduction percentage information and the overload control identifier are combined into an AVP overload report and carried in the ACA.
  • a storage medium is provided that is arranged to store program code for performing the following steps:
  • the data function unit sends the current ACR.
  • the overload control reduction percentage information and the overload control identifier carried in the current ACR response message ACA are obtained in real time, and the charging control request information in the first charging data function unit is pre-determined according to the overload control reduction percentage information. If it is determined that the charging request message in the first charging data function unit has been overloaded, it is indicated by the overload control flag.
  • the load control mode performs an overload control operation on the current ACR, wherein the overload control operation is at least used to indicate that the current ACR is not sent to the first charging data function unit, that is, by reducing the processing amount of the first charging data function unit,
  • the overload control of the first charging data function unit is implemented, thereby reducing the processing load of the first charging data function unit; optionally, the overload control identifier carried in the ACA is also used in the normal communication process.
  • the indicated overload control method performs overload control on the charging interface in advance, thereby avoiding the problem of increased system load and overload due to overload lag.
  • FIG. 1 is a flowchart of an overload control method of an optional charging request message according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another optional overload control method for a charging request message according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another optional overload control method of a charging request message according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an overload control apparatus of an optional charging request message according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of an overload control method for a charging request message according to an embodiment of the present invention. As shown in FIG. Including the following steps:
  • the overload control method of the foregoing charging request message may be, but is not limited to, applied to a Diameter overload control process on a charging interface, which is different from the related art in receiving a Diameter for indicating that a Diameter has been received.
  • the control overload is started.
  • the overload control method of the charging request message provided in this embodiment passes the charging trigger function unit (CTF, Charging Trigger Function) located in the network element.
  • CTF Charging Trigger Function
  • the foregoing ACR may include, but is not limited to, identifier information that supports Diameter Overload Indication Conveyance (DOIC).
  • DOIC Diameter Overload Indication Conveyance
  • the identifier information may be a sub-AVP of a Bool type in the AVP of the combined type of the OC-OLR, such as a Charging DOIC Indicator, or a redefinition of the value of the existing OC-Feature-Vector AVP.
  • the OLR_Charging_ALGO (0x0000000000000010) used to represent the overload report charging algorithm is an algorithm identification value used for charging in the OC-Feature-Vector AVP.
  • This OC-Feature-Vector AVP is used to represent the DOIC attributes supported by the DOIC node.
  • OLR_DEFAULT_ALGO(0x0000000000000001) that represents the default overload control algorithm
  • the overload control reduction percentage information and the overload control identifier are combined into an AVP overload report (such as OC-OLR) and carried in the response message ACA.
  • AVP overload report such as OC-OLR
  • the above overload control reduction percentage information may be, but is not limited to, determined by the first charging data function unit according to a current load situation (eg, CPU usage).
  • the overload control mode indicated by the overload control flag may include, but is not limited to, at least one of: performing an overload control operation proportionally, and performing an overload control operation all.
  • the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit.
  • the second charging data function unit and the first charging data function unit that receives the ACR may be, but are not limited to, different charging data function units.
  • the overload control operation may include, but is not limited to, at least one of: buffering the current ACR into the ACR queue in the local storage, and transmitting the current ACR to the second charging data. Functional unit.
  • the ACR is forwarded to the second charging data function unit for processing, or is temporarily buffered, and then re-sent to the first charging data function unit after the overload is released, thereby avoiding missing ACR, such as ACR[Start ] and its subsequent ACR [Interim] and ACR [Stop], in order to achieve the effect of improving the accuracy of billing.
  • the overload control identifier may be, but is not limited to, a new overload control method used to indicate a Charging Trigger Function (CTF), and the Loss default overload control method is used to process the Loss Algorithm.
  • the current ACR in the process of performing the overload control operation proportionally, may be controlled according to the overload control reduction percentage information. For example, the higher the overload control reduction percentage indicated by the overload control reduction percentage information, the more the ACR is filtered, so as to alleviate the processing load of the first charging data function unit, so as to realize the timely avoidance of the first charging data function.
  • the unit has an overload problem.
  • the flow of the overload control method of the charging request message shown in FIG. 2 may include steps S202 to S208: S202, the CTF 22 sends the current ACR to the first CDF 24; S204, the CTF 22 acquires and is currently Overload control carried in ACA corresponding to ACR And reducing the percentage information and the overload control identifier; S206, the CTF 22 determines, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded; S208, if the charging is performed in the first charging data function unit If the request message is overloaded, the overload control operation is performed on the current ACR according to the overload control mode indicated by the overload control flag.
  • the overload control reduction percentage information and the overload control identifier carried in the current ACR of the current ACR are obtained in real time, and the charging request message in the first charging data function unit is pre-determined according to the overload control reduction percentage information. Whether an overload occurs.
  • the overload control operation is performed on the current ACR according to the overload control mode indicated by the overload control flag, wherein the overload control operation is used at least for Instructing not to send the current ACR to the first charging data function unit, that is, to reduce the processing amount of the first charging data function unit by reducing the processing amount of the first charging data function unit, thereby reducing the first meter
  • the processing load of the data function unit optionally, the overload control method indicated by the overload control identifier carried in the ACA is used in the normal communication process, and the charging interface is overloaded in advance, thereby avoiding overload The system load caused by the lag increases, and the overload increases.
  • the performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier includes:
  • the foregoing overload control operation may include, but is not limited to, at least the following One:
  • the current ACR is buffered into the ACR queue in the local storage, and the current ACR is sent to the second charging data function unit.
  • the foregoing predetermined sequence may include, but is not limited to, a constant arranged in ascending order, for example, the predetermined sequence includes 10 consecutive natural numbers: 3, 4, 5, 6, 7, 8, 9, 10 11,11, assuming that the target value obtained by the random number is 9, and the sequence number of the target value in the predetermined sequence is 8, the acquisition percentage P of the target value can be obtained as follows:
  • the value in the foregoing predetermined sequence may be a continuous constant or other constants that are discontinuous.
  • the above is only an example, and is not limited in this embodiment.
  • the following example is used to illustrate that after the CTF normally sends the ACR to the first charging data function unit, the ACA that is processed and returned by the first charging data function unit is obtained.
  • the identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
  • the first billing data function unit can determine the percentage of load reduction required on the billing interface (ie, the percentage of overload control reduction) according to the load situation (eg, CPU occupancy rate, etc.), and will carry the overload control reduction percentage ( For example, OC-Reduction-Percentage) overload control reduction percentage information and overload control identification are sent to the CTF in the form of a combined AVP overload report (eg, OC-OLR) in the response message ACA.
  • a combined AVP overload report eg, OC-OLR
  • the CTF determines the overload control indicated by the percentage reduction information of the overload control. Whether the percentage reduction reaches a threshold that requires overload control (this threshold can be configured by the operator), if it is found that the threshold requiring overload control is reached, the corresponding overload control operation is performed.
  • a threshold that requires overload control
  • the overload control reduction percentage indicated by the overload control reduction percentage information is 80%.
  • the target value is randomly obtained from the predetermined sequence 1-100 ( For example, the target value is 60), and the predetermined sequence contains a total of 100 values, wherein the target number (ie, 60) has a serial number of 60 in the predetermined sequence, and the acquisition percentage of the target value is 60%, and the comparison yields 60. % ⁇ 80%, will Current ACR cache.
  • the target value is randomly acquired from the predetermined range 1-100 (for example, the target value is 90), and the sequence number of the target value in the predetermined sequence is obtained, where the target value 90 is in the predetermined sequence (1)
  • the serial number in -100) is 90, the percentage of acquisition is 90%, and the comparison yields 90%>80%, then the current ACR is normally sent to the first CDF.
  • the overload control reduction percentage is 80%, that is, in this embodiment, 80% of the ACR cache to be sent is to be sent, and more than 80% of the ACR to be sent are sent to the first.
  • CDF so that 80% of the ACR cache to be sent according to the probability distribution is sent, and 20% of the ACR to be sent is normally sent to the first CDF, so as to accurately control the ACR to be buffered according to the percentage of overload control reduction, and the accuracy of the overload control is improved. Sex.
  • the manner of utilizing the target value within the predetermined range and the percentage of reduction of the overload control is not limited to the above example, for example, the size of the molecule whose target value and the percentage of the overload control decrease are directly compared, thereby determining Whether to cache the corresponding current ACR to be sent. This embodiment does not limit this.
  • real-time judgment of the current ACR is realized by the above-mentioned manner of performing the overload control operation proportionally, so that when the overload is found, the overload control is performed in time, thereby avoiding the first calculation caused by continuing to send the ACR.
  • the processing load of the fee data function unit is increased, and the overload is increased, thereby achieving an effect of improving the accuracy of the overload control of the first billing data function unit.
  • performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag includes:
  • the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit.
  • the charging trigger function unit CTF normally sends the ACR to the first charging data function unit (ie, the first CDF)
  • the charging request response message ACA that is normally processed and returned by the first CDF is acquired.
  • the ACR message carries the support overload indication transmission (DOIC, Diameter Overload Indication Conveyance) identification information.
  • the first CDF can determine the percentage of load reduction required on the charging interface (ie, the percentage of overload control reduction) according to the load situation (eg, CPU occupancy rate, etc.), and will carry the overload control reduction percentage (eg, OC- Reduction-Percentage)
  • the overload control reduction percentage information and overload control flag are sent to the CTF in the form of a combined AVP overload report (eg, OC-OLR) in the response message ACA.
  • the CTF determines the overload control indicated by the percentage reduction information of the overload control. Whether the percentage reduction reaches a threshold that requires overload control (this threshold can be configured by the operator), if it is found that the threshold requiring overload control is reached, the corresponding overload control operation is performed.
  • a threshold that requires overload control
  • the CTF selection will put all new ACR messages and their corresponding subsequent ACR[Interim] and ACR[Stop] messages. All are forwarded to the second CDF and receive an accounting response message from the second CDF.
  • the overload control operation is performed on all ACRs, thereby avoiding the processing load of the first charging data function unit caused by continuing to send the ACR, and the problem of overloading is avoided. Further, the effect of alleviating the processing pressure of the first billing data function unit is achieved.
  • performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag includes at least one of the following:
  • S2 Send the current ACR to the second charging data function unit according to the overload control mode indicated by the overload control flag.
  • the foregoing first charging data function unit may be, but not limited to, a primary charging data function unit
  • the second charging data function unit may be, but is not limited to, indicated as secondary charging. Data function unit.
  • the flow of the overload control method of the charging request message shown in FIG. 3 may include steps S302 to S318:
  • the DiameterACR is normally sent to the primary CDF 34 (located on the Diameter server 39);
  • the main CDF 34 carries the current overload control reduction percentage information (OC-Reduction-Percentage) and the overload control identifier (OC-OLR) in the Diameter ACA according to the current load situation.
  • OC-Reduction-Percentage current overload control reduction percentage information
  • O-OLR overload control identifier
  • the primary CDF 34 sends the Diameter ACA to the core network element 32.
  • the core network element 32 determines whether the primary CDF 34 is overloaded according to the overload control reduction percentage indicated by the overload control reduction percentage information;
  • the overload control operation is performed proportionally according to the overload control method indicated by the overload control flag. For example, using a random algorithm to generate a value between 1 and 100, when the resulting value is less than or equal to the percentage of the overload control reduction percentage, the current ACR buffer to be sent, when the resulting value is greater than the 5% of the overload control reduction factor, The current ACR to be transmitted is sent to the main CDF 34.
  • step S312 the current ACR to be transmitted is sent to the primary CDF 34.
  • the overload control is performed in a manner that the current ACR to be sent by the CTF is sent to the secondary CDF 36
  • the current ACR to be sent is sent to the secondary CDF 36 in step S314, where the currently sent ACR to be transmitted includes the DOIC.
  • the charging identification information is such that the secondary CDF 36 processes the current ACR to be transmitted, as by step S316.
  • step S318 the core network element 32 determines whether the overload control reduction percentage indicated by the overload control reduction percentage information returns to the normal range, and if it is determined that the normal range is returned, the overload status of the primary CDF is released. , you can control the ACR in the ACR queue to be sent in order.
  • the first billing number is not controlled by proportionally controlling the current ACR to be sent to the local storage or to the second charging data function unit.
  • the ACR is sent according to the functional unit to perform overload control on the first charging data function unit in advance to avoid overloading due to overload control lag.
  • the method further includes:
  • the buffered ACR is sequentially read from the ACR queue in the local storage and sent to the first charging data function unit.
  • the cached ACRs are sequentially saved to obtain an ACR queue, so that after the first CDF overload state is determined to be released, the buffered ACRs to be sent in the ACR queue are continuously sent.
  • the cached ACRs are sequentially saved to obtain an ACR queue, so that after the first CDF overload state is determined to be released, the buffered ACRs to be sent in the ACR queue are continuously sent.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
  • an overload control device for the charging request message is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 4 is a schematic diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes the following contents:
  • the first sending unit 402 is configured to send the current ACR to the first charging data function unit;
  • the obtaining unit 404 is configured to obtain the overload control reduction carried in the ACA of the current ACR. Percentage information and overload control identification;
  • the first determining unit 406 is configured to determine, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded;
  • the control unit 408 is configured to perform an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag when the charging request message in the first charging data function unit is overloaded, wherein the overload control operation is used at least Indicates that the current ACR is not sent to the first charging data function unit.
  • the overload control apparatus of the foregoing charging request message may be, but is not limited to, applied to a Diameter overload control process on a charging interface, which is different from the related art in receiving a Diameter for indicating that a Diameter has been received.
  • the control overload is started.
  • the overload control device of the charging request message provided in this embodiment passes the Charging Trigger Function (CTF) located in the network element. Real-time access to the overload control reduction percentage information and overload control identifier carried in the ACA ACA to pre-determine whether the charging interface will be overloaded, so that in the normal communication process, the overload can be discovered in time, and the charging interface is overloaded in advance. Control, and thus avoid the problem of increased system load and overload due to overload lag.
  • CTF Charging Trigger Function
  • the foregoing ACR may include, but is not limited to, identifier information that supports Diameter Overload Indication Conveyance (DOIC).
  • DOIC Diameter Overload Indication Conveyance
  • the identifier information may be a sub-AVP of a Bool type in the AVP of the combined type of the OC-OLR, such as a Charging DOIC Indicator, or a redefinition of the value of the existing OC-Feature-Vector AVP.
  • the OLR_Charging_ALGO (0x0000000000000010) used to represent the overload report charging algorithm is an algorithm identification value used for charging in the OC-Feature-Vector AVP.
  • This OC-Feature-Vector AVP is used to represent the DOIC attributes supported by the DOIC node.
  • OLR_DEFAULT_ALGO(0x0000000000000001) that represents the default overload control algorithm
  • the overload control reduction percentage information and the overload control identifier are combined into an AVP overload report (such as OC-OLR) and carried in the response message ACA.
  • AVP overload report such as OC-OLR
  • the above overload control reduction percentage information may be, but is not limited to, determined by the first charging data function unit according to a current load situation (eg, CPU usage).
  • the overload control mode indicated by the overload control flag may include, but is not limited to, at least one of: performing an overload control operation proportionally, and performing an overload control operation all.
  • the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit.
  • the second charging data function unit and the first charging data function unit that receives the ACR may be, but are not limited to, different charging data function units.
  • the overload control operation may include, but is not limited to, at least one of: buffering the current ACR into the ACR queue in the local storage, and transmitting the current ACR to the second charging data. Functional unit.
  • the ACR is forwarded to the second charging data function unit for processing, or is temporarily buffered, and then re-sent to the first charging data function unit after the overload is released, thereby avoiding missing ACR, such as ACR[Start ] and its subsequent ACR [Interim] and ACR [Stop], in order to achieve the effect of improving the accuracy of billing.
  • the overload control identifier may be, but is not limited to, a new overload control device used to indicate a Charging Trigger Function (CTF), and the default overload control device of the DOIC processes the Loss Algorithm.
  • the current ACR in the process of performing the overload control operation proportionally, may be controlled according to the overload control reduction percentage information. For example, the higher the overload control reduction percentage indicated by the overload control reduction percentage information, the more the ACR is filtered, thereby achieving the processing load of mitigating the first charging data function unit and avoiding the first charging data function unit. There is an overload problem.
  • the overload control reduction percentage information and overload control carried in the response message ACA corresponding to the current ACR are acquired. And determining, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded, and if the charging request message in the first charging data function unit is overloaded, according to the overload control identifier
  • the indicated overload control mode performs an overload control operation on the current ACR.
  • the response message ACA in the current ACR is obtained in real time.
  • the overload control reduction percentage information and the overload control identifier carried are pre-determined whether the charging request message in the first charging data function unit is overloaded according to the overload control reduction percentage information, and if the first charging data function unit is determined to be If the fee request message has been overloaded, the overload control operation is performed on the current ACR according to the overload control mode indicated by the overload control flag, wherein the overload control operation is at least used to indicate that the current ACR is not sent to the first charging data function unit, that is, Said to reduce the processing capacity of the first charging data function unit by reducing the processing amount of the first charging data function unit, thereby reducing the processing load of the first charging data function unit; alternatively, In the normal communication process, the overload control device indicated by the overload control flag carried in the ACA is used to perform overload control on the charging interface in advance, thereby avoiding the problem of increased system load and overload due to overload lag.
  • control unit may include:
  • a first obtaining module configured to randomly acquire a target value within a predetermined sequence, wherein the predetermined sequence is arranged in ascending order;
  • a second obtaining module configured to obtain an acquisition percentage of the target value, wherein the acquisition percentage is a percentage of the serial number of the target value in the predetermined sequence and the total amount of the predetermined sequence;
  • the comparison module is set to compare the percentage of the acquisition and the percentage of the overload control reduction percentage indicated by the overload control reduction percentage information;
  • the first sending module is configured to send the current ACR to the first charging data function unit when the obtaining percentage is greater than the overload control reducing percentage;
  • the first processing module is configured to perform an overload control operation on the current ACR when the acquisition percentage is less than or equal to the overload control reduction percentage.
  • the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit.
  • the foregoing predetermined sequence may include, but is not limited to, a constant arranged in ascending order, for example, the predetermined sequence includes 10 consecutive natural numbers: 3, 4, 5, 6, 7, 8, 9, 10 11,11, assuming that the target value obtained by the random number is 9, and the sequence number of the target value in the predetermined sequence is 8, the acquisition percentage P of the target value can be obtained as follows:
  • the value in the foregoing predetermined sequence may be a continuous constant or other constants that are discontinuous.
  • the above is only an example, and is not limited in this embodiment.
  • the charging request response message ACA normally processed and returned by the first charging data function unit is acquired.
  • the identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
  • the first billing data function unit can determine the percentage of load reduction required on the billing interface (ie, the percentage of overload control reduction) according to the load situation (eg, CPU occupancy rate, etc.), and will carry the overload control reduction percentage ( For example, OC-Reduction-Percentage) overload control reduction percentage information and overload control identification are sent to the CTF in the form of a combined AVP overload report (eg, OC-OLR) in the response message ACA.
  • the percentage of load reduction required on the billing interface ie, the percentage of overload control reduction
  • the load situation eg, CPU occupancy rate, etc.
  • the CTF determines the overload control indicated by the percentage reduction information of the overload control. Whether the percentage reduction reaches a threshold that requires overload control (this threshold can be configured by the operator), if it is found that the threshold requiring overload control is reached, the corresponding overload control operation is performed.
  • a threshold that requires overload control
  • the overload control reduction percentage indicated by the overload control reduction percentage information is 80%.
  • the following operations are performed: when the current ACR is transmitted, the target value is randomly obtained from the predetermined sequence 1-100 ( For example, the target value is 60), and the predetermined sequence contains a total of 100 values, wherein the target number (ie, 60) has a serial number of 60 in the predetermined sequence, and the acquisition percentage of the target value is 60%, and the comparison yields 60. % ⁇ 80% will cache the current ACR.
  • the target value is randomly acquired from the predetermined range 1-100 (for example, the target value is 90), and the sequence number of the target value in the predetermined sequence is obtained, where the target value 90 is in the predetermined sequence (1)
  • the serial number in -100) is 90, the percentage of acquisition is 90%, and the comparison yields 90%>80%, then the current ACR is normally sent to the first CDF.
  • the overload control reduction percentage in the above example is 80%, that is, in In this embodiment, 80% of the ACR cache to be sent is sent to the first CDF, and 80% of the ACR to be sent is buffered according to the probability distribution, and 20% of the ACR is to be sent.
  • the sending ACR is normally sent to the first CDF to accurately control the ACR to be buffered to be cached according to the overload control reduction percentage, thereby improving the accuracy of the overload control.
  • the manner of utilizing the target value within the predetermined range and the percentage of reduction of the overload control is not limited to the above example, for example, the size of the molecule whose target value and the percentage of the overload control decrease are directly compared, thereby determining Whether to cache the corresponding current ACR to be sent. This embodiment does not limit this.
  • real-time judgment of the current ACR is implemented by the above-mentioned manner of performing the overload control operation proportionally, so that when the overload is found, the overload control is performed in time to avoid the first billing caused by continuing to send the ACR.
  • the processing load of the data function unit is increased, and the overload is increased, thereby improving the accuracy of the overload control of the first charging data function unit.
  • control unit comprises:
  • a second processing module configured to perform an overload control operation on each of the current ACRs.
  • the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit.
  • the charging trigger function unit CTF normally sends the ACR to the first charging data function unit (ie, the first CDF)
  • the charging request response message ACA that is normally processed and returned by the first CDF is acquired.
  • the identifier information of the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
  • the first CDF can determine the percentage of load reduction required on the charging interface (ie, the percentage of overload control reduction) according to the load situation (eg, CPU occupancy rate, etc.), and will carry the overload control reduction percentage (eg, OC- Reduction-Percentage)
  • the overload control reduction percentage information and overload control flag are sent to the CTF in the form of a combined AVP overload report (eg, OC-OLR) in the response message ACA.
  • the CTF receives the reduced percentage information (eg, OC-Reduction-Percentage) carrying the overload control and the response message ACA of the required overload control algorithm identifier. After that, it is judged whether the percentage reduction of the overload control indicated by the reduction percentage information of the overload control reaches a threshold that requires overload control (this threshold can be configured by the operator), and if it is found that the threshold of the overload control is reached, the corresponding overload is performed. Control operation.
  • the reduced percentage information eg, OC-Reduction-Percentage
  • the CTF selection will put all new ACR messages and their corresponding subsequent ACR[Interim] and ACR[Stop] messages. All are forwarded to the second CDF and receive an accounting response message from the second CDF.
  • the overload control operation is performed on all ACRs, thereby avoiding the processing load of the first charging data function unit caused by continuing to send the ACR, and the problem of overloading is avoided. Further, the effect of alleviating the processing pressure of the first billing data function unit is achieved.
  • control unit comprises at least one of the following:
  • a cache module configured to cache the current ACR into an ACR queue in the local memory according to the overload control mode indicated by the overload control flag;
  • the second sending module is configured to send the current ACR to the second charging data function unit according to the overload control mode indicated by the overload control flag.
  • the first charging data function unit may be, but not limited to, a primary charging data function unit
  • the second charging data function unit may be, but not limited to, a secondary charging data function unit.
  • the DiameterACR is normally sent to the primary CDF 34 (located on the Diameter server 39) at the core network element 32 (located at the Diameter client 38), the primary CDF 34.
  • the current overload control reduction percentage (OC-Reduction-Percentage) overload control percentage information and overload control identifier (OC-OLR) are carried in the response message ACA, and the response message ACA is sent to the core network.
  • the core network element 32 determines whether the primary CDF 34 is overloaded according to the overload control reduction percentage indicated by the overload control reduction percentage information.
  • the overload control method indicated by the overload control identifier is used.
  • the overload control operation is performed proportionally. For example, using a random algorithm to generate a value between 1 and 100, when the resulting value is less than or equal to the percentage of the overload control reduction percentage, the current ACR buffer to be sent, when the resulting value is greater than the 5% of the overload control reduction factor, The current ACR to be transmitted is sent to the main CDF 34.
  • the current ACR to be transmitted is sent to the primary CDF 34.
  • the overload control is performed in a manner that the current ACR to be sent by the CTF is sent to the secondary CDF 36
  • the current ACR to be sent is sent to the secondary CDF 36 in step S314, where the currently sent ACR to be transmitted includes the DOIC.
  • the charging identification information is such that the secondary CDF 36 processes the current ACR to be transmitted, as by step S316.
  • step S318 the core network element 32 determines whether the overload control reduction percentage indicated by the overload control reduction percentage information returns to the normal range, and if it is determined that the normal range is returned, the overload status of the primary CDF is released. , you can control the ACR in the ACR queue to be sent in order.
  • the ACR is not sent to the first charging data function unit by proportionally controlling the manner in which the current ACR to be sent is buffered to the local storage or sent to the second charging data function unit.
  • the overload control of the first charging data function unit is implemented in advance, and the problem of overloading due to overload control lag is avoided.
  • the second determining unit is configured to determine whether the charging request message in the first charging data function unit is released from overload
  • the second sending unit is configured to, when determining that the charging request has been released from the overload in the first charging data function unit, sequentially read the cached ACR from the ACR queue in the local storage, and send the first charging to the first charging. Data function unit.
  • the cached ACRs are sequentially saved to obtain an ACR queue, so that after the first CDF overload state is determined to be released, the buffered ACRs to be sent in the ACR queue are continuously sent.
  • the cached ACRs are sequentially saved to obtain an ACR queue, so that after the first CDF overload state is determined to be released, the buffered ACRs to be sent in the ACR queue are continuously sent.
  • Embodiments of the present invention also provide a storage medium.
  • Application scenarios and examples of the embodiment may Reference is made to the above-mentioned Embodiment 1 and Embodiment 2, and details are not described herein.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs the above steps S1 to S4 according to the stored program code in the storage medium.
  • modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the application is not limited to any particular combination of hardware and software.
  • An embodiment of the present invention provides a method and an apparatus for controlling an overload of a charging request message.
  • the method may include: transmitting a current ACR to a first charging data function unit; and obtaining a percentage of overload control carried in an ACA of the current ACR. And determining, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded; if the first charging data function unit is And performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier, where the overload control operation is at least used to indicate that the first The billing data function unit transmits the current ACR.
  • the overload control reduction percentage information and the overload control identifier carried in the current ACR response message ACA are obtained in real time, and it is determined in advance whether the charging request message in the first charging data function unit is overloaded, and if the first is determined If the ACR in the charging data function unit has an overload, the overload control operation is performed on the current ACR according to the overload control mode indicated by the overload control flag, that is, by reducing the processing amount of the first charging data function unit, achieving the first Overload control of the billing data function unit, thereby reducing the processing load of the first billing data function unit; optionally, in the normal communication process, using the overload control method indicated by the overload control flag carried in the ACA, in advance Overload control is performed on the billing interface to avoid the problem of increased system load and overload due to overload lag.

Abstract

Disclosed are an overload control method and apparatus for an accounting request. The method comprises: sending a current ACR to a first charging data function unit; acquiring overload control decrease percentage information carried in an ACA of the current ACR and an overload control identifier; determining, according to the overload control decrease percentage information in the ACA, whether the ACR in the first charging data function unit is overloaded; and if the ACR in the first charging data function unit is overloaded, executing an overload control operation on the current ACR according to an overload control mode indicated by the overload control identifier, the overload control operation being at least used for indicating non-sending of the current ACR to the first charging data function unit. The solution published in the article resolves the problem of overload increase caused by over-delay of overload control, and achieves the effect of preventing overload control in time.

Description

计费请求消息的过载控制方法及装置Overload control method and device for charging request message 技术领域Technical field
本申请涉及但不限于通信领域,具体而言,涉及一种计费请求消息的过载控制方法及装置。The present application relates to, but is not limited to, the field of communications, and in particular, to an overload control method and apparatus for a charging request message.
背景技术Background technique
目前,3GPP既有的离线计费接口Rf上Diameter过载控制方式是使用“DIAMETER_TOO_BUSY”错误响应码来提示计费接口已达到过载状态。具体来说,若计费触发功能(CTF,Charging Trigger Function)未及时收到计费响应消息(ACA,Accounting Request Answer),通常将会收到通过计费数据功能(CDF,Charging Data Function)发送的“DIAMETER_TOO_BUSY”错误响应码。这时每隔一个运营商可配置的等待时间,CTF就会重新发送一次已缓存的计费请求消息(ACR,Accounting Request)到CDF,当重复发送的次数达到运营商配置的最大重复次数,却依然没有收到ACA响应消息时,CTF会执行连接失败处理过程。At present, the Diameter overload control mode of the existing offline charging interface Rf of 3GPP uses the "DIAMETER_TOO_BUSY" error response code to indicate that the charging interface has reached the overload state. Specifically, if the Charging Trigger Function (CTF) does not receive the Accounting Request Answer (ACA) in time, it will usually receive the Charging Data Function (CDF). "DIAMETER_TOO_BUSY" error response code. At this time, every other operator can configure the waiting time, the CTF will resend the cached charging request message (ACR, Accounting Request) to the CDF. When the number of repeated transmissions reaches the maximum number of repetitions configured by the operator, When the ACA response message is still not received, the CTF will perform the connection failure processing.
可选地若缓存的ACR并不是新的计费请求消息,而是之前成功发到断链CDF的ACR的后续ACR(例如,ACR[Interim]和/或ACR[Stop])时,CTF则会每隔一段运营商可配置的等待时间,就发送一次已缓存的ACR到断链的CDF,由于考虑到计费信息不能丢失,这样的重发过程将会一直无限重复下去直到该条链路恢复。Optionally, if the cached ACR is not a new charging request message, but a subsequent ACR (for example, ACR[Interim] and/or ACR[Stop]) that was successfully sent to the ACR of the broken CDF, the CTF will Each time a certain operator can configure the waiting time, the cached ACR is sent to the broken CDF. Since the charging information cannot be lost, such retransmission process will be repeated indefinitely until the link is restored. .
采用上述Diameter过载控制方式,存在的问题是:离线计费接口Rf上已经出现过载,但是CTF依然不停的在该接口上重发ACR,这必然将造成过载情况更加严重。也就是说,由于相关技术中的过载控制方法是在出现过载现象之后才开始进行控制,因而控制过程较为滞后,而在该过载控制过程中,过载情况可能变得更加严重。换言之,采用相关技术的过载控制方法,由于无法及时发现并预防过载,将可能造成系统崩溃。With the Diameter overload control method described above, there is a problem that an overload has occurred on the offline charging interface Rf, but the CTF still retransmits the ACR on the interface, which will inevitably cause an overload situation to be more serious. That is to say, since the overload control method in the related art starts the control after the occurrence of the overload phenomenon, the control process is relatively lagging, and in the overload control process, the overload condition may become more serious. In other words, with the related art overload control method, the system may collapse due to the inability to detect and prevent the overload in time.
针对上述问题,目前尚未提出有效的解决方案。In response to the above problems, no effective solution has been proposed yet.
发明内容 Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保围。The following is an overview of the topics detailed in this document. This summary is not intended to limit the scope of the claims.
本申请提供了一种计费请求消息的过载控制方法及装置,以至少解决相关技术中的过载控制过于滞后所导致的过载加重的问题。The present application provides an overload control method and apparatus for a charging request message to at least solve the problem of overloading caused by an excessive overload of the overload control in the related art.
一方面,提供了一种计费请求消息的过载控制方法,包括:向第一计费数据功能单元发送当前ACR;获取上述当前ACR的ACA中携带的过载控制降低百分比信息及过载控制标识;根据上述ACA中的上述过载控制降低百分比信息判断上述第一计费数据功能单元中ACR是否出现过载;若上述第一计费数据功能单元中ACR出现过载,则按照上述过载控制标识指示的过载控制方式对上述当前ACR执行过载控制操作,其中,上述过载控制操作至少用于指示不向上述第一计费数据功能单元发送上述当前ACR。An aspect of the present invention provides an overload control method for a charging request message, including: transmitting a current ACR to a first charging data function unit; acquiring an overload control reduction percentage information and an overload control identifier carried in the current ACR ACA; The above-mentioned overload control reduction percentage information in the ACA determines whether the ACR in the first charging data function unit is overloaded; if the ACR in the first charging data function unit is overloaded, the overload control method indicated by the overload control identifier is used. Performing an overload control operation on the current ACR, wherein the overload control operation is at least used to indicate that the current ACR is not sent to the first charging data function unit.
可选地,上述过载控制标识指示的过载控制方式包括以下至少之一:按比例执行过载控制操作、全部执行过载控制操作。Optionally, the overload control manner indicated by the overload control identifier includes at least one of: performing an overload control operation proportionally, and performing an overload control operation all.
可选地,上述按照上述过载控制标识指示的过载控制方式对上述当前ACR执行过载控制操作包括:在预定序列内随机获取一个目标数值,其中,上述预定序列按照升序排列;获取上述目标数值的获取百分比,其中,上述获取百分比为上述目标数值在上述预定序列中的序列号与上述预定序列的总量的百分比;比较上述获取百分比与上述过载控制降低百分比信息所指示的过载控制降低百分比的大小;若上述获取百分比大于上述过载控制降低百分比,则将上述当前ACR发送给上述第一计费数据功能单元;若上述获取百分比小于等于上述过载控制降低百分比,则对上述当前ACR执行过载控制操作。Optionally, performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier includes: randomly acquiring a target value in a predetermined sequence, wherein the predetermined sequence is arranged in ascending order; acquiring the target value a percentage, wherein the above-mentioned acquisition percentage is a percentage of the serial number of the target value in the predetermined sequence and the total amount of the predetermined sequence; and comparing the above-mentioned acquisition percentage with the reduction percentage of the overload control indicated by the overload control reduction percentage information; And if the obtained percentage is greater than the overload control reduction percentage, the current ACR is sent to the first charging data function unit; if the acquisition percentage is less than or equal to the overload control reduction percentage, the overload control operation is performed on the current ACR.
可选地,上述按照上述过载控制标识指示的过载控制方式对上述当前ACR执行过载控制操作包括:对每一个上述当前ACR执行过载控制操作。Optionally, performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier includes: performing an overload control operation on each of the current ACRs.
可选地,按照上述过载控制标识指示的过载控制方式对上述当前ACR执行过载控制操作包括以下至少之一:按照上述过载控制标识所指示的过载控制方式将上述当前ACR缓存到本地存储器中的ACR队列中;或者按照上述过载控制标识所指示的过载控制方式将上述当前ACR发送给第二计费数据功能单元。 Optionally, performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier includes at least one of: caching the current ACR into the local memory in accordance with the overload control mode indicated by the overload control identifier. In the queue, or sending the current ACR to the second charging data function unit according to the overload control mode indicated by the overload control identifier.
可选地,上述ACR中携带有支持Diameter过载指示传输DOIC的标识信息。Optionally, the ACR carries the identifier information that supports the Diameter overload indication transmission DOIC.
可选地,在按照上述过载控制标识指示的过载控制方式对上述当前ACR执行过载控制操作之后,还包括:判断上述第一计费数据功能单元中上述ACR是否解除过载;若判断出上述第一计费数据功能单元中上述ACR已解除过载,则从上述本地存储器中的上述ACR队列中依次读取缓存的ACR,并发送给上述第一计费数据功能单元。Optionally, after performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier, the method further includes: determining whether the ACR in the first charging data function unit is overloaded; and determining the first When the ACR has been released from the overload in the charging data function unit, the buffered ACR is sequentially read from the ACR queue in the local storage and sent to the first charging data function unit.
可选地,上述过载控制降低百分比信息及上述过载控制标识组合成AVP过载报告携带在上述ACA中。Optionally, the overload control reduction percentage information and the overload control identifier are combined into an AVP overload report and carried in the ACA.
另一方面,提供了一种计费请求消息的过载控制装置,包括:第一发送单元,设置为向第一计费数据功能单元发送当前ACR;获取单元,设置为获取上述当前ACR的ACA中携带的过载控制降低百分比信息及过载控制标识;第一判断单元,设置为根据上述ACA中的上述过载控制降低百分比信息判断上述第一计费数据功能单元中ACR是否出现过载;控制单元,设置为在上述第一计费数据功能单元中上述ACR出现过载时,按照上述过载控制标识指示的过载控制方式对上述当前ACR执行过载控制操作,其中,上述过载控制操作至少用于指示不向上述第一计费数据功能单元发送上述当前ACR。In another aspect, an overload control apparatus for providing a charging request message includes: a first sending unit configured to send a current ACR to a first charging data function unit; and an acquiring unit configured to acquire the current ACR in the ACA Carrying the overload control to reduce the percentage information and the overload control identifier; the first determining unit is configured to determine, according to the overload control reduction percentage information in the ACA, whether the ACR in the first charging data function unit is overloaded; the control unit is set to And performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier, where the overload control operation is at least used to indicate that the first The billing data function unit transmits the current ACR described above.
可选地,上述过载控制标识指示的过载控制方式包括以下至少之一:按比例执行过载控制操作、全部执行过载控制操作。Optionally, the overload control manner indicated by the overload control identifier includes at least one of: performing an overload control operation proportionally, and performing an overload control operation all.
可选地,上述控制单元包括:第一获取模块,设置为在预定序列内随机获取一个目标数值,其中,上述预定序列按照升序排列;第二获取模块,设置为获取上述目标数值的获取百分比,其中,上述获取百分比为上述目标数值在上述预定序列中的序列号与上述预定序列的总量的百分比;比较模块,设置为比较上述获取百分比与上述过载控制降低百分比信息所指示的过载控制降低百分比的大小;第一发送模块,设置为在上述获取百分比大于上述过载控制降低百分比时,将上述当前ACR发送给上述第一计费数据功能单元;第一处理模块,设置为在上述获取百分比小于等于上述过载控制降低百分比时,对上述当前ACR执行过载控制操作。 Optionally, the control unit includes: a first acquiring module, configured to randomly acquire a target value within a predetermined sequence, wherein the predetermined sequence is arranged in ascending order; and the second obtaining module is configured to obtain a percentage of obtaining the target value, The obtaining percentage is a percentage of the serial number of the target value in the predetermined sequence and the total amount of the predetermined sequence; and the comparing module is configured to compare the percentage of the overload and the percentage of the overload control indicated by the overload control percentage information. The first sending module is configured to send the current ACR to the first charging data function unit when the obtaining percentage is greater than the overload control reducing percentage; the first processing module is configured to set the percentage of the obtaining to be less than or equal to When the above overload control reduces the percentage, the overload control operation is performed on the current ACR described above.
可选地,上述控制单元包括:第二处理模块,设置为对每一个上述当前ACR执行过载控制操作。Optionally, the control unit includes: a second processing module configured to perform an overload control operation on each of the current ACRs.
可选地,上述控制单元包括以下至少之一:缓存模块,设置为按照上述过载控制标识所指示的过载控制方式将上述当前ACR缓存到本地存储器中的ACR队列中;或者第二发送模块,设置为按照上述过载控制标识所指示的过载控制方式将上述当前ACR发送给第二计费数据功能单元。Optionally, the foregoing control unit includes at least one of: a cache module configured to cache the current ACR into an ACR queue in the local storage according to the overload control manner indicated by the overload control identifier; or a second sending module, The current ACR is sent to the second charging data function unit in accordance with the overload control mode indicated by the overload control flag.
可选地,上述ACR中携带有支持Diameter过载指示传输DOIC的标识信息。Optionally, the ACR carries the identifier information that supports the Diameter overload indication transmission DOIC.
可选地,还包括:第二判断单元,设置为判断上述第一计费数据功能单元中上述ACR是否解除过载;第二发送单元,设置为在判断出上述第一计费数据功能单元中上述ACR已解除过载时,从上述本地存储器中的上述ACR队列中依次读取缓存的ACR,并发送给上述第一计费数据功能单元。Optionally, the method further includes: a second determining unit, configured to determine whether the ACR in the first charging data function unit is overloaded; and the second sending unit is configured to determine the foregoing first charging data function unit When the ACR has been unloaded, the cached ACR is sequentially read from the ACR queue in the local storage and sent to the first charging data function unit.
可选地,上述过载控制降低百分比信息及上述过载控制标识组合成AVP过载报告携带在上述ACA中。Optionally, the overload control reduction percentage information and the overload control identifier are combined into an AVP overload report and carried in the ACA.
另一方面,提供了一种存储介质,被设置为存储用于执行以下步骤的程序代码:In another aspect, a storage medium is provided that is arranged to store program code for performing the following steps:
向第一计费数据功能单元发送当前ACR;Sending a current ACR to the first charging data function unit;
获取当前ACR的ACA中携带的过载控制降低百分比信息及过载控制标识;Obtaining the overload control reduction percentage information and the overload control identifier carried in the current ACR ACA;
根据ACA中的过载控制降低百分比信息判断第一计费数据功能单元中ACR是否出现过载;Determining whether an ACR in the first charging data function unit is overloaded according to the overload control reduction percentage information in the ACA;
若第一计费数据功能单元中ACR出现过载,则按照所述过载控制标识指示的过载控制方式对当前ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向第一计费数据功能单元发送当前ACR。If an overload occurs in the ACR in the first charging data function unit, performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag, where the overload control operation is at least used to indicate that the first charging is not performed. The data function unit sends the current ACR.
本申请中,通过实时获取当前ACR的响应消息ACA中所携带的过载控制降低百分比信息及过载控制标识,根据过载控制降低百分比信息来预先判断第一计费数据功能单元中计费请求消息是否出现过载,若判断出第一计费数据功能单元中计费请求消息已出现过载,则按照过载控制标识所指示的过 载控制方式对当前ACR执行过载控制操作,其中,过载控制操作至少用于指示不向第一计费数据功能单元发送当前ACR,也就是说,通过减少第一计费数据功能单元的处理量,以实现对第一计费数据功能单元的过载控制,从而减少第一计费数据功能单元的处理负荷;可选地,还可实现在正常的通信过程中,利用ACA中携带的过载控制标识所指示的过载控制方法,预先对计费接口进行过载控制,进而避免由于过载滞后所导致的系统负荷增大,过载加重的问题。In the present application, the overload control reduction percentage information and the overload control identifier carried in the current ACR response message ACA are obtained in real time, and the charging control request information in the first charging data function unit is pre-determined according to the overload control reduction percentage information. If it is determined that the charging request message in the first charging data function unit has been overloaded, it is indicated by the overload control flag. The load control mode performs an overload control operation on the current ACR, wherein the overload control operation is at least used to indicate that the current ACR is not sent to the first charging data function unit, that is, by reducing the processing amount of the first charging data function unit, The overload control of the first charging data function unit is implemented, thereby reducing the processing load of the first charging data function unit; optionally, the overload control identifier carried in the ACA is also used in the normal communication process. The indicated overload control method performs overload control on the charging interface in advance, thereby avoiding the problem of increased system load and overload due to overload lag.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
可选地在附图中:Optionally in the drawing:
图1是根据本发明实施例的一种可选的计费请求消息的过载控制方法的流程图;1 is a flowchart of an overload control method of an optional charging request message according to an embodiment of the present invention;
图2是根据本发明实施例的另一种可选的计费请求消息的过载控制方法的流程图;2 is a flowchart of another optional overload control method for a charging request message according to an embodiment of the present invention;
图3是根据本发明实施例的又一种可选的计费请求消息的过载控制方法的流程图;3 is a flowchart of still another optional overload control method of a charging request message according to an embodiment of the present invention;
图4是根据本发明实施例的一种可选的计费请求消息的过载控制装置的结构示意图。FIG. 4 is a schematic structural diagram of an overload control apparatus of an optional charging request message according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
在本实施例中提供了一种计费请求消息的过载控制方法,图1是根据本发明实施例的计费请求消息的过载控制方法的流程图,如图1所示,该流程 包括如下步骤:In this embodiment, an overload control method for a charging request message is provided. FIG. 1 is a flowchart of an overload control method for a charging request message according to an embodiment of the present invention. As shown in FIG. Including the following steps:
S102,向第一计费数据功能单元(CDF,Charging Data Function)发送当前ACR;S102, sending a current ACR to a first charging data function unit (CDF, Charging Data Function);
S104,获取当前ACR的ACA中携带的过载控制降低百分比信息及过载控制标识;S104. Acquire an overload control reduction percentage information and an overload control identifier carried in the current ACR ACA.
S106,根据ACA中的过载控制降低百分比信息判断第一计费数据功能单元中ACR是否出现过载;S106. Determine, according to the overload control reduction percentage information in the ACA, whether an ACR in the first charging data function unit is overloaded;
S108,若第一计费数据功能单元中ACR出现过载,则按照所述过载控制标识指示的过载控制方式对当前ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向第一计费数据功能单元发送当前ACR。S108. If an overload occurs in the ACR in the first charging data function unit, perform an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag, where the overload control operation is used to indicate at least the first The billing data function unit sends the current ACR.
可选地,在本实施例中,上述计费请求消息的过载控制方法可以但不限于应用于计费接口上的Diameter过载控制过程中,不同于相关技术中在接收到用于指示已经出现Diameter过载的“DIAMETER_TOO_BUSY”的错误响应码之后,才开始执行控制过载,本实施例中提供的计费请求消息的过载控制方法将通过位于网元中的计费触发功能单元(CTF,Charging Trigger Function)实时获取ACR的ACA中所携带的过载控制降低百分比信息及过载控制标识,以预先判断计费接口是否会出现过载,从而在正常的通信过程中,能够及时发现过载,预先对计费接口进行过载控制,进而避免由于过载滞后所导致的系统负荷增大和过载加重。Optionally, in this embodiment, the overload control method of the foregoing charging request message may be, but is not limited to, applied to a Diameter overload control process on a charging interface, which is different from the related art in receiving a Diameter for indicating that a Diameter has been received. After the error response code of the overloaded "DIAMETER_TOO_BUSY" is started, the control overload is started. The overload control method of the charging request message provided in this embodiment passes the charging trigger function unit (CTF, Charging Trigger Function) located in the network element. Real-time access to the overload control reduction percentage information and overload control identifier carried in the ACA ACA to pre-determine whether the charging interface will be overloaded, so that in the normal communication process, the overload can be discovered in time, and the charging interface is overloaded in advance. Control, thereby avoiding increased system load and increased overload due to overload hysteresis.
可选地,在本实施例中,上述ACR中可以但不限于携带有支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。其中,该标识信息可以是在OC-OLR是组合型的AVP中新增一个bool型的子AVP,如:Charging DOIC Indicator;也可以是对既有的OC-Feature-Vector AVP的取值重新定义,比如规定:用于表示过载报告计费算法的OLR_Charging_ALGO(0x0000000000000010)为OC-Feature-Vector AVP中用于计费的一个算法标识值。(这个既有OC-Feature-Vector AVP用于表示DOIC结点所支持的DOIC属性,目前有一个取值是表示默认的过载控制算法的OLR_DEFAULT_ALGO(0x0000000000000001)) Optionally, in this embodiment, the foregoing ACR may include, but is not limited to, identifier information that supports Diameter Overload Indication Conveyance (DOIC). The identifier information may be a sub-AVP of a Bool type in the AVP of the combined type of the OC-OLR, such as a Charging DOIC Indicator, or a redefinition of the value of the existing OC-Feature-Vector AVP. For example, the OLR_Charging_ALGO (0x0000000000000010) used to represent the overload report charging algorithm is an algorithm identification value used for charging in the OC-Feature-Vector AVP. (This OC-Feature-Vector AVP is used to represent the DOIC attributes supported by the DOIC node. Currently there is a value of OLR_DEFAULT_ALGO(0x0000000000000001) that represents the default overload control algorithm)
可选地,在本实施例中,上述过载控制降低百分比信息及过载控制标识组合成AVP过载报告(如OC-OLR)携带在响应消息ACA中。其中,上述过载控制降低百分比信息可以但不限于由第一计费数据功能单元根据当前的负荷情况(例如,CPU占用率)来确定。Optionally, in this embodiment, the overload control reduction percentage information and the overload control identifier are combined into an AVP overload report (such as OC-OLR) and carried in the response message ACA. The above overload control reduction percentage information may be, but is not limited to, determined by the first charging data function unit according to a current load situation (eg, CPU usage).
可选地,在本实施例中,过载控制标识所指示的过载控制方式可以包括但不限于以下至少之一:按比例执行过载控制操作、全部执行过载控制操作。可选地,在本实施例中,上述过载控制操作可以包括但不限于以下至少之一:将当前ACR缓存到本地存储器中的ACR队列中、将当前ACR发送给第二计费数据功能单元。其中,上述第二计费数据功能单元与接收ACR的第一计费数据功能单元可以但不限于为不同的计费数据功能单元。Optionally, in this embodiment, the overload control mode indicated by the overload control flag may include, but is not limited to, at least one of: performing an overload control operation proportionally, and performing an overload control operation all. Optionally, in this embodiment, the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit. The second charging data function unit and the first charging data function unit that receives the ACR may be, but are not limited to, different charging data function units.
需要说明的是,对于运营商来说作为重要的运营数据,用户计费消息是不能随意丢弃的,因而不能采用Loss Algorithm过载控制方法来解除计费接口出现的过载。为了避免遗漏计费请求,在本实施例中提供的过载控制操作可以包括但不限于以下至少之一:将当前ACR缓存到本地存储器中的ACR队列中、将当前ACR发送给第二计费数据功能单元。也就是说,通过将ACR转发给第二计费数据功能单元进行处理,或者,先暂时缓存,待过载解除后再重新发送给第一计费数据功能单元,从而避免遗漏ACR,例如ACR[Start]及其后续的ACR[Interim]及ACR[Stop],进而达到提高计费的准确性的效果。可选地,上述过载控制标识可以但不限于用于指示计费触发功能(CTF,Charging Trigger Function)所要采用的新的过载控制方法,不同于DOIC默认的过载控制方法处理Loss Algorithm。It should be noted that, as an important operational data for the operator, the user charging message cannot be discarded at will, and therefore the Loss Algorithm overload control method cannot be used to cancel the overload of the charging interface. In order to avoid missing the charging request, the overload control operation provided in this embodiment may include, but is not limited to, at least one of: buffering the current ACR into the ACR queue in the local storage, and transmitting the current ACR to the second charging data. Functional unit. That is, the ACR is forwarded to the second charging data function unit for processing, or is temporarily buffered, and then re-sent to the first charging data function unit after the overload is released, thereby avoiding missing ACR, such as ACR[Start ] and its subsequent ACR [Interim] and ACR [Stop], in order to achieve the effect of improving the accuracy of billing. Optionally, the overload control identifier may be, but is not limited to, a new overload control method used to indicate a Charging Trigger Function (CTF), and the Loss default overload control method is used to process the Loss Algorithm.
可选地,在本实施例中,在按比例执行过载控制操作的过程中,可以但不限于根据过载控制降低百分比信息来控制当前ACR。例如,过载控制降低百分比信息所指示的过载控制降低百分比越高,则将控制过滤越多的ACR,从而达到缓解第一计费数据功能单元的处理负荷,以实现及时避免第一计费数据功能单元出现过载的问题。Alternatively, in the present embodiment, in the process of performing the overload control operation proportionally, the current ACR may be controlled according to the overload control reduction percentage information. For example, the higher the overload control reduction percentage indicated by the overload control reduction percentage information, the more the ACR is filtered, so as to alleviate the processing load of the first charging data function unit, so as to realize the timely avoidance of the first charging data function. The unit has an overload problem.
具体结合以下示例进行说明,如图2所示的计费请求消息的过载控制方法的流程可以包括步骤S202至S208:S202,CTF 22向第一CDF 24发送当前ACR;S204,CTF 22获取与当前ACR对应的ACA中所携带的过载控制 降低百分比信息及过载控制标识;S206,CTF22根据ACA中的过载控制降低百分比信息判断第一计费数据功能单元中计费请求消息是否出现过载;S208,若第一计费数据功能单元中计费请求消息出现过载,则按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作。Specifically, the following example is used to illustrate that the flow of the overload control method of the charging request message shown in FIG. 2 may include steps S202 to S208: S202, the CTF 22 sends the current ACR to the first CDF 24; S204, the CTF 22 acquires and is currently Overload control carried in ACA corresponding to ACR And reducing the percentage information and the overload control identifier; S206, the CTF 22 determines, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded; S208, if the charging is performed in the first charging data function unit If the request message is overloaded, the overload control operation is performed on the current ACR according to the overload control mode indicated by the overload control flag.
通过本申请提供的实施例,通过实时获取当前ACR的ACA中所携带的过载控制降低百分比信息及过载控制标识,根据过载控制降低百分比信息来预先判断第一计费数据功能单元中计费请求消息是否出现过载,若判断出第一计费数据功能单元中计费请求消息已出现过载,则按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作,其中,过载控制操作至少用于指示不向第一计费数据功能单元发送当前ACR,也就是说,通过减少第一计费数据功能单元的处理量,以实现对第一计费数据功能单元的过载控制,从而减少第一计费数据功能单元的处理负荷;可选地,还可实现在正常的通信过程中,利用ACA中携带的过载控制标识所指示的过载控制方法,预先对计费接口进行过载控制,进而避免由于过载滞后所导致的系统负荷增大,过载加重的问题。Through the embodiment provided by the present application, the overload control reduction percentage information and the overload control identifier carried in the current ACR of the current ACR are obtained in real time, and the charging request message in the first charging data function unit is pre-determined according to the overload control reduction percentage information. Whether an overload occurs. If it is determined that the charging request message in the first charging data function unit has been overloaded, the overload control operation is performed on the current ACR according to the overload control mode indicated by the overload control flag, wherein the overload control operation is used at least for Instructing not to send the current ACR to the first charging data function unit, that is, to reduce the processing amount of the first charging data function unit by reducing the processing amount of the first charging data function unit, thereby reducing the first meter The processing load of the data function unit; optionally, the overload control method indicated by the overload control identifier carried in the ACA is used in the normal communication process, and the charging interface is overloaded in advance, thereby avoiding overload The system load caused by the lag increases, and the overload increases.
作为一种可选的方案,所述按照所述过载控制标识所指示的过载控制方式对所述当前ACR执行过载控制操作包括:As an optional solution, the performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier includes:
S1,在预定序列内随机获取一个目标数值,其中,预定序列按照升序排列;S1, randomly acquiring a target value within a predetermined sequence, wherein the predetermined sequence is arranged in ascending order;
S2,获取目标数值的获取百分比,其中,获取百分比为目标数值在预定序列中的序列号与预定序列的总量的百分比;S2, obtaining a percentage of the target value obtained, wherein the obtaining percentage is a percentage of the serial number of the target value in the predetermined sequence and the total amount of the predetermined sequence;
S3,比较获取百分比与过载控制降低百分比信息所指示的过载控制降低百分比的大小;S3, comparing the percentage of the acquisition percentage and the overload control reduction percentage indicated by the overload control reduction percentage information;
S4,若获取百分比大于过载控制降低百分比,则将当前ACR发送给第一计费数据功能单元;S4, if the acquisition percentage is greater than the overload control reduction percentage, the current ACR is sent to the first charging data function unit;
S5,若获取百分比小于等于过载控制降低百分比,则对当前ACR执行过载控制操作。S5. If the acquisition percentage is less than or equal to the overload control reduction percentage, the overload control operation is performed on the current ACR.
可选地,在本实施例中,上述过载控制操作可以包括但不限于以下至少 之一:将当前ACR缓存到本地存储器中的ACR队列中、将当前ACR发送给第二计费数据功能单元。Optionally, in this embodiment, the foregoing overload control operation may include, but is not limited to, at least the following One: The current ACR is buffered into the ACR queue in the local storage, and the current ACR is sent to the second charging data function unit.
可选地,在本实施例中,上述预定序列可以包括但不限于按照升序排列的常数,例如,预定序列中包括10个连续自然数:3,4,5,6,7,8,9,10,11,12,假设随机获取到的目标数值为9,目标数值在预定序列中的序列号为8,则获取该目标数值的获取百分比P可以如下:Optionally, in this embodiment, the foregoing predetermined sequence may include, but is not limited to, a constant arranged in ascending order, for example, the predetermined sequence includes 10 consecutive natural numbers: 3, 4, 5, 6, 7, 8, 9, 10 11,11, assuming that the target value obtained by the random number is 9, and the sequence number of the target value in the predetermined sequence is 8, the acquisition percentage P of the target value can be obtained as follows:
P=(7/10)*100%=70%P=(7/10)*100%=70%
需要说明的是,上述预定序列中的数值可以为连续常数,也可以为不连续的其他常数,上述仅是一种示例,本实施例中对此不做任何限定。It should be noted that the value in the foregoing predetermined sequence may be a continuous constant or other constants that are discontinuous. The above is only an example, and is not limited in this embodiment.
具体结合以下示例进行说明,在CTF正常发送ACR到第一计费数据功能单元后,获取第一计费数据功能单元正常处理并返回的ACA。其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。然后,第一计费数据功能单元可以根据负荷情况(例如,CPU的占用率等)判断需要在计费接口上降低负荷的百分比(即过载控制降低百分比),并将携带有过载控制降低百分比(如,OC-Reduction-Percentage)的过载控制降低百分比信息及过载控制标识,以组合型AVP过载报告(例如,OC-OLR)的形式放在响应消息ACA里发送给CTF。Specifically, the following example is used to illustrate that after the CTF normally sends the ACR to the first charging data function unit, the ACA that is processed and returned by the first charging data function unit is obtained. The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message. Then, the first billing data function unit can determine the percentage of load reduction required on the billing interface (ie, the percentage of overload control reduction) according to the load situation (eg, CPU occupancy rate, etc.), and will carry the overload control reduction percentage ( For example, OC-Reduction-Percentage) overload control reduction percentage information and overload control identification are sent to the CTF in the form of a combined AVP overload report (eg, OC-OLR) in the response message ACA.
可选地,CTF收到携带有过载控制的降低百分比信息(如:OC-Reduction-Percentage)及需要的过载控制算法标识的响应消息ACA后,判断过载控制的降低百分比信息所指示的过载控制的降低百分比是否达到需要过载控制的阈值(这一阈值可以由运营商配置),如果发现已达到需要过载控制的阈值,则执行对应的过载控制操作。Optionally, after receiving the reduced percentage information (eg, OC-Reduction-Percentage) carrying the overload control and the response message ACA identified by the required overload control algorithm, the CTF determines the overload control indicated by the percentage reduction information of the overload control. Whether the percentage reduction reaches a threshold that requires overload control (this threshold can be configured by the operator), if it is found that the threshold requiring overload control is reached, the corresponding overload control operation is performed.
例如,假设以按比例缓存为例为例,过载控制降低百分比信息所指示的过载控制降低百分比为80%。对于新的ACR消息(ACR[Start]及其后续的ACR[Interim]及ACR[Stop])中的当前ACR执行以下操作:在发送当前ACR时,随机从预定序列1-100内获取目标数值(例如,目标数值为60),预定序列中共包含100个数值,其中,目标数值(即,60)在预定序列中的序列号为60,获取目标数值的获取百分比,即60%,比较得出60%<80%,则将 当前ACR缓存。For example, assuming that the proportional cache is taken as an example, the overload control reduction percentage indicated by the overload control reduction percentage information is 80%. For the current ACR in the new ACR message (ACR[Start] and its subsequent ACR[Interim] and ACR[Stop]), the following operations are performed: when the current ACR is transmitted, the target value is randomly obtained from the predetermined sequence 1-100 ( For example, the target value is 60), and the predetermined sequence contains a total of 100 values, wherein the target number (ie, 60) has a serial number of 60 in the predetermined sequence, and the acquisition percentage of the target value is 60%, and the comparison yields 60. %<80%, will Current ACR cache.
又例如,假设在发送当前ACR时,随机从预定范围1-100内获取目标数值(例如,目标数值为90),获取目标数值在预定序列中的序列号,这里目标数值90在预定序列(1-100)中的序列号为90,获取百分比为90%,比较得出90%>80%,则将当前ACR正常发送给第一CDF。For another example, assume that when the current ACR is transmitted, the target value is randomly acquired from the predetermined range 1-100 (for example, the target value is 90), and the sequence number of the target value in the predetermined sequence is obtained, where the target value 90 is in the predetermined sequence (1) The serial number in -100) is 90, the percentage of acquisition is 90%, and the comparison yields 90%>80%, then the current ACR is normally sent to the first CDF.
需要说明的是,上述示例中过载控制降低百分比为80%,也就是说,在本实施例中,将小于等于80%的待发送ACR缓存,将大于80%的待发送ACR继续发送给第一CDF,从而实现根据概率分布将80%的待发送ACR缓存,将20%的待发送ACR正常发送给第一CDF,以根据过载控制降低百分比准确控制所要缓存的待发送ACR,提高过载控制的准确性。It should be noted that, in the above example, the overload control reduction percentage is 80%, that is, in this embodiment, 80% of the ACR cache to be sent is to be sent, and more than 80% of the ACR to be sent are sent to the first. CDF, so that 80% of the ACR cache to be sent according to the probability distribution is sent, and 20% of the ACR to be sent is normally sent to the first CDF, so as to accurately control the ACR to be buffered according to the percentage of overload control reduction, and the accuracy of the overload control is improved. Sex.
可选地,在本实施例中,利用预定范围内的目标数值与过载控制降低百分比的方式不仅仅限于上述示例,例如,还可以直接比较目标数值与过载控制降低百分比的分子的大小,从而判断是否缓存对应的当前待发送ACR。本实施例中对此不作任何限定。Optionally, in this embodiment, the manner of utilizing the target value within the predetermined range and the percentage of reduction of the overload control is not limited to the above example, for example, the size of the molecule whose target value and the percentage of the overload control decrease are directly compared, thereby determining Whether to cache the corresponding current ACR to be sent. This embodiment does not limit this.
通过本申请提供的实施例,通过上述按比例执行过载控制操作的方式,实现对当前ACR进行实时判断,以便于在发现过载时,及时进行过载控制,从而避免继续发送ACR所造成的第一计费数据功能单元的处理负荷增大,过载加重的问题,进而达到提高对第一计费数据功能单元的过载控制的准确性的效果。Through the embodiment provided by the present application, real-time judgment of the current ACR is realized by the above-mentioned manner of performing the overload control operation proportionally, so that when the overload is found, the overload control is performed in time, thereby avoiding the first calculation caused by continuing to send the ACR. The processing load of the fee data function unit is increased, and the overload is increased, thereby achieving an effect of improving the accuracy of the overload control of the first billing data function unit.
作为一种可选的方案,按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作包括:As an optional solution, performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag includes:
S1,对每一个当前ACR执行过载控制操作。S1, an overload control operation is performed for each current ACR.
可选地,在本实施例中,上述过载控制操作可以包括但不限于以下至少之一:将当前ACR缓存到本地存储器中的ACR队列中、将当前ACR发送给第二计费数据功能单元。Optionally, in this embodiment, the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit.
具体结合以下示例进行说明,在计费触发功能单元CTF正常发送ACR到第一计费数据功能单元(即第一CDF)后,获取第一CDF正常处理并返回的计费请求响应消息ACA。其中,在ACR消息里携带支持过载指示传输 (DOIC,Diameter Overload Indication Conveyance)的标识信息。然后,第一CDF可以根据负荷情况(例如,CPU的占用率等)判断需要在计费接口上降低负荷的百分比(即过载控制降低百分比),并将携带有过载控制降低百分比(如,OC-Reduction-Percentage)的过载控制降低百分比信息及过载控制标识,以组合型AVP过载报告(例如,OC-OLR)的形式放在响应消息ACA里发送给CTF。Specifically, in combination with the following example, after the charging trigger function unit CTF normally sends the ACR to the first charging data function unit (ie, the first CDF), the charging request response message ACA that is normally processed and returned by the first CDF is acquired. Wherein, the ACR message carries the support overload indication transmission (DOIC, Diameter Overload Indication Conveyance) identification information. Then, the first CDF can determine the percentage of load reduction required on the charging interface (ie, the percentage of overload control reduction) according to the load situation (eg, CPU occupancy rate, etc.), and will carry the overload control reduction percentage (eg, OC- Reduction-Percentage) The overload control reduction percentage information and overload control flag are sent to the CTF in the form of a combined AVP overload report (eg, OC-OLR) in the response message ACA.
可选地,CTF收到携带有过载控制的降低百分比信息(如:OC-Reduction-Percentage)及需要的过载控制算法标识的响应消息ACA后,判断过载控制的降低百分比信息所指示的过载控制的降低百分比是否达到需要过载控制的阈值(这一阈值可以由运营商配置),如果发现已达到需要过载控制的阈值,则执行对应的过载控制操作。Optionally, after receiving the reduced percentage information (eg, OC-Reduction-Percentage) carrying the overload control and the response message ACA identified by the required overload control algorithm, the CTF determines the overload control indicated by the percentage reduction information of the overload control. Whether the percentage reduction reaches a threshold that requires overload control (this threshold can be configured by the operator), if it is found that the threshold requiring overload control is reached, the corresponding overload control operation is performed.
例如,假设以将当前ACR全部发送给第二计费数据功能单元(即第二CDF)为例。对于新的ACR消息(ACR[Start]及其后续的ACR[Interim]及ACR[Stop]),CTF选择将把所有新的ACR消息及所对应的后续的ACR[Interim]及ACR[Stop]消息全部转发到第二CDF,并接收来自第二CDF的计费响应消息。For example, assume that the current ACR is all transmitted to the second charging data function unit (ie, the second CDF) as an example. For new ACR messages (ACR[Start] and its subsequent ACR[Interim] and ACR[Stop]), the CTF selection will put all new ACR messages and their corresponding subsequent ACR[Interim] and ACR[Stop] messages. All are forwarded to the second CDF and receive an accounting response message from the second CDF.
通过本申请提供的实施例,在发送当前ACR时,通过对所有ACR执行过载控制操作,从而避免继续发送ACR所造成的第一计费数据功能单元的处理负荷增大,过载加重的问题以避免,进而实现缓解第一计费数据功能单元的处理压力的效果。Through the embodiment provided by the present application, when the current ACR is sent, the overload control operation is performed on all ACRs, thereby avoiding the processing load of the first charging data function unit caused by continuing to send the ACR, and the problem of overloading is avoided. Further, the effect of alleviating the processing pressure of the first billing data function unit is achieved.
作为一种可选的方案,按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作包括以下至少之一:As an optional solution, performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag includes at least one of the following:
S1,按照过载控制标识所指示的过载控制方式将当前ACR缓存到本地存储器中的ACR队列中;或者S1, buffering the current ACR into the ACR queue in the local storage according to the overload control mode indicated by the overload control identifier; or
S2,按照过载控制标识所指示的过载控制方式将当前ACR发送给第二计费数据功能单元。S2: Send the current ACR to the second charging data function unit according to the overload control mode indicated by the overload control flag.
可选地,在本实施例中,上述第一计费数据功能单元可以但不限于表示为主计费数据功能单元,第二计费数据功能单元可以但不限于表示为辅计费 数据功能单元。Optionally, in this embodiment, the foregoing first charging data function unit may be, but not limited to, a primary charging data function unit, and the second charging data function unit may be, but is not limited to, indicated as secondary charging. Data function unit.
具体结合图3所示示例进行说明,如图3所示计费请求消息的过载控制方法的流程可以包括步骤S302至S318:Specifically, in conjunction with the example shown in FIG. 3, the flow of the overload control method of the charging request message shown in FIG. 3 may include steps S302 to S318:
S302,在核心网网元32(位于Diameter客户端38)正常发送DiameterACR到主CDF 34(位于Diameter服务器39);S302, in the core network element 32 (located at the Diameter client 38), the DiameterACR is normally sent to the primary CDF 34 (located on the Diameter server 39);
S304,主CDF 34根据当前负载情况,在Diameter ACA里携带当前的过载控制降低百分比(OC-Reduction-Percentage)的过载控制降低百分比信息及过载控制标识(OC-OLR);S304. The main CDF 34 carries the current overload control reduction percentage information (OC-Reduction-Percentage) and the overload control identifier (OC-OLR) in the Diameter ACA according to the current load situation.
S306,主CDF 34将上述Diameter ACA发送给核心网网元32。S306. The primary CDF 34 sends the Diameter ACA to the core network element 32.
可选地,S308,核心网网元32根据过载控制降低百分比信息所指示的过载控制降低百分比来判断主CDF 34是否出现过载;Optionally, in S308, the core network element 32 determines whether the primary CDF 34 is overloaded according to the overload control reduction percentage indicated by the overload control reduction percentage information;
S310,若判断出主CDF 34过载,则按照过载控制标识所指示的过载控制方法,按比例执行过载控制操作。例如,使用随机算法产生1到100之间的数值,当得到的数值小于等于过载控制降低百分比的分子时,将待发送的当前ACR缓存,当得到的数值大于过载控制降低百分比的分子时,将把待发送的当前ACR发送给主CDF 34。S310. If it is determined that the main CDF 34 is overloaded, the overload control operation is performed proportionally according to the overload control method indicated by the overload control flag. For example, using a random algorithm to generate a value between 1 and 100, when the resulting value is less than or equal to the percentage of the overload control reduction percentage, the current ACR buffer to be sent, when the resulting value is greater than the 5% of the overload control reduction factor, The current ACR to be transmitted is sent to the main CDF 34.
可选地,如步骤S312,将待发送的当前ACR发送给主CDF 34。Optionally, in step S312, the current ACR to be transmitted is sent to the primary CDF 34.
此外,若采用将CTF待发送的当前ACR发送到辅CDF 36的方式进行过载控制,则如步骤S314,将待发送的当前ACR发送到辅CDF 36,其中,待发送的当前送ACR中包含DOIC计费标识信息,以使辅CDF 36处理待发送的当前ACR,如步骤S316。In addition, if the overload control is performed in a manner that the current ACR to be sent by the CTF is sent to the secondary CDF 36, the current ACR to be sent is sent to the secondary CDF 36 in step S314, where the currently sent ACR to be transmitted includes the DOIC. The charging identification information is such that the secondary CDF 36 processes the current ACR to be transmitted, as by step S316.
可选地,如步骤S318,核心网网元32将判断过载控制降低百分比信息所指示的过载控制降低百分比是否回到正常范围,若判断出回到正常范围,则表示主CDF的过载状态已解除,可以控制按序发送ACR队列中的ACR。Optionally, in step S318, the core network element 32 determines whether the overload control reduction percentage indicated by the overload control reduction percentage information returns to the normal range, and if it is determined that the normal range is returned, the overload status of the primary CDF is released. , you can control the ACR in the ACR queue to be sent in order.
需要说明的是,参考之前描述的示例,上述仅是一种示例,本实施例中对此不作任何限定。It should be noted that, with reference to the previously described examples, the foregoing is only an example, and is not limited in this embodiment.
通过本申请提供的实施例,通过按比例控制将待发送的当前ACR缓存到本地存储器或发送到第二计费数据功能单元的方式,来控制不向第一计费数 据功能单元发送ACR,以预先对第一计费数据功能单元进行过载控制,避免由于过载控制滞后所导致的过载加重。With the embodiment provided by the present application, the first billing number is not controlled by proportionally controlling the current ACR to be sent to the local storage or to the second charging data function unit. The ACR is sent according to the functional unit to perform overload control on the first charging data function unit in advance to avoid overloading due to overload control lag.
作为一种可选的方案,在按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作之后,还包括:As an optional solution, after performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag, the method further includes:
S1,判断第一计费数据功能单元中计费请求消息是否解除过载;S1. Determine whether the charging request message in the first charging data function unit is overloaded.
S2,若判断出第一计费数据功能单元中计费请求已解除过载,则从本地存储器中的ACR队列中依次读取缓存的ACR,并发送给第一计费数据功能单元。S2. If it is determined that the charging request in the first charging data function unit has been overloaded, the buffered ACR is sequentially read from the ACR queue in the local storage and sent to the first charging data function unit.
可选地,在本实施例中,上述已缓存的ACR将依序保存,以得到ACR队列,从而实现在判断出第一CDF过载状态解除后,继续发送ACR队列中已缓存的待发送ACR,以避免遗漏,进而达到优化过载控制的效果。Optionally, in this embodiment, the cached ACRs are sequentially saved to obtain an ACR queue, so that after the first CDF overload state is determined to be released, the buffered ACRs to be sent in the ACR queue are continuously sent. To avoid omissions, and to achieve the effect of optimizing overload control.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种计费请求消息的过载控制装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an overload control device for the charging request message is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图4是根据本发明实施例的计费请求消息的过载控制装置的示意图,如图4所示,该装置包括如下内容:4 is a schematic diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes the following contents:
1)第一发送单元402,设置为向第一计费数据功能单元发送当前ACR;1) The first sending unit 402 is configured to send the current ACR to the first charging data function unit;
2)获取单元404,设置为获取当前ACR的ACA中携带的过载控制降低 百分比信息及过载控制标识;2) The obtaining unit 404 is configured to obtain the overload control reduction carried in the ACA of the current ACR. Percentage information and overload control identification;
3)第一判断单元406,设置为根据ACA中的过载控制降低百分比信息判断第一计费数据功能单元中计费请求消息是否出现过载;3) The first determining unit 406 is configured to determine, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded;
4)控制单元408,设置为第一计费数据功能单元中计费请求消息出现过载时,按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作,其中,过载控制操作至少用于指示不向第一计费数据功能单元发送当前ACR。4) The control unit 408 is configured to perform an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag when the charging request message in the first charging data function unit is overloaded, wherein the overload control operation is used at least Indicates that the current ACR is not sent to the first charging data function unit.
可选地,在本实施例中,上述计费请求消息的过载控制装置可以但不限于应用于计费接口上的Diameter过载控制过程中,不同于相关技术中在接收到用于指示已经出现Diameter过载的“DIAMETER_TOO_BUSY”的错误响应码之后,才开始执行控制过载,本实施例中提供的计费请求消息的过载控制装置将通过位于网元中的计费触发功能单元(CTF,Charging Trigger Function)实时获取ACR的ACA中所携带的过载控制降低百分比信息及过载控制标识,来预先判断计费接口是否会出现过载,从而在正常的通信过程中,能够及时发现过载,预先对计费接口进行过载控制,进而避免由于过载滞后所导致的系统负荷增大,过载加重的问题。Optionally, in this embodiment, the overload control apparatus of the foregoing charging request message may be, but is not limited to, applied to a Diameter overload control process on a charging interface, which is different from the related art in receiving a Diameter for indicating that a Diameter has been received. After the error response code of the overloaded "DIAMETER_TOO_BUSY" is started, the control overload is started. The overload control device of the charging request message provided in this embodiment passes the Charging Trigger Function (CTF) located in the network element. Real-time access to the overload control reduction percentage information and overload control identifier carried in the ACA ACA to pre-determine whether the charging interface will be overloaded, so that in the normal communication process, the overload can be discovered in time, and the charging interface is overloaded in advance. Control, and thus avoid the problem of increased system load and overload due to overload lag.
可选地,在本实施例中,上述ACR中可以但不限于携带有支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。其中,该标识信息可以是在OC-OLR是组合型的AVP中新增一个bool型的子AVP,如:Charging DOIC Indicator;也可以是对既有的OC-Feature-Vector AVP的取值重新定义,比如规定:用于表示过载报告计费算法的OLR_Charging_ALGO(0x0000000000000010)为OC-Feature-Vector AVP中用于计费的一个算法标识值。(这个既有OC-Feature-Vector AVP用于表示DOIC结点所支持的DOIC属性,目前有一个取值是表示默认的过载控制算法的OLR_DEFAULT_ALGO(0x0000000000000001))Optionally, in this embodiment, the foregoing ACR may include, but is not limited to, identifier information that supports Diameter Overload Indication Conveyance (DOIC). The identifier information may be a sub-AVP of a Bool type in the AVP of the combined type of the OC-OLR, such as a Charging DOIC Indicator, or a redefinition of the value of the existing OC-Feature-Vector AVP. For example, the OLR_Charging_ALGO (0x0000000000000010) used to represent the overload report charging algorithm is an algorithm identification value used for charging in the OC-Feature-Vector AVP. (This OC-Feature-Vector AVP is used to represent the DOIC attributes supported by the DOIC node. Currently there is a value of OLR_DEFAULT_ALGO(0x0000000000000001) that represents the default overload control algorithm)
可选地,在本实施例中,上述过载控制降低百分比信息及过载控制标识组合成AVP过载报告(如OC-OLR)携带在响应消息ACA中。其中,上述过载控制降低百分比信息可以但不限于由第一计费数据功能单元根据当前的负荷情况(例如,CPU占用率)来确定。 Optionally, in this embodiment, the overload control reduction percentage information and the overload control identifier are combined into an AVP overload report (such as OC-OLR) and carried in the response message ACA. The above overload control reduction percentage information may be, but is not limited to, determined by the first charging data function unit according to a current load situation (eg, CPU usage).
可选地,在本实施例中,过载控制标识所指示的过载控制方式可以包括但不限于以下至少之一:按比例执行过载控制操作、全部执行过载控制操作。可选地,在本实施例中,上述过载控制操作可以包括但不限于以下至少之一:将当前ACR缓存到本地存储器中的ACR队列中、将当前ACR发送给第二计费数据功能单元。其中,上述第二计费数据功能单元与接收ACR的第一计费数据功能单元可以但不限于为不同的计费数据功能单元。Optionally, in this embodiment, the overload control mode indicated by the overload control flag may include, but is not limited to, at least one of: performing an overload control operation proportionally, and performing an overload control operation all. Optionally, in this embodiment, the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit. The second charging data function unit and the first charging data function unit that receives the ACR may be, but are not limited to, different charging data function units.
需要说明的是,对于运营商来说作为重要的运营数据,用户计费消息是不能随意丢弃的,因而不能采用Loss Algorithm过载控制装置来解除计费接口出现的过载。为了避免遗漏计费请求,在本实施例中提供的过载控制操作可以包括但不限于以下至少之一:将当前ACR缓存到本地存储器中的ACR队列中、将当前ACR发送给第二计费数据功能单元。也就是说,通过将ACR转发给第二计费数据功能单元进行处理,或者,先暂时缓存,待过载解除后再重新发送给第一计费数据功能单元,从而避免遗漏ACR,例如ACR[Start]及其后续的ACR[Interim]及ACR[Stop],进而达到提高计费的准确性的效果。可选地,上述过载控制标识可以但不限于用于指示计费触发功能(CTF,Charging Trigger Function)所要采用的新的过载控制装置,不同于DOIC默认的过载控制装置处理Loss Algorithm。It should be noted that, as an important operational data for the operator, the user charging message cannot be discarded at will, and therefore the Loss Algorithm overload control device cannot be used to cancel the overload of the charging interface. In order to avoid missing the charging request, the overload control operation provided in this embodiment may include, but is not limited to, at least one of: buffering the current ACR into the ACR queue in the local storage, and transmitting the current ACR to the second charging data. Functional unit. That is, the ACR is forwarded to the second charging data function unit for processing, or is temporarily buffered, and then re-sent to the first charging data function unit after the overload is released, thereby avoiding missing ACR, such as ACR[Start ] and its subsequent ACR [Interim] and ACR [Stop], in order to achieve the effect of improving the accuracy of billing. Optionally, the overload control identifier may be, but is not limited to, a new overload control device used to indicate a Charging Trigger Function (CTF), and the default overload control device of the DOIC processes the Loss Algorithm.
可选地,在本实施例中,在按比例执行过载控制操作的过程中,可以但不限于根据过载控制降低百分比信息来控制当前ACR。例如,过载控制降低百分比信息所指示的过载控制降低百分比越高,则将控制过滤越多的ACR,从而达到缓解第一计费数据功能单元的处理负荷,以及时避免第一计费数据功能单元出现过载的问题。Alternatively, in the present embodiment, in the process of performing the overload control operation proportionally, the current ACR may be controlled according to the overload control reduction percentage information. For example, the higher the overload control reduction percentage indicated by the overload control reduction percentage information, the more the ACR is filtered, thereby achieving the processing load of mitigating the first charging data function unit and avoiding the first charging data function unit. There is an overload problem.
具体结合以下示例进行说明,如图2所示步骤S202-S208,CTF 22向第一CDF 24发送当前ACR后,获取与当前ACR对应的响应消息ACA中所携带的过载控制降低百分比信息及过载控制标识,根据ACA中的过载控制降低百分比信息判断第一计费数据功能单元中计费请求消息是否出现过载,若第一计费数据功能单元中计费请求消息出现过载,则按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作。Specifically, the following example is used to illustrate, as shown in step S202-S208 of FIG. 2, after the CTF 22 sends the current ACR to the first CDF 24, the overload control reduction percentage information and overload control carried in the response message ACA corresponding to the current ACR are acquired. And determining, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded, and if the charging request message in the first charging data function unit is overloaded, according to the overload control identifier The indicated overload control mode performs an overload control operation on the current ACR.
通过本申请提供的实施例,通过实时获取当前ACR的响应消息ACA中 所携带的过载控制降低百分比信息及过载控制标识,根据过载控制降低百分比信息来预先判断第一计费数据功能单元中计费请求消息是否出现过载,若判断出第一计费数据功能单元中计费请求消息已出现过载,则按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作,其中,过载控制操作至少用于指示不向第一计费数据功能单元发送当前ACR,也就是说,通过减少第一计费数据功能单元的处理量,以实现对第一计费数据功能单元的过载控制,从而减少第一计费数据功能单元的处理负荷;可选地,还可实现在正常的通信过程中,利用ACA中携带的过载控制标识所指示的过载控制装置,预先对计费接口进行过载控制,进而避免由于过载滞后所导致的系统负荷增大,过载加重的问题。Through the embodiment provided by the present application, the response message ACA in the current ACR is obtained in real time. The overload control reduction percentage information and the overload control identifier carried are pre-determined whether the charging request message in the first charging data function unit is overloaded according to the overload control reduction percentage information, and if the first charging data function unit is determined to be If the fee request message has been overloaded, the overload control operation is performed on the current ACR according to the overload control mode indicated by the overload control flag, wherein the overload control operation is at least used to indicate that the current ACR is not sent to the first charging data function unit, that is, Said to reduce the processing capacity of the first charging data function unit by reducing the processing amount of the first charging data function unit, thereby reducing the processing load of the first charging data function unit; alternatively, In the normal communication process, the overload control device indicated by the overload control flag carried in the ACA is used to perform overload control on the charging interface in advance, thereby avoiding the problem of increased system load and overload due to overload lag.
作为一种可选的方案,控制单元可以包括:As an alternative, the control unit may include:
1)第一获取模块,设置为在预定序列内随机获取一个目标数值,其中,预定序列按照升序排列;1) a first obtaining module, configured to randomly acquire a target value within a predetermined sequence, wherein the predetermined sequence is arranged in ascending order;
2)第二获取模块,设置为获取目标数值的获取百分比,其中,获取百分比为目标数值在预定序列中的序列号与预定序列的总量的百分比;2) a second obtaining module, configured to obtain an acquisition percentage of the target value, wherein the acquisition percentage is a percentage of the serial number of the target value in the predetermined sequence and the total amount of the predetermined sequence;
3)比较模块,设置为比较获取百分比与过载控制降低百分比信息所指示的过载控制降低百分比的大小;3) The comparison module is set to compare the percentage of the acquisition and the percentage of the overload control reduction percentage indicated by the overload control reduction percentage information;
4)第一发送模块,设置为在获取百分比大于过载控制降低百分比时,将当前ACR发送给第一计费数据功能单元;4) The first sending module is configured to send the current ACR to the first charging data function unit when the obtaining percentage is greater than the overload control reducing percentage;
5)第一处理模块,设置为在获取百分比小于等于过载控制降低百分比时,对当前ACR执行过载控制操作。5) The first processing module is configured to perform an overload control operation on the current ACR when the acquisition percentage is less than or equal to the overload control reduction percentage.
可选地,在本实施例中,上述过载控制操作可以包括但不限于以下至少之一:将当前ACR缓存到本地存储器中的ACR队列中、将当前ACR发送给第二计费数据功能单元。Optionally, in this embodiment, the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit.
可选地,在本实施例中,上述预定序列可以包括但不限于按照升序排列的常数,例如,预定序列中包括10个连续自然数:3,4,5,6,7,8,9,10,11,12,假设随机获取到的目标数值为9,目标数值在预定序列中的序列号为8,则获取该目标数值的获取百分比P可以如下: Optionally, in this embodiment, the foregoing predetermined sequence may include, but is not limited to, a constant arranged in ascending order, for example, the predetermined sequence includes 10 consecutive natural numbers: 3, 4, 5, 6, 7, 8, 9, 10 11,11, assuming that the target value obtained by the random number is 9, and the sequence number of the target value in the predetermined sequence is 8, the acquisition percentage P of the target value can be obtained as follows:
P=(7/10)*100%=70%P=(7/10)*100%=70%
需要说明的是,上述预定序列中的数值可以为连续常数,也可以为不连续的其他常数,上述仅是一种示例,本实施例中对此不做任何限定。It should be noted that the value in the foregoing predetermined sequence may be a continuous constant or other constants that are discontinuous. The above is only an example, and is not limited in this embodiment.
具体结合以下示例进行说明,在计费触发功能单元CTF正常发送ACR到第一计费数据功能单元后,获取第一计费数据功能单元正常处理并返回的计费请求响应消息ACA。其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。然后,第一计费数据功能单元可以根据负荷情况(例如,CPU的占用率等)判断需要在计费接口上降低负荷的百分比(即过载控制降低百分比),并将携带有过载控制降低百分比(如,OC-Reduction-Percentage)的过载控制降低百分比信息及过载控制标识,以组合型AVP过载报告(例如,OC-OLR)的形式放在响应消息ACA里发送给CTF。Specifically, in combination with the following example, after the charging trigger function unit CTF normally sends the ACR to the first charging data function unit, the charging request response message ACA normally processed and returned by the first charging data function unit is acquired. The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message. Then, the first billing data function unit can determine the percentage of load reduction required on the billing interface (ie, the percentage of overload control reduction) according to the load situation (eg, CPU occupancy rate, etc.), and will carry the overload control reduction percentage ( For example, OC-Reduction-Percentage) overload control reduction percentage information and overload control identification are sent to the CTF in the form of a combined AVP overload report (eg, OC-OLR) in the response message ACA.
可选地,CTF收到携带有过载控制的降低百分比信息(如:OC-Reduction-Percentage)及需要的过载控制算法标识的响应消息ACA后,判断过载控制的降低百分比信息所指示的过载控制的降低百分比是否达到需要过载控制的阈值(这一阈值可以由运营商配置),如果发现已达到需要过载控制的阈值,则执行对应的过载控制操作。Optionally, after receiving the reduced percentage information (eg, OC-Reduction-Percentage) carrying the overload control and the response message ACA identified by the required overload control algorithm, the CTF determines the overload control indicated by the percentage reduction information of the overload control. Whether the percentage reduction reaches a threshold that requires overload control (this threshold can be configured by the operator), if it is found that the threshold requiring overload control is reached, the corresponding overload control operation is performed.
例如,假设以按比例缓存为例为例,过载控制降低百分比信息所指示的过载控制降低百分比为80%。对于新的ACR消息(ACR[Start]及其后续的ACR[Interim]及ACR[Stop])中的当前ACR执行以下操作:在发送当前ACR时,随机从预定序列1-100内获取目标数值(例如,目标数值为60),预定序列中共包含100个数值,其中,目标数值(即,60)在预定序列中的序列号为60,获取目标数值的获取百分比,即60%,比较得出60%<80%,则将当前ACR缓存。For example, assuming that the proportional cache is taken as an example, the overload control reduction percentage indicated by the overload control reduction percentage information is 80%. For the current ACR in the new ACR message (ACR[Start] and its subsequent ACR[Interim] and ACR[Stop]), the following operations are performed: when the current ACR is transmitted, the target value is randomly obtained from the predetermined sequence 1-100 ( For example, the target value is 60), and the predetermined sequence contains a total of 100 values, wherein the target number (ie, 60) has a serial number of 60 in the predetermined sequence, and the acquisition percentage of the target value is 60%, and the comparison yields 60. %<80% will cache the current ACR.
又例如,假设在发送当前ACR时,随机从预定范围1-100内获取目标数值(例如,目标数值为90),获取目标数值在预定序列中的序列号,这里目标数值90在预定序列(1-100)中的序列号为90,获取百分比为90%,比较得出90%>80%,则将当前ACR正常发送给第一CDF。For another example, assume that when the current ACR is transmitted, the target value is randomly acquired from the predetermined range 1-100 (for example, the target value is 90), and the sequence number of the target value in the predetermined sequence is obtained, where the target value 90 is in the predetermined sequence (1) The serial number in -100) is 90, the percentage of acquisition is 90%, and the comparison yields 90%>80%, then the current ACR is normally sent to the first CDF.
需要说明的是,上述示例中过载控制降低百分比为80%,也就是说,在 本实施例中,将小于等于80%的待发送ACR缓存,将大于80%的待发送ACR继续发送给第一CDF,从而实现根据概率分布将80%的待发送ACR缓存,将20%的待发送ACR正常发送给第一CDF,以根据过载控制降低百分比准确控制所要缓存的待发送ACR,提高过载控制的准确性。It should be noted that the overload control reduction percentage in the above example is 80%, that is, in In this embodiment, 80% of the ACR cache to be sent is sent to the first CDF, and 80% of the ACR to be sent is buffered according to the probability distribution, and 20% of the ACR is to be sent. The sending ACR is normally sent to the first CDF to accurately control the ACR to be buffered to be cached according to the overload control reduction percentage, thereby improving the accuracy of the overload control.
可选地,在本实施例中,利用预定范围内的目标数值与过载控制降低百分比的方式不仅仅限于上述示例,例如,还可以直接比较目标数值与过载控制降低百分比的分子的大小,从而判断是否缓存对应的当前待发送ACR。本实施例中对此不作任何限定。Optionally, in this embodiment, the manner of utilizing the target value within the predetermined range and the percentage of reduction of the overload control is not limited to the above example, for example, the size of the molecule whose target value and the percentage of the overload control decrease are directly compared, thereby determining Whether to cache the corresponding current ACR to be sent. This embodiment does not limit this.
通过本申请提供的实施例,通过上述按比例执行过载控制操作的方式,实现对当前ACR进行实时判断,以便于在发现过载时,及时进行过载控制,避免继续发送ACR所造成的第一计费数据功能单元的处理负荷增大、过载加重的问题,进而提高对第一计费数据功能单元的过载控制的准确性。Through the embodiment provided by the present application, real-time judgment of the current ACR is implemented by the above-mentioned manner of performing the overload control operation proportionally, so that when the overload is found, the overload control is performed in time to avoid the first billing caused by continuing to send the ACR. The processing load of the data function unit is increased, and the overload is increased, thereby improving the accuracy of the overload control of the first charging data function unit.
作为一种可选的方案,控制单元包括:As an alternative, the control unit comprises:
1)第二处理模块,设置为对每一个当前ACR执行过载控制操作。1) A second processing module configured to perform an overload control operation on each of the current ACRs.
可选地,在本实施例中,上述过载控制操作可以包括但不限于以下至少之一:将当前ACR缓存到本地存储器中的ACR队列中、将当前ACR发送给第二计费数据功能单元。Optionally, in this embodiment, the foregoing overload control operation may include, but is not limited to, at least one of: buffering the current ACR into an ACR queue in the local storage, and transmitting the current ACR to the second charging data function unit.
具体结合以下示例进行说明,在计费触发功能单元CTF正常发送ACR到第一计费数据功能单元(即第一CDF)后,获取第一CDF正常处理并返回的计费请求响应消息ACA。其中,在ACR消息里携带支持过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。然后,第一CDF可以根据负荷情况(例如,CPU的占用率等)判断需要在计费接口上降低负荷的百分比(即过载控制降低百分比),并将携带有过载控制降低百分比(如,OC-Reduction-Percentage)的过载控制降低百分比信息及过载控制标识,以组合型AVP过载报告(例如,OC-OLR)的形式放在响应消息ACA里发送给CTF。Specifically, in combination with the following example, after the charging trigger function unit CTF normally sends the ACR to the first charging data function unit (ie, the first CDF), the charging request response message ACA that is normally processed and returned by the first CDF is acquired. The identifier information of the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message. Then, the first CDF can determine the percentage of load reduction required on the charging interface (ie, the percentage of overload control reduction) according to the load situation (eg, CPU occupancy rate, etc.), and will carry the overload control reduction percentage (eg, OC- Reduction-Percentage) The overload control reduction percentage information and overload control flag are sent to the CTF in the form of a combined AVP overload report (eg, OC-OLR) in the response message ACA.
可选地,CTF收到携带有过载控制的降低百分比信息(如:OC-Reduction-Percentage)及需要的过载控制算法标识的响应消息ACA 后,判断过载控制的降低百分比信息所指示的过载控制的降低百分比是否达到需要过载控制的阈值(这一阈值可以由运营商配置),如果发现已达到需要过载控制的阈值,则执行对应的过载控制操作。Optionally, the CTF receives the reduced percentage information (eg, OC-Reduction-Percentage) carrying the overload control and the response message ACA of the required overload control algorithm identifier. After that, it is judged whether the percentage reduction of the overload control indicated by the reduction percentage information of the overload control reaches a threshold that requires overload control (this threshold can be configured by the operator), and if it is found that the threshold of the overload control is reached, the corresponding overload is performed. Control operation.
例如,假设以将当前ACR全部发送给第二计费数据功能单元(即第二CDF)为例。对于新的ACR消息(ACR[Start]及其后续的ACR[Interim]及ACR[Stop]),CTF选择将把所有新的ACR消息及所对应的后续的ACR[Interim]及ACR[Stop]消息全部转发到第二CDF,并接收来自第二CDF的计费响应消息。For example, assume that the current ACR is all transmitted to the second charging data function unit (ie, the second CDF) as an example. For new ACR messages (ACR[Start] and its subsequent ACR[Interim] and ACR[Stop]), the CTF selection will put all new ACR messages and their corresponding subsequent ACR[Interim] and ACR[Stop] messages. All are forwarded to the second CDF and receive an accounting response message from the second CDF.
通过本申请提供的实施例,在发送当前ACR时,通过对所有ACR执行过载控制操作,从而避免继续发送ACR所造成的第一计费数据功能单元的处理负荷增大,过载加重的问题以避免,进而实现缓解第一计费数据功能单元的处理压力的效果。Through the embodiment provided by the present application, when the current ACR is sent, the overload control operation is performed on all ACRs, thereby avoiding the processing load of the first charging data function unit caused by continuing to send the ACR, and the problem of overloading is avoided. Further, the effect of alleviating the processing pressure of the first billing data function unit is achieved.
作为一种可选的方案,控制单元包括以下至少之一:As an alternative, the control unit comprises at least one of the following:
1)缓存模块,设置为按照过载控制标识所指示的过载控制方式将当前ACR缓存到本地存储器中的ACR队列中;或者1) a cache module, configured to cache the current ACR into an ACR queue in the local memory according to the overload control mode indicated by the overload control flag; or
2)第二发送模块,设置为按照过载控制标识所指示的过载控制方式将当前ACR发送给第二计费数据功能单元。2) The second sending module is configured to send the current ACR to the second charging data function unit according to the overload control mode indicated by the overload control flag.
可选地,在本实施例中,上述第一计费数据功能单元可以但不限于表示为主计费数据功能单元,第二计费数据功能单元可以但不限于表示为辅计费数据功能单元。Optionally, in this embodiment, the first charging data function unit may be, but not limited to, a primary charging data function unit, and the second charging data function unit may be, but not limited to, a secondary charging data function unit. .
具体结合图3所示示例进行说明,如图3所示步骤S302-S318,在核心网网元32(位于Diameter客户端38)正常发送DiameterACR到主CDF 34(位于Diameter服务器39),主CDF 34根据当前负载情况,在响应消息ACA里携带当前的过载控制降低百分比(OC-Reduction-Percentage)的过载控制降低百分比信息及过载控制标识(OC-OLR),并将上述响应消息ACA发送给核心网网元32。可选地,核心网网元32根据过载控制降低百分比信息所指示的过载控制降低百分比来判断主CDF 34是否出现过载,若判断出主CDF 34过载,则按照过载控制标识所指示的过载控制方法,按比例执行过载控制操作。 例如,使用随机算法产生1到100之间的数值,当得到的数值小于等于过载控制降低百分比的分子时,将待发送的当前ACR缓存,当得到的数值大于过载控制降低百分比的分子时,将把待发送的当前ACR发送给主CDF 34。可选地,如步骤S312,将待发送的当前ACR发送给主CDF 34。Specifically, in conjunction with the example shown in FIG. 3, as shown in FIG. 3, steps S302-S318, the DiameterACR is normally sent to the primary CDF 34 (located on the Diameter server 39) at the core network element 32 (located at the Diameter client 38), the primary CDF 34. According to the current load situation, the current overload control reduction percentage (OC-Reduction-Percentage) overload control percentage information and overload control identifier (OC-OLR) are carried in the response message ACA, and the response message ACA is sent to the core network. Network element 32. Optionally, the core network element 32 determines whether the primary CDF 34 is overloaded according to the overload control reduction percentage indicated by the overload control reduction percentage information. If it is determined that the primary CDF 34 is overloaded, the overload control method indicated by the overload control identifier is used. The overload control operation is performed proportionally. For example, using a random algorithm to generate a value between 1 and 100, when the resulting value is less than or equal to the percentage of the overload control reduction percentage, the current ACR buffer to be sent, when the resulting value is greater than the 5% of the overload control reduction factor, The current ACR to be transmitted is sent to the main CDF 34. Optionally, in step S312, the current ACR to be transmitted is sent to the primary CDF 34.
此外,若采用将CTF待发送的当前ACR发送到辅CDF 36的方式进行过载控制,则如步骤S314,将待发送的当前ACR发送到辅CDF 36,其中,待发送的当前送ACR中包含DOIC计费标识信息,以使辅CDF 36处理待发送的当前ACR,如步骤S316。In addition, if the overload control is performed in a manner that the current ACR to be sent by the CTF is sent to the secondary CDF 36, the current ACR to be sent is sent to the secondary CDF 36 in step S314, where the currently sent ACR to be transmitted includes the DOIC. The charging identification information is such that the secondary CDF 36 processes the current ACR to be transmitted, as by step S316.
可选地,如步骤S318,核心网网元32将判断过载控制降低百分比信息所指示的过载控制降低百分比是否回到正常范围,若判断出回到正常范围,则表示主CDF的过载状态已解除,可以控制按序发送ACR队列中的ACR。Optionally, in step S318, the core network element 32 determines whether the overload control reduction percentage indicated by the overload control reduction percentage information returns to the normal range, and if it is determined that the normal range is returned, the overload status of the primary CDF is released. , you can control the ACR in the ACR queue to be sent in order.
需要说明的是,参考之前描述的示例,上述仅是一种示例,本实施例中对此不作任何限定。It should be noted that, with reference to the previously described examples, the foregoing is only an example, and is not limited in this embodiment.
通过本申请提供的实施例,通过按比例控制将待发送的当前ACR缓存到本地存储器或发送到第二计费数据功能单元的方式,来控制不向第一计费数据功能单元发送ACR,以实现预先对第一计费数据功能单元进行过载控制,从避免由于过载控制滞后所导致的过载加重的问题。Through the embodiment provided by the present application, the ACR is not sent to the first charging data function unit by proportionally controlling the manner in which the current ACR to be sent is buffered to the local storage or sent to the second charging data function unit. The overload control of the first charging data function unit is implemented in advance, and the problem of overloading due to overload control lag is avoided.
作为一种可选的方案,还包括:As an alternative, it also includes:
1)第二判断单元,设置为判断第一计费数据功能单元中计费请求消息是否解除过载;1) The second determining unit is configured to determine whether the charging request message in the first charging data function unit is released from overload;
2)第二发送单元,设置为在判断出第一计费数据功能单元中计费请求已解除过载时,从本地存储器中的ACR队列中依次读取缓存的ACR,并发送给第一计费数据功能单元。2) The second sending unit is configured to, when determining that the charging request has been released from the overload in the first charging data function unit, sequentially read the cached ACR from the ACR queue in the local storage, and send the first charging to the first charging. Data function unit.
可选地,在本实施例中,上述已缓存的ACR将依序保存,以得到ACR队列,从而实现在判断出第一CDF过载状态解除后,继续发送ACR队列中已缓存的待发送ACR,以避免遗漏,进而达到优化过载控制的效果。Optionally, in this embodiment, the cached ACRs are sequentially saved to obtain an ACR queue, so that after the first CDF overload state is determined to be released, the buffered ACRs to be sent in the ACR queue are continuously sent. To avoid omissions, and to achieve the effect of optimizing overload control.
实施例3Example 3
本发明的实施例还提供了一种存储介质。该实施例的应用场景及实例可 以参考上述实施例1和实施例2,在此不赘述。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Application scenarios and examples of the embodiment may Reference is made to the above-mentioned Embodiment 1 and Embodiment 2, and details are not described herein. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,向第一计费数据功能单元发送当前ACR;S1, sending a current ACR to the first charging data function unit;
S2,获取当前ACR的响应消息ACA中携带的过载控制降低百分比信息及过载控制标识;S2, acquiring the overload control reduction percentage information and the overload control identifier carried in the current ACR response message ACA;
S3,根据ACA中的过载控制降低百分比信息判断第一计费数据功能单元中计费请求消息是否出现过载;S3, determining, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded;
S4,若第一计费数据功能单元中计费请求消息出现过载,则按照过载控制标识所指示的过载控制方式对当前ACR执行过载控制操作,其中,过载控制操作至少用于指示不向第一计费数据功能单元发送当前ACR。S4. If the charging request message in the first charging data function unit is overloaded, perform an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag, where the overload control operation is used to indicate at least the first The billing data function unit sends the current ACR.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述步骤S1至S4。Optionally, in the embodiment, the processor performs the above steps S1 to S4 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the application is not limited to any particular combination of hardware and software.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护 范围之内。The above description is only the preferred embodiment of the present application, and is not intended to limit the present application, and various changes and modifications may be made to the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application shall be included in the protection of this application. Within the scope.
工业实用性Industrial applicability
本发明实施例提供了一种计费请求消息的过载控制方法及装置,该方法可包括:向第一计费数据功能单元发送当前ACR;获取所述当前ACR的ACA中携带的过载控制降低百分比信息及过载控制标识;根据所述ACA中的所述过载控制降低百分比信息判断所述第一计费数据功能单元中计费请求消息是否出现过载;若所述第一计费数据功能单元中所述计费请求消息出现所述过载,则按照所述过载控制标识所指示的过载控制方式对所述当前ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向所述第一计费数据功能单元发送所述当前ACR。An embodiment of the present invention provides a method and an apparatus for controlling an overload of a charging request message. The method may include: transmitting a current ACR to a first charging data function unit; and obtaining a percentage of overload control carried in an ACA of the current ACR. And determining, according to the overload control reduction percentage information in the ACA, whether the charging request message in the first charging data function unit is overloaded; if the first charging data function unit is And performing the overload control operation on the current ACR according to the overload control mode indicated by the overload control identifier, where the overload control operation is at least used to indicate that the first The billing data function unit transmits the current ACR.
本申请中,通过实时获取当前ACR的响应消息ACA中所携带的过载控制降低百分比信息及过载控制标识,预先判断第一计费数据功能单元中计费请求消息是否出现过载,若判断出第一计费数据功能单元中ACR已出现过载,则按照过载控制标识指示的过载控制方式对当前ACR执行过载控制操作,也就是说,通过减少第一计费数据功能单元的处理量,实现对第一计费数据功能单元的过载控制,从而减少第一计费数据功能单元的处理负荷;可选地,还可在正常的通信过程中,利用ACA中携带的过载控制标识指示的过载控制方法,预先对计费接口进行过载控制,进而避免由于过载滞后所导致的系统负荷增大、过载加重的问题。 In this application, the overload control reduction percentage information and the overload control identifier carried in the current ACR response message ACA are obtained in real time, and it is determined in advance whether the charging request message in the first charging data function unit is overloaded, and if the first is determined If the ACR in the charging data function unit has an overload, the overload control operation is performed on the current ACR according to the overload control mode indicated by the overload control flag, that is, by reducing the processing amount of the first charging data function unit, achieving the first Overload control of the billing data function unit, thereby reducing the processing load of the first billing data function unit; optionally, in the normal communication process, using the overload control method indicated by the overload control flag carried in the ACA, in advance Overload control is performed on the billing interface to avoid the problem of increased system load and overload due to overload lag.

Claims (17)

  1. 一种计费请求消息的过载控制方法,包括:An overload control method for a charging request message includes:
    向第一计费数据功能单元发送当前计费请求消息ACR;Sending a current charging request message ACR to the first charging data function unit;
    获取所述当前ACR的计费响应消息ACA中携带的过载控制降低百分比信息及过载控制标识;Obtaining the overload control reduction percentage information and the overload control identifier carried in the charging response message ACA of the current ACR;
    根据所述ACA中的所述过载控制降低百分比信息判断所述第一计费数据功能单元中ACR是否出现过载;Determining, according to the overload control reduction percentage information in the ACA, whether an ACR in the first charging data function unit is overloaded;
    若所述第一计费数据功能单元中ACR出现过载,则按照所述过载控制标识指示的过载控制方式对所述当前ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向所述第一计费数据功能单元发送所述当前ACR。And if an overload occurs in the ACR in the first charging data function unit, performing an overload control operation on the current ACR according to an overload control manner indicated by the overload control identifier, where the overload control operation is used to indicate at least The first charging data function unit sends the current ACR.
  2. 根据权利要求1所述的方法,其中,所述过载控制标识指示的过载控制方式包括以下至少之一:按比例执行过载控制操作、全部执行过载控制操作。The method of claim 1, wherein the overload control mode indicated by the overload control flag comprises at least one of: performing an overload control operation proportionally, and performing an overload control operation in its entirety.
  3. 根据权利要求2所述的方法,其中,所述按照所述过载控制标识指示的过载控制方式对所述当前ACR执行过载控制操作包括:The method according to claim 2, wherein said performing an overload control operation on said current ACR according to said overload control mode indicated by said overload control flag comprises:
    在预定序列内随机获取一个目标数值,其中,所述预定序列按照升序排列;Obtaining a target value randomly within a predetermined sequence, wherein the predetermined sequence is arranged in ascending order;
    获取所述目标数值的获取百分比,其中,所述获取百分比为所述目标数值在所述预定序列中的序列号与所述预定序列的总量的百分比;Obtaining a percentage of the target value obtained, wherein the acquisition percentage is a percentage of a serial number of the target value in the predetermined sequence and a total amount of the predetermined sequence;
    比较所述获取百分比与所述过载控制降低百分比信息指示的过载控制降低百分比的大小;Comparing the percentage of the acquisition percentage to the percentage of the overload control reduction percentage indicated by the overload control reduction percentage information;
    若所述获取百分比大于所述过载控制降低百分比,则将所述当前ACR发送给所述第一计费数据功能单元;If the obtained percentage is greater than the overload control reduction percentage, sending the current ACR to the first charging data function unit;
    若所述获取百分比小于等于所述过载控制降低百分比,则对所述当前ACR执行过载控制操作。If the acquisition percentage is less than or equal to the overload control reduction percentage, an overload control operation is performed on the current ACR.
  4. 根据权利要求2所述的方法,其中,所述按照所述过载控制标识指示的过载控制方式对所述当前ACR执行过载控制操作包括:对每一个所述当前 ACR执行过载控制操作。The method of claim 2, wherein said performing an overload control operation on said current ACR in accordance with an overload control mode indicated by said overload control flag comprises: for each of said current The ACR performs an overload control operation.
  5. 根据权利要求2或3所述的方法,其中,按照所述过载控制标识指示的过载控制方式对所述当前ACR执行过载控制操作包括以下至少之一:The method according to claim 2 or 3, wherein performing an overload control operation on the current ACR according to an overload control mode indicated by the overload control flag comprises at least one of the following:
    按照所述过载控制标识指示的过载控制方式将所述当前ACR缓存到本地存储器中的ACR队列中;或者Caching the current ACR into an ACR queue in local memory according to an overload control manner indicated by the overload control flag; or
    按照所述过载控制标识指示的过载控制方式将所述当前ACR发送给第二计费数据功能单元。And transmitting the current ACR to the second charging data function unit according to the overload control manner indicated by the overload control identifier.
  6. 根据权利要求1所述的方法,其中,所述ACR中携带有支持Diameter过载指示传输DOIC的标识信息。The method according to claim 1, wherein the ACR carries identification information supporting a Diameter overload indication transmission DOIC.
  7. 根据权利要求5所述的方法,在按照所述过载控制标识指示的过载控制方式对所述当前ACR执行过载控制操作之后,还包括:The method of claim 5, after performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag, further comprising:
    判断所述第一计费数据功能单元中ACR是否解除过载;Determining whether the ACR in the first charging data function unit is released from overload;
    若判断出所述第一计费数据功能单元中ACR已解除过载,则从所述本地存储器中的所述ACR队列中依次读取缓存的ACR,并发送给所述第一计费数据功能单元。If it is determined that the ACR in the first charging data function unit has been overloaded, the cached ACR is sequentially read from the ACR queue in the local storage, and sent to the first charging data function unit. .
  8. 根据权利要求1所述的方法,所述过载控制降低百分比信息及所述过载控制标识组合成AVP过载报告携带在所述ACA中。The method of claim 1 wherein said overload control reduction percentage information and said overload control identification are combined into an AVP overload report carried in said ACA.
  9. 一种计费请求消息的过载控制装置,包括:An overload control device for a charging request message includes:
    第一发送单元,设置为向第一计费数据功能单元发送当前计费请求消息ACR;The first sending unit is configured to send a current charging request message ACR to the first charging data function unit;
    获取单元,设置为获取所述当前ACR的计费响应消息ACA中携带的过载控制降低百分比信息及过载控制标识;An acquiring unit, configured to acquire an overload control reduction percentage information and an overload control identifier carried in the charging response message ACA of the current ACR;
    第一判断单元,设置为根据所述ACA中的所述过载控制降低百分比信息判断所述第一计费数据功能单元中ACR是否出现过载;a first determining unit, configured to determine, according to the overload control reduction percentage information in the ACA, whether an ACR in the first charging data function unit is overloaded;
    控制单元,设置为在所述第一计费数据功能单元中ACR出现过载时,按照所述过载控制标识指示的过载控制方式对所述当前ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向所述第一计费数据功能单元 发送所述当前ACR。a control unit, configured to perform an overload control operation on the current ACR according to an overload control manner indicated by the overload control identifier when an overload occurs in the first charging data function unit, where the overload control operation is at least Used to indicate that the first billing data function unit is not Send the current ACR.
  10. 根据权利要求9所述的装置,其中,所述过载控制标识指示的过载控制方式包括以下至少之一:按比例执行过载控制操作、全部执行过载控制操作。The apparatus according to claim 9, wherein the overload control mode indicated by the overload control flag comprises at least one of: performing an overload control operation proportionally, and performing an overload control operation in total.
  11. 根据权利要求10所述的装置,其中,所述控制单元包括:The apparatus of claim 10 wherein said control unit comprises:
    第一获取模块,设置为在预定序列内随机获取一个目标数值,其中,所述预定序列按照升序排列;a first obtaining module, configured to randomly acquire a target value within a predetermined sequence, wherein the predetermined sequence is arranged in ascending order;
    第二获取模块,设置为获取所述目标数值的获取百分比,其中,所述获取百分比为所述目标数值在所述预定序列中的序列号与所述预定序列的总量的百分比;a second obtaining module, configured to obtain an acquisition percentage of the target value, wherein the acquisition percentage is a percentage of a serial number of the target value in the predetermined sequence and a total amount of the predetermined sequence;
    比较模块,设置为比较所述获取百分比与所述过载控制降低百分比信息所指示的过载控制降低百分比的大小;And comparing, by the module, a comparison of the percentage of the acquisition and the percentage of the overload control reduction percentage indicated by the overload control reduction percentage information;
    第一发送模块,设置为在所述获取百分比大于所述过载控制降低百分比时,将所述当前ACR发送给所述第一计费数据功能单元;a first sending module, configured to send the current ACR to the first charging data function unit when the acquiring percentage is greater than the overload control reducing percentage;
    第一处理模块,设置为在所述获取百分比小于等于所述过载控制降低百分比时,对所述当前ACR执行过载控制操作。The first processing module is configured to perform an overload control operation on the current ACR when the acquisition percentage is less than or equal to the overload control reduction percentage.
  12. 根据权利要求10所述的装置,其中,所述控制单元包括:The apparatus of claim 10 wherein said control unit comprises:
    第二处理模块,设置为对每一个所述当前ACR执行过载控制操作。A second processing module is arranged to perform an overload control operation for each of the current ACRs.
  13. 根据权利要求10或11所述的装置,其中,所述控制单元包括以下至少之一:The apparatus according to claim 10 or 11, wherein said control unit comprises at least one of the following:
    缓存模块,设置为按照所述过载控制标识所指示的过载控制方式将所述当前ACR缓存到本地存储器中的ACR队列中;或者a cache module, configured to cache the current ACR into an ACR queue in the local storage according to an overload control manner indicated by the overload control identifier; or
    第二发送模块,设置为按照所述过载控制标识所指示的过载控制方式将所述当前ACR发送给第二计费数据功能单元。The second sending module is configured to send the current ACR to the second charging data function unit according to the overload control manner indicated by the overload control identifier.
  14. 根据权利要求9所述的装置,其中,所述ACR中携带有支持Diameter过载指示传输DOIC的标识信息。The apparatus according to claim 9, wherein the ACR carries identification information supporting a Diameter overload indication transmission DOIC.
  15. 根据权利要求13所述的装置,还包括: The apparatus of claim 13 further comprising:
    第二判断单元,设置为判断所述第一计费数据功能单元中ACR是否解除过载;a second determining unit, configured to determine whether the ACR in the first charging data function unit is released from overload;
    第二发送单元,设置为在判断出所述第一计费数据功能单元中ACR已解除过载时,从所述本地存储器中的所述ACR队列中依次读取缓存的ACR,并发送给所述第一计费数据功能单元。a second sending unit, configured to sequentially read the cached ACR from the ACR queue in the local storage when it is determined that the ACR has been unloaded in the first charging data function unit, and send the cached ACR to the The first billing data function unit.
  16. 根据权利要求9所述的装置,其中,所述过载控制降低百分比信息及所述过载控制标识组合成AVP过载报告携带在所述ACA中。The apparatus of claim 9, wherein the overload control reduction percentage information and the overload control identification are combined into an AVP overload report carried in the ACA.
  17. 一种存储介质,被设置为存储用于执行以下步骤的程序代码:A storage medium configured to store program code for performing the following steps:
    向第一计费数据功能单元发送当前计费请求消息ACR;Sending a current charging request message ACR to the first charging data function unit;
    获取当前ACR的计费响应消息ACA中携带的过载控制降低百分比信息及过载控制标识;Obtaining the overload control reduction percentage information and the overload control identifier carried in the current ACR charging response message ACA;
    根据ACA中的过载控制降低百分比信息判断第一计费数据功能单元中ACR是否出现过载;Determining whether an ACR in the first charging data function unit is overloaded according to the overload control reduction percentage information in the ACA;
    若第一计费数据功能单元中ACR出现过载,则按照所述过载控制标识指示的过载控制方式对当前ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向第一计费数据功能单元发送当前ACR。 If an overload occurs in the ACR in the first charging data function unit, performing an overload control operation on the current ACR according to the overload control mode indicated by the overload control flag, where the overload control operation is at least used to indicate that the first charging is not performed. The data function unit sends the current ACR.
PCT/CN2016/098087 2015-09-23 2016-09-05 Overload control method and apparatus for accounting request WO2017050121A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510613611.8 2015-09-23
CN201510613611.8A CN106550342A (en) 2015-09-23 2015-09-23 The overload controlling method and device of charging request message

Publications (1)

Publication Number Publication Date
WO2017050121A1 true WO2017050121A1 (en) 2017-03-30

Family

ID=58365111

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/098087 WO2017050121A1 (en) 2015-09-23 2016-09-05 Overload control method and apparatus for accounting request

Country Status (2)

Country Link
CN (1) CN106550342A (en)
WO (1) WO2017050121A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111164940A (en) * 2017-10-06 2020-05-15 瑞典爱立信有限公司 Differentiated reduction of charging requests in case of overload at an online charging system
WO2019113764A1 (en) * 2017-12-12 2019-06-20 上海诺基亚贝尔股份有限公司 Method for performing diameter overload control, device, and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889563A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Load control method based on Diameter protocol
US20090164659A1 (en) * 2007-12-25 2009-06-25 Nec Corporation Communication system allowing reduction in congestion by restricting communication
CN101631360A (en) * 2009-08-19 2010-01-20 中兴通讯股份有限公司 Method, device and system for realizing load balancing
CN102090042A (en) * 2008-05-01 2011-06-08 阿尔卡特朗讯美国公司 Message restriction for Diameter servers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889563A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Load control method based on Diameter protocol
US20090164659A1 (en) * 2007-12-25 2009-06-25 Nec Corporation Communication system allowing reduction in congestion by restricting communication
CN102090042A (en) * 2008-05-01 2011-06-08 阿尔卡特朗讯美国公司 Message restriction for Diameter servers
CN101631360A (en) * 2009-08-19 2010-01-20 中兴通讯股份有限公司 Method, device and system for realizing load balancing

Also Published As

Publication number Publication date
CN106550342A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
US10069894B2 (en) Electronic device, storage medium and file transferring method
CN109905259B (en) Communication connection maintaining method, system and related equipment
US20140359084A1 (en) Electronic device, storage medium and file transferring method
CN109525500B (en) Information processing method and information processing device capable of automatically adjusting threshold
JP2010204876A (en) Distributed system
WO2018171208A1 (en) Server load adjustment method and device, server, live broadcast system and computer readable storage medium
US9641603B2 (en) Method and system for spooling diameter transactions
CN110247736B (en) Data transmission method and device
WO2017050121A1 (en) Overload control method and apparatus for accounting request
CN111562884B (en) Data storage method and device and electronic equipment
US20140223026A1 (en) Flow control mechanism for a storage server
CN111291252B (en) Method and device for adjusting query rate per second, electronic equipment and storage medium
US20190147443A1 (en) Payment method based on mobile terminal and mobile terminal
US20170013083A1 (en) Data processing method and apparatus used for terminal application
CN110708234A (en) Message transmission processing method, message transmission processing device and storage medium
CN109756464B (en) Communication method, server and client
CN108170545A (en) A kind of method for message transmission and device based on message-oriented middleware
US10250515B2 (en) Method and device for forwarding data messages
CN107846429B (en) File backup method, device and system
CN106330752B (en) Method and equipment for determining receiving window in TCP flow control
JP2004179983A (en) Network equipment control system
CN105847171A (en) Network device overload protection method
CN111405313B (en) Method and system for storing streaming media data
US8699347B2 (en) Communication apparatus, communication system, communication method, and a computer-readable medium
CN110650217B (en) Load balancing method for download server

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

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

Country of ref document: EP

Kind code of ref document: A1