CN114501358A - Device, system and method for realizing communication charging in communication network - Google Patents

Device, system and method for realizing communication charging in communication network Download PDF

Info

Publication number
CN114501358A
CN114501358A CN202210093504.7A CN202210093504A CN114501358A CN 114501358 A CN114501358 A CN 114501358A CN 202210093504 A CN202210093504 A CN 202210093504A CN 114501358 A CN114501358 A CN 114501358A
Authority
CN
China
Prior art keywords
ocs
diameter protocol
request message
charging
scp
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202210093504.7A
Other languages
Chinese (zh)
Other versions
CN114501358B (en
Inventor
卢亚洲
丁正
顾晓东
祝敬安
韦红
刘志永
刘君晓
汪勇
高树江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xinfang Software Co ltd
Shanghai Cintel Intelligent System Co ltd
Original Assignee
Shanghai Xinfang Software Co ltd
Shanghai Cintel Intelligent System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xinfang Software Co ltd, Shanghai Cintel Intelligent System Co ltd filed Critical Shanghai Xinfang Software Co ltd
Priority to CN202210093504.7A priority Critical patent/CN114501358B/en
Publication of CN114501358A publication Critical patent/CN114501358A/en
Application granted granted Critical
Publication of CN114501358B publication Critical patent/CN114501358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Meter Arrangements (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a device, a system and a method for realizing communication charging in a communication network.A charging device is arranged between an OCS and an SCP, and the charging device interacts with the SCP through TCP and interacts with the OCS through TCP/SCTP. After receiving a core network signaling related to a call service from the SCP, the charging device packages the signaling into a request message based on a diameter protocol and sends the request message to the OCS; in the process of communication call service, according to the core network signaling or the response message based on the diameter protocol, the OCS charging processing capacity is analyzed, whether the OCS needs to be subjected to flow control is determined, if yes, the OCS is subjected to flow control, so that the core network signaling related to the call service and subsequently sent by the SCP is not forwarded to the OCS, and if not, the OCS charging processing capacity analysis process is continued. Therefore, the method and the device ensure the continuous interaction of the OCS and the SCP in the communication call service process and charge in real time.

Description

在通信网络中实现通信计费的装置、系统及方法Device, system and method for realizing communication charging in communication network

技术领域technical field

本发明涉及通信技术,特别涉及一种在通信网络中实现通信计费的装置、系统及方法。The present invention relates to communication technology, and in particular, to a device, system and method for realizing communication charging in a communication network.

背景技术Background technique

目前,通信运营商通过通信网络为终端提供各种通信服务。图1为现有技术提供的通信网络为客户端提供通信服务的架构示意图。如图所示,移动通信网络、公共交换电话网络(PSTN)及智能网等等通过业务交换点(SSP)进行通信交互,SSP实现通信的接续功能。在SSP中可以集成移动通信网络的移动交换中心系统/位置拜访寄存器(MSCS/VLR),实现移动通信网络中的终端的定位及通信呼叫业务。在所述网络架构中,还包括业务控制点(SCP),与SSP(所述SSP集成了MSCS/VLR)进行交互,对各个SSP中的通信业务进行控制,实现图1所示的核心网中的通信业务的控制。At present, communication operators provide various communication services for terminals through communication networks. FIG. 1 is a schematic structural diagram of a communication network provided by the prior art to provide a communication service for a client. As shown in the figure, the mobile communication network, the public switched telephone network (PSTN), the intelligent network, etc. carry out communication interaction through the service switching point (SSP), and the SSP realizes the connection function of the communication. The mobile switching center system/location visiting register (MSCS/VLR) of the mobile communication network can be integrated in the SSP to realize the positioning of the terminal in the mobile communication network and the communication call service. In the network architecture, it also includes a service control point (SCP), which interacts with the SSP (the SSP integrates the MSCS/VLR), controls the communication services in each SSP, and realizes the core network shown in FIG. 1 . control of communication services.

在通信网络为终端提供通信呼叫业务服务时,需要对所提供的通信呼叫业务进行实时计费,并基于实时计费的费用结果向终端收取通信呼叫业务的费用。在这种情况下,在通信网络中设置了在线计费系统(OCS,Online Charging System),所述OCS接入到SCP上,获取得到SCP提供的涉及通信呼叫业务的核心网信令,并基于所述核心网信令,对终端涉及的所述通信呼叫业务进行实时计费,如图2所示,图2为现有技术提供的通信网络中实时计费的架构示意图。When a communication network provides a communication call service for a terminal, it is necessary to perform real-time charging for the provided communication call service, and charge the terminal for the communication call service based on the result of the real-time charging. In this case, an online charging system (OCS, Online Charging System) is set up in the communication network, the OCS is connected to the SCP, obtains the core network signaling related to the communication call service provided by the SCP, and based on the The core network signaling performs real-time charging for the communication call service involved in the terminal, as shown in FIG. 2 , which is a schematic structural diagram of real-time charging in a communication network provided by the prior art.

可以看出,在通信网络中采用OCS实现通信呼叫业务的实时计费,是通信网络正常运营的重要组成部分。OCS在终端的通信呼叫业务过程中,根据从SCP接收的核心网信令进行计费的能力,会影响终端的通信呼叫业务的持续时长,从而会影响使用终端的用户的体验度。当OCS在终端的通信呼叫业务过程中,由于能力有限,或者单位时间内从SCP接收的核心网信令过多,而无法及时处理从SCP接收的核心网信令并进行计费,就会导致终端的通信呼叫业务的无法及时计费、或通信呼叫业务的异常中断。因此,如何保证OCS与SCP在通信呼叫业务过程中的持续交互,并实时计费,是一个亟待解决的问题。It can be seen that the use of OCS in the communication network to realize real-time charging of communication call services is an important part of the normal operation of the communication network. During the communication call service of the terminal, the ability of the OCS to perform charging according to the core network signaling received from the SCP will affect the duration of the communication call service of the terminal, thereby affecting the experience of the user using the terminal. When OCS is in the process of terminal communication call service, due to limited capability or too many core network signaling received from the SCP per unit time, it cannot process the core network signaling received from the SCP and perform billing in time, resulting in The communication call service of the terminal cannot be billed in time, or the communication call service is abnormally interrupted. Therefore, how to ensure the continuous interaction between the OCS and the SCP in the communication call service process and real-time charging is an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请实施例提供一种在通信网络中实现通信计费的装置、方法及系统,能够保证OCS与SCP在通信呼叫业务过程中的持续交互,并实时计费。In view of this, the embodiments of the present application provide an apparatus, method and system for implementing communication charging in a communication network, which can ensure continuous interaction between OCS and SCP in the process of communication call service, and perform real-time charging.

本申请实施例是这样实现的:The embodiments of the present application are implemented as follows:

一种在通信网络中实现通信计费的装置,所述装置设置在在线计费系统OCS与业务控制点SCP之间,所述装置与所述SCP之间基于传输控制协议TCP进行交互,与所述OCS之间通过TCP或流传输控制协议SCTP进行交互,所述装置包括:收发单元及分析单元,其中,A device for implementing communication charging in a communication network, the device is arranged between an online charging system OCS and a service control point SCP, the device and the SCP interact based on the transmission control protocol TCP, and the device interacts with the service control point SCP. The OCSs interact through TCP or the Stream Transmission Control Protocol SCTP, and the device includes: a transceiver unit and an analysis unit, wherein,

所述收发单元,用于从所述SCP接收涉及通信呼叫业务的核心网信令后,封装为基于直径diameter协议的请求消息,发送给所述OCS;从所述OCS接收基于diameter协议的响应消息;The transceiver unit is configured to encapsulate a request message based on the diameter protocol after receiving the core network signaling related to the communication call service from the SCP, and send it to the OCS; and receive a response message based on the diameter protocol from the OCS ;

所述分析单元,用于在通信呼叫业务进行过程中,根据从所述OCS接收的基于diameter协议的响应消息,进行所述OCS计费处理能力的分析,确定是否要对所述OCS进行流控,如果是,对所述OCS进行流量控制,以使所述SCP后续发送的涉及呼叫业务的核心网信令不转发给所述OCS,如果否,继续进行所述OCS计费处理能力的分析。The analyzing unit is configured to analyze the charging processing capability of the OCS according to the response message based on the diameter protocol received from the OCS, and determine whether to perform flow control on the OCS during the communication call service. , if yes, perform flow control on the OCS, so that the core network signaling related to the call service sent by the SCP subsequently is not forwarded to the OCS; if not, continue to analyze the charging processing capability of the OCS.

可选地,所述分析单元,还用于进行所述OCS计费处理能力的分析,确定是否对所述OCS进行流控时,还包括:Optionally, the analyzing unit is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method further includes:

实时计算发送所述基于diameter协议的请求消息的单位时间数量值,判断所述单位时间数量值是否超过所述OCS的计费处理能力所提供的处理请求消息的数量阈值,如果是,确定对所述OCS进行流控;Calculate the quantity value per unit time of sending the request message based on the diameter protocol in real time, and judge whether the quantity value per unit time exceeds the threshold value of the quantity of processing request messages provided by the charging processing capability of the OCS. described OCS for flow control;

或者,识别发送所述基于diameter协议的请求消息的时间戳,当收到对应的基于diameter协议的响应消息时,计算得到所述OCS处理基于diameter协议的请求消息占用的时间长度,统计在一个时间周期内超过设置的所述OCS处理基于diameter协议的请求消息的时间长度阈值的所述请求消息数量值,判断所述请求消息数量值是否超过设置的消息处理数量阈值,如果是,则记录所述时间周期;如果记录的连续时间周期的数量值超过设置的时间周期数量阈值,确定对所述OCS进行流控;Or, identify the time stamp of sending the request message based on the diameter protocol, when receiving the corresponding response message based on the diameter protocol, calculate the length of time occupied by the OCS to process the request message based on the diameter protocol, and count the time length in a time The quantity value of the request message exceeds the set time length threshold of the request message based on the diameter protocol by the OCS in the period, and judges whether the quantity value of the request message exceeds the set threshold value of the number of messages processed, and if so, record the Time period; if the number of recorded continuous time periods exceeds the set time period number threshold, it is determined that flow control is performed on the OCS;

或者,识别发送所述基于diameter协议的请求消息中的状态标识,统计在一个时间周期内具有错误状态的状态标识的所述基于diameter协议的请求消息的数量值,判断所述数量值是否超过设置的错误发送请求消息的数量阈值,如果是,记录所述时间周期;如果记录的连续时间周期的数量超过设置的时间周期数量阈值,确定对所述OCS进行流控。Or, identify and send the state identifier in the request message based on the diameter protocol, count the quantity value of the request message based on the diameter protocol with the state identifier of the error state in a time period, and determine whether the quantity value exceeds the set value If yes, record the time period; if the recorded number of consecutive time periods exceeds the set time period number threshold, determine to perform flow control on the OCS.

可选地,所述收发单元,还用于在对所述OCS进行流控时,向所述SCP发送落离线话单消息,指示所述SCP中断当前的通信呼叫业务。Optionally, the transceiver unit is further configured to send an off-line bill message to the SCP when performing flow control on the OCS, instructing the SCP to interrupt the current communication call service.

可选地,所述基于diameter协议的请求消息为在线计费控制请求CCR;Optionally, the request message based on the diameter protocol is an online charging control request CCR;

所述基于diameter协议的响应消息为在线计费控制应答CCA;The response message based on the diameter protocol is the online charging control response CCA;

所述涉及通信呼叫业务的核心网信令为会话发起协议SIP消息,所述中断通信呼叫业务信令为SIP消息。The core network signaling related to the communication call service is a session initiation protocol SIP message, and the communication interruption call service signaling is a SIP message.

一种在通信网络中实现通信计费的方法,所述方法包括:A method for implementing communication charging in a communication network, the method comprising:

从SCP接收涉及呼叫业务的核心网信令后,封装为基于diameter协议的请求消息,发送给OCS,接收所述OCS发送的基于diameter协议的响应消息;After receiving the core network signaling related to the call service from the SCP, encapsulate it as a request message based on the diameter protocol, send it to the OCS, and receive the response message based on the diameter protocol sent by the OCS;

在通信呼叫业务进行过程中,根据所述核心网信令或所述基于diameter协议的响应消息,进行所述OCS计费处理能力的分析,确定是否要对所述OCS进行流控,如果是,对所述OCS进行流量控制,以使所述SCP后续发送的涉及呼叫业务的核心网信令不转发给所述OCS;如果否,继续进行所述OCS计费处理能力的分析过程。During the process of the communication call service, according to the core network signaling or the response message based on the diameter protocol, analyze the charging processing capability of the OCS to determine whether to perform flow control on the OCS, and if so, Flow control is performed on the OCS, so that the core network signaling related to the call service sent by the SCP subsequently is not forwarded to the OCS; if not, the process of analyzing the charging processing capability of the OCS is continued.

可选地,所述进行所述OCS计费处理能力的分析,确定是否要对所述OCS进行流控包括:Optionally, the analyzing the charging processing capability of the OCS and determining whether to perform flow control on the OCS includes:

实时计算发送所述基于diameter协议的请求消息的单位时间数量值,判断所述单位时间数量值是否超过所述OCS的计费处理能力所提供的处理请求消息的数量阈值,如果是,确定对所述OCS进行流控;Calculate the quantity value per unit time of sending the request message based on the diameter protocol in real time, and judge whether the quantity value per unit time exceeds the threshold value of the quantity of processing request messages provided by the charging processing capability of the OCS. described OCS for flow control;

或者,识别发送所述基于diameter协议的请求消息的时间戳,当收到对应的基于diameter协议的响应消息时,计算得到所述OCS处理基于diameter协议的请求消息占用的时间长度,统计在一个时间周期内超过设置的所述OCS处理基于diameter协议的请求消息的时间长度阈值的所述请求消息数量值,判断所述请求消息数量值是否超过设置的消息处理数量阈值,如果是,则记录所述时间周期;如果记录的连续时间周期的数量值超过设置的时间周期数量阈值,确定对所述OCS进行流控;Or, identify the time stamp of sending the request message based on the diameter protocol, when receiving the corresponding response message based on the diameter protocol, calculate the length of time occupied by the OCS to process the request message based on the diameter protocol, and count the time length in a time The quantity value of the request message exceeds the set time length threshold of the request message based on the diameter protocol by the OCS in the period, and judges whether the quantity value of the request message exceeds the set threshold value of the number of messages processed, and if so, record the Time period; if the number of recorded continuous time periods exceeds the set time period number threshold, it is determined that flow control is performed on the OCS;

或者,识别发送所述基于diameter协议的请求消息中的状态标识,统计在一个时间周期内具有错误状态的状态标识的所述基于diameter协议的请求消息的数量值,判断所述数量值是否超过设置的错误发送请求消息的数量阈值,如果是,记录所述时间周期;如果记录的连续时间周期的数量超过设置的时间周期数量阈值,确定对所述OCS进行流控。Or, identify and send the state identifier in the request message based on the diameter protocol, count the quantity value of the request message based on the diameter protocol with the state identifier of the error state in a time period, and determine whether the quantity value exceeds the set value If yes, record the time period; if the recorded number of consecutive time periods exceeds the set time period number threshold, determine to perform flow control on the OCS.

可选地,所述在对所述OCS进行流量控制时,还包括:向所述SCP发送落离线话单消息,指示所述SCP中断当前的通信呼叫业务。Optionally, when the flow control is performed on the OCS, the method further includes: sending an offline call bill message to the SCP, instructing the SCP to interrupt the current communication call service.

可选地,所述基于diameter协议的请求消息为在线计费控制请求CCR;Optionally, the request message based on the diameter protocol is an online charging control request CCR;

所述基于diameter协议的响应消息为在线计费控制应答CCA;The response message based on the diameter protocol is the online charging control response CCA;

所述涉及通信呼叫业务的核心网信令为会话发起协议SIP消息,所述中断通信呼叫业务信令为SIP消息。The core network signaling related to the communication call service is a session initiation protocol SIP message, and the communication interruption call service signaling is a SIP message.

一种在通信网络中实现通信计费的系统,所述系统包括:SCP、计费装置及OCS,所述计费装置与所述SCP之间基于TCP进行交互,与所述OCS之间通过TCP或SCTP进行交互,其中,A system for implementing communication charging in a communication network, the system includes: an SCP, a charging device and an OCS, the charging device interacts with the SCP based on TCP, and communicates with the OCS through TCP or SCTP to interact, where,

所述SCP,用于向所述计费装置发送涉及呼叫业务的核心网信令;the SCP, configured to send the core network signaling related to the call service to the charging device;

所述计费装置,用于从所述SCP接收到涉及呼叫业务的核心网信令后,封装为基于diameter协议的请求消息,发送给所述OCS,接收所述OCS发送的基于diameter协议的响应消息;在通信呼叫业务进行过程中,根据核心网信令或基于diameter协议的响应消息,进行所述OCS计费处理能力的分析,确定是否要对所述OCS进行流控,如果是,对所述OCS进行流量控制,以使所述SCP后续发送的涉及呼叫业务的核心网信令不转发给所述OCS;如果否,继续进行所述OCS计费处理能力的分析过程;The charging device is configured to encapsulate the request message based on the diameter protocol after receiving the core network signaling related to the call service from the SCP, send it to the OCS, and receive the response based on the diameter protocol sent by the OCS In the process of the communication call service, according to the core network signaling or the response message based on the diameter protocol, analyze the charging processing capability of the OCS to determine whether to perform flow control on the OCS; The OCS performs flow control, so that the core network signaling related to the call service sent by the SCP is not forwarded to the OCS; if not, the process of analyzing the charging processing capability of the OCS is continued;

所述OCS,用于从计费装置接收所述基于diameter协议的请求消息,向所述计费装置发送所述基于diameter协议的响应消息。The OCS is configured to receive the request message based on the diameter protocol from the charging device, and send the response message based on the diameter protocol to the charging device.

可选地,所述计费装置,还用于进行所述OCS计费处理能力的分析,确定是否对所述OCS进行流控时,包括:Optionally, the charging device is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method includes:

实时计算发送所述基于diameter协议的请求消息的单位时间数量值,判断所述单位时间数量值是否超过所述OCS的计费处理能力所提供的处理请求消息的数量阈值,如果是,确定对所述OCS进行流控;Calculate the quantity value per unit time of sending the request message based on the diameter protocol in real time, and judge whether the quantity value per unit time exceeds the threshold value of the quantity of processing request messages provided by the charging processing capability of the OCS. described OCS for flow control;

或者,识别发送所述基于diameter协议的请求消息的时间戳,当收到对应的基于diameter协议的响应消息时,计算得到所述OCS处理基于diameter协议的请求消息占用的时间长度,统计在一个时间周期内超过设置的所述OCS处理基于diameter协议的请求消息的时间长度阈值的所述请求消息数量值,判断所述请求消息数量值是否超过设置的消息处理数量阈值,如果是,则记录所述时间周期;如果记录的连续时间周期的数量值超过设置的时间周期数量阈值,确定对所述OCS进行流控;Or, identify the time stamp of sending the request message based on the diameter protocol, when receiving the corresponding response message based on the diameter protocol, calculate the length of time occupied by the OCS to process the request message based on the diameter protocol, and count the time length in a time The quantity value of the request message exceeds the set time length threshold of the request message based on the diameter protocol by the OCS in the period, and judges whether the quantity value of the request message exceeds the set threshold value of the number of messages processed, and if so, record the Time period; if the number of recorded continuous time periods exceeds the set time period number threshold, it is determined that flow control is performed on the OCS;

或者,识别发送所述基于diameter协议的请求消息中的状态标识,统计在一个时间周期内具有错误状态的状态标识的所述基于diameter协议的请求消息的数量值,判断所述数量值是否超过设置的错误发送请求消息的数量阈值,如果是,记录所述时间周期;如果记录的连续时间周期的数量超过设置的时间周期数量阈值,确定对所述OCS进行流控。Or, identify and send the state identifier in the request message based on the diameter protocol, count the quantity value of the request message based on the diameter protocol with the state identifier of the error state in a time period, and determine whether the quantity value exceeds the set value If yes, record the time period; if the recorded number of consecutive time periods exceeds the set time period number threshold, determine to perform flow control on the OCS.

如上所见,本申请实施例在OCS与SCP之间设置计费装置,所述计费装置与SCP之间通过传输控制协议(TCP)交互,与OCS之间通过传输控制协议或流传输控制协议(TCP/SCTP)交互。计费装置从SCP接收涉及呼叫业务的核心网信令后,封装为基于直径(diameter)协议的请求消息,发送给OCS;在通信呼叫业务进行过程中,根据核心网信令或基于diameter协议的响应消息,进行OCS计费处理能力的分析,确定是否要对OCS进行流控,如果是,对OCS进行流量控制,以使SCP后续发送的涉及呼叫业务的核心网信令不转发给OCS,如果否,继续进行OCS计费处理能力的分析过程。这样,本申请实施例由计费装置在通信呼叫业务的持续过程中,实时分析OCS的计费处理能力,当OCS的计费处理能力无法满足及时处理本次通信呼叫业务的计费处理需求时,则进行OCS的流控操作,从而保证OCS与SCP在通信呼叫业务过程中的持续交互,并实时计费。As can be seen above, in this embodiment of the present application, a charging device is set between the OCS and the SCP. The charging device interacts with the SCP through the Transmission Control Protocol (TCP), and communicates with the OCS through the Transmission Control Protocol or the Stream Transmission Control Protocol. (TCP/SCTP) interaction. After the charging device receives the core network signaling related to the call service from the SCP, it encapsulates it as a request message based on the diameter protocol, and sends it to the OCS; In response to the message, analyze the charging processing capability of the OCS to determine whether to perform flow control on the OCS. If so, perform flow control on the OCS so that the core network signaling related to the call service sent by the SCP will not be forwarded to the OCS. No, continue with the analysis process of the OCS charging processing capability. In this way, in the embodiment of the present application, the charging device analyzes the charging processing capability of the OCS in real time during the continuous process of the communication call service. When the charging processing capability of the OCS cannot meet the charging processing requirement for processing the communication call service in a timely manner , the flow control operation of the OCS is performed, thereby ensuring the continuous interaction between the OCS and the SCP during the communication call service process, and real-time charging.

附图说明Description of drawings

图1为现有技术提供的通信网络为客户端提供通信服务的架构示意图;1 is a schematic diagram of the architecture of a communication network provided by the prior art providing a communication service for a client;

图2为现有技术提供的通信网络中实时计费的架构示意图;2 is a schematic diagram of the architecture of real-time charging in a communication network provided by the prior art;

图3为本申请实施例提供的在通信网络中实现通信计费的装置结构示意图;3 is a schematic structural diagram of an apparatus for implementing communication charging in a communication network according to an embodiment of the present application;

图4为本申请实施例提供的在通信网络中实现通信计费的方法流程图;4 is a flowchart of a method for implementing communication charging in a communication network according to an embodiment of the present application;

图5为本发明实施例提供的在通信网络中实现通信计费的方法具体例子的流程图;5 is a flowchart of a specific example of a method for implementing communication charging in a communication network according to an embodiment of the present invention;

图6为本申请实施例提供的在通信网络中实现通信计费的系统结构示意图。FIG. 6 is a schematic structural diagram of a system for implementing communication charging in a communication network according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the application described herein can, for example, be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units expressly listed, but may include steps or units not expressly listed or for such process, method, product or Other steps or units inherent to the device.

下面以具体实施例对本申请的技术方案进行详细说明。下面几个具体实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present application will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

本申请实施例在OCS与SCP之间设置计费装置,所述计费装置与SCP之间通过TCP交互,与OCS之间通过TCP/SCTP交互。计费装置从SCP接收涉及呼叫业务的核心网信令后,封装为基于diameter协议的请求消息,发送给OCS;在通信呼叫业务进行过程中,根据核心网信令或基于diameter协议的响应消息,进行OCS计费处理能力的分析,确定是否要对OCS进行流控,如果是,对OCS进行流量控制,以使SCP后续发送的涉及呼叫业务的核心网信令不转发给OCS,如果否,继续进行OCS计费处理能力的分析过程。In this embodiment of the present application, a charging device is set between the OCS and the SCP, and the charging device interacts with the SCP through TCP and interacts with the OCS through TCP/SCTP. After the charging device receives the core network signaling related to the call service from the SCP, it encapsulates it as a request message based on the diameter protocol, and sends it to the OCS; during the process of the communication call service, according to the core network signaling or the response message based on the diameter protocol, Analyze the charging processing capability of the OCS to determine whether to perform flow control on the OCS. If so, perform flow control on the OCS so that the core network signaling related to the call service sent by the SCP will not be forwarded to the OCS. If not, continue Carry out the analysis process of the OCS billing processing capability.

这样,本申请实施例由计费装置在通信呼叫业务的持续过程中,实时分析OCS的计费处理能力,当OCS的计费处理能力无法满足及时处理本次通信呼叫业务的计费处理需求时,则进行OCS的流控操作,从而保证OCS与SCP在通信呼叫业务过程中的持续交互,并实时计费。In this way, in the embodiment of the present application, the charging device analyzes the charging processing capability of the OCS in real time during the continuous process of the communication call service. When the charging processing capability of the OCS cannot meet the charging processing requirement for processing the communication call service in a timely manner , the flow control operation of the OCS is performed, thereby ensuring the continuous interaction between the OCS and the SCP during the communication call service process, and real-time charging.

图3为本申请实施例提供的在通信网络中实现通信计费的装置结构示意图,所述装置设置在OCS与SCP之间,所述装置是计费装置,所述装置与SCP之间通过TCP交互,与OCS之间通过TCP/SCTP交互,所述装置包括:收发单元及分析单元,其中,3 is a schematic structural diagram of an apparatus for implementing communication charging in a communication network provided by an embodiment of the present application. The apparatus is arranged between the OCS and the SCP, the apparatus is a charging apparatus, and the TCP is communicated between the apparatus and the SCP. interact with the OCS through TCP/SCTP, the device includes: a transceiver unit and an analysis unit, wherein,

收发单元,用于从SCP接收涉及通信呼叫业务的核心网信令后,封装为基于diameter协议的请求消息,发送给OCS;从OCS接收基于diameter协议的响应消息;The transceiver unit is used to encapsulate the request message based on the diameter protocol after receiving the core network signaling related to the communication call service from the SCP, and send it to the OCS; receive the response message based on the diameter protocol from the OCS;

分析单元,用于在通信呼叫业务进行过程中,根据从OCS接收的基于diameter协议的响应消息,进行OCS计费处理能力的分析,确定是否要对OCS进行流控,如果是,对OCS进行流量控制,以使SCP后续发送的涉及呼叫业务的核心网信令不转发给OCS,如果否,继续进行OCS计费处理能力的分析。The analysis unit is used to analyze the charging processing capability of the OCS according to the response message based on the diameter protocol received from the OCS during the process of the communication call service, and determine whether to perform flow control on the OCS, and if so, perform the flow control on the OCS. Control, so that the core network signaling related to the call service sent by the SCP subsequently is not forwarded to the OCS, if not, continue to analyze the charging processing capability of the OCS.

所述计费装置通过TCP/SCTP和OCS实现通信交互,并对OCS的计费处理能力在通信呼叫业务进行过程中进行实时分析,当OCS故障或系统压力较大时,启动OCS的流控功能,保证SCP的通信呼叫业务的正常运行。The charging device realizes communication interaction through TCP/SCTP and OCS, and performs real-time analysis on the charging processing capability of OCS during the process of communication call service, and starts the flow control function of OCS when the OCS fails or the system is under great pressure. , to ensure the normal operation of the communication call service of the SCP.

在所述装置中,所述分析单元,还用于进行OCS计费处理能力的分析,确定是否对OCS进行流控时,还包括:In the device, the analyzing unit is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method further includes:

实时计算发送基于diameter协议的请求消息的单位时间数量值,判断所述单位时间数量值是否超过所述OCS的计费处理能力所提供的处理请求消息的数量阈值,如果是,确定对OCS进行流控。Calculate in real time the quantity value per unit time of sending the request message based on the diameter protocol, determine whether the quantity value per unit time exceeds the quantity threshold value of the processing request message provided by the charging processing capability of the OCS, and if so, determine whether to stream the OCS. control.

在所述装置中,所述分析单元,还用于进行OCS计费处理能力的分析,确定是否对OCS进行流控时,还包括:In the device, the analyzing unit is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method further includes:

识别发送基于diameter协议的请求消息的时间戳,当收到对应的基于diameter协议的响应消息时,计算得到OCS处理基于diameter协议的请求消息占用的时间长度,统计在一个时间周期内超过设置的OCS处理基于diameter协议的请求消息的时间长度阈值的请求消息数量值,判断所述请求消息数量值是否超过设置的消息处理数量阈值,如果是,则记录所述时间周期;如果记录的连续时间周期的数量值超过设置的时间周期数量阈值,确定对OCS进行流控。Identify the time stamp of sending the request message based on the diameter protocol. When the corresponding response message based on the diameter protocol is received, calculate the length of time taken by the OCS to process the request message based on the diameter protocol, and count the time that exceeds the set OCS within a time period. Process the request message quantity value based on the time length threshold of the request message of the diameter protocol, judge whether the request message quantity value exceeds the set message processing quantity threshold value, if so, record the time period; When the quantity value exceeds the set time period quantity threshold, it is determined to perform flow control on the OCS.

在所述装置中,所述分析单元,还用于进行OCS计费处理能力的分析,确定是否对OCS进行流控时,还包括:In the device, the analyzing unit is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method further includes:

识别发送基于diameter协议的请求消息中的状态标识,统计在一个时间周期内具有错误状态的状态标识的基于diameter协议的请求消息的数量值,判断所述数量值是否超过设置的错误发送请求消息的数量阈值,如果是,记录所述时间周期;如果记录的连续时间周期的数量超过设置的时间周期数量阈值,确定对OCS进行流控。Identify the status identifier in the request message based on the diameter protocol, count the quantity value of the request message based on the diameter protocol with the status identifier of the error state in a time period, and determine whether the quantity value exceeds the set error sending request message. Quantity threshold, if yes, record the time period; if the number of recorded consecutive time periods exceeds the set time period quantity threshold, it is determined to perform flow control on the OCS.

在所述装置中,所述基于diameter协议的请求消息为在线计费控制请求(CCR);所述基于diameter协议的响应消息为在线计费控制应答(CCA)。In the apparatus, the request message based on the diameter protocol is an online charging control request (CCR); the response message based on the diameter protocol is a online charging control response (CCA).

在所述装置中,所述收发单元,还用于在对OCS进行流控时,向SCP发送中断通信呼叫业务信令。具体地说,向SCP发送中断通信呼叫业务信令为:向SCP发送落离线话单消息,指示SCP中断当前的通信呼叫业务。In the device, the transceiver unit is further configured to send a communication interrupt call service signaling to the SCP when flow control is performed on the OCS. Specifically, sending the communication call service interruption signaling to the SCP is: sending an off-line bill message to the SCP, instructing the SCP to interrupt the current communication call service.

在所述装置中,所述涉及通信呼叫业务的核心网信令为会话发起协议(SIP)消息,所述中断通信呼叫业务信令为SIP消息。In the device, the core network signaling related to the communication call service is a Session Initiation Protocol (SIP) message, and the communication interruption call service signaling is a SIP message.

图4为本发明实施例提供的在通信网络中实现通信计费的方法流程图,在所述方法中,在SCP与OCS之间设置计费装置,所述方法还包括:4 is a flowchart of a method for implementing communication charging in a communication network provided by an embodiment of the present invention. In the method, a charging device is set between the SCP and the OCS, and the method further includes:

步骤401、从SCP接收涉及呼叫业务的核心网信令后,封装为基于diameter协议的请求消息,发送给OCS;从OCS接收基于diameter协议的响应消息;Step 401, after receiving the core network signaling related to the call service from the SCP, encapsulate it as a request message based on the diameter protocol, and send it to the OCS; receive a response message based on the diameter protocol from the OCS;

步骤402、在通信呼叫业务进行过程中,根据核心网信令或基于diameter协议的响应消息,进行OCS计费处理能力的分析,确定是否要对OCS进行流控,如果是,执行步骤403;如果否,执行步骤404;Step 402, in the process of communication call service, according to the core network signaling or the response message based on the diameter protocol, analyze the OCS charging processing capability, and determine whether to perform flow control on the OCS, if so, perform step 403; No, go to step 404;

步骤403、对OCS进行流量控制,以使SCP后续发送的涉及呼叫业务的核心网信令不转发给OCS;Step 403, performing flow control on the OCS, so that the core network signaling related to the call service sent by the SCP subsequently is not forwarded to the OCS;

步骤404、继续进行OCS计费处理能力的分析过程。Step 404: Continue the process of analyzing the charging processing capability of the OCS.

从上述方法可以看出,SCP要发送的核心网信令,通过计费装置与OCS进行交互,无论OCS故障与否,计费装置都可以进行正常平稳工作,且保证SCP的正常工作。It can be seen from the above method that the core network signaling to be sent by the SCP interacts with the OCS through the charging device. No matter whether the OCS is faulty or not, the charging device can work normally and smoothly, and the normal operation of the SCP is guaranteed.

在所述方法中,所述进行OCS计费处理能力的分析,确定是否要对OCS进行流控有三种方式,分别为:基于OCS计费处理能力的流控方式;基于OCS计费处理超时的流控方式;基于请求消息的错误标识的流控方式,以下分别说明。In the method, the analysis of the OCS charging processing capability is performed to determine whether to perform flow control on the OCS in three ways, namely: a flow control method based on the OCS charging processing capability; a flow control method based on the OCS charging processing timeout Flow control mode; the flow control mode based on the error identification of the request message, which will be described separately below.

具体地,采用基于OCS计费处理能力的流控方式时,所述进行OCS计费处理能力的分析,确定是否要对OCS进行流控包括:Specifically, when the flow control method based on the OCS charging processing capability is adopted, the analysis of the OCS charging processing capability to determine whether to perform flow control on the OCS includes:

实时计算发送基于diameter协议的请求消息的单位时间数量值,判断所述单位时间数量值是否超过所述OCS的计费处理能力所提供的处理请求消息的数量阈值,如果是,确定对OCS进行流控。Calculate in real time the quantity value per unit time of sending the request message based on the diameter protocol, determine whether the quantity value per unit time exceeds the quantity threshold value of the processing request message provided by the charging processing capability of the OCS, and if so, determine whether to stream the OCS. control.

具体地,采样基于OCS计费处理超时的流控方式时,所述进行OCS计费处理能力的分析,确定是否对OCS进行流控时,还包括:Specifically, when sampling the flow control mode based on the OCS charging processing timeout, the analysis of the OCS charging processing capability to determine whether to perform flow control on the OCS further includes:

识别发送基于diameter协议的请求消息的时间戳,当收到对应的基于diameter协议的响应消息时,计算得到OCS处理基于diameter协议的请求消息占用的时间长度,统计在一个时间周期内超过设置的OCS处理基于diameter协议的请求消息的时间长度阈值的请求消息数量值,判断所述请求消息数量值是否超过设置的消息处理数量阈值,如果是,则记录所述时间周期;如果记录的连续时间周期的数量值超过设置的时间周期数量阈值,确定对OCS进行流控。Identify the time stamp of sending the request message based on the diameter protocol. When the corresponding response message based on the diameter protocol is received, calculate the length of time taken by the OCS to process the request message based on the diameter protocol, and count the time that exceeds the set OCS within a time period. Process the request message quantity value based on the time length threshold of the request message of the diameter protocol, judge whether the request message quantity value exceeds the set message processing quantity threshold value, if so, record the time period; When the quantity value exceeds the set time period quantity threshold, it is determined to perform flow control on the OCS.

具体地,采用基于请求消息的错误标识的流控方式时,所述进行OCS计费处理能力的分析,确定是否对OCS进行流控时,还包括:Specifically, when the flow control method based on the error identification of the request message is adopted, the analysis of the charging processing capability of the OCS to determine whether to perform flow control on the OCS further includes:

识别发送基于diameter协议的请求消息中的状态标识,统计在一个时间周期内具有错误状态的状态标识的基于diameter协议的请求消息的数量值,判断所述数量值是否超过设置的错误发送请求消息的数量阈值,如果是,记录所述时间周期;如果记录的连续时间周期的数量超过设置的时间周期数量阈值,确定对OCS进行流控。Identify the status identifier in the request message based on the diameter protocol, count the quantity value of the request message based on the diameter protocol with the status identifier of the error state in a time period, and determine whether the quantity value exceeds the set error sending request message. Quantity threshold, if yes, record the time period; if the number of recorded consecutive time periods exceeds the set time period quantity threshold, it is determined to perform flow control on the OCS.

在所述方法中,所述基于diameter协议的请求消息为CCR;所述基于diameter协议的响应消息为CCA。In the method, the request message based on the diameter protocol is CCR; the response message based on the diameter protocol is CCA.

在所述方法中,所述在对OCS进行流量控制时,还包括:向SCP发送中断通信呼叫业务信令。具体地说,向SCP发送中断通信呼叫业务信令为:向SCP发送落离线话单消息,指示SCP中断当前的通信呼叫业务。In the method, when the flow control is performed on the OCS, the method further includes: sending a communication interruption call service signaling to the SCP. Specifically, sending the communication call service interruption signaling to the SCP is: sending an off-line bill message to the SCP, instructing the SCP to interrupt the current communication call service.

在所述方法中,所述涉及呼叫业务的核心网信令为SIP消息,向SCP发送给的终端通信呼叫业务信令为SIP消息。In the method, the core network signaling related to the call service is a SIP message, and the terminal communication call service signaling sent to the SCP is a SIP message.

在所述方法中,向SCP发送中断通信呼叫业务信令为:向SCP发送落离线话单消息,指示SCP中断当前的通信呼叫业务。In the method, sending the communication call service interruption signaling to the SCP is: sending an offline call bill message to the SCP, instructing the SCP to interrupt the current communication call service.

举一个具体例子对上述方法进行详细说明。图5为本发明实施例提供的在通信网络中实现通信计费的方法具体例子的流程图,如图所示:A specific example is given to illustrate the above method in detail. 5 is a flowchart of a specific example of a method for implementing communication charging in a communication network provided by an embodiment of the present invention, as shown in the figure:

步骤501、SCP向计费装置发送SIP消息;Step 501, the SCP sends a SIP message to the charging device;

在本步骤中,所述SIP消息为涉及呼叫业务的核心网信令;In this step, the SIP message is the core network signaling involving the call service;

步骤502、计费装置将SIP消息封装为基于diameter协议的请求消息,即CCR后,通过TCP或SCTP发送给OCS;Step 502, the charging device encapsulates the SIP message into a request message based on the diameter protocol, that is, after CCR, sends it to OCS through TCP or SCTP;

步骤503、OCS接收到后,基于所述请求消息进行计费处理后,给计费装置发送基于diameter协议的响应消息,即CCA;Step 503: After receiving the OCS, after performing charging processing based on the request message, send a response message based on the diameter protocol, that is, CCA, to the charging device;

步骤504、在计费装置接收到所述CCA之后,分析OCS的处理能力,判断是否需要对OCS进行流控;Step 504, after the charging device receives the CCA, analyzes the processing capability of the OCS, and determines whether flow control needs to be performed on the OCS;

步骤505、计费判断装置判断出需要对OCS进行流控,则向SCP发送SIP消息,即向SCP发送落离线话单消息,指示SCP中断当前的通信呼叫业务,使得SCP的请求消息不会在流控期间发送给OCS。Step 505: The charging judging device judges that flow control needs to be performed on the OCS, and then sends a SIP message to the SCP, that is, sends an off-line bill message to the SCP, instructing the SCP to interrupt the current communication call service, so that the request message of the SCP will not be sent on the SCP. Sent to OCS during flow control.

在所述例子中,当采用基于OCS计费处理能力的流控方式,进行OCS是否需要流控的判断时,具体过程如下。In the example, when the flow control method based on the OCS charging processing capability is used to judge whether the OCS needs flow control, the specific process is as follows.

OCS可提供其每秒处理请求消息的最大能力,计费装置实时计算发送到OCS的请求消息的流量,进行计数统计,当一秒内发送的请求消息的数量值超过OCS最大处理能力设置的请求消息数量阈值时,所述秒内剩余CCR将不在发送到OCS进行在线计费处理,直接返回SCP落离线话单。OCS can provide its maximum capacity of processing request messages per second. The billing device calculates the flow of request messages sent to OCS in real time, and conducts counting statistics. When the number of request messages sent in one second exceeds the request set by the maximum processing capacity of OCS When the number of messages reaches the threshold, the remaining CCRs within the second will not be sent to the OCS for online charging processing, but will directly return to the SCP drop off line bill.

在所述例子中,当采用基于OCS计费处理超时的流控方式,进行OCS是否需要流控的判断时,具体过程如下。In the above example, when the flow control method based on the OCS charging processing timeout is adopted to judge whether the OCS needs flow control, the specific process is as follows.

计费装置记录发送到OCS的CCR的时间戳,收到CCA时,统计所述CCR所占用1的时间长度,若一个周期内超时响应较多,进行记录,若连续多个周期超时响应均较多,进行流控,后期CCR不再发送给OCS进行在线计费请求。在这里,一般以一分钟为一个周期,100条超时进行记录,可根据需要进行设置。The charging device records the time stamp of the CCR sent to the OCS, and when receiving the CCA, counts the length of time occupied by the CCR. If there are more, flow control is performed, and the CCR will not be sent to the OCS for online charging requests in the later stage. Here, generally one minute is a cycle, and 100 timeouts are recorded, which can be set as needed.

在所述例子中,当采用基于请求消息的错误标识的流控方式,进行OCS是否需要流控的判断时,具体过程如下。In the example, when the flow control method based on the error identification of the request message is used to judge whether the OCS needs flow control, the specific process is as follows.

计费装置记录CCA的状态码,若一个周期内错误状态较多,进行记录,若连续多个周期错误码数量均较多,进行流控,后期CCR不再发送OCS进行在线计费请求。在这里,一般以一分钟为一个周期,100条错误码进行记录,可根据需要进行设置、The charging device records the status code of the CCA. If there are many error states in one cycle, the recording is performed. If the number of error codes in multiple consecutive cycles is large, the flow control is performed. Later, the CCR will not send the OCS for online charging requests. Here, generally one minute is a cycle, 100 error codes are recorded, which can be set as needed,

图6为本申请实施例提供的在通信网络中实现通信计费的系统结构示意图,所述系统包括:SCP、计费装置及OCS,计费装置与SCP之间基于TCP进行交互,与OCS之间通过TCP或SCTP进行交互,其中,6 is a schematic structural diagram of a system for implementing communication charging in a communication network according to an embodiment of the present application. The system includes: an SCP, a charging device, and an OCS. The charging device interacts with the SCP based on TCP, and communicates with the OCS. interact through TCP or SCTP, where,

SCP,用于向计费装置发送涉及呼叫业务的核心网信令;SCP, used for sending core network signaling related to call service to the charging device;

计费装置,用于从SCP接收后,封装为基于diameter协议的请求消息,发送给OCS;在通信呼叫业务进行过程中,根据核心网信令或基于diameter协议的响应消息,进行OCS计费处理能力的分析,确定是否要对OCS进行流控,如果是,对OCS进行流量控制,以使SCP后续发送的涉及呼叫业务的核心网信令不转发给OCS;如果否,继续进行OCS计费处理能力的分析过程;The charging device is used to encapsulate a request message based on the diameter protocol after receiving from the SCP, and send it to the OCS; during the process of the communication call service, perform OCS charging processing according to the core network signaling or the response message based on the diameter protocol Analyze the capability to determine whether to perform flow control on the OCS. If so, perform flow control on the OCS so that the core network signaling related to the call service sent by the SCP will not be forwarded to the OCS; if not, continue the OCS charging process Capability analysis process;

OCS,用于从计费装置接收基于diameter协议的请求消息,向计费装置发送基于diameter协议的响应消息。The OCS is configured to receive a request message based on the diameter protocol from the charging device, and send a response message based on the diameter protocol to the charging device.

在所述系统中,所述计费装置,还用于进行OCS计费处理能力的分析,确定是否对OCS进行流控时,包括:实时计算发送基于diameter协议的请求消息的单位时间数量值,判断所述单位时间数量值是否超过所述OCS的计费处理能力所提供的处理请求消息的数量阈值,如果是,确定对OCS进行流控。In the system, the charging device is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method includes: calculating in real time the quantity value per unit time for sending the request message based on the diameter protocol, It is judged whether the quantity value per unit time exceeds the quantity threshold of processing request messages provided by the charging processing capability of the OCS, and if so, it is determined to perform flow control on the OCS.

在所述系统中,所述计费装置,还用于进行OCS计费处理能力的分析,确定是否对OCS进行流控时,包括:识别发送基于diameter协议的请求消息的时间戳,当收到对应的基于diameter协议的响应消息时,计算得到OCS处理基于diameter协议的请求消息占用的时间长度,统计在一个时间周期内超过设置的OCS处理基于diameter协议的请求消息的时间长度阈值的请求消息数量值,判断所述请求消息数量值是否超过设置的消息处理数量阈值,如果是,则记录所述时间周期;如果记录的连续时间周期的数量值超过设置的时间周期数量阈值,确定对OCS进行流控。In the system, the charging device is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method includes: identifying the time stamp for sending the request message based on the diameter protocol, and when receiving the When the corresponding response message based on the diameter protocol is used, calculate the length of time occupied by the OCS to process the request message based on the diameter protocol, and count the number of request messages that exceed the set time length threshold for the OCS to process the request message based on the diameter protocol within a time period. value, determine whether the request message quantity value exceeds the set message processing quantity threshold, and if so, record the time period; if the recorded continuous time period quantity value exceeds the set time period quantity threshold, it is determined that the OCS is streamed control.

在所述系统中,所述计费装置,还用于进行OCS计费处理能力的分析,确定是否对OCS进行流控时,还包括:识别发送基于diameter协议的请求消息中的状态标识,统计在一个时间周期内具有错误状态的状态标识的基于diameter协议的请求消息的数量值,判断所述数量值是否超过设置的错误发送请求消息的数量阈值,如果是,记录所述时间周期;如果记录的连续时间周期的数量超过设置的时间周期数量阈值,确定对OCS进行流控。In the system, the charging device is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method further includes: identifying the status identifier in the request message sent based on the diameter protocol; The quantity value of the request messages based on the Diameter protocol with the status flag of the error state in a time period, judge whether the quantity value exceeds the set quantity threshold of the error sending request message, if so, record the time period; if record If the number of consecutive time periods exceeds the set time period number threshold, it is determined to perform flow control on the OCS.

在所述系统中,所述计费装置,还用于在对OCS进行流控时,向SCP发送中断通信呼叫业务信令;所述SCP,还用于从所述计费装置接收中断通信呼叫业务信令。在这里,中断通信呼叫业务信令为:向SCP发送落离线话单消息,指示SCP中断当前的通信呼叫业务。In the system, the charging device is further configured to send a communication interruption call service signaling to the SCP when the flow control is performed on the OCS; the SCP is further configured to receive a communication interruption call from the charging device business signaling. Here, the signaling of interrupting the communication call service is: sending a drop off line bill message to the SCP, instructing the SCP to interrupt the current communication call service.

在所述系统中,所述基于diameter协议的请求消息为CCR;所述基于diameter协议的响应消息为CCA。所述涉及通信呼叫业务的核心网信令为SIP消息,所述中断通信呼叫业务信令为SIP消息。In the system, the request message based on the diameter protocol is CCR; the response message based on the diameter protocol is CCA. The core network signaling related to the communication call service is a SIP message, and the communication interruption call service signaling is a SIP message.

从本申请实施例可以看出,本申请设置了计费装置,所述计费装置与通信呼叫业务流程低耦合,支持TCP和SCTP的安全传输。所述计费装置能够对OCS的计费处理能力进行实时分析,判断OCS的计费处理能力,并对OCS进行流量控制。所述计费装置使得SCP在对通信呼叫业务处理过程中,对OCS的计费处理过程没有依赖,保证SCP的通信呼叫业务处理质量。It can be seen from the embodiments of the present application that the present application is provided with a charging device, the charging device is low-coupling with the communication call service process, and supports the secure transmission of TCP and SCTP. The charging device can analyze the charging processing capability of the OCS in real time, judge the charging processing capability of the OCS, and perform flow control on the OCS. The charging device enables the SCP to have no dependence on the charging processing process of the OCS during the processing of the communication call service, thereby ensuring the processing quality of the communication call service of the SCP.

本申请附图中的流程图和框图,示出了按照本申请公开的各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或者代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应该注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同附图中所标准的顺序发生。例如,两个连接地表示的方框实际上可以基本并行地执行,它们有时也可以按照相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或者流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures of the present application illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments disclosed herein. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the different figures. For example, two blocks shown in connection may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本申请中。特别地,在不脱离本申请精神和教导的情况下,本申请的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,所有这些组合和/或结合均落入本申请公开的范围。Those skilled in the art will appreciate that various combinations and/or combinations of features recited in various embodiments of the present disclosure and/or claims are possible, even if such combinations or combinations are not explicitly described in this application. In particular, various combinations and/or combinations of the features recited in the various embodiments of the present application and/or the claims may be made without departing from the spirit and teachings of the present application, all such combinations and/or combinations falling within Scope of this disclosure.

本文中应用了具体实施例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思路,并不用于限制本申请。对于本领域的技术人员来说,可以依据本申请的思路、精神和原则,在具体实施方式及应用范围上进行改变,其所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The principles and implementations of the present application are described herein by using specific embodiments. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application, and are not intended to limit the present application. For those skilled in the art, changes can be made in the specific embodiments and application scope according to the ideas, spirit and principles of the present application, and any modifications, equivalent replacements, improvements, etc. made by them should be included in the present application. within the scope of protection.

Claims (10)

1. An apparatus for implementing communication charging in a communication network, the apparatus being disposed between an online charging system, OCS, and a service control point, SCP, the apparatus and the SCP interacting based on a transmission control protocol, TCP, and the OCS interacting through TCP or a streaming control protocol, SCTP, the apparatus comprising: a transceiver unit and an analysis unit, wherein,
the receiving and sending unit is configured to package, after receiving core network signaling related to a communication call service from the SCP, a request message based on a diameter protocol, and send the request message to the OCS; receiving a diameter protocol based response message from the OCS;
the analysis unit is configured to, during a communication call service, analyze the charging processing capability of the OCS according to a response message based on a diameter protocol received from the OCS, determine whether to perform flow control on the OCS, if so, perform flow control on the OCS, so that core network signaling related to the call service subsequently sent by the SCP is not forwarded to the OCS, and if not, continue the analysis of the charging processing capability of the OCS.
2. The apparatus of claim 1, wherein the analyzing unit is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the analyzing unit further includes:
calculating the quantity value of unit time for sending the request message based on the diameter protocol in real time, judging whether the quantity value of unit time exceeds the quantity threshold value of the processing request message provided by the charging processing capability of the OCS, and if so, determining to perform flow control on the OCS;
or identifying a timestamp for sending the diameter protocol-based request message, calculating the time length occupied by the OCS for processing the diameter protocol-based request message when the corresponding diameter protocol-based response message is received, counting the number of request messages exceeding a set time length threshold for processing the diameter protocol-based request message by the OCS within a time period, judging whether the number of request messages exceeds the set message processing number threshold, and if so, recording the time period; if the recorded quantity value of the continuous time period exceeds a set time period quantity threshold value, determining to carry out flow control on the OCS;
or identifying the state identifier in the request message based on the diameter protocol, counting the quantity value of the request message based on the diameter protocol with the state identifier of the error state in a time period, judging whether the quantity value exceeds the set threshold value of the quantity of the request messages sent in error, and if so, recording the time period; and if the recorded number of the continuous time periods exceeds a set time period number threshold value, determining to perform flow control on the OCS.
3. The apparatus of claim 1, wherein the transceiver unit is further configured to send an offline ticket message to the SCP when performing flow control on the OCS, and instruct the SCP to interrupt a current communication call service.
4. The apparatus of claim 1, wherein the diameter protocol based request message is an online charging control request CCR;
the response message based on the diameter protocol is an online charging control response CCA;
the core network signaling related to the communication call service is a Session Initiation Protocol (SIP) message, and the interrupted communication call service signaling is an SIP message.
5. A method for implementing communication charging in a communication network, the method comprising:
after receiving core network signaling related to a call service from a Service Control Point (SCP), encapsulating the signaling into a request message based on a diameter protocol, sending the request message to an OCS (online charging system), and receiving a response message based on the diameter protocol sent by the OCS;
in the process of communication call service, according to the core network signaling or the response message based on the diameter protocol, analyzing the charging processing capacity of the OCS, and determining whether to perform flow control on the OCS, if so, performing flow control on the OCS so that the core network signaling related to the call service subsequently sent by the SCP is not forwarded to the OCS; and if not, continuing the analysis process of the OCS charging processing capacity.
6. The method of claim 5, wherein the performing the analysis of the OCS charging processing capabilities to determine whether to flow control the OCS comprises:
calculating the quantity value of unit time for sending the request message based on the diameter protocol in real time, judging whether the quantity value of unit time exceeds the quantity threshold value of the processing request message provided by the charging processing capability of the OCS, and if so, determining to perform flow control on the OCS;
or identifying a timestamp for sending the diameter protocol-based request message, calculating the time length occupied by the OCS for processing the diameter protocol-based request message when the corresponding diameter protocol-based response message is received, counting the number of request messages exceeding a set time length threshold for processing the diameter protocol-based request message by the OCS within a time period, judging whether the number of request messages exceeds the set message processing number threshold, and if so, recording the time period; if the recorded quantity value of the continuous time period exceeds a set time period quantity threshold value, determining to carry out flow control on the OCS;
or identifying the state identifier in the request message based on the diameter protocol, counting the quantity value of the request message based on the diameter protocol with the state identifier of the error state in a time period, judging whether the quantity value exceeds the set threshold value of the quantity of the request messages sent in error, and if so, recording the time period; and if the recorded number of the continuous time periods exceeds a set time period number threshold value, determining to perform flow control on the OCS.
7. The method of claim 5, wherein when controlling the flow of the OCS, further comprising: and sending an offline call ticket message to the SCP, and indicating the SCP to interrupt the current communication call service.
8. The method of claim 5, wherein the diameter protocol based request message is an online charging control request CCR;
the response message based on the diameter protocol is an online charging control response CCA;
the core network signaling related to the communication call service is a Session Initiation Protocol (SIP) message, and the signaling for interrupting the communication call service is an SIP message.
9. A system for implementing communication charging in a communication network, the system comprising: SCP, charging device and OCS, the charging device and the SCP interact based on TCP, and the charging device and the OCS interact through TCP or SCTP, wherein,
the SCP is used for sending core network signaling related to the call service to the charging device;
the charging device is configured to package a request message based on a diameter protocol after receiving core network signaling related to a call service from the SCP, send the request message to the OCS, and receive a response message based on the diameter protocol sent by the OCS; in the process of communication call service, according to core network signaling or response message based on diameter protocol, analyzing the charging processing capacity of the OCS, determining whether to perform flow control on the OCS, if so, performing flow control on the OCS so as to ensure that core network signaling related to the call service and subsequently sent by the SCP is not forwarded to the OCS; if not, continuing the analysis process of the OCS charging processing capacity;
the OCS is used for receiving the diameter protocol-based request message from a charging device and sending the diameter protocol-based response message to the charging device.
10. The system of claim 9, wherein the charging device is further configured to analyze the charging processing capability of the OCS, and when determining whether to perform flow control on the OCS, the method further comprises:
calculating the quantity value of unit time for sending the request message based on the diameter protocol in real time, judging whether the quantity value of unit time exceeds the quantity threshold value of the processing request message provided by the charging processing capability of the OCS, and if so, determining to perform flow control on the OCS;
or identifying a timestamp for sending the diameter protocol-based request message, calculating the time length occupied by the OCS for processing the diameter protocol-based request message when the corresponding diameter protocol-based response message is received, counting the number of request messages exceeding a set time length threshold for processing the diameter protocol-based request message by the OCS within a time period, judging whether the number of request messages exceeds the set message processing number threshold, and if so, recording the time period; if the recorded quantity value of the continuous time period exceeds a set time period quantity threshold value, determining to carry out flow control on the OCS;
or identifying the state identifier in the request message based on the diameter protocol, counting the quantity value of the request message based on the diameter protocol with the state identifier of the error state in a time period, judging whether the quantity value exceeds the set threshold value of the quantity of the request messages sent in error, and if so, recording the time period; and if the recorded number of the continuous time periods exceeds a set time period number threshold value, determining to perform flow control on the OCS.
CN202210093504.7A 2022-01-26 2022-01-26 Device, system and method for implementing communication billing in communication network Active CN114501358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210093504.7A CN114501358B (en) 2022-01-26 2022-01-26 Device, system and method for implementing communication billing in communication network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210093504.7A CN114501358B (en) 2022-01-26 2022-01-26 Device, system and method for implementing communication billing in communication network

Publications (2)

Publication Number Publication Date
CN114501358A true CN114501358A (en) 2022-05-13
CN114501358B CN114501358B (en) 2024-11-15

Family

ID=81474214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210093504.7A Active CN114501358B (en) 2022-01-26 2022-01-26 Device, system and method for implementing communication billing in communication network

Country Status (1)

Country Link
CN (1) CN114501358B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686452A (en) * 2008-09-24 2010-03-31 华为技术有限公司 Method, device and system for charging services
CN101816159A (en) * 2007-11-21 2010-08-25 朗讯科技公司 A method and a device for controlling the overload on the network service device
EP2466787A1 (en) * 2010-12-15 2012-06-20 Alcatel Lucent Dynamic policy-based charging system and method
WO2019068360A1 (en) * 2017-10-06 2019-04-11 Telefonaktiebolaget Lm Ericsson (Publ) Differentiated abatement of charging requests in case of overload at online charging system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101816159A (en) * 2007-11-21 2010-08-25 朗讯科技公司 A method and a device for controlling the overload on the network service device
CN101686452A (en) * 2008-09-24 2010-03-31 华为技术有限公司 Method, device and system for charging services
EP2466787A1 (en) * 2010-12-15 2012-06-20 Alcatel Lucent Dynamic policy-based charging system and method
WO2019068360A1 (en) * 2017-10-06 2019-04-11 Telefonaktiebolaget Lm Ericsson (Publ) Differentiated abatement of charging requests in case of overload at online charging system
CN111164940A (en) * 2017-10-06 2020-05-15 瑞典爱立信有限公司 Differentiated reduction of charging requests in case of overload at an online charging system

Also Published As

Publication number Publication date
CN114501358B (en) 2024-11-15

Similar Documents

Publication Publication Date Title
CN106465084B (en) Billing method, network device and billing system
CN101022348B (en) Method, system and device for realizing online billing
GB2427102A (en) Filtering and viewing real-time call detail records based upon user specific criteria
WO2006015542A1 (en) A method for reducing the load of tpf
GB2427795A (en) Providing an aggregated summary of correlated call detail records in a mobile network
EP2187564A1 (en) Virtual private network charging method and system
CN101227302A (en) Billing method, control device, billing device and billing system
CN101411147A (en) Method for obtaining packet billing information based on session initiation protocol
EP2219359A1 (en) Seamless switching between pre-paid and post-paid charging
CN101160792B (en) Service processing method and system in soft switching network
WO2007006841A1 (en) Quality of a realtime service
CN108476389A (en) Position processing in VOLTE networks
CN100493025C (en) A method for implementing routing through service attributes or according to service charging types
CN114501358A (en) Device, system and method for realizing communication charging in communication network
CN104301880A (en) A Method for Checking Accuracy of Data Service Flow Billing Used in CDMA 2000 Network Mobile Communication System
EP3099013B1 (en) Providing a qoe-dependent charging rate
WO2008071115A1 (en) A charging method for the prepaid user during the cross-network roaming and charging system
CN100514995C (en) Device and method for detecting short message service charging precision facing mobile communication net
CN108574579B (en) A processing method and device for telecommunication billing and telecommunication system
CN118741568A (en) Network quality detection system, method, device and medium
EP3437258A1 (en) Dynamic distribution in an offline charging system
CN101453721B (en) Charging method, system and charging event reporting unit for non-SIP applications in IMS network
US7694180B2 (en) Collecting debug information according to user-driven conditions
CN112866489B (en) CAP signaling-based capability opening system
EP3718271B1 (en) Methods for detecting, managing and relaying a multimedia communication problem, corresponding execution, checking and rule management entities and computer program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant