Data transmission optimization method and system for WiFi (Wireless Fidelity) router
By obtaining network and communication indicators in real time and calculating bandwidth allocation dynamically, traditional routers solve the problems of low bandwidth utilization and increased latency in WiFi 6 environment, and achieve more efficient bandwidth allocation and network performance optimization.
Patent Information
- Application Number
- CN202510629765.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2025-06-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In complex multi-device scenarios, the static bandwidth allocation strategy of traditional routers is difficult to adapt to the high-performance characteristics of WiFi6, resulting in problems such as low bandwidth utilization and increased latency for key services.
By obtaining router network indicators and communication indicators in real time, the guaranteed bandwidth is calculated based on the maximum negotiation rate of the device, and the priority coefficient is calculated based on the delay, network packet loss rate and reception sensitivity, and a allocation formula is constructed to realize dynamic bandwidth allocation.
Real-time synchronization of bandwidth allocation and network status is achieved, ensuring that high-priority devices maintain basic transmission quality during congestion, avoid service interruptions, and maximize WiFi6 performance.
Smart Images

Figure CN120166430A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer networks, and particularly to a method and system for optimizing data transmission of a WiFi6 router. Background Art
[0002] With the popularization of WiFi6 technology, its high throughput, low latency, and multi-device concurrency capabilities provide a more efficient wireless connection foundation for scenarios such as smart homes and industrial Internet of Things. However, in complex multi-device scenarios, the dynamic allocation of network resources still faces severe challenges. For example, in a smart home environment, devices such as video streams, smart appliances, and mobile terminals have significantly different bandwidth requirements, and network conditions, such as signal strength and instantaneous traffic fluctuations, change in real time. The fixed bandwidth allocation strategy adopted by traditional routers is difficult to adapt to the high-performance characteristics of WiFi6, resulting in problems such as low bandwidth utilization and increased latency of critical services. There is an urgent need for a dynamic optimization method that is deeply adapted to WiFi6 technology.
[0003] In the prior art, the bandwidth allocation of routers is mostly based on static policies. For example, priorities are divided according to device types, such as video devices having priority or fixed bandwidth being allocated based on historical traffic patterns. For example, a bandwidth allocation method based on QoS tags has been proposed in the prior art. By predefined service levels of devices, such as voice having the highest priority and being allocated a fixed proportion of bandwidth. In addition, some solutions adjust the bandwidth through simple traffic monitoring, such as the instantaneous throughput of devices, but do not consider the impact of real-time metrics such as network packet loss rate and signal strength. Although these methods can alleviate some congestion problems, in high-density device scenarios, there are still problems such as rigid resource allocation and inability to dynamically respond to changes in network conditions.
[0004] In summary, the above prior art has the following technical defects: the static priority policy does not combine real-time network metrics, resulting in the disconnection between the allocation result and the current network state; the minimum bandwidth is not set based on the maximum negotiation rate of the device, and the basic communication requirements of critical devices may be interrupted during congestion; only relying on device types or historical traffic, without comprehensively considering multi-dimensional metrics such as signal strength and network packet loss rate, it is difficult to balance throughput and stability.
[0005] The above information disclosed in the background art section is only used to enhance the understanding of the background of the present disclosure. Therefore, it may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0006] The purpose of the present invention is to provide a method and system for optimizing data transmission of a WiFi6 router to solve the problems raised in the above background art.
[0007] To achieve the above purpose, the present invention provides the following technical solutions: A method for optimizing data transmission of a WiFi6 router, the specific steps include: Step 1: Real-time obtain the router network metrics and the communication metrics connected to the router. The network metrics include the total bandwidth and the bandwidth utilization rate, and the communication metrics include the network packet loss rate, the normalized delay, and the receiving sensitivity. Step 2: Calculate the guaranteed bandwidth of the device based on the maximum negotiation rate of the device, and calculate the priority coefficient based on the delay, the network packet loss rate, and the receiving sensitivity. Step 3: Calculate the available bandwidth based on the network metrics, and construct an allocation formula according to the guaranteed bandwidth, the available bandwidth, and the priority coefficient to achieve the bandwidth allocation for the device.
[0008] Further, the method for real-time obtaining the router network metrics and the communication metrics connected to the router is: Connect a traffic monitoring probe device to the network interface, and at the same time interval Collect the number of data packets sent, the number of data packets received, the number of bytes sent, the number of bytes received, the signal strength, the timestamp of each sent data packet, and the timestamp of each received data packet of each device. Based on the number of data packets sent and the number of data packets received collected at the same time interval, calculate the network packet loss rate of each device: ; In the formula, represents the network packet loss rate of device , represents the number of data packets sent by device within the time interval , represents the number of data packets received by device within the time interval , where , represents the total number of devices in the same network; Based on the timestamp of each sent data packet and the timestamp of each received data packet, calculate the delay of each data packet: ; In the formula, represents the delay of the th data packet within the time interval , represents the timestamp of the th sent data packet of device , represents the timestamp of the th received data packet of device , represents the time interval Index of the number of internal data packets, , represents the total number of data packets. Then, by averaging and normalizing the delays of all data packets, the delay of each device is obtained: ; In the formula, represents the time interval and the normalized delay of device within it, represents the maximum historical delay; Based on the number of bytes received within the same time interval, calculate the receive throughput of each device: ; In the formula, represents the receive throughput of device within the time interval , represents the number of bytes received by device within the time interval ; Based on the number of bytes sent within the same time interval, calculate the transmit throughput of each device: ; In the formula, represents the transmit throughput of device within the time interval , represents the number of bytes sent by device within the time interval ; Obtain the total network bandwidth and calculate the average throughput of device within the time interval : ; In the formula, represents the average throughput of device within the time interval; Based on the total bandwidth and the average throughput, calculate the bandwidth utilization rate of device within the time interval : ; In the formula, represents the bandwidth utilization rate of device within the time interval , represents the total network bandwidth; Calculate the receive sensitivity of device : ; In the formula, represents the time interval and the signal strength of the th device within it, and represents the receiving sensitivity of the device.
[0009] Furthermore, the method for calculating the guaranteed bandwidth of a device based on the maximum negotiated rate of the device is as follows: Extract the maximum negotiated rate of each device, set the guaranteed ratio , and calculate the guaranteed bandwidth: ; In the formula, represents the maximum negotiated rate of the th device, represents the guaranteed bandwidth of the th device, represents the guaranteed ratio.
[0010] Furthermore, the method for calculating the priority coefficient based on latency, network packet loss rate, and receiving sensitivity is as follows: ; In the formula, represents the priority coefficient of the device , represents the network packet loss rate of the device , represents the receiving sensitivity of the device , respectively represent the weights of latency, network packet loss rate, and receiving sensitivity, and .
[0011] Furthermore, the method for calculating the available bandwidth based on network metrics is as follows: Extract the average throughput of each device and calculate the total network throughput: ; In the formula, represents the total network throughput, represents the total number of devices in the same network; Calculate the network utilization rate: ; In the formula, represents the network utilization rate; Extract the total bandwidth and the network utilization rate and calculate the available bandwidth: ; In the formula, represents the available bandwidth.
[0012] Furthermore, a method for implementing bandwidth allocation to devices by constructing an allocation formula based on the guaranteed bandwidth, available bandwidth, and priority coefficient is as follows: Extract the priority coefficient of each device and construct the total priority coefficient formula: ; In the formula, represents the total priority coefficient, represents the total number of devices in the same network; Extract the guaranteed bandwidth of each device and calculate the total sum of the guaranteed bandwidth of all devices: ; In the formula, represents the total sum of the guaranteed bandwidth of all devices, represents the th device's guaranteed bandwidth; Calculate the remaining allocable bandwidth based on the available bandwidth and the total sum of the guaranteed bandwidth: ; In the formula, represents the remaining allocable bandwidth, represents the available bandwidth; Construct the device bandwidth allocation formula by integrating the guaranteed bandwidth, priority coefficient, total priority coefficient, and remaining allocable bandwidth: ; In the formula, represents the bandwidth allocation of the th device, represents the maximum negotiation rate of the th device.
[0013] In addition, a WiFi6 router data transmission optimization system is provided, which is characterized in that: the system is used to execute the above-mentioned WiFi6 router data transmission optimization method, including: An index integration module, which is used to obtain the router network metrics and communication metrics connected to the router in real time. The network metrics include the total bandwidth and bandwidth utilization rate, and the communication metrics include the network packet loss rate, normalized delay, and receiving sensitivity; A device classification module, which is used to calculate the guaranteed bandwidth of the device based on the maximum negotiation rate of the device, and calculate the priority coefficient according to the delay, network packet loss rate, and receiving sensitivity; A bandwidth allocation module, which is used to calculate the available bandwidth based on the network metrics, construct an allocation formula according to the guaranteed bandwidth, available bandwidth, and priority coefficient, and realize the bandwidth allocation to the device.
[0014] Compared with the prior art, the beneficial effects of the present invention are: By collecting indicators such as network packet loss rate, latency, and receiving sensitivity in real time, it provides accurate data support for dynamic allocation, solving the problem of the disconnection between static policies and network status. At the same time, the present invention also calculates the priority coefficient based on the weighted values of latency, network packet loss rate, and signal strength, and preferentially allocates resources to weak-signal or high-demand devices. During the process, a guaranteed bandwidth is set based on the maximum negotiation rate of the device to ensure that high-priority devices can still maintain basic transmission quality during congestion, avoiding service interruption, comprehensively considering the allocation of remaining resources, and maximizing the performance of WiFi6. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of the overall method flow of the present invention; Figure 2 It is a comparison chart of latency before and after device optimization of the present invention; Figure 3 It is a comparison chart of packet loss rate before and after device optimization of the present invention; Figure 4 It is a fitting curve graph of latency and priority coefficient of the present invention; Figure 5 It is a fitting curve graph of packet loss rate and priority coefficient of the present invention; Figure 6 It is a fitting curve graph of receiving sensitivity and priority coefficient of the present invention; Figure 7 It is an optimization graph of allocated bandwidth of the present invention; Figure 8 It is a schematic diagram of the overall system structure of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0016] To make the objectives, technical solutions, and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below in conjunction with specific embodiments.
[0017] It should be noted that unless otherwise defined, the technical terms or scientific terms used in the present invention should have the ordinary meanings understood by those with ordinary skills in the field to which the present invention belongs. The "first", "second", and similar terms used in the present invention do not indicate any order, quantity, or importance, but are only used to distinguish different components. The terms such as "including" or "comprising" mean that the elements or objects appearing before this word cover the elements or objects listed after this word and their equivalents, without excluding other elements or objects. The terms such as "connected" or "linked" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The terms such as "upper", "lower", "left", "right", etc. are only used to represent relative positional relationships, and when the absolute position of the object being described changes, the relative positional relationship may also change accordingly.
[0018] Embodiment: Please refer to Figures 1 to 7 , the present invention provides a technical solution: A method for optimizing data transmission of a WiFi6 router, the specific steps include: Step 1: Real-time obtain the router network metrics and the communication metrics connected to the router. The network metrics include the total bandwidth and the bandwidth utilization rate, and the communication metrics include the network packet loss rate, the normalized delay, and the receiving sensitivity; Connect a professional traffic monitoring probe device to the network interface of the router and configure it to collect data at the same time interval In most network application scenarios, the time interval is sufficient to capture the typical network activity cycle and changes of the device. There will also be a sufficient number of data packets sent and received within .
[0019] Record the number of data packets sent, the number of data packets received, the number of bytes sent, the number of bytes received, the signal strength, the timestamp of each sent data packet, and the timestamp of each received data packet for each application of each device. The number of data packets received refers to the number of data packets received by the receiving end of the device, and the number of bytes received refers to the number of bytes received by the receiving end of the device. They are the direct basis for calculating key metrics such as the network packet loss rate, delay, and bandwidth utilization rate; Based on the number of data packets sent and the number of data packets received collected at the same time interval, calculate the network packet loss rate of each device: ; In the formula, represents the network packet loss rate of device , represents the number of data packets sent by device within the time interval , represents the number of data packets received by device within the time interval . Among them, , represents the total number of devices in the same network. The value of the network packet loss rate of device is between ; For example, if a device sends 1000 data packets within 2 seconds and the receiving end of the device receives 900 data packets, then the packet loss rate is: , that is, the network packet loss rate value is 0.1.
[0020] Based on the timestamp of each sent data packet and the timestamp of each received data packet, calculate the delay of each data packet: ; In the formula, represents the time interval and the delay of the th data packet within it, represents the timestamp of the th transmitted data packet of device , represents the timestamp of the th received data packet of device , represents the index of the number of data packets within the time interval , , represents the total number of received data packets. By averaging and normalizing the delays of all data packets, the dimension difference is eliminated and the evaluation scale is unified. Therefore, the delay of each device is obtained: ; In the formula, represents the normalized delay of device within the time interval , represents the historical maximum delay, that is, the historical maximum delay of all connected devices. This value is obtained by continuously recording the delays of each device's data packets within each time interval and is updated in real time; For example, when the average value of the delays of all current data packets of a certain device is 50 ms and the historical maximum delay is 80 ms, the delay of the device is: .
[0021] Based on the number of bytes received within the same time interval, calculate the receive throughput of each device: ; In the formula, represents the receive throughput of device within the time interval , represents the number of bytes received by device within the time interval ; Based on the number of bytes transmitted within the same time interval, calculate the transmit throughput of each device: ; In the formula, represents the transmit throughput of device within the time interval , represents the number of bytes transmitted by device within the time interval ; Obtain the total bandwidth of the network and calculate the time interval Internal device Average throughput of: ; In the formula, Indicates the average throughput of the device within the time interval ; Calculate the bandwidth utilization rate of the device within the time interval based on the total bandwidth and the average throughput Internal device Bandwidth utilization rate of: ; In the formula, Indicates the time interval Internal device Bandwidth utilization rate of, Indicates the total bandwidth of the network; Calculate the receiving sensitivity of the device ; ; In the formula, Indicates the signal strength of the th device within the time interval , Indicates the receiving sensitivity of the device . The receiving sensitivity reflects the signal reception quality of the device. The smaller the value, the stronger the signal capture ability of the device. Conversely, the weaker the signal capture ability of the device, directly reflecting the quality of the current reception environment. Since the WiFi signal strength is negative, ranging from -100 dBm (extremely weak) to -40 dBm (relatively strong), when the signal strength is greater, the value of the receiving sensitivity is smaller, meaning that the bandwidth required to be allocated by the device at this time is smaller, that is, the signal strength and the receiving sensitivity are inversely correlated. In addition, through this formula, when , , when , , normalize the receiving sensitivity to the interval. This normalization process can make the receiving sensitivity dimensionally consistent with other network packet loss rates and delays that need to participate in weighting, avoiding the imbalance of the impact on the overall bandwidth allocation in the subsequent bandwidth allocation weighting formula due to the too large value range of a certain index; Step 2: Calculate the guaranteed bandwidth of the device based on the maximum negotiation rate of the device, and calculate the priority coefficient based on the delay, network packet loss rate, and receiving sensitivity; The maximum negotiated rate of a device is its highest communication capacity in an ideal environment. It is based on the negotiation mechanism of the WiFi protocol. When a router establishes a connection with a device, the theoretical highest communication rate is determined through protocol handshakes. For example, the negotiated rate of a Wi-Fi6 mobile phone is 3.6 Gbps, which reflects the hardware upper limit. The guaranteed bandwidth is not based on the current traffic but is pre-allocated according to the hardware capabilities to ensure that the device can maintain basic functions even under high load and avoid disconnection of critical devices.
[0022] Extract the maximum negotiated rate of each device and set the guaranteed ratio. , calculate the guaranteed bandwidth: ; In the formula, represents the maximum negotiated rate of the th device, represents the guaranteed bandwidth of the th device, represents the guaranteed ratio. A 5% guaranteed ratio has been verified through actual measurements by multiple enterprises and can cover the basic requirements of more than 95% of the devices; For example, the guaranteed bandwidth of a Wi-Fi6 mobile phone with a negotiated rate of 3.6 Gbps is: , that is, the guaranteed bandwidth is .
[0023] Latency has a significant impact on interactive services such as games and video conferencing. When the network packet loss rate is high, the video stream will trigger retransmission, and weak signals with low reception sensitivity will lead to an increase in the device disconnection rate. Therefore, overall, the importance of latency is greater than or equal to the network packet loss rate, which is greater than the reception sensitivity.
[0024] Calculate the priority coefficient based on latency, network packet loss rate, and reception sensitivity: ; In the formula, represents the priority coefficient of device , represents the network packet loss rate of device , represents the reception sensitivity of device , respectively represent the weights of latency, network packet loss rate, and reception sensitivity, and , the priority coefficient of device reflects the priority degree of the device in network resource allocation. The higher the value, the higher the priority, and the greater the bandwidth to be allocated. Through the weighted formula, reasonable allocation of bandwidth can be achieved, and it can avoid over-preemption of resources by devices with poor signals but not urgent needs. Among them, and and All show a positive correlation. An increase in all three leads to an increase in the priority coefficient. The worse the real-time performance of data transmission, the more significant the impact on services that rely on real-time communication. At this time, the value of the priority coefficient increases, and the more bandwidth needs to be allocated. The higher the network packet loss rate, the lower the reliability of data transmission. At this time, the value of the priority coefficient increases, and the more bandwidth needs to be allocated to ensure communication integrity. The greater the receiving sensitivity, the weaker the signal capture ability at this time. The signal environment is poor. At this time, the value of the priority coefficient increases, and the more bandwidth needs to be allocated to ensure the resources required for the device to maintain normal communication. Delay directly affects services with high real-time requirements, such as video conferencing and industrial control instruction transmission. If the delay is too large, it will also cause service lag and untimely interaction, seriously affecting the user experience or system stability. Therefore, the weight given to delay is the largest. The network packet loss rate affects the reliability of data transmission. A too high network packet loss rate will lead to data retransmission, reduce the transmission efficiency, and affect service continuity. For example, it will cause file transmission interruption and video playback lag. However, compared with delay, common services, such as non-real-time file downloads, have a slightly higher tolerance for packet loss, that is, packet loss directly leads to data loss and affects service integrity. Receiving sensitivity affects the transmission rate, and the rate can be dynamically adjusted through bandwidth allocation. Therefore, the weight of the network packet loss rate is less than or equal to the weight of delay. Receiving sensitivity reflects the device's signal capture ability. The smaller the value, the stronger the signal capture ability. Although signal quality will affect the actual communication effect of the device, an overly large value will cause devices with poor signals but non-urgent tasks, such as background download tasks, to overly preempt resources, ensuring that bandwidth is preferentially allocated to more urgent services such as real-time interaction and high-reliability transmission services, and balancing the reasonable use of network resources. Therefore, the weight of receiving sensitivity is the lowest.
[0025] Step 3: Calculate the available bandwidth based on network metrics, and construct an allocation formula according to the guaranteed bandwidth, available bandwidth, and priority coefficient to achieve bandwidth allocation for the device; Throughput is a measure of the actual data transmission capacity of the entire network, reflecting the current load status, and providing a basis for calculating the overall network utilization rate. Extract the average throughput of each device and calculate the total network throughput: ; In the formula, represents the total network throughput; Calculate the overall network utilization rate: ; In the formula, represents the overall network utilization rate, which can evaluate the actual usage rate of bandwidth resources and determine whether the network is congested; At the same time, when the overall network utilization rate is reached, queue delay is likely to occur, that is, buffer backlog of data transmission, and resource protection needs to be triggered. Extract the total bandwidth and overall network utilization rate and calculate the available bandwidth: ; In the formula, represents the available bandwidth, To implement reserving 20% of the bandwidth to prevent complete network congestion. According to the WiFi 6 network congestion threshold, reserving 20% of the bandwidth can avoid queue overflow, ensure network stability, balance resource utilization and stability, allowing full use of the bandwidth as much as possible under high load while preventing overload collapse.
[0026] Extract the priority coefficient of each device and construct the total priority coefficient formula: ; In the formula, represents the total priority coefficient; Extract the guaranteed bandwidth of each device and calculate the total sum of the guaranteed bandwidths of all devices: ; In the formula, represents the total sum of the guaranteed bandwidths of all devices, aggregating the device priorities for weight normalization in subsequent bandwidth allocation; Calculate the remaining allocable bandwidth based on the available bandwidth and the total sum of the guaranteed bandwidths: ; In the formula, represents the remaining allocable bandwidth, which is the remaining allocable resource after guarantee; Construct the device bandwidth allocation formula by integrating the guaranteed bandwidth, priority coefficient, total priority coefficient, and remaining allocable bandwidth: ; In the formula, represents the bandwidth allocation of the th device, which can dynamically allocate reasonable bandwidth for the device. It can not only guarantee the basic needs of all devices when network resources are insufficient but also optimize the allocation according to priorities when resources are abundant, while avoiding the situation where a single device is allocated more than its capacity limit, improving the network speed experience. represents the guaranteed bandwidth of the th device, represents the available bandwidth, represents the total sum of the guaranteed bandwidths of all devices. When it reflects that the current network resources are insufficient and cannot meet the guaranteed bandwidth requirements of all devices. The bandwidth of the devices can be reduced according to the guaranteed ratio to ensure that all devices obtain the guaranteed bandwidth according to this item and meet the basic needs. reflects that after each device is allocated the guaranteed bandwidth, there are remaining bandwidth resources. At the same time, determines the allocation upper limit. The larger its value, the larger the maximum allocable bandwidth is, showing a positive correlation. Therefore, On the basis of first meeting the basic requirements, bandwidth resources can be allocated according to the priority coefficient. At the same time, the allocation for a single device does not exceed 80% of the maximum negotiated rate, so as to make the network speed experience better while not exceeding the device capacity limit, and reserve 20% of the negotiated rate to handle emergencies. When When is positively correlated with ; when When is positively correlated with and is negatively correlated with ; Therefore, when resources are insufficient, through the constructed device bandwidth allocation formula, the basic requirements of all devices can be guaranteed; when bandwidth resources are abundant, devices with high bandwidth requirements are preferentially satisfied according to real-time latency, packet loss rate, and signal strength, improving the overall transmission efficiency and user experience, and applicable to scenarios such as home, smart home, enterprise office, and industrial Internet of Things.
[0027] ; Table 1 Data of non-optimized allocation strategy ; Table 2 Optimized allocation strategy As Figures 2 - 3 shown, the average latency before optimization shows large fluctuations in different distributions of device IDs. Especially for devices with IDs 10, 20, and 30, the latency values are high and unstable. While the latency after optimization is generally low, and the overall trend is smoother, indicating that the optimization measures effectively reduce the latency. This shows that the optimization strategy can effectively reduce the latency that may be encountered during data transmission and improve the network response speed. There are also significant differences in the packet loss rate before optimization. The packet loss rate of some device IDs is high, especially for devices with IDs 20 and 30, where the packet loss rate exceeds 0.1. While the packet loss rate after optimization shows an obvious downward trend, especially at the positions of device IDs 10, 20, and 30, the reduction in the packet loss rate is more obvious. This indicates that the optimization measures have achieved good results in reducing data loss, thus improving the stability and reliability of data transmission. The reduction in latency makes the system respond faster, and the reduction in the packet loss rate improves the quality of data transmission.
[0028] As Figures 4 - 6As shown, with the increase of latency, the priority coefficient shows an obvious upward trend. Especially when the latency exceeds 0.3, the growth rate of the priority coefficient accelerates, which indicates the sensitivity of the system to latency. In the case of high latency, it may be necessary to increase the priority of tasks to cope with performance bottlenecks. The increase in packet loss rate directly promotes the rise of the priority coefficient. Especially when the packet loss rate exceeds 0.1, the increase in the priority coefficient is significant, indicating that the impact of device stability on priority cannot be ignored under high load conditions. The relationship between RSSI and the priority coefficient also shows a positive correlation. With the improvement of signal strength, the priority coefficient continues to rise, indicating that good signal quality can more effectively allocate resources, thus enhancing task priority. The data in these three figures together emphasize that when optimizing system performance, multiple factors such as latency, packet loss rate, and signal quality must be comprehensively considered to achieve more efficient and stable operation.
[0029] As Figure 7 shown, with the increase of the priority coefficient, the bandwidth allocation is also constantly changing. Specifically, the allocated bandwidth fluctuates greatly. Especially in the priority coefficient range of 0.0 to 0.3, the difference in bandwidth allocation is obvious, and there are some relatively high values. In contrast, the optimized allocated bandwidth changes more smoothly, indicating that with the increase of the priority coefficient, the optimized bandwidth allocation tends to be reasonable and more effectively reflects the actual demand. In the range of priority coefficients of about 0.3 and 0.5, the values of the optimized allocated bandwidth are significantly higher than the allocated bandwidth, indicating that at these priority levels, the optimization strategy can effectively improve the utilization efficiency of bandwidth. And in the case where the priority coefficient is close to 0.6, the value of the optimized allocated bandwidth also shows certain fluctuations, indicating that the optimized allocation strategy can obviously allocate bandwidth more effectively at different priority levels and improve the resource utilization efficiency of the system.
[0030] Please refer to Figure 8 , the present invention further provides a WiFi6 router data transmission optimization system for implementing the above-mentioned WiFi6 router data transmission optimization method, including: An index integration module for real-time obtaining of router network metrics and communication metrics connected to the router. The network metrics include total bandwidth and bandwidth utilization rate, and the communication metrics include network packet loss rate, normalized latency, and reception sensitivity; A device classification module for calculating the guaranteed bandwidth of the device based on the maximum negotiation rate of the device, and calculating the priority coefficient according to latency, network packet loss rate, and reception sensitivity; A bandwidth allocation module for calculating the available bandwidth based on network metrics, constructing an allocation formula according to the guaranteed bandwidth, available bandwidth, and priority coefficient, and realizing the bandwidth allocation for the device.
[0031] The above formulas are all dimensionless and take their numerical values for calculation. The formulas are obtained by collecting a large amount of data for software simulation to get a formula closest to the actual situation. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0032] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software methods depends on the specific application and design constraints of the technical solution.
[0033] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units. They can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0034] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all of them should be covered by the protection scope of the present application.
Claims
1. A WiFi6 router data transmission optimization method, characterized in that: The specific steps include: Step 1: obtaining in real time network indicators of the router and communication indicators connected to the router, wherein the network indicators include total bandwidth and bandwidth utilization, and the communication indicators include network packet loss rate, normalized delay and receiving sensitivity; Step 2: Calculate the minimum bandwidth of the device based on the maximum negotiated rate of the device, and calculate the priority coefficient based on the delay, network packet loss rate and receiving sensitivity; Step 3: Calculate the available bandwidth based on network indicators, and construct an allocation formula based on the guaranteed bandwidth, available bandwidth, and priority coefficient to implement bandwidth allocation for devices.
2. A WiFi6 router data transmission optimization method according to claim 1, characterized in that: The method to obtain the router network indicators and communication indicators connected to the router in real time is: Connect a flow monitoring probe device to the network interface and Collect the number of packets sent, the number of packets received, the number of bytes sent, the number of bytes received, the signal strength, the timestamp of each sent packet, and the timestamp of each received packet for each device; Based on the number of sent and received data packets collected at the same time interval, the network packet loss rate of each device is calculated: ; In the formula, Indicates the device The network packet loss rate, Indicates the device In time interval The number of packets sent within Indicates the device In time interval The number of packets received within , Indicates the total number of devices in the same network; Based on the timestamp of each sent packet and the timestamp of each received packet, calculate the latency of each packet: ; In the formula, Indicates time interval Neidi The delay of a packet, Indicates the device No. The timestamp of the sent data packet, Indicates the device No. The timestamp of the received data packet, Indicates time interval The index of the number of packets in the , Represents the total number of data packets. Then, by averaging and normalizing the delays of all data packets, we get the delay of each device: ; In the formula, Indicates time interval Internal equipment Normalized processing delay, Indicates the maximum historical delay; Calculate the receive throughput of each device based on the number of bytes received in the same time interval: ; In the formula, Indicates time interval Internal equipment The receiving throughput is Indicates the device In time interval The number of bytes received in Calculate the sending throughput of each device based on the number of bytes sent in the same time interval: ; In the formula, Indicates time interval Internal equipment The sending throughput, Indicates the device In time interval The number of bytes sent in Get the total bandwidth of the network and calculate the time interval Internal equipment Average throughput: ; In the formula, Indicates the device within the time interval The average throughput of Calculate time interval based on total bandwidth and average throughput Internal equipment Bandwidth utilization: ; In the formula, Indicates time interval Internal equipment Bandwidth utilization, Indicates the total bandwidth of the network; Computing equipment Receiving sensitivity: ; In the formula, Indicates time interval Neidi The signal strength of each device, Indicates the device The receiving sensitivity.
3. A WiFi6 router data transmission optimization method according to claim 1, characterized in that: The method for calculating the guaranteed bandwidth of a device based on the maximum negotiated rate of the device is as follows: Extract the maximum negotiation rate of each device and set the minimum ratio , calculate the guaranteed bandwidth: ; In the formula, Indicates The maximum negotiated rate of a device. Indicates Minimum bandwidth for each device, Indicates the minimum guarantee ratio.
4. A WiFi6 router data transmission optimization method according to claim 2, characterized in that: The method for calculating the priority coefficient based on delay, network packet loss rate and receiving sensitivity is: ; In the formula, Indicates the device The priority coefficient of Indicates the device The network packet loss rate, Indicates the device The receiving sensitivity, represent the weights of delay, network packet loss rate and receiving sensitivity respectively, and .
5. A WiFi6 router data transmission optimization method according to claim 2, characterized in that: The method for calculating available bandwidth based on network indicators is: Extract the average throughput of each device and calculate the total throughput of the entire network: ; In the formula, Indicates the total throughput of the entire network. Indicates the total number of devices in the same network; Calculate the utilization of the entire network: ; In the formula, Indicates the utilization rate of the entire network; Extract the total bandwidth and network utilization to calculate the available bandwidth: ; In the formula, Indicates the available bandwidth.
6. A WiFi6 router data transmission optimization method according to claim 4, characterized in that: The allocation formula is constructed based on the guaranteed bandwidth, available bandwidth, and priority coefficient to implement bandwidth allocation for devices as follows: Extract the priority coefficient of each device and construct the total priority coefficient formula: ; In the formula, represents the total priority coefficient, Indicates the total number of devices in the same network; Extract the guaranteed bandwidth of each device and calculate the total guaranteed bandwidth of all devices: ; In the formula, Indicates the total guaranteed bandwidth of all devices. Indicates Minimum bandwidth for each device; The remaining allocatable bandwidth is calculated based on the sum of available bandwidth and guaranteed bandwidth: ; In the formula, Indicates the remaining allocatable bandwidth. Indicates available bandwidth; The device bandwidth allocation formula is constructed by combining the guaranteed bandwidth, priority coefficient, total priority coefficient and remaining allocatable bandwidth: ; In the formula, Indicates Bandwidth allocation for each device, Indicates The maximum negotiated rate of the device.
7. A WiFi6 router data transmission optimization system, characterized by: The system is used to execute a WiFi6 router data transmission optimization method according to any one of claims 1 to 6, including: An indicator integration module, used to obtain in real time the network indicators of the router and the communication indicators connected to the router, the network indicators include the total bandwidth and bandwidth utilization, and the communication indicators include the network packet loss rate, the normalized delay and the receiving sensitivity; The device classification module is used to calculate the minimum bandwidth of the device based on the maximum negotiated rate of the device, and calculate the priority coefficient based on the delay, network packet loss rate and receiving sensitivity; The bandwidth allocation module is used to calculate the available bandwidth based on network indicators, build an allocation formula according to the guaranteed bandwidth, available bandwidth and priority coefficient, and implement bandwidth allocation for devices.
Citation Information
Patent Citations
Bandwidth resource allocation method, electronic equipment and storage medium
CN115835387A
Bandwidth allocation algorithm based on multiple subsystems
CN117692824A
Communication unit
CN118233966A
Multi-service QoS cross-band bandwidth allocation method and system based on deep reinforcement learning
CN119052861A
Dynamic flow scheduling method and system based on network configuration
CN119316368A