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

Overload control method and apparatus for accounting request Download PDF

Info

Publication number
WO2017050128A1
WO2017050128A1 PCT/CN2016/098324 CN2016098324W WO2017050128A1 WO 2017050128 A1 WO2017050128 A1 WO 2017050128A1 CN 2016098324 W CN2016098324 W CN 2016098324W WO 2017050128 A1 WO2017050128 A1 WO 2017050128A1
Authority
WO
WIPO (PCT)
Prior art keywords
overload
session
acr
current
sent
Prior art date
Application number
PCT/CN2016/098324
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 WO2017050128A1 publication Critical patent/WO2017050128A1/en

Links

Images

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 method of the existing offline charging interface Rf of the 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, Charging Trigger Function
  • ACA Accounting Request Answer
  • CDF Charging Data Function
  • DIAMETER_TOO_BUSY DIAMETER_TOO_BUSY error response code.
  • the CTF re-sends a buffered Accounting Request message (ACR, Accounting Request) to the CDF every other operator's configurable waiting time.
  • ACR Accounting Request
  • the CTF will send a buffered ACR Accounting Request message to the Broken CDF every other period of time that the operator can configure. This retransmission process is considered because the charging information cannot be lost. It will continue to repeat indefinitely until the link is restored.
  • the related technology realizes Diameter overload control by transmitting a buffered ACR charging request message every predetermined waiting time.
  • the related technology adopts the same control mode for different overload levels, and the control is performed. There must be a problem with a single control method.
  • the embodiment of the invention provides a method and a device for controlling the overload of the charging request message, so as to at least solve the problem that the flexibility of the overload control caused by the Diameter overload control mode is relatively simple in the related art.
  • a method for controlling an overload of a charging request message includes: transmitting an Accounting Request message (ACR) in a current session to a first charging data function unit;
  • the overload indication information is obtained by the charging response message (ACA) of the ACR sent by the charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier; and the overload control is required according to the overload level acquisition.
  • ACR Accounting Request message
  • ACA charging response message
  • the session identifier of the target session performing an overload control operation on the ACR to be sent in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier, wherein the overload control operation is at least And means for not sending the to-be-sent ACR in the target session to the first charging data function unit.
  • performing an overload control operation on the to-be-sent ACR in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier including at least one of the following: proportionally
  • the ACR to be sent in the target session is cached in an ACR queue in the local storage; all the ACRs to be sent in the target session are all cached in an ACR queue in the local storage;
  • the ACR to be sent in the session is sent to the second charging data function unit; all the ACRs to be sent in the target session are all sent to the second charging data function unit.
  • the obtaining the session identifier of the target session that needs to perform the overload control according to the overload level includes: acquiring the first session identifier of the current session as the target session if the overload level is a primary overload level a session identifier; if the overload level is a medium overload level, obtaining a first session identifier of the current session and a second session identifier of a historical session before the current session as a session identifier of the target session;
  • the overload level is an advanced overload level, and the first session identifier of the current session and the history session before the current session are acquired.
  • the second session identifier is used as the session identifier of the target session.
  • the overload level is a primary overload level
  • the overload control mode is performed according to the overload control mode indicated by the overload control identifier, and an overload control operation is performed on the ACR to be sent in the target session indicated by the session identifier
  • the method includes: proxiwardly buffering an ACR to be sent in the current session to the ACR queue in the local storage; or, proportionally sending an ACR to be sent in the current session to the second charging Data function unit.
  • the overload level is a medium overload level
  • the overload control mode is performed according to the overload control mode indicated by the overload control identifier, and an overload control operation is performed on the ACR to be sent in the target session indicated by the session identifier, Include: prorating the current session and the ACR to be sent in the historical session to the ACR queue in the local storage in proportion; or proportionally, the current session and the waiting in the historical session
  • the sending ACR is sent to the second charging data function unit.
  • the overload level is an advanced overload level
  • the overload control mode is performed according to the overload control mode indicated by the overload control identifier, and an overload control operation is performed on the ACR to be sent in the target session indicated by the session identifier
  • the method includes: all the ACRs to be sent in the current session and the historical session are cached in the ACR queue in the local storage; or the ACR to be sent in the current session and the historical session are all Sended to the second charging data function unit.
  • the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes a network element to be overload controlled that matches the corresponding overload level.
  • NE identifier a network element list corresponding to the overload level
  • the method further includes: determining a network element identifier of the current network element where the current session is located. Whether it is included in the network element list carried by the overload indication information; if the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information And performing an overload control operation on the current network element.
  • the method further includes: receiving an ACA carrying the overload level from the first charging data function unit, where The overload level is the first charging data function unit according to a current load The amount is determined.
  • the current overload level is the primary overload level; If the current load amount of the first charging data function unit is between the second predetermined threshold and the third predetermined threshold, the current overload level is the intermediate overload level; The current load amount of the first billing data function unit is greater than the pre-configured third predetermined threshold, and the current overload level is the advanced overload level; wherein the first predetermined threshold is less than the a second predetermined threshold, the second predetermined threshold being less than the third predetermined threshold.
  • the first obtaining module is configured to obtain the overload indication information from the charging response message (ACA) of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload
  • a second acquisition module configured to acquire, according to the overload level, a session identifier of the target session that needs to be subjected to overload control; the first processing module is configured to follow the overload control mode indicated by the overload control identifier,
  • the ACR to be sent in the target session indicated by the session identifier performs an overload control operation, wherein the overload control operation is at least used to indicate that the target data in the target session is not to be sent to the first charging data function unit.
  • ACR Accounting Request message
  • the first processing module includes at least one of: a first cache unit configured to cache the ACR to be sent in the target session to an ACR queue in a local storage; the second cache a unit, configured to cache all the ACRs to be sent in the target session to an ACR queue in the local storage; the first sending unit is configured to send the ACR to be sent in the target session proportionally a second charging data function unit; the second sending unit is configured to send all the ACRs to be sent in the target session to the second charging data function unit.
  • the second obtaining module includes: a first acquiring unit, configured to acquire a first session identifier of the current session as a session identifier of the target session, if the overload level is a primary overload level; The second obtaining unit is set to obtain if the overload level is a medium overload level Taking the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session; and the third obtaining unit, if the overload level is the advanced overload level And acquiring a first session identifier of the current session and a second session identifier of the historical session before the current session as a session identifier of the target session.
  • the first processing module further includes: a third cache unit, configured to cache the to-be-sent ACR in the current session to the local storage in proportion when the overload level is a primary overload level
  • the third sending unit is configured to send the ACR to be sent in the current session to the second charging data function unit proportionally when the overload level is a primary overload level.
  • the first processing module further includes: a fourth buffer unit, configured to cache the current session and the ACR to be sent in the historical session to be proportionally when the overload level is a medium overload level In the ACR queue in the local storage; or, the fourth sending unit is configured to send the ACR to be sent in the current session and the historical session proportionally when the overload level is a medium overload level Giving the second billing data functional unit.
  • a fourth buffer unit configured to cache the current session and the ACR to be sent in the historical session to be proportionally when the overload level is a medium overload level In the ACR queue in the local storage
  • the fourth sending unit is configured to send the ACR to be sent in the current session and the historical session proportionally when the overload level is a medium overload level Giving the second billing data functional unit.
  • the first processing module further includes: a fifth buffer unit, configured to cache all the ACRs to be sent in the current session and the historical session when the overload level is an advanced overload level In the ACR queue in the local storage; or, the fifth sending unit is configured to send all the ACRs to be sent in the current session and the historical session to the location when the overload level is a high level of overload
  • a fifth buffer unit configured to cache all the ACRs to be sent in the current session and the historical session when the overload level is an advanced overload level In the ACR queue in the local storage
  • the fifth sending unit is configured to send all the ACRs to be sent in the current session and the historical session to the location when the overload level is a high level of overload
  • the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes a network element to be overload controlled that matches the corresponding overload level.
  • NE identifier a network element list corresponding to the overload level
  • the device further includes: a determining module, configured to determine, after the first obtaining module obtains the overload indication information from the ACA of the ACR sent by the first charging data function unit, Whether the network element identifier of the current network element where the session is located is included in the network element list carried by the overload indication information; and the second processing module is configured to: if the network element of the current network element where the current session is located The identifier is included in the network element list carried by the overload indication information, and an overload control operation is performed on the current network element.
  • a determining module configured to determine, after the first obtaining module obtains the overload indication information from the ACA of the ACR sent by the first charging data function unit, Whether the network element identifier of the current network element where the session is located is included in the network element list carried by the overload indication information
  • the second processing module is configured to: if the network element of the current network element where the current session is located The identifier is included in the network element list carried by the overload indication information, and an overload control operation is performed
  • the device further includes: a third processing module, configured to be in the sending module After receiving the ACR in the current session, the charging data function unit receives the ACA carrying the overload level from the first charging data function unit, where the overload level is the first charging data function unit Determined based on the current load.
  • a third processing module configured to be in the sending module After receiving the ACR in the current session, the charging data function unit receives the ACA carrying the overload level from the first charging data function unit, where the overload level is the first charging data function unit Determined based on the current load.
  • the current overload level is the primary overload level; If the current load amount of the first charging data function unit is between the second predetermined threshold and the third predetermined threshold, the current overload level is the intermediate overload level; The current load amount of the first billing data function unit is greater than the pre-configured third predetermined threshold, and the current overload level is the advanced overload level; wherein the first predetermined threshold is less than the a second predetermined threshold, the second predetermined threshold being less than the third predetermined threshold.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed to implement the overload control method of the charging request message.
  • the ACR in the current session is sent to the first charging data function unit, and the overload indication information is obtained from the ACA of the ACR sent by the first charging data function unit, where the overload indication information is at least Carrying an overload level and an overload control identifier; obtaining, according to the overload level, a session identifier of the target session that needs to be subjected to overload control; according to the overload control mode indicated by the overload control identifier, the target session indicated in the session identifier is to be sent
  • the ACR performs an overload control operation, wherein the overload control operation is at least for indicating that the ACR to be transmitted in the target session is not sent to the first charging data function unit.
  • the ACR to be sent sent to the first charging data function unit performs a corresponding overload control operation to overcome the problem of low flexibility of the overload control caused by the single Diameter overload control mode in the related art. It is possible to adopt different overload control modes for different overload levels and flexibly carry out the effect of overload control. In addition, through flexible overload control, the accuracy of the overload control will be further improved to ensure the normal operation of the first billing data functional unit after the overload control.
  • FIG. 1 is a flowchart of overload control of a charging request message according to an embodiment of the present invention
  • FIG. 2 is a flow chart 1 of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention
  • FIG. 3 is a second flowchart of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention
  • FIG. 4 is a third flowchart of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention.
  • FIG. 5 is a flowchart 4 of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram 1 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • FIG. 8 is a structural block diagram 2 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram 3 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram 4 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • FIG. 11 is a structural block diagram 5 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • FIG. 12 is a structural block diagram 6 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • FIG. 13 is a structural block diagram 7 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of overload control of a charging request message according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S102 sending a charging request message (ACR) in the current session to the first charging data function unit;
  • step S104 the overload indication information is obtained from the charging response message (ACA) of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier;
  • Step S106 Acquire, according to the overload level, a session identifier of a target session that needs to perform overload control;
  • Step S108 Perform an overload control operation on the to-be-sent ACR in the target session indicated by the session identifier 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 sends the ACR to be sent in the target session.
  • the overload control method of the foregoing charging request message may be, but is not limited to, being applied to a Diameter overload control process, which is different from the related art in that the cached ACR is sent after every predetermined waiting time.
  • Diameter overload control is implemented, but different overload control modes are adopted for different overload levels, which avoids the problem of low flexibility of overload control due to the single Diameter overload control mode in the related art.
  • the ACR may include, but is not limited to, an identification letter carrying a Diameter Overload Indication Conveyance (DOIC). interest.
  • DOIC Diameter Overload Indication Conveyance
  • the foregoing target session may include, but is not limited to, a current session, or a current session and a historical session.
  • the initial ACR message ACR[START] in the above historical session may be, but is not limited to, generated before the occurrence of an overload
  • the initial ACR message ACR[START] in the current session may include, but is not limited to, after the occurrence of an overload. That is, the start ACR message ACR[START] of the historical session in the CTF is generated before the start ACR message ACR[START] of the current session.
  • the overload control operation may include, but is not limited to, one of the following: buffering the ACR to be sent to the ACR queue in the local buffer, and sending the ACR to be sent to the second charging data function. unit.
  • the ACR queue for buffering the ACR to be sent to the local buffer may include, but is not limited to, the following method: the ACR to be sent is cached to the ACR queue in the local buffer, and the ACR to be sent is cached. Go to the ACR queue in the local buffer.
  • the foregoing sending the to-be-sent ACR to the second charging data function unit may include, but is not limited to, a method of proportionally transmitting the to-be-sent ACR to be sent to the first charging data function unit after the ACR in the current session.
  • the data function unit sends all the to-be-sent ACRs to be sent to the first charging data function unit after the ACR in the current session and in the historical session before the current session to the second charging data function unit.
  • the overload level includes, but is not limited to, a primary overload level, a medium overload level, and an advanced overload level.
  • the target session identifier that needs to be subjected to the overload control according to the overload level includes, but is not limited to, if the overload level is the primary overload level, the first session identifier of the current session is obtained as the session identifier of the target session; if the overload level is the intermediate overload level, Obtaining the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session; if the overload level is the advanced overload level, acquiring the first session identifier of the current session and before the current session The second session identifier of the historical session is the session identifier of the target session. That is, the embodiment of the present invention dynamically selects the target session identifier according to the overload level, which avoids the problem that the flexibility of the overload control is low due to the single Diameter overload control mode in the related art.
  • performing overload control on the ACR to be sent sent to the first charging data function unit after the ACR in the target session indicated by the session identifier Operation including but not limited to: prorating the ACR to be sent in the target session to the ACR queue in the local storage; or, all the ACRs to be sent in the target session are cached into the ACR queue in the local storage; or Transmitting the to-be-sent ACR in the target session to the second charging data function unit; or transmitting all the ACRs to be sent in the target session to the second charging data function unit.
  • the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes, but is not limited to, an overload control that matches the corresponding overload level.
  • the NE ID of the NE The operator can configure the matched network element list information according to the overload level and charging priority of the CDF and bring it back to the CTF in the response message by the CDF.
  • the CTF receives the reduced percentage and overload for the overload control from the CDF. After the level information and algorithm identification, it may be decided to adopt a corresponding overload control algorithm according to different overload level information.
  • the embodiment of the present invention provides that when the network deploys the first CDF (Primary CDF) and the second CDF (Secondary CDF), the CTF may select a new charging request that is to be cached proportionally.
  • the message ACR[Start] and subsequent ACR[Interim] and ACR[Stop] are forwarded to the auxiliary CDF, thereby avoiding the problem of overload of the main CDF.
  • the ACR in the current session is sent to the first charging data function unit; the overload indication information is obtained from the ACA of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level.
  • an overload control identifier obtaining, according to the overload level, a session identifier of the target session that needs to be overloaded; performing an overload on the ACR to be sent in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier Control operation, wherein the overload control operation is at least for indicating that the ACR to be transmitted in the target session is not sent to the first charging data function unit.
  • the target indicated by the session identifier is The ACR that is to be sent to the first charging data function unit after the ACR performs an overload control operation, and is different from the related art in that the buffered ACR is sent after every predetermined waiting time to implement Diameter overload control. . That is to say, the above-mentioned steps solve the problem that the flexibility of the overload control is low due to the single Diameter overload control mode, and the effect of optimizing the overload control is realized.
  • step S108 can be implemented in the following manner:
  • Step S11 the ACR in the target session is cached in proportion to the ACR queue in the local storage;
  • Step S12 All the ACRs to be sent in the target session are cached into the ACR queue in the local storage; or
  • Step S13 the ACR to be sent in the target session is sent to the second charging data function unit according to a ratio
  • Step S14 All the ACRs to be sent in the target session are sent to the second charging data function unit.
  • the ACR to be sent in the target session is cached in the local memory ACR queue by a certain percentage, so that after the overload state is eliminated, the ACR queue in the local memory is sequentially read. Take, because as an important operational data for the operator, the charging message cannot be discarded at will.
  • the first charging data unit may be effectively prevented from being overloaded.
  • step S106 can be implemented by the following steps:
  • Step S21 If the overload level is the primary overload level, obtain the first session identifier of the current session as the session identifier of the target session;
  • Step S22 If the overload level is the intermediate level, obtain the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session;
  • Step S23 If the overload level is the advanced overload level, obtain the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session.
  • the initial ACR message in the above historical session ACR[START] may, but is not limited to, be generated prior to the occurrence of an overload
  • the initial ACR message ACR[START] in the current session may include, but is not limited to, after an overload occurs. That is, the start ACR message ACR[START] of the historical session in the CTF is generated before the start ACR message ACR[START] of the current session.
  • the overload level is a primary overload level
  • only the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start].
  • the overload control operation is performed proportionally.
  • the overload control operation is performed proportionally.
  • the overload level is an advanced overload level
  • the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start]. And the subsequent ACR [interim] and ACR [Stop] in the history session, all perform the overload control operation.
  • the above steps S21 to S23 can dynamically select the target session identifier according to the overload level, thereby achieving the effect of effective overload control.
  • step S108 when the overload level is the primary overload level, step S108 can be implemented by the following method:
  • Step S31 the ACR to be sent in the current session is cached in proportion to the ACR queue in the local storage;
  • Step S32 the ACR to be sent in the current session is sent to the second charging data function unit in proportion.
  • the overload level is a primary overload level
  • only the current ACR to be sent is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR of the ACR [Start].
  • the overload control operation is performed proportionally. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], the current ACR is proportionally controlled to the ACR queue in the local storage. Or, proportionally sent to the second billing data function unit.
  • FIG. 2 is an offline charging according to an embodiment of the present invention.
  • a flowchart of a Diameter overload control method on an interface wherein the primary CDF corresponds to the first CDF, and the secondary CDF corresponds to the second CDF.
  • the primary CDF and the secondary CDF are Diameter servers, and the core network element is a Diameter client.
  • the ACR in the current session is the new ACR, and the ACR in the historical session is the old ACR.
  • the method in this embodiment includes the following steps:
  • Step S201 During the session of the user equipment (UE, User Equipment), the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns a charging request response message (ACA).
  • the identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
  • the primary CDF can determine the load status, for example, according to the occupancy rate of the central processing unit (CPU) and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold may be the overload control start threshold,
  • the session rejection threshold and the total session rejection threshold are used to perform an overload judgment and response message, which may be: if the load is found to be in the primary overload control interval (eg, overload control start threshold ⁇ CPU occupancy ⁇ session rejection threshold), the combination is carried in the response message.
  • Type AVP Attribute-Value-Pair
  • OC-OLR Overload Control-Overload Report
  • OC-Reduction-Percentage % reduction of overload control
  • the value and overload control level information (mainly involved in the primary overload control in Figure 2), and the overload control algorithm for charging is carried in the OC-OLR.
  • the overload control algorithm identifier here is different from the default overload control algorithm (Loss Algorithm) of DOIC, because for the operator as the important operational data, the charging message cannot be discarded at will, so the overload control algorithm required by the CDF is applicable to the meter.
  • the caching algorithm of the fee interface and bring this identifier back to the CTF in the response message.
  • step S203 the primary CDF sends a Diameter Accounting Response message containing the overload report message OC-OLR to the CTF.
  • Step S204 the CTF normally routes the old ACR message (such as: ACR [Interim] and ACR [Stop]) to the CDF, and the CTF receives the reduced percentage information (such as: OC-Reduction-Percentage) containing the overload control, and the overload control level.
  • the CTF receives the reduced percentage information (such as: OC-Reduction-Percentage) containing the overload control, and the overload control level.
  • the CTF performs a charging overload control algorithm for all new ACR messages (new ACR [Start] and corresponding subsequent ACR [Interim] and ACR [Stop]), such as: Proportional random buffering of new ACR messages: when there is a secondary CDF When the CTF will be all The new ACR message (ACR[Start] and the corresponding subsequent ACR[Interim] and ACR[Stop]) are forwarded to the secondary CDF, and when there is no secondary CDF, the CTF caches all new ACR messages.
  • Step S205 the CTF sends the Diameter Accounting Request message ACR containing the DOIC charging identifier information to the second charging data function unit, that is, the secondary CDF in FIG.
  • the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF.
  • Step S206 the CTF receives the Diameter Accounting Response message, where the charging response message ACA includes overload report information OC-OLR.
  • Step S207 after the overload control of the above steps, if the OC-Reduction-Percentage in the overload report AVP: OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue.
  • the ACR messages in the order are sent out in order.
  • the degree of overload is light, and the ACR queue to be sent sent to the first charging data function unit after the ACR in the current session may be cached to the ACR queue in the local storage; or proportionally The ACR to be sent sent to the primary charging data function unit after the ACR in the current session is sent to the secondary charging data function unit. Therefore, the control mode can be dynamically selected according to the overload level, and the problem of low flexibility of the overload control due to the single Diameter overload control mode in the related art is avoided.
  • step S108 can also be implemented by the following steps:
  • Step S41 the current session and the ACR to be sent in the historical session are cached in proportion to the ACR queue in the local storage;
  • Step S42 the current session and the ACR to be sent in the historical session are sent to the second charging data function unit in proportion.
  • the overload control operation is performed proportionally. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent in the history session, the current ACR is proportionally controlled to the ACR queue in the local storage, or is proportionally sent to the second charging data function unit.
  • FIG. 3 is a second flowchart of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention, wherein a primary CDF corresponds to a first CDF, and a secondary CDF corresponds to a second CDF.
  • the primary CDF and the secondary CDF are Diameter servers, and the core network element is a Diameter client.
  • the ACR in the current session is a new ACR, and the ACR in the historical session is the old ACR.
  • the method in this embodiment includes the following steps:
  • step S301 during the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA).
  • ACR charging trigger message
  • CTF charging trigger point
  • ACA accounting response message
  • DOIC Diameter Overload Indication Conveyance
  • the CDF can determine the load condition, for example, according to the CPU occupancy rate and the operator's pre-configured three-level overload threshold (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold).
  • the judgment and response message may be: if the load is found to be in the intermediate overload control interval (eg, session rejection threshold ⁇ CPU occupancy ⁇ all session rejection threshold), carrying the combined AVP overload report in the response message: OC-OLR and filling in the OC -Reduction-Percentage value and overload control level information (this refers to intermediate overload control), and carry the overload control algorithm for charging in OC-OLR.
  • the intermediate overload control interval eg, session rejection threshold ⁇ CPU occupancy ⁇ all session rejection threshold
  • the overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
  • Step S303 the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
  • Step S304 after receiving the reduction percentage information (such as: OC-Reduction-Percentage) of the overload control, the overload control level information, and the response message of the required overload control algorithm identifier, the CTF finds that intermediate overload control is required.
  • the CTF performs a charging overload control algorithm that does not send part of the old ACR messages (old ACR [Interim] and ACR [Stop]) to the CDF; the algorithm here is the CTF cache part of the old ACR message (old ACR [Interim] ] and ACR[Stop]).
  • the algorithm may be, for example, using a random algorithm to generate a number between 1 and 100, when the obtained value is small
  • the ACR message is buffered when it is equal to or equal to the OC-Reduction-Percentage numerator.
  • the CTF normally routes the ACR message to the CDF. .
  • Step S305 after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
  • control mode can be dynamically selected according to the overload level, and the overload is effectively controlled.
  • step S108 when the overload level is the advanced overload level, step S108 can also be implemented by the following method:
  • Step S51 All the ACRs to be sent in the current session and the historical session are cached in the ACR queue in the local storage; or
  • Step S52 All the ACRs to be sent in the current session and the historical session are sent to the second charging data function unit.
  • the overload control operation is performed proportionally. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent ACR[interim] and ACR[Stop] in the history session, then Directly controlling the current ACR cache to the ACR queue in the local storage, or directly to the second charging data function unit.
  • FIG. 4 is a third flowchart of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention, wherein a primary CDF corresponds to a first CDF, and a secondary CDF corresponds to a second CDF. .
  • the primary CDF and the secondary CDF are Diameter servers, and the core network element is a Diameter client.
  • the ACR in the current session is a new ACR, and the ACR in the history session is the old ACR.
  • the method provided in this embodiment includes the following steps:
  • step S401 during the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA).
  • ACR charging trigger message
  • CTF charging trigger point
  • ACA accounting response message
  • DOIC Diameter Overload Indication Conveyance
  • the CDF can determine the load condition, for example, according to the occupancy rate of the CPU and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold).
  • the judgment and response message may be: if the load is found to be in the advanced overload control interval (eg, CPU occupancy ⁇ all session rejection threshold), carry the combined AVP overload report in the response message: OC-OLR and fill in OC-Reduction-Percentage
  • the value and overload control level information (this refers to advanced overload control), and carries the overload control algorithm for charging in the OC-OLR.
  • the overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
  • Step S403 the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
  • Step S404 after receiving the reduction percentage information (such as: OC-Reduction-Percentage) of the overload control, the overload control level information, and the response message of the required overload control algorithm identifier, the CTF finds that advanced overload control is required.
  • the CTF performs a charging overload control algorithm that does not send all ACR messages to the CDF.
  • the algorithm here is that the CTF uses a random algorithm to cache all ACR messages.
  • Step S405 after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
  • control mode can be dynamically selected according to the overload level, and the overload is effectively controlled.
  • step S108 is overload control embodiments corresponding to the overload level, but are not limited thereto. It can also be a holistic approach to integrated use.
  • the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes a network of the network element to be overload controlled that matches the corresponding overload level. Meta logo.
  • step S104 the foregoing method further includes the following steps:
  • Step S61 determining whether the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information;
  • Step S62 If the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information, perform an overload control operation on the current network element.
  • step S61 and step S62 overload control of the core network element is implemented. For example, when the CTF finds that an ACR request message is from a network element to be overloaded according to the received network element list to be overloaded, the CTF performs a charging overload control algorithm, and does not send a partial ACR message to the CDF proportionally.
  • the method further includes the following steps:
  • Step S71 The first charging data function unit determines an overload level of the current first charging data function unit according to the current load quantity, and carries the current overload level in the ACA of the ACR.
  • step S71 includes: if the current load amount of the first billing data function unit is between the pre-configured first predetermined threshold and the second predetermined threshold, the current overload level is the primary overload level. If the current load amount of the first charging data function unit is between the pre-configured second predetermined threshold and the third predetermined threshold, the current overload level is a medium overload level; if the current charging data function unit current load The amount is greater than the pre-configured third predetermined threshold, and the current overload level is the advanced overload level; wherein the first predetermined threshold is less than the second predetermined threshold, and the second predetermined threshold is less than the third predetermined threshold.
  • overload control start threshold, the session rejection threshold, and the total session rejection threshold in FIG. 5 respectively correspond to the first predetermined threshold, the second predetermined threshold, and the third predetermined threshold in step S71.
  • FIG. 5 is a flowchart 4 of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention, wherein a primary CDF corresponds to a first CDF, and a secondary CDF corresponds to a second CDF. .
  • the primary CDF and the secondary CDF are Diameter servers, and the core network element is a Diameter client.
  • the method in this embodiment includes the following steps:
  • Step S501 During the session of the UE, the charging triggering point (CTF) is normally sent.
  • the request message (ACR) to the CDF the CDF processes normally and returns an Accounting Response Message (ACA).
  • ACA Accounting Response Message
  • DOIC Diameter Overload Indication Conveyance
  • the CDF can determine the load condition, for example, according to the CPU occupancy rate and the operator's pre-configured three-level overload threshold (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold).
  • the judgment may be: when the overload control start threshold ⁇ CPU occupancy ⁇ session rejection threshold, it is a primary overload; when the session rejection threshold ⁇ CPU occupancy ⁇ all session rejection threshold, it is an intermediate overload; when the CPU occupancy ⁇ all sessions When the threshold is rejected, it is an advanced overload.
  • the overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
  • Step S503 the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
  • Step S504 When the CTF finds that an ACR request message is from the network element to be overloaded according to the received network element list to be overloaded, the CTF performs a charging overload control algorithm, and does not send part of the ACR message to the CDF proportionally: For example, using a random algorithm to generate a number between 1 and 100, when a numerator with a value less than or equal to OC-Reduction-Percentage is obtained, the ACR message is cached, and when a numerator with a value greater than OC-Reduction-Percentage is obtained, The CTF normally routes this ACR message to the CDF.
  • the CTF can add the new ACR [Start] to be cached and the corresponding subsequent ACR.
  • the message is sent to the secondary CDF.
  • Step S505 when there is a secondary CDF, then the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF;
  • Step S506 the CTF receives the ACA message from the secondary CDF.
  • Step S507 after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, or by hardware, but in many cases, the former is more Good implementation.
  • the technical solution of the present application which is essential or contributes to the related art, may 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, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present application.
  • an overload control device for the charging request message is provided, and the device is used to implement the foregoing embodiment and the optional implementation manner, 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. 6 is a structural block diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
  • the sending module 62 is configured to send a charging request message (ACR) in the current session to the first charging data function unit;
  • the first obtaining module 64 is configured to obtain the overload indication information from the charging response message (ACA) of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier;
  • the second obtaining module 66 is configured to acquire, according to the overload level, a session identifier of the target session that needs to perform overload control;
  • the first processing module 68 is configured to follow the overload control mode indicated by the overload control flag. And performing an overload control operation on the to-be-sent ACR in the target session indicated by the session identifier, where the overload control operation is at least used to indicate that the ACR to be sent in the target session 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, which is different from the related art in that the cached ACR is sent after every predetermined waiting time.
  • Diameter overload control is implemented, but different overload control modes are adopted for different overload levels, which avoids the problem of low flexibility of overload control due to the single Diameter overload control mode in the related art.
  • 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 foregoing target session may include, but is not limited to, a current session, or a current session and a historical session.
  • the initial ACR message ACR[START] in the above historical session may be, but is not limited to, generated before the occurrence of an overload
  • the initial ACR message ACR[START] in the current session may include, but is not limited to, after the occurrence of an overload. That is, the start ACR message ACR[START] of the historical session in the CTF is generated before the start ACR message ACR[START] of the current session.
  • the overload control operation may include, but is not limited to, one of the following: buffering the ACR to be sent to the ACR queue in the local buffer, and sending the ACR to be sent to the second charging data function. unit.
  • the ACR queue for buffering the ACR to be sent to the local buffer may include, but is not limited to, the following method: the ACR to be sent is cached to the ACR queue in the local buffer, and the ACR to be sent is cached. Go to the ACR queue in the local buffer.
  • the foregoing sending the to-be-sent ACR to the second charging data function unit may include, but is not limited to, a method of proportionally transmitting the to-be-sent ACR to be sent to the first charging data function unit after the ACR in the current session.
  • the data function unit sends all the to-be-sent ACRs to be sent to the first charging data function unit after the ACR in the current session and in the historical session before the current session to the second charging data function unit.
  • the overload level includes, but is not limited to, a primary overload level, a medium overload level, and an advanced overload level.
  • the target session identifier that needs to be subjected to the overload control according to the overload level includes, but is not limited to, if the overload level is the primary overload level, the first session identifier of the current session is obtained as the session identifier of the target session; if the overload level is the intermediate overload level, Obtaining the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session; if the overload level is the advanced overload level, acquiring the first session identifier of the current session and before the current session The second session identifier of the historical session is the session identifier of the target session. That is, the embodiment of the present invention dynamically selects the target session identifier according to the overload level, which avoids the problem that the flexibility of the overload control is low due to the single Diameter overload control mode in the related art.
  • performing overload control on the ACR to be sent sent to the first charging data function unit after the ACR in the target session indicated by the session identifier Operation including but not limited to: prorating the ACR to be sent in the target session to the ACR queue in the local storage; or, all the ACRs to be sent in the target session are cached into the ACR queue in the local storage; or Transmitting the to-be-sent ACR in the target session to the second charging data function unit; or transmitting all the ACRs to be sent in the target session to the second charging data function unit.
  • the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes, but is not limited to, an overload control that matches the corresponding overload level.
  • the NE ID of the NE The operator can configure the matched network element list information according to the overload level and charging priority of the CDF and bring it back to the CTF in the response message by the CDF.
  • the CTF receives the reduced percentage and overload for the overload control from the CDF. After the level information and algorithm identification, it may be decided to adopt a corresponding overload control algorithm according to different overload level information.
  • the embodiment of the present invention provides that when the first CDF (Primary CDF) and the second CDF (Secondary CDF) are deployed in the network, the CTF may choose to cache the first proportionally.
  • the new billing request message ACR[Start] and subsequent ACR[Interim] and ACR[Stop] are forwarded to the auxiliary CDF, thereby avoiding the problem of overload of the main CDF.
  • the device sends the ACR in the current session to the first charging data function unit, and obtains the overload indication information from the ACA of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level.
  • an overload control identifier obtaining, according to the overload level, a session identifier of the target session that needs to be overloaded; performing an overload on the ACR to be sent in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier Control operation, wherein the overload control operation is at least for indicating that the ACR to be transmitted in the target session is not sent to the first charging data function unit.
  • the device by acquiring the overload control identifier, and then transmitting the ACR to be sent to the first charging data function unit after the ACR in the target session indicated by the session identifier by the overload control mode indicated by the overload control identifier
  • the overload control operation is performed, and unlike the related art, the Diameter overload control is implemented by transmitting the buffered ACR after every predetermined waiting time. That is to say, the above-mentioned steps solve the problem that the overload control is less flexible due to the single Diameter overload control mode, and the effect of optimizing the overload control is realized.
  • FIG. 7 is a structural block diagram 1 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • the first processing module 68 in the apparatus includes at least one of the following:
  • the first buffer unit 72 is configured to cache the to-be-sent ACR in the target session to the ACR queue in the local storage.
  • the second buffer unit 74 is configured to cache all the ACRs to be sent in the target session into the ACR queue in the local storage;
  • the first sending unit 76 is configured to send the to-be-sent ACR in the target session to the second charging data function unit in proportion;
  • the second sending unit 78 is configured to send all the ACRs to be sent in the target session to the second charging data function unit.
  • the ACR to be sent in the target session is cached in the local memory ACR queue by a certain percentage, so that after the overload state is eliminated, the ACR queue in the local storage is sequentially read, because for the operator As important operational data, billing messages cannot be discarded at will. And for the above-mentioned steps, the proportion of the ACR to be sent in the target session is proportional or full. The part is sent to the second charging data function unit, which can effectively prevent the first charging data unit from being overloaded.
  • FIG. 8 is a structural block diagram 2 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • the second obtaining module 66 includes:
  • the first obtaining unit 82 is configured to acquire the first session identifier of the current session as the session identifier of the target session if the overload level is the primary overload level;
  • the second obtaining unit 84 is configured to acquire, as the intermediate overload level, the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session;
  • the third obtaining unit 86 is configured to acquire, as the advanced overload level, the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session.
  • the initial ACR message ACR[START] in the above historical session may be, but is not limited to, generated before the overload occurs
  • the initial ACR message ACR[START] in the current session may include but not Limited to occur after an overload occurs. That is, the start ACR message ACR[START] of the historical session in the CTF is generated before the start ACR message ACR[START] of the current session.
  • the overload control operation is performed proportionally only if the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start].
  • the overload control operation is performed proportionally.
  • the overload level is an advanced overload level
  • the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start] and the subsequent ACR [interim] in the historical session.
  • ACR[Stop] all perform overload control operations.
  • the target session identifier can be dynamically selected according to the overload level, thereby achieving the effect of effective overload control.
  • FIG. 9 is a structural block diagram 3 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • the first processing module 68 further includes:
  • the third buffer unit 92 is configured to cache the ACR to be sent in the current session to the ACR queue in the local storage in proportion when the overload level is the primary overload level; or
  • the third sending unit 94 is configured to send the ACR to be sent in the current session to the second charging data function unit proportionally when the overload level is the primary overload level.
  • the overload control is performed proportionally only if the current ACR to be transmitted is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start]. operating. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], the current ACR is proportionally controlled to the ACR queue in the local storage. Or, proportionally sent to the second billing data function unit.
  • the device involves the following process:
  • Step S201 During the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns a charging request response message (ACA), where, in the ACR message.
  • ACA charging request response message
  • DOIC Diameter Overload Indication Conveyance
  • the primary CDF can determine the load condition, for example, according to the occupancy rate of the CPU and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold may be an overload control start threshold, a session rejection threshold, and a total session rejection threshold).
  • the overload judgment and response message may be: if the load is found to be in the primary overload control interval (eg, overload control start threshold ⁇ CPU occupancy ⁇ session rejection threshold), the combined AVP overload report is carried in the response message: OC-OLR and Fill in the OC-Reduction-Percentage value and overload control level information (mainly involved in the primary overload control in Figure 2), and carry the overload control algorithm for charging in the OC-OLR.
  • the overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. Caching algorithm and identifying this in response message Brought back to CTF.
  • step S203 the primary CDF sends a Diameter Accounting Response message containing the overload report message OC-OLR to the CTF.
  • Step S204 the CTF normally routes the old ACR message (such as: ACR [Interim] and ACR [Stop]) to the CDF, and the CTF receives the reduced percentage information (such as: OC-Reduction-Percentage) containing the overload control, and the overload control level.
  • the CTF receives the reduced percentage information (such as: OC-Reduction-Percentage) containing the overload control, and the overload control level.
  • the CTF performs a charging overload control algorithm for all new ACR messages (new ACR [Start] and corresponding subsequent ACR [Interim] and ACR [Stop]), such as: Proportional random buffering of new ACR messages: when there is a secondary CDF
  • the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF, and the CTF caches all new ACR messages when there is no secondary CDF.
  • Step S205 the CTF sends the Diameter Accounting Request message ACR containing the DOIC charging identifier information to the second charging data function unit, that is, the secondary CDF in FIG.
  • the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF.
  • Step S206 the CTF receives the Diameter Accounting Response message, where the charging response message ACA includes overload report information OC-OLR.
  • Step S207 after the overload control of the above process, if the OC-Reduction-Percentage in the overload report AVP:OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue.
  • the ACR messages in the order are sent out in order.
  • the degree of overload is light, and the ACR queue to be sent sent to the first charging data function unit after the ACR in the current session may be cached to the ACR queue in the local storage; or proportionally The ACR to be sent sent to the first charging data function unit after the ACR in the current session is sent to the secondary charging data function unit. Therefore, the control mode can be dynamically selected according to the overload level, and the problem of low flexibility of the overload control due to the single Diameter overload control mode in the related art is avoided.
  • control mode can be dynamically selected according to the overload level, thereby avoiding the problem that the Diameter overload control mode is single in the related art.
  • FIG. 10 is a structural block diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • the first processing module 68 further includes:
  • the fourth buffer unit 102 is configured to cache the current session and the ACR to be sent in the historical session to the ACR queue in the local storage in proportion when the overload level is the intermediate overload level; or
  • the fourth sending unit 104 is configured to, when the overload level is the intermediate overload level, send the current session and the ACR to be sent in the historical session to the second charging data function unit in proportion.
  • the current ACR to be transmitted is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent in the historical session.
  • the overload control operation is performed proportionally when ACR[interim] and ACR[Stop]. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent ACR[interim] and ACR[Stop] in the history session, then The current ACR cache is proportionally controlled to the ACR queue in the local storage, or is proportionally sent to the second charging data function unit.
  • the device involves the following process:
  • step S301 during the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA).
  • ACR charging trigger message
  • CTF charging trigger point
  • ACA accounting response message
  • DOIC Diameter Overload Indication Conveyance
  • the CDF can determine the load condition, for example, according to the occupancy rate of the CPU and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold).
  • the judgment and response message may be: if the load is found to be in the intermediate overload control interval (eg, session rejection threshold ⁇ CPU occupancy ⁇ all session rejection threshold), carrying the combined AVP overload report in the response message: OC-OLR and filling in the OC -Reduction-Percentage value and overload control level information (this refers to intermediate overload control), and carry the overload control algorithm for charging in OC-OLR.
  • the intermediate overload control interval eg, session rejection threshold ⁇ CPU occupancy ⁇ all session rejection threshold
  • the overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm because for the operator As important operational data, the charging message cannot be discarded at will, so the overload control algorithm required by the CDF is a caching algorithm applicable to the charging interface, and this identifier is brought back to the CTF in the response message.
  • Step S303 the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
  • Step S304 after receiving the reduction percentage information (such as: OC-Reduction-Percentage) of the overload control, the overload control level information, and the response message of the required overload control algorithm identifier, the CTF finds that intermediate overload control is required.
  • the CTF performs a charging overload control algorithm that does not send part of the old ACR messages (old ACR [Interim] and ACR [Stop]) to the CDF; the algorithm here is the CTF cache part of the old ACR message (old ACR [Interim] ] and ACR[Stop]).
  • the algorithm may be, for example, using a random algorithm to generate a number between 1 and 100, and when the obtained value is less than or equal to the OC-Reduction-Percentage numerator, the ACR message is cached.
  • the CTF normally routes the ACR message to the CDF.
  • Step S305 after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
  • control mode can be dynamically selected according to the overload level, and the overload is effectively controlled.
  • FIG. 11 is a block diagram 5 of a structure of an overload control apparatus for a charging request message according to an embodiment of the present invention.
  • the first processing module 68 further includes:
  • the fifth buffer unit 112 is configured to cache all the ACRs to be sent in the current session and the historical session to the ACR queue in the local storage when the overload level is the advanced overload level; or
  • the fifth sending unit 114 is configured to send all the ACRs to be sent in the current session and the historical session to the second charging data function unit when the overload level is the advanced overload level.
  • the current ACR to be transmitted is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent in the historical session.
  • the overload control operation is performed proportionally when ACR[interim] and ACR[Stop]. example For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent ACR[interim] and ACR[Stop] in the history session, then Directly controlling the current ACR cache to the ACR queue in the local storage, or directly to the second charging data function unit.
  • the device involves the following process:
  • step S401 during the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA).
  • ACR charging trigger message
  • CTF charging trigger point
  • ACA accounting response message
  • DOIC Diameter Overload Indication Conveyance
  • the CDF can determine the load condition, for example, according to the occupancy rate of the CPU and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold).
  • the judgment and response message may be: if the load is found to be in the advanced overload control interval (eg, CPU occupancy ⁇ all session rejection threshold), carry the combined AVP overload report in the response message: OC-OLR and fill in OC-Reduction-Percentage
  • the value and overload control level information (this refers to advanced overload control), and carries the overload control algorithm for charging in the OC-OLR.
  • the overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
  • Step S403 the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
  • Step S404 after receiving the reduction percentage information (such as: OC-Reduction-Percentage) of the overload control, the overload control level information, and the response message of the required overload control algorithm identifier, the CTF finds that advanced overload control is required.
  • the CTF performs a charging overload control algorithm that does not send all ACR messages to the CDF.
  • the algorithm here is that the CTF uses a random algorithm to cache all ACR messages.
  • Step S405 after the overload control, if the overload report is in the AVP: OC-OLR OC-Reduction-Percentage returns to the normal range without control, indicating that the overload state of the charging interface Rf is released, and the core network element sends the ACR message in the buffer queue in order.
  • control mode can be dynamically selected according to the overload level, and the overload is effectively controlled.
  • the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes a network element identifier of the network element to be overload controlled that matches the corresponding overload level.
  • FIG. 12 is a structural block diagram 6 of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 12, the apparatus includes:
  • the determining module 122 is configured to determine whether the network element identifier of the current network element where the current session is located is included after the first obtaining module 64 obtains the overload indication information in the ACA of the ACR sent by the first charging data function unit. In the list of network elements carried by the overload indication information;
  • the second processing module 124 is configured to perform an overload control operation on the current network element if the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information.
  • overload control of the core network element is realized. For example, when the CTF finds that an ACR request message is from a network element to be overloaded according to the received network element list to be overloaded, the CTF performs a charging overload control algorithm, and does not send a partial ACR message to the CDF proportionally.
  • FIG. 13 is a structural block diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 13, the apparatus includes:
  • the third processing module 132 is configured to receive, after the sending module 62 sends the ACR in the current session to the first charging data function unit, the ACA carrying the overload level from the first charging data function unit, where The overload level is determined by the first billing data function unit according to a current load amount.
  • the current overload level is the primary overload level;
  • the current load amount of the billing data function unit is located between the second predetermined threshold and the third predetermined threshold, and the current overload level is the intermediate overload level; if the first billing data function unit is current The load amount is greater than the pre-configured third predetermined threshold, then the current The overload level is the advanced overload level; wherein the first predetermined threshold is less than the second predetermined threshold, the second predetermined threshold being less than the third predetermined threshold.
  • the third predetermined threshold corresponds to that the primary CDF corresponds to the first CDF, and the secondary CDF corresponds to the second CDF.
  • the device involves the following process:
  • Step S501 During the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA).
  • the identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
  • the CDF can determine the load condition, for example, according to the CPU occupancy rate and the operator's pre-configured three-level overload threshold (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold).
  • the judgment may be: when the overload control start threshold ⁇ CPU occupancy ⁇ session rejection threshold, it is a primary overload; when the session rejection threshold ⁇ CPU occupancy ⁇ all session rejection threshold, it is an intermediate overload; when the CPU occupancy ⁇ all sessions When the threshold is rejected, it is an advanced overload.
  • the overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
  • Step S503 the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
  • Step S504 When the CTF finds that an ACR request message is from the network element to be overloaded according to the received network element list to be overloaded, the CTF performs a charging overload control algorithm, and does not send part of the ACR message to the CDF proportionally: For example, using a random algorithm to generate a number between 1 and 100, when a numerator with a value less than or equal to OC-Reduction-Percentage is obtained, the ACR message is sent. Cached up, when a numerator with a value greater than OC-Reduction-Percentage is obtained, the CTF normally routes the ACR message to the CDF.
  • the CTF can add the new ACR [Start] to be cached and the corresponding subsequent ACR.
  • the message is sent to the secondary CDF.
  • Step S505 when there is a secondary CDF, then the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF;
  • Step S506 the CTF receives the ACA message from the secondary CDF.
  • Step S507 after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
  • modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are respectively located in multiple processes. In the device.
  • the embodiment of the invention further provides a computer readable storage medium.
  • the computer readable storage medium may be configured to store program code for performing the following steps:
  • Step S1 sending an ACR in the current session to the first charging data function unit
  • Step S2 Obtaining overload indication information from the ACA of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier;
  • Step S3 acquiring, according to the overload level, a session identifier of a target session that needs to be subjected to overload control;
  • Step S4 performing an overload control operation on the to-be-sent ACR to be sent to the first charging data function unit in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier,
  • the overload control operation is at least used to indicate that all of the to-be-sent ACRs are not sent to the first charging data function unit.
  • the computer readable storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), and a mobile device.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the processor performs the above steps S1 to S4 according to the program code stored in the computer readable storage medium.
  • modules or steps of the present application can be implemented by a general-purpose computing device, which can be centralized on a single computing device or distributed over a network of multiple computing devices. They may be implemented by program code executable by the computing device such that they may be stored in the storage device for execution by the computing device and, in some cases, may be performed in a different order than that illustrated herein. Or the steps described, either separately as a single integrated circuit module, or as a single integrated circuit module. Thus, the application is not limited to any particular combination of hardware and software.
  • the embodiment of the present invention provides an overload control method and device for a charging request message, which overcomes the problem of low flexibility of overload control caused by a single Diameter overload control mode in the related art, thereby achieving different
  • the overload level adopts different overload control modes to flexibly perform the effect of overload control.

Abstract

An overload control method for an accounting request comprises: sending an accounting request (ACR) in a current session to a first charging data function unit; acquiring overload indication information from an accounting request answer (ACA) of the ACR sent by the first charging data function unit, the overload indication information carrying at least an overload grade and an overload control identifier; acquiring, according to the overload grade, a session identifier of a target session needing to perform overload control; and executing, according to an overload control mode indicated by the overload control identifier, an overload control operation on a to-be-sent ACR in the target session indicated by the session identifier, the overload control operation being at least used for indicating non-sending of the to-be-sent ACR in the target session to the first charging data function unit. The technical solution resolves the problem of low flexibility in overload control caused by a single Diameter overload control mode in the related art, thereby achieving the effect of flexible overload control.

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,Third Generation Partnership Project)既有的离线计费接口Rf上Diameter过载控制方式是使用“DIAMETER_TOO_BUSY”错误响应码来提示计费接口已达到过载状态。其中,若计费触发功能(CTF,Charging Trigger Function)未及时收到计费响应消息(ACA,Accounting Request Answer),通常将会收到通过计费数据功能(CDF,Charging Data Function)发送的“DIAMETER_TOO_BUSY”错误响应码。这时CTF每隔一个运营商可配置的等待时间,CTF就会重新发送一次已缓存的计费请求消息(ACR,Accounting Request)到CDF,当重复发送的次数达到运营商配置的最大重复次数,却依然没有收到ACA响应消息时,CTF会执行连接失败处理过程。At present, the Diameter overload control method of the existing offline charging interface Rf of the 3GPP (Third Generation Partnership Project) uses the "DIAMETER_TOO_BUSY" error response code to indicate that the charging interface has reached the overload state. If the charging trigger function (CTF, Charging Trigger Function) does not receive the accounting response message (ACA, Accounting Request Answer), it will usually receive the "Charging Data Function" (CDF). DIAMETER_TOO_BUSY" error response code. At this time, the CTF re-sends a buffered Accounting Request message (ACR, Accounting Request) to the CDF every other operator's configurable waiting time. When the number of repeated transmissions reaches the maximum number of repetitions configured by the operator, However, 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,由于考虑到计费信息不能丢失,这样的重发过程将会一直无限重复下去直到该条链路恢复。Further, if the cached ACR charging request message is not a new charging request message, but a subsequent ACR message of the ACR charging request message that was successfully sent to the broken CDF (for example, ACR [Interim] and/or ACR [ When Stop]), the CTF will send a buffered ACR Accounting Request message to the Broken CDF every other period of time that the operator can configure. This retransmission process is considered because the charging information cannot be lost. It will continue to repeat indefinitely until the link is restored.
由此可见,相关技术是通过每隔预定等待时间后发送已缓存的ACR计费请求消息,来实现Diameter过载控制的,换言之,相关技术针对不同的过载程度都采用同一控制方式,而这种控制方式必然存在控制方式单一的问题。It can be seen that the related technology realizes Diameter overload control by transmitting a buffered ACR charging request message every predetermined waiting time. In other words, the related technology adopts the same control mode for different overload levels, and the control is performed. There must be a problem with a single control method.
针对相关技术中,由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题,目前尚未提出有效的解决方案。 In view of the related art, an effective solution has not been proposed due to the low flexibility of the overload control caused by the relatively simple Diameter overload control mode.
发明内容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.
本发明实施例提供了一种计费请求消息的过载控制方法及装置,以至少解决相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题。The embodiment of the invention provides a method and a device for controlling the overload of the charging request message, so as to at least solve the problem that the flexibility of the overload control caused by the Diameter overload control mode is relatively simple in the related art.
根据本发明实施例的一个方面,提供了一种计费请求消息的过载控制方法,包括:向第一计费数据功能单元发送当前会话中的计费请求消息(ACR);从所述第一计费数据功能单元发送的所述ACR的计费响应消息(ACA)中获取过载指示信息,其中,所述过载指示信息至少携带过载等级及过载控制标识;根据所述过载等级获取需要进行过载控制的目标会话的会话标识;按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向所述第一计费数据功能单元发送所述目标会话中的待发送ACR。According to an aspect of the embodiments of the present invention, a method for controlling an overload of a charging request message includes: transmitting an Accounting Request message (ACR) in a current session to a first charging data function unit; The overload indication information is obtained by the charging response message (ACA) of the ACR sent by the charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier; and the overload control is required according to the overload level acquisition. The session identifier of the target session; performing an overload control operation on the ACR to be sent in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier, wherein the overload control operation is at least And means for not sending the to-be-sent ACR in the target session to the first charging data function unit.
可选地,所述按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,包括以下至少之一:按比例将所述目标会话中的所述待发送ACR缓存到本地存储器中的ACR队列中;将所述目标会话中的所述待发送ACR全部缓存到本地存储器中的ACR队列中;按比例将所述目标会话中的所述待发送ACR发送给第二计费数据功能单元;将所述目标会话中的所述待发送ACR全部发送给第二计费数据功能单元。Optionally, performing an overload control operation on the to-be-sent ACR in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier, including at least one of the following: proportionally The ACR to be sent in the target session is cached in an ACR queue in the local storage; all the ACRs to be sent in the target session are all cached in an ACR queue in the local storage; The ACR to be sent in the session is sent to the second charging data function unit; all the ACRs to be sent in the target session are all sent to the second charging data function unit.
可选地,所述根据所述过载等级获取需要进行过载控制的目标会话的会话标识包括:若所述过载等级为初级过载等级,则获取所述当前会话的第一会话标识作为所述目标会话的会话标识;若所述过载等级为中级过载等级,则获取所述当前会话的第一会话标识及在所述当前会话之前的历史会话的第二会话标识作为所述目标会话的会话标识;若所述过载等级为高级过载等级,则获取所述当前会话的第一会话标识及在所述当前会话之前的历史会话的第 二会话标识作为所述目标会话的会话标识。Optionally, the obtaining the session identifier of the target session that needs to perform the overload control according to the overload level includes: acquiring the first session identifier of the current session as the target session if the overload level is a primary overload level a session identifier; if the overload level is a medium overload level, obtaining a first session identifier of the current session and a second session identifier of a historical session before the current session as a session identifier of the target session; The overload level is an advanced overload level, and the first session identifier of the current session and the history session before the current session are acquired. The second session identifier is used as the session identifier of the target session.
可选地,所述过载等级为初级过载等级,所述按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,包括:按比例将所述当前会话中的待发送ACR缓存到所述本地存储器中的所述ACR队列中;或者,按比例将所述当前会话中的待发送ACR发送给所述第二计费数据功能单元。Optionally, the overload level is a primary overload level, and the overload control mode is performed according to the overload control mode indicated by the overload control identifier, and an overload control operation is performed on the ACR to be sent in the target session indicated by the session identifier, The method includes: proxiwardly buffering an ACR to be sent in the current session to the ACR queue in the local storage; or, proportionally sending an ACR to be sent in the current session to the second charging Data function unit.
可选地,所述过载等级为中级过载等级,所述按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,包括:按比例将所述当前会话及所述历史会话中的待发送ACR缓存到所述本地存储器中的所述ACR队列中;或者,按比例将所述当前会话及所述历史会话中的待发送ACR发送给所述第二计费数据功能单元。Optionally, the overload level is a medium overload level, and the overload control mode is performed according to the overload control mode indicated by the overload control identifier, and an overload control operation is performed on the ACR to be sent in the target session indicated by the session identifier, Include: prorating the current session and the ACR to be sent in the historical session to the ACR queue in the local storage in proportion; or proportionally, the current session and the waiting in the historical session The sending ACR is sent to the second charging data function unit.
可选地,所述过载等级为高级过载等级,所述按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,包括:将所述当前会话及所述历史会话中的待发送ACR全部缓存到所述本地存储器中的所述ACR队列中;或者,将所述当前会话及所述历史会话中的待发送ACR全部发送给所述第二计费数据功能单元。Optionally, the overload level is an advanced overload level, and the overload control mode is performed according to the overload control mode indicated by the overload control identifier, and an overload control operation is performed on the ACR to be sent in the target session indicated by the session identifier, The method includes: all the ACRs to be sent in the current session and the historical session are cached in the ACR queue in the local storage; or the ACR to be sent in the current session and the historical session are all Sended to the second charging data function unit.
可选地,所述过载指示信息中还携带有与所述过载等级对应的网元列表,其中,所述网元列表中包括与对应的所述过载等级相匹配的待过载控制的网元的网元标识。Optionally, the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes a network element to be overload controlled that matches the corresponding overload level. NE identifier.
可选地,在所述从所述第一计费数据功能单元发送的所述ACR的ACA中获取过载指示信息之后,上述方法还包括:判断所述当前会话所在的当前网元的网元标识是否包含在所述过载指示信息所携带的所述网元列表中;若所述当前会话所在的所述当前网元的网元标识包含在所述过载指示信息所携带的所述网元列表中,则对所述当前网元执行过载控制操作。Optionally, after the acquiring the overload indication information in the ACA of the ACR sent by the first charging data function unit, the method further includes: determining a network element identifier of the current network element where the current session is located. Whether it is included in the network element list carried by the overload indication information; if the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information And performing an overload control operation on the current network element.
可选地,在所述向第一计费数据功能单元发送当前会话中的ACR之后,上述方法还包括:接收来自所述第一计费数据功能单元的携带所述过载等级的ACA,其中,所述过载等级是所述第一计费数据功能单元根据当前的负荷 量确定的。Optionally, after the sending the ACR in the current session to the first charging data function unit, the method further includes: receiving an ACA carrying the overload level from the first charging data function unit, where The overload level is the first charging data function unit according to a current load The amount is determined.
可选地,若所述第一计费数据功能单元当前的所述负荷量位于预先配置的第一预定阈值与第二预定阈值之间,则当前的所述过载等级为所述初级过载等级;若所述第一计费数据功能单元当前的所述负荷量位于预先配置的所述第二预定阈值与第三预定阈值之间,则当前的所述过载等级为所述中级过载等级;若所述第一计费数据功能单元当前的所述负荷量大于预先配置的所述第三预定阈值,则当前的所述过载等级为所述高级过载等级;其中,所述第一预定阈值小于所述第二预定阈值,所述第二预定阈值小于所述第三预定阈值。Optionally, if the current load amount of the first charging data function unit is between a preset first predetermined threshold and a second predetermined threshold, the current overload level is the primary overload level; If the current load amount of the first charging data function unit is between the second predetermined threshold and the third predetermined threshold, the current overload level is the intermediate overload level; The current load amount of the first billing data function unit is greater than the pre-configured third predetermined threshold, and the current overload level is the advanced overload level; wherein the first predetermined threshold is less than the a second predetermined threshold, the second predetermined threshold being less than the third predetermined threshold.
根据本发明实施例的另一方面,提供了一种计费请求消息的过载控制装置,包括:发送模块,设置为向第一计费数据功能单元发送当前会话中的计费请求消息(ACR);第一获取模块,设置为从所述第一计费数据功能单元发送的所述ACR的计费响应消息(ACA)中获取过载指示信息,其中,所述过载指示信息至少携带过载等级及过载控制标识;第二获取模块,设置为根据所述过载等级获取需要进行过载控制的目标会话的会话标识;第一处理模块,设置为按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向所述第一计费数据功能单元发送所述目标会话中的待发送ACR。According to another aspect of the present invention, an overload control apparatus for a charging request message is provided, comprising: a sending module, configured to send an Accounting Request message (ACR) in a current session to a first charging data function unit. The first obtaining module is configured to obtain the overload indication information from the charging response message (ACA) of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload And a second acquisition module, configured to acquire, according to the overload level, a session identifier of the target session that needs to be subjected to overload control; the first processing module is configured to follow the overload control mode indicated by the overload control identifier, The ACR to be sent in the target session indicated by the session identifier performs an overload control operation, wherein the overload control operation is at least used to indicate that the target data in the target session is not to be sent to the first charging data function unit. ACR.
可选地,所述第一处理模块包括以下至少之一:第一缓存单元,设置为按比例将所述目标会话中的所述待发送ACR缓存到本地存储器中的ACR队列中;第二缓存单元,设置为将所述目标会话中的所述待发送ACR全部缓存到本地存储器中的ACR队列中;第一发送单元,设置为按比例将所述目标会话中的所述待发送ACR发送给第二计费数据功能单元;第二发送单元,设置为将所述目标会话中的所述待发送ACR全部发送给第二计费数据功能单元。Optionally, the first processing module includes at least one of: a first cache unit configured to cache the ACR to be sent in the target session to an ACR queue in a local storage; the second cache a unit, configured to cache all the ACRs to be sent in the target session to an ACR queue in the local storage; the first sending unit is configured to send the ACR to be sent in the target session proportionally a second charging data function unit; the second sending unit is configured to send all the ACRs to be sent in the target session to the second charging data function unit.
可选地,所述第二获取模块包括:第一获取单元,设置为若所述过载等级为初级过载等级,则获取所述当前会话的第一会话标识作为所述目标会话的会话标识;第二获取单元,设置为若所述过载等级为中级过载等级,则获 取所述当前会话的第一会话标识及在所述当前会话之前的历史会话的第二会话标识作为所述目标会话的会话标识;第三获取单元,设置为若所述过载等级为高级过载等级,则获取所述当前会话的第一会话标识及在所述当前会话之前的历史会话的第二会话标识作为所述目标会话的会话标识。Optionally, the second obtaining module includes: a first acquiring unit, configured to acquire a first session identifier of the current session as a session identifier of the target session, if the overload level is a primary overload level; The second obtaining unit is set to obtain if the overload level is a medium overload level Taking the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session; and the third obtaining unit, if the overload level is the advanced overload level And acquiring a first session identifier of the current session and a second session identifier of the historical session before the current session as a session identifier of the target session.
可选地,所述第一处理模块还包括:第三缓存单元,设置为在所述过载等级为初级过载等级时,按比例将所述当前会话中的待发送ACR缓存到所述本地存储器中的所述ACR队列中;或者,第三发送单元,设置为在所述过载等级为初级过载等级时,按比例将所述当前会话中的待发送ACR发送给所述第二计费数据功能单元。Optionally, the first processing module further includes: a third cache unit, configured to cache the to-be-sent ACR in the current session to the local storage in proportion when the overload level is a primary overload level Or the third sending unit is configured to send the ACR to be sent in the current session to the second charging data function unit proportionally when the overload level is a primary overload level. .
可选地,所述第一处理模块还包括:第四缓存单元,设置为在所述过载等级为中级过载等级时,按比例将所述当前会话及所述历史会话中的待发送ACR缓存到所述本地存储器中的所述ACR队列中;或者,第四发送单元,设置为在所述过载等级为中级过载等级时,按比例将所述当前会话及所述历史会话中的待发送ACR发送给所述第二计费数据功能单元。Optionally, the first processing module further includes: a fourth buffer unit, configured to cache the current session and the ACR to be sent in the historical session to be proportionally when the overload level is a medium overload level In the ACR queue in the local storage; or, the fourth sending unit is configured to send the ACR to be sent in the current session and the historical session proportionally when the overload level is a medium overload level Giving the second billing data functional unit.
可选地,所述第一处理模块还包括:第五缓存单元,设置为在所述过载等级为高级过载等级时,将所述当前会话及所述历史会话中的待发送ACR全部缓存到所述本地存储器中的所述ACR队列中;或者,第五发送单元,设置为在所述过载等级为高级过载等级时,将所述当前会话及所述历史会话中的待发送ACR全部发送给所述第二计费数据功能单元。Optionally, the first processing module further includes: a fifth buffer unit, configured to cache all the ACRs to be sent in the current session and the historical session when the overload level is an advanced overload level In the ACR queue in the local storage; or, the fifth sending unit is configured to send all the ACRs to be sent in the current session and the historical session to the location when the overload level is a high level of overload The second charging data function unit is described.
可选地,所述过载指示信息中还携带有与所述过载等级对应的网元列表,其中,所述网元列表中包括与对应的所述过载等级相匹配的待过载控制的网元的网元标识。Optionally, the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes a network element to be overload controlled that matches the corresponding overload level. NE identifier.
可选地,所述装置还包括:判断模块,设置为在所述第一获取模块从所述第一计费数据功能单元发送的所述ACR的ACA中获取过载指示信息之后,判断所述当前会话所在的当前网元的网元标识是否包含在所述过载指示信息所携带的所述网元列表中;第二处理模块,设置为若所述当前会话所在的所述当前网元的网元标识包含在所述过载指示信息所携带的所述网元列表中,则对所述当前网元执行过载控制操作。Optionally, the device further includes: a determining module, configured to determine, after the first obtaining module obtains the overload indication information from the ACA of the ACR sent by the first charging data function unit, Whether the network element identifier of the current network element where the session is located is included in the network element list carried by the overload indication information; and the second processing module is configured to: if the network element of the current network element where the current session is located The identifier is included in the network element list carried by the overload indication information, and an overload control operation is performed on the current network element.
可选地,所述装置还包括:第三处理模块,设置为在所述发送模块向第 一计费数据功能单元发送当前会话中的ACR之后,接收来自所述第一计费数据功能单元的携带所述过载等级的ACA,其中,所述过载等级是所述第一计费数据功能单元根据当前的负荷量确定的。Optionally, the device further includes: a third processing module, configured to be in the sending module After receiving the ACR in the current session, the charging data function unit receives the ACA carrying the overload level from the first charging data function unit, where the overload level is the first charging data function unit Determined based on the current load.
可选地,若所述第一计费数据功能单元当前的所述负荷量位于预先配置的第一预定阈值与第二预定阈值之间,则当前的所述过载等级为所述初级过载等级;若所述第一计费数据功能单元当前的所述负荷量位于预先配置的所述第二预定阈值与第三预定阈值之间,则当前的所述过载等级为所述中级过载等级;若所述第一计费数据功能单元当前的所述负荷量大于预先配置的所述第三预定阈值,则当前的所述过载等级为所述高级过载等级;其中,所述第一预定阈值小于所述第二预定阈值,所述第二预定阈值小于所述第三预定阈值。Optionally, if the current load amount of the first charging data function unit is between a preset first predetermined threshold and a second predetermined threshold, the current overload level is the primary overload level; If the current load amount of the first charging data function unit is between the second predetermined threshold and the third predetermined threshold, the current overload level is the intermediate overload level; The current load amount of the first billing data function unit is greater than the pre-configured third predetermined threshold, and the current overload level is the advanced overload level; wherein the first predetermined threshold is less than the a second predetermined threshold, the second predetermined threshold being less than the third predetermined threshold.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述计费请求消息的过载控制方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed to implement the overload control method of the charging request message.
通过本发明实施例,采用向第一计费数据功能单元发送当前会话中的ACR;从该第一计费数据功能单元发送的该ACR的ACA中获取过载指示信息,其中,该过载指示信息至少携带过载等级及过载控制标识;根据该过载等级获取需要进行过载控制的目标会话的会话标识;按照该过载控制标识所指示的过载控制方式,对该会话标识所指示的该目标会话中的待发送ACR执行过载控制操作,其中,该过载控制操作至少用于指示不向该第一计费数据功能单元发送该目标会话中的待发送ACR。通过从过载指示信息中获取第一计费数据功能单元不同的过载等级,以判断第一计费数据功能单元当前的过载程度,从而实现针对不同的过载程度,对不同的目标会话中在该ACR之后待向该第一计费数据功能单元发送的待发送ACR执行对应的过载控制操作,以克服相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题,进而达到了能够针对不同的过载等级采取不同的过载控制方式,灵活进行过载控制的效果。此外,通过灵活地过载控制,还将进一步提高过载控制的准确性,以保证过载控制后的第一计费数据功能单元的正常运行。According to the embodiment of the present invention, the ACR in the current session is sent to the first charging data function unit, and the overload indication information is obtained from the ACA of the ACR sent by the first charging data function unit, where the overload indication information is at least Carrying an overload level and an overload control identifier; obtaining, according to the overload level, a session identifier of the target session that needs to be subjected to overload control; according to the overload control mode indicated by the overload control identifier, the target session indicated in the session identifier is to be sent The ACR performs an overload control operation, wherein the overload control operation is at least for indicating that the ACR to be transmitted in the target session is not sent to the first charging data function unit. Obtaining a different overload level of the first charging data function unit from the overload indication information to determine a current overload level of the first charging data function unit, thereby achieving different overload levels for the different target sessions in the ACR Afterwards, the ACR to be sent sent to the first charging data function unit performs a corresponding overload control operation to overcome the problem of low flexibility of the overload control caused by the single Diameter overload control mode in the related art. It is possible to adopt different overload control modes for different overload levels and flexibly carry out the effect of overload control. In addition, through flexible overload control, the accuracy of the overload control will be further improved to ensure the normal operation of the first billing data functional unit after the overload control.
在阅读并理解了附图和详细描述后,可以明白其他方面。 Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1是根据本发明实施例的计费请求消息的过载控制的流程图;1 is a flowchart of overload control of a charging request message according to an embodiment of the present invention;
图2是根据本发明实施的离线计费接口上的Diameter过载控制方法流程图一;2 is a flow chart 1 of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention;
图3是根据本发明实施的离线计费接口上的Diameter过载控制方法流程图二;3 is a second flowchart of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention;
图4是根据本发明实施的离线计费接口上的Diameter过载控制方法流程图三;4 is a third flowchart of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention;
图5是根据本发明实施的离线计费接口上的Diameter过载控制方法流程图四;5 is a flowchart 4 of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention;
图6是根据本发明实施例的计费请求消息的过载控制装置的结构框图;6 is a structural block diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention;
图7是根据本发明实施例的计费请求消息的过载控制装置的结构框图一;7 is a structural block diagram 1 of an overload control apparatus for a charging request message according to an embodiment of the present invention;
图8是根据本发明实施例的计费请求消息的过载控制装置的结构框图二;8 is a structural block diagram 2 of an overload control apparatus for a charging request message according to an embodiment of the present invention;
图9是根据本发明实施例的计费请求消息的过载控制装置的结构框图三;9 is a structural block diagram 3 of an overload control apparatus for a charging request message according to an embodiment of the present invention;
图10是根据本发明实施例的计费请求消息的过载控制装置的结构框图四;10 is a structural block diagram 4 of an overload control apparatus for a charging request message according to an embodiment of the present invention;
图11是根据本发明实施例的计费请求消息的过载控制装置的结构框图五;11 is a structural block diagram 5 of an overload control apparatus for a charging request message according to an embodiment of the present invention;
图12是根据本发明实施例的计费请求消息的过载控制装置的结构框图六;12 is a structural block diagram 6 of an overload control apparatus for a charging request message according to an embodiment of the present invention;
图13是根据本发明实施例的计费请求消息的过载控制装置的结构框图七。 FIG. 13 is a structural block diagram 7 of an overload control apparatus for a charging request message according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present application 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.
实施例一Embodiment 1
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order.
在本实施例中提供了一种计费请求消息的过载控制方法,图1是根据本发明实施例的计费请求消息的过载控制的流程图,如图1所示,该方法包括如下步骤:In this embodiment, an overload control method for a charging request message is provided. FIG. 1 is a flowchart of overload control of a charging request message according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤S102,向第一计费数据功能单元发送当前会话中的计费请求消息(ACR);Step S102, sending a charging request message (ACR) in the current session to the first charging data function unit;
步骤S104,从该第一计费数据功能单元发送的该ACR的计费响应消息(ACA)中获取过载指示信息,其中,该过载指示信息至少携带过载等级及过载控制标识;In step S104, the overload indication information is obtained from the charging response message (ACA) of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier;
步骤S106,根据该过载等级获取需要进行过载控制的目标会话的会话标识;Step S106: Acquire, according to the overload level, a session identifier of a target session that needs to perform overload control;
步骤S108,按照该过载控制标识所指示的过载控制方式,对该会话标识所指示的该目标会话中的待发送ACR执行过载控制操作,其中,该过载控制操作至少用于指示不向该第一计费数据功能单元发送该目标会话中的待发送ACR。Step S108: Perform an overload control operation on the to-be-sent ACR in the target session indicated by the session identifier 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 sends the ACR to be sent in the target session.
可选地,在本实施例中,上述计费请求消息的过载控制方法可以但不限于应用于Diameter过载控制过程中,不同于相关技术中通过每隔预定等待时间后发送已缓存的ACR,来实现Diameter过载控制,而是针对不同的过载等级采取不同的过载控制方式,避免了相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题。Optionally, in this embodiment, the overload control method of the foregoing charging request message may be, but is not limited to, being applied to a Diameter overload control process, which is different from the related art in that the cached ACR is sent after every predetermined waiting time. Diameter overload control is implemented, but different overload control modes are adopted for different overload levels, which avoids the problem of low flexibility of overload control due to the single Diameter overload control mode in the related art.
可选地,在本实施例中,上述ACR中可以但不限于携带有支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信 息。Optionally, in this embodiment, the ACR may include, but is not limited to, an identification letter carrying a Diameter Overload Indication Conveyance (DOIC). interest.
可选地,在本实施例中,上述目标会话可以包括但不限于:当前会话,或当前会话和历史会话。其中,上述历史会话中的起始ACR消息ACR[START]可以但不限于产生在出现过载之前,当前会话中的起始ACR消息ACR[START]可以包括但不限于产生在出现过载之后。也就是说,在CTF中历史会话的起始ACR消息ACR[START]产生于当前会话的起始ACR消息ACR[START]之前。Optionally, in this embodiment, the foregoing target session may include, but is not limited to, a current session, or a current session and a historical session. Wherein, the initial ACR message ACR[START] in the above historical session may be, but is not limited to, generated before the occurrence of an overload, the initial ACR message ACR[START] in the current session may include, but is not limited to, after the occurrence of an overload. That is, the start ACR message ACR[START] of the historical session in the CTF is generated before the start ACR message ACR[START] of the current session.
可选地,在本实施例中,上述过载控制操作可以包括但不限于以下之一:将待发送ACR缓存到本地缓存器中的ACR队列中、将待发送ACR发送给第二计费数据功能单元。其中,上述将待发送ACR缓存到本地缓存器中的ACR队列中可以包括但不限于以下一种方式:按比例将待发送ACR缓存到本地缓存器中的ACR队列中、将待发送ACR全部缓存到本地缓存器中的ACR队列中。此外,上述将待发送ACR发送给第二计费数据功能单元可以包括但不限于以下一种方式:按比例将当前会话中在ACR之后待向第一计费数据功能单元发送的待发送ACR发送给该第二计费数据功能单元、按比例将当前会话及在当前会话之前的历史会话中在该ACR之后待向该第一计费数据功能单元发送的待发送ACR发送给该第二计费数据功能单元、将当前会话及在该当前会话之前的该历史会话中在该ACR之后待向该第一计费数据功能单元发送的待发送ACR全部发送给该第二计费数据功能单元。Optionally, in this embodiment, the overload control operation may include, but is not limited to, one of the following: buffering the ACR to be sent to the ACR queue in the local buffer, and sending the ACR to be sent to the second charging data function. unit. The ACR queue for buffering the ACR to be sent to the local buffer may include, but is not limited to, the following method: the ACR to be sent is cached to the ACR queue in the local buffer, and the ACR to be sent is cached. Go to the ACR queue in the local buffer. In addition, the foregoing sending the to-be-sent ACR to the second charging data function unit may include, but is not limited to, a method of proportionally transmitting the to-be-sent ACR to be sent to the first charging data function unit after the ACR in the current session. Sending, to the second charging data function unit, the current session and the to-be-sent ACR to be sent to the first charging data function unit after the ACR in the historical session before the current session to the second charging The data function unit sends all the to-be-sent ACRs to be sent to the first charging data function unit after the ACR in the current session and in the historical session before the current session to the second charging data function unit.
可选地,在本实施例中,上述过载等级包括但不限于:初级过载等级、中级过载等级、高级过载等级。根据过载等级获取需要进行过载控制的目标会话标识包括但不限于:若过载等级为初级过载等级,则获取当前会话的第一会话标识作为目标会话的会话标识;若过载等级为中级过载等级,则获取当前会话的第一会话标识及在当前会话之前的历史会话的第二会话标识作为目标会话的会话标识;若过载等级为高级过载等级,则获取当前会话的第一会话标识及在当前会话之前的历史会话的第二会话标识作为目标会话的会话标识。即本发明实施例根据过载等级动态选择目标会话标识,避免了相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题。 Optionally, in the embodiment, the overload level includes, but is not limited to, a primary overload level, a medium overload level, and an advanced overload level. The target session identifier that needs to be subjected to the overload control according to the overload level includes, but is not limited to, if the overload level is the primary overload level, the first session identifier of the current session is obtained as the session identifier of the target session; if the overload level is the intermediate overload level, Obtaining the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session; if the overload level is the advanced overload level, acquiring the first session identifier of the current session and before the current session The second session identifier of the historical session is the session identifier of the target session. That is, the embodiment of the present invention dynamically selects the target session identifier according to the overload level, which avoids the problem that the flexibility of the overload control is low due to the single Diameter overload control mode in the related art.
可选地,在本实施例中,按照过载控制标识所指示的过载控制方式,对会话标识所指示的目标会话中在ACR之后待向第一计费数据功能单元发送的待发送ACR执行过载控制操作,包括但不限于:将目标会话中的待发送ACR按比例缓存到本地存储器中的ACR队列中;或者,将目标会话中的待发送ACR全部缓存到本地存储器中的ACR队列中;或者,将目标会话中的待发送ACR按比例发送给第二计费数据功能单元;或者,将目标会话中的待发送ACR全部发送给第二计费数据功能单元。例如,CTF收到的过载控制百分比信息指示的百分比越高,按比例缓存到本地存储器中的ACR队列中会话消息越多,或者按比例发送给第二计费数据功能单元中的会话消息越多,从而达到缓解第一CDF的处理负荷,以实现及时避免第一CDF出现过载的问题。Optionally, in this embodiment, according to the overload control mode indicated by the overload control identifier, performing overload control on the ACR to be sent sent to the first charging data function unit after the ACR in the target session indicated by the session identifier Operation, including but not limited to: prorating the ACR to be sent in the target session to the ACR queue in the local storage; or, all the ACRs to be sent in the target session are cached into the ACR queue in the local storage; or Transmitting the to-be-sent ACR in the target session to the second charging data function unit; or transmitting all the ACRs to be sent in the target session to the second charging data function unit. For example, the higher the percentage indicated by the overload control percentage information received by the CTF, the more session messages are cached in the ACR queue in the local storage, or the more the session messages are sent proportionally to the second charging data function unit. Therefore, the processing load of the first CDF is alleviated, so as to avoid the problem that the first CDF is overloaded in time.
可选地,在本实施例中,过载指示信息中还携带有与过载等级对应的网元列表,其中,该网元列表包括但不限于:与对应的所述过载等级相匹配的待过载控制的网元的网元标识。运营商可以在CDF根据过载等级及计费的优先级考虑配置相匹配的网元列表信息并由CDF在响应消息里带回给CTF,CTF收到来自CDF的用于过载控制的降低百分比、过载等级信息及算法标识后可以决定根据不同的过载等级信息采用相应的过载控制算法。Optionally, in this embodiment, the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes, but is not limited to, an overload control that matches the corresponding overload level. The NE ID of the NE. The operator can configure the matched network element list information according to the overload level and charging priority of the CDF and bring it back to the CTF in the response message by the CDF. The CTF receives the reduced percentage and overload for the overload control from the CDF. After the level information and algorithm identification, it may be decided to adopt a corresponding overload control algorithm according to different overload level information.
可选地,本实施例中,本发明实施例提出当网络部署了第一CDF(Primary CDF)和第二CDF(Secondary CDF)时,CTF可以选择将本该按比例缓存的新的计费请求消息ACR[Start]及后续的ACR[Interim]和ACR[Stop]转发到辅助CDF去,进而避免了主要CDF出现过载的问题。Optionally, in this embodiment, the embodiment of the present invention provides that when the network deploys the first CDF (Primary CDF) and the second CDF (Secondary CDF), the CTF may select a new charging request that is to be cached proportionally. The message ACR[Start] and subsequent ACR[Interim] and ACR[Stop] are forwarded to the auxiliary CDF, thereby avoiding the problem of overload of the main CDF.
通过上述步骤,采用向第一计费数据功能单元发送当前会话中的ACR;从该第一计费数据功能单元发送的ACR的ACA中获取过载指示信息,其中,该过载指示信息至少携带过载等级及过载控制标识;根据该过载等级获取需要进行过载控制的目标会话的会话标识;按照该过载控制标识所指示的过载控制方式,对该会话标识所指示的该目标会话中的待发送ACR执行过载控制操作,其中,该过载控制操作至少用于指示不向该第一计费数据功能单元发送该目标会话中的待发送ACR。即上述步骤,通过获取过载控制标识,然后,通过过载控制标识所指示的过载控制方式,对会话标识所指示的目标会 话中在ACR之后待向该第一计费数据功能单元发送的待发送ACR执行过载控制操作,而并不同于相关技术中通过每隔预定等待时间后发送已缓存的ACR,来实现Diameter过载控制。即通过上述步骤解决了相关技术中,由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题,进而实现了优化过载控制的效果。Through the above steps, the ACR in the current session is sent to the first charging data function unit; the overload indication information is obtained from the ACA of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level. And an overload control identifier; obtaining, according to the overload level, a session identifier of the target session that needs to be overloaded; performing an overload on the ACR to be sent in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier Control operation, wherein the overload control operation is at least for indicating that the ACR to be transmitted in the target session is not sent to the first charging data function unit. That is, in the above step, by acquiring the overload control identifier, and then, by the overload control mode indicated by the overload control flag, the target indicated by the session identifier is The ACR that is to be sent to the first charging data function unit after the ACR performs an overload control operation, and is different from the related art in that the buffered ACR is sent after every predetermined waiting time to implement Diameter overload control. . That is to say, the above-mentioned steps solve the problem that the flexibility of the overload control is low due to the single Diameter overload control mode, and the effect of optimizing the overload control is realized.
在一个可选的实施方式中,步骤S108可以通过以下方式实现:In an optional implementation manner, step S108 can be implemented in the following manner:
步骤S11,按比例将该目标会话中的该待发送ACR缓存到本地存储器中的ACR队列中;或者,Step S11, the ACR in the target session is cached in proportion to the ACR queue in the local storage; or
步骤S12,将目标会话中的待发送ACR全部缓存到本地存储器中的ACR队列中;或者,Step S12: All the ACRs to be sent in the target session are cached into the ACR queue in the local storage; or
步骤S13,按比例将该目标会话中的该待发送ACR发送给第二计费数据功能单元;或者,Step S13, the ACR to be sent in the target session is sent to the second charging data function unit according to a ratio; or
步骤S14,将目标会话中的待发送ACR全部发送给第二计费数据功能单元。Step S14: All the ACRs to be sent in the target session are sent to the second charging data function unit.
通过上述步骤S11至步骤S14中任意一项,将目标会话中的待发送ACR按一定的百分比缓存在本地存储器ACR队列中,可以使得在过载状态消除后,再从本地存储器中ACR队列中依次读取,因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃。而对于上述步骤中的将目标会话中的待发送ACR按比例或者全部发送给第二计费数据功能单元,可以有效地防止第一计费数据单元出现过载。Through any one of the foregoing steps S11 to S14, the ACR to be sent in the target session is cached in the local memory ACR queue by a certain percentage, so that after the overload state is eliminated, the ACR queue in the local memory is sequentially read. Take, because as an important operational data for the operator, the charging message cannot be discarded at will. For transmitting the ACR in the target session proportionally or completely to the second charging data function unit in the foregoing step, the first charging data unit may be effectively prevented from being overloaded.
在一个可选的实施方式中,步骤S106可以通过以下步骤实现:In an optional implementation manner, step S106 can be implemented by the following steps:
步骤S21,若过载等级为初级过载等级,则获取当前会话的第一会话标识作为目标会话的会话标识;Step S21: If the overload level is the primary overload level, obtain the first session identifier of the current session as the session identifier of the target session;
步骤S22,若过载等级为中级过载等级,则获取当前会话的第一会话标识及在该当前会话之前的历史会话的第二会话标识作为目标会话的会话标识;Step S22: If the overload level is the intermediate level, obtain the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session;
步骤S23,若过载等级为高级过载等级,则获取当前会话的第一会话标识及在该当前会话之前的历史会话的第二会话标识作为目标会话的会话标识。Step S23: If the overload level is the advanced overload level, obtain the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session.
需要说明的是,在本实施例中,上述历史会话中的起始ACR消息 ACR[START]可以但不限于产生在出现过载之前,当前会话中的起始ACR消息ACR[START]可以包括但不限于产生在出现过载之后。也就是说,在CTF中历史会话的起始ACR消息ACR[START]产生于当前会话的起始ACR消息ACR[START]之前。It should be noted that, in this embodiment, the initial ACR message in the above historical session ACR[START] may, but is not limited to, be generated prior to the occurrence of an overload, the initial ACR message ACR[START] in the current session may include, but is not limited to, after an overload occurs. That is, the start ACR message ACR[START] of the historical session in the CTF is generated before the start ACR message ACR[START] of the current session.
可选地,在本实施例中,若所述过载等级为初级过载等级,则只有当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],才按比例执行过载控制操作。Optionally, in this embodiment, if the overload level is a primary overload level, only the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start]. The overload control operation is performed proportionally.
可选地,在本实施例中,若所述过载等级为中级过载等级,则在当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop]和历史会话中的后续ACR[interim]和ACR[Stop],按比例执行过载控制操作。Optionally, in this embodiment, if the overload level is a medium overload level, the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start]. And the subsequent ACR [interim] and ACR [Stop] in the history session, the overload control operation is performed proportionally.
可选地,在本实施例中,若所述过载等级为高级过载等级,则在当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop]和历史会话中的后续ACR[interim]和ACR[Stop],全部执行过载控制操作。Optionally, in this embodiment, if the overload level is an advanced overload level, the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start]. And the subsequent ACR [interim] and ACR [Stop] in the history session, all perform the overload control operation.
上述步骤S21至步骤S23可以根据过载等级动态选择目标会话标识,进而实现了有效地过载控制的效果。The above steps S21 to S23 can dynamically select the target session identifier according to the overload level, thereby achieving the effect of effective overload control.
在本实施例的可选实施方式中,在过载等级为初级过载等级时,步骤S108可以通过以下方法实现:In an optional implementation manner of this embodiment, when the overload level is the primary overload level, step S108 can be implemented by the following method:
步骤S31,按比例将该当前会话中的待发送ACR缓存到该本地存储器中的该ACR队列中;或者,Step S31, the ACR to be sent in the current session is cached in proportion to the ACR queue in the local storage; or
步骤S32,按比例将该当前会话中的待发送ACR发送给该第二计费数据功能单元。Step S32, the ACR to be sent in the current session is sent to the second charging data function unit in proportion.
可选地,在本实施例中,若所述过载等级为初级过载等级,则只有待发送的当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],才按比例执行过载控制操作。例如,若当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop]时,则按比例控制当前ACR缓存到该本地存储器中的该ACR队列中,或者,按比例发送给第二计费数据功能单元。Optionally, in this embodiment, if the overload level is a primary overload level, only the current ACR to be sent is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR of the ACR [Start]. [Stop], the overload control operation is performed proportionally. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], the current ACR is proportionally controlled to the ACR queue in the local storage. Or, proportionally sent to the second billing data function unit.
下面结合图2所示实例进行说明,图2是根据本发明实施例的离线计费 接口上的Diameter过载控制方法流程图,其中,主CDF和第一CDF对应,辅CDF和第二CDF对应。主CDF和辅CDF为Diameter服务端,核心网网元为Diameter客户端。当前会话中的ACR为新的ACR,历史会话中的ACR为旧的ACR,如图2所示,本实施例的方法包括以下步骤:The following is described in conjunction with the example shown in FIG. 2. FIG. 2 is an offline charging according to an embodiment of the present invention. A flowchart of a Diameter overload control method on an interface, wherein the primary CDF corresponds to the first CDF, and the secondary CDF corresponds to the second CDF. The primary CDF and the secondary CDF are Diameter servers, and the core network element is a Diameter client. The ACR in the current session is the new ACR, and the ACR in the historical session is the old ACR. As shown in FIG. 2, the method in this embodiment includes the following steps:
步骤S201,在用户设备(UE,User Equipment)的会话进行中,在计费触发点(CTF)正常发送计费请求消息(ACR)到CDF,CDF正常处理并返回计费请求响应消息(ACA),其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。Step S201: During the session of the user equipment (UE, User Equipment), the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns a charging request response message (ACA). The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
步骤S202,主CDF可以判断负荷情况,比如根据中央处理单元(CPU,Central Processing Unit)的占用率及运营商预先配置好的三级过载阈值(例如,三级过载阈值可以为过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值)进行过载判断和响应消息,可以是:如果发现负荷处于初级过载控制区间(如:过载控制开始阈值<CPU占用率<会话拒绝阈值),在响应消息里携带组合型AVP(Attribute-Value-Pair,属性-内容-对组)过载报告:OC-OLR(Overload Control-Overload Report,过载控制的过载报告)并填写OC-Reduction-Percentage(过载控制的降低百分比)的取值及过载控制等级信息(在图2中主要涉及的是初级过载控制),并在OC-OLR中携带用于计费的过载控制算法。这里的过载控制算法标识不同于DOIC默认的过载控制算法(Loss Algorithm),因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃,所以CDF所需要的过载控制算法是适用于计费接口的缓存算法,并将这一标识在响应消息里带回给CTF。In step S202, the primary CDF can determine the load status, for example, according to the occupancy rate of the central processing unit (CPU) and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold may be the overload control start threshold, The session rejection threshold and the total session rejection threshold are used to perform an overload judgment and response message, which may be: if the load is found to be in the primary overload control interval (eg, overload control start threshold <CPU occupancy <session rejection threshold), the combination is carried in the response message. Type AVP (Attribute-Value-Pair) overload report: OC-OLR (Overload Control-Overload Report) and fill in OC-Reduction-Percentage (% reduction of overload control) The value and overload control level information (mainly involved in the primary overload control in Figure 2), and the overload control algorithm for charging is carried in the OC-OLR. The overload control algorithm identifier here is different from the default overload control algorithm (Loss Algorithm) of DOIC, because for the operator as the important operational data, the charging message cannot be discarded at will, so the overload control algorithm required by the CDF is applicable to the meter. The caching algorithm of the fee interface, and bring this identifier back to the CTF in the response message.
步骤S203,主CDF将包含过载报告消息OC-OLR的Diameter计费响应消息发送给CTF。In step S203, the primary CDF sends a Diameter Accounting Response message containing the overload report message OC-OLR to the CTF.
步骤S204,CTF正常路由发送旧的ACR消息(如:ACR[Interim]和ACR[Stop])到CDF,CTF收到含有过载控制的降低百分比信息(如:OC-Reduction-Percentage)、过载控制等级信息及需要的过载控制算法标识的响应消息后,发现需要进行初级过载控制。CTF对所有新的ACR消息(新的ACR[Start]及对应的后续ACR[Interim]和ACR[Stop])执行计费过载控制算法,如:按比例随机缓存新的ACR消息:当存在辅CDF时则CTF将所有 新的ACR消息(ACR[Start]及对应的后续ACR[Interim]和ACR[Stop])转发到辅CDF,当不存在辅CDF时则CTF缓存所有的新的ACR消息。Step S204, the CTF normally routes the old ACR message (such as: ACR [Interim] and ACR [Stop]) to the CDF, and the CTF receives the reduced percentage information (such as: OC-Reduction-Percentage) containing the overload control, and the overload control level. After the information and the response message identified by the required overload control algorithm, it was found that primary overload control was required. The CTF performs a charging overload control algorithm for all new ACR messages (new ACR [Start] and corresponding subsequent ACR [Interim] and ACR [Stop]), such as: Proportional random buffering of new ACR messages: when there is a secondary CDF When the CTF will be all The new ACR message (ACR[Start] and the corresponding subsequent ACR[Interim] and ACR[Stop]) are forwarded to the secondary CDF, and when there is no secondary CDF, the CTF caches all new ACR messages.
步骤S205,CTF将包含DOIC计费标识信息的Diameter计费请求消息ACR发送给第二计费数据功能单元,即图2中的辅CDF。其中,当存在辅CDF时,则CTF将所有新的ACR消息(ACR[Start]及对应的后续ACR[Interim]和ACR[Stop])转发到辅CDF。Step S205, the CTF sends the Diameter Accounting Request message ACR containing the DOIC charging identifier information to the second charging data function unit, that is, the secondary CDF in FIG. Wherein, when there is a secondary CDF, the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF.
步骤S206,CTF接收Diameter计费响应消息,其中,该计费响应消息ACA中包含过载报告信息OC-OLR。Step S206, the CTF receives the Diameter Accounting Response message, where the charging response message ACA includes overload report information OC-OLR.
步骤S207,经过上述步骤的过载控制,如果过载报告AVP:OC-OLR中的OC-Reduction-Percentage回到无需控制的正常范围,说明计费接口Rf的过载状态解除,核心网网元将缓存队列中的ACR消息按序发送出去。Step S207, after the overload control of the above steps, if the OC-Reduction-Percentage in the overload report AVP: OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. The ACR messages in the order are sent out in order.
通过上述步骤,对过载程度较轻,可以执行按比例将当前会话中在ACR之后待向第一计费数据功能单元发送的待发送ACR缓存到本地存储器中的该ACR队列中;或者按比例将当前会话中在ACR之后待向主计费数据功能单元发送的待发送ACR发送给辅计费数据功能单元。从而实现了可以根据过载等级动态选择控制方式,避免了相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题。Through the above steps, the degree of overload is light, and the ACR queue to be sent sent to the first charging data function unit after the ACR in the current session may be cached to the ACR queue in the local storage; or proportionally The ACR to be sent sent to the primary charging data function unit after the ACR in the current session is sent to the secondary charging data function unit. Therefore, the control mode can be dynamically selected according to the overload level, and the problem of low flexibility of the overload control due to the single Diameter overload control mode in the related art is avoided.
在一个可选的实施方式中,在过载等级为中级过载等级时,步骤S108还可以通过以下步骤实现:In an optional implementation manner, when the overload level is the intermediate overload level, step S108 can also be implemented by the following steps:
步骤S41,按比例将该当前会话及该历史会话中的待发送ACR缓存到该本地存储器中的该ACR队列中;或者,Step S41, the current session and the ACR to be sent in the historical session are cached in proportion to the ACR queue in the local storage; or
步骤S42,按比例将该当前会话及该历史会话中的待发送ACR发送给该第二计费数据功能单元。Step S42, the current session and the ACR to be sent in the historical session are sent to the second charging data function unit in proportion.
可选地,在本实施例中,若所述过载等级为中级过载等级,则在待发送的当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],或历史会话中的后续ACR[interim]和ACR[Stop]时,才按比例执行过载控制操作。例如,若当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],或历史会话中的后续 ACR[interim]和ACR[Stop]时,则按比例控制当前ACR缓存到该本地存储器中的该ACR队列中,或者,按比例发送给第二计费数据功能单元。Optionally, in this embodiment, if the overload level is a medium overload level, the current ACR to be sent is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR of the ACR [Start]. [Stop], or subsequent ACR [interim] and ACR[Stop] in a history session, the overload control operation is performed proportionally. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent in the history session When ACR[interim] and ACR[Stop], the current ACR is proportionally controlled to the ACR queue in the local storage, or is proportionally sent to the second charging data function unit.
下面结合图3所示实例进行说明,图3是根据本发明实施例的离线计费接口上的Diameter过载控制方法流程图二,其中,主CDF和第一CDF对应,辅CDF和第二CDF对应。主CDF和辅CDF为Diameter服务端,核心网网元为Diameter客户端。当前会话中的ACR为新的ACR,历史会话中的ACR为旧的ACR,结合图3所示,本实施例的方法包括以下步骤:The following is a description of the example shown in FIG. 3. FIG. 3 is a second flowchart of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention, wherein a primary CDF corresponds to a first CDF, and a secondary CDF corresponds to a second CDF. . The primary CDF and the secondary CDF are Diameter servers, and the core network element is a Diameter client. The ACR in the current session is a new ACR, and the ACR in the historical session is the old ACR. As shown in FIG. 3, the method in this embodiment includes the following steps:
步骤S301,在UE的会话进行中,在计费触发点(CTF)正常发送计费请求消息(ACR)到CDF,CDF正常处理并返回计费响应消息(ACA)。其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。In step S301, during the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA). The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
步骤302,CDF可以判断负荷情况,比如根据CPU的占用率及运营商预先配置好的三级过载阈值(例如三级过载阈值可以为过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值)进行过载判断和响应消息,可以是:如果发现负荷处于中级过载控制区间(如:会话拒绝阈值≤CPU占用率<全部会话拒绝阈值),在响应消息里携带组合型AVP过载报告:OC-OLR并填写OC-Reduction-Percentage的取值及过载控制等级信息(该处是指中级过载控制),并在OC-OLR中携带用于计费的过载控制算法。这里的过载控制算法标识不同于DOIC默认的过载控制算法Loss Algorithm,因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃,所以CDF所需要的过载控制算法是适用于计费接口的缓存算法,并将这一标识在响应消息里带回给CTF。In step 302, the CDF can determine the load condition, for example, according to the CPU occupancy rate and the operator's pre-configured three-level overload threshold (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold). The judgment and response message may be: if the load is found to be in the intermediate overload control interval (eg, session rejection threshold ≤ CPU occupancy < all session rejection threshold), carrying the combined AVP overload report in the response message: OC-OLR and filling in the OC -Reduction-Percentage value and overload control level information (this refers to intermediate overload control), and carry the overload control algorithm for charging in OC-OLR. The overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
步骤S303,CDF将包含过载报告信息OC-OLR的Diameter计费响应消息发送给CTF。Step S303, the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
步骤S304,CTF收到含有过载控制的降低百分比信息(如:OC-Reduction-Percentage)、过载控制等级信息及需要的过载控制算法标识的响应消息后,发现需要进行中级过载控制。CTF执行计费过载控制算法,按比例不发送部分旧的ACR消息(旧的ACR[Interim]和ACR[Stop])到CDF;这里的算法是CTF缓存部分旧的ACR消息(旧的ACR[Interim]和ACR[Stop])。其中,算法可以是比如使用随机算法产生1到100之间的数,当得到的值小 于或等于过载控制的降低百分比(OC-Reduction-Percentage)的分子时就将这条ACR消息缓存起来,当得到值大于OC-Reduction-Percentage的分子时,CTF正常路由发送这条ACR消息到CDF。Step S304, after receiving the reduction percentage information (such as: OC-Reduction-Percentage) of the overload control, the overload control level information, and the response message of the required overload control algorithm identifier, the CTF finds that intermediate overload control is required. The CTF performs a charging overload control algorithm that does not send part of the old ACR messages (old ACR [Interim] and ACR [Stop]) to the CDF; the algorithm here is the CTF cache part of the old ACR message (old ACR [Interim] ] and ACR[Stop]). Wherein, the algorithm may be, for example, using a random algorithm to generate a number between 1 and 100, when the obtained value is small The ACR message is buffered when it is equal to or equal to the OC-Reduction-Percentage numerator. When a numerator with a value greater than OC-Reduction-Percentage is obtained, the CTF normally routes the ACR message to the CDF. .
步骤S305,经过上述过载控制,如果过载报告AVP:OC-OLR中的OC-Reduction-Percentage回到无需控制的正常范围,说明计费接口Rf的过载状态解除,核心网网元将缓存队列中的ACR消息按序发送出去。Step S305, after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
通过上述步骤,实现了可以根据过载等级动态选择控制方式,有效控制过载。Through the above steps, it is realized that the control mode can be dynamically selected according to the overload level, and the overload is effectively controlled.
在本发明实施例的可选实施方式中,在过载等级为高级过载等级时,步骤S108还可以通过以下方法实现:In an optional implementation manner of the embodiment of the present invention, when the overload level is the advanced overload level, step S108 can also be implemented by the following method:
步骤S51,将当前会话及历史会话中的待发送ACR全部缓存到该本地存储器中的该ACR队列中;或者,Step S51: All the ACRs to be sent in the current session and the historical session are cached in the ACR queue in the local storage; or
步骤S52,将当前会话及历史会话中的待发送ACR全部发送给该第二计费数据功能单元。Step S52: All the ACRs to be sent in the current session and the historical session are sent to the second charging data function unit.
可选地,在本实施例中,若所述过载等级为高级过载等级,则在待发送的当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],或历史会话中的后续ACR[interim]和ACR[Stop]时,才按比例执行过载控制操作。例如,若当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],或历史会话中的后续ACR[interim]和ACR[Stop]时,则直接控制当前ACR缓存到该本地存储器中的该ACR队列中,或者,直接发送给第二计费数据功能单元。Optionally, in this embodiment, if the overload level is an advanced overload level, the current ACR to be sent is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR of the ACR [Start]. [Stop], or subsequent ACR [interim] and ACR[Stop] in a history session, the overload control operation is performed proportionally. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent ACR[interim] and ACR[Stop] in the history session, then Directly controlling the current ACR cache to the ACR queue in the local storage, or directly to the second charging data function unit.
下面结合图4所示实例进行说明,图4是根据本发明实施例的离线计费接口上的Diameter过载控制方法流程图三,其中,主CDF和第一CDF对应,辅CDF和第二CDF对应。主CDF和辅CDF为Diameter服务端,核心网网元为Diameter客户端。当前会话中的ACR为新的ACR,历史会话中的ACR为旧的ACR,如图4所示,本实施例提供的方法包括如下步骤:The following is a description of the example shown in FIG. 4. FIG. 4 is a third flowchart of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention, wherein a primary CDF corresponds to a first CDF, and a secondary CDF corresponds to a second CDF. . The primary CDF and the secondary CDF are Diameter servers, and the core network element is a Diameter client. The ACR in the current session is a new ACR, and the ACR in the history session is the old ACR. As shown in FIG. 4, the method provided in this embodiment includes the following steps:
步骤S401,在UE的会话进行中,在计费触发点(CTF)正常发送计费请求消息(ACR)到CDF,CDF正常处理并返回计费响应消息(ACA)。 其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。In step S401, during the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA). The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
步骤S402,CDF可以判断负荷情况,比如根据CPU的占用率及运营商预先配置好的三级过载阈值(例如三级过载阈值可以为过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值)进行过载判断和响应消息,可以是:如果发现负荷处于高级过载控制区间(如:CPU占用率≥全部会话拒绝阈值),在响应消息里携带组合型AVP过载报告:OC-OLR并填写OC-Reduction-Percentage的取值及过载控制等级信息(该处是指高级过载控制),并在OC-OLR中携带用于计费的过载控制算法。这里的过载控制算法标识不同于DOIC默认的过载控制算法Loss Algorithm,因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃,所以CDF所需要的过载控制算法是适用于计费接口的缓存算法,并将这一标识在响应消息里带回给CTF。In step S402, the CDF can determine the load condition, for example, according to the occupancy rate of the CPU and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold). The judgment and response message may be: if the load is found to be in the advanced overload control interval (eg, CPU occupancy ≥ all session rejection threshold), carry the combined AVP overload report in the response message: OC-OLR and fill in OC-Reduction-Percentage The value and overload control level information (this refers to advanced overload control), and carries the overload control algorithm for charging in the OC-OLR. The overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
步骤S403,CDF将包含过载报告信息OC-OLR的Diameter计费响应消息发送给CTF。Step S403, the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
步骤S404,CTF收到含有过载控制的降低百分比信息(如:OC-Reduction-Percentage)、过载控制等级信息及需要的过载控制算法标识的响应消息后,发现需要进行高级过载控制。CTF执行计费过载控制算法,不发送所有ACR消息到CDF,这里的算法是CTF使用随机算法缓存所有ACR消息。Step S404, after receiving the reduction percentage information (such as: OC-Reduction-Percentage) of the overload control, the overload control level information, and the response message of the required overload control algorithm identifier, the CTF finds that advanced overload control is required. The CTF performs a charging overload control algorithm that does not send all ACR messages to the CDF. The algorithm here is that the CTF uses a random algorithm to cache all ACR messages.
步骤S405,经过上述过载控制,如果过载报告AVP:OC-OLR中的OC-Reduction-Percentage回到无需控制的正常范围,说明计费接口Rf的过载状态解除,核心网网元将缓存队列中的ACR消息按序发送出去。Step S405, after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
通过上述步骤,进一步实现了可以根据过载等级动态选择控制方式,有效控制过载。Through the above steps, it is further realized that the control mode can be dynamically selected according to the overload level, and the overload is effectively controlled.
需要说明的是,步骤S108的上述三种可选实施方式是对应区分过载级别的过载控制实施例,但是并不限于此。还可以是综合使用的整体方法。It should be noted that the foregoing three optional implementation manners of step S108 are overload control embodiments corresponding to the overload level, but are not limited thereto. It can also be a holistic approach to integrated use.
在一个可选的实施方式中,过载指示信息中还携带有与过载等级对应的网元列表,其中,该网元列表中包括与对应的该过载等级相匹配的待过载控制的网元的网元标识。 In an optional implementation manner, the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes a network of the network element to be overload controlled that matches the corresponding overload level. Meta logo.
可选地,在步骤S104之后,上述方法还包括以下步骤:Optionally, after step S104, the foregoing method further includes the following steps:
步骤S61,判断当前会话所在的当前网元的网元标识是否包含在过载指示信息所携带的该网元列表中;Step S61, determining whether the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information;
步骤S62,若当前会话所在的该当前网元的网元标识包含在该过载指示信息所携带的该网元列表中,则对该当前网元执行过载控制操作。Step S62: If the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information, perform an overload control operation on the current network element.
通过步骤S61和步骤S62,实现了核心网网元的过载控制。例如,当CTF根据收到的待过载控制的网元列表发现某条ACR请求消息来自待过载控制的网元时,则CTF执行计费过载控制算法,按比例不发送部分ACR消息到CDF。Through step S61 and step S62, overload control of the core network element is implemented. For example, when the CTF finds that an ACR request message is from a network element to be overloaded according to the received network element list to be overloaded, the CTF performs a charging overload control algorithm, and does not send a partial ACR message to the CDF proportionally.
在一个可选的实施方式中,在向第一计费数据功能单元发送当前会话中的计费请求消息ACR之后,上述方法还包括以下步骤:In an optional implementation manner, after the charging request message ACR in the current session is sent to the first charging data function unit, the method further includes the following steps:
步骤S71,第一计费数据功能单元根据当前的负荷量确定当前第一计费数据功能单元的过载等级,将当前的该过载等级携带在该ACR的ACA中。Step S71: The first charging data function unit determines an overload level of the current first charging data function unit according to the current load quantity, and carries the current overload level in the ACA of the ACR.
在一个可选的实施方式中,步骤S71包括:若第一计费数据功能单元当前的负荷量位于预先配置的第一预定阈值与第二预定阈值之间,则当前的过载等级为初级过载等级;若第一计费数据功能单元当前的负荷量位于预先配置的第二预定阈值与第三预定阈值之间,则当前的过载等级为中级过载等级;若第一计费数据功能单元当前的负荷量大于预先配置的第三预定阈值,则当前的该过载等级为该高级过载等级;其中,第一预定阈值小于第二预定阈值,第二预定阈值小于第三预定阈值。In an optional implementation manner, step S71 includes: if the current load amount of the first billing data function unit is between the pre-configured first predetermined threshold and the second predetermined threshold, the current overload level is the primary overload level. If the current load amount of the first charging data function unit is between the pre-configured second predetermined threshold and the third predetermined threshold, the current overload level is a medium overload level; if the current charging data function unit current load The amount is greater than the pre-configured third predetermined threshold, and the current overload level is the advanced overload level; wherein the first predetermined threshold is less than the second predetermined threshold, and the second predetermined threshold is less than the third predetermined threshold.
需要说明的是,图5中涉及到的过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值分别和步骤S71中的第一预定阈值、第二预定阈值及第三预定阈值对应。It should be noted that the overload control start threshold, the session rejection threshold, and the total session rejection threshold in FIG. 5 respectively correspond to the first predetermined threshold, the second predetermined threshold, and the third predetermined threshold in step S71.
下面结合图5所示实例进行说明,图5是根据本发明实施例的离线计费接口上的Diameter过载控制方法流程图四,其中,主CDF和第一CDF对应,辅CDF和第二CDF对应。主CDF和辅CDF为Diameter服务端,核心网网元为Diameter客户端。如图5所示,本实施例的方法包括如下步骤:The following is a description of the example shown in FIG. 5. FIG. 5 is a flowchart 4 of a Diameter overload control method on an offline charging interface according to an embodiment of the present invention, wherein a primary CDF corresponds to a first CDF, and a secondary CDF corresponds to a second CDF. . The primary CDF and the secondary CDF are Diameter servers, and the core network element is a Diameter client. As shown in FIG. 5, the method in this embodiment includes the following steps:
步骤S501,在UE的会话进行中,在计费触发点(CTF)正常发送计费 请求消息(ACR)到CDF,CDF正常处理并返回计费响应消息(ACA)。其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。Step S501: During the session of the UE, the charging triggering point (CTF) is normally sent. The request message (ACR) to the CDF, the CDF processes normally and returns an Accounting Response Message (ACA). The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
步骤S502,CDF可以判断负荷情况,比如根据CPU的占用率及运营商预先配置好的三级过载阈值(例如三级过载阈值可以为过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值)进行过载判断,可以是:当过载控制开始阈值<CPU占用率<会话拒绝阈值时,为初级过载;当会话拒绝阈值≤CPU占用率<全部会话拒绝阈值时,为中级过载;当CPU占用率≥全部会话拒绝阈值时,为高级过载。在响应消息里携带组合型AVP过载报告:OC-OLR并填写OC-Reduction-Percentage的取值及过载控制等级信息(初级过载、中级过载或高级过载),和待过载控制的网元列表(如:分别对应初级过载、中级过载及高级过载匹配三个低、中、高的计费优先级的网元列表)并在OC-OLR中携带用于计费的过载控制算法。这里的过载控制算法标识不同于DOIC默认的过载控制算法Loss Algorithm,因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃,所以CDF所需要的过载控制算法是适用于计费接口的缓存算法,并将这一标识在响应消息里带回给CTF。In step S502, the CDF can determine the load condition, for example, according to the CPU occupancy rate and the operator's pre-configured three-level overload threshold (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold). The judgment may be: when the overload control start threshold <CPU occupancy <session rejection threshold, it is a primary overload; when the session rejection threshold ≤ CPU occupancy < all session rejection threshold, it is an intermediate overload; when the CPU occupancy ≥ all sessions When the threshold is rejected, it is an advanced overload. Carry the combined AVP overload report in the response message: OC-OLR and fill in the value of OC-Reduction-Percentage and the overload control level information (primary overload, intermediate overload or advanced overload), and the list of network elements to be overload controlled (eg : Corresponding to the primary, overload, and advanced overload matching three low, medium, and high charging priority network element lists) and carrying the overload control algorithm for charging in the OC-OLR. The overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
步骤S503,CDF将包含过载报告信息OC-OLR的Diameter计费响应消息发送给CTF。Step S503, the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
步骤S504,当CTF根据收到的待过载控制的网元列表发现某条ACR请求消息来自待过载控制的网元时,则CTF执行计费过载控制算法,按比例不发送部分ACR消息到CDF:比如使用随机算法产生1到100之间的数,当得到值小于或等于OC-Reduction-Percentage的分子时,就将这条ACR消息缓存起来,当得到值大于OC-Reduction-Percentage的分子时,CTF正常路由这条ACR消息到CDF。对于新的ACR消息(新的ACR[Start]及后续的ACR[Interim]和ACR[Stop]),当网络存在辅CDF时,CTF可将待缓存的新的ACR[Start]及对应的后续ACR消息发送到辅CDF去。Step S504: When the CTF finds that an ACR request message is from the network element to be overloaded according to the received network element list to be overloaded, the CTF performs a charging overload control algorithm, and does not send part of the ACR message to the CDF proportionally: For example, using a random algorithm to generate a number between 1 and 100, when a numerator with a value less than or equal to OC-Reduction-Percentage is obtained, the ACR message is cached, and when a numerator with a value greater than OC-Reduction-Percentage is obtained, The CTF normally routes this ACR message to the CDF. For new ACR messages (new ACR[Start] and subsequent ACR[Interim] and ACR[Stop]), when there is a secondary CDF in the network, the CTF can add the new ACR [Start] to be cached and the corresponding subsequent ACR. The message is sent to the secondary CDF.
步骤S505,当存在辅CDF时,则CTF将所有新的ACR消息(ACR[Start]及对应的后续ACR[Interim]和ACR[Stop])转发到辅CDF;Step S505, when there is a secondary CDF, then the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF;
步骤S506,CTF接收来自辅CDF的ACA消息。 Step S506, the CTF receives the ACA message from the secondary CDF.
步骤S507,经过上述过载控制,如果过载报告AVP:OC-OLR中的OC-Reduction-Percentage回到无需控制的正常范围,说明计费接口Rf的过载状态解除,核心网网元将缓存队列中的ACR消息按序发送出去。Step S507, after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
通过上述步骤,实现了可以根据网元计算优先级进行过载控制的技术效果。Through the above steps, the technical effect that the overload control can be performed according to the network element calculation priority is realized.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, or by hardware, but in many cases, the former is more Good implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, may 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, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present application.
实施例二Embodiment 2
在本实施例中提供了一种计费请求消息的过载控制装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an overload control device for the charging request message is provided, and the device is used to implement the foregoing embodiment and the optional implementation manner, 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.
图6是根据本发明实施例的计费请求消息的过载控制装置的结构框图,如图6所示,该装置包括:FIG. 6 is a structural block diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
发送模块62,设置为向第一计费数据功能单元发送当前会话中的计费请求消息(ACR);The sending module 62 is configured to send a charging request message (ACR) in the current session to the first charging data function unit;
第一获取模块64,设置为从该第一计费数据功能单元发送的该ACR的计费响应消息(ACA)中获取过载指示信息,其中,该过载指示信息至少携带过载等级及过载控制标识;The first obtaining module 64 is configured to obtain the overload indication information from the charging response message (ACA) of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier;
第二获取模块66,设置为根据该过载等级获取需要进行过载控制的目标会话的会话标识;The second obtaining module 66 is configured to acquire, according to the overload level, a session identifier of the target session that needs to perform overload control;
第一处理模块68,设置为按照该过载控制标识所指示的过载控制方式, 对该会话标识所指示的该目标会话中的待发送ACR执行过载控制操作,其中,该过载控制操作至少用于指示不向该第一计费数据功能单元发送该目标会话中的待发送ACR。The first processing module 68 is configured to follow the overload control mode indicated by the overload control flag. And performing an overload control operation on the to-be-sent ACR in the target session indicated by the session identifier, where the overload control operation is at least used to indicate that the ACR to be sent in the target session is not sent to the first charging data function unit.
可选地,在本实施例中,上述计费请求消息的过载控制装置可以但不限于应用于Diameter过载控制过程中,不同于相关技术中通过每隔预定等待时间后发送已缓存的ACR,来实现Diameter过载控制,而是针对不同的过载等级采取不同的过载控制方式,避免了相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题。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, which is different from the related art in that the cached ACR is sent after every predetermined waiting time. Diameter overload control is implemented, but different overload control modes are adopted for different overload levels, which avoids the problem of low flexibility of overload control due to the single Diameter overload control mode in the related art.
可选地,在本实施例中,上述ACR中可以但不限于携带有支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。Optionally, in this embodiment, the foregoing ACR may include, but is not limited to, identifier information that supports Diameter Overload Indication Conveyance (DOIC).
可选地,在本实施例中,上述目标会话可以包括但不限于:当前会话,或当前会话和历史会话。其中,上述历史会话中的起始ACR消息ACR[START]可以但不限于产生在出现过载之前,当前会话中的起始ACR消息ACR[START]可以包括但不限于产生在出现过载之后。也就是说,在CTF中历史会话的起始ACR消息ACR[START]产生于当前会话的起始ACR消息ACR[START]之前。Optionally, in this embodiment, the foregoing target session may include, but is not limited to, a current session, or a current session and a historical session. Wherein, the initial ACR message ACR[START] in the above historical session may be, but is not limited to, generated before the occurrence of an overload, the initial ACR message ACR[START] in the current session may include, but is not limited to, after the occurrence of an overload. That is, the start ACR message ACR[START] of the historical session in the CTF is generated before the start ACR message ACR[START] of the current session.
可选地,在本实施例中,上述过载控制操作可以包括但不限于以下之一:将待发送ACR缓存到本地缓存器中的ACR队列中、将待发送ACR发送给第二计费数据功能单元。其中,上述将待发送ACR缓存到本地缓存器中的ACR队列中可以包括但不限于以下一种方式:按比例将待发送ACR缓存到本地缓存器中的ACR队列中、将待发送ACR全部缓存到本地缓存器中的ACR队列中。此外,上述将待发送ACR发送给第二计费数据功能单元可以包括但不限于以下一种方式:按比例将当前会话中在ACR之后待向第一计费数据功能单元发送的待发送ACR发送给该第二计费数据功能单元、按比例将当前会话及在当前会话之前的历史会话中在该ACR之后待向该第一计费数据功能单元发送的待发送ACR发送给该第二计费数据功能单元、将当前会话及在该当前会话之前的该历史会话中在该ACR之后待向该第一计费数据功能单元发送的待发送ACR全部发送给该第二计费数据功能单元。 Optionally, in this embodiment, the overload control operation may include, but is not limited to, one of the following: buffering the ACR to be sent to the ACR queue in the local buffer, and sending the ACR to be sent to the second charging data function. unit. The ACR queue for buffering the ACR to be sent to the local buffer may include, but is not limited to, the following method: the ACR to be sent is cached to the ACR queue in the local buffer, and the ACR to be sent is cached. Go to the ACR queue in the local buffer. In addition, the foregoing sending the to-be-sent ACR to the second charging data function unit may include, but is not limited to, a method of proportionally transmitting the to-be-sent ACR to be sent to the first charging data function unit after the ACR in the current session. Sending, to the second charging data function unit, the current session and the to-be-sent ACR to be sent to the first charging data function unit after the ACR in the historical session before the current session to the second charging The data function unit sends all the to-be-sent ACRs to be sent to the first charging data function unit after the ACR in the current session and in the historical session before the current session to the second charging data function unit.
可选地,在本实施例中,上述过载等级包括但不限于:初级过载等级、中级过载等级、高级过载等级。根据过载等级获取需要进行过载控制的目标会话标识包括但不限于:若过载等级为初级过载等级,则获取当前会话的第一会话标识作为目标会话的会话标识;若过载等级为中级过载等级,则获取当前会话的第一会话标识及在当前会话之前的历史会话的第二会话标识作为目标会话的会话标识;若过载等级为高级过载等级,则获取当前会话的第一会话标识及在当前会话之前的历史会话的第二会话标识作为目标会话的会话标识。即本发明实施例根据过载等级动态选择目标会话标识,避免了相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题。Optionally, in the embodiment, the overload level includes, but is not limited to, a primary overload level, a medium overload level, and an advanced overload level. The target session identifier that needs to be subjected to the overload control according to the overload level includes, but is not limited to, if the overload level is the primary overload level, the first session identifier of the current session is obtained as the session identifier of the target session; if the overload level is the intermediate overload level, Obtaining the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session; if the overload level is the advanced overload level, acquiring the first session identifier of the current session and before the current session The second session identifier of the historical session is the session identifier of the target session. That is, the embodiment of the present invention dynamically selects the target session identifier according to the overload level, which avoids the problem that the flexibility of the overload control is low due to the single Diameter overload control mode in the related art.
可选地,在本实施例中,按照过载控制标识所指示的过载控制方式,对会话标识所指示的目标会话中在ACR之后待向第一计费数据功能单元发送的待发送ACR执行过载控制操作,包括但不限于:将目标会话中的待发送ACR按比例缓存到本地存储器中的ACR队列中;或者,将目标会话中的待发送ACR全部缓存到本地存储器中的ACR队列中;或者,将目标会话中的待发送ACR按比例发送给第二计费数据功能单元;或者,将目标会话中的待发送ACR全部发送给第二计费数据功能单元。例如,CTF收到的过载控制百分比信息指示的百分比越高,按比例缓存到本地存储器中的ACR队列中会话消息越多,或者按比例发送给第二计费数据功能单元中的会话消息越多,从而达到缓解第一CDF的处理负荷,以实现及时避免第一CDF出现过载的问题。Optionally, in this embodiment, according to the overload control mode indicated by the overload control identifier, performing overload control on the ACR to be sent sent to the first charging data function unit after the ACR in the target session indicated by the session identifier Operation, including but not limited to: prorating the ACR to be sent in the target session to the ACR queue in the local storage; or, all the ACRs to be sent in the target session are cached into the ACR queue in the local storage; or Transmitting the to-be-sent ACR in the target session to the second charging data function unit; or transmitting all the ACRs to be sent in the target session to the second charging data function unit. For example, the higher the percentage indicated by the overload control percentage information received by the CTF, the more session messages are cached in the ACR queue in the local storage, or the more the session messages are sent proportionally to the second charging data function unit. Therefore, the processing load of the first CDF is alleviated, so as to avoid the problem that the first CDF is overloaded in time.
可选地,在本实施例中,过载指示信息中还携带有与过载等级对应的网元列表,其中,该网元列表包括但不限于:与对应的所述过载等级相匹配的待过载控制的网元的网元标识。运营商可以在CDF根据过载等级及计费的优先级考虑配置相匹配的网元列表信息并由CDF在响应消息里带回给CTF,CTF收到来自CDF的用于过载控制的降低百分比、过载等级信息及算法标识后可以决定根据不同的过载等级信息采用相应的过载控制算法。Optionally, in this embodiment, the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes, but is not limited to, an overload control that matches the corresponding overload level. The NE ID of the NE. The operator can configure the matched network element list information according to the overload level and charging priority of the CDF and bring it back to the CTF in the response message by the CDF. The CTF receives the reduced percentage and overload for the overload control from the CDF. After the level information and algorithm identification, it may be decided to adopt a corresponding overload control algorithm according to different overload level information.
可选地,本实施例中,本发明实施例提出当网络部署了第一CDF(Primary CDF)和第二CDF(Secondary CDF)时,CTF可以选择将本该按比例缓存 的新的计费请求消息ACR[Start]及后续的ACR[Interim]和ACR[Stop]转发到辅助CDF去,进而避免了主要CDF出现过载的问题。Optionally, in this embodiment, the embodiment of the present invention provides that when the first CDF (Primary CDF) and the second CDF (Secondary CDF) are deployed in the network, the CTF may choose to cache the first proportionally. The new billing request message ACR[Start] and subsequent ACR[Interim] and ACR[Stop] are forwarded to the auxiliary CDF, thereby avoiding the problem of overload of the main CDF.
通过上述装置,采用向第一计费数据功能单元发送当前会话中的ACR;从该第一计费数据功能单元发送的ACR的ACA中获取过载指示信息,其中,该过载指示信息至少携带过载等级及过载控制标识;根据该过载等级获取需要进行过载控制的目标会话的会话标识;按照该过载控制标识所指示的过载控制方式,对该会话标识所指示的该目标会话中的待发送ACR执行过载控制操作,其中,该过载控制操作至少用于指示不向该第一计费数据功能单元发送该目标会话中的待发送ACR。即上述装置,通过获取过载控制标识,然后,通过过载控制标识所指示的过载控制方式,对会话标识所指示的目标会话中在ACR之后待向该第一计费数据功能单元发送的待发送ACR执行过载控制操作,而并不同于相关技术中通过每隔预定等待时间后发送已缓存的ACR,来实现Diameter过载控制。即通过上述步骤解决了相关技术中,由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题,实现了优化过载控制的效果。The device sends the ACR in the current session to the first charging data function unit, and obtains the overload indication information from the ACA of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level. And an overload control identifier; obtaining, according to the overload level, a session identifier of the target session that needs to be overloaded; performing an overload on the ACR to be sent in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier Control operation, wherein the overload control operation is at least for indicating that the ACR to be transmitted in the target session is not sent to the first charging data function unit. That is, the device, by acquiring the overload control identifier, and then transmitting the ACR to be sent to the first charging data function unit after the ACR in the target session indicated by the session identifier by the overload control mode indicated by the overload control identifier The overload control operation is performed, and unlike the related art, the Diameter overload control is implemented by transmitting the buffered ACR after every predetermined waiting time. That is to say, the above-mentioned steps solve the problem that the overload control is less flexible due to the single Diameter overload control mode, and the effect of optimizing the overload control is realized.
图7是根据本发明实施例的计费请求消息的过载控制装置的结构框图一,如图7所示,该装置中的第一处理模块68包括以下至少之一:FIG. 7 is a structural block diagram 1 of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 7, the first processing module 68 in the apparatus includes at least one of the following:
第一缓存单元72,设置为按比例将该目标会话中的该待发送ACR缓存到本地存储器中的ACR队列中;The first buffer unit 72 is configured to cache the to-be-sent ACR in the target session to the ACR queue in the local storage.
第二缓存单元74,设置为将目标会话中的待发送ACR全部缓存到本地存储器中的ACR队列中;The second buffer unit 74 is configured to cache all the ACRs to be sent in the target session into the ACR queue in the local storage;
第一发送单元76,设置为按比例将该目标会话中的该待发送ACR发送给第二计费数据功能单元;The first sending unit 76 is configured to send the to-be-sent ACR in the target session to the second charging data function unit in proportion;
第二发送单元78,设置为将目标会话中的待发送ACR全部发送给第二计费数据功能单元。The second sending unit 78 is configured to send all the ACRs to be sent in the target session to the second charging data function unit.
通过上述装置,将目标会话中的待发送ACR按一定的百分比缓存在本地存储器ACR队列中,可以使得在过载状态消除后,再从本地存储器中ACR队列中依次读取,因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃。而对于上述步骤中的将目标会话中的待发送ACR按比例或者全 部发送给第二计费数据功能单元,可以有效地防止第一计费数据单元出现过载。Through the foregoing device, the ACR to be sent in the target session is cached in the local memory ACR queue by a certain percentage, so that after the overload state is eliminated, the ACR queue in the local storage is sequentially read, because for the operator As important operational data, billing messages cannot be discarded at will. And for the above-mentioned steps, the proportion of the ACR to be sent in the target session is proportional or full. The part is sent to the second charging data function unit, which can effectively prevent the first charging data unit from being overloaded.
图8是根据本发明实施例的计费请求消息的过载控制装置的结构框图二,如图8所示,第二获取模块66包括:FIG. 8 is a structural block diagram 2 of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 8, the second obtaining module 66 includes:
第一获取单元82,设置为若该过载等级为初级过载等级,则获取该当前会话的第一会话标识作为该目标会话的会话标识;The first obtaining unit 82 is configured to acquire the first session identifier of the current session as the session identifier of the target session if the overload level is the primary overload level;
第二获取单元84,设置为若该过载等级为中级过载等级,则获取该当前会话的第一会话标识及在该当前会话之前的历史会话的第二会话标识作为该目标会话的会话标识;The second obtaining unit 84 is configured to acquire, as the intermediate overload level, the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session;
第三获取单元86,设置为若该过载等级为高级过载等级,则获取该当前会话的第一会话标识及在该当前会话之前的历史会话的第二会话标识作为该目标会话的会话标识。The third obtaining unit 86 is configured to acquire, as the advanced overload level, the first session identifier of the current session and the second session identifier of the historical session before the current session as the session identifier of the target session.
需要说明的是,在本实施例中,上述历史会话中的起始ACR消息ACR[START]可以但不限于产生在出现过载之前,当前会话中的起始ACR消息ACR[START]可以包括但不限于产生在出现过载之后。也就是说,在CTF中历史会话的起始ACR消息ACR[START]产生于当前会话的起始ACR消息ACR[START]之前。It should be noted that, in this embodiment, the initial ACR message ACR[START] in the above historical session may be, but is not limited to, generated before the overload occurs, the initial ACR message ACR[START] in the current session may include but not Limited to occur after an overload occurs. That is, the start ACR message ACR[START] of the historical session in the CTF is generated before the start ACR message ACR[START] of the current session.
若所述过载等级为初级过载等级,则只有当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],才按比例执行过载控制操作。If the overload level is the primary overload level, the overload control operation is performed proportionally only if the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start].
若所述过载等级为中级过载等级,则在当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop]和历史会话中的后续ACR[interim]和ACR[Stop],按比例执行过载控制操作。If the overload level is a medium overload level, then the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start] and the subsequent ACR [interim] in the historical session. And ACR[Stop], the overload control operation is performed proportionally.
若所述过载等级为高级过载等级,则在当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop]和历史会话中的后续ACR[interim]和ACR[Stop],全部执行过载控制操作。If the overload level is an advanced overload level, then the current ACR is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start] and the subsequent ACR [interim] in the historical session. And ACR[Stop], all perform overload control operations.
通过该装置可以根据过载等级动态选择目标会话标识,进而实现了有效地过载控制的效果。 Through the device, the target session identifier can be dynamically selected according to the overload level, thereby achieving the effect of effective overload control.
图9是根据本发明实施例的计费请求消息的过载控制装置的结构框图三,如图9所示,第一处理模块68还包括:FIG. 9 is a structural block diagram 3 of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 9, the first processing module 68 further includes:
第三缓存单元92,设置为在过载等级为初级过载等级时,按比例将该当前会话中的待发送ACR缓存到该本地存储器中的该ACR队列中;或者,The third buffer unit 92 is configured to cache the ACR to be sent in the current session to the ACR queue in the local storage in proportion when the overload level is the primary overload level; or
第三发送单元94,设置为在过载等级为初级过载等级时,按比例将该当前会话中的待发送ACR发送给该第二计费数据功能单元。The third sending unit 94 is configured to send the ACR to be sent in the current session to the second charging data function unit proportionally when the overload level is the primary overload level.
若所述过载等级为初级过载等级,则只有待发送的当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],才按比例执行过载控制操作。例如,若当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop]时,则按比例控制当前ACR缓存到该本地存储器中的该ACR队列中,或者,按比例发送给第二计费数据功能单元。If the overload level is the primary overload level, the overload control is performed proportionally only if the current ACR to be transmitted is the ACR [Start] in the current session and the subsequent ACR [interim] and ACR [Stop] of the ACR [Start]. operating. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], the current ACR is proportionally controlled to the ACR queue in the local storage. Or, proportionally sent to the second billing data function unit.
下面结合图2所示实例进行说明,其中,主CDF和第一CDF对应,辅CDF和第二CDF对应。当前会话中的ACR为新的ACR,历史会话中的ACR为旧的ACR,如图2所示,该装置涉及到以下过程:The following is described in conjunction with the example shown in FIG. 2, in which the primary CDF corresponds to the first CDF and the secondary CDF corresponds to the second CDF. The ACR in the current session is the new ACR, and the ACR in the historical session is the old ACR. As shown in Figure 2, the device involves the following process:
步骤S201,在UE的会话进行中,在计费触发点(CTF)正常发送计费请求消息(ACR)到CDF,CDF正常处理并返回计费请求响应消息(ACA),其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。Step S201: During the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns a charging request response message (ACA), where, in the ACR message. Carrying identification information supporting Diameter Overload Indication Conveyance (DOIC).
步骤S202,主CDF可以判断负荷情况,比如根据CPU的占用率及运营商预先配置好的三级过载阈值(例如,三级过载阈值可以为过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值)进行过载判断和响应消息,可以是:如果发现负荷处于初级过载控制区间(如:过载控制开始阈值<CPU占用率<会话拒绝阈值),在响应消息里携带组合型AVP过载报告:OC-OLR并填写OC-Reduction-Percentage的取值及过载控制等级信息(在图2中主要涉及的是初级过载控制),并在OC-OLR中携带用于计费的过载控制算法。这里的过载控制算法标识不同于DOIC默认的过载控制算法Loss Algorithm,因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃,所以CDF所需要的过载控制算法是适用于计费接口的缓存算法,并将这一标识在响应消息 里带回给CTF。In step S202, the primary CDF can determine the load condition, for example, according to the occupancy rate of the CPU and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold may be an overload control start threshold, a session rejection threshold, and a total session rejection threshold). The overload judgment and response message may be: if the load is found to be in the primary overload control interval (eg, overload control start threshold <CPU occupancy <session rejection threshold), the combined AVP overload report is carried in the response message: OC-OLR and Fill in the OC-Reduction-Percentage value and overload control level information (mainly involved in the primary overload control in Figure 2), and carry the overload control algorithm for charging in the OC-OLR. The overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. Caching algorithm and identifying this in response message Brought back to CTF.
步骤S203,主CDF将包含过载报告消息OC-OLR的Diameter计费响应消息发送给CTF。In step S203, the primary CDF sends a Diameter Accounting Response message containing the overload report message OC-OLR to the CTF.
步骤S204,CTF正常路由发送旧的ACR消息(如:ACR[Interim]和ACR[Stop])到CDF,CTF收到含有过载控制的降低百分比信息(如:OC-Reduction-Percentage)、过载控制等级信息及需要的过载控制算法标识的响应消息后,发现需要进行初级过载控制。CTF对所有新的ACR消息(新的ACR[Start]及对应的后续ACR[Interim]和ACR[Stop])执行计费过载控制算法,如:按比例随机缓存新的ACR消息:当存在辅CDF时则CTF将所有新的ACR消息(ACR[Start]及对应的后续ACR[Interim]和ACR[Stop])转发到辅CDF,当不存在辅CDF时则CTF缓存所有的新的ACR消息。Step S204, the CTF normally routes the old ACR message (such as: ACR [Interim] and ACR [Stop]) to the CDF, and the CTF receives the reduced percentage information (such as: OC-Reduction-Percentage) containing the overload control, and the overload control level. After the information and the response message identified by the required overload control algorithm, it was found that primary overload control was required. The CTF performs a charging overload control algorithm for all new ACR messages (new ACR [Start] and corresponding subsequent ACR [Interim] and ACR [Stop]), such as: Proportional random buffering of new ACR messages: when there is a secondary CDF The CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF, and the CTF caches all new ACR messages when there is no secondary CDF.
步骤S205,CTF将包含DOIC计费标识信息的Diameter计费请求消息ACR发送给第二计费数据功能单元,即图2中的辅CDF。其中,当存在辅CDF时则CTF将所有新的ACR消息(ACR[Start]及对应的后续ACR[Interim]和ACR[Stop])转发到辅CDF。Step S205, the CTF sends the Diameter Accounting Request message ACR containing the DOIC charging identifier information to the second charging data function unit, that is, the secondary CDF in FIG. Wherein, when there is a secondary CDF, the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF.
步骤S206,CTF接收Diameter计费响应消息,其中,该计费响应消息ACA中包含过载报告信息OC-OLR。Step S206, the CTF receives the Diameter Accounting Response message, where the charging response message ACA includes overload report information OC-OLR.
步骤S207,经过上述过程的过载控制,如果过载报告AVP:OC-OLR中的OC-Reduction-Percentage回到无需控制的正常范围,说明计费接口Rf的过载状态解除,核心网网元将缓存队列中的ACR消息按序发送出去。Step S207, after the overload control of the above process, if the OC-Reduction-Percentage in the overload report AVP:OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. The ACR messages in the order are sent out in order.
通过上述装置,对过载程度较轻,可以执行按比例将当前会话中在ACR之后待向第一计费数据功能单元发送的待发送ACR缓存到本地存储器中的该ACR队列中;或者按比例将当前会话中在ACR之后待向第一计费数据功能单元发送的待发送ACR发送给辅计费数据功能单元。从而实现了可以根据过载等级动态选择控制方式,避免了相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题。With the above device, the degree of overload is light, and the ACR queue to be sent sent to the first charging data function unit after the ACR in the current session may be cached to the ACR queue in the local storage; or proportionally The ACR to be sent sent to the first charging data function unit after the ACR in the current session is sent to the secondary charging data function unit. Therefore, the control mode can be dynamically selected according to the overload level, and the problem of low flexibility of the overload control due to the single Diameter overload control mode in the related art is avoided.
通过上述步骤,实现了可以根据过载等级动态选择控制方式,避免了相关技术中Diameter过载控制方式单一的问题。 Through the above steps, it is realized that the control mode can be dynamically selected according to the overload level, thereby avoiding the problem that the Diameter overload control mode is single in the related art.
图10是根据本发明实施例的计费请求消息的过载控制装置的结构框图四,如图10所示第一处理模块68还包括:FIG. 10 is a structural block diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 10, the first processing module 68 further includes:
第四缓存单元102,设置为在过载等级为中级过载等级时,按比例将该当前会话及该历史会话中的待发送ACR缓存到该本地存储器中的该ACR队列中;或者,The fourth buffer unit 102 is configured to cache the current session and the ACR to be sent in the historical session to the ACR queue in the local storage in proportion when the overload level is the intermediate overload level; or
第四发送单元104,设置为在过载等级为中级过载等级时,按比例将该当前会话及该历史会话中的待发送ACR发送给该第二计费数据功能单元。The fourth sending unit 104 is configured to, when the overload level is the intermediate overload level, send the current session and the ACR to be sent in the historical session to the second charging data function unit in proportion.
若所述过载等级为中级过载等级,则在待发送的当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],或历史会话中的后续ACR[interim]和ACR[Stop]时,才按比例执行过载控制操作。例如,若当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],或历史会话中的后续ACR[interim]和ACR[Stop]时,则按比例控制当前ACR缓存到该本地存储器中的该ACR队列中,或者,按比例发送给第二计费数据功能单元。If the overload level is a medium overload level, the current ACR to be transmitted is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent in the historical session. The overload control operation is performed proportionally when ACR[interim] and ACR[Stop]. For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent ACR[interim] and ACR[Stop] in the history session, then The current ACR cache is proportionally controlled to the ACR queue in the local storage, or is proportionally sent to the second charging data function unit.
下面结合图3所示实例进行说明,其中,主CDF和第一CDF对应,辅CDF和第二CDF对应。当前会话中的ACR为新的ACR,历史会话中的ACR为旧的ACR,如图3所示,该装置涉及到以下过程:The following is described in conjunction with the example shown in FIG. 3, in which the primary CDF corresponds to the first CDF and the secondary CDF corresponds to the second CDF. The ACR in the current session is the new ACR, and the ACR in the historical session is the old ACR. As shown in Figure 3, the device involves the following process:
步骤S301,在UE的会话进行中,在计费触发点(CTF)正常发送计费请求消息(ACR)到CDF,CDF正常处理并返回计费响应消息(ACA)。其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。In step S301, during the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA). The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
步骤S302,CDF可以判断负荷情况,比如根据CPU的占用率及运营商预先配置好的三级过载阈值(例如三级过载阈值可以为过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值)进行过载判断和响应消息,可以是:如果发现负荷处于中级过载控制区间(如:会话拒绝阈值≤CPU占用率<全部会话拒绝阈值),在响应消息里携带组合型AVP过载报告:OC-OLR并填写OC-Reduction-Percentage的取值及过载控制等级信息(该处是指中级过载控制),并在OC-OLR中携带用于计费的过载控制算法。这里的过载控制算法标识不同于DOIC默认的过载控制算法Loss Algorithm,因为对于运营商来说 作为重要的运营数据,计费消息不能随意丢弃,所以CDF所需要的过载控制算法是适用于计费接口的缓存算法,并将这一标识在响应消息里带回给CTF。In step S302, the CDF can determine the load condition, for example, according to the occupancy rate of the CPU and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold). The judgment and response message may be: if the load is found to be in the intermediate overload control interval (eg, session rejection threshold ≤ CPU occupancy < all session rejection threshold), carrying the combined AVP overload report in the response message: OC-OLR and filling in the OC -Reduction-Percentage value and overload control level information (this refers to intermediate overload control), and carry the overload control algorithm for charging in OC-OLR. The overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm because for the operator As important operational data, the charging message cannot be discarded at will, so the overload control algorithm required by the CDF is a caching algorithm applicable to the charging interface, and this identifier is brought back to the CTF in the response message.
步骤S303,CDF将包含过载报告信息OC-OLR的Diameter计费响应消息发送给CTF。Step S303, the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
步骤S304,CTF收到含有过载控制的降低百分比信息(如:OC-Reduction-Percentage)、过载控制等级信息及需要的过载控制算法标识的响应消息后,发现需要进行中级过载控制。CTF执行计费过载控制算法,按比例不发送部分旧的ACR消息(旧的ACR[Interim]和ACR[Stop])到CDF;这里的算法是CTF缓存部分旧的ACR消息(旧的ACR[Interim]和ACR[Stop])。其中,算法可以是比如使用随机算法产生1到100之间的数,当得到的值小于或等于过载控制的降低百分比(OC-Reduction-Percentage)的分子时就将这条ACR消息缓存起来,当得到值大于OC-Reduction-Percentage的分子时,CTF正常路由发送这条ACR消息到CDF。Step S304, after receiving the reduction percentage information (such as: OC-Reduction-Percentage) of the overload control, the overload control level information, and the response message of the required overload control algorithm identifier, the CTF finds that intermediate overload control is required. The CTF performs a charging overload control algorithm that does not send part of the old ACR messages (old ACR [Interim] and ACR [Stop]) to the CDF; the algorithm here is the CTF cache part of the old ACR message (old ACR [Interim] ] and ACR[Stop]). The algorithm may be, for example, using a random algorithm to generate a number between 1 and 100, and when the obtained value is less than or equal to the OC-Reduction-Percentage numerator, the ACR message is cached. When a numerator with a value greater than OC-Reduction-Percentage is obtained, the CTF normally routes the ACR message to the CDF.
步骤S305,经过上述过载控制,如果过载报告AVP:OC-OLR中的OC-Reduction-Percentage回到无需控制的正常范围,说明计费接口Rf的过载状态解除,核心网网元将缓存队列中的ACR消息按序发送出去。Step S305, after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
通过上述装置,进一步实现了可以根据过载等级动态选择控制方式,有效控制过载。Through the above device, it is further realized that the control mode can be dynamically selected according to the overload level, and the overload is effectively controlled.
图11是根据本发明实施例的计费请求消息的过载控制装置的结构框图五,如图11所示,第一处理模块68还包括:11 is a block diagram 5 of a structure of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 11, the first processing module 68 further includes:
第五缓存单元112,设置为在过载等级为高级过载等级时,将当前会话及历史会话中的待发送ACR全部缓存到该本地存储器中的该ACR队列中;或者,The fifth buffer unit 112 is configured to cache all the ACRs to be sent in the current session and the historical session to the ACR queue in the local storage when the overload level is the advanced overload level; or
第五发送单元114,设置为在过载等级为高级过载等级时,将当前会话及历史会话中的待发送ACR全部发送给该第二计费数据功能单元。The fifth sending unit 114 is configured to send all the ACRs to be sent in the current session and the historical session to the second charging data function unit when the overload level is the advanced overload level.
若所述过载等级为高级过载等级,则在待发送的当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],或历史会话中的后续ACR[interim]和ACR[Stop]时,才按比例执行过载控制操作。例 如,若当前ACR为当前会话中的ACR[Start]及该ACR[Start]的后续ACR[interim]和ACR[Stop],或历史会话中的后续ACR[interim]和ACR[Stop]时,则直接控制当前ACR缓存到该本地存储器中的该ACR队列中,或者,直接发送给第二计费数据功能单元。If the overload level is an advanced overload level, the current ACR to be transmitted is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent in the historical session. The overload control operation is performed proportionally when ACR[interim] and ACR[Stop]. example For example, if the current ACR is ACR[Start] in the current session and subsequent ACR[interim] and ACR[Stop] of the ACR[Start], or subsequent ACR[interim] and ACR[Stop] in the history session, then Directly controlling the current ACR cache to the ACR queue in the local storage, or directly to the second charging data function unit.
下面结合图4所示实例进行说明,其中,主CDF和第一CDF对应,辅CDF和第二CDF对应。当前会话中的ACR为新的ACR,历史会话中的ACR为旧的ACR,如图4所示,该装置涉及到如下过程:The following is described in conjunction with the example shown in FIG. 4, in which the primary CDF corresponds to the first CDF and the secondary CDF corresponds to the second CDF. The ACR in the current session is the new ACR, and the ACR in the historical session is the old ACR. As shown in FIG. 4, the device involves the following process:
步骤S401,在UE的会话进行中,在计费触发点(CTF)正常发送计费请求消息(ACR)到CDF,CDF正常处理并返回计费响应消息(ACA)。其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。In step S401, during the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA). The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
步骤S402,CDF可以判断负荷情况,比如根据CPU的占用率及运营商预先配置好的三级过载阈值(例如三级过载阈值可以为过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值)进行过载判断和响应消息,可以是:如果发现负荷处于高级过载控制区间(如:CPU占用率≥全部会话拒绝阈值),在响应消息里携带组合型AVP过载报告:OC-OLR并填写OC-Reduction-Percentage的取值及过载控制等级信息(该处是指高级过载控制),并在OC-OLR中携带用于计费的过载控制算法。这里的过载控制算法标识不同于DOIC默认的过载控制算法Loss Algorithm,因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃,所以CDF所需要的过载控制算法是适用于计费接口的缓存算法,并将这一标识在响应消息里带回给CTF。In step S402, the CDF can determine the load condition, for example, according to the occupancy rate of the CPU and the pre-configured three-level overload threshold of the operator (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold). The judgment and response message may be: if the load is found to be in the advanced overload control interval (eg, CPU occupancy ≥ all session rejection threshold), carry the combined AVP overload report in the response message: OC-OLR and fill in OC-Reduction-Percentage The value and overload control level information (this refers to advanced overload control), and carries the overload control algorithm for charging in the OC-OLR. The overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
步骤S403,CDF将包含过载报告信息OC-OLR的Diameter计费响应消息发送给CTF。Step S403, the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
步骤S404,CTF收到含有过载控制的降低百分比信息(如:OC-Reduction-Percentage)、过载控制等级信息及需要的过载控制算法标识的响应消息后,发现需要进行高级过载控制。CTF执行计费过载控制算法,不发送所有ACR消息到CDF,这里的算法是CTF使用随机算法缓存所有ACR消息。Step S404, after receiving the reduction percentage information (such as: OC-Reduction-Percentage) of the overload control, the overload control level information, and the response message of the required overload control algorithm identifier, the CTF finds that advanced overload control is required. The CTF performs a charging overload control algorithm that does not send all ACR messages to the CDF. The algorithm here is that the CTF uses a random algorithm to cache all ACR messages.
步骤S405,经过上述过载控制,如果过载报告AVP:OC-OLR中的 OC-Reduction-Percentage回到无需控制的正常范围,说明计费接口Rf的过载状态解除,核心网网元将缓存队列中的ACR消息按序发送出去。Step S405, after the overload control, if the overload report is in the AVP: OC-OLR OC-Reduction-Percentage returns to the normal range without control, indicating that the overload state of the charging interface Rf is released, and the core network element sends the ACR message in the buffer queue in order.
通过上述装置,进一步实现了可以根据过载等级动态选择控制方式,有效控制过载。Through the above device, it is further realized that the control mode can be dynamically selected according to the overload level, and the overload is effectively controlled.
可选地,过载指示信息中还携带有与过载等级对应的网元列表,其中,网元列表中包括与对应的该过载等级相匹配的待过载控制的网元的网元标识。Optionally, the overload indication information further includes a network element list corresponding to the overload level, where the network element list includes a network element identifier of the network element to be overload controlled that matches the corresponding overload level.
图12是根据本发明实施例的计费请求消息的过载控制装置的结构框图六,如图12所示该装置除了包括图6所示模块外还包括:FIG. 12 is a structural block diagram 6 of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 12, the apparatus includes:
判断模块122,设置为在该第一获取模块64从该第一计费数据功能单元发送的该ACR的ACA中获取过载指示信息之后,判断该当前会话所在的当前网元的网元标识是否包含在该过载指示信息所携带的该网元列表中;The determining module 122 is configured to determine whether the network element identifier of the current network element where the current session is located is included after the first obtaining module 64 obtains the overload indication information in the ACA of the ACR sent by the first charging data function unit. In the list of network elements carried by the overload indication information;
第二处理模块124,设置为若该当前会话所在的该当前网元的网元标识包含在该过载指示信息所携带的该网元列表中,则对该当前网元执行过载控制操作。The second processing module 124 is configured to perform an overload control operation on the current network element if the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information.
通过该装置,实现了核心网网元的过载控制。例如,当CTF根据收到的待过载控制的网元列表发现某条ACR请求消息来自待过载控制的网元时,则CTF执行计费过载控制算法,按比例不发送部分ACR消息到CDF。Through the device, overload control of the core network element is realized. For example, when the CTF finds that an ACR request message is from a network element to be overloaded according to the received network element list to be overloaded, the CTF performs a charging overload control algorithm, and does not send a partial ACR message to the CDF proportionally.
图13是根据本发明实施例的计费请求消息的过载控制装置的结构框图七,如图13所示该装置除了包括图6所示装置外还包括:13 is a structural block diagram of an overload control apparatus for a charging request message according to an embodiment of the present invention. As shown in FIG. 13, the apparatus includes:
第三处理模块132,设置为在该发送模块62向第一计费数据功能单元发送当前会话中的ACR之后,接收来自该第一计费数据功能单元的携带所述过载等级的ACA,其中,所述过载等级是所述第一计费数据功能单元根据当前的负荷量确定的。The third processing module 132 is configured to receive, after the sending module 62 sends the ACR in the current session to the first charging data function unit, the ACA carrying the overload level from the first charging data function unit, where The overload level is determined by the first billing data function unit according to a current load amount.
可选地,若该第一计费数据功能单元当前的该负荷量位于预先配置的第一预定阈值与第二预定阈值之间,则当前的该过载等级为该初级过载等级;若该第一计费数据功能单元当前的该负荷量位于预先配置的该第二预定阈值与第三预定阈值之间,则当前的该过载等级为该中级过载等级;若该第一计费数据功能单元当前的该负荷量大于预先配置的该第三预定阈值,则当前的 该过载等级为该高级过载等级;其中,该第一预定阈值小于该第二预定阈值,该第二预定阈值小于该第三预定阈值。Optionally, if the current load amount of the first billing data function unit is between the pre-configured first predetermined threshold and the second predetermined threshold, the current overload level is the primary overload level; The current load amount of the billing data function unit is located between the second predetermined threshold and the third predetermined threshold, and the current overload level is the intermediate overload level; if the first billing data function unit is current The load amount is greater than the pre-configured third predetermined threshold, then the current The overload level is the advanced overload level; wherein the first predetermined threshold is less than the second predetermined threshold, the second predetermined threshold being less than the third predetermined threshold.
下面结合图5所示实例进行说明,需要说明的是,图5中涉及到的过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值分别和步骤S71中的第一预定阈值、第二预定阈值及第三预定阈值对应,主CDF和第一CDF对应,辅CDF和第二CDF对应。如图5所示,该装置涉及到如下过程:The following description is made with reference to the example shown in FIG. 5. It should be noted that the overload control start threshold, the session rejection threshold, and the total session rejection threshold involved in FIG. 5 and the first predetermined threshold and the second predetermined threshold in step S71, respectively. The third predetermined threshold corresponds to that the primary CDF corresponds to the first CDF, and the secondary CDF corresponds to the second CDF. As shown in Figure 5, the device involves the following process:
步骤S501,在UE的会话进行中,在计费触发点(CTF)正常发送计费请求消息(ACR)到CDF,CDF正常处理并返回计费响应消息(ACA)。其中,在ACR消息里携带支持Diameter过载指示传输(DOIC,Diameter Overload Indication Conveyance)的标识信息。Step S501: During the session of the UE, the charging trigger message (ACR) is normally sent to the CDF at the charging trigger point (CTF), and the CDF processes normally and returns an accounting response message (ACA). The identifier information supporting the Diameter Overload Indication Conveyance (DOIC) is carried in the ACR message.
步骤S502,CDF可以判断负荷情况,比如根据CPU的占用率及运营商预先配置好的三级过载阈值(例如三级过载阈值可以为过载控制开始阈值、会话拒绝阈值及全部会话拒绝阈值)进行过载判断,可以是:当过载控制开始阈值<CPU占用率<会话拒绝阈值时,为初级过载;当会话拒绝阈值≤CPU占用率<全部会话拒绝阈值时,为中级过载;当CPU占用率≥全部会话拒绝阈值时,为高级过载。在响应消息里携带组合型AVP过载报告:OC-OLR并填写OC-Reduction-Percentage的取值及过载控制等级信息(初级过载、中级过载或高级过载),和待过载控制的网元列表(如:分别对应初级过载、中级过载及高级过载匹配三个低、中、高的计费优先级的网元列表)并在OC-OLR中携带用于计费的过载控制算法。这里的过载控制算法标识不同于DOIC默认的过载控制算法Loss Algorithm,因为对于运营商来说作为重要的运营数据,计费消息不能随意丢弃,所以CDF所需要的过载控制算法是适用于计费接口的缓存算法,并将这一标识在响应消息里带回给CTF。In step S502, the CDF can determine the load condition, for example, according to the CPU occupancy rate and the operator's pre-configured three-level overload threshold (for example, the three-level overload threshold can be the overload control start threshold, the session rejection threshold, and the total session rejection threshold). The judgment may be: when the overload control start threshold <CPU occupancy <session rejection threshold, it is a primary overload; when the session rejection threshold ≤ CPU occupancy < all session rejection threshold, it is an intermediate overload; when the CPU occupancy ≥ all sessions When the threshold is rejected, it is an advanced overload. Carry the combined AVP overload report in the response message: OC-OLR and fill in the value of OC-Reduction-Percentage and the overload control level information (primary overload, intermediate overload or advanced overload), and the list of network elements to be overload controlled (eg : Corresponding to the primary, overload, and advanced overload matching three low, medium, and high charging priority network element lists) and carrying the overload control algorithm for charging in the OC-OLR. The overload control algorithm identifier here is different from the DOIC default overload control algorithm Loss Algorithm, because the billing message cannot be discarded at will as an important operational data for the operator, so the overload control algorithm required by the CDF is applicable to the billing interface. The caching algorithm and bring this identifier back to the CTF in the response message.
步骤S503,CDF将包含过载报告信息OC-OLR的Diameter计费响应消息发送给CTF。Step S503, the CDF sends a Diameter Accounting Response message containing the overload report information OC-OLR to the CTF.
步骤S504,当CTF根据收到的待过载控制的网元列表发现某条ACR请求消息来自待过载控制的网元时,则CTF执行计费过载控制算法,按比例不发送部分ACR消息到CDF:比如使用随机算法产生1到100之间的数,当得到值小于或等于OC-Reduction-Percentage的分子时,就将这条ACR消息 缓存起来,当得到值大于OC-Reduction-Percentage的分子时,CTF正常路由这条ACR消息到CDF。对于新的ACR消息(新的ACR[Start]及后续的ACR[Interim]和ACR[Stop]),当网络存在辅CDF时,CTF可将待缓存的新的ACR[Start]及对应的后续ACR消息发送到辅CDF去。Step S504: When the CTF finds that an ACR request message is from the network element to be overloaded according to the received network element list to be overloaded, the CTF performs a charging overload control algorithm, and does not send part of the ACR message to the CDF proportionally: For example, using a random algorithm to generate a number between 1 and 100, when a numerator with a value less than or equal to OC-Reduction-Percentage is obtained, the ACR message is sent. Cached up, when a numerator with a value greater than OC-Reduction-Percentage is obtained, the CTF normally routes the ACR message to the CDF. For new ACR messages (new ACR[Start] and subsequent ACR[Interim] and ACR[Stop]), when there is a secondary CDF in the network, the CTF can add the new ACR [Start] to be cached and the corresponding subsequent ACR. The message is sent to the secondary CDF.
步骤S505,当存在辅CDF时,则CTF将所有新的ACR消息(ACR[Start]及对应的后续ACR[Interim]和ACR[Stop])转发到辅CDF;Step S505, when there is a secondary CDF, then the CTF forwards all new ACR messages (ACR[Start] and corresponding subsequent ACR[Interim] and ACR[Stop]) to the secondary CDF;
步骤S506,CTF接收来自辅CDF的ACA消息。Step S506, the CTF receives the ACA message from the secondary CDF.
步骤S507,经过上述过载控制,如果过载报告AVP:OC-OLR中的OC-Reduction-Percentage回到无需控制的正常范围,说明计费接口Rf的过载状态解除,核心网网元将缓存队列中的ACR消息按序发送出去。Step S507, after the overload control, if the overload report AVP: OC-Reduction-Percentage in the OC-OLR returns to the normal range without control, the overload state of the charging interface Rf is released, and the core network element will cache the queue. ACR messages are sent out in order.
通过上述步骤,实现了可以根据网元计算优先级进行过载控制的技术效果。Through the above steps, the technical effect that the overload control can be performed according to the network element calculation priority is realized.
需要说明的是,上述模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are respectively located in multiple processes. In the device.
实施例三Embodiment 3
本发明实施例还提供了一种计算机可读存储介质。该实施例的应用场景及实例可以参考上述实施例一和实施例二,在此不赘述。可选地,在本实施例中,上述计算机可读存储介质可以被设置为存储用于执行以下步骤的程序代码:The embodiment of the invention further provides a computer readable storage medium. For the application scenarios and examples of the embodiment, refer to the foregoing Embodiment 1 and Embodiment 2, and details are not described herein. Optionally, in the embodiment, the computer readable storage medium may be configured to store program code for performing the following steps:
步骤S1,向第一计费数据功能单元发送当前会话中的ACR;Step S1, sending an ACR in the current session to the first charging data function unit;
步骤S2,从该第一计费数据功能单元发送的该ACR的ACA中获取过载指示信息,其中,该过载指示信息至少携带过载等级及过载控制标识;Step S2: Obtaining overload indication information from the ACA of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier;
步骤S3,根据该过载等级获取需要进行过载控制的目标会话的会话标识;Step S3, acquiring, according to the overload level, a session identifier of a target session that needs to be subjected to overload control;
步骤S4,按照该过载控制标识所指示的过载控制方式,对该会话标识所指示的该目标会话中在该ACR之后待向该第一计费数据功能单元发送的待发送ACR执行过载控制操作,其中,该过载控制操作至少用于指示不向该第一计费数据功能单元发送全部的该待发送ACR。 Step S4, performing an overload control operation on the to-be-sent ACR to be sent to the first charging data function unit in the target session indicated by the session identifier according to the overload control mode indicated by the overload control identifier, The overload control operation is at least used to indicate that all of the to-be-sent ACRs are not sent to the first charging data function unit.
可选地,在本实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the computer readable storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), and a mobile device. A variety of media that can store program code, such as hard disks, disks, or optical disks.
可选地,在本实施例中,处理器根据计算机可读存储介质中已存储的程序代码执行上述步骤S1至步骤S4。Optionally, in the embodiment, the processor performs the above steps S1 to S4 according to the program code stored in the computer readable storage medium.
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the 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.
本领域的技术人员应该明白,上述的本申请的模块或步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成单个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Those skilled in the art will appreciate that the above-described modules or steps of the present application can be implemented by a general-purpose computing device, which can be centralized on a single computing device or distributed over a network of multiple computing devices. They may be implemented by program code executable by the computing device such that they may be stored in the storage device for execution by the computing device and, in some cases, may be performed in a different order than that illustrated herein. Or the steps described, either separately as a single integrated circuit module, or 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 are intended to be included within the scope of the present application.
工业实用性Industrial applicability
本申请实施例提供一种计费请求消息的过载控制方法及装置,克服了相关技术中由于Diameter过载控制方式较为单一所导致的过载控制的灵活性较低的问题,进而达到了能够针对不同的过载等级采取不同的过载控制方式,灵活进行过载控制的效果。 The embodiment of the present invention provides an overload control method and device for a charging request message, which overcomes the problem of low flexibility of overload control caused by a single Diameter overload control mode in the related art, thereby achieving different The overload level adopts different overload control modes to flexibly perform the effect of overload control.

Claims (20)

  1. 一种计费请求消息的过载控制方法,包括:An overload control method for a charging request message includes:
    向第一计费数据功能单元发送当前会话中的计费请求消息ACR;Sending a charging request message ACR in the current session to the first charging data function unit;
    从所述第一计费数据功能单元发送的所述ACR的计费响应消息ACA中获取过载指示信息,其中,所述过载指示信息至少携带过载等级及过载控制标识;Obtaining the overload indication information from the charging response message ACA of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier;
    根据所述过载等级获取需要进行过载控制的目标会话的会话标识;Obtaining, according to the overload level, a session identifier of a target session that needs to perform overload control;
    按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向所述第一计费数据功能单元发送所述目标会话中的待发送ACR。Performing an overload control operation on the ACR to be sent in the target session indicated by the session identifier 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 The first charging data function unit transmits the ACR to be transmitted in the target session.
  2. 根据权利要求1所述的方法,其中,所述按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,包括以下至少之一:The method according to claim 1, wherein said performing an overload control operation on an ACR to be transmitted in said target session indicated by said session identifier according to an overload control mode indicated by said overload control flag, including the following At least one:
    按比例将所述目标会话中的所述待发送ACR缓存到本地存储器中的ACR队列中;Proportionally buffering the to-be-sent ACR in the target session to an ACR queue in local storage;
    将所述目标会话中的所述待发送ACR全部缓存到本地存储器中的ACR队列中;Allocating the to-be-sent ACRs in the target session to an ACR queue in the local storage;
    按比例将所述目标会话中的所述待发送ACR发送给第二计费数据功能单元;Transmitting the to-be-sent ACR in the target session to the second charging data function unit;
    将所述目标会话中的所述待发送ACR全部发送给第二计费数据功能单元。All the to-be-sent ACRs in the target session are sent to the second charging data function unit.
  3. 根据权利要求2所述的方法,其中,所述根据所述过载等级获取需要进行过载控制的目标会话的会话标识包括:The method according to claim 2, wherein the obtaining the session identifier of the target session requiring overload control according to the overload level comprises:
    若所述过载等级为初级过载等级,则获取所述当前会话的第一会话标识作为所述目标会话的会话标识;If the overload level is a primary overload level, obtaining a first session identifier of the current session as a session identifier of the target session;
    若所述过载等级为中级过载等级,则获取所述当前会话的第一会话标识 及在所述当前会话之前的历史会话的第二会话标识作为所述目标会话的会话标识;Obtaining a first session identifier of the current session if the overload level is a medium overload level And a second session identifier of the historical session before the current session as a session identifier of the target session;
    若所述过载等级为高级过载等级,则获取所述当前会话的第一会话标识及在所述当前会话之前的历史会话的第二会话标识作为所述目标会话的会话标识。If the overload level is an advanced overload level, obtain a first session identifier of the current session and a second session identifier of the historical session before the current session as a session identifier of the target session.
  4. 根据权利要求3所述的方法,其中,所述过载等级为初级过载等级,所述按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,包括:The method according to claim 3, wherein the overload level is a primary overload level, and the overload control mode indicated by the overload control flag is for the target session indicated by the session identifier. Send ACR to perform overload control operations, including:
    按比例将所述当前会话中的待发送ACR缓存到所述本地存储器中的所述ACR队列中;或者,Proportionally buffering the ACR to be sent in the current session to the ACR queue in the local storage; or
    按比例将所述当前会话中的待发送ACR发送给所述第二计费数据功能单元。The ACR to be sent in the current session is sent to the second charging data function unit in proportion.
  5. 根据权利要求3所述的方法,其中,所述过载等级为中级过载等级,所述按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,包括:The method according to claim 3, wherein the overload level is a medium overload level, and the overload control mode indicated by the overload control flag is for the target session indicated by the session identifier. Send ACR to perform overload control operations, including:
    按比例将所述当前会话及所述历史会话中的待发送ACR缓存到所述本地存储器中的所述ACR队列中;或者,Proportionally buffering the current session and the ACR to be sent in the historical session to the ACR queue in the local storage; or
    按比例将所述当前会话及所述历史会话中的待发送ACR发送给所述第二计费数据功能单元。The current session and the ACR to be sent in the historical session are sent to the second charging data function unit in proportion.
  6. 根据权利要求3所述的方法,其中,所述过载等级为高级过载等级,所述按照所述过载控制标识所指示的过载控制方式,对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,包括:The method according to claim 3, wherein the overload level is an advanced overload level, and the overload control mode indicated by the overload control flag is for the target session indicated by the session identifier. Send ACR to perform overload control operations, including:
    将所述当前会话及所述历史会话中的待发送ACR全部缓存到所述本地存储器中的所述ACR队列中;或者,Allocating all the ACRs to be sent in the current session and the historical session to the ACR queue in the local storage; or
    将所述当前会话及所述历史会话中的待发送ACR全部发送给所述第二计费数据功能单元。Sending all the to-be-sent ACRs in the current session and the historical session to the second charging data function unit.
  7. 根据权利要求3所述的方法,其中,所述过载指示信息中还携带有与所述过载等级对应的网元列表,其中,所述网元列表中包括与对应的所述 过载等级相匹配的待过载控制的网元的网元标识。The method according to claim 3, wherein the overload indication information further carries a network element list corresponding to the overload level, wherein the network element list includes the corresponding The network element identifier of the network element to be overload controlled that matches the overload level.
  8. 根据权利要求7所述的方法,在所述从所述第一计费数据功能单元发送的所述ACR的ACA中获取过载指示信息之后,所述方法还包括:The method of claim 7, after the obtaining the overload indication information in the ACA of the ACR sent by the first charging data function unit, the method further includes:
    判断所述当前会话所在的当前网元的网元标识是否包含在所述过载指示信息所携带的所述网元列表中;Determining whether the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information;
    若所述当前会话所在的所述当前网元的网元标识包含在所述过载指示信息所携带的所述网元列表中,则对所述当前网元执行过载控制操作。And if the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information, performing an overload control operation on the current network element.
  9. 根据权利要求3所述的方法,在所述向第一计费数据功能单元发送当前会话中的ACR之后,所述方法还包括:The method of claim 3, after the sending the ACR in the current session to the first charging data function unit, the method further comprises:
    接收来自所述第一计费数据功能单元的携带所述过载等级的ACA,其中,所述过载等级是所述第一计费数据功能单元根据当前的负荷量的。Receiving an ACA carrying the overload level from the first charging data function unit, wherein the overload level is the first charging data function unit according to a current load amount.
  10. 根据权利要求9所述的方法,其中,若所述第一计费数据功能单元当前的所述负荷量位于预先配置的第一预定阈值与第二预定阈值之间,则当前的所述过载等级为所述初级过载等级;若所述第一计费数据功能单元当前的所述负荷量位于预先配置的所述第二预定阈值与第三预定阈值之间,则当前的所述过载等级为所述中级过载等级;若所述第一计费数据功能单元当前的所述负荷量大于预先配置的所述第三预定阈值,则当前的所述过载等级为所述高级过载等级;其中,所述第一预定阈值小于所述第二预定阈值,所述第二预定阈值小于所述第三预定阈值。The method according to claim 9, wherein if the current load amount of the first billing data function unit is between a pre-configured first predetermined threshold and a second predetermined threshold, the current overload level The primary overload level; if the current load amount of the first charging data function unit is between the second predetermined threshold and the third predetermined threshold, the current overload level is The intermediate overload level; if the current load amount of the first billing data function unit is greater than the pre-configured third predetermined threshold, the current overload level is the advanced overload level; The first predetermined threshold is less than the second predetermined threshold, and the second predetermined threshold is less than the third predetermined threshold.
  11. 一种计费请求消息的过载控制装置,包括:An overload control device for a charging request message includes:
    发送模块,设置为向第一计费数据功能单元发送当前会话中的计费请求消息ACR;a sending module, configured to send a charging request message ACR in the current session to the first charging data function unit;
    第一获取模块,设置为从所述第一计费数据功能单元发送的所述ACR的计费响应消息ACA中获取过载指示信息,其中,所述过载指示信息至少携带过载等级及过载控制标识;The first obtaining module is configured to obtain the overload indication information from the charging response message ACA of the ACR sent by the first charging data function unit, where the overload indication information carries at least an overload level and an overload control identifier;
    第二获取模块,设置为根据所述过载等级获取需要进行过载控制的目标会话的会话标识;a second obtaining module, configured to acquire, according to the overload level, a session identifier of a target session that needs to perform overload control;
    第一处理模块,设置为按照所述过载控制标识所指示的过载控制方式, 对所述会话标识所指示的所述目标会话中的待发送ACR执行过载控制操作,其中,所述过载控制操作至少用于指示不向所述第一计费数据功能单元发送所述目标会话中的待发送ACR。a first processing module configured to follow an overload control mode indicated by the overload control flag, Performing an overload control operation on the to-be-sent ACR in the target session indicated by the session identifier, wherein the overload control operation is at least used to indicate that the target session is not sent to the first charging data function unit ACR to be sent.
  12. 根据权利要求11所述的装置,其中,所述第一处理模块包括以下至少之一:The apparatus of claim 11 wherein said first processing module comprises at least one of:
    第一缓存单元,设置为按比例将所述目标会话中的所述待发送ACR缓存到本地存储器中的ACR队列中;a first cache unit, configured to scale the ACR to be sent in the target session to an ACR queue in a local storage;
    第二缓存单元,设置为将所述目标会话中的所述待发送ACR全部缓存到本地存储器中的ACR队列中;a second buffer unit, configured to cache all the ACRs to be sent in the target session into an ACR queue in the local storage;
    第一发送单元,设置为按比例将所述目标会话中的所述待发送ACR发送给第二计费数据功能单元;a first sending unit, configured to send the to-be-sent ACR in the target session to the second charging data function unit proportionally;
    第二发送单元,设置为将所述目标会话中的所述待发送ACR全部发送给第二计费数据功能单元。The second sending unit is configured to send all the to-be-sent ACRs in the target session to the second charging data function unit.
  13. 根据权利要求12所述的装置,其中,所述第二获取模块包括:The apparatus of claim 12, wherein the second acquisition module comprises:
    第一获取单元,设置为若所述过载等级为初级过载等级,则获取所述当前会话的第一会话标识作为所述目标会话的会话标识;a first obtaining unit, configured to acquire a first session identifier of the current session as a session identifier of the target session, if the overload level is a primary overload level;
    第二获取单元,设置为若所述过载等级为中级过载等级,则获取所述当前会话的第一会话标识及在所述当前会话之前的历史会话的第二会话标识作为所述目标会话的会话标识;a second obtaining unit, configured to acquire a first session identifier of the current session and a second session identifier of the historical session before the current session as the session of the target session, if the overload level is a medium overload level Identification
    第三获取单元,设置为若所述过载等级为高级过载等级,则获取所述当前会话的第一会话标识及在所述当前会话之前的历史会话的第二会话标识作为所述目标会话的会话标识。a third obtaining unit, configured to acquire a first session identifier of the current session and a second session identifier of the historical session before the current session as the session of the target session, if the overload level is an advanced overload level Logo.
  14. 根据权利要求13所述的装置,其中,所述第一处理模块还包括:The apparatus of claim 13, wherein the first processing module further comprises:
    第三缓存单元,设置为在所述过载等级为初级过载等级时,按比例将所述当前会话中的待发送ACR缓存到所述本地存储器中的所述ACR队列中;或者,a third buffer unit, configured to cache the ACR to be sent in the current session to the ACR queue in the local storage proportionally when the overload level is a primary overload level; or
    第三发送单元,设置为在所述过载等级为初级过载等级时,按比例将所述当前会话中的待发送ACR发送给所述第二计费数据功能单元。 And a third sending unit, configured to send the ACR to be sent in the current session to the second charging data function unit proportionally when the overload level is a primary overload level.
  15. 根据权利要求13所述的装置,其中,所述第一处理模块还包括:The apparatus of claim 13, wherein the first processing module further comprises:
    第四缓存单元,设置为在所述过载等级为中级过载等级时,按比例将所述当前会话及所述历史会话中的待发送ACR缓存到所述本地存储器中的所述ACR队列中;或者,a fourth buffer unit, configured to cache, in the current session and the historical session, the ACR to be sent to the ACR queue in the local storage when the overload level is a medium overload level; or ,
    第四发送单元,设置为在所述过载等级为中级过载等级时,按比例将所述当前会话及所述历史会话中的待发送ACR发送给所述第二计费数据功能单元。The fourth sending unit is configured to send the current session and the ACR to be sent in the historical session to the second charging data function unit according to a ratio when the overload level is a medium overload level.
  16. 根据权利要求13所述的装置,其中,所述第一处理模块还包括:The apparatus of claim 13, wherein the first processing module further comprises:
    第五缓存单元,设置为在所述过载等级为高级过载等级时,将所述当前会话及所述历史会话中的待发送ACR全部缓存到所述本地存储器中的所述ACR队列中;或者,a fifth buffer unit, configured to cache all the ACRs to be sent in the current session and the historical session to the ACR queue in the local storage when the overload level is an advanced overload level; or
    第五发送单元,设置为在所述过载等级为高级过载等级时,将所述当前会话及所述历史会话中的待发送ACR全部发送给所述第二计费数据功能单元。The fifth sending unit is configured to send all the to-be-sent ACRs in the current session and the historical session to the second charging data function unit when the overload level is the advanced overload level.
  17. 根据权利要求13所述的装置,其中,所述过载指示信息中还携带有与所述过载等级对应的网元列表,其中,所述网元列表中包括与对应的所述过载等级相匹配的待过载控制的网元的网元标识。The device according to claim 13, wherein the overload indication information further carries a network element list corresponding to the overload level, wherein the network element list includes a matching with the corresponding overload level. The NE ID of the NE to be overloaded.
  18. 根据权利要求17所述的装置,所述装置还包括:The apparatus of claim 17 further comprising:
    判断模块,设置为在所述第一获取模块从所述第一计费数据功能单元发送的所述ACR的ACA中获取过载指示信息之后,判断所述当前会话所在的当前网元的网元标识是否包含在所述过载指示信息所携带的所述网元列表中;a determining module, configured to determine, after the first obtaining module obtains the overload indication information in the ACA of the ACR sent by the first charging data function unit, the network element identifier of the current network element where the current session is located Whether it is included in the list of network elements carried in the overload indication information;
    第二处理模块,设置为若所述当前会话所在的所述当前网元的网元标识包含在所述过载指示信息所携带的所述网元列表中,则对所述当前网元执行过载控制操作。a second processing module, configured to perform overload control on the current network element if the network element identifier of the current network element where the current session is located is included in the network element list carried by the overload indication information operating.
  19. 根据权利要求13所述的装置,所述装置还包括:The apparatus of claim 13 further comprising:
    第三处理模块,设置为在所述发送模块向第一计费数据功能单元发送当前会话中的ACR之后,接收来自所述第一计费数据功能单元的携带所述过载等级的ACA,其中,所述过载等级是所述第一计费数据功能单元根据当前 的负荷量确定的。a third processing module, configured to receive, after the sending module sends the ACR in the current session to the first charging data function unit, the ACA carrying the overload level from the first charging data function unit, where The overload level is the first charging data function unit according to the current The amount of load is determined.
  20. 根据权利要求19所述的装置,其中,若所述第一计费数据功能单元当前的所述负荷量位于预先配置的第一预定阈值与第二预定阈值之间,则当前的所述过载等级为所述初级过载等级;若所述第一计费数据功能单元当前的所述负荷量位于预先配置的所述第二预定阈值与第三预定阈值之间,则当前的所述过载等级为所述中级过载等级;若所述第一计费数据功能单元当前的所述负荷量大于预先配置的所述第三预定阈值,则当前的所述过载等级为所述高级过载等级;其中,所述第一预定阈值小于所述第二预定阈值,所述第二预定阈值小于所述第三预定阈值。 The apparatus according to claim 19, wherein if said current load amount of said first billable data function unit is between a pre-configured first predetermined threshold and a second predetermined threshold, said current overload level The primary overload level; if the current load amount of the first charging data function unit is between the second predetermined threshold and the third predetermined threshold, the current overload level is The intermediate overload level; if the current load amount of the first billing data function unit is greater than the pre-configured third predetermined threshold, the current overload level is the advanced overload level; The first predetermined threshold is less than the second predetermined threshold, and the second predetermined threshold is less than the third predetermined threshold.
PCT/CN2016/098324 2015-09-23 2016-09-07 Overload control method and apparatus for accounting request WO2017050128A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

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

Family

ID=58365153

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN106549771A (en)
WO (1) WO2017050128A1 (en)

Citations (6)

* 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
CN101150512A (en) * 2007-10-23 2008-03-26 中兴通讯股份有限公司 Method for load balance of communication link
CN102090042A (en) * 2008-05-01 2011-06-08 阿尔卡特朗讯美国公司 Message restriction for Diameter servers
CN102918813A (en) * 2010-06-08 2013-02-06 阿尔卡特朗讯公司 Device and method for data load balancing
CN104335539A (en) * 2012-04-13 2015-02-04 泰科来股份有限公司 Methods, systems, and computer readable media for performing diameter overload control
US9106769B2 (en) * 2011-08-10 2015-08-11 Tekelec, Inc. Methods, systems, and computer readable media for congestion management in a diameter signaling network

Patent Citations (6)

* 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
CN101150512A (en) * 2007-10-23 2008-03-26 中兴通讯股份有限公司 Method for load balance of communication link
CN102090042A (en) * 2008-05-01 2011-06-08 阿尔卡特朗讯美国公司 Message restriction for Diameter servers
CN102918813A (en) * 2010-06-08 2013-02-06 阿尔卡特朗讯公司 Device and method for data load balancing
US9106769B2 (en) * 2011-08-10 2015-08-11 Tekelec, Inc. Methods, systems, and computer readable media for congestion management in a diameter signaling network
CN104335539A (en) * 2012-04-13 2015-02-04 泰科来股份有限公司 Methods, systems, and computer readable media for performing diameter overload control

Also Published As

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

Similar Documents

Publication Publication Date Title
US10305975B2 (en) Wireless network cloud computing resource management
US10313256B2 (en) Apparatus and methods for adaptive data compression
US9525727B2 (en) Efficient and scalable pull-based load distribution
CN110247736B (en) Data transmission method and device
US11888745B2 (en) Load balancer metadata forwarding on secure connections
CN115174432B (en) RDMA network state monitoring method, device, equipment and readable storage medium
US9848067B2 (en) Managing sequence values with added headers in computing devices
JP2011527054A5 (en)
CN111355667A (en) Data transmission method, device, system and computer readable storage medium
US10194378B2 (en) Access port queuing and resource management
US20160165068A1 (en) Overload Processing For An Offline Charging System
US9712467B2 (en) Iterative method to successfully send large electronic messages
WO2017050128A1 (en) Overload control method and apparatus for accounting request
CN107005433B (en) Flow table entry timing processing method and device
WO2017050121A1 (en) Overload control method and apparatus for accounting request
CN111628902B (en) Rate testing method and apparatus, electronic device, and computer-readable storage medium
US20200213237A1 (en) Method and system for managing the download of data
CN110708373A (en) Method, device and equipment for processing access request and storage medium
CN107592361B (en) Data transmission method, device and equipment based on dual IB network
CN115983918A (en) Advertisement pushing method, medium, device and computing equipment
CN111372277A (en) Data distribution method, device and storage medium
CN106330752B (en) Method and equipment for determining receiving window in TCP flow control
CN114158104A (en) Network selection method, device, terminal and storage medium
US8699347B2 (en) Communication apparatus, communication system, communication method, and a computer-readable medium
CN113938852A (en) Data traffic monitoring method, SMF network element, PSA network element and readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1