Network quality assessment method, electronic device and storage medium

By generating the target network topology and calculating the transmission cost, the poor network quality caused by node wireless channel connection in the Mesh network is solved, and the accurate evaluation and adjustment of the Mesh network quality is achieved, which improves the user experience.

CN113965474BActive Publication Date: 2024-11-12ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010606802.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-11-12
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

The nodes in the Mesh network are connected through wireless channels, which leads to a great impact on the network quality due to external factors, making it difficult for users to evaluate and adjust the network quality, affecting the user experience.

Method used

By generating the target network topology, the structure of the child nodes directly connected to the main node is used to calculate the transmission cost of the target network and the actual network, accurately evaluate the current network quality, and provide adjustment suggestions to improve network quality.

Benefits of technology

Accurate evaluation and adjustment of Mesh network quality is achieved, user experience is improved, and network performance is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113965474B_ABST
    Figure CN113965474B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention relate to the field of communications, and disclose a method, electronic device, and storage medium for evaluating network quality. The method for evaluating network quality in the present invention includes: generating a target network topology based on node information in the current network, wherein the target network topology is a network topology structure in which the main node is directly connected to each child node; determining the network transmission cost of the target network topology as the first network transmission cost, and determining the network transmission cost of the actual network topology as the second network transmission cost based on the node information in the current network, the target network topology, and the actual network topology of the current network; determining the quality evaluation result of the current network based on the first network transmission cost and the second network transmission cost. The method for evaluating network quality in this embodiment allows users to obtain the quality of the current network, assists users in adjusting the current network, and improves the quality of the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method for evaluating network quality, an electronic device, and a storage medium. Background Art

[0002] Mesh router is a product that can expand the coverage of wifi. It can be used in small office areas, home network coverage and other scenarios. Within the coverage of the Mesh router, the user's wifi terminal can seamlessly switch between several routers, and the terminal can choose the best access location to achieve a better network rate. Generally, the Mesh network is formed by several single routers to form a unified network, and the Mesh routers are placed in different rooms for coverage. Each Mesh node is connected through a wireless channel.

[0003] However, the overall performance of the Mesh network is related to the placement of the Mesh router, but users do not know the overall performance of the network, resulting in poor quality of the Mesh network, affecting the user experience. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method, electronic device and storage medium for evaluating network quality, so that a user can obtain the quality of the current network, assist the user in adjusting the current network and improve the quality of the network.

[0005] To solve the above technical problems, an embodiment of the present invention provides a method for network quality assessment, including: generating a target network topology based on node information in the current network, the target network topology being a network topology structure in which a main node is directly connected to each child node; determining a network transmission cost of the target network topology as a first network transmission cost, and determining a network transmission cost of the actual network topology as a second network transmission cost, based on the node information in the current network, the target network topology and the actual network topology of the current network; and determining a quality assessment result of the current network based on the first network transmission cost and the second network transmission cost.

[0006] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the above-mentioned network quality assessment method.

[0007] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned network quality evaluation method is implemented.

[0008] Compared with the prior art, the embodiments of the present invention generate a target network topology based on the node information in the current network. The target network topology adopts a structure in which the sub-nodes are directly connected to the main node. Each sub-node in the target network topology is the shortest distance from the main node, and the time consumed for data transmission in the target network is the shortest. The network transmission cost of the target network topology is the network transmission cost under an ideal state. The network transmission cost of the target network topology structure is used as a standard for measuring the network transmission cost of the actual network topology, and the quality evaluation result of the current network can be accurately quantified, so that the quality evaluation result of the determined current network is accurate, which can assist users in adjusting networks with poor network quality, thereby improving the network quality of the network and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.

[0010] Figure 1 is a flow chart of a method for network quality assessment provided according to a first embodiment of the present invention;

[0011] Figure 2 is a flow chart of a method for network quality assessment provided according to a second embodiment of the present invention;

[0012] Figure 3 is a network topology diagram of a current network in a method for evaluating network quality provided by a second embodiment of the present invention;

[0013] Figure 4 is a schematic diagram of a target network topology structure diagram in a method for network quality assessment provided by a second embodiment of the present invention;

[0014] Figure 5 is a schematic diagram of a specific implementation of determining a network transmission cost in a method for evaluating network quality provided by a second embodiment of the present invention;

[0015] Figure 6 is a schematic diagram of a specific implementation of determining the maximum rate of each path in a method for evaluating network quality provided according to a second embodiment of the present invention;

[0016] Figure 7 is a flow chart of a method for network quality assessment provided according to a third embodiment of the present invention;

[0017] Figure 8 is a schematic diagram of a path in a method for network quality assessment provided according to a third embodiment of the present invention;

[0018] Fig. 9is a schematic diagram of a display interface in a method for network quality assessment provided according to a third embodiment of the present invention;

[0019] Fig.10 is a structural block diagram of an electronic device provided according to a fourth embodiment of the present invention. DETAILED DESCRIPTION

[0020] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0021] The inventor found that each node in the current Mesh network is connected through a wireless channel. Due to the characteristics of the wireless channel, the channel quality is greatly affected by the outside world. For example, the direction of the antenna and the obstruction of the building will affect the performance of the Mesh router (i.e., Mesh node). Therefore, if the user places the Mesh node in an inappropriate position or adopts an inappropriate orientation, the network quality of the obtained Mesh network will inevitably be very poor, affecting the user's use of the network. However, currently only a manual for placing Mesh nodes is provided to users. The manual introduces the principles of Mesh node placement, such as: the placement should be upright (lying flat or in other postures), ensuring that the router is in a relatively open position and is not blocked by other obstacles; Mesh routers should not pass through too thick walls, and it is best to be within each other's field of vision. After the user places the Mesh router according to the manual, he does not know whether the network quality of the obtained network is good or whether there is room for improvement.

[0022] The first embodiment of the present invention relates to a method for evaluating network quality, the process of which is as follows: Figure 1 As shown:

[0023] Step 101: Generate a target network topology based on node information in the current network. The target network topology is a network topology structure in which a main node is directly connected to each sub-node.

[0024] Step 102: According to the node information in the current network, the target network topology and the actual network topology of the current network, determine the network transmission cost of the target network topology as the first network transmission cost, and determine the network transmission cost of the actual network topology as the second network transmission cost.

[0025] Step 103: Determine a quality evaluation result of the current network according to the first network transmission cost and the second network transmission cost.

[0026] Compared with the prior art, the embodiments of the present invention generate a target network topology based on the node information in the current network. The target network topology adopts a structure in which the sub-nodes are directly connected to the main node. Each sub-node in the target network topology is the shortest distance from the main node, and the time consumed for data transmission in the target network is the shortest. The network transmission cost of the target network topology is the network transmission cost under an ideal state. The network transmission cost of the target network topology structure is used as a standard for measuring the network transmission cost of the actual network topology, and the quality evaluation result of the current network can be accurately quantified, so that the determined quality evaluation result of the current network is accurate, thereby assisting users to adjust the network with poor network quality, thereby improving the network quality of the network and enhancing the user experience.

[0027] The second embodiment of the present invention relates to a method for evaluating network quality, the process of which is as follows: Figure 2 The network quality assessment method can be applied to electronic devices, such as computers, servers, etc.

[0028] To better understand the network quality assessment method in this example, the following first introduces the Mesh network.

[0029] Mesh network is formed by connecting multiple routers with networking functions. After Mesh networking, users can get a network topology diagram of the current network, such as Figure 3 As shown in the figure, the network topology of the Mesh network usually adopts an inverted tree structure. In this tree structure, the root of the tree is the entire Mesh network exit and also the control node of the network. Below it, several Mesh routers can be connected as the first-layer nodes, and the second-layer nodes can be connected under the first-layer nodes. All access devices, such as mobile phones, PCs, etc., are connected to these child nodes. As the user moves, the user's terminal can roam in the entire Mesh network. Mesh routers can be connected by wire or wirelessly. The medium connecting each Mesh router and the way the Mesh routers are connected have a great impact on the network quality of the entire network.

[0030] Generally, the farther the child node is from the master node, the greater its maximum performance loss, e.g. Figure 3In the figure, subnodes 3 and 4 are the farthest from the main node, so the information has to travel a longer distance to be transmitted to subnodes 3 and 4, resulting in a greater maximum performance loss. The subnode with the weakest path capability in the entire Mesh network determines the maximum transmission capacity of the entire network. Generally speaking, wired connections are more stable than wireless connections. In wireless connections, 5G has a larger capacity than 2.4G, but 5G's large-capacity transmission also has more stringent environmental requirements.

[0031] Step 201: Generate a target network topology based on node information in the current network. The target network topology is a network topology structure in which a master node is directly connected to each child node.

[0032] In one example, before executing step 201, the node information in the current network can be obtained first. The method of obtaining the information can be to re-acquire the node information of each node if it is detected that there is a node whose connection status has changed; or, to periodically obtain the node information of each node; or, to periodically obtain the node information of each node and re-acquire the node information of each node if it is detected that there is a node whose connection status has changed.

[0033] Specifically, in a Mesh network, electronic devices can be connected to a master node, and then the node information of each node can be periodically obtained through the master node. The master node can be controlled to query whether there is a node whose connection status has changed. If so, the node information of each node can be re-obtained. For example, if a new node is found, the node information of each node can be re-obtained. The node information of each node can also be periodically obtained, and at the same time, it can also be detected whether there is a node whose connection status has changed.

[0034] The node information is used to characterize the transmission capability of the node, and may include the channel utilization information of the node's location and the node's network transmission information. The channel utilization information of the node's location may include: the node's identification information, the identification information of the channel occupied by the node, and the occupancy rate of the used channel, etc. The node's network transmission information may include: the node's capability information and connection information, etc. The capability information is used to characterize the node's inherent capability information. For example, the node's capability information may include the node's identification information, the frequency band medium supported by the node, and the maximum physical rate supported by the node on each frequency band. The connection information may include the node identification information, the node's uplink node identification information, the node's uplink connection bandwidth, the node's uplink connection signal strength, etc.

[0035] Specifically, a node can support wired and wireless connections, and each medium has its theoretical maximum transmission rate. The node identification information can be the MAC address of the node's network card or other identification; the frequency band media supported by the node include: wireless 2.4G / 5G, wired media; the node capability information obtained is: node N supports 2.4G, 5G and wired, and the capability information can be expressed as:

[0036]

[0037] Among them, Node:nodeId represents the identification of the node, and Capability represents the media information supported by the node and the theoretical maximum transmission rate under each medium. When the node address is mac1, it supports the 2.4G frequency band, and the theoretical maximum transmission rate under the 2.4G frequency band is 300M.

[0038] The connection information of a node can be expressed in the following form:

[0039]

[0040] The above information indicates the current node's ID, the uplink node's ID, the uplink node's connection mode is wifi, and it operates in the 2.4G frequency band; the uplink connection signal strength of the node is -65dbm.

[0041] Connection information is as follows:

[0042]

[0043] The connection information indicates: the identifier of the current node, the identifier of the upstream node; and the upstream subnode to which the node is connected via Ethernet. The upstream connection signal strength value has no information and is therefore not displayed.

[0044] Get the channel utilization information of the current location of the child node. The following is a statistics of the 2.4G and 5G channel utilization of a node at its own location.

[0045]

[0046]

[0047] The above information indicates that the utilization rate of 2.4G channel 7 at the location of the node is 65%, and the utilization rate of channel 149 is 5%. To obtain the node information of the child node, the above three types of information can be saved in corresponding sets respectively.

[0048] It should be noted that the node capability information can be obtained when networking. If a node whose connection status has changed is detected, the node connection information can be re-acquired, and the channel utilization information of the node's current location can be periodically obtained.

[0049] In one example, the number of nodes in the current network can be obtained to generate a target network topology, which is a network topology structure in which the main node is directly connected to each child node.

[0050] Specifically, the target network topology can meet the following conditions: all subnodes are directly connected to the main node, there is no subnode with more than one hop, and the medium connecting all subnodes to the main node uses the maximum capacity of the subnode, and the signal strength is considered to be optimal, and there is no channel competition. The network topology that meets the above conditions is taken as the target network topology. The structure diagram of the target network topology is shown in the figure below. Figure 4 As shown, all child nodes are directly connected to the master node.

[0051] It can be understood that, according to the node information of each child node, the number of all child nodes in the current network can be obtained, and according to the number of child nodes and the construction conditions of the target network topology structure, the target network topology structure can be obtained. For example, the number of child nodes is 5, and all child nodes are directly connected to the main node, so Figure 4 The target network topology is shown.

[0052] Step 202: According to the node information in the current network, the target network topology and the actual network topology of the current network, the network transmission cost of the target network topology is determined as the first network transmission cost, and the network transmission cost of the actual network topology is determined as the second network transmission cost.

[0053] In one example, the node information includes: channel utilization information of the node's location and network transmission information of the node; the process of determining the first network transmission cost is similar to the process of determining the second network transmission cost, and the following is performed for each network: Figure 5 Steps shown.

[0054] Step S21: Determine the maximum rate of each path in the network topology structure according to the channel utilization information of each node and the network transmission information of each node.

[0055] Specifically, the channel utilization information of the node includes: the channel strength of the channel where the node is located, and the network transmission information of the node includes: the signal strength of the node.

[0056] In one example, the maximum rate for each path can be determined as follows: Figure 6 Steps shown.

[0057] Step S211: determine the signal strength factor of the path and the channel contention factor of the path. The signal strength factor is used to indicate the influence of the signal strength of the nodes in the path on the transmission rate. The channel contention factor is used to indicate the influence of the channel contention in the path on the transmission rate.

[0058] Specifically, the influence of signal strength on transmission rate can be tested in advance on-site or in a laboratory to obtain the corresponding relationship between signal strength and transmission rate, wherein the corresponding relationship can be measured by a distance experiment. Factors affecting the signal strength factor may be distance, obstruction of objects, or environmental noise interference. The signal strength factor can be the percentage of the rate that can be achieved at the current signal strength relative to the theoretical maximum transmission rate, and the signal strength factor can be represented by SF.

[0059] Wireless data transmission is based on channel competition. When multiple terminals transmit and receive on the same channel, they generally take turns using the channel, which results in the node being unable to exert its maximum transmission capacity. The closer the nodes are to each other, the greater the impact of channel competition. The better the isolation between nodes, the smaller the impact of channel competition. It should be noted that competition occurs on the same channel, and there is no channel competition between different channels. For example, there is no channel competition between the channels of 2.4G, 5G, and wired media. The channel competition factor indicates the percentage of the achievable rate to the theoretical maximum transmission rate under the current channel conditions. The channel competition factor is recorded as CF (channel Factor). Among them, the data of co-channel interference can be obtained in advance through experiments.

[0060] Each path may contain multiple nodes, and the signal strength factor and channel contention factor of the node in the path can be calculated based on the starting node or the end node in the hop path. The signal strength factor can be obtained based on the signal strength of the node and the correspondence between the signal strength and the transmission rate obtained in advance, and the transmission rate and the ideal maximum rate of the current path are obtained to obtain the signal strength factor of the path. Similarly, the transmission rate and the ideal maximum speed of the channel where the current node is located are obtained to obtain the channel strength factor of the path.

[0061] Step S212: determine the product value among the theoretical maximum transmission rate of the path, the signal strength factor of the path, and the channel contention factor of the path, and use the product value as the maximum rate of the path.

[0062] To obtain the theoretical maximum transmission rate of the path, multiply the theoretical maximum transmission rate of the path, the signal strength factor of the path, and the channel contention factor of the path. The maximum rate of the path can be expressed as formula (1):

[0063] V i,j =V max ×SF i,j ×CFi,j Formula (1);

[0064] Among them, V i,j represents the maximum rate of the path between child node j and child node i; SF i,j The signal strength factor of the path between child node j and child node i (0 <SF i,j <1); CF i,j represents the channel competition factor of the path between child node j and child node i (0 <CF i,j <1); V max Represents the theoretical maximum transmission rate of the path between child node j and child node i.

[0065] Step S22: Determine the transmission time consumed by each path to transmit data according to the maximum rate of each path.

[0066] In one example, the reciprocal of the maximum rate of each path is taken as the duration of the path; the product of the duration of each path and the media contention factor is taken as the transmission duration of the path, and the media contention factor is used to indicate the intensity of channel competition between the path and other paths on the transmission medium.

[0067] Specifically, each path may contain multiple segments, and each segment contains only two nodes; if a path contains two segments, if the frequency band of the first segment is 2.4G, and the second segment is a wired connection, the transmission time of the path is not the sum of the transmission time of the first segment and the transmission time of the second segment. Instead, the one with the largest transmission time in the two segments is selected as the transmission time of the path. Because 2.4G has no competition relationship on the medium in wired transmission, they can send and receive at the same time. In order to accurately determine the transmission time of the path, a corresponding media competition factor can be set for each segment; the media competition factor can be set in the range of 0 to 1; the media competition factor can be set according to the actual connection situation. For example, a larger media competition factor can be set for a path with a greater competition relationship, and a smaller media competition factor can be set for a path without channel competition. The media competition factor can be recorded as M i,j (0 <Mi,j<1)。

[0068] The time taken for each path can be expressed as formula (2):

[0069] T ij =1 / V i,j Formula (2);

[0070] Therefore, the transmission time of this path is P i,j It can be shown as formula (3):

[0071] P i,j =T ij ×Mi,j Formula (3);

[0072] Step S23: Determine the sum of the transmission time consumed by all paths from the node to the master node to transmit data.

[0073] Calculate the sum of the transmission time consumed by all paths from node m to the master node, as shown in formula (4):

[0074]

[0075] Among them, P m Represents the sum of the transmission time consumed by all paths from node m to the master node to transmit data.

[0076] Step S24: Determine the network transmission cost of the network topology structure according to each sum value.

[0077] The sum of all child nodes is taken as the network transmission cost of the entire network. The network cost N of the network topology is expressed as:

[0078]

[0079] Where N represents the network transmission cost of the entire network, P i It represents the sum of the transmission time consumed by all paths from the i-th node to the master node to transmit data, and M represents the number of nodes in the entire network.

[0080] The network transmission cost of the target network topology structure and the network transmission cost of the actual network topology are calculated respectively in a manner of determining the network transmission cost, and the network transmission cost of the target network topology structure is used as the first network transmission cost, and the network transmission cost of the actual network topology is used as the second network transmission cost.

[0081] Step 203: Determine a ratio between the first network transmission cost and the second network transmission cost.

[0082] Specifically, the ratio between the first network transmission cost and the second network transmission cost is calculated. The ratio can be shown as formula (6):

[0083] Score = N min / N current Formula (6);

[0084] Among them, N min represents the first network transmission cost, N current It represents the transmission cost of the second network, and Score represents the ratio.

[0085] Step 204: Determine the quality assessment result of the current network according to the ratio.

[0086] Specifically, the quality assessment result may include the ratio; the quality assessment result may also include quality levels, at least two network quality levels may be pre-set, and a corresponding ratio range may be set for each network quality level; after determining the ratio of the first network transmission cost and the second network transmission cost, the ratio is compared with the ratio range corresponding to each level to determine the network quality level of the current network.

[0087] It is understandable that the quality assessment result of the current network may be fed back to the user, for example, the quality assessment result may be displayed or played.

[0088] The technical solution provided in this embodiment obtains the transmission duration of each path according to the signal strength of the node and the channel contention of the path, so that the determined transmission duration is accurate, and the network transmission cost is further accurately determined.

[0089] The third embodiment of the present invention relates to a method for evaluating network quality. The second embodiment is a further improvement of the second embodiment. In this embodiment, after determining the quality evaluation result of the current network, defect information of the actual network topology is obtained. The process is as follows: Figure 7 shown.

[0090] Step 301: Generate a target network topology based on node information in the current network.

[0091] Step 302: According to the node information in the current network, the target network topology and the actual network topology of the current network, determine the network transmission cost of the target network topology as the first network transmission cost, and determine the network transmission cost of the actual network topology as the second network transmission cost.

[0092] Step 303: Determine a ratio between the first network transmission cost and the second network transmission cost.

[0093] Step 304: Determine the quality assessment result of the current network according to the ratio.

[0094] Steps 301 to 304 are substantially the same as steps 201 to 204 in the second embodiment, and will not be described in detail herein.

[0095] Step 305: Obtain defect information in the actual network topology according to the quality assessment result.

[0096] In one example, the quality assessment result may also include intermediate values ​​obtained in the process of calculating the second network transmission cost, such as the channel contention factor of each path, the signal strength factor of each path, the theoretical maximum transmission rate of each node, etc.

[0097] The following processing is performed for each path of the actual network topology:

[0098] Determine whether the signal strength factor of the path is less than a first preset threshold value, if so, the first result indicates that the path has a signal defect; determine whether the channel contention factor of the path is less than a second preset threshold value, if so, the second result indicates that the path has a channel contention defect; determine whether the number of nodes in the path is greater than a third preset threshold value, if so, the third result indicates that the path has a transmission distance defect; compare the theoretical maximum transmission rate of each node in the path, mark the node corresponding to the smallest theoretical maximum transmission rate, then the fourth result indicates that the marked node of the path has a performance defect; generate defect information based on the first result, the second result, the third result and the fourth result.

[0099] Specifically, the first preset threshold, the second preset threshold and the third preset threshold can be set according to the actual application. For example, the first preset threshold can be set to 0.5, the second preset threshold is 0.5, and the third preset threshold can be set to 3. When the signal strength factor is less than the first preset threshold of 0.5, it indicates that the signal of the path where the current node is located is poor, and there are signal defects in the path, such as the path is blocked, the antenna orientation is unreasonable, and other problems. If the channel competition factor is less than the second preset threshold of 0.5, it indicates that the channel competition of the path where the current node is located is fierce, and there is a channel competition defect; if the number of nodes in the path is greater than the third preset threshold, it indicates that the current path is long, for example, the path from node 1 to node 4, the path contains nodes 1, node 2, node 3 and node 4, the number of nodes is greater than the third preset threshold, that is, the number of nodes n>3, indicating that there is a transmission distance defect; if the number of nodes is greater than 3, and the channel competition factor of the path is greater than 0.5, it indicates that there is interference in the path. If the theoretical maximum transmission rate of each node in the path is compared, the node corresponding to the smallest theoretical maximum transmission rate is marked, and the fourth result indicates that the marked node of the path has a performance defect.

[0100] Based on the first result, the second result, the third result, and the fourth result, defect information can be produced.

[0101] Step 306: Determine an improvement strategy corresponding to the defect information.

[0102] In one example, if the defect information includes a signal defect, determining an improvement strategy includes: changing the frequency band used by the node in the path; if the defect information includes a channel contention defect, determining an improvement strategy includes: switching the transmission channel of the node in the path; if the defect information includes a transmission distance defect, determining an improvement strategy includes: moving the position of the node in the path so that the first distance between the node and the main node is less than the second distance between the current node and the main node; if the defect information includes a node performance defect, determining an improvement strategy includes: removing the marked node.

[0103] Specifically, if the defect information includes a signal defect, the frequency band used by the node is changed. For example, if the connection medium uses a 5G frequency band and there is a signal defect, the frequency band used can be changed to 2.4G. If the defect information includes a channel contention defect, the improvement strategy includes: switching the transmission channel of the node, for example, switching to a less busy channel. If the defect information includes a transmission distance defect, the improvement strategy includes: moving the position of the node in the path so that the first distance between the node and the main node is less than the second distance between the current node and the main node, for example, shortening the length of the path, that is, reducing the number of nodes in the path; the medium of each path can also be staggered and separated, such as Figure 8 As shown, it should be noted that each path contains multiple segments, and each segment contains two nodes, the upper and lower nodes; Figure 8 This path includes 6 nodes and 5 path segments. 2.4G medium is used between node N1 and node N2, Ethernet connection line is used between node N2 and node N3, 5G medium is used between node N3 and node N4, Ethernet connection line is used between node N4 and node N5, and 5G medium is used between node N5 and node N6.

[0104] It is understandable that the quality assessment results of the current network and the acquired defect information can be displayed to the user in the form of an interface. Fig. 9 The interface shown may also be displayed using other interfaces. Fig. 9 In the figure, the network score of the current network is shown as: 30%; and the interface also shows the network topology of the current network, where the solid line indicates a wired connection and the dotted line indicates a wireless connection.

[0105] Step 307: In response to the user's acquisition request, provide the user with correction information so that the user can correct the actual network topology.

[0106] The correction information includes defect information; or, the correction information includes an improvement strategy; or, the correction information includes defect information and an improvement strategy. For example, after the user initiates a request for obtaining the defect information through the interface, the defect information may be displayed on the interface; or the improvement strategy may be displayed, or both the information and the improvement strategy may be displayed. It is understood that if an improvement strategy is provided, a method for selecting the improvement strategy may be provided to the user, such as clicking a control or inputting a control.

[0107] In one example, in response to an improvement strategy selected by a user, the actual network topology is updated according to the selected improvement strategy; or, in response to a user's operation of moving a node, a re-networking request initiated by a node is received, and the actual network topology is updated.

[0108] Specifically, the user can select an improvement strategy on the displayed interface. For example, if a defect is displayed on the display interface, the display interface provides a trigger control. After the user triggers the click control, the improvement strategy corresponding to the defect information is displayed, as shown in Table 1:

[0109]

[0110] Table 1

[0111] The user can select an improvement strategy as needed, and in response to the improvement strategy selected by the user, the actual network topology is updated according to the selected improvement strategy. The actual network topology can be automatically updated, or the channel of the node can be automatically adjusted. The user can move the node according to the guidance of the improvement strategy, and the electronic device obtains the user's movement operation on the node, receives the re-networking request initiated by the node, and updates the actual network topology. For example, Fig. 9 As shown, the user can manually move the node under the second-floor bedroom to the first-floor bedroom 1, and hang the node of the restaurant directly on the first-floor bedroom 1. After the drag and drop is completed, the master node will send a re-networking message to the "restaurant" node, disconnect the original node second-floor bedroom, and connect to the target node first-floor bedroom 1.

[0112] After the actual network topology is updated, a quality assessment result of the updated actual network topology is determined, provided, and displayed.

[0113] The technical solution provided in this embodiment obtains the defect information of the current network according to the quality assessment result of the current network, determines the improvement strategy of the defect information, and then enables users to correct the current network according to the improvement strategy, improve the network quality of the network, and enhance the user experience.

[0114] A fourth embodiment of the present invention relates to an electronic device, such as Fig.10 As shown, it includes: at least one processor 401; and a memory 402 that is communicatively connected to the at least one processor 401; wherein the memory 402 stores instructions that can be executed by at least one processor 601, and the instructions are executed by at least one processor 401 so that the at least one processor 401 can execute the above-mentioned network quality assessment method.

[0115] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.

[0116] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.

[0117] A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the network quality evaluation method of the above method embodiment.

[0118] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0119] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A method for evaluating network quality, characterized in that: include: Generate a target network topology based on the node information in the current network, wherein the target network topology is a network topology structure in which the main node is directly connected to each sub-node; According to the node information in the current network, the target network topology and the actual network topology of the current network, determining the network transmission cost of the target network topology as the first network transmission cost, and determining the network transmission cost of the actual network topology as the second network transmission cost; Determining a quality assessment result of a current network according to the first network transmission cost and the second network transmission cost; The node information includes: the channel strength of the channel where the node is located and the signal strength of the node, The step of determining, according to the node information in the current network, the target network topology and the actual network topology of the current network, the network transmission cost of the target network topology as the first network transmission cost, and determining the network transmission cost of the actual network topology as the second network transmission cost comprises: For each network topology, perform the following processing: For each path in the network topology, determine the signal strength factor of the path and the channel contention factor of the path, determine the product value between the theoretical maximum transmission rate of the path, the signal strength factor of the path and the channel contention factor of the path, use the product value as the maximum rate of the path, and determine the transmission time consumed by the path to transmit data according to the maximum rate of the path, wherein the signal strength factor is used to indicate the degree of influence of the signal strength of the nodes in the path on the transmission rate, and the channel contention factor is used to indicate the degree of influence of the channel contention in the path on the transmission rate; Determine the sum of the transmission time consumed by transmitting data over all paths from the node to the master node; According to each sum value, a network transmission cost of the network topology is determined.

2. The method for network quality assessment according to claim 1, characterized in that: The method further comprises: According to the quality assessment result, obtaining defect information in the actual network topology; Determine an improvement strategy corresponding to the defect information; In response to an acquisition request from a user, providing correction information to the user so that the user can correct the actual network topology; The correction information includes the defect information; or, the correction information includes the improvement strategy; or, the correction information includes the defect information and the improvement strategy.

3. The method for network quality assessment according to claim 1 or 2, characterized in that: The determining the quality assessment result of the current network according to the first network transmission cost and the second network transmission cost includes: determining a ratio between the first network transmission cost and the second network transmission cost; A quality assessment result of the current network is determined according to the ratio.

4. The method for network quality assessment according to claim 1, characterized in that: The determining, according to the maximum rate of the path, the transmission time consumed by the path to transmit data includes: The reciprocal of the maximum rate of the path is taken as the duration of the path; The product of the duration of the path and the media contention factor is used as the transmission duration of the path. The media contention factor is used to indicate the intensity of channel competition between the path and other paths on the transmission medium.

5. The method for network quality assessment according to claim 2, characterized in that: The quality assessment results include: a channel contention factor of each path and a signal strength factor of each path; The obtaining defect information in the actual network topology according to the quality assessment result includes: The following processing is performed for each path of the actual network topology: Determining whether the signal strength factor of the path is less than a first preset threshold, and if so, the first result indicates that there is a signal defect in the path; Determining whether the channel contention factor of the path is less than a second preset threshold, and if so, the second result indicates that the path has a channel contention defect; Determining whether the number of nodes in the path is greater than a third preset threshold, and if so, the third result indicates that the path has a transmission distance defect; Comparing the theoretical maximum transmission rate of each node in the path, marking the node corresponding to the smallest theoretical maximum transmission rate, and the fourth result indicates that the marked node of the path has a performance defect; The defect information is generated according to the first result, the second result, the third result, and the fourth result.

6. The method for network quality assessment according to claim 2, characterized in that: The determining of the improvement strategy corresponding to the defect information includes: If the defect information includes a signal defect, determining the improvement strategy includes: changing the used frequency band of the node in the path; If the defect information includes a channel contention defect, determining the improvement strategy includes: switching a transmission channel of a node in the path; If the defect information includes a transmission distance defect, determining the improvement strategy includes: moving the position of the node in the path so that a first distance between the node and the master node is less than a second distance between the current node and the master node; If the defect information includes node performance defects, determining an improvement strategy includes: removing the marked nodes.

7. The method for network quality assessment according to claim 2, characterized in that: The method further comprises: In response to the improvement strategy selected by the user, updating the actual network topology according to the selected improvement strategy; or, In response to the user's operation of moving the node, a re-networking request initiated by the node is received, and the actual network topology is updated.

8. The method for network quality assessment according to claim 7, characterized in that: After the actual network topology is updated, the method further includes: An updated quality assessment result of the actual network topology is determined and provided.

9. The method for network quality assessment according to claim 1 or 2, characterized in that: Before generating the target network topology according to the node information in the current network, the method further includes: If it is detected that there is a node whose connection status has been changed, the node information of each node is re-acquired; or; Periodically obtain node information of each node; or, The node information of each node is periodically acquired, and if a node whose connection state has been changed is detected, the node information of each node is reacquired.

10. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the network quality assessment method according to any one of claims 1 to 9.

11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for evaluating network quality according to any one of claims 1 to 9 is implemented.