WIFI QoS dynamic guarantee method and device based on application priority, equipment and product
Patent Information
- Application Number
- CN202610980808.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-02
- Publication Date
- 2026-08-18
AI Technical Summary
[0006]本发明的目的是提供一种基于应用优先级的WIFI QoS动态保障方法、装置、WiFi网关设备、计算机可读存储产品及计算机程序产品,用以解决现有WIFI QoS机制因静态的优先级配置将不可避免地导致信道拥塞和资源分配失效的问题
(1)本发明创造性提供了一种基于应用身份的信任验证机制对信道竞争参数进行动态调整以保障服务质量的新方案,即先对请求接入的应用进行安全认证以确定是否为信任应用;若为信任应用,则获取所述应用的当前接入类别索引号、当前时间信息及所述应用的业务类型,并结合预设的动态映射函数,计算得到所述应用的新接入类别索引号;将所述应用的数据包强制绑定至WIFI芯片中与所述新接入类别索引号对应的硬件收发队列;根据与所述新接入类别索引号对应的接入类别,配置所述硬件收发队列的信道竞争参数以无线发送所述数据包,由此通过安全认证区分信任与非信任应用,并基于时间因子和业务类型动态计算应用的新接入类别索引号,将数据包强制绑定至对应的硬件队列并配置差异化信道竞争参数,从而解决现有WIFI静态优先级机制下所有应用抢占最高优先级导致的关键应用QoS无法保障的问题,实现了应用优先级的动态轮转和硬件层面的QoS保障;
Smart Images

Figure CN122602309A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of resource allocation and service level assurance technology in wireless communication networks, specifically relating to a method, device, equipment and product for dynamic WIFI QoS assurance based on application priority, which is particularly suitable for home gateway application scenarios. Background Technology
[0002] With the widespread deployment of Wireless Local Area Networks (WLANs), it has become commonplace to run multiple applications simultaneously, such as voice calls, video conferencing, web browsing, and file downloads, on the same Wi-Fi (Wireless Fidelity) network. Different applications have significantly different requirements for network Quality of Service (QoS): real-time applications such as voice and video require low latency and low jitter, while data applications such as file downloads are less sensitive to latency.
[0003] To meet the needs of differentiated services, the IEEE 802.11e standard introduced the Enhanced Distributed Channel Access (EDCA) mechanism, defining four access categories (ACs) from highest to lowest: Voice Service (AC_VO), Video Service (AC_VI), Best Effort Transmission (AC_BE), and Background Traffic (AC_BK). Each access category corresponds to different channel contention parameters, including Arbitration Inter-Frame Number (AIFSN), Minimum Contention Window Index (ECWmin), Maximum Contention Window Index (ECWmax), and Transmission Opportunity Limit (TXOPLimit). Higher priority access categories can achieve stronger channel preemption capabilities by configuring smaller Arbitration Inter-Frame Number (AIFSN) and contention window values, thereby enabling differentiated services.
[0004] However, in actual deployment, the above static priority mechanism has the following drawbacks: Since all applications in a Wi-Fi network can declare their access category, terminal applications generally set their service level to the highest priority (such as AC_VO) to ensure their own service quality. When there are a large number of applications in the network and they are all competing for the channel with the highest priority, the actual effect is equivalent to all applications being at the same priority. The differentiated service mechanism loses its function, resulting in the service quality of critical applications that truly require high priority protection (such as Wi-Fi calls or video conferencing) not being reliably guaranteed.
[0005] The essence of these shortcomings lies in the fact that existing Wi-Fi QoS (Quality of Service) mechanisms lack trust verification mechanisms for application identities and the ability to dynamically adjust application priorities. When all applications can declare high priorities without restriction, static priority configurations will inevitably lead to channel congestion and resource allocation failures. Summary of the Invention
[0006] The purpose of this invention is to provide a method, apparatus, WiFi gateway device, computer-readable storage product, and computer program product for dynamic WIFI QoS protection based on application priority, in order to solve the problem that existing WIFI QoS mechanisms inevitably lead to channel congestion and resource allocation failure due to static priority configuration.
[0007] To achieve the above objectives, the present invention adopts the following technical solution: Firstly, a method for dynamic WIFI QoS assurance based on application priority is provided, including: Security authentication is performed on the requesting application to determine whether the application is a registered trusted application; If the application is a trusted application, then obtain the application's current access category index number, current time information, and application's service type; The new access category index number of the application is calculated based on the current access category index number, the current time information, the service type, and the preset dynamic mapping function; The application's data packets are forcibly bound to the hardware transceiver queue in the WIFI chip of the WIFI gateway device that corresponds to the new access category index number; Configure the channel contention parameters of the hardware transceiver queue to wirelessly transmit the data packets according to the access category corresponding to the new access category index number.
[0008] Based on the above-mentioned invention, a novel solution is provided for dynamically adjusting channel contention parameters to ensure quality of service using an application-based trust verification mechanism. This involves first performing security authentication on the requesting application to determine if it is a trusted application. If trusted, the application's current access category index number, current time information, and service type are obtained, and a new access category index number is calculated using a preset dynamic mapping function. The application's data packets are then forcibly bound to the hardware transceiver queue in the Wi-Fi chip corresponding to the new access category index number. Based on the access category corresponding to the new access category index number, the channel contention parameters of the hardware transceiver queue are configured to wirelessly transmit the data packets. This distinguishes trusted and untrusted applications through security authentication, dynamically calculates the application's new access category index number based on time factors and service type, forcibly binds the data packets to the corresponding hardware queue, and configures differentiated channel contention parameters. This solves the problem of critical application QoS not being guaranteed due to all applications vying for the highest priority under the existing static priority mechanism of Wi-Fi. It achieves dynamic rotation of application priorities and hardware-level QoS assurance, facilitating practical application and promotion.
[0009] In one possible design, security authentication is performed on the requesting application to determine whether the application is a registered trusted application, including: Receive credential information uploaded by the application when requesting access; The credential information is compared with the pre-stored trusted application whitelist to obtain the comparison result. The trusted application whitelist stores the unique trusted credentials for each trusted application. The unique trusted credentials are generated in the following way: first, the name and version number of the trusted application are concatenated into a string in a preset format; then, the digest value of the string is calculated using the SM3 hash algorithm; finally, the digest value is Base58 encoded to generate a fixed-length string as the unique trusted credential for the trusted application. If the comparison result indicates that the credential information matches any unique trusted credential in the whitelist, then the application is determined to be a registered trusted application.
[0010] In one possible design, the new access category index number of the application is calculated based on the current access category index number, the current time information, the service type, and a preset dynamic mapping function, including: The number of minutes is extracted from the current time information. And determine the weight value corresponding to the business type. ; Based on the following preset dynamic mapping function The new access category index number of the application is calculated. :
[0011] In the formula, This indicates the index number of the current access category. and These represent the preset weighting coefficients. This represents the floor function. This represents the remainder function.
[0012] In one possible design, the application's data packets are forcibly bound to a hardware transceiver queue in the Wi-Fi chip of the Wi-Fi gateway device corresponding to the new access category index number, including: The hardware enqueue register configured in the WIFI chip of the WIFI gateway device is used to disable the function of the WIFI chip to automatically allocate hardware transceiver queues based on the priority field of the data packet. The data tag field in the Direct Memory Access (DMA) descriptor is filled according to the new access category index number so that when the DMA engine of the WIFI chip is transporting downlink data packets to be sent to the application, it sends the downlink data packets into the hardware transmission queue bound to the new access category index number according to the data tag field.
[0013] In one possible design, forcibly binding the application's data packets to the hardware transceiver queue in the Wi-Fi chip of the Wi-Fi gateway device corresponding to the new access category index number further includes: Upon receiving the uplink data packet uploaded by the application, the uplink data packet is allocated to the hardware receive queue according to the application's security authentication result as follows: When the security authentication result indicates that the application is a trusted application, the uplink data packet is assigned to the high-priority hardware receive queue bound to the new access category index number; When the security authentication result indicates that the application is an untrusted application, the uplink data packet is assigned to a preset low-priority hardware receive queue.
[0014] In one possible design, the channel contention parameters of the hardware transceiver queue are configured according to the access category corresponding to the new access category index number, including: Determine the access category corresponding to the new access category index number; According to the access category, a preset channel contention parameter set corresponding to the access category is obtained, wherein the preset channel contention parameter set includes the number of arbitration frame gaps, the minimum contention window index, the maximum contention window index, and / or the transmission opportunity limit value; Write the preset channel contention parameter set into the Enhanced Distributed Channel Access (EDCA) register of the hardware transceiver queue.
[0015] In one possible design, after calculating the new access category index number of the application, the method further includes: A synchronization instruction message carrying the new access category index number is sent to the terminal where the application is located, so that the terminal can set the service level of the application according to the new access category index number.
[0016] In one possible design, after performing security authentication on the requesting application, the method further includes: If the application is an untrusted application, the downlink data packets to be sent to the application are sent to a preset low-priority hardware transmission queue so that the untrusted application does not participate in channel contention based on the high-priority hardware transmission queue.
[0017] Secondly, a WIFI QoS dynamic guarantee device based on application priority is provided, including an application security authentication unit with sequential communication connections, an authentication result response unit, a new index number calculation unit, a data queue binding unit, and a contention parameter configuration unit; The application security authentication unit is used to perform security authentication on the application requesting access to determine whether the application is a registered trusted application; The authentication result response unit is used to obtain the current access category index number, current time information and service type of the application if the application is a trusted application. The new index number calculation unit is used to calculate the new access category index number of the application based on the current access category index number, the current time information, the service type, and a preset dynamic mapping function. The data queue binding unit is used to forcibly bind the application's data packets to the hardware transceiver queue in the WIFI chip of the WIFI gateway device that corresponds to the new access category index number; The contention parameter configuration unit is used to configure the channel contention parameters of the hardware transceiver queue according to the access category corresponding to the new access category index number in order to wirelessly transmit the data packet.
[0018] Thirdly, the present invention provides a WiFi gateway device, comprising a storage module, a processing module, and a transceiver module connected in sequence for communication, wherein the storage module is used to store a computer program, the transceiver module is used to send and receive messages, and the processing module is used to read the computer program and execute the WiFi QoS dynamic guarantee method as described in the first aspect or any possible design in the first aspect.
[0019] Fourthly, the present invention provides a computer-readable storage product storing instructions that, when executed on a computer, perform the WIFI QoS dynamic guarantee method as described in the first aspect or any possible design in the first aspect.
[0020] Fifthly, the present invention provides a computer program product, including a computer program or instructions, wherein the computer program or instructions, when executed by a computer, implement the WIFI QoS dynamic guarantee method as described in the first aspect or any possible design in the first aspect.
[0021] The beneficial effects of the above scheme are: (1) This invention creatively provides a new scheme for dynamically adjusting channel contention parameters based on application identity trust verification mechanism to ensure service quality. First, the application requesting access is security authenticated to determine whether it is a trusted application. If it is a trusted application, the current access category index number, current time information and service type of the application are obtained. Combined with a preset dynamic mapping function, the new access category index number of the application is calculated. The data packets of the application are forcibly bound to the hardware transceiver queue in the WIFI chip corresponding to the new access category index number. According to the access category corresponding to the new access category index number, the channel contention parameters of the hardware transceiver queue are configured to wirelessly send the data packets. Thus, trusted and untrusted applications are distinguished through security authentication. The new access category index number of the application is dynamically calculated based on time factor and service type. The data packets are forcibly bound to the corresponding hardware queue and differentiated channel contention parameters are configured. This solves the problem that the QoS of critical applications cannot be guaranteed under the existing WIFI static priority mechanism where all applications compete for the highest priority. It realizes the dynamic rotation of application priority and the QoS guarantee at the hardware level. (2) By using a security authentication mechanism to distinguish between trusted and untrusted applications, only trusted applications that have been pre-registered and hold legitimate and credible credentials are allowed to enter the dynamic scheduling process. Untrusted applications are forced into a low-priority hardware queue, thereby eliminating the problem of unauthorized applications preempting channel resources by self-declaring high service levels at the source, and ensuring the effectiveness and reliability of QoS differentiated services. (3) By organically integrating the time minutes, service type weight and current access category index number into a unified dynamic mapping function, the cross-category dynamic rotation of application access categories is realized; with the periodic change of time factors, the high priority time periods of different trusted applications are interleaved, which effectively avoids the problem of a single application monopolizing high priority channel resources for a long time and solves the congestion problem caused by all applications vying for the highest priority under the existing WIFI static priority mechanism. (4) By configuring the hardware enqueue register to disable the chip’s native automatic allocation mechanism and filling the DMA descriptor flag based on the dynamically calculated new access category index number, the application data packet and the hardware transmit / receive queue are forcibly bound. This mechanism ensures that the application priority dynamically calculated by the gateway can penetrate the protocol stack and directly control the selection of the underlying hardware queue of the WIFI chip. It shields the interference of the application’s self-declared priority from the hardware level and ensures the hardware priority advantage of the key application in the channel competition. (5) By introducing a differentiated hardware queue allocation strategy based on security authentication results in the receiving direction, uplink data packets of trusted applications are preferentially transferred to the processor for processing, while uplink data packets of untrusted applications are assigned to a low-priority processing channel. In conjunction with the hardware queue binding mechanism in the sending direction, a differentiated priority guarantee for both uplink and downlink is achieved, further reducing the latency and jitter of critical applications. (6) By writing the channel contention parameters corresponding to the dynamically calculated new access category index number into the dedicated EDCA register of the hardware queue, the hardware queues of different access categories have differentiated preemption capabilities in wireless channel contention. The high-priority queue has a significant channel preemption advantage due to its smaller number of arbitration frame gaps and contention window value, thus ensuring the QoS priority of trusted applications from the physical layer channel access mechanism. (7) By sending synchronization indication information carrying the new access category index number to the terminal, the service level settings of the terminal application are kept consistent with the dynamic mapping results of the gateway, thus realizing the QoS guarantee of bidirectional collaboration between the terminal and the network. It does not require modification of the terminal hardware, is compatible with the existing standard 802.11e / WMM protocol, and is convenient for practical application and promotion. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart illustrating the application-priority-based dynamic QoS guarantee method for Wi-Fi provided in an embodiment of this application.
[0024] Figure 2 This is a schematic diagram of the structure of the WIFI QoS dynamic guarantee device based on application priority provided in the embodiments of this application.
[0025] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in conjunction with the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following description of the structure of the accompanying drawings is only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these embodiments without creative effort. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.
[0027] It should be understood that although the terms "first" and "second", etc., may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another. For example, the first object may be referred to as the second object, and similarly, the second object may be referred to as the first object, without departing from the scope of the exemplary embodiments of the invention.
[0028] It should be understood that the term "and / or" that may appear in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, B exists alone, or A and B exist simultaneously. Another example is A, B and / or C, which can mean that any one of A, B, and C or any combination thereof exists. The term " / and" that may appear in this document describes another relationship between related objects, indicating that two relationships can exist. For example, A / and B can mean: A exists alone or A and B exist simultaneously. In addition, the character " / " that may appear in this document generally indicates that the related objects before and after it are in an "or" relationship.
[0029] Example like Figure 1 As shown, the application-priority-based dynamic WIFI QoS guarantee method provided in the first aspect of this embodiment can be executed, but is not limited to, by a computer device with certain computing resources, such as a WIFI gateway device. The WIFI gateway device can be a home gateway (such as an optical modem), an enterprise-level wireless access point, or an industrial IoT gateway, or other network devices with WIFI access capabilities. The WIFI gateway device typically includes a processor, memory, a WIFI chip, and a radio frequency unit. The processor runs a WIFI protocol stack and a QoS enhancement plugin. The QoS enhancement plugin is used to implement the steps of the method described in this embodiment and interacts with the WIFI chip through the driver layer to control the hardware transceiver queue binding and channel contention parameter configuration of the WIFI chip. Figure 1 As shown, the WIFI QoS dynamic guarantee method includes, but is not limited to, the following steps S1 to S5.
[0030] S1. Perform security authentication on the application requesting access to determine whether the application is a registered trusted application.
[0031] In step S1, the application requesting access refers to an application running on a terminal device that requests access to the wireless network and use network services through a Wi-Fi gateway device, such as Wi-Fi phone, video conferencing, or instant messaging. The purpose of this security authentication step is to distinguish between trusted and untrusted applications by verifying the legitimacy and trustworthiness of the application's identity, so that dynamic priority scheduling is subsequently performed only on trusted applications, thus preventing malicious or unauthorized applications from seizing high-priority channel resources by forging service levels. Preferably, security authentication is performed on the requesting application to determine whether it is a registered trusted application, including but not limited to the following steps S11 to S13.
[0032] S11. Receive the credential information uploaded by the application when requesting access.
[0033] In step S11, the credential information is an identity string uploaded to the Wi-Fi gateway device along with the network access request initiated by the application. This credential information is pre-generated by the application side based on its own application name and version number using the same algorithm agreed upon with the gateway side (such as SM3 hash + Base58 encoding), and is unique and unforgeable. The Wi-Fi gateway device receives and parses this credential information through the security authentication module in its QoS enhancement plugin, using it as input for subsequent whitelist comparison and verification.
[0034] S12. Compare the credential information with the pre-stored trusted application whitelist to obtain the comparison result. The trusted application whitelist stores the unique trusted credentials for each trusted application. The unique trusted credentials are generated in the following way: first, the name and version number of the trusted application are concatenated into a string in a preset format; then, the digest value of the string is calculated using the SM3 hash algorithm; finally, the digest value is Base58 encoded to generate a fixed-length string as the unique trusted credential for the trusted application.
[0035] In step S12, the trusted application whitelist is pre-established and stored in the encrypted database of the WIFI gateway device. The whitelist establishment process is completed on the management end of the QoS enhancement plugin: after the administrator enters the application name, version number, and service type of the trusted application to be registered, the plugin concatenates them into a plaintext string according to the preset format "application name#version number," performs SM3 hash operation and Base58 encoding on the plaintext string sequentially, and outputs a fixed-length string as the unique trusted credential for the application, which is then stored in the whitelist. Due to the one-way nature of the SM3 hash algorithm (which is an existing hash algorithm) and the determinism of Base58 encoding (which is an existing encoding method), each "application name + version number" combination uniquely corresponds to a trusted credential. The credential itself cannot be reversed to derive the original information, possessing anti-forgery and anti-tampering security features. During the authentication phase, the WIFI gateway device compares the credential information received in step S11 with each unique trusted credential stored in the whitelist to determine if a match exists.
[0036] S13. If the comparison result indicates that the credential information matches any unique trusted credential in the whitelist, then the application is determined to be a registered trusted application.
[0037] In step S13, if the comparison result in step S12 is a successful match, it indicates that the application's identity information has been registered on the gateway side and the credentials are valid. The WIFI gateway device marks it as a trusted application and allows the application to enter the subsequent dynamic scheduling process, such as dynamic mapping calculation and hardware queue binding. If the comparison result is a failed match, it indicates that the application is not registered or the credentials are invalid. The WIFI gateway device marks it as an untrusted application, directly classifies it as ordinary traffic, does not participate in high-priority channel contention, and will be sent to a preset low-priority hardware transmission queue in the subsequent transmission direction.
[0038] Based on the above steps S11 to S13, an application-level trust access system based on SM3 hash algorithm and Base58 encoding is constructed through a closed-loop authentication mechanism of "credential upload - whitelist comparison - identity confirmation". This system ensures that only pre-registered applications with legitimate and trusted credentials can be identified as trusted applications and enter the subsequent dynamic priority scheduling process, thereby effectively preventing unauthorized applications from seizing WIFI channel resources by self-declaring high service levels, and ensuring the effectiveness and reliability of QoS differentiated services from the source.
[0039] S2. If the application is a trusted application, then obtain the current access category index number, current time information and service type of the application.
[0040] In step S2, after step S1 determines that the application is a trusted application, the WIFI gateway device initiates a dynamic scheduling process. First, it obtains three input parameters required for dynamic mapping calculation: the application's current access category index number, the current time information, and the application's service type. The current access category index number refers to the index number (ACI, with a value of 0-3, corresponding to the four access categories AC_VO, AC_VI, AC_BE, and AC_BK) of the application currently active on the WIFI gateway device at the time of this step. Since the application may have undergone one or more rounds of dynamic scheduling, its current active access category index number may differ from its initial self-set value. Therefore, using the "current" value as input accurately reflects the application's true priority status at the time of this scheduling, ensuring the continuity and accuracy of dynamic mapping. The current time information refers to the time information corresponding to the system clock of the WIFI gateway device at the time of this step. Specifically, the current number of minutes (with a value range of 0-59) can be extracted from the system clock and used as the time factor in the subsequent dynamic mapping function. The service type refers to the service category declared by the application during registration, including but not limited to voice, video, and data. Different service types have different QoS requirements. For example, voice services are most sensitive to latency and jitter, video services are next, and data services have the highest tolerance for latency. The service type is associated with the application's unique trusted credential and stored in a whitelist or independently in a service type mapping table during application registration. After determining that the application is a trusted application, the Wi-Fi gateway device can retrieve the corresponding service type through a query. Based on the aforementioned three parameters, the Wi-Fi gateway device can perform dynamic mapping calculations in subsequent steps to generate a new access category index number for the application that is adapted to the current time, current priority status, and service characteristics, thereby achieving the effect of dynamic priority adjustment with time and service type.
[0041] S3. Calculate the new access category index number of the application based on the current access category index number, the current time information, the service type, and the preset dynamic mapping function.
[0042] In step S3, the design purpose is to generate a new access category index number for the application by performing a weighted calculation based on the three input parameters obtained in step S2 using a preset dynamic mapping function. This dynamic mapping function organically integrates the time factor, service type, and current priority status, allowing the calculation result to change periodically over time while taking into account the differences in QoS requirements of different service types. This enables dynamic rotation and differentiated scheduling of application access categories, preventing a single application from monopolizing high-priority channel resources for an extended period. Preferably, the new access category index number for the application is calculated based on the current access category index number, the current time information, the service type, and the preset dynamic mapping function, including but not limited to the following steps S31 to S32.
[0043] S31. Extract the number of minutes from the current time information. And determine the weight value corresponding to the business type. .
[0044] In step S31, the number of minutes It is a continuously changing time factor, cycling between 0 and 59 over time. The correspondence between the service type and the weight value can be pre-stored in a service type mapping table, for example: the weight value corresponding to voice services. =0, the weight value corresponding to video-related services. =1, the weight value corresponding to data-related services. =2. Quantifying business types into weight values facilitates their substitution into subsequent mathematical formulas for unified calculation.
[0045] S32. Based on the following preset dynamic mapping function The new access category index number of the application is calculated. :
[0046] In the formula, This indicates the index number of the current access category. and These represent the preset weighting coefficients. This represents the floor function. This represents the remainder function.
[0047] In step S32, the weighting coefficient and Used to adjust the time factor (i.e., the number of minutes) ) and business type weight The degree of influence on the mapping results. Preferably, =1, =1, meaning that the time factor and business type weights are equally weighted in the calculation; the weight coefficient and It also supports online optimization, which can be performed through the management interface of the WIFI gateway device (such as a web management interface, command line interface, or remote network management protocol). and The values are dynamically modified to adjust the impact of the time factor and service type weights on the mapping results based on the actual network environment; for example, when it is necessary to enhance the differentiation effect of service types, the value can be increased. Value; can be increased when it is necessary to accelerate priority time rotation. The modified weighting coefficients take effect immediately and will be used in the next triggered mapping calculation. The floor function... Take the largest integer not greater than the result within the parentheses to ensure that the result is obtained. The remainder function is an integer. make The final value range is strictly limited to the integer range of 0 to 3, which can correspond to the four access categories defined by the 802.11e standard: 0 corresponds to AC_VO, 1 corresponds to AC_VI, 2 corresponds to AC_BE and 3 corresponds to AC_BK.
[0048] In step S32, for example, when the current access category index number of a trusted application... =0 (i.e., the currently active AC_VO), current minutes =13, the service type is voice ( =0), weighting coefficient =1 and When =1, the calculation process is as follows: This means the application's new access category index number is 1, corresponding to AC_VI. As time progresses to... At 22 minutes, the result was recalculated. This corresponds to AC_BE. Therefore, the same application is dynamically mapped to different access categories at different times, achieving a periodic rotation of priority over time.
[0049] Based on the above steps S31 to S32, by organically integrating the time minutes, service type weight, and current access category index number into a unified dynamic mapping function, cross-category dynamic rotation of application access categories is realized. With the periodic change of the time factor, the high-priority time periods of different trusted applications are interleaved, effectively avoiding the problem of a single application monopolizing high-priority channel resources for a long time. At the same time, the weight difference of different service types enables real-time applications such as voice and video to obtain better mapping results under the same conditions, realizing differentiated QoS guarantee based on service characteristics.
[0050] In step S3, it should be noted that the triggering method for the dynamic mapping calculation in this step can be, but is not limited to, any of the following: periodic triggering, that is, the WIFI gateway device automatically performs a mapping calculation once according to a preset time period (such as every 1 minute or every 5 minutes), since the time is in minutes... It changes over time. The system will automatically rotate periodically over time, ensuring differentiated priority protection for different trusted applications at different times. Event-triggered events occur when the Wi-Fi gateway device detects a preset event, triggering mapping calculations. These preset events include, but are not limited to, new applications gaining access through security authentication, the number of currently trusted applications exceeding a preset threshold, or the number of channel contention failures exceeding a preset threshold. Alternatively, a combination of periodic and event-triggered methods may be used. The specific triggering method can be flexibly configured according to the actual deployment scenario; this embodiment does not impose any restrictions on it.
[0051] S4. Forcefully bind the data packets of the application to the hardware transceiver queue in the WIFI chip of the WIFI gateway device that corresponds to the new access category index number.
[0052] In step S4, the purpose of this step is to: use the new access category index number calculated in step S3. As the sole criterion for hardware queue selection, the application's data packets are forcibly sent to the queue by configuring the hardware registers of the Wi-Fi chip and marking the data packets. The corresponding hardware transceiver queues are used to shield the application's own declared priority from the hardware queuing process, thus enabling the gateway to have complete control over the application's priority. Preferably, the application's data packets are forcibly bound to the hardware transceiver queue in the WIFI chip of the WIFI gateway device that corresponds to the new access category index number, including but not limited to the following steps S41 to S42.
[0053] S41. Configure the hardware enqueue register in the WIFI chip of the WIFI gateway device to disable the function of the WIFI chip automatically allocating hardware transceiver queues based on the priority field of the data packet.
[0054] In step S41, the WIFI chip, in its native operating mode, automatically allocates data packets to the corresponding hardware transceiver queue based on the priority field carried in the header of each data packet (such as the TID field of an 802.11 frame or the DSCP field of an IP packet). To enable the gateway to enforce application priority, this native automatic allocation mechanism needs to be disabled first. Specifically, the driver layer of the WIFI gateway device switches the chip's queue allocation mode from "automatic allocation based on the data packet's inherent priority" to "allocation based on the queue marker issued by the driver layer" by writing to the WIFI chip's hardware enqueue register (such as the HW_QUE_MAP register). After this, hardware enqueueing no longer recognizes any inherent priority fields in the packet and follows the priority fields calculated by the gateway. Select the corresponding hardware queue.
[0055] S42. Based on the new access category index number, fill the data tag field in the direct memory access DMA descriptor so that when the DMA engine of the WIFI chip is transporting downlink data packets to be sent to the application, it sends the downlink data packets into the hardware transmission queue bound to the new access category index number based on the data tag field.
[0056] In step S42, for downlink data packets in the transmission direction (i.e., data packets sent from the WIFI gateway device to the terminal application), the driver layer of the WIFI gateway device, when constructing the DMA (Direct Memory Access) descriptor, calculates the descriptor based on the result obtained in step S3. The value is used to fill the data flag field (such as the queue number flag) in the DMA descriptor. The DMA descriptor is a data structure used for data transmission control between the driver layer and the Wi-Fi chip hardware, describing the memory address, length, and target queue of the data packet to be sent. When the Wi-Fi chip's DMA engine initiates data transfer, it reads the data flag field in the DMA descriptor and sends the downlink data packet to the appropriate queue via the internal bus based on the value of this field. The data packet is bound to a corresponding hardware transmission queue (FIFO, short for First In, First Out). Therefore, each downlink data packet is forcibly sent to a hardware transmission queue dynamically calculated and determined by the gateway, rather than to a queue corresponding to a priority declared by the terminal application itself.
[0057] Based on the above steps S41 to S42, by disabling the chip's native automatic allocation mechanism and based on By filling the DMA descriptor flag, a forced binding between downlink data packets and the hardware transmission queue is achieved. This binding mechanism ensures that the application priority dynamically calculated by the gateway can penetrate the protocol stack and directly control the selection of the underlying hardware queue of the WIFI chip. It shields the interference of application self-declared priorities from the hardware level and lays the hardware foundation for subsequent differentiated configuration of channel contention parameters based on queues.
[0058] In step S4, it is further preferred that the data packets of the application be forcibly bound to the hardware transceiver queue in the WIFI chip of the WIFI gateway device corresponding to the new access category index number, and the step S43 (i.e., processing of uplink data packets in the receiving direction) is included, but is not limited to.
[0059] S43. Upon receiving the uplink data packet uploaded by the application, the uplink data packet is assigned to the hardware receive queue according to the security authentication result of the application as follows: when the security authentication result indicates that the application is a trusted application, the uplink data packet is assigned to the high-priority hardware receive queue bound to the new access category index number; when the security authentication result indicates that the application is an untrusted application, the uplink data packet is assigned to the preset low-priority hardware receive queue.
[0060] In step S43, for uplink data packets in the receiving direction (i.e., data packets sent from the terminal application to the WIFI gateway device), after the WIFI chip's radio frequency unit receives the uplink data packet through the air interface and demodulates it through the PHY (Physical) layer, the data packet is temporarily stored in the RX hardware buffer. When the driver layer processes the received data packet, it executes a differentiated hardware receive queue allocation strategy based on the security authentication result of the application that sent the uplink data packet in step S1. Specifically, for uplink data packets from trusted applications, they are allocated to the queue calculated in step S3. A high-priority hardware receive queue (HP RX FIFO) is used, where data packets are preferentially moved to processor memory by the DMA engine for faster processing. Uplink data packets from untrusted applications are uniformly assigned to a pre-defined low-priority hardware receive queue (LP RX FIFO) and processed only after trusted application data packets have been processed. Thus, priority control in the receive direction is symmetrical to that in the transmit direction, ensuring that trusted applications receive superior hardware processing resources in both uplink and downlink directions compared to untrusted applications.
[0061] Based on step S43 above, by introducing a differentiated hardware queue allocation strategy based on security authentication results in the receiving direction, uplink data packets of trusted applications can be preferentially transported to the processor by the DMA engine for processing, while uplink data packets of untrusted applications are assigned to a low-priority processing channel. Combined with the sending direction binding mechanism in steps S41 to S42, bidirectional hardware queue binding and differentiated priority guarantee are realized.
[0062] S5. Configure the channel contention parameters of the hardware transceiver queue to wirelessly transmit the data packet according to the access category corresponding to the new access category index number.
[0063] In step S5, the design objective is to configure differentiated channel contention parameters for the hardware transceiver queues that have completed queue binding in step S4, based on their corresponding access categories. This allows hardware queues of different access categories to possess different preemption capabilities in wireless channel contention, thereby achieving final QoS guarantee at the hardware level. Preferably, configuring the channel contention parameters of the hardware transceiver queues according to the access category corresponding to the new access category index number includes, but is not limited to, the following steps S51 to S53.
[0064] S51. Determine the access category corresponding to the new access category index number.
[0065] In step S51, the WIFI gateway device calculates according to the result obtained in step S3. The value determines the corresponding access category through a preset mapping relationship. As mentioned earlier, =0 corresponds to AC_VO (voice service). =1 corresponds to AC_VI (video service). =2 corresponds to AC_BE (best effort transmission). =3 corresponds to AC_BK (background traffic); this mapping relationship is completely consistent with the access class index defined by the IEEE 802.11e / WMM standard, ensuring the compatibility of this solution with existing WIFI protocols. In step S4, the data packet has been forcibly bound to... The corresponding hardware transceiver queue, therefore the access category of this hardware transceiver queue is the access category determined in this step.
[0066] S52. Based on the access category, obtain a preset channel contention parameter set corresponding to the access category, wherein the preset channel contention parameter set includes, but is not limited to, arbitration inter-frame gap number, minimum contention window index, maximum contention window index and / or transmission opportunity limit value.
[0067] In step S52, specifically, the WIFI gateway device obtains the corresponding channel contention parameter set from a preset channel contention parameter mapping table based on the access category determined in step S51. The channel contention parameter set defines the specific parameters for channel contention under the EDCA mechanism for this access category. The meanings of each parameter are as follows: Arbitration Inter Frame Spacing Number (AIFSN) determines the minimum interframe gap duration that this access category must wait after the channel becomes idle; the smaller the value, the shorter the waiting time and the faster the channel is acquired. The Exponent form of CWmin (ECWmin) and the Exponent form of CWmax (ECWmax) together determine the range of the random backoff window; the smaller the value, the shorter the backoff time and the higher the probability of successful contention. The Transmission Opportunity Limit (TXOPLimit) determines the maximum duration for which this access category can continuously transmit after acquiring the channel; a value of 0 indicates that only a single data frame is allowed to be sent.
[0068] In step S52, preferably, the preset channel contention parameter set is configured differently according to the high, medium, and low priorities of the access category. For example: high-priority access categories (AC_VO and AC_VI) are configured with AIFSN=2, ECWmin=2, ECWmax=4, and TXOPLimit=0 to obtain the shortest waiting time and the smallest backoff window, resulting in the strongest channel preemption capability; medium-priority access categories (AC_BE) are configured with AIFSN=5, ECWmin=3, ECWmax=5, and TXOPLimit=0, resulting in the next strongest preemption capability; low-priority access categories (AC_BK) are configured with AIFSN=12, ECWmin=6, ECWmax=10, and TXOPLimit=0, resulting in the longest waiting time, the largest backoff window, and the weakest preemption capability. The above parameter configuration is only an example, and the specific values can be optimized according to the actual deployment scenario. This embodiment does not impose any restrictions on this.
[0069] S53. Write the preset channel contention parameter set into the Enhanced Distributed Channel Access (EDCA) register of the hardware transceiver queue.
[0070] In step S53, the driver layer of the WIFI gateway device permanently configures the channel contention parameter set obtained in step S52 by writing it into the dedicated EDCA register of the corresponding hardware transmit / receive queue in the WIFI chip. The WIFI chip has an independent EDCA register group for each hardware transmit queue, used to store the AIFSN, ECWmin, ECWmax, and TXOPLimit parameter values respectively. After the EDCA parameters are written to the register, the hardware EDCA arbitrator automatically invokes the channel contention parameters bound to that queue to execute the channel contention process when retrieving packets from and transmitting them from the corresponding hardware transmit queue. Thus, hardware queues of different access categories compete independently on the wireless channel according to their respective configured parameters. High-priority queues gain a significant channel preemption advantage due to their smaller AIFSN and contention window value, thereby achieving differentiated QoS guarantees.
[0071] Based on the above steps S51 to S53, through the three-step configuration process of "determining the access category → obtaining the preset parameter set → writing to the EDCA register", the logical priority dynamically calculated in step S3 is finally transformed into differentiated channel contention capabilities at the hardware level. Each hardware transceiver queue obtains different AIFSN, ECWmin, ECWmax and TXOPLimit parameters due to the different access categories they are bound to. This enables high-priority queues to have shorter waiting times and smaller backoff windows in channel contention, thus ensuring the QoS priority of trusted applications from the perspective of physical layer channel access mechanism.
[0072] In addition, after performing security authentication on the requesting application, the method also includes, but is not limited to: if the application is an untrusted application, then the downlink data packet to be sent to the application is sent to a preset low-priority hardware transmission queue, so that the untrusted application does not participate in channel contention based on the high-priority hardware transmission queue. Specifically, after completing the security authentication of the requesting application in step S1, if the authentication result shows that the application is an untrusted application (i.e., its credential information fails to match any unique trusted credential in the trusted application whitelist), the WIFI gateway device marks the application as an untrusted application and performs a differentiated transmission direction processing strategy on it. When the WIFI gateway device needs to send downlink data packets to the untrusted application, the driver layer, when constructing the DMA descriptor, no longer fills the data tag field according to the dynamically mapped N_ACI, but directly fills in the preset low-priority queue tag value (such as the queue number corresponding to AC_BK or AC_BE). When the WIFI chip's DMA engine transports the downlink data packet, it sends it to the corresponding low-priority hardware transmission queue according to the low-priority tag in the descriptor. Because the channel contention parameters (such as a large AIFSN value and a large contention window value) bound to low-priority hardware transmission queues put them at a disadvantage in wireless channel contention, downlink data packets from untrusted applications will have difficulty preempting channel resources. This physically ensures that high-priority channel resources are not squeezed out by untrusted applications, thus guaranteeing the channel contention priority of trusted applications. This mechanism, combined with the low-priority queue allocation strategy for uplink data packets from untrusted applications in the receiving direction in step S43, achieves comprehensive degradation processing of untrusted applications in both uplink and downlink.
[0073] Therefore, based on the WIFI QoS dynamic guarantee method described in steps S1 to S5 above, a new scheme is provided to dynamically adjust channel contention parameters to guarantee service quality through an application identity-based trust verification mechanism. First, the requesting application is securely authenticated to determine if it is a trusted application. If it is a trusted application, the current access category index number, current time information, and service type of the application are obtained, and a new access category index number for the application is calculated using a preset dynamic mapping function. The application's data packets are then forcibly bound to the hardware transceiver queue in the WIFI chip corresponding to the new access category index number. Based on the access category corresponding to the new access category index number, the channel contention parameters of the hardware transceiver queue are configured to wirelessly transmit the data packets. This distinguishes trusted and untrusted applications through security authentication, dynamically calculates the new access category index number of the application based on time factors and service types, forcibly binds the data packets to the corresponding hardware queue, and configures differentiated channel contention parameters. This solves the problem of critical application QoS not being guaranteed due to all applications vying for the highest priority under the existing static WIFI priority mechanism. It achieves dynamic rotation of application priorities and hardware-level QoS guarantee, facilitating practical application and promotion.
[0074] Based on the aforementioned first aspect of the technical solution, this embodiment also provides a possible design for maintaining consistency between the service levels on the terminal side and the network side. Specifically, after calculating the new access category index number of the application, the method further includes, but is not limited to: sending synchronization indication information carrying the new access category index number to the terminal where the application resides, so that the terminal sets the service level of the application according to the new access category index number. Specifically, this means that in step S3, the application's service level is calculated... Subsequently, the WIFI gateway device generates synchronization indication information, which carries the aforementioned... The WIFI gateway device sends the synchronization indication information to the terminal device where the application is located via the WIFI air interface. The synchronization indication information can be carried through extended 802.11 management frames (such as Beacon frames or newly added custom management frames) or through private protocol messages above the IP layer. The specific carrying method can be selected according to the actual deployment scenario; this embodiment does not impose any restrictions. After receiving the synchronization indication information, the terminal device parses the value carried within it. The value is then used to call the service level setting interface of the terminal-side WIFI protocol stack, setting the service level of the application to be the same as that of the terminal. The corresponding access category (i.e.) =0 is set to AC_VO, =1 is set to AC_VI, =2 is set to AC_BE. =3 is set to AC_BK). Therefore, subsequent data packets sent by this application on the terminal device will be marked according to the updated service level, maintaining consistency with the priority set by the gateway side after dynamic mapping and hardware queue binding, thus achieving QoS guarantee through bidirectional collaboration between the terminal and network.
[0075] like Figure 2 As shown, the second aspect of this embodiment provides a virtual device for implementing the WIFI QoS dynamic guarantee method described in the first aspect or possibly designed in the first aspect, including an application security authentication unit, an authentication result response unit, a new index number calculation unit, a data queue binding unit, and a contention parameter configuration unit that are sequentially connected. The application security authentication unit is used to perform security authentication on the application requesting access to determine whether the application is a registered trusted application; The authentication result response unit is used to obtain the current access category index number, current time information and service type of the application if the application is a trusted application. The new index number calculation unit is used to calculate the new access category index number of the application based on the current access category index number, the current time information, the service type, and a preset dynamic mapping function. The data queue binding unit is used to forcibly bind the application's data packets to the hardware transceiver queue in the WIFI chip of the WIFI gateway device that corresponds to the new access category index number; The contention parameter configuration unit is used to configure the channel contention parameters of the hardware transceiver queue according to the access category corresponding to the new access category index number in order to wirelessly transmit the data packet.
[0076] In one possible design, a new index number synchronization unit is also included, which is communicatively connected to the new index number calculation unit. The new index number synchronization unit is used to send synchronization indication information carrying the new access category index number to the terminal where the application is located after calculating the new access category index number of the application, so that the terminal sets the service level of the application according to the new access category index number.
[0077] In one possible design, the authentication result response unit is further configured to, if the application is an untrusted application, send the downlink data packet to be sent to the application into a preset low-priority hardware transmission queue, so that the untrusted application does not participate in channel contention based on the high-priority hardware transmission queue.
[0078] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be found in the first aspect or the WIFI QoS dynamic guarantee method that may be designed in the first aspect, and will not be repeated here.
[0079] like Figure 3 As shown, the third aspect of this embodiment provides a WiFi gateway device that executes the WiFi QoS dynamic guarantee method as described in the first aspect or as possibly designed in the first aspect. It includes a storage module, a processing module, and a transceiver module that are sequentially connected in communication. The storage module stores a computer program, the transceiver module sends and receives messages, and the processing module reads the computer program and executes the WiFi QoS dynamic guarantee method as described in the first aspect or as possibly designed in the first aspect. Specifically, the storage module may include, but is not limited to, random-access memory (RAM), read-only memory (ROM), flash memory, first-in-first-out (FIFO) memory, and / or first-in-last-out (FILO) memory, etc.; the processing module may, but is not limited to, use a microprocessor of the STM32F105 series. Furthermore, the WiFi gateway device may also include, but is not limited to, a power module, a display screen, and other necessary components.
[0080] The working process, working details and technical effects of the aforementioned WiFi gateway device provided in the third aspect of this embodiment can be found in the WiFi QoS dynamic guarantee method described in the first aspect or possibly designed in the first aspect, and will not be repeated here.
[0081] This fourth aspect of the embodiment provides a computer-readable storage product that stores instructions comprising the WIFI QoS dynamic assurance method as described in the first aspect or possibly designed in the first aspect. Specifically, the computer-readable storage product stores instructions that, when executed on a computer, perform the WIFI QoS dynamic assurance method as described in the first aspect or possibly designed in the first aspect. The computer-readable storage product refers to a data storage medium, which may include, but is not limited to, computer-readable storage media such as floppy disks, optical disks, hard disks, flash memory, USB flash drives, and / or Memory Sticks. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
[0082] The working process, working details and technical effects of the aforementioned computer-readable storage product provided in the fourth aspect of this embodiment can be found in the WIFI QoS dynamic guarantee method described in the first aspect or possibly designed in the first aspect, and will not be repeated here.
[0083] This fifth aspect of the embodiment provides a computer program product, including a computer program or instructions, which, when executed by a computer, implement the WIFI QoS dynamic guarantee method as described in the first aspect or possibly designed in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
[0084] Finally, it should be noted that the above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for dynamic WIFI QoS guarantee based on application priority, characterized in that, include: Security authentication is performed on the requesting application to determine whether the application is a registered trusted application; If the application is a trusted application, then obtain the application's current access category index number, current time information, and application's service type; The new access category index number of the application is calculated based on the current access category index number, the current time information, the service type, and the preset dynamic mapping function; The application's data packets are forcibly bound to the hardware transceiver queue in the WIFI chip of the WIFI gateway device that corresponds to the new access category index number; Configure the channel contention parameters of the hardware transceiver queue to wirelessly transmit the data packets according to the access category corresponding to the new access category index number.
2. The WIFI QoS dynamic guarantee method according to claim 1, characterized in that, Security authentication is performed on applications requesting access to determine whether the application is a registered trusted application. This includes: receiving credential information uploaded by the application when requesting access; comparing the credential information with a pre-stored trusted application whitelist to obtain a comparison result, wherein the trusted application whitelist stores unique trusted credentials for each trusted application. These unique trusted credentials are generated as follows: first, the name and version number of the trusted application are concatenated into a string in a preset format; then, the SM3 hash algorithm is used to calculate the digest value of the string; finally, the digest value is Base58 encoded to generate a fixed-length string as the unique trusted credential for that trusted application; if the comparison result indicates that the credential information matches any unique trusted credential in the whitelist, then the application is determined to be a registered trusted application. And / or, based on the current access category index number, the current time information, the service type, and a preset dynamic mapping function, calculate the new access category index number of the application, including: The number of minutes is extracted from the current time information. And determine the weight value corresponding to the business type. ; Based on the following preset dynamic mapping function The new access category index number of the application is calculated. : In the formula, This indicates the index number of the current access category. and These represent the preset weighting coefficients. This represents the floor function. This represents the remainder function.
3. The WIFI QoS dynamic guarantee method according to claim 1, characterized in that, Forcibly binding the application's data packets to the hardware transceiver queue in the Wi-Fi chip of the Wi-Fi gateway device corresponding to the new access category index number includes: The hardware enqueue register configured in the WIFI chip of the WIFI gateway device is used to disable the function of the WIFI chip to automatically allocate hardware transceiver queues based on the priority field of the data packet. The data tag field in the Direct Memory Access (DMA) descriptor is filled according to the new access category index number so that when the DMA engine of the WIFI chip is transporting downlink data packets to be sent to the application, it sends the downlink data packets into the hardware transmission queue bound to the new access category index number according to the data tag field.
4. The WIFI QoS dynamic guarantee method according to claim 3, characterized in that, Forcibly binding the application's data packets to the hardware transceiver queue in the Wi-Fi chip of the Wi-Fi gateway device corresponding to the new access category index number also includes: Upon receiving the uplink data packet uploaded by the application, the uplink data packet is allocated to the hardware receive queue according to the application's security authentication result as follows: When the security authentication result indicates that the application is a trusted application, the uplink data packet is assigned to the high-priority hardware receive queue bound to the new access category index number; When the security authentication result indicates that the application is an untrusted application, the uplink data packet is assigned to a preset low-priority hardware receive queue.
5. The WIFI QoS dynamic guarantee method according to claim 1, characterized in that, Based on the access category corresponding to the new access category index number, configure the channel contention parameters of the hardware transceiver queue, including: Determine the access category corresponding to the new access category index number; According to the access category, a preset channel contention parameter set corresponding to the access category is obtained, wherein the preset channel contention parameter set includes the number of arbitration frame gaps, the minimum contention window index, the maximum contention window index, and / or the transmission opportunity limit value; Write the preset channel contention parameter set into the Enhanced Distributed Channel Access (EDCA) register of the hardware transceiver queue.
6. The WIFI QoS dynamic guarantee method according to claim 1, characterized in that, After calculating the new access category index number of the application, the method further includes: sending synchronization indication information carrying the new access category index number to the terminal where the application is located, so that the terminal sets the service level of the application according to the new access category index number; And / or, after performing security authentication on the application requesting access, the method further includes: if the application is an untrusted application, sending the downlink data packets to be sent to the application into a preset low-priority hardware transmission queue, so that the untrusted application does not participate in channel contention based on the high-priority hardware transmission queue.
7. A Wi-Fi QoS dynamic guarantee device based on application priority, characterized in that, It includes an application security authentication unit with sequential communication connections, an authentication result response unit, a new index number calculation unit, a data queue binding unit, and a contention parameter configuration unit; The application security authentication unit is used to perform security authentication on the application requesting access to determine whether the application is a registered trusted application; The authentication result response unit is used to obtain the current access category index number, current time information and service type of the application if the application is a trusted application. The new index number calculation unit is used to calculate the new access category index number of the application based on the current access category index number, the current time information, the service type, and a preset dynamic mapping function. The data queue binding unit is used to forcibly bind the application's data packets to the hardware transceiver queue in the WIFI chip of the WIFI gateway device that corresponds to the new access category index number; The contention parameter configuration unit is used to configure the channel contention parameters of the hardware transceiver queue according to the access category corresponding to the new access category index number in order to wirelessly transmit the data packet.
8. A WiFi gateway device, characterized in that, The device includes a storage module, a processing module, and a transceiver module that are sequentially connected in communication. The storage module is used to store a computer program, the transceiver module is used to send and receive messages, and the processing module is used to read the computer program and execute the WIFI QoS dynamic guarantee method as described in any one of claims 1 to 6.
9. A computer-readable storage product, characterized in that, The computer-readable storage product stores instructions that, when executed on a computer, perform the WIFI QoS dynamic guarantee method as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or the instructions are executed by the computer, they implement the WIFI QoS dynamic guarantee method as described in any one of claims 1 to 6.