A multi-level snapshot-based abnormal call record quick automatic compensation method and system
The tree structure designed with multi-level snapshot technology automatically processes abnormal call detail records, solving the problem of time-consuming and costly traditional manual processing. It achieves fast and accurate compensation, improves user experience, and reduces operating costs.
Patent Information
- Application Number
- CN202411744389.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-30
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-11-30
AI Technical Summary
In existing technologies, handling abnormal call detail records requires manual intervention, which is time-consuming and resource-intensive, leading to billing errors and a decline in user experience.
A multi-level snapshot technology is adopted, and a tree-structured data structure is designed. Abnormal call detail records are saved through snapshot nodes, and automatic compensation is performed by traversing the snapshot tree upwards during compensation. Combined with preset rules and snapshot management, accuracy and completeness are ensured.
It improves processing efficiency, reduces manual intervention, ensures billing accuracy, enhances user satisfaction, and reduces operating costs.
Smart Images

Figure CN119835137B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, especially to the technical field of automatic processing of abnormal CDRs, and particularly relates to a multi-level snapshot-based method and system for quickly and automatically compensating abnormal CDRs, an electronic device, and a storage medium. BACKGROUND
[0002] In a communication network, abnormal CDRs may be generated due to various reasons such as network failures, device failures, fraudulent behavior, etc. These abnormal CDRs may contain incorrect information, incomplete records, or data that does not comply with business rules. If these abnormal CDRs are not processed and repaired, they may lead to billing errors, quality issues, and adverse effects on user experience and operator business.
[0003] Traditionally, automatic processing of abnormal CDRs requires reprocessing each link, which consumes time and resources.
[0004] Abnormal CDR (Abnormal CDR): An abnormal or incorrect CDR record generated in a communication network. A CDR is a data record that records communication activities in a communication network, and an abnormal CDR may contain incorrect information or incomplete records.
[0005] Automatic compensation (Automatic Compensation): refers to automatically performing compensation operations in a system to correct or repair problems with abnormal CDRs.
[0006] Multi-level snapshot (Multi-level Snapshot): using multiple levels of snapshots in a system to record and manage the state of data. A snapshot is a copy or record of data that captures the state of data at a certain point in time.
[0007] Therefore, how to provide a multi-level snapshot-based method and system for quickly and automatically compensating abnormal CDRs, an electronic device, and a storage medium has become a technical problem that needs to be solved in the field. SUMMARY
[0008] The purpose of the present application is to provide a multi-level snapshot-based method and system for quickly and automatically compensating abnormal CDRs, an electronic device, and a storage medium.
[0009] According to a first aspect of the present application, a multi-level snapshot-based method and system for quickly and automatically compensating abnormal CDRs are provided, comprising,
[0010] Step S1: designing the data structure of abnormal CDRs; using a tree structure, designing the data structure of multi-level snapshots to obtain a snapshot tree;
[0011] Step S2: processing the collected CDRs according to the preset rules, and marking the CDRs that do not comply with the rules at a certain link as abnormal CDRs;
[0012] Step S3, when detecting the abnormal call bill, creating a new snapshot node, and saving the abnormal call bill into the snapshot node, obtaining an abnormal node;
[0013] Step S4, when needing to compensate the abnormal call bill, taking the abnormal node as a source point, traversing the snapshot tree upwards, and performing automatic compensation operation; after the automatic compensation operation is completed, verifying the accuracy and integrity of the automatic compensation operation result;
[0014] Step S5, periodically cleaning up expired snapshot nodes, so as to reduce the occupation of storage space.
[0015] According to the method of the first aspect of the application, in the step S1, the data structure of the abnormal call bill comprises:
[0016] An information field and a state field of the abnormal call bill are recorded.
[0017] According to the method of the first aspect of the application, in the step S1, the data structure of the multi-level snapshot designed using the tree structure comprises:
[0018] Each node of the tree structure represents a snapshot, and the connection between the nodes represents the relationship between the snapshots in the form of in-order traversal.
[0019] According to the method of the first aspect of the application, in the step S4, when needing to compensate the abnormal call bill, taking the abnormal node as a source point, traversing the snapshot tree upwards, and performing automatic compensation operation comprises:
[0020] If the abnormal node has a left child, starting the compensation operation from the left child node, otherwise finding the nearest father node of the abnormal node, and then starting the compensation operation from the father node.
[0021] The second aspect of the application discloses an abnormal call bill fast automatic compensation system based on multi-level snapshots; the system comprises:
[0022] A first processing module configured to design a data structure of an abnormal call bill; and design a data structure of a multi-level snapshot using a tree structure, obtaining a snapshot tree;
[0023] A second processing module configured to process the collected call bills according to a preset rule, and mark the call bills of a certain link not meeting the rule as abnormal call bills;
[0024] A third processing module configured to, when detecting an abnormal call bill, create a new snapshot node, and save the abnormal call bill into the snapshot node, obtaining an abnormal node;
[0025] The fourth processing module is configured to, when compensation for the abnormal call record is needed, take the abnormal node as a source point, traverse the snapshot tree upwards, and perform automatic compensation operation; and verify the accuracy and integrity of the automatic compensation operation result after the automatic compensation operation is completed.
[0026] The fifth processing module is configured to periodically clean up expired snapshot nodes to reduce the occupation of storage space.
[0027] According to the system of the second aspect of the present application, the first processing module is configured to, the data structure of the abnormal call record comprises:
[0028] record the information field and the state field of the abnormal call record.
[0029] According to the system of the second aspect of the present application, the first processing module is configured to, the data structure of the abnormal call record comprises:
[0030] Each node of the tree structure represents a snapshot, and the connection between the nodes represents the relationship between the snapshots in the form of in-order traversal.
[0031] According to the system of the second aspect of the present application, the fourth processing module is configured to, when compensation for the abnormal call record is needed, take the abnormal node as a source point, traverse the snapshot tree upwards, and perform automatic compensation operation.
[0032] If the abnormal node has a left child, the compensation operation is started from the left child node, otherwise the nearest father node of the abnormal node is found, and then the compensation operation is started from the father node.
[0033] According to the third aspect of the present application, an electronic device is shown, which comprises a processor, a memory for storing processor-executable instructions, wherein the processor is configured to execute the method of any of the above aspects.
[0034] According to the fourth aspect of the present application, a non-transitory computer readable storage medium is shown, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the method of any of the above aspects.
[0035] In the fifth aspect, a computer program product is shown, when the instructions in the computer program product are executed by the processor of the electronic device, the electronic device can execute the method of any of the above aspects.
[0036] The technical solution provided by the present application can include the following beneficial effects:
[0037] From the above scheme, the embodiment of the application provides a multi-level snapshot-based abnormal call bill fast automatic compensation method, system, electronic equipment and storage medium, which has the following beneficial effects:
[0038] Improve processing efficiency: the traditional abnormal call bill processing method is to store the detected call bill and then reprocess it at a set time period. This method reprocesses the abnormal call bill through each processing link, which is time-consuming. The present method stores the processing results of the last link of each link in snapshot, and only needs to select the snapshot of the nearest node for processing when reprocessing, thereby improving the processing speed.
[0039] Improve billing accuracy: abnormal call bills may occur at each link of the call bill processing, including information errors, incomplete information, and failed pricing. If these problems are not processed and repaired, it may cause billing errors. The purpose of the present application is to provide accurate compensation operation by preset rules, combined with multi-level snapshot management and recovery mechanism, to ensure that abnormal call bills are correctly and quickly repaired, thereby avoiding potential problems and risks.
[0040] Improve user satisfaction: abnormal call bills may reduce user satisfaction and cause complaints. By quickly processing and repairing abnormal call bills, users can obtain accurate and reliable communication services, avoiding complaints and other problems caused by abnormal call bills.
[0041] Reduce operating costs: traditional manual processing of abnormal call bills requires a lot of time and resources. By using the multi-level snapshot-based automatic compensation method, manual intervention is reduced, thereby reducing the operating costs. BRIEF DESCRIPTION OF DRAWINGS
[0042] Figure 1 A flowchart of a multi-level snapshot-based abnormal call bill fast automatic compensation method according to an embodiment is provided;
[0043] Figure 2 A multi-level snapshot tree diagram according to an embodiment is provided;
[0044] Figure 3 An abnormal call bill automatic compensation overall architecture diagram is provided;
[0045] Figure 4 An abnormal call bill automatic processing flowchart according to an embodiment of the present application is provided;
[0046] Figure 5 A structure diagram of a multi-level snapshot-based abnormal call bill fast automatic compensation system according to an embodiment of the present application is provided;
[0047] Figure 6 A structure diagram of an electronic device according to an embodiment of the present application is provided;
[0048] Figure 7 A block diagram of a computer readable storage medium according to an embodiment of the present application. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0050] In a communication network, due to various reasons such as network failure, equipment failure, fraudulent behavior, etc., abnormal call records may be generated. These abnormal call records may contain incorrect information, incomplete records, or data that do not comply with business rules. If these abnormal call records are not processed and repaired, they may cause billing errors, quality problems, and adverse effects on user experience and operator business. Traditionally, processing abnormal call records usually requires manual intervention, which consumes time and resources. In order to improve efficiency and accuracy, the present application proposes a multi-level snapshot-based abnormal call record fast automatic compensation method, which can automatically repair problems in abnormal call records according to predefined rules, reduce the need for manual intervention, and provide faster and more accurate compensation operations.
[0051] Embodiment 1:
[0052] According to a first aspect of the present application, a multi-level snapshot-based abnormal call record fast automatic compensation method is disclosed. Figure 1 As shown in the flowchart of the multi-level snapshot-based abnormal call record fast automatic compensation method according to an embodiment of the present application, Figure 1 The method comprises the following steps:
[0053] Step S1, design the data structure of abnormal call records; use a tree structure to design the data structure of multi-level snapshots, and obtain a snapshot tree;
[0054] Step S2, process the collected call records according to a preset rule, and mark the call records that do not comply with the rule at a certain link as abnormal call records;
[0055] Step S3, when an abnormal call record is detected, create a new snapshot node, and save the abnormal call record into the snapshot node to obtain an abnormal node;
[0056] Step S4, when it is necessary to compensate for the abnormal call record, take the abnormal node as a source point, traverse the snapshot tree upwards, and perform an automatic compensation operation; after the automatic compensation operation is completed, verify the accuracy and integrity of the automatic compensation operation result;
[0057] Step S5, periodically clean up expired snapshot nodes to reduce the occupation of storage space.
[0058] In step S1, the data structure of the abnormal call bill is designed; using a tree structure, the data structure of multi-level snapshots is designed, and a snapshot tree is obtained, as shown in Figure 2 .
[0059] In some embodiments, in the step S1, the data structure of the abnormal call bill includes:
[0060] The information field and the state field of the abnormal call bill are recorded, such as the bill number, time, cost, etc.
[0061] The use of a tree structure to design the data structure of multi-level snapshots includes:
[0062] Each node of the tree structure represents a snapshot, and the connection between the nodes represents the relationship between the snapshots in the form of in-order traversal.
[0063] In step S3, when an abnormal call bill is detected, a new snapshot node is created, and the abnormal call bill is saved to the snapshot node, obtaining an abnormal node.
[0064] Specifically, the newly created snapshot node is connected with the previous snapshot node to form a tree structure of multi-level snapshots.
[0065] In step S4, when the abnormal call bill needs to be compensated, the abnormal node is taken as the source point, and the snapshot tree is traversed upwards to perform automatic compensation operation; after the automatic compensation operation is completed, the accuracy and integrity of the automatic compensation operation result are verified.
[0066] In some embodiments, in the step S4, the abnormal call bill needs to be compensated, and the abnormal node is taken as the source point to traverse the snapshot tree upwards to perform automatic compensation operation, including:
[0067] If the abnormal node has a left child, the compensation operation starts from the left child node, otherwise the nearest father node of the abnormal node is found, and then the compensation operation starts from the father node.
[0068] Specifically, the compensated data is verified to ensure that the abnormal call bill is correctly repaired. After confirming that the compensation result is correct, the state of the compensated data is saved and updated.
[0069] In step S5, expired snapshot nodes are periodically cleaned up to reduce the occupation of storage space.
[0070] Specifically, the state of the snapshot tree is monitored to ensure the relationship and integrity between the snapshots. According to the requirements, the snapshot retention strategy is set, such as retaining the last N snapshots or retaining the snapshots within a specific time period.
[0071] In summary, the scheme proposed by the present application designs a multi-level snapshot technology, which can effectively record and manage the historical state and repair process of abnormal call records through the tree-shaped data structure of multi-level snapshots. Multi-level snapshots can provide flexible recovery and compensation capabilities, and specific snapshot nodes can be selected for recovery according to requirements, avoiding full data recovery and processing. Snapshot creation and recovery techniques are used. The snapshot creation technique can create a new snapshot node when an abnormal call record is detected, and save the current abnormal call record information to the node. The snapshot recovery technique can traverse the tree upwards level by level according to the selected snapshot node, apply the abnormal call record information recorded in each snapshot node to the current data state, and perform compensation operations.
[0072] 1) Automation, the abnormal call record automatic compensation method and system based on multi-level snapshots can realize automatic abnormal call record monitoring, snapshot creation, snapshot recovery and compensation operations, greatly reducing the workload and error rate of manual intervention.
[0073] 2) Fast recovery, by selecting appropriate snapshot nodes for recovery, abnormal call records can be quickly recovered, and the data processing time during the recovery process is reduced.
[0074] 3) Data integrity and accuracy, multi-level snapshot technology can ensure the complete recording of the historical state and repair process of abnormal call records, ensuring data accuracy and consistency.
[0075] 4) Traceability, multi-level snapshots record the historical state and repair process of abnormal call records, providing traceability, making it easy to track and audit abnormal call record processing.
[0076] Embodiment 2:
[0077] The present application discloses a kind of based on multi-level snapshot's abnormal call record fast automatic compensation system. Figure 5 For the structure diagram of a kind of based on multi-level snapshot's abnormal call record fast automatic compensation system according to the embodiment of the present application;As shown in Figure 5 The system 100 includes:
[0078] The first processing module 101 is configured to design the data structure of abnormal call records;Using tree structure, the data structure of multi-level snapshots is designed, and snapshot tree is obtained;
[0079] The second processing module 102 is configured to process the call according to the preset rule, and mark the call of some link as abnormal call record if it does not comply with the rule.
[0080] The third processing module 103 is configured to create a new snapshot node when detecting the abnormal call record and save the abnormal call record into the snapshot node to obtain an abnormal node.
[0081] The fourth processing module 104 is configured to perform automatic compensation operation by traversing the snapshot tree upwards from the abnormal node when compensation of the abnormal call record is needed and verify the accuracy and integrity of the automatic compensation operation result after the automatic compensation operation is completed.
[0082] The fifth processing module 105 is configured to clean up expired snapshot nodes periodically to reduce the storage space occupation.
[0083] According to the system of the second aspect of the present application, the first processing module 101 is specifically configured to the data structure of the abnormal call record includes:
[0084] The information field and the state field of the abnormal call record are recorded, such as the call record number, time, cost and the like.
[0085] The snapshot tree is obtained by using the tree structure to design the data structure of the multi-level snapshot.
[0086] Each node of the tree structure represents a snapshot, and the connection between the nodes represents the relationship between the snapshots in the form of in-order traversal.
[0087] According to the system of the second aspect of the present application, the third processing module 103 is specifically configured to connect the newly created snapshot node with the previous snapshot node to form the tree structure of the multi-level snapshot.
[0088] According to the system of the second aspect of the present application, the fourth processing module 104 is specifically configured to the automatic compensation operation by traversing the snapshot tree upwards from the abnormal node when compensation of the abnormal call record is needed includes:
[0089] If the abnormal node has a left child, the compensation operation is started from the left child node, otherwise the nearest father node of the abnormal node is found and then the compensation operation is started from the father node.
[0090] Specifically, the compensated data is verified to ensure that the abnormal call record is correctly repaired. After confirming that the compensation result is correct, the compensated data state is saved and updated. The specific compensation system is shown in Figure 3 and Figure 4 .
[0091] According to the system of the second aspect of the present application, the fifth processing module 105 is specifically configured to monitor the state of the snapshot tree, and ensure the relationship and integrity between snapshots. According to requirements, a snapshot retention policy is set, such as retaining the latest N snapshots or retaining snapshots within a specific time period.
[0092] It should be noted that, for the method embodiments, in order to simply describe, they are all described as a series of action combinations, but those skilled in the art should know that the present application is not limited to the order of the actions described, because according to the present application, certain steps can be performed in other order or at the same time. Secondly, those skilled in the art should know that the embodiments described in the specification are all optional embodiments, and the actions involved are not necessarily required by the present application.
[0093] For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts are referred to the part of the description of the method embodiments.
[0094] Embodiment 3:
[0095] The embodiment of the present application also provides an electronic device, which comprises a processor, a memory, a computer program stored in the memory and executable on the processor, and the computer program implements the processes of the method embodiments of the present application and achieves the same technical effects when executed by the processor. To avoid repetition, details are not described here.
[0096] The embodiment of the present application also provides a computer readable storage medium, which stores a computer program, and the computer program implements the processes of the method embodiments of the present application and achieves the same technical effects when executed by the processor. To avoid repetition, details are not described here. The computer readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0097] Figure 6 The present application shows a block diagram of an electronic device 800. For example, the electronic device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0098] Referring to Figure 6 The electronic device 800 can include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0099] The processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions and to complete any of the steps of any of the methods described above. In addition, the processing component 802 can include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0100] The memory 804 is configured to store various types of data to support operations of the electronic device 800. Examples of these data include instructions for any of the applications or methods operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage devices or a 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 disc or optical disc.
[0101] The power component 806 provides power to the various components of the electronic device 800. The power component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0102] The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensors can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. The front and / or rear camera can receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0103] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0104] The I / O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0105] The sensor component 814 includes one or more sensors for providing status assessments of various aspects of the electronic device 800. For example, the sensor component 814 can detect an open / closed position of the device 800, relative positioning of components, such as a display and a keypad of the electronic device 800, a change of position of the electronic device 800 or a component of the electronic device 800, presence or absence of user contact with the electronic device 800, orientation or acceleration / deceleration of the electronic device 800, and temperature changes of the electronic device 800. The sensor component 814 can include an orientation sensor, an acceleration sensor, a proximity sensor, a gesture sensor, a biometric sensor, a temperature / humidity sensor, an illumination sensor, and / or an interaction sensor. The sensor component 814 can further include an electronic component, for example, a camera, a microphone, and / or a user input interface, to measure a physical quantity or to generate a user interface.
[0106] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, or 5G, or a combination thereof. In an example embodiment, the communication component 816 receives a broadcast signal or broadcast operation information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 816 further includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technology.
[0107] In exemplary embodiments, the electronic device 800 can be implemented with one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements, for performing the above-described methods.
[0108] In exemplary embodiments, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided, which can be executed by the processor 820 of the electronic device 800 to accomplish the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.
[0109] Embodiment 4:
[0110] Figure 7 is a block diagram of a computer-readable storage medium 1900 shown in the present application. For example, the computer-readable storage medium 1900 can be provided as a server.
[0111] Referring to Figure 7 , the computer-readable storage medium 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932, for storing instructions executable by the processing component 1922, such as an application program. The application program stored in the memory 1932 can include one or more than one module each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute the instructions to perform the above-described methods.
[0112] The computer-readable storage medium 1900 can also include a power supply component 1926 configured to perform power management of the computer-readable storage medium 1900, a wired or wireless network interface 1950 configured to connect the computer-readable storage medium 1900 to a network, and an input / output (I / O) interface 1958. The computer-readable storage medium 1900 can operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
[0113] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0114] Those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the methods described in various embodiments of the present application.
[0115] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative, not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the protection scope of the claims.
[0116] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the embodiments of the present application can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solutions. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0117] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0118] In the embodiments of the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the described embodiments of the apparatus are merely schematic. For example, the division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.
[0119] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0120] In addition, each functional unit in the various embodiments of the present application can be integrated into a processing unit, or each unit can be a physically independent unit, or two or more units can be integrated into a unit.
[0121] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, and various program codes that can be stored in the medium.
[0122] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A multi-level snapshot-based abnormal call record quick automatic compensation method, characterized in that, The system comprises: Step S1, designing a data structure of an abnormal call record; Step S2, processing the collected call records according to preset rules, and marking the call records not meeting the rules as abnormal call records; Step S3, when an abnormal call record is detected, creating a new snapshot node, and saving the abnormal call record into the snapshot node to obtain an abnormal node; Step S4, when it is necessary to compensate for the abnormal call record, taking the abnormal node as a source point, traversing the snapshot tree upwards, and performing automatic compensation operation; after the automatic compensation operation is completed, verifying the accuracy and integrity of the automatic compensation operation result; Step S5, periodically cleaning up expired snapshot nodes to reduce the occupation of storage space. In the step S1, the data structure of the abnormal call record comprises:
2. The multi-level snapshot-based abnormal call record quick automatic compensation method according to claim 1, characterized in that, an information field and a state field of the abnormal call record. In the step S1, the step of using a tree structure to design a data structure of a multi-level snapshot to obtain a snapshot tree comprises:
3. The multi-level snapshot-based abnormal call record quick automatic compensation method according to claim 1, characterized in that, each node of the tree structure represents a snapshot, and the connection between the nodes represents the relationship between the snapshots. In the step S4, the step of, when it is necessary to compensate for the abnormal call record, taking the abnormal node as a source point, traversing the snapshot tree upwards, and performing automatic compensation operation comprises:
4. The multi-level snapshot-based abnormal call record quick automatic compensation method according to claim 1, characterized in that, if the abnormal node has a left child, starting the compensation operation from the left child node, otherwise, finding the nearest father node of the abnormal node, and then starting the compensation operation from the father node. The system comprises:
5. A multi-level snapshot-based abnormal call record quick automatic compensation system, characterized in that, a first processing module configured to design a data structure of an abnormal call record, and use a tree structure to design a data structure of a multi-level snapshot to obtain a snapshot tree; a second processing module configured to process the collected call records according to preset rules, and mark the call records not meeting the rules as abnormal call records; a third processing module configured to, when an abnormal call record is detected, create a new snapshot node, and save the abnormal call record into the snapshot node to obtain an abnormal node; a fourth processing module configured to, when it is necessary to compensate for the abnormal call record, take the abnormal node as a source point, traverse the snapshot tree upwards, and perform automatic compensation operation; after the automatic compensation operation is completed, verify the accuracy and integrity of the automatic compensation operation result; a fifth processing module configured to periodically clean up expired snapshot nodes to reduce the occupation of storage space. The first processing module is configured to, the data structure of the abnormal call record comprises:
6. The multi-level snapshot based abnormal call record quick automatic compensation system according to claim 5, characterized in that, an information field and a state field of the abnormal call record. The first processing module is configured to, the step of using a tree structure to design a data structure of a multi-level snapshot to obtain a snapshot tree comprises:
7. The multi-level snapshot based abnormal call detail record quick automatic compensation system according to claim 5, characterized in that, each node of the tree structure represents a snapshot, and the connection between the nodes represents the relationship between the snapshots. The fourth processing module is configured to, the step of, when it is necessary to compensate for the abnormal call record, taking the abnormal node as a source point, traversing the snapshot tree upwards, and performing automatic compensation operation comprises:
8. The multi-level snapshot based abnormal call detail record quick automatic compensation system according to claim 5, characterized in that, If the abnormal node has a left child, the compensation operation is started from the left child node, otherwise, the nearest father node of the abnormal node is found, and then the compensation operation is started from the father node.
9. An electronic device, comprising: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method when executing the computer program.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the method.
Citation Information
Patent Citations
Method of preventing loss of phone bill due to switching of service control processor (CP)
CN101677347A
Abnormal number identification method and device, electronic equipment and storage medium
CN115563502A