Network diagnosis method, network diagnosis device, and computer storage medium

By acquiring network bandwidth parameters and comparing them with historical data, the causes of limited network bandwidth can be diagnosed, solving the problem of the inability to analyze network problems in real time in existing technologies, and realizing fast and accurate network diagnosis and optimization.

CN117061375BActive Publication Date: 2026-06-26ZHEJIANG DAHUA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG DAHUA TECH CO LTD
Filing Date
2023-07-31
Publication Date
2026-06-26

Smart Images

  • Figure CN117061375B_ABST
    Figure CN117061375B_ABST
Patent Text Reader

Abstract

The application discloses a network diagnosis method, a network diagnosis device and a computer storage medium. The network diagnosis method comprises the following steps: in response to a bandwidth-limited signal, acquiring an output code rate of a current network and a network bandwidth parameter in a preset time interval, wherein the network bandwidth parameter comprises a transmissible data amount and a spectrum efficiency of the current network; determining whether the transmissible data amount is lower than the output code rate; if yes, determining whether the spectrum efficiency is lower than a historical spectrum efficiency; if yes, and a difference between the spectrum efficiency and the historical spectrum efficiency is greater than a first preset difference threshold, determining that a cause of the current network bandwidth limitation is channel attenuation. In the foregoing manner, the application can quickly determine the cause of the network bandwidth limitation based on the size of the transmissible data amount and the spectrum efficiency in the network bandwidth parameter, thereby improving the diagnosis efficiency of the network bandwidth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network diagnostics, and in particular to a network diagnostic method, a network diagnostic device, and a computer storage medium. Background Technology

[0002] With the continuous development of the internet and information technology, and the increasing demands of people for a higher standard of living, people are spending more and more time online. The emergence of mobile devices such as smartphones and tablets allows people to browse various news, chat with friends in real time via voice or video, and buy goods from all over the world anytime, anywhere. Internet use is no longer limited to sitting in front of a computer.

[0003] The way we access the internet has also evolved from the earliest dial-up connections to today's fiber optic connections and cellular 4G and 5G networks on mobile phones, causing internet speeds to increase exponentially along with network bandwidth. As a result, various high-bandwidth applications have emerged. For example, in the field of video surveillance, as the pixel count of surveillance equipment lenses increases, the captured images become increasingly high-definition and have wider viewing angles. Consequently, the bit rate of real-time video transmission is higher, the uplink concurrent tasks are more numerous and complex, and the network bandwidth consumed is also higher.

[0004] Furthermore, video surveillance equipment can be deployed in complex environments such as scenic spots, transportation hubs, exhibition halls, security facilities, and shopping malls. These dynamic environments can lead to various external factors affecting network bandwidth. Existing network diagnostic methods focus only on network relationships, traffic flow, and load, without analyzing the network from a transmission perspective. Summary of the Invention

[0005] The main technical problem addressed by this application is how to diagnose the causes of network problems in real time during transmission. To this end, this application provides a network diagnostic method, a network diagnostic device, and a computer storage medium.

[0006] To address the aforementioned technical problems, this application provides a network diagnostic method, comprising: responding to a bandwidth-limited signal, acquiring the current network's output code rate and network bandwidth parameters within a preset time interval, wherein the network bandwidth parameters include the current network's transmittable data volume and spectral efficiency; determining whether the transmittable data volume is lower than the output code rate; if so, determining whether the spectral efficiency is lower than the historical spectral efficiency; if so, and the difference between the spectral efficiency and the historical spectral efficiency is greater than a first preset difference threshold, determining that the cause of the current network bandwidth limitation is channel attenuation.

[0007] The network bandwidth parameter also includes the number of resource blocks; the network diagnostic method also includes: in response to the difference between the spectral efficiency and the historical spectral efficiency being less than or equal to a first preset difference threshold, calculating the current network bandwidth reduction ratio and comparing it with the reduction ratio of the number of resource blocks; if the difference between the bandwidth reduction ratio and the reduction ratio of the number of resource blocks is less than a second preset difference threshold, determining that the cause of the current network bandwidth limitation is network congestion.

[0008] The calculation of the current network bandwidth reduction ratio includes: obtaining the ratio of the last transmittable data volume collected within a preset time interval to the historical transmittable data volume as the bandwidth reduction ratio; before comparing it with the reduction ratio of the number of resource blocks, it also includes: obtaining the ratio of the last number of resource blocks collected within a preset time interval to the historical number of resource blocks as the resource block reduction ratio.

[0009] Among them, the network bandwidth parameter also includes the number of resource blocks; after determining that the reason for the current network bandwidth limitation is channel attenuation, it also includes: judging whether the number of resource blocks is higher than the historical number of resource blocks and whether the difference between the number of resource blocks and the historical number of resource blocks is greater than the third preset difference threshold; if so, it is determined that the current network has sufficient resource blocks and the reason for the current network bandwidth limitation is not network congestion.

[0010] The network diagnostic method, after determining whether the number of resource blocks is higher than the historical number of resource blocks, also includes: if not, calculating the current network bandwidth reduction ratio and comparing it with the spectrum efficiency reduction ratio; determining whether the difference between the bandwidth reduction ratio and the spectrum efficiency reduction ratio is lower than the fourth preset difference threshold; if yes, determining that the current network has insufficient allocated resource blocks, but the reason for the current network bandwidth limitation is not network congestion; if no, determining that the reason for the current network bandwidth limitation is channel attenuation and network congestion.

[0011] The calculation of the current network bandwidth reduction ratio includes: obtaining the ratio of the last transmittable data volume collected within a preset time interval to the historical transmittable data volume as the bandwidth reduction ratio; before comparing it with the spectrum efficiency reduction ratio, it also includes: obtaining the ratio of the last spectrum efficiency collected within a preset time interval to the historical spectrum efficiency as the spectrum efficiency reduction ratio.

[0012] The network diagnostic methods also include optimizing the current network based on the reasons for the current network bandwidth limitation.

[0013] The network diagnostic method includes: periodically acquiring the amount of data that can be transmitted in the current network within each preset time interval; determining whether the amount of data that can be transmitted is less than the historical amount of data that can be transmitted and whether the difference between the amount of data that can be transmitted and the historical amount of data that can be transmitted is greater than the bandwidth fluctuation threshold; if so, determining that the bandwidth of the current network is limited and acquiring the bandwidth limited signal.

[0014] To solve the above-mentioned technical problems, another technical solution adopted in this application is to provide a network diagnostic device, which includes a processor and a memory. The memory is coupled to the processor and stores program data. The processor is used to execute the program data to implement the network diagnostic method as described above.

[0015] To solve the above-mentioned technical problems, another technical solution adopted in this application is to provide a computer-readable storage medium that stores program data, which, when executed, is used to implement the above-mentioned network diagnostic method.

[0016] The beneficial effects of this application are as follows: Unlike existing technologies, the network diagnostic method provided in this application is applied to a network diagnostic device. The network diagnostic device, in response to a bandwidth-limited signal, acquires the current network's output bit rate and network bandwidth parameters within a preset time interval. These network bandwidth parameters include the current network's transmittable data volume and spectral efficiency. The device then determines whether the transmittable data volume is lower than the output bit rate; if so, it determines whether the spectral efficiency is lower than historical spectral efficiency; if so, and the difference between the spectral efficiency and historical spectral efficiency is greater than a first preset difference threshold, it determines that the cause of the current network bandwidth limitation is channel attenuation. Through this method, compared to conventional network diagnostic methods, this application uses a method that acquires the current network bandwidth parameters in a network diagnostic device and compares these parameters with historical data or network output data to diagnose and analyze the cause of bandwidth limitation. This not only enables rapid and accurate identification of the cause of bandwidth limitation during transmission but also improves network diagnostic capabilities while ensuring stable network transmission. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] in:

[0019] Figure 1 This is a flowchart illustrating the first embodiment of the network diagnostic method provided in this application;

[0020] Figure 2 This is a schematic diagram of the overall process of applying the network diagnostic method to the network diagnostic device provided in this application;

[0021] Figure 3 This is a schematic diagram of the physical layer parameter changes that cause network congestion in the network diagnosis method provided in this application;

[0022] Figure 4 This is a schematic diagram of the physical layer parameter changes that cause channel attenuation in the network diagnostic method provided in this application;

[0023] Figure 5 This is a flowchart illustrating the second embodiment of the network diagnostic method provided in this application;

[0024] Figure 6 A flowchart illustrating the third embodiment of the network diagnostic method provided in this application;

[0025] Figure 7 This is a flowchart illustrating the fourth embodiment of the network diagnostic method provided in this application;

[0026] Figure 8 This is a schematic diagram of the structure of the first embodiment of the network diagnostic device provided in this application;

[0027] Figure 9 This is a schematic diagram of the structure of the second embodiment of the network diagnostic device provided in this application;

[0028] Figure 10 This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. Detailed Implementation

[0029] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0030] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this document means two or more. Moreover, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0031] The network diagnostic method provided in this application is mainly applied to a network diagnostic device, which can be a server or a system consisting of a server and terminal devices working together. Accordingly, the various parts of the network diagnostic device, such as units, subunits, modules, and submodules, can all be located in the server, or they can be located separately in the server and terminal devices.

[0032] Furthermore, the aforementioned server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software programs or software modules, such as software or software modules used to provide distributed servers, or as a single software program or software module; no specific limitation is made here. In some possible implementations, the network diagnostic method of this application embodiment can be implemented by a processor calling computer-readable instructions stored in memory.

[0033] The network diagnostic method provided in this application is mainly applied to network situational awareness. By monitoring network bandwidth parameters and sampling and analyzing the network bandwidth parameters and historical values ​​at preset time intervals, the method enables real-time monitoring and analysis of bandwidth data during network data transmission, quickly identifies the causes of bandwidth limitation, and adjusts and optimizes the network accordingly.

[0034] Current network diagnostics focus on monitoring relationships between networks, traffic flow, and load for subsequent data analysis, but do not address or resolve network bandwidth limitations that occur during data transmission. Therefore, this application provides a network diagnostic method, and the technical solution adopted in this application is described in detail below.

[0035] See Figure 1 and Figure 2 , Figure 1 This is a flowchart illustrating the first embodiment of the network diagnostic method provided in this application; Figure 2 This is a schematic diagram illustrating the overall process of applying the network diagnostic method to the network diagnostic device provided in this application.

[0036] Step 11: In response to the bandwidth-limited signal, obtain the current network output bit rate and network bandwidth parameters within a preset time interval, wherein the network bandwidth parameters include the current network's transmittable data volume and spectral efficiency.

[0037] In one embodiment of this application, three network bandwidth parameters closely related to physical layer scheduling are used as reference values, and these parameters are compared to analyze the reasons for the current network bandwidth limitation. Specifically, the network bandwidth parameters include the amount of data that the current network can transmit, spectral efficiency, and the number of resource blocks.

[0038] Specifically, the amount of data that can be transmitted in the current network is the sum of the amount of data that the base station allows terminals using the current network to transmit within a preset time interval. For example, when the preset time interval is 1 second, the amount of data that can be transmitted in the current network is the sum of all the data that the base station allows terminals using the current network to transmit within 1 second.

[0039] Specifically, spectral efficiency is the utilization rate of the physical spectrum by the current network. In this application, for the convenience of statistical calculation, the spectral efficiency of the current network is 100 times that of the current network as the spectral efficiency in the network bandwidth parameter.

[0040] Specifically, the number of resource blocks is the sum of the number of physical resource blocks allocated by the base station to terminals using the current network within a preset time interval. For example, when the preset time interval is 1 second, the number of resource blocks in the current network is the sum of all physical resource blocks allocated by the base station to terminals using the current network within 1 second. The preset time interval for obtaining the number of resource blocks is the same as the preset time interval for obtaining the amount of data that can be transmitted. The size of the preset time interval can be set by the user according to their needs and is not limited here.

[0041] Specifically, this application finds that among the two main causes of limited network bandwidth, network bandwidth parameters can be influenced by factors such as... Figure 3 and Figure 4 The pattern of change is shown. (See attached image.) Figure 3 and Figure 4 , Figure 3 This is a schematic diagram illustrating the changes in physical layer parameters that cause network congestion in the network diagnostic method provided in this application. Figure 4 This is a schematic diagram of the physical layer parameter changes that cause channel attenuation in the network diagnostic method provided in this application.

[0042] In one embodiment of this application, as Figure 3 As shown, network congestion occurs when multiple terminals compete for air interface resources during network data transmission. Before multiple terminals compete, the bandwidth allocated to a single terminal is higher than its uplink speed requirement. For example, if a terminal requires a speed of 100Mbps, but the allocated bandwidth can actually reach 120Mbps, meaning there is bandwidth redundancy.

[0043] After network congestion occurs, the bandwidth allocated to a single terminal drops rapidly, falling directly below the terminal's required rate. At the same time, the number of resource blocks, i.e., the number of allocated physical resources (RBs), also decreases rapidly, with its curve basically matching the bandwidth curve. However, the spectral efficiency remains basically unchanged or changes only slightly.

[0044] Therefore, bandwidth limitation caused by network congestion is not due to changes in spectral efficiency (i.e., external factors such as channel interference), but rather to resource contention and insufficient available physical resources. Thus, the curves for the number of resource blocks (RBs) and the amount of data that can be transmitted (allocated bandwidth) are essentially identical. Therefore, from Figure 3 It can be concluded that when the number of resource blocks and the amount of data that can be transmitted decrease in the same direction, the reason for bandwidth limitation is network congestion.

[0045] In another embodiment of this application, such as Figure 4 As shown, during network data transmission, if network signals are interfered with or blocked using methods such as attenuators, channel attenuation will occur. In scenarios with interference or shielding signals, the bandwidth rate decreases rapidly, and the change curve of spectral efficiency basically matches the amount of data that can be transmitted, showing a consistent trend.

[0046] However, the number of resource blocks (RB num) shows the opposite trend: when the amount of data that can be transmitted and the spectral efficiency decrease, the number of resource blocks increases; when the amount of data that can be transmitted and the spectral efficiency increase, the number of resource blocks decreases.

[0047] This shows that current physical resources are sufficient. The reason for the bandwidth decrease is that increased interference leads to changes in the channel environment, which in turn changes the spectral efficiency, resulting in decreased spectral utilization. Decreased spectral efficiency further reduces the amount of data that can be transmitted, thus causing a decrease in transmission rate. The inverse increase in the number of resource blocks is because, given sufficient physical resources, the base station allocates as many physical resources as possible to maintain the terminal's transmission rate. Therefore, from... Figure 4 It can be concluded that when the spectral efficiency and the amount of data that can be transmitted decrease in the same way, the reason for the bandwidth limitation is channel attenuation.

[0048] In summary, the causes of limited network bandwidth can be divided into two categories: network congestion due to resource contention and channel attenuation due to interference signals. Based on the above analysis, the current network problems can be diagnosed by analyzing the patterns among network bandwidth parameters.

[0049] In one embodiment of this application, the bandwidth-limited signal can be provided by Figure 5 The method shown is used to obtain, Figure 5 This is a flowchart illustrating the second embodiment of the network diagnostic method provided in this application.

[0050] Step 51: Periodically obtain the amount of data that can be transmitted within the current network's preset time interval.

[0051] Specifically, before acquiring a signal indicating bandwidth limitation, the network diagnostic device will record the network bandwidth parameters of each terminal as sampling data in real time within a preset time interval.

[0052] Step 52: Determine whether the amount of data that can be transmitted is less than the historical amount of data that can be transmitted and whether the difference between the amount of data that can be transmitted and the historical amount of data that can be transmitted is greater than the bandwidth fluctuation threshold.

[0053] Specifically, when the network diagnostic device detects that the amount of data that can be transmitted in the network bandwidth parameters within a preset time interval is less than the historical amount of data that can be transmitted, and the difference between the two is greater than the bandwidth fluctuation threshold, it is considered that the current network may be experiencing bandwidth limitations.

[0054] The historical transmittable data volume can be obtained from the average of the transmittable data volume in each preset time interval. The bandwidth fluctuation threshold can be set by the user according to their needs and is not limited here.

[0055] Step 53: Determine if the current network bandwidth is limited and obtain the bandwidth limitation signal.

[0056] Specifically, after receiving a signal indicating limited bandwidth, the network diagnostic device starts a timer to capture and collect the network bandwidth parameters of the current network within a preset time interval.

[0057] Step 12: Determine if the amount of data that can be transmitted is lower than the output bit rate.

[0058] Specifically, the output bitrate is the bitrate value of the currently transmitted data. For example, when the transmitted data is video, it can be represented as the current video's output bitrate. If the network diagnostic device determines that the amount of transmittable data acquired within the preset time interval of the timer is lower than the output bitrate, it will further analyze other parameters in the network bandwidth parameters to determine the cause of the bandwidth limitation.

[0059] Step 13: Determine whether the spectral efficiency is lower than the historical spectral efficiency and whether the difference between the spectral efficiency and the historical spectral efficiency is greater than the first preset difference threshold.

[0060] Specifically, historical spectral efficiency is the average of the spectral efficiency multiples obtained by the network diagnostic device when monitoring the current network at each preset time interval before acquiring the bandwidth-limited signal and starting the timer. The magnitude of the first preset difference threshold is set by the user and is not limited here.

[0061] In one embodiment of this application, if the network diagnostic device determines that one of the following two conditions is not met: the spectral efficiency is lower than the historical spectral efficiency, or the difference between the spectral efficiency and the historical spectral efficiency is greater than a first preset difference threshold, then the following method is used: Figure 6 The method shown is used to further determine the network bandwidth parameters. Figure 6 This is a flowchart illustrating the third embodiment of the network diagnostic method provided in this application.

[0062] Step 61: In response to the difference between the spectral efficiency and the historical spectral efficiency being less than or equal to the first preset difference threshold, calculate the bandwidth reduction ratio of the current network and compare it with the reduction ratio of the number of resource blocks.

[0063] Specifically, the case where the difference between the spectral efficiency and the historical spectral efficiency is less than or equal to the first preset difference threshold can include cases where the spectral efficiency is greater than, equal to, or less than the historical spectral efficiency. That is, the relationship between the spectral efficiency and the historical spectral efficiency is not limited here, as long as the difference between the spectral efficiency and the historical spectral efficiency is less than or equal to the first preset difference threshold.

[0064] Specifically, the network diagnostic device uses the ratio of the last transmittable data volume collected within a preset time interval to the historical transmittable data volume as the bandwidth reduction ratio. The historical transmittable data volume is the average transmittable data volume obtained during each preset time interval monitoring of the current network before the network diagnostic device acquires the bandwidth-limited signal and starts the timer.

[0065] Specifically, before comparing the reduction ratio of the number of resource blocks, the network diagnostic device also obtains the ratio of the last number of resource blocks collected within a preset time interval to the historical number of resource blocks as the reduction ratio of the number of resource blocks.

[0066] The historical resource block count is the average number of resource blocks obtained when monitoring the current network at each preset time interval before the network diagnostic device acquires the bandwidth-limited signal and starts the timer.

[0067] Step 62: Is the difference between the bandwidth reduction ratio and the resource block reduction ratio less than the second preset difference threshold?

[0068] Specifically, the size of the second preset difference threshold is set by the user and is not limited here.

[0069] Step 63: Determine that the cause of the current network bandwidth limitation is network congestion.

[0070] Optionally, if the network diagnostic device compares the bandwidth reduction ratio and the resource block reduction ratio of the current network and finds that the difference between the two is less than a second preset difference threshold, then it determines that the channel quality of the current network is good and the reason for the bandwidth limitation is network congestion.

[0071] Optionally, if the network diagnostic device obtains that the bandwidth reduction ratio and the reduction ratio of the number of resource blocks are greater than or equal to the second preset difference threshold, it is considered that the channel parameter comparison of the current network is abnormal, and the process returns to step 51 to monitor the current network environment.

[0072] Step 14: Determine that the cause of the current network bandwidth limitation is channel attenuation.

[0073] When the network diagnostic device determines that the spectral efficiency is lower than the historical spectral efficiency and the difference between the spectral efficiency and the historical spectral efficiency is greater than the first preset difference threshold, it determines that the reason for the current network bandwidth limitation is channel attenuation.

[0074] In one embodiment of this application, after confirming that channel attenuation is a cause of the current network bandwidth limitation, the number of resource blocks in the network bandwidth parameters can also be determined to more accurately identify the cause of the current network bandwidth limitation. See also... Figure 7 , Figure 7 This is a flowchart illustrating the fourth embodiment of the network diagnostic method provided in this application.

[0075] Step 71: Determine whether the number of resource blocks is higher than the number of historical resource blocks and whether the difference between the number of resource blocks and the number of historical resource blocks is greater than the third preset difference threshold.

[0076] If yes, proceed to step 76; otherwise, proceed to step 72. The value of the third preset difference threshold is set by the user and is not limited here.

[0077] Step 72: Calculate the current network bandwidth reduction ratio and compare it with the spectrum efficiency reduction ratio.

[0078] Specifically, the method by which the network diagnostic device calculates the current network bandwidth derating ratio is the same as in step 61, and will not be repeated here.

[0079] Specifically, before comparing with the spectral efficiency reduction ratio, the method further includes: obtaining the ratio of the last spectral efficiency collected within a preset time interval to the historical spectral efficiency as the spectral efficiency reduction ratio. The historical spectral efficiency is the average spectral efficiency obtained during each preset time interval when monitoring the current network before the network diagnostic device acquires the bandwidth-limited signal and starts the timer.

[0080] Step 73: Determine whether the difference between the bandwidth reduction ratio and the spectral efficiency reduction ratio is lower than the fourth preset difference threshold.

[0081] Specifically, if the difference between the bandwidth derating ratio and the spectral efficiency derating ratio is lower than a fourth preset difference threshold, proceed to step 74; if the difference between the bandwidth derating ratio and the spectral efficiency derating ratio is greater than or equal to the fourth preset difference threshold, proceed to step 75. The magnitude of the fourth preset difference threshold is set by the user and is not limited here.

[0082] Step 74: Determine that the current network has insufficient resource blocks, but the reason for the current network bandwidth limitation is not network congestion.

[0083] Specifically, the network diagnostic device determines that the current network has insufficient air interface channel resources and is busy, but the bandwidth limitation is mainly due to channel attenuation.

[0084] Step 75: Determine that the cause of the current network bandwidth limitation is channel attenuation and network congestion.

[0085] Specifically, the network diagnostic device determines that the current network is experiencing intense competition for air interface channel resources, and the bandwidth limitation is caused by a combination of channel attenuation and network congestion.

[0086] Step 76: Determine that the current network has sufficient resource blocks and that the reason for the current network bandwidth limitation is not network congestion.

[0087] Specifically, when the network diagnostic device determines that the number of resource blocks is higher than the historical number of resource blocks and the difference between the number of resource blocks and the historical number of resource blocks is greater than the third preset difference threshold, it determines that the air interface channel resources of the current network are sufficient, and the reason for the bandwidth limitation is channel attenuation.

[0088] Specifically, after determining the cause of the network bandwidth limitation, the network diagnostic device will also optimize the current network based on the final determined cause of the current network bandwidth limitation.

[0089] Specifically, the network diagnostic device adaptively adjusts the bitrate based on the real-time bandwidth value of the current network to avoid data stream loss. It also continues to monitor the network bandwidth parameters of the current network in real time, and adjusts the bitrate back to the original value in real time after the network is confirmed to have returned to normal.

[0090] Unlike existing technologies, the network diagnostic method provided in this application is applied to a network diagnostic device. In response to a bandwidth-limited signal, the device acquires the current network's output bit rate and network bandwidth parameters within a preset time interval. These bandwidth parameters include the current network's transmittable data volume and spectral efficiency. The device then determines whether the transmittable data volume is lower than the output bit rate. If so, it determines whether the spectral efficiency is lower than historical spectral efficiency. If so, and the difference between the spectral efficiency and historical spectral efficiency is greater than a first preset difference threshold, the cause of the current network bandwidth limitation is determined to be channel attenuation. Compared to conventional network diagnostic methods, this application uses a method that acquires the current network bandwidth parameters within a network diagnostic device and compares these parameters with historical data or network output data to diagnose and analyze the cause of bandwidth limitation. This not only enables rapid and accurate identification of the cause of bandwidth limitation during transmission but also improves network diagnostic capabilities while ensuring stable network transmission.

[0091] The method described in the above embodiments can be implemented using a network diagnostic device, as described below. Figure 8 Describe, Figure 8 This is a schematic diagram of the structure of the first embodiment of the network diagnostic device provided in this application.

[0092] like Figure 8 As shown, the network diagnostic device 80 of this application embodiment includes a response module 81, a first judgment module 82, a second judgment module 83, and a diagnostic module 84.

[0093] The response module 81 is used to respond to a bandwidth-limited signal and obtain the current network output bit rate and network bandwidth parameters within a preset time interval. The network bandwidth parameters include the amount of data that the current network can transmit and the spectral efficiency.

[0094] The first judgment module 82 is used to determine whether the amount of data that can be transmitted is lower than the output bit rate.

[0095] The second judgment module 83 is used to determine whether the spectral efficiency is lower than the historical spectral efficiency and whether the difference between the spectral efficiency and the historical spectral efficiency is greater than the first preset difference threshold.

[0096] Diagnostic module 84 is used to determine that the cause of the current network bandwidth limitation is channel attenuation.

[0097] The method described in the above embodiments can be implemented using a network diagnostic device, as described below. Figure 9 , Figure 9 This is a schematic diagram of the structure of the second embodiment of the network diagnostic device provided in this application. The network diagnostic device 90 includes a memory 91 and a processor 92. The memory 91 is used to store program data, and the processor 92 is used to execute the program data to implement the following method:

[0098] In response to a bandwidth-limited signal, the system acquires the current network output bit rate and network bandwidth parameters within a preset time interval. The network bandwidth parameters include the current network's transmittable data volume and spectral efficiency. The system then determines whether the transmittable data volume is lower than the output bit rate. If so, it determines whether the spectral efficiency is lower than the historical spectral efficiency. If so, and the difference between the spectral efficiency and the historical spectral efficiency is greater than a first preset difference threshold, the system determines that the reason for the current network bandwidth limitation is channel attenuation.

[0099] See Figure 10 , Figure 10 This is a schematic diagram of an embodiment of the computer-readable storage medium 100 provided in this application. The computer-readable storage medium 100 stores program data 101, which, when executed by a processor, is used to implement the following method:

[0100] In response to a bandwidth-limited signal, the system acquires the current network output bit rate and network bandwidth parameters within a preset time interval. The network bandwidth parameters include the current network's transmittable data volume and spectral efficiency. The system then determines whether the transmittable data volume is lower than the output bit rate. If so, it determines whether the spectral efficiency is lower than the historical spectral efficiency. If so, and the difference between the spectral efficiency and the historical spectral efficiency is greater than a first preset difference threshold, the system determines that the reason for the current network bandwidth limitation is channel attenuation.

[0101] When the embodiments of this application are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, 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.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0102] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A network diagnostic method, characterized in that, The network diagnostic method includes: In response to a bandwidth-limited signal, the current network output bit rate and network bandwidth parameters within a preset time interval are obtained, wherein the network bandwidth parameters include the amount of data that the current network can transmit and the spectral efficiency. Determine whether the amount of data that can be transmitted is lower than the output bit rate; If so, determine whether the spectral efficiency is lower than the historical spectral efficiency; If so, and the difference between the spectral efficiency and the historical spectral efficiency is greater than a first preset difference threshold, the cause of the current network bandwidth limitation is determined to be channel attenuation.

2. The network diagnostic method according to claim 1, characterized in that, The network bandwidth parameters also include the number of resource blocks; The network diagnostic method also includes: If the difference between the spectral efficiency and the historical spectral efficiency is less than or equal to the first preset difference threshold, the bandwidth reduction ratio of the current network is calculated and compared with the reduction ratio of the number of resource blocks. If the difference between the bandwidth reduction ratio and the reduction ratio of the number of resource blocks is less than a second preset difference threshold, the cause of the current network bandwidth limitation is determined to be network congestion.

3. The network diagnostic method according to claim 2, characterized in that, The calculation of the bandwidth reduction ratio of the current network includes: The ratio of the last transmittable data volume collected within the preset time interval to the historical transmittable data volume is used as the bandwidth reduction ratio. Before the comparison with the reduction ratio of the number of resource blocks, the method further includes: The ratio of the number of resource blocks collected in the last time interval to the number of historical resource blocks is obtained as the ratio of the number of resource blocks.

4. The network diagnostic method according to claim 1, characterized in that, The network bandwidth parameters also include the number of resource blocks; After determining that the cause of the current network bandwidth limitation is channel attenuation, the method further includes: Determine whether the number of resource blocks is higher than the historical number of resource blocks and whether the difference between the number of resource blocks and the historical number of resource blocks is greater than a third preset difference threshold; If so, then it is determined that the resource blocks allocated to the current network are sufficient, and the reason for the current network bandwidth limitation is not network congestion.

5. The network diagnostic method according to claim 4, characterized in that, After determining whether the number of resource blocks is higher than the historical number of resource blocks, the network diagnostic method further includes: If not, calculate the bandwidth reduction ratio of the current network and compare it with the spectral efficiency reduction ratio; Determine whether the difference between the bandwidth reduction ratio and the spectral efficiency reduction ratio is lower than a fourth preset difference threshold; If so, it is determined that the resource blocks currently allocated to the network are insufficient, but the reason for the current network bandwidth limitation is not network congestion; If not, then the cause of the current network bandwidth limitation is determined to be channel attenuation and network congestion.

6. The network diagnostic method according to claim 5, characterized in that, The calculation of the bandwidth reduction ratio of the current network includes: The ratio of the last transmittable data volume collected within the preset time interval to the historical transmittable data volume is used as the bandwidth reduction ratio. Before the comparison with the spectral efficiency reduction ratio, the following is also included: The ratio of the last spectral efficiency collected within the preset time interval to the historical spectral efficiency is obtained as the spectral efficiency reduction ratio.

7. The network diagnostic method according to claim 1, characterized in that, The network diagnostic method also includes: The current network is optimized based on the reasons for the current network bandwidth limitation.

8. The network diagnostic method according to claim 1, characterized in that, The network diagnostic method includes: The amount of data that can be transmitted on the current network in each preset time interval is periodically obtained. Determine whether the amount of data that can be transmitted is less than the historical amount of data that can be transmitted, and whether the difference between the amount of data that can be transmitted and the historical amount of data that can be transmitted is greater than the bandwidth fluctuation threshold. If so, then determine that the bandwidth of the current network is limited, and obtain the signal indicating that the bandwidth is limited.

9. A network diagnostic device, characterized in that, The network diagnostic device includes a memory and a processor coupled to the memory; The memory is used to store program data, and the processor is used to execute the program data to implement the network diagnostic method as described in any one of claims 1 to 8.

10. A computer storage medium, characterized in that, The computer storage medium is used to store program data, which, when executed by the computer, is used to implement the network diagnostic method as described in any one of claims 1 to 8.