Network state detection method and apparatus, and storage medium
Patent Information
- Application Number
- CN202211253692.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-13
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2042-10-13
AI Technical Summary
[0002]相关技术中,质差分析主要通过网关网络信号去分析,该质差分析方案主要有以下几种局限:对网关数据分析不够全面,缺少针对家庭网关数据的特点分析,进而导致相关技术中的质差分析结果不准确
[0042] In this embodiment of the invention, multiple periodic packets reported within each predetermined historical time period are acquired; wherein, the multiple periodic packets correspond to different gateways; based on the time information and quality defect index information corresponding to the multiple periodic packets, a corresponding three-dimensional information set is constructed; based on the three-dimensional information set corresponding to each predetermined historical time period, a target three-dimensional information set is determined; based on the target three-dimensional information set, the network status detection result is determined for display. This scheme utilizes various quality defect index information and time information in the periodic packets reported by gateway probes to form a target three-dimensional information set. Since this scheme constructs a judgment model (i.e., a three-dimensional information set) starting from the reported periodic packets themselves, and then combines the judgment model to judge the data in the periodic packets, the network quality defect detection is more accurate.
Smart Images

Figure CN116962231B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer and Internet technology, and in particular to a network status detection method, device and storage medium. Background Technology
[0002] In related technologies, quality difference analysis mainly analyzes gateway network signals. This quality difference analysis scheme has the following limitations: the analysis of gateway data is not comprehensive enough, and there is a lack of analysis of the characteristics of home gateway data, which leads to inaccurate quality difference analysis results in related technologies. Summary of the Invention
[0003] The network status detection method, apparatus, and storage medium provided in this invention can improve the accuracy of the results of quality difference analysis.
[0004] The technical solution of this invention is implemented as follows:
[0005] This invention provides a network status detection method, including:
[0006] Obtain multiple periodic messages reported within each predetermined historical time period; wherein, the multiple periodic messages correspond to different gateways;
[0007] Based on the time information and quality index information corresponding to the multiple periodic messages, a corresponding three-dimensional information set is constructed.
[0008] Based on the three-dimensional information set corresponding to each predetermined historical time period, the target three-dimensional information set is determined;
[0009] Based on the target's three-dimensional information set, the network state detection results are determined and displayed.
[0010] In the above scheme, each of the multiple periodic messages includes at least one quality poorness indicator;
[0011] Based on the time information and quality index information corresponding to the multiple periodic messages, a corresponding three-dimensional information set is constructed, including:
[0012] Based on the timestamp corresponding to each acquired periodic message, calculate the first dimension information corresponding to the at least one quality defect indicator information;
[0013] Based on the network status information and device information contained in each quality poor index information in the multiple periodic messages, calculate the second dimension value and index weight corresponding to each quality poor index information;
[0014] An intermediate three-dimensional information table is formed by using the quality defect category information corresponding to each quality defect index, the network status information, the device information, the first dimension information, the second dimension value, and the index weight;
[0015] Based on the consistency of the predetermined information in the intermediate three-dimensional information table, the weights of multiple indicators in the intermediate three-dimensional information table are reorganized to obtain the second dimension information of each quality defect indicator, thereby determining the three-dimensional information table.
[0016] In the above scheme, the step of calculating the first dimension information corresponding to the at least one quality defect indicator based on the timestamp corresponding to each acquired periodic message includes:
[0017] The timestamp is converted into a second offset corresponding to a predetermined historical time period, and the second offset is used as the first dimension information of the at least one quality defect indicator.
[0018] In the above scheme, the step of calculating the second dimension value and index weight corresponding to each quality defect index based on the network status information and device information contained in each quality defect index information in the plurality of periodic packets includes:
[0019] Find the first number corresponding to the quality defect category information, the second number corresponding to the network status information, and the third number corresponding to the device information in each quality defect index information;
[0020] The value at the first position in the predetermined array is replaced by the first number, the value at the second position in the predetermined array is replaced by the second number, and the value at the third position in the predetermined array is replaced by the third number to form the second dimension value of each quality defect index information.
[0021] The network status information and the device information are processed according to predetermined rules to obtain the index weights corresponding to the at least one quality defect index.
[0022] In the above scheme, the step of reorganizing the weights of multiple indicators in the intermediate three-dimensional information table based on the consistency of predetermined information in the intermediate three-dimensional information table to obtain the second dimension information of each quality defect indicator, and then determining the three-dimensional information table, includes:
[0023] In the intermediate three-dimensional information table, at least two quality defect indicators that are identical to the corresponding first dimension information, the quality defect category information, and the equipment information are determined.
[0024] Calculate the average of the weights of at least two indicators of the at least two poor quality indicators, and merge the average weights with other information of the at least two poor quality indicators in the intermediate three-dimensional information table to obtain a second intermediate three-dimensional information table.
[0025] Sort the multiple second-dimensional values in the second intermediate three-dimensional information table to obtain the order information corresponding to the multiple second-dimensional values respectively;
[0026] The order information is used as the second dimension information of the quality difference index information corresponding to the second intermediate three-dimensional information table, thereby determining the three-dimensional information table.
[0027] In the above scheme, determining the target three-dimensional information set based on the three-dimensional information set corresponding to each predetermined historical time period includes:
[0028] Write the quality defect category information, network status information, device information, first dimension information, second dimension information, and indicator weight from each of the three-dimensional information tables into the third information table;
[0029] In the third information table, at least two second quality defect indexes that are identical to the first dimension information, the quality defect category information, and the equipment information are identified.
[0030] Calculate the average of the weights of the at least two second quality poor indicators, and combine the average of the weights of the at least two second quality poor indicators in the third information table to obtain the fourth information table.
[0031] The weights of the indicators in the fourth information table that are less than a predetermined value are increased by a predetermined multiple to determine the third dimension information of the poor quality indicator information whose weights are less than the predetermined value. Then, the third dimension information of each poor quality indicator information in the fourth information table is determined, thereby obtaining the target three-dimensional information table.
[0032] In the above scheme, determining the network state detection result based on the target three-dimensional information set includes:
[0033] Based on the network status information, the device information, and the third dimension information in the target three-dimensional information table, the detection result value of each quality defect index information in the target three-dimensional information table is calculated;
[0034] Based on the relationship between the detection result value and the second predetermined value, the network state detection result of each quality defect index information in the target three-dimensional information table is determined.
[0035] This invention also provides a network status detection device, comprising:
[0036] The information acquisition unit is used to acquire multiple periodic messages reported within each predetermined historical time period; wherein the multiple periodic messages correspond to different gateways.
[0037] The information construction unit is used to construct a corresponding three-dimensional information set based on the time information and quality index information corresponding to the multiple periodic messages respectively.
[0038] The determining unit is used to determine the target three-dimensional information set based on the three-dimensional information set corresponding to each predetermined historical time period;
[0039] The determining unit is used to determine the network state detection result based on the target three-dimensional information set for display.
[0040] This invention also provides a network status detection device, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the program to implement the steps in the above method.
[0041] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the above-described method.
[0042] In this embodiment of the invention, multiple periodic packets reported within each predetermined historical time period are acquired; wherein, the multiple periodic packets correspond to different gateways; based on the time information and quality defect index information corresponding to the multiple periodic packets, a corresponding three-dimensional information set is constructed; based on the three-dimensional information set corresponding to each predetermined historical time period, a target three-dimensional information set is determined; based on the target three-dimensional information set, the network status detection result is determined for display. This scheme utilizes various quality defect index information and time information in the periodic packets reported by gateway probes to form a target three-dimensional information set. Since this scheme constructs a judgment model (i.e., a three-dimensional information set) starting from the reported periodic packets themselves, and then combines the judgment model to judge the data in the periodic packets, the network quality defect detection is more accurate. Attached Figure Description
[0043] Figure 1 This is an optional flowchart illustrating the network state detection method provided in an embodiment of the present invention.
[0044] Figure 2 This is an optional effect diagram of the network state detection method provided in an embodiment of the present invention;
[0045] Figure 3 This is an optional effect diagram of the network state detection method provided in an embodiment of the present invention;
[0046] Figure 4 This is a schematic diagram of the network status detection device provided in an embodiment of the present invention;
[0047] Figure 5 This is a schematic diagram of a hardware entity of the network status detection device provided in an embodiment of the present invention. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations on the present invention. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0049] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0050] If similar descriptions such as "first / second" appear in the invention document, the following explanation shall be added: In the following description, the terms "first / second / third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the invention described herein can be implemented in an order other than that illustrated or described herein.
[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to limit the invention.
[0052] This invention provides a network status detection method; please refer to [link to relevant documentation]. Figure 1 This is an optional flowchart illustrating the network state detection method provided in an embodiment of the present invention, which will be combined with... Figure 1 The steps shown are explained.
[0053] S101. Obtain multiple periodic messages reported within each predetermined historical time period.
[0054] In this embodiment of the invention, the server obtains multiple periodic messages reported within each predetermined historical time period. These multiple periodic messages correspond to different gateways.
[0055] In this embodiment of the invention, the server obtains multiple periodic messages reported by gateway probes within various predetermined historical time periods. Each predetermined historical time period belongs to a total historical time period. For example, the total historical time period could be the past thirty days. Each day corresponds to a specific historical time period. In this embodiment of the invention, gateway probes on each gateway periodically send corresponding periodic messages to the server.
[0056] Each periodic message includes: the corresponding gateway's quality category information, network status information, and device information. The network status information includes: central processing unit (CPU), memory usage percentage, and received optical power. The device information may include: downstream device information, device model information, and device manufacturer information.
[0057] The gateway may include a Home Gateway Unit (HGU) or other optical network devices such as an Optical Network Unit (ONU).
[0058] S102. Based on the time information and quality index information corresponding to multiple periodic messages, construct the corresponding three-dimensional information set.
[0059] In this embodiment of the invention, the server constructs a corresponding three-dimensional information set based on the time information and quality index information corresponding to multiple periodic messages.
[0060] In this embodiment of the invention, the server calculates the first dimension information of each quality defect index based on the time information corresponding to each periodic message. Based on the network status information and device information included in each quality defect index, the server calculates the corresponding second dimension information and index weight. The server constructs a three-dimensional information table corresponding to each predetermined historical time period using the quality defect category information, network status information, device information, first dimension information, second dimension information, and index weight corresponding to each quality defect index included in each periodic message. An example is shown in Table 1:
[0061]
[0062]
[0063] Table 1: Three-Dimensional Information Table
[0064] For example, referring to Table 1, the quality degradation indicators for a given period of packets can include the following categories: poor gateway performance, weak light, low negotiation rate, and weak Wi-Fi. Each quality degradation category can correspond to different bandwidths, grids, manufacturers, and models. The server calculates the first dimension information based on the timestamp of the packet for that period. The server calculates the second dimension information based on the poor gateway performance and its corresponding manufacturer and model. The server calculates the indicator weights based on the CPU and memory usage corresponding to the poor gateway performance. Similarly, the server can use the same method to calculate the first dimension information, second dimension information, and indicator weights for other quality degradation indicators.
[0065] In this embodiment of the invention, the quality degradation index categories may include six basic categories: poor gateway performance, high network load, weak light, strong Wi-Fi interference, low negotiation rate, and weak Wi-Fi. The server uses different rules to calculate the index weights for each quality degradation index category. Specifically, the server can multiply the CPU and memory usage rates corresponding to poor gateway performance with their respective values and then sum them to obtain the corresponding index weight. The server determines the index weight based on the number of downstream devices corresponding to high network load. The server multiplies the number of co-channel and adjacent-channel Wi-Fi devices corresponding to strong Wi-Fi interference with their respective values and then sums them to obtain the corresponding index weight. The server obtains the index weight based on the ratio of the negotiation rate of each downstream device to the total number of downstream and downstream devices corresponding to low negotiation rate.
[0066] S103. Based on the three-dimensional information sets corresponding to each predetermined historical time period, determine the target three-dimensional information set.
[0067] In this embodiment of the invention, the server determines the target three-dimensional information set based on the three-dimensional information set corresponding to each predetermined historical time period.
[0068] In this embodiment of the invention, the server can obtain three-dimensional information tables corresponding to each predetermined historical time period. The server writes the information from each three-dimensional information table into a third information table. The server reorganizes the indicator weights corresponding to the poor quality indicator information with the same quality indicator category information, manufacturer, model, and time information in the third information table. The server calculates the average value of the indicator weights of the poor quality indicator information with the same information, and merges this average value with other information until the poor quality indicator information with the same information in the third information table is merged, thus obtaining the target three-dimensional information set.
[0069] S104. Based on the target's three-dimensional information set, determine the network state detection results for display.
[0070] In this embodiment of the invention, the server determines the network status detection result based on the target three-dimensional information set for display.
[0071] In this embodiment of the invention, the target three-dimensional information set includes indicator category information, network status information, device information, first dimension information, second dimension information, and third dimension information corresponding to multiple quality poorness indicators. The server can calculate the corresponding detection result value according to predetermined rules based on the network status information, device information, and third dimension information corresponding to each quality poorness indicator. The server analyzes the detection result value corresponding to each quality poorness indicator to obtain the corresponding network status detection result. The server can display the network status detection results corresponding to each quality poorness indicator locally.
[0072] In this embodiment of the invention, multiple periodic packets reported within each predetermined historical time period are acquired; wherein, the multiple periodic packets correspond to different gateways; based on the time information and quality defect index information corresponding to the multiple periodic packets, a corresponding three-dimensional information set is constructed; based on the three-dimensional information set corresponding to each predetermined historical time period, a target three-dimensional information set is determined; based on the target three-dimensional information set, the network status detection result is determined for display. This scheme utilizes various quality defect index information and time information in the periodic packets reported by gateway probes to form a target three-dimensional information set. Since this scheme constructs a judgment model (i.e., a three-dimensional information set) starting from the reported periodic packets themselves, and then combines the judgment model to judge the data in the periodic packets, the network quality defect detection is more accurate.
[0073] In some embodiments, see Figure 2 , Figure 2 This is a schematic diagram of an optional process for the network state detection method provided in an embodiment of the present invention. Figure 1 The steps S102 to S104 shown can also be implemented by S105 to S114, which will be explained in conjunction with each step.
[0074] S105. Based on the timestamp corresponding to each acquired periodic message, calculate the first dimension information corresponding to at least one quality defect indicator.
[0075] In this embodiment of the invention, the server calculates the first dimension information corresponding to at least one quality defect indicator based on the timestamp corresponding to each acquired periodic message. Each periodic message includes at least one quality defect indicator.
[0076] In this embodiment of the invention, the server converts the timestamp into a second offset for a corresponding predetermined historical time period, and uses the second offset as the first dimension information of the at least one quality defect indicator.
[0077] For example, the timestamp may include: 2021-07-25 13:32:09. The server can convert the timestamp to the second offset of 2021-07-25, which may include: 13 (hours) * 60 * 60 + 32 (minutes) * 60 + 9 (seconds) = 2,809,929 seconds.
[0078] S106. Based on the network status information and device information contained in each quality defect indicator information in multiple periodic messages, calculate the second dimension value and indicator weight corresponding to each quality defect indicator information.
[0079] In this embodiment of the invention, the server calculates the second dimension value and index weight corresponding to each quality defect index based on the network status information and device information contained in each quality defect index information in multiple periodic messages.
[0080] In this embodiment of the invention, the server finds a first number corresponding to the quality defect category information, a second number corresponding to the network status information, and a third number corresponding to the device information in each quality defect index. The first number is used to replace the value at the first position in a predetermined array, the second number is used to replace the value at the second position in the predetermined array, and the third number is used to replace the value at the third position in the predetermined array to form the second dimension value of each quality defect index.
[0081] In this embodiment of the invention, if a certain poor quality indicator does not include the corresponding network status information, the server will not replace the value at the corresponding position of the network status information in the predetermined value of the poor quality indicator.
[0082] In this embodiment of the invention, the predetermined array can be 000000. In this embodiment of the invention, no specific restrictions are placed on the values in the predetermined array.
[0083] In this embodiment of the invention, the server processes the network status information and the device information according to predetermined rules to obtain the index weights corresponding to the at least one quality defect index information.
[0084] S107. Use the quality defect category information, network status information, equipment information, first dimension information, second dimension value and indicator weight corresponding to each quality defect indicator information to form an intermediate three-dimensional information table.
[0085] In this embodiment of the invention, the server uses the quality defect category information, network status information, device information, first dimension information, second dimension value and indicator weight corresponding to each quality defect indicator information to form an intermediate three-dimensional information table.
[0086] In this embodiment of the invention, the server uses the quality defect category information, network status information, device information, first dimension information, second dimension value and indicator weight corresponding to each quality defect indicator information to form each row of the intermediate three-dimensional information table.
[0087] Among them, the intermediate three-dimensional information table contains rows with the same information on poor quality category, equipment, and first dimension.
[0088] S108. Based on the consistency of the predetermined information in the intermediate three-dimensional information table, the weights of multiple indicators in the intermediate three-dimensional information table are reorganized to obtain the second dimension information of each quality defect indicator, thereby determining the three-dimensional information table.
[0089] In this embodiment of the invention, the server reorganizes the weights of multiple indicators in the intermediate three-dimensional information table based on the consistency of the predetermined information in the intermediate three-dimensional information table to obtain the second dimension information of each quality defect indicator, and then determines the three-dimensional information table.
[0090] In this embodiment of the invention, the server determines at least two quality defect indicators that are identical to the corresponding first dimension information, the quality defect category information, and the device information in the intermediate three-dimensional information table. The server calculates the average of the weights of the at least two indicators of the at least two quality defect indicators, and merges this average weight with other information of the at least two quality defect indicators in the intermediate three-dimensional information table to obtain a second intermediate three-dimensional information table. The server then sorts the multiple second dimension values in the second intermediate three-dimensional information table to obtain the order information corresponding to each of the multiple second dimension values. This order information is used as the second dimension information of the corresponding quality defect indicator in the second intermediate three-dimensional information table, thereby determining the three-dimensional information table.
[0091] For example, the intermediate three-dimensional information table may include: Poor Quality Indicator Information 1 and Poor Quality Indicator Information 2. Poor Quality Indicator Information 1 includes: poor gateway performance, manufacturer;**, model:**, first-dimensional information:**, and indicator weight 0.47. Poor Quality Indicator Information 2 includes: poor gateway performance, manufacturer;**, model:**, first-dimensional information:**, and indicator weight 0.51. When the manufacturer, model, and first-dimensional information in Poor Quality Indicator Information 1 and Poor Quality Indicator Information 2 are the same, the server takes the average of 0.47 and 0.51, which is 0.49. The server can merge the new indicator average with "poor gateway performance, manufacturer;**, model:**" to obtain the new Poor Quality Indicator Information 3.
[0092] S109. Write the quality difference category information, network status information, device information, first dimension information, second dimension information and indicator weights from each of the three-dimensional information tables into the third information table.
[0093] In this embodiment of the invention, the server writes the quality difference category information, network status information, device information, first dimension information, second dimension information, and indicator weights from each of the three-dimensional information tables into the third information table.
[0094] S110. Identify at least two second quality defect indicators in the third information table that are identical to the first dimension information, quality defect category information, and equipment information.
[0095] In this embodiment of the invention, the server determines at least two second quality defect indicators that are identical to the corresponding first dimension information, quality defect category information, and device information in the third information table.
[0096] S111. Calculate the average of the weights of the two second indicators of at least two second quality poor indicators. Combine the average weights of the second indicators with the other information of the two second quality poor indicators in the third information table to obtain the fourth information table.
[0097] In this embodiment of the invention, the server calculates the average of the weights of at least two second-quality poor index information, and merges the average of the weights of the second index with other information of at least two second-quality poor index information in the third information table to obtain the fourth information table.
[0098] In this embodiment of the invention, the server only obtains the fourth information table after merging and reorganizing all the quality defect index information with the same first dimension information, quality defect category information and equipment information in the third information table.
[0099] S112. Increase the weight of indicators in the fourth information table that are less than a predetermined value by a predetermined multiple, determine the third dimension information of the poor quality indicator information whose weight is less than the predetermined value, and then determine the third dimension information of each poor quality indicator information in the fourth information table, thereby obtaining the target three-dimensional information table.
[0100] In this embodiment of the invention, the server increases the weight of indicators in the fourth information table that are less than a predetermined value by a predetermined multiple, determines the third dimension information of the poor quality indicator information whose weight is less than the predetermined value, and then determines the third dimension information of each poor quality indicator information in the fourth information table, thereby obtaining the target three-dimensional information table.
[0101] In this embodiment of the invention, the weights of indicators with a value less than 1 in the server's fourth information table are multiplied by 100 to determine the third dimension information of poor-quality indicator information whose weights are less than a predetermined value. The third dimension information of other poor-quality indicator information is its corresponding indicator weight.
[0102] In this embodiment of the invention, no specific restrictions are placed on the predetermined value or the predetermined multiple.
[0103] S113. Based on the network status information, device information, and third-dimensional information in the target three-dimensional information table, calculate the detection result value of each quality defect index in the target three-dimensional information table.
[0104] In this embodiment of the invention, the server calculates the detection result value of each quality defect index in the target three-dimensional information table based on the network status information, device information, and third-dimensional information in the target three-dimensional information table.
[0105] In this embodiment of the invention, when the poor quality index category is poor gateway performance, the server can multiply the corresponding CPU utilization and memory utilization by their respective values and then sum them. The server multiplies this sum by a numerical value, compares it with the third dimension information, and thus obtains the corresponding detection result value.
[0106] In this embodiment of the invention, when the poor quality index category is high network load, the server can compare the corresponding number of connected devices with the corresponding third-dimensional information to obtain the detection result value.
[0107] In this embodiment of the invention, when the poor quality index category is weak light, the server uses the corresponding Passive Optical Network (PON) port to receive the third dimension information corresponding to the optical power ratio and obtain the detection result value.
[0108] In this embodiment of the invention, when the poor quality index category is strong Wi-Fi interference, the server multiplies the corresponding number of Wi-Fi networks on the same frequency and the number of adjacent Wi-Fi networks by their respective values and then sums them. The server multiplies this sum by a certain value and then divides it by the corresponding third-dimensional information to obtain the detection result value.
[0109] In this embodiment of the invention, when the poor quality index category is low negotiation rate, the server compares the negotiation rate of the downstream device with the total number of downstream and upstream devices, and then with the corresponding third-dimensional information to obtain the corresponding detection result value.
[0110] In this embodiment of the invention, when the poor quality index category is weak Wi-Fi, the server compares the corresponding Wi-Fi signal strength with the corresponding third-dimensional information to obtain the corresponding detection result value.
[0111] S114. Based on the relationship between the detection result value and the second predetermined value, determine the network status detection result of each quality defect index information in the target three-dimensional information table.
[0112] In this embodiment of the invention, the server determines the network status detection result of each quality defect index in the target three-dimensional information table based on the relationship between the detection result value and the second predetermined value.
[0113] In this embodiment of the invention, if the detection result value is greater than a second predetermined value, a network state detection result indicating a corresponding quality defect is determined; if the detection result value is not greater than the second predetermined value, a network state detection result indicating no corresponding quality defect is determined.
[0114] The second predetermined value can be 1. In this embodiment of the invention, no specific limitation is made on the second predetermined value.
[0115] In this embodiment of the invention, the server constructs a target three-dimensional information set based on the quality defect index information in each periodic message, increases the depth of analysis of each quality defect index information, and fully combines the parameters in each quality defect index information, thereby determining a more accurate network status detection result.
[0116] This invention provides a network status detection method; please refer to [link to relevant documentation]. Figure 3 This is an optional flowchart illustrating the network state detection method provided in an embodiment of the present invention, which will be combined with... Figure 3 The steps shown are explained.
[0117] S201, Record of poor quality indicators.
[0118] In this embodiment of the invention, for the periodic messages reported by the gateway probe, the server sequentially obtains the relevant indicator parameters in the messages according to different quality defect types, and converts the reported time in the message into the offset of seconds for the current day, and stores it together in the quality defect indicator record table as the corresponding first dimension information. For example, if the probe reports the time 2021-07-25 13:32:09, then the offset of seconds for the current day is 13 (hours) * 60 * 60 + 32 (minutes) * 60 + 9 (seconds) = 2809929 seconds. The real-time calculation part stores the first dimension information, the quality defect indicator weight value, and the quality defect category together in the corresponding quality defect indicator daily table. The specific calculation of the indicator weights corresponding to different types of quality defect categories is shown in the following table:
[0119]
[0120] Table 2. Types and Weights of Poor Quality
[0121] Table 2 shows that the server mainly analyzes the following quality issues: poor gateway performance, high network load, weak light, strong Wi-Fi interference, low negotiation rate, and weak Wi-Fi. These six basic quality issues are categorized by manufacturer, bandwidth, network type, and model. The server writes these quality issue categories, the reporting time of each quality issue indicator, and the indicator weight values under each quality issue category into the daily quality issue table. The specific data format of the daily quality issue table is shown in the table below:
[0122]
[0123] Table 3. Daily Quality Difference Model
[0124] S202, Drawing of the poor quality model.
[0125] In this embodiment of the invention, the server mainly performs conversion operations such as summarizing, averaging, and numbering on the quality difference daily table generated from the quality difference indicator records of the past thirty days to form a quality difference model. The specific detailed steps are as follows:
[0126] 1. The six quality poorness categories are numbered according to their respective dimensions such as bandwidth, grid, manufacturer, and model, forming the basic Y-axis coordinate (second dimension information). The specific coding rules are as follows:
[0127] (1) The first digit of the six poor quality categories is determined by coding from 1 to 6: Specifically, poor gateway performance: 1; weak light 2; low negotiation rate: 3; high network debt: 4; strong Wifi interference: 5; weak Wifi: 6.
[0128] (2) For the same poor quality category, the subsequent bit encoding is determined according to the corresponding manufacturer, model, grid and bandwidth dimensions. The specific bit lengths for each dimension are: manufacturer: 2 bits, model: 2 bits, grid: 4 bits, bandwidth: 2 bits.
[0129] (3) Based on the determination in (2), the gateway manufacturers and models are numbered in alphabetical order. If the first letter is the same, the second letter is compared, and so on, to form the respective codes of manufacturers and models from 00 to 99.
[0130] (4) Based on the determination in (2), sort the grids in ascending order according to their coding order to form the coding of the 0000 to 9999 range.
[0131] (5) Based on the determination in (2), the bandwidth is encoded in order of size to form a range code from 00 to 99.
[0132] (6) Based on the quality difference category combination in (1), the corresponding dimensions in (3), (4), and (5) are combined to form a 6-digit code. For codes without sub-dimensions or with sub-dimensions less than 6 bits, 0 is used to supplement the subsequent code bits.
[0133] (7) Sort the codes formed in (6) in ascending order and form the Y-axis coordinates (that is, the second dimension information) in order. A specific example is as follows:
[0134]
[0135] Table 4 Example of Y-axis coordinates
[0136] The server multiplies the average weight of data with a value less than 1 in the daily tables of the past thirty days by 100, so that data with a value less than 1 can be at the same level as other data, forming a Z-axis coordinate (that is, the third dimension information). This is then combined with the network status information, manufacturer information, X-axis coordinate, and Y-axis coordinate corresponding to each quality difference category to form a target three-dimensional information set.
[0137] S203. Judgment of poor quality.
[0138] In this embodiment of the invention, the server mainly uses the Y-axis and X-axis data formed by different quality difference dimensions and time points in the target three-dimensional information set to compare with the quality difference weight data to determine whether each quality difference indicator information has a quality difference. The specific judgment rule is as follows:
[0139]
[0140]
[0141] Table 5 Rules for Judging Poor Quality
[0142] In this embodiment of the invention, a home gateway probe periodically reports device information and network status information (such as CPU and memory usage percentages, received optical power, and connected devices) of the current gateway. The server mainly uses real-time calculation to record and store the status information reported by the gateway probe in real time, forming quality defect index weight data under different time points and different quality defect categories. The server mainly plots the target three-dimensional information set of network quality defects in a three-dimensional coordinate system with the reporting time point as the X-axis, the various quality defect categories as the Y-axis, and the quality defect index weight percentage as the Z-axis, forming a three-dimensional function based on time, quality defect type, and index weight. The server mainly uses the generated target three-dimensional information set to match the calculated quality defect index weight data according to the reporting time point in the probe data and the different quality defect types, thereby accurately determining whether the current gateway has experienced quality defects.
[0143] Please see Figure 4 This is a schematic diagram of the network status detection device provided in an embodiment of the present invention.
[0144] This invention also provides a network status detection device 800, including: an information acquisition unit 803, an information construction unit 804, and a determination unit 805.
[0145] The information acquisition unit 803 is used to acquire multiple periodic messages reported within each predetermined historical time period; wherein the multiple periodic messages correspond to different gateways.
[0146] The information construction unit 804 is used to construct a corresponding three-dimensional information set based on the time information and quality index information corresponding to the multiple periodic messages respectively.
[0147] The determining unit 805 is used to determine the target three-dimensional information set based on the three-dimensional information set corresponding to each predetermined historical time period;
[0148] The determining unit 805 is used to determine the network state detection result based on the target three-dimensional information set for display.
[0149] In this embodiment of the invention, the plurality of periodic messages each include: at least one quality defect indicator; the information construction unit 804 in the network state detection device 800 is used to calculate the first dimension information corresponding to the at least one quality defect indicator based on the timestamp corresponding to each acquired periodic message; based on the network state information and device information contained in each quality defect indicator in the plurality of periodic messages, to calculate the second dimension value and indicator weight corresponding to each quality defect indicator; to form an intermediate three-dimensional information table using the quality defect category information, the network state information, the device information, the first dimension information, the second dimension value, and the indicator weight corresponding to each quality defect indicator; and to reorganize the multiple indicator weights in the intermediate three-dimensional information table according to the consistency of predetermined information in the intermediate three-dimensional information table to obtain the second dimension information of each quality defect indicator, thereby determining the three-dimensional information table.
[0150] In this embodiment of the invention, the information construction unit 804 in the network status detection device 800 is used to convert the timestamp into a second offset corresponding to a predetermined historical time period, and use the second offset as the first dimension information of the at least one quality defect index information.
[0151] In this embodiment of the invention, the information construction unit 804 in the network status detection device 800 is used to find the first number corresponding to the quality defect category information in each quality defect index information, the second number corresponding to the network status information, and the third number corresponding to the device information;
[0152] The value at the first position in the predetermined array is replaced by the first number, the value at the second position in the predetermined array is replaced by the second number, and the value at the third position in the predetermined array is replaced by the third number to form the second dimension value of each quality defect index information.
[0153] The network status information and the device information are processed according to predetermined rules to obtain the index weights corresponding to the at least one quality defect index.
[0154] In this embodiment of the invention, the information construction unit 804 in the network status detection device 800 is used to determine at least two quality defect indexes that are the same as the corresponding first dimension information, the quality defect category information, and the device information in the intermediate three-dimensional information table;
[0155] Calculate the average of the weights of at least two indicators of the at least two poor quality indicators, and merge the average weights with other information of the at least two poor quality indicators in the intermediate three-dimensional information table to obtain a second intermediate three-dimensional information table.
[0156] Sort the multiple second-dimensional values in the second intermediate three-dimensional information table to obtain the order information corresponding to the multiple second-dimensional values respectively;
[0157] The order information is used as the second dimension information of the quality difference index information corresponding to the second intermediate three-dimensional information table, thereby determining the three-dimensional information table.
[0158] In this embodiment of the invention, the determining unit 805 in the network status detection device 800 is used to write the quality difference category information, the network status information, the device information, the first dimension information, the second dimension information, and the indicator weight from each of the three-dimensional information tables into a third information table;
[0159] In the third information table, at least two second quality defect indexes that are identical to the first dimension information, the quality defect category information, and the equipment information are identified.
[0160] Calculate the average of the weights of the at least two second quality poor indicators, and combine the average of the weights of the at least two second quality poor indicators in the third information table to obtain the fourth information table.
[0161] The weights of the indicators in the fourth information table that are less than a predetermined value are increased by a predetermined multiple to determine the third dimension information of the poor quality indicator information whose weights are less than the predetermined value. Then, the third dimension information of each poor quality indicator information in the fourth information table is determined, thereby obtaining the target three-dimensional information table.
[0162] In this embodiment of the invention, the determining unit 805 in the network status detection device 800 is used to calculate the detection result value of each quality defect index information in the target three-dimensional information table based on the network status information, the device information and the third dimension information in the target three-dimensional information table;
[0163] Based on the relationship between the detection result value and the second predetermined value, the network state detection result of each quality defect index information in the target three-dimensional information table is determined.
[0164] In this embodiment of the invention, the information acquisition unit 803 acquires multiple periodic packets reported within each predetermined historical time period; wherein, the multiple periodic packets correspond to different gateways; the information construction unit 804 constructs corresponding three-dimensional information sets based on the time information and quality defect index information corresponding to the multiple periodic packets; the determination unit 805 determines the target three-dimensional information set based on the three-dimensional information sets corresponding to each predetermined historical time period; and the determination unit 805 determines the network status detection result based on the target three-dimensional information set for display. This solution utilizes various quality defect index information and time information in the periodic packets reported by the gateway probe to form the target three-dimensional information set. Since this solution constructs a judgment model (i.e., a three-dimensional information set) starting from the reported periodic packets themselves, and then combines the judgment model to judge the data in the periodic packets, the network quality defect detection is more accurate.
[0165] It should be noted that, in the embodiments of the present invention, if the above-described network status detection method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a network status detection device (which may be a personal computer, etc.) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a magnetic disk, or an optical disk. Thus, the embodiments of the present invention are not limited to any specific hardware and software combination.
[0166] Correspondingly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-described method.
[0167] Correspondingly, this embodiment of the invention provides a network status detection device, including a memory 802 and a processor 801. The memory 802 stores a computer program that can run on the processor 801. When the processor 801 executes the program, it implements the steps in the above method.
[0168] It should be noted that the descriptions of the storage medium and device embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of the present invention, please refer to the descriptions of the method embodiments of the present invention for understanding.
[0169] It should be noted that, Figure 5This is a schematic diagram of a hardware entity of the network status detection device provided in an embodiment of the present invention, such as... Figure 5 As shown, the hardware entity of the network status detection device 800 includes: a processor 801 and a memory 802, wherein;
[0170] The processor 801 typically controls the overall operation of the network status detection device 800.
[0171] The memory 802 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 801 and the network status detection device 800. It can be implemented by flash memory or random access memory (RAM).
[0172] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of the invention, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the invention. The sequence numbers of the above-described embodiments of the invention are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0173] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0174] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the apparatus or units can be electrical, mechanical, or other forms.
[0175] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0176] In addition, in the various embodiments of the present invention, each functional unit can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0177] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0178] Alternatively, if the integrated units of this invention are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this invention, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0179] The above description is merely an embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A network state detection method, characterized in that, include: Obtain multiple periodic messages reported within each predetermined historical time period; wherein, the multiple periodic messages correspond to different gateways; Based on the time information corresponding to each periodic message, the first dimension information of each quality defect indicator is calculated. Based on the network status information and device information contained in each quality defect indicator, the corresponding second dimension information and indicator weight are calculated. Using the quality defect category information, network status information, device information, first dimension information, second dimension information, and indicator weight of each quality defect indicator included in each periodic message, a three-dimensional information set corresponding to each predetermined historical time period is constructed. The first dimension information is used to characterize the time characteristics corresponding to the quality defect indicator; the second dimension information is used to characterize the network status and device characteristics corresponding to the quality defect indicator. Write the information from each of the three-dimensional information sets into a third information table. Reorganize the index weights corresponding to the same quality poor index category information, equipment information, and time information in the third information table. Calculate the average value of the index weights of the same quality poor index information and merge the average value with other information until the same quality poor index information in the third information table is merged to obtain the target three-dimensional information set. Based on the target's three-dimensional information set, the network state detection results are determined and displayed.
2. The network status detection method according to claim 1, characterized in that, Each of the multiple periodic messages includes at least one quality poor indicator information; The process involves constructing a three-dimensional information set corresponding to each predetermined historical time period using the quality defect category information, network status information, device information, first dimension information, second dimension information, and indicator weights included in each periodic message. An intermediate three-dimensional information table is formed by using the quality defect category information corresponding to each quality defect index, the network status information, the device information, the first dimension information, the second dimension information, and the index weight; Based on the consistency of the predetermined information in the intermediate three-dimensional information table, the weights of multiple indicators in the intermediate three-dimensional information table are reorganized to obtain the second dimension information of each quality defect indicator, thereby determining the three-dimensional information table.
3. The network status detection method according to claim 2, characterized in that, The first dimension information for calculating each quality defect index based on the time information corresponding to each of the periodic messages includes: The timestamp is converted into a second offset corresponding to a predetermined historical time period, and the second offset is used as the first dimension information of the at least one quality defect indicator.
4. The network status detection method according to claim 2, characterized in that, The calculation of the corresponding second-dimensional information and indicator weights based on the network status information and device information contained in each quality defect indicator includes: Find the first number corresponding to the quality defect category information, the second number corresponding to the network status information, and the third number corresponding to the device information in each quality defect index information; The first number is used to replace the value at the first position in the predetermined array, the second number is used to replace the value at the second position in the predetermined array, and the third number is used to replace the value at the third position in the predetermined array to form the second dimension information of each quality defect index information; The network status information and the device information are processed according to predetermined rules to obtain the index weights corresponding to the at least one quality defect index.
5. The network status detection method according to claim 2, characterized in that, The step of reorganizing the weights of multiple indicators in the intermediate three-dimensional information table based on the consistency of predetermined information in the intermediate three-dimensional information table to obtain the second dimension information of each quality defect indicator, and then determining the three-dimensional information table, includes: In the intermediate three-dimensional information table, at least two quality defect indicators that are identical to the corresponding first dimension information, the quality defect category information, and the equipment information are determined. Calculate the average of the weights of at least two indicators of the at least two poor quality indicators, and merge the average weights with other information of the at least two poor quality indicators in the intermediate three-dimensional information table to obtain a second intermediate three-dimensional information table. Sort the multiple second-dimensional information in the second intermediate three-dimensional information table to obtain the order information corresponding to the multiple second-dimensional information respectively; The order information is used as the second dimension information of the quality difference index information corresponding to the second intermediate three-dimensional information table, thereby determining the three-dimensional information table.
6. The network status detection method according to claim 2, characterized in that, The process involves writing information from each of the three-dimensional information sets into a third information table, reorganizing the indicator weights corresponding to the same quality defect indicator category information, equipment information, and time information in the third information table, calculating the average value of the indicator weights for the same quality defect indicator information, and merging the average value with other information until the merging of the same quality defect indicator information in the third information table is completed, thereby obtaining the target three-dimensional information set, including: Write the quality defect category information, network status information, device information, first dimension information, second dimension information, and indicator weight from each of the three-dimensional information tables into the third information table; In the third information table, at least two second quality defect indexes that are identical to the first dimension information, the quality defect category information, and the equipment information are identified. Calculate the average of the weights of the at least two second quality poor indicators, and combine the average of the weights of the at least two second quality poor indicators in the third information table to obtain the fourth information table. The weights of indicators in the fourth information table that are less than a predetermined value are increased by a predetermined multiple to determine the third dimension information of the poor quality indicator information whose weights are less than the predetermined value. Then, the third dimension information of each poor quality indicator information in the fourth information table is determined, thereby obtaining the target three-dimensional information set. The third dimension information is used to characterize the predetermined multiple of the weights of the poor quality indicator information.
7. The network status detection method according to claim 6, characterized in that, The determination of network state detection results based on the target three-dimensional information set includes: Based on the network status information, the device information, and the third dimension information in the target three-dimensional information table, the detection result value of each quality defect index information in the target three-dimensional information table is calculated; Based on the relationship between the detection result value and the second predetermined value, the network state detection result of each quality defect index information in the target three-dimensional information table is determined.
8. A network status detection device, characterized in that, include: The information acquisition unit is used to acquire multiple periodic messages reported within each predetermined historical time period; wherein the multiple periodic messages correspond to different gateways. An information construction unit is configured to calculate the first dimension information of each quality defect indicator based on the time information corresponding to each periodic message, calculate the corresponding second dimension information and indicator weight based on the network status information and device information contained in each quality defect indicator, and construct a three-dimensional information set corresponding to each predetermined historical time period using the quality defect category information, network status information, device information, first dimension information, second dimension information, and indicator weight included in each periodic message; wherein, the first dimension information is used to characterize the time characteristics corresponding to the quality defect indicator; and the second dimension information is used to characterize the network status and device characteristics corresponding to the quality defect indicator. The determining unit is used to write the information in each of the three-dimensional information sets into a third information table, reorganize the indicator weights corresponding to the same quality poor indicator category information, equipment information and time information in the third information table, calculate the average value of the indicator weights of the same quality poor indicator information, and merge the average value with other information until the quality poor indicator information with the same information in the third information table is merged to obtain the target three-dimensional information set. The determining unit is used to determine the network state detection result based on the target three-dimensional information set for display.
9. A network status detection device, characterized in that, It includes a memory and a processor, the memory storing a computer program that can run on the processor, the processor executing the program to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Test method and device and computer readable storage medium
CN110830332A
Network state analysis method, device and equipment and machine readable storage medium
CN113507396A