CN110166965B - Performance early warning method and device of online charging system - Google Patents

Performance early warning method and device of online charging system Download PDF

Info

Publication number
CN110166965B
CN110166965B CN201910332850.4A CN201910332850A CN110166965B CN 110166965 B CN110166965 B CN 110166965B CN 201910332850 A CN201910332850 A CN 201910332850A CN 110166965 B CN110166965 B CN 110166965B
Authority
CN
China
Prior art keywords
time
credit control
consumed
early warning
control response
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.)
Active
Application number
CN201910332850.4A
Other languages
Chinese (zh)
Other versions
CN110166965A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910332850.4A priority Critical patent/CN110166965B/en
Publication of CN110166965A publication Critical patent/CN110166965A/en
Application granted granted Critical
Publication of CN110166965B publication Critical patent/CN110166965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/64On-line charging system [OCS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Meter Arrangements (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a performance early warning method and equipment of an online charging system, wherein the method comprises the following steps: acquiring a Gy interface signaling data packet once every preset time, obtaining credit control request time and credit control response time after analysis, determining current request consumed time according to the credit control request time and the corresponding credit control response time obtained each time, acquiring first target consumed time which is greater than a first preset time threshold value in the current request consumed time and second target consumed time which is greater than a second preset time threshold value in the current request consumed time, determining a first ratio and a second ratio, and triggering early warning of a charging server side if the number of times of continuously obtaining the first ratio which is greater than the first threshold value exceeds a first preset number of times; if the number of times of continuously obtaining the second ratio which is larger than the second threshold value exceeds the second preset number of times is monitored, the charging gateway side is triggered to perform early warning, and the embodiment of the invention can find out the performance change of the online charging system in time.

Description

Performance early warning method and device of online charging system
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a performance early warning method and device of an online charging system.
Background
An Online Charging System (OCS) is a real-time interactive Charging System based on service usage and System, and can solve the problems of real-time credit control of users, real-time Charging of prepaid data service and value-added service, and the like. The existing online charging system mainly comprises a charging gateway and a charging server, and real-time charging is realized between the charging gateway and the charging server through an interactive Gy interface Diameter signaling. At present, with the increase of a great number of online charging users, a charging server often has a condition of response delay, and after the response time exceeds a charging gateway overtime threshold, the charging gateway is retransmitted, and finally the online charging system is crashed, so that the performance of the online charging system needs to be monitored.
At present, the performance monitoring of the online charging system mainly includes that a monitoring device is arranged on a charging gateway side to monitor the charging gateway, monitoring data on the charging gateway side is analyzed to realize early warning on the charging gateway side, a monitoring device is arranged on a charging server side to monitor a charging server, and monitoring data on the charging server side is analyzed to realize early warning on the charging server side.
However, the inventor finds that, in this way, the performance change of the online charging system cannot be timely discovered due to the need of separately monitoring the charging gateway and the charging server.
Disclosure of Invention
The invention provides a performance early warning method and equipment of an online charging system, which can find out the performance change of the online charging system in time.
In a first aspect, the present invention provides a performance early warning method for an online charging system, including:
acquiring a Gy interface signaling data packet once every preset time, and analyzing the Gy interface signaling data packet to obtain credit control request time and credit control response time;
determining the time consumed by the current request according to the credit control request time obtained each time and the corresponding credit control response time;
acquiring a first target consumed time which is greater than a first preset time threshold value and a second target consumed time which is greater than a second preset time threshold value in the current request consumed time, and determining a first ratio of the number of the first target consumed time to the number of all the current request consumed time and a second ratio of the number of the second target consumed time to the number of all the current request consumed time;
if the monitored times of continuously obtaining the first ratio which is larger than the first threshold value exceed a first preset time, triggering early warning of a charging server side; and if the number of times of continuously obtaining a second ratio which is larger than a second threshold value exceeds a second preset number of times, triggering early warning of a charging gateway side.
In a possible implementation manner, the determining that the current request is time-consuming according to the credit control request time obtained each time and the corresponding credit control response time includes:
storing the credit control request time and the credit control response time obtained each time in a database according to a preset index mode;
extracting a preset number of credit control request time and credit control response time from the database;
and determining the time consumed by the current request according to the extracted credit control request time and the corresponding credit control response time.
In one possible implementation manner, the determining that the current request is time-consuming according to the extracted credit control request time and the corresponding credit control response time includes:
matching the extracted credit control request time with the credit control response time;
and determining the difference value between the matched credit control request time and the credit control response time to obtain the time consumed by the current request.
In a possible implementation manner, the storing, in a database, the credit control request time and the credit control response time obtained each time according to a preset index manner includes:
and respectively taking the identification information of the credit control request time and the identification information of the credit control response time as keys and the credit control request time and the credit control response time as values, and storing the credit control request time and the credit control response time obtained each time in a Key Value Key-Value storage database.
In a possible implementation manner, after triggering the charging server side early warning, the method further includes:
and triggering the charging server to carry out reset operation.
In a possible implementation manner, after triggering the charging gateway side early warning, the method further includes:
and triggering the charging gateway to carry out switching or offline operation.
In a second aspect, an embodiment of the present invention provides a performance early warning apparatus for an online charging system, including:
the acquisition module is used for acquiring a Gy interface signaling data packet once every preset time, and analyzing the Gy interface signaling data packet to obtain credit control request time and credit control response time;
the first determining module is used for determining the time consumed by the current request according to the credit control request time obtained each time and the corresponding credit control response time;
a second determining module, configured to obtain a first target consumed time that is greater than a first preset time threshold and a second target consumed time that is greater than a second preset time threshold from the current request consumed time, and determine a first ratio of the number of the first target consumed time to all of the current request consumed times and a second ratio of the number of the second target consumed time to all of the current request consumed times;
the early warning module is used for triggering early warning of a charging server side if the number of times that a first ratio larger than a first threshold value is continuously obtained exceeds a first preset number of times; and if the number of times of continuously obtaining a second ratio which is larger than a second threshold value exceeds a second preset number of times, triggering early warning of a charging gateway side.
In a possible implementation manner, the first determining module is specifically configured to store the credit control request time and the credit control response time obtained each time in a database according to a preset index manner;
extracting a preset number of credit control request time and credit control response time from the database;
and determining the time consumed by the current request according to the extracted credit control request time and the corresponding credit control response time.
In a third aspect, an embodiment of the present invention provides a performance early warning device for an online charging system, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the performance early warning method of the online charging system according to any one of the first aspect of the embodiments of the present invention.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the performance early warning method of an online charging system according to any one of the first aspect of the embodiments of the present invention is implemented.
The method monitors the Gy interface signaling data packet to realize monitoring of the charging gateway and the charging server at the same time, and analyzes the credit control request time and the credit control response time in the Gy interface signaling data packet to realize early warning at the charging gateway side and early warning at the charging server side.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is an architecture diagram of an online charging system according to an embodiment of the present invention;
fig. 2 is an architecture diagram of a performance early warning system of an online charging system according to an embodiment of the present invention;
fig. 3 is a first flowchart of a performance early warning method of an online charging system according to an embodiment of the present invention;
fig. 4 is a flowchart of a performance early warning method of an online charging system according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a performance early-warning device of an online charging system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a performance early warning apparatus of an online charging system according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a performance early warning device of an online charging system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is an architecture diagram of an online charging system according to an embodiment of the present invention, and as shown in fig. 1, the online charging system according to the embodiment of the present invention includes: a terminal 101, a charging gateway 102 and a charging server 103.
The product form of the terminal 101 may be a tablet computer, a notebook computer, a mobile internet device, a palm computer, a desktop computer, a mobile phone or other product form terminals.
The charging Gateway 102 may be a packet data Gateway (PGW), a Gateway GPRS Support Node (GGSN), or other charging Gateway.
The charging server 103 is a charging server mounted on the online charging system. The charging server 103 may comprise a charging processing component for calculation and deduction of charges, etc., and an adapter for message access and overload evaluation, etc.
The online charging implementation process is as follows:
step 1, when a user uses a data service through a terminal 101, an activation request is sent to a charging gateway 102; the charging gateway 102 starts an online charging process, and sends a Credit Control Request (CCR for short) initial Request message to the charging server 103, where the CCR initial Request message carries an MSISDN number of a user.
Step 2, the billing server 103 checks the relevant information of the user according to the MSISDN number of the user carried in the CCR initial request message, and returns a CCA response message to the billing gateway 102 according to a preconfigured policy, notifies the billing gateway 102 that the user is allowed to use the data service, and issues a billing quota to the billing gateway 102 at the same time.
And step 3, the charging gateway 102 returns an activation request to the terminal 101 according to the CCA response message returned by the charging server 103, and the terminal 101 successfully uses the data service.
Step 4, the charging gateway 102 monitors whether the data traffic volume used by the user reaches the current charging quota, and if the data traffic volume used by the user reaches the current charging quota, sends a CCR update request to the charging server 103 to obtain a new charging quota.
Step 5, the billing server 103 checks the relevant information of the user, and returns a CCA update response message to the billing gateway 102 according to a preconfigured policy, if the balance of the user account is 0, the billing gateway 102 is notified in the CCA update response message to stop the data service of the user, if the user account still has balance, a new billing quota can be generated and sent to the billing gateway 102 through the CCA update message, and step 4 and step 5 are repeatedly executed, thereby implementing online billing of the data service.
In the online charging process, Gy interface Diameter signaling is frequently interacted between the charging gateway 102 and the charging server 103, and the early warning of the charging gateway 102 and the charging server 103 is realized by monitoring the Gy interface Diameter signaling.
Fig. 2 is an architecture diagram of a performance early warning system of an online charging system according to an embodiment of the present invention, and as shown in fig. 2, the performance early warning system of the online charging system in the embodiment includes: the early warning server 201 and the online charging system 202 are connected, and the early warning server 201 and the online charging system 202 are connected through a network 203. Among them, the online charging system is composed of a terminal 101, a charging gateway 102, and a charging server 103 shown in fig. 1.
The early warning server 201 may be a desktop server, a cloud server, or a server cluster formed by multiple servers. The early warning server 201 monitors the online charging system 202 to realize performance early warning of the online charging system.
The embodiment of the invention provides a performance early warning method of an online charging system based on the system architecture shown in fig. 2 or a system architecture similar to the system architecture, and the method realizes early warning of the charging gateway 102 and the charging server 103 by monitoring a Gy interface Diameter signaling, so that the performance change of the online charging system can be found in time.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a first flowchart of a performance early warning method of an online charging system according to an embodiment of the present invention, where an execution main body of the embodiment is an early warning server in fig. 2. As shown in fig. 3, the method of this embodiment may include:
step S301, acquiring a Gy interface signaling data packet once every preset time, and analyzing the Gy interface signaling data packet to obtain a credit control request time and a credit control response time.
In the embodiment of the present invention, the preset time may be set empirically, where the empirically setting may be to obtain the preset time set by the user, and after obtaining the preset time set by the user, the preset time is stored in the memory. The preset time is not too long, so that when a problem occurs in the charging gateway or the charging server, the problem can be found in time and early warning is performed, for example, the preset time may be set to 1 second, and a Gy interface signaling data packet is acquired every 1 second. It should be understood that the Gy interface signaling packets may also be acquired in real time.
Because the online charging system simultaneously realizes the online charging of massive users, the Gy interface signaling data packet comprises a plurality of signaling, and the Gy interface signaling data packet is analyzed according to a Gy application layer to obtain a plurality of CCR messages and corresponding credit control request time and CCA messages and corresponding credit control response time.
In the online charging process, the terminal sends an activation request to the charging gateway, the charging gateway sends a CCR message to the charging server, and the charging server returns a CCA message to the charging gateway. Credit control request time refers to the timestamp at which the charging gateway sends the CCR message to the charging server. The credit control response time refers to a timestamp of the CCA message returned by the billing server to the billing gateway.
Step S302, determining the time consumed by the current request according to the credit control request time obtained each time and the corresponding credit control response time.
In the embodiment of the invention, after analyzing the Gy interface signaling data packet obtained each time, a plurality of credit control request times and credit control response times are obtained, the difference between the credit control response time and the corresponding credit control request time is the request consumed time, that is, the request consumed time is the time interval of returning CCA message to the charging gateway after the charging server receives the CCR message.
Step S303, obtaining a first target consumed time greater than a first preset time threshold and a second target consumed time greater than a second preset time threshold from the current request consumed time, and determining a first ratio between the number of the first target consumed time and all the current request consumed time, and a second ratio between the number of the second target consumed time and all the current request consumed time.
In the embodiment of the present invention, the first preset time threshold and the second preset time threshold may be set empirically, where the empirical setting may be to obtain the first preset time threshold or the second preset time threshold set by the user, and after the preset time set by the user is obtained, the first preset time threshold or the second preset time threshold is stored in the memory. For example, the first preset time threshold is set to 15 seconds, and the second preset time threshold is set to 25 seconds.
Step S304, if the number of times of continuously obtaining the first ratio which is larger than the first threshold value exceeds a first preset number of times, triggering early warning of a charging server side; and if the number of times of continuously obtaining a second ratio which is larger than a second threshold value exceeds a second preset number of times, triggering early warning of a charging gateway side.
In the embodiment of the present invention, the first threshold and the second threshold may be the same or different, and the first preset number and the second preset number may be the same or different, and the embodiment of the present invention is not particularly limited. The first threshold, the second threshold, the first preset number of times and the second preset number of times can be set empirically. Monitoring the Gy interface signaling data packet, wherein each monitoring obtains a first ratio and a second ratio, if the times of continuously obtaining the first ratio which is greater than a first threshold value exceed a first preset time, triggering early warning of a charging server side, and if the times of continuously obtaining the second ratio which is greater than a second threshold value exceed a second preset time, triggering early warning of a charging gateway side. For example, if the first ratio is greater than 1/2 for 5 times continuously, the billing server side is triggered to perform early warning, and if the second ratio is greater than 1/2 for 10 times continuously, the billing gateway side is triggered to perform early warning.
The early warning of the charging server side or the early warning of the charging gateway side can be triggered by sending the early warning information to a manager terminal or triggering an alarm of the charging server side or an alarm of the charging gateway side.
The embodiment of the invention realizes the simultaneous monitoring of the charging gateway and the charging server by monitoring the Gy interface signaling data packet, realizes the early warning of the charging gateway side and the early warning of the charging server side by analyzing the credit control request time and the credit control response time in the Gy interface signaling data packet, and can find out in time when the charging gateway or the charging service has problems so as to avoid the breakdown of an online charging system.
Fig. 4 is a second flowchart of a performance early warning method of an online charging system according to an embodiment of the present invention, where on the basis of the embodiment shown in fig. 3, a possible implementation manner of step S102 is described in detail in the embodiment of the present invention, and as shown in fig. 4, the method according to this embodiment may include:
step S401, storing the credit control request time and the credit control response time obtained each time in a database according to a preset index manner.
In the embodiment of the present invention, the database may be a relational database, for example, the database may be MySQL, SQL Server, Oracle, Sybase, DB2, etc. Different databases correspond to different indexing modes. In a possible implementation manner, the database is MySQL, the Key-Value form is adopted for storage, the identification information of the credit control request time and the identification information of the credit control response time are respectively used as keys, the credit control request time and the credit control response time are used as values, and the credit control request time and the credit control response time obtained each time are stored in the Key-Value storage database. The Key-Value storage database can realize the function of quick search.
Step S402, extracting a preset number of credit control request time and credit control response time from the database.
In the embodiment of the present invention, since a large amount of credit control request time and credit control response time are obtained after analyzing the Gy interface signaling data packet obtained each time, sampling needs to be performed from a large amount of data, and a preset amount of credit control request time and credit control response time are extracted. The sampling method may be random sampling, or may be other sampling methods, and the embodiment of the present invention is not particularly limited.
And step S403, determining the time consumed by the current request according to the extracted credit control request time and the corresponding credit control response time.
In the embodiment of the invention, after the credit control request time and the credit control response time are extracted, the extracted credit control request time and the extracted credit control response time are in one-to-one correspondence, and the time consumed by the current request is determined according to the corresponding credit control request time and the corresponding credit control time.
In a possible implementation manner, a specific implementation manner of step S403 includes:
matching the extracted credit control request time with the credit control response time;
and determining the difference value between the matched credit control request time and the credit control response time to obtain the time consumed by the current request.
In the embodiment of the invention, the credit control request time and the credit control response time both carry identification information, and the matching between the credit control request time and the credit control response time can be realized by matching the identification information.
According to the embodiment of the invention, the credit control request time and the credit control response time obtained each time are stored in the database according to a preset index mode, the credit control request time and the credit control response time in a preset number are extracted from the database, and the time consumed by the current request is determined according to the extracted credit control request time and the corresponding credit control response time, so that the number of processed data is reduced, and early warning can be quickly realized.
As an embodiment of the present invention, after triggering the charging server-side warning in step S304, the method further includes:
and triggering the charging server to carry out reset operation.
In the embodiment of the present invention, the resetting operation performed by the charging server refers to resetting the configuration parameters of the charging server. One possible implementation manner for triggering the charging server to perform the reset operation includes: and sending the reset parameters to the charging server, and according to the configuration parameters corresponding to the reset parameters, the charging server.
The embodiment of the invention carries out the reset operation by triggering the charging server, does not need manual operation and saves manpower.
As an embodiment of the present invention, after triggering the charging gateway side early warning in step S304, the method further includes:
and triggering the charging gateway to carry out switching or offline operation.
In the embodiment of the present invention, the charging gateway switching operation refers to switching the current charging gateway to a new charging gateway. One possible implementation manner for triggering the charging gateway to perform the handover operation includes: and acquiring a protocol IP address of the switching gateway, and sending the protocol IP address to the terminal and the charging server to enable the terminal and the charging server to establish data connection with the switching gateway according to the IP address.
One possible implementation manner for triggering the charging gateway to perform the handover operation includes: and sending an offline instruction to the charging gateway, and carrying out offline operation by the charging gateway according to the offline instruction.
The embodiment of the invention switches or performs off-line operation by triggering the charging gateway, does not need manual operation, and saves manpower.
Fig. 5 is a schematic structural diagram of a performance early-warning device of an online charging system according to an embodiment of the present invention, as shown in fig. 5, a performance early-warning device 500 of an online charging system according to an embodiment of the present invention includes: the system comprises an acquisition module 501, a first determination module 502, a second determination module 503 and an early warning module 504, wherein the specific functions of the modules are as follows:
an obtaining module 501, configured to obtain a Gy interface signaling data packet once every preset time, and analyze the Gy interface signaling data packet to obtain a credit control request time and a credit control response time.
The first determining module 502 is configured to determine that the current request is time-consuming according to the credit control request time obtained each time and the corresponding credit control response time.
A second determining module 503, configured to obtain a first target consumed time that is greater than a first preset time threshold and a second target consumed time that is greater than a second preset time threshold in the current request consumed time, and determine a first ratio of the number of the first target consumed time to the number of all current request consumed times, and a second ratio of the number of the second target consumed time to the number of all current request consumed times.
The early warning module 504 is configured to trigger a charging server side early warning if it is monitored that the number of times of continuously obtaining the first ratio greater than the first threshold exceeds a first preset number of times; and if the number of times of continuously obtaining a second ratio which is larger than a second threshold value exceeds a second preset number of times, triggering early warning of a charging gateway side.
Fig. 6 is a structural schematic diagram of a performance early warning apparatus of an online charging system according to an embodiment of the present invention, as shown in fig. 6, based on the embodiment shown in fig. 5, a first determining module 502 in this embodiment includes: a storage unit 5021, a sampling unit 5022 and a determination unit 5023.
The storage unit 5021 is used for storing the credit control request time and the credit control response time obtained each time in a database according to a preset index mode.
The sampling unit 5022 is used for extracting a preset number of credit control request time and credit control response time from the database.
The determining unit 5023 is used for determining that the current request is time-consuming according to the extracted credit control request time and the corresponding credit control response time.
As an embodiment of the present invention, the determining unit 5023 is specifically configured to match the extracted credit control request time with the credit control response time;
and determining the difference value between the matched credit control request time and the credit control response time to obtain the time consumed by the current request.
As an embodiment of the present invention, the storage unit 5021 is specifically configured to store the credit control request time and the credit control response time obtained each time in a Key Value Key-Value storage database, with the identification information of the credit control request time and the identification information of the credit control response time as keys and the credit control request time and the credit control response time as values, respectively.
As an embodiment of the present invention, after triggering the billing server side early warning, the early warning module 504 of this embodiment is further configured to trigger the billing server to perform a reset operation.
As an embodiment of the present invention, after triggering the charging gateway side early warning, the early warning module 504 of this embodiment is further configured to trigger the charging gateway to perform a handover or an offline operation.
The apparatus of the present embodiment may be used to implement the method embodiments shown in fig. 3 to fig. 4, which have similar implementation principles and technical effects, and are not described herein again.
Fig. 7 is a schematic diagram of a hardware structure of a performance early warning device of an online charging system according to an embodiment of the present invention. As shown in fig. 7, the performance early warning apparatus 700 of the online charging system provided in this embodiment includes: at least one processor 701 and a memory 702. The performance warning apparatus 700 of the online charging system further includes a communication section 703. The processor 701, the memory 702, and the communication section 703 are connected by a bus 704.
In a specific implementation process, the at least one processor 701 executes the computer-executable instructions stored in the memory 702, so that the at least one processor 701 executes the performance early warning method of the online charging system in any method embodiment described above. The communication component 703 is used for communicating with the terminal device and/or the server.
For a specific implementation process of the processor 701, reference may be made to the above method embodiments, which implement principles and technical effects similar to each other, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 7, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the performance early warning method of the online charging system in any method embodiment is implemented.
The computer-readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A performance early warning method of an online charging system is characterized in that the online charging system comprises a charging gateway and a charging server, is applied to an early warning server and comprises the following steps:
acquiring a Gy interface signaling data packet once every preset time, and analyzing the Gy interface signaling data packet to obtain credit control request time and credit control response time;
determining the time consumed by the current request according to the credit control request time obtained each time and the corresponding credit control response time;
acquiring a first target consumed time which is greater than a first preset time threshold value and a second target consumed time which is greater than a second preset time threshold value in the current request consumed time, and determining a first ratio of the number of the first target consumed time to the number of all the current request consumed time and a second ratio of the number of the second target consumed time to the number of all the current request consumed time;
if the monitored times of continuously obtaining the first ratio which is larger than the first threshold value exceed a first preset time, triggering early warning of a charging server side; if the number of times of continuously obtaining a second ratio which is larger than a second threshold value exceeds a second preset number of times, triggering early warning of a charging gateway side;
the determining that the current request consumes time according to the credit control request time obtained each time and the corresponding credit control response time comprises the following steps:
storing the credit control request time and the credit control response time obtained each time in a database according to a preset index mode;
extracting a preset number of credit control request time and credit control response time from the database;
determining the time consumed by the current request according to the extracted credit control request time and the corresponding credit control response time;
the determining the time consumed by the current request according to the extracted credit control request time and the corresponding credit control response time comprises the following steps:
matching the extracted credit control request time with the credit control response time;
and determining the difference value between the matched credit control request time and the credit control response time to obtain the time consumed by the current request.
2. The method of claim 1, wherein storing each obtained credit control request time and credit control response time in a database according to a preset index manner comprises:
and respectively taking the identification information of the credit control request time and the identification information of the credit control response time as keys and the credit control request time and the credit control response time as values, and storing the credit control request time and the credit control response time obtained each time in a Key Value Key-Value storage database.
3. The method of claim 1, wherein after triggering the billing server-side alert, further comprising:
and triggering the charging server to carry out reset operation.
4. The method of claim 1, wherein after triggering the billing gateway side pre-alarm, further comprising:
and triggering the charging gateway to carry out switching or offline operation.
5. The utility model provides a performance early warning device of online charging system, its characterized in that, online charging system includes charging gateway and charging server, is applied to early warning server, includes:
the acquisition module is used for acquiring a Gy interface signaling data packet once every preset time, and analyzing the Gy interface signaling data packet to obtain credit control request time and credit control response time;
the first determining module is used for determining the time consumed by the current request according to the credit control request time obtained each time and the corresponding credit control response time;
a second determining module, configured to obtain a first target consumed time that is greater than a first preset time threshold and a second target consumed time that is greater than a second preset time threshold from the current request consumed time, and determine a first ratio of the number of the first target consumed time to all of the current request consumed times and a second ratio of the number of the second target consumed time to all of the current request consumed times;
the early warning module is used for triggering early warning of a charging server side if the number of times that a first ratio larger than a first threshold value is continuously obtained exceeds a first preset number of times; if the number of times of continuously obtaining a second ratio which is larger than a second threshold value exceeds a second preset number of times, triggering early warning of a charging gateway side;
a first determination module further configured to:
storing the credit control request time and the credit control response time obtained each time in a database according to a preset index mode;
extracting a preset number of credit control request time and credit control response time from the database;
determining the time consumed by the current request according to the extracted credit control request time and the corresponding credit control response time;
a first determination module further configured to:
matching the extracted credit control request time with the credit control response time;
and determining the difference value between the matched credit control request time and the credit control response time to obtain the time consumed by the current request.
6. A performance early warning device of an online charging system, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the performance alerting method of the online charging system of any of claims 1-4.
7. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method for performance pre-warning of an online charging system according to any one of claims 1 to 4 is implemented.
CN201910332850.4A 2019-04-24 2019-04-24 Performance early warning method and device of online charging system Active CN110166965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910332850.4A CN110166965B (en) 2019-04-24 2019-04-24 Performance early warning method and device of online charging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910332850.4A CN110166965B (en) 2019-04-24 2019-04-24 Performance early warning method and device of online charging system

Publications (2)

Publication Number Publication Date
CN110166965A CN110166965A (en) 2019-08-23
CN110166965B true CN110166965B (en) 2021-05-18

Family

ID=67638680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910332850.4A Active CN110166965B (en) 2019-04-24 2019-04-24 Performance early warning method and device of online charging system

Country Status (1)

Country Link
CN (1) CN110166965B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398281A (en) * 2022-01-18 2022-04-26 北京自如信息科技有限公司 Application interface time consumption testing method and system and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783846A (en) * 2009-01-15 2010-07-21 中兴通讯股份有限公司 Charging service processing method and charging gateway
US8620263B2 (en) * 2010-10-20 2013-12-31 Tekelec, Inc. Methods, systems, and computer readable media for diameter routing agent (DRA) based credit status triggered policy control
CN102487323B (en) * 2010-12-02 2014-10-22 中兴通讯股份有限公司 Online charging service processing method, gateway and system
CN105530110B (en) * 2014-09-30 2019-07-23 华为技术有限公司 A kind of network fault detecting method and related network elements
CN106465084B (en) * 2015-06-30 2020-02-21 华为技术有限公司 Charging method, network equipment and charging system
CN105142126B (en) * 2015-08-10 2018-06-22 北京思特奇信息技术股份有限公司 A kind of abnormal user message hold-up interception method and system
CN106685672B (en) * 2015-11-11 2019-09-20 中国联合网络通信集团有限公司 A kind of online charging method and device
CN107809551B (en) * 2016-09-09 2021-02-12 华为技术有限公司 Method for controlling processing load of telecommunication service and related device and system
CN108540533B (en) * 2018-03-14 2021-01-22 聚好看科技股份有限公司 Request answering method and device

Also Published As

Publication number Publication date
CN110166965A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110362455B (en) Data processing method and data processing device
CN112311617A (en) Configured data monitoring and alarming method and system
CN109672582B (en) Full path monitoring method, device, storage medium and device
US20220394134A1 (en) Method and Apparatus for Information Exchange in Online Charging
CN109800204B (en) Data distribution method and related product
CN111538563A (en) Event analysis method and device for Kubernetes
CN111290696A (en) Flow control method and device for application program assembly
CN110688277A (en) Data monitoring method and device for micro-service framework
CN111181799A (en) Network traffic monitoring method and equipment
CN107306200B (en) Network fault early warning method and gateway for network fault early warning
CN110166965B (en) Performance early warning method and device of online charging system
CN105471938B (en) Server load management method and device
CN111026606A (en) Alarm method and device based on hystrix fuse monitoring and computer equipment
CN104883705A (en) Problem positioning method for data service complaints and device thereof
CN108024222B (en) Traffic ticket generating method and device
CN107797924B (en) SQL script abnormity detection method and terminal thereof
CN109218062B (en) Internet service alarm method and device based on confidence interval
CN108023741B (en) Monitoring resource use method and server
CN110768934A (en) Method and device for checking network access rule
CN110827108A (en) Information searching method, searching request control method and system
KR20180047079A (en) Method and apparatus for detrmining event level of monitoring result
CN108353257B (en) Charging method, control plane network element, forwarding plane network element and charging system
CN114867050A (en) Vehicle flow detection method, device, system, equipment and storage medium
CN112131276A (en) Data statistics method, electronic equipment and readable storage medium
CN112148508A (en) Information processing method and related device

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