Communication log loss risk diagnosis method and system, and storage medium
By monitoring the rate of communication diagnostic log generation and issuing alarms, combined with log volume analysis, the problem of real-time identification and module location of lost communication diagnostic logs was solved, improving the real-time performance and accuracy of communication diagnostics.
Patent Information
- Application Number
- CN202111165837.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing technologies struggle to identify communication diagnostic log loss issues in real time, and average-based analysis methods cannot accurately identify abnormal modules, resulting in poor post-analysis performance.
By monitoring the generation rate of communication diagnostic logs, setting a rate threshold alarm, and acquiring and analyzing the amount of communication logs before and after the alarm time, the modules with the highest log volume can be identified.
It enables real-time alarms for lost communication diagnostic logs and accurate location of abnormal modules, improving the efficiency and accuracy of communication diagnostics and supporting subsequent optimization.
Smart Images

Figure CN113986697B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the field of communication, and particularly relates to a communication log loss risk diagnosis method and system and a storage medium. BACKGROUND
[0002] In a communication system, for example, a mobile phone, the amount of communication logs is large. Once the mobile phone has a problem, such as hanging, a sim card cannot be used, data services cannot be normally performed, and a dead machine, etc., the problem needs to be located through communication logs. However, in the actual application process, there is still a problem of loss of communication diagnosis logs. When the communication diagnosis logs are lost, how to accurately identify the communication diagnosis log amount of each module becomes a difficulty.
[0003] In the prior art, the communication diagnosis logs are played back, data based on a starting point and an ending point is calculated to obtain an average communication diagnosis log amount, and based on the average value, analysis is performed to determine which module has an abnormal log amount. Such a processing mode cannot reasonably obtain a module with a problem because the influence of data when the problem occurs is not highlighted, and the processing mode also has a problem of post-analysis and cannot perform real-time detection. SUMMARY
[0004] The application aims to overcome the above-mentioned defects in the prior art, and provides a communication log loss risk diagnosis method, system and storage medium.
[0005] The application solves the above-mentioned technical problems through the following technical solutions:
[0006] A communication log loss risk diagnosis method comprises the following steps:
[0007] Obtaining a generation rate of communication diagnosis logs in a terminal, the generation rate being used to represent the bandwidth of the communication diagnosis logs generated in a unit time step;
[0008] If the generation rate is greater than a preset rate threshold, an alarm is sent.
[0009] Preferably, the method further comprises the following steps:
[0010] Setting a time point at which the generation rate is greater than the preset rate threshold as a pre-warning moment;
[0011] Obtaining a first communication log in a first preset time period before the pre-warning moment;
[0012] Obtaining a first target module with a preset number of log amounts in a front rank according to the first communication log;
[0013] Outputting the communication diagnosis log amount of the first target module.
[0014] Preferably, the method further comprises the following steps:
[0015] obtaining a second communication log in a second preset time period after the early warning moment;
[0016] The first target module for obtaining a preset number of first targets ranked by log quantity according to the first communication log comprises:
[0017] The first target module for obtaining a preset number of first targets ranked by log quantity according to the first communication log and the second communication log.
[0018] Preferably, the system further comprises:
[0019] obtaining a third communication log in a third preset time period before a communication log loss moment and a fourth preset time period after the communication log loss moment;
[0020] The second target module for obtaining a preset number of second targets ranked by log quantity according to the third communication log;
[0021] outputting a communication diagnosis log quantity of the second target module.
[0022] A communication log loss risk diagnosis system comprises:
[0023] a rate obtaining module for obtaining a generation rate of a communication diagnosis log in a terminal, the generation rate being used to represent a bandwidth of the communication diagnosis log generated in a unit time step;
[0024] an alarm module for issuing an alarm if the generation rate is greater than a preset rate threshold.
[0025] Preferably, the system further comprises:
[0026] a setting module for setting a time point at which the generation rate is greater than the preset rate threshold as an early warning moment;
[0027] a log obtaining module for obtaining a first communication log in a first preset time period before the early warning moment;
[0028] a data processing module for obtaining a first target module for obtaining a preset number of first targets ranked by log quantity according to the first communication log;
[0029] an output module for outputting a communication diagnosis log quantity of the first target module.
[0030] Preferably, the log obtaining module is further used to obtain a second communication log in a second preset time period after the early warning moment;
[0031] The data processing module is specifically used to obtain a first target module for obtaining a preset number of first targets ranked by log quantity according to the first communication log and the second communication log.
[0032] Preferably, further comprising:
[0033] a log acquisition module, configured to acquire third communication logs generated within a third preset time period before a log loss moment and within a fourth preset time period after the log loss moment;
[0034] a data processing module, configured to obtain a preset number of second target modules with a highest amount of communication diagnosis logs according to the third communication logs;
[0035] an output module, configured to output the amount of communication diagnosis logs of the second target modules.
[0036] An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the communication log loss risk diagnosis method.
[0037] A computer readable storage medium, having a computer program stored thereon, wherein the program is executable by a processor to implement the communication log loss risk diagnosis method.
[0038] The positive progress effect of the present application is that, by monitoring the generation rate of communication diagnosis logs in the channel, the moment when the log loss may exist is determined in time to alarm, and the communication logs generated before and after the alarming moment are analyzed to intelligently identify the amount of communication diagnosis logs of each module, so as to further determine the communication congestion caused by which module, so as to facilitate the subsequent optimization of the corresponding module. BRIEF DESCRIPTION OF DRAWINGS
[0039] Figure 1 A flowchart of the communication log loss risk diagnosis method of embodiment 1 of the present application.
[0040] Figure 2 A module schematic diagram of the communication log loss risk diagnosis system of embodiment 2 of the present application.
[0041] Figure 3 A structure schematic diagram of the electronic device of embodiment 3 of the present application. DETAILED DESCRIPTION
[0042] The present application will be further described by way of examples, but the present application is not limited in the scope of the examples.
[0043] Embodiment 1
[0044] A communication log loss risk diagnosis method, as shown in the accompanying drawings, comprises: Figure 1
[0045] Step 11, obtain the generation rate of the communication diagnosis log in the terminal; the generation rate is used to represent the bandwidth of the communication diagnosis log generated in a unit time step;
[0046] Wherein, the current generation rate can be calculated in steps of 1 second (the specific time interval can be changed, and the default is 1 second).
[0047] Step 12, determine whether the generation rate is greater than the preset rate threshold, if yes, execute step 13;
[0048] Step 13, issue an alarm.
[0049] Wherein, assuming that the communication diagnosis log bandwidth obtained in 1 second is XX MB, then the rate reaches YY MB / s (the specific rate can be changed, and the default is YY MB / s) alarm.
[0050] Step 14, set the time point when the generation rate is greater than the preset rate threshold as the early warning time;
[0051] Step 141, obtain the first communication log in the first preset time period before the early warning time;
[0052] Step 142, obtain the first target module of the preset number of the first communication log ranked in the front according to the first communication log;
[0053] Step 143, output the communication diagnosis log amount of the first target module.
[0054] In this embodiment, after step 14, further comprising:
[0055] Step 140, obtain the second communication log in the second preset time period after the early warning time;
[0056] Further, step 142 specifically comprises:
[0057] Obtain the first target module of the preset number of the first communication log ranked in the front according to the first communication log and the second communication log.
[0058] Wherein, when the alarm, the Top5 list of the communication diagnosis log amount of each module in the Top list is outputted in the 2s before and after the current time (the early warning time), so that the specific module which may cause the communication congestion leading to loss can be further analyzed and obtained, and the corresponding module can be optimized subsequently.
[0059] In this embodiment, after step 13, further comprising:
[0060] Step 151, obtain the third communication log in the third preset time period before the communication log loss time and the fourth preset time period after the communication log loss time;
[0061] Step 152, according to the third communication log statistics, a preset number of second target modules with the highest log amount are obtained;
[0062] Step 153, output the communication diagnosis log amount of the second target module.
[0063] Among them, the log amount before and after the log loss is analyzed, and through the output Top list and the corresponding log amount, it can be further determined whether the loss is caused by congestion.
[0064] In this embodiment, by monitoring the generation rate of the communication diagnosis log in the channel, the moment when the log loss may exist is determined in time to alarm, and the communication logs generated before and after the alarm moment are analyzed to intelligently identify the communication diagnosis log amount of each module. Size to further determine which module causes the communication congestion, so as to facilitate the subsequent optimization of the corresponding module.
[0065] Embodiment 2
[0066] A communication log loss risk diagnosis system, as shown in Figure 2 , comprising:
[0067] The rate acquisition module 1 is used to acquire the generation rate of the communication diagnosis log in the terminal, and the generation rate is used to represent the bandwidth of the communication diagnosis log generated in a unit time step;
[0068] Among them, the current generation rate can be calculated with 1 second as a step (the specific time interval can be changed, and the default is 1 second).
[0069] The alarm module 2 is used to issue an alarm if the generation rate is greater than a preset rate threshold.
[0070] Among them, assuming that the communication diagnosis log bandwidth acquired in 1 second is XXMB, then the rate reaches YYMB / s (the specific rate can be changed, and the default is YYMB / s) alarm.
[0071] The setting module 3 is used to set the time point when the generation rate is greater than the preset rate threshold as the early warning moment;
[0072] The log acquisition module 4 is used to acquire the first communication log in the first preset time period before the early warning moment;
[0073] The data processing module 5 is used to acquire a preset number of first target modules with the highest log amount according to the first communication log;
[0074] The output module 6 is used to output the communication diagnosis log amount of the first target module.
[0075] In this embodiment, the log obtaining module 4 is further configured to obtain a second communication log in a second preset time period after the early warning moment.
[0076] The data processing module 5 is specifically configured to obtain a first target module with a top log amount in a preset number according to the first communication log and the second communication log.
[0077] In the alarm, the Top5 list of the communication diagnosis log amount of each module in the current moment (early warning moment) 2s before and after is counted, and the communication diagnosis log amount of each module in the Top list is output. Further analysis can be made to determine which module may cause the communication congestion leading to loss, and the corresponding module can be optimized subsequently.
[0078] In this embodiment, the log obtaining module 4 is further configured to obtain a third communication log in a third preset time period before the moment of the loss of the communication log in the terminal and a fourth preset time period after the moment of the loss of the communication log;
[0079] The data processing module 5 is further configured to obtain a second target module with a top log amount in a preset number according to the third communication log;
[0080] The output module 6 is further configured to output the communication diagnosis log amount of the second target module.
[0081] In the alarm, the Top5 list of the communication diagnosis log amount of each module in the current moment (early warning moment) 2s before and after is counted, and the communication diagnosis log amount of each module in the Top list is output. Further analysis can be made to determine whether the loss is caused by congestion.
[0082] In this embodiment, the generation rate of the communication diagnosis log in the channel is monitored, the moment of possible loss of the log is determined in time, and an alarm is given. Meanwhile, the communication log generated before and after the alarm moment is analyzed, the communication diagnosis log amount of each module is intelligently identified, and the communication congestion caused by which module is further determined, so that the corresponding module can be optimized subsequently.
[0083] Embodiment 3
[0084] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the communication log loss risk diagnosis method in embodiment 1.
[0085] Figure 3 A structural schematic diagram of an electronic device provided in this embodiment is shown. Figure 3 A block diagram of an exemplary electronic device 90 suitable for use in implementing embodiments of the present application is shown. Figure 3 The electronic device 90 shown is merely an example and should not impose any limitation on the function and use range of the embodiments of the present application.
[0086] like Figure 3 As shown, the electronic device 90 can be represented in the form of a general-purpose computing device, such as a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including memory 92 and processor 91).
[0087] Bus 93 includes a data bus, an address bus, and a control bus.
[0088] The memory 92 may include volatile memory, such as random access memory (RAM) 921 and / or cache memory 922, and may further include read-only memory (ROM) 923.
[0089] The memory 92 may also include a program tool 925 having a set (at least one) of program modules 924, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0090] The processor 91 performs various functional applications and data processing by running computer programs stored in the memory 92.
[0091] Electronic device 90 can also communicate with one or more external devices 94 (e.g., keyboard, pointing device, etc.). This communication can be performed through input / output (I / O) interface 95. Furthermore, electronic device 90 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public network, such as the Internet) via network adapter 96. Network adapter 96 communicates with other modules of electronic device 90 via bus 93. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.
[0092] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0093] Example 4
[0094] A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the communication log loss risk diagnosis method according to Embodiment 1.
[0095] More specifically, the computer readable storage medium can include, but is not limited to, a portable disc, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0096] In possible implementation manners, the present application can also be implemented in the form of a program product, which includes program codes for causing terminal equipment to execute the communication log loss risk diagnosis method according to Embodiment 1 when the program product is run on the terminal equipment.
[0097] The program codes for executing the present application can be written in any combination of one or more programming languages, and can be executed completely on the user equipment, partially on the user equipment, as a stand-alone software package, partially on the user equipment and partially on a remote equipment, or completely on a remote equipment.
[0098] Although the above describes specific implementation manners of the present application, those skilled in the art should understand that this is only an example, and the protection scope of the present application is defined by the appended claims. Those skilled in the art can make various changes or modifications to these implementation manners without departing from the principles and essence of the present application, and these changes and modifications all fall within the protection scope of the present application.
Claims
1. A method for diagnosing the risk of communication log loss, characterized in that, include: The generation rate of communication diagnostic logs within the terminal is obtained, and the generation rate is used to characterize the bandwidth of the communication diagnostic logs generated per unit time step. If the generation rate exceeds a preset rate threshold, an alarm will be issued; Also includes: The time point when the generation rate exceeds a preset rate threshold is set as the warning time; Obtain the first communication log within the first preset time period before the warning time; Based on the first communication log, obtain the first target module with the highest number of logs ranked by a preset number; Output the communication diagnostic log volume of the first target module.
2. The communication log loss risk diagnosis method as described in claim 1, characterized in that, Also includes: Obtain the second communication log within the second preset time period after the warning time; The first target module for obtaining a preset number of logs ranked by volume based on the first communication log includes: The first target module is obtained by retrieving a preset number of logs ranked first based on the first and second communication logs.
3. The communication log loss risk diagnosis method as described in claim 1, characterized in that, Also includes: Get the third communication log within the terminal during the third preset time period before the time the communication log was lost and during the fourth preset time period after the time the communication log was lost. The second target module is obtained by statistically analyzing the third communication log and determining the preset number of log volumes that rank first. Output the communication diagnostic log volume of the second target module.
4. A communication log loss risk diagnosis system, characterized in that, include: The rate acquisition module is used to acquire the generation rate of communication diagnostic logs within the terminal, wherein the generation rate is used to characterize the bandwidth of the communication diagnostic logs generated within a unit time step. An alarm module is used to issue an alarm if the generation rate is greater than a preset rate threshold. Also includes: The setting module is used to set the time point when the generation rate is greater than a preset rate threshold as the warning time; The log acquisition module is used to acquire the first communication log within a first preset time period before the warning time; The data processing module is used to obtain a first target module based on a preset number of logs ranked first in terms of volume, according to the first communication log. The output module is used to output the communication diagnostic log volume of the first target module.
5. The communication log loss risk diagnosis system as described in claim 4, characterized in that, The log acquisition module is also used to acquire the second communication log within a second preset time period after the warning time; The data processing module is specifically used to obtain a first target module based on the first communication log and the second communication log, which is ranked by a preset number of logs.
6. The communication log loss risk diagnosis system as described in claim 4, characterized in that, Also includes: The log acquisition module is used to acquire the third communication log within the terminal within the third preset time period before the time of communication log loss and within the fourth preset time period after the time of communication log loss. The data processing module is used to obtain a second target module that ranks the log volumes of the top-ordered logs based on the statistics of the third communication logs. The output module is used to output the communication diagnostic log volume of the second target module.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the communication log loss risk diagnosis method according to any one of claims 1 to 3.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the communication log loss risk diagnosis method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Method and device for processing logs in cloud computing system
CN107135088A
Method, mobile terminal and device for monitoring log information
CN109840178A