WO2022127608A1 - Wifi6路由的路由资源分配方法及装置 - Google Patents

Wifi6路由的路由资源分配方法及装置 Download PDF

Info

Publication number
WO2022127608A1
WO2022127608A1 PCT/CN2021/135037 CN2021135037W WO2022127608A1 WO 2022127608 A1 WO2022127608 A1 WO 2022127608A1 CN 2021135037 W CN2021135037 W CN 2021135037W WO 2022127608 A1 WO2022127608 A1 WO 2022127608A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
routing
wifi6
task queue
data
Prior art date
Application number
PCT/CN2021/135037
Other languages
English (en)
French (fr)
Inventor
陈涛
卫彩霞
席磊磊
康志伟
朱开发
关欣赟
Original Assignee
微网优联科技(成都)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 微网优联科技(成都)有限公司 filed Critical 微网优联科技(成都)有限公司
Publication of WO2022127608A1 publication Critical patent/WO2022127608A1/zh
Priority to US18/336,032 priority Critical patent/US20230337266A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2475Traffic characterised by specific attributes, e.g. priority or QoS for supporting traffic characterised by the type of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/56Routing software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/215Flow control; Congestion control using token-bucket
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/803Application aware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/822Collecting or measuring resource availability data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/65Re-configuration of fast packet switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/52Allocation or scheduling criteria for wireless resources based on load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present disclosure generally relates to the field of communication technologies, and more particularly, to a routing resource allocation method and device for WIFI6 routing.
  • wireless routers are rapidly entering the home as a low-cost and convenient wireless network access device.
  • network speed With the improvement of network speed and the popularity of high-current-consuming products under the conditions of network development, higher requirements are placed on wireless routing equipment in turn.
  • the IEEE802.11 standard committee has formulated the 802.11axWLAN standard protocol.
  • the ability of multiple users to access the network in parallel can effectively reduce the conflict probability and protocol between network users. overhead, effectively improving the throughput of the network.
  • the present disclosure relates to a routing resource allocation method for WIFI6 routing, which includes:
  • the client determines the corresponding application resource configuration strategy according to the nature of the application and sends it to the WIFI6 route;
  • the client sends an application startup notification to the WIFI6 route
  • the WIFI6 routing queries the application resource configuration policy to construct a task queue according to the application startup notification, and configures a fixed routing resource for the task queue;
  • the client sends and receives the peak load test data through the WIFI6 route, obtains the performance parameters for executing the peak load test data, and judges whether the requirements of the application resource configuration policy are met, and if so, use the existing task queue and routing
  • the resource executes the application resource configuration strategy, and if not, provides optimization parameters according to the gap between the performance parameters and the requirements, and optimizes the task queue and routing resources with the optimization parameters until the requirements are met;
  • the client sends an application deactivation notification to the WIFI6 router, and the WIFI6 router receives the application deactivation notification to dismiss the task queue and release the corresponding route resource.
  • a configuration table of the application resource configuration policy is stored in the WIFI6 route, and the records in the configuration table include the MAC, IP of the client where the application is located, the application ID of the application, and related resources Configuration parameters, the application startup notification includes the MAC, IP and application ID of the client where the application is located, and the WIFI6 router queries the configuration table to obtain resource configuration parameters according to the application startup notification to construct the task queue.
  • the WIFI6 router parses the packet header to obtain the MAC, IP, and the identification code, and accordingly converts the The packet is added to the task queue.
  • two hash slots are constructed for generating tokens, the token generation rate of the hash slots is set according to the resource configuration parameter, and one of the hash slots is configured to satisfy the application The average rate of the data generated tokens and stored in the first token queue, another said hash slot generated tokens according to the peak rate of the data of the application and stored in the second token queue;
  • the WIFI6 router sends data related to the application to the task queue according to the distinguishing code
  • the data is extracted from the task queue with the token, and is handed over to the routing resource for processing and forwarding.
  • the routing resource includes a data processing thread resource for data packets in the task queue, and the data processing thread resource invokes a packet sending function to preferentially process data in the task queue.
  • a data processing thread pool is configured for the task queue, a certain number of core threads and non-core threads are configured in the data processing thread pool, and the core threads permanently exist in the data processing thread pool,
  • the data in the task queue is processed, the non-core thread temporarily constructs and processes the data in the task queue, and the non-core thread is destroyed if the idle time of the non-core thread exceeds a set time threshold.
  • the performance parameters of the peak load test data of the WIFI6 route are obtained by capturing packets, and the performance parameters include data transmission rate, delay and packet loss rate.
  • the optimized content according to the performance parameters includes the rate of change of the hash slot, the optimization of the channel bandwidth, the optimization of the task queue capacity, the optimization of the thread capacity of the data processing thread pool, the optimization of the data processing thread pool
  • the number of core threads is optimized, the capacity threshold is optimized, and the time threshold of the non-core threads is optimized.
  • the configuration threshold of the task queue is set according to the threading capability of the WIFI6 route.
  • the present disclosure relates to a routing resource allocation device for WIFI6 routing, including a client, where the client is configured with at least one client instruction, and the client instruction is executed to provide an application resource configuration policy configuration interface to specify and optimize application resources Configure policies, detect application startup, send application startup notifications and application deactivation notifications;
  • WIFI6 routing configure at least one routing instruction, and execute the routing instruction to implement the routing resource allocation method for WIFI6 routing.
  • the method provided by the present disclosure sends an application startup notification to the WIFI6 route when the client runs an application with an application resource configuration policy set, and the WIFI6 route is based on the application Start a notification query to obtain a corresponding application resource configuration policy, and allocate fixed routing resources to the application of the client according to the application resource configuration policy, so as to meet the application usage requirements and improve the user's application experience;
  • the load test data tests whether the routing resources can meet the peak load of the application, so as to ensure that the set routing resources can fully meet the application usage conditions.
  • the client When the application is deactivated, the client sends an application deactivation notification to the WIFI6 router, and the WIFI6 router dissolves the task queue to release routing resources, so as to build a task queue when the application is activated, and dissolve the task when the application is deactivated. Queue, configure routing resources according to the application to meet the application requirements.
  • the delay and packet loss of the application data can be effectively reduced, the transmission speed requirements of the application data can be met, and the user can have a better application experience.
  • the present disclosure can allocate routing resources to the application to give the user a better application experience.
  • FIG. 1 is a flowchart of a routing resource allocation method for WIFI6 routing provided by an embodiment of the present disclosure
  • FIG. 2 is a workflow diagram of a task queue and a data processing thread pool provided by an embodiment of the present disclosure
  • FIG. 3 is a flowchart of determining whether to execute an application resource configuration policy according to a configuration threshold according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a routing resource allocation device for WIFI6 routing provided by an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a routing resource allocation method for WIFI6 routing provided by an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a task queue and a data processing thread pool provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a routing resource allocation apparatus for WIFI6 routing provided by an embodiment of the present disclosure.
  • the routing resource allocation method for WIFI6 routing includes:
  • the client determines the application resource configuration strategy according to the nature of the application and sends it to the WIFI6 route;
  • the WIFI6 router constructs a task queue according to the application query in the application startup notification, the application resource configuration policy, and configures a fixed routing resource for the task queue;
  • the client sends and receives peak load test data through the WIFI6 route, obtains performance parameters for executing the peak load test data, and judges whether the application resource configuration policy requirements are met, and if so, use the existing task queue And the routing resource executes the application resource configuration strategy, if not, provides optimization parameters according to the gap between the performance parameters and the requirements, and optimizes the task queue and routing resources with the optimization parameters until the requirements are met; and
  • the client configures the application resource policy customization module, the application resource policy customization module traverses the application of the client to obtain the application installed on the client, and the application resource policy customization module provides the user with an application including application options and application resource parameter options.
  • Resource policy customization interface The receiving user configures application resource parameters for the corresponding application through the application resource policy customization interface to meet the application's bandwidth requirements, data transmission speed requirements, delay requirements, and packet loss rate requirements.
  • a configuration table for storing the application resource configuration policy is set in the WIFI6 route, and the records in the configuration table include the MAC, IP of the client where the application is located, the application ID of the application and related Resource configuration parameters.
  • the application resource policy customization interface is used to send and add the application resource configuration policy information, and the MAC, IP, application ID and related resource configuration parameters are added to the configuration table, and the application resource policy customization is performed through the application resource policy.
  • the interface sends and deletes the application resource configuration policy information to delete the corresponding MAC, IP, application ID and related resource configuration parameters from the configuration table, and sends and replaces the application resource configuration policy information from the application resource policy customization interface. Corresponding MAC, IP, application ID and related resource configuration parameters are replaced in the configuration table.
  • the application resource policy customization module in the client monitors the startup and shutdown of applications in the client, and when an application configured with an application resource configuration policy is started, the application resource policy customization The module sends an application startup notification to the WIFI6 route.
  • the data packet of the application startup notification includes the MAC, IP and application ID of the client where the application is located.
  • the WIFI6 router retrieves the configuration table to obtain related resource configuration parameters according to the MAC, IP and application ID. Two hash slots for generating tokens are constructed according to the resource configuration parameters, the token generation rate of the hash slots is set according to the resource configuration parameters, and one of the hash slots meets the requirements of the application.
  • the average rate of the data generates tokens and saves them in the first token queue, and the other hash slot generates tokens according to the peak rate of the data of the application and saves them in the second token queue; according to the resource configuration parameters Build the task queue with a certain capacity, obtain the token from the first token queue and the second token queue, extract the data packet from the task queue with the token, and hand it over to the The routing resources are processed and forwarded; in this way, the application is allocated a fixed data packet allocation speed lower than the second token generation rate to meet the data transmission requirements of the application; wherein when the tokens in the first token queue are insufficient, only the first token queue is used.
  • a data processing thread pool is configured for the task queue, and set according to the application resource configuration policy.
  • the thread capacity of the data processing thread pool is the total number of core threads and non-core threads allowed to be accommodated in the data processing thread pool, the number of core threads is set according to the application resource configuration policy, the core thread Both the thread and the non-core thread can call the packet sending function to process the data in the task queue.
  • the client adds a distinguishing code corresponding to the application ID in the packet header of the data packet of the application.
  • the distinguishing code is set in a user-defined field of the data packet header
  • the WIFI6 routing adds a parsing instruction for the distinguishing code of the user-defined field; the WIFI6 routing parses the packet header to obtain the MAC, IP and distinguishing code, and adds the data packet according to the MAC, IP and distinguishing code to the task queue.
  • the capacity threshold of the task queue is set according to the application resource configuration policy.
  • the token in the second token queue allocates data to the data processing thread pool, and if the capacity threshold is reached, the token in the second token queue is used to allocate data to the data processing thread pool; when the data processing thread Whether there are idle threads in the pool (including core threads and non-core threads, and core threads are preferentially used), if so, the allocated data is processed through the idle threads, if there are no idle threads in the data processing thread pool, Then judge whether the number of threads in the data processing thread pool reaches the thread capacity, if not, create the data allocated by the non-core thread processing, if so, judge whether the task queue is full, if not Then it is stored back into the task queue, and if it is full, it is discarded.
  • the basic data processing of the application is guaranteed by a fixed core thread, and the data processing requirements of the application data processing peak are guaranteed by creating a non-core thread to grab the WIFI6 routing resources, thereby ensuring that the WIFI6 routing provides specific services for the application and ensures the user experience of the application.
  • the application sends peak load test data to test whether the routing resource meets the requirements of the application, and if not, the application resource configuration policy is optimized.
  • the routing resources include data processing thread resources for data packets in the task queue, and the data processing thread resources preferentially process data in the task queue. Configure a data processing thread pool for the task queue, configure a certain number of core threads and non-core threads in the data processing thread pool, and the core threads permanently exist in the data processing thread pool to process the task queue If the non-core thread temporarily constructs and processes the data in the task queue, and the idle time of the non-core thread exceeds the set time threshold, the non-core thread will be destroyed to avoid unnecessary use of the non-core thread. When a thread is used, routing resources are occupied.
  • the performance parameters of the WIFI6 route to perform the peak load test data are obtained by capturing packets, and the performance parameters include data transmission rate, delay and packet loss rate.
  • the optimized content according to the performance parameters includes the change rate of the hash slot (the data transmission rate is not enough to increase the change rate of the hash slot to increase the token generation rate), the optimized channel bandwidth (to ensure that the WIFI6 route is the The client provides stable bandwidth), optimize the task queue capacity (increase the task queue capacity, avoid packet loss), optimize the thread capacity of the data processing thread pool (increase the data processing capacity), optimize the core threads in the data processing thread pool (Increase the fixed allocation of data processing capacity), optimize the capacity threshold (the data in the task queue accumulates to the capacity threshold, indicating that the token production speed of the first token queue is insufficient relative to the data transmission speed, and the accumulation of data leads to The delay increases, the token allocation of the second token queue can be called in time by optimizing the capacity threshold, and the routing resources are grabbed by the creation of non-core threads to meet the allocation
  • the application resource policy customization module sends an application deactivation notification to the WIFI6 router, and the data packet of the application deactivation notification includes the application MAC, IP and application ID of the client, the WIFI6 router receives the application deactivation notification, the WIFI6 router determines and dismisses the task queue according to the application deactivation notification, and releases the threads in the data processing thread pool Occupied routing resources.
  • the configuration threshold of the task queue is set according to the thread capability of the WIFI6 route. Avoid excessive use of routing resources by WIFI6 routing due to configuring too many application resource configuration policies to affect other services.
  • the WIFI6 router sends overload feedback to the application resource configuration module and refuses to execute the application resource configuration policy.
  • the present disclosure also relates to a routing resource allocation device for WIFI6 routing, which includes a client, the client is configured with an application resource policy customization module and an application resource policy verification module, and the application resource policy customization module detects applications installed by the client, Provide the user with an application resource configuration policy configuration interface to help the user complete the formulation of the application resource configuration policy, detect the startup of the client application, and send the application startup notification and application deactivation notification to the WIFI6 router; the application resource policy verification The module obtains the performance parameters of the peak load test data when executing the application resource configuration strategy by capturing packets, and judges whether the application resource configuration strategy is qualified according to whether the performance parameters meet the standards. Optimization parameters are optimized until the target is reached.
  • the WIFI6 route connected to the client configures an application resource policy receiving module and an application resource policy execution module
  • the application resource policy receiving module receives the application resource configuration policy, the application deactivation notification and all the application startup notification
  • the application resource policy execution module creates or dissolves a task queue and a data processing thread pool according to the application resource configuration policy and the application deactivation notification and the application startup notification.
  • the client when the client runs an application with an application resource configuration policy set, the client sends an application startup notification to the WIFI6 route, and the WIFI6 route is configured according to the corresponding application resource configuration policy Allocate fixed routing resources for the application of the client to meet the application requirements of the client and improve the user's application experience; test whether the routing resources can meet the peak load of the application through the peak load test data, so as to ensure that the design The predetermined routing resources can fully meet the application usage.
  • the client When the application is deactivated, the client sends an application deactivation notification to the WIFI6 router, and the WIFI6 router dissolves the task queue to release routing resources, so as to build a task queue when the application is enabled, and dissolve the task when the application is disabled.
  • Queue configure routing resources according to the application to meet the application requirements.
  • the delay and packet loss of the application data can be effectively reduced, the transmission speed requirement of the application data can be met, and a better application experience can be given to the user.
  • the present disclosure can allocate routing resources to applications to give users a better application experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

公开了WIFI6路由的路由资源分配方法及装置,该方法包括:客户端根据应用的性质确定相应的应用资源配置策略并发送给WIFI6路由;客户端向所述WIFI6路由发送应用启动通知;所述WIFI6路由根据应用启动通知中的应用查询应用资源配置策略构建任务队列,为任务队列配置固定的路由资源;检测路由资源执行应用数据处理的效果并据此优化路由资源配置;以及若检测到应用的停止操作时,通过客户端向所述WIFI6路由发送应用停用通知,所述WIFI6路由接收应用停用通知解散任务队列并释放相应的路由资源。

Description

WIFI6路由的路由资源分配方法及装置
相关申请的引用
本公开要求于2020年12月17日向中国人民共和国国家知识产权局提交的申请号为202011502753.4,发明名称为“一种WIFI6路由的路由资源分配方法及装置”的发明专利申请的全部权益,并通过引用的方式将其全部内容并入本公开。
领域
本公开大体上涉及通信技术领域,更具体地涉及WIFI6路由的路由资源分配方法及装置。
背景
随着互联网的发展和无线终端的大量普及,无线路由作为一种低成本、配置便捷的无线网络接入设备快速走进家庭。随着网络速度的提升,以及在网络发展条件下高耗流产品流行,反过来对无线路由设备提出更高的要求。
为适应大用户量的需求IEEE802.11标准委员会制订了802.11axWLAN标准协议,通过正交频分多址技术,提高多用户并行接入网络的能力,能够有效的降低网络用户间的冲突概率和协议开销,有效的提升网络的吞吐量。
概述
第一方面,本公开涉及WIFI6路由的路由资源分配方法,其包括:
客户端根据应用的性质确定相应的应用资源配置策略并发送给WIFI6路由;
所述客户端向所述WIFI6路由发送应用启动通知;
所述WIFI6路由根据所述应用启动通知查询所述应用资源配置策略构建任务队列,为所述任务队列配置固定的路由资源;
所述客户端通过所述WIFI6路由收发峰值负载测试数据,获取执行所述峰值负载测试数据的性能参数,并判断是否达到所述应用资源 配置策略的要求,如果能则以现有任务队列以及路由资源执行所述应用资源配置策略,如果不能则根据所述性能参数与要求之间的差距,提供优化参数,以所述优化参数优化所述任务队列以及路由资源直至满足要求;以及
若检测到所述应用的停止操作时,通过所述客户端向所述WIFI6路由发送应用停用通知,所述WIFI6路由接收所述应用停用通知解散所述任务队列并释放相应的所述路由资源。
在某些实施方案中,所述WIFI6路由中存储所述应用资源配置策略的配置表,所述配置表中记录包括所述应用所在客户端的MAC、IP、所述应用的应用ID以及相关的资源配置参数,所述应用启动通知包含应用所在的所述客户端的MAC、IP以及应用ID,所述WIFI6路由根据应用启动通知查询所述配置表获取资源配置参数来构建所述任务队列。
在某些实施方案中,在所述应用的数据包的包头中与所述应用ID对应的区别码,所述WIFI6路由解析所述包头获取所述MAC、IP以及区别码,并据此将所述数据包添加到所述任务队列。
在某些实施方案中,构建两个用于产生令牌的哈希槽,所述哈希槽的令牌生成速率根据所述资源配置参数设置,其中一个所述哈希槽按满足所述应用的数据的平均速率产生令牌并保存于第一令牌队列,另一个所述哈希槽按所述应用的数据的峰值速率产生令牌并保存于第二令牌队列;
构建对应所述应用的所述任务队列,所述WIFI6路由根据所述区别码将所述应用相关的数据发送至所述任务队列;以及
以所述令牌从所述任务队列中提取所述数据,交由所述路由资源进行处理转发。
在某些实施方案中,所述路由资源包括针对所述任务队列中数据包的数据处理线程资源,所述数据处理线程资源调取封包发报函数优先处理所述任务队列中的数据。
在某些实施方案中,为所述任务队列配置一个数据处理线程池,所述数据处理线程池配置一定量的核心线程和非核心线程,所述核心 线程永久存在于所述数据处理线程池、处理所述任务队列中的数据,所述非核心线程临时构建、处理所述任务队列中的数据,且所述非核心线程的闲置时间超过设定的时间阈值则销毁所述非核心线程。
在某些实施方案中,通过抓包的方式获取所述WIFI6路由执行所述峰值负载测试数据的性能参数,所述性能参数包括数据传输速率,延迟和丢包率。
在某些实施方案中,根据性能参数的优化内容包括所述哈希槽的变化速率,优化信道带宽,优化任务队列容量,优化所述数据处理线程池的线程容量,优化所述数据处理线程池中核心线程的数量,优化所述容量阈值,优化所述非核心线程的所述时间阈值。
在某些实施方案中,根据WIFI6路由的线程能力设定所述任务队列的配置阈值。
第二方面,本公开涉及WIFI6路由的路由资源分配装置,包括客户端,所述客户端配置至少一条客户端指令,执行所述客户端指令实现提供应用资源配置策略配置界面以指定和优化应用资源配置策略,检测应用的启动情况,发送应用启动通知和应用停用通知;
WIFI6路由,配置至少一条路由指令,执行所述路由指令实现所述的WIFI6路由的路由资源分配方法。
在某些是会方案中,本公开提供的方法当所述客户端运行设定有应用资源配置策略的应用时,所述客户端向所述WIFI6路由发送应用启动通知,所述WIFI6路由根据应用启动通知查询获取相应的应用资源配置策略,并根据所述应用资源配置策略为所述客户端的应用分配固定的路由资源,以实现满足所述应用使用需求,提高用户的应用体验;通过所述峰值负载测试数据测试所述路由资源能否满足应用峰值负载,从而保证设定的所述路由资源能够充分满足所述应用使用条件。当所述应用停用时,所述客户端向所述WIFI6路由发送应用停用通知,所述WIFI6路由解散所述任务队列释放路由资源,实现启用应用时构建任务队列,停用应用时解散任务队列,根据应用配置路由资源以满足所述应用需求。能够有效降低所述应用数据的延迟、丢包,满足所述应用数据传输速度要求,给用户更好的应用体验。相比现有的qos 针对客户端,本公开能针对应用分配路由资源以给用户更好的应用体验。
附图简要说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开的技术方案,下面将对本公开所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开一实施例提供的WIFI6路由的路由资源分配方法的流程图;
图2为本公开一实施例提供的任务队列以及数据处理线程池工作流程图;
图3为本公开一实施例提供的根据配置阈值确定是否执行应用资源配置策略的流程图;以及
图4为本公开一实施例提供的WIFI6路由的路由资源分配装置示意图。
详述
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
图1为本公开实施例提供的WIFI6路由的路由资源分配方法的流程图;图2为本公开实施例提供的任务队列以及数据处理线程池工作流程图;图3为本公开实施例提供根据配置阈值确定是否执行应用资源配置策略的流程图;图4为本公开实施例提供的WIFI6路由的路由 资源分配装置示意图。
参阅图1所示,本公开提供的WIFI6路由的路由资源分配方法,其包括:
S100,客户端根据应用的性质确定应用资源配置策略并发送给WIFI6路由;
S200,检测目标应用是否启动,如果启动则向所述WIFI6路由发送启用通知;
S300,所述WIFI6路由根据所述应用启动通知中的应用查询所述应用资源配置策略构建任务队列,为所述任务队列配置固定的路由资源;
S400,所述客户端通过所述WIFI6路由收发峰值负载测试数据,获取执行所述峰值负载测试数据的性能参数,并判断是否达到所述应用资源配置策略的要求,如果能则以现有任务队列以及路由资源执行所述应用资源配置策略,如果不能则根据所述性能参数与要求之间的差距,提供优化参数,以所述优化参数优化所述任务队列以及路由资源直至满足要求;以及
S500,若检测到所述应用的停止操作时,向所述WIFI6路由发送应用停用通知,所述WIFI6路由接收所述应用停用通知解散所述任务队列并释放相应的所述路由资源。
根据客户端的应用的性质(如应用的带宽要求、数据传输速度要求、延迟要求、丢包率要求)配置相应的应用资源配置策略并发送给WIFI6路由;在某些实施方案中,在所述客户端配置应用资源策略定制模块,所述应用资源策略定制模块遍历客户端的应用以获取所述客户端上安装的应用,所述应用资源策略定制模块向用户提供包含应用选项以及应用资源参数选项的应用资源策略定制界面。接收用户通过所述应用资源策略定制界面为相应的应用配置应用资源参数,以满足应用的带宽要求,数据传输速度要求,延迟要求,丢包率要求。在某些实施方案中,所述WIFI6路由中设置存储所述应用资源配置策略的配置表,所述配置表中记录包括所述应用所在客户端的MAC、IP、所述应用的应用ID以及相关的资源配置参数。在具体实施过程中,通过所述应用 资源策略定制界面发送增加所述应用资源配置策略信息在所述配置表中添加MAC、IP、应用ID以及相关的资源配置参数,通过所述应用资源策略定制界面发送删除所述应用资源配置策略信息从所述配置表中删除相应的MAC、IP、应用ID以及相关的资源配置参数,通过所述应用资源策略定制界面发送替换所述应用资源配置策略信息从所述配置表中替换相应的MAC、IP、应用ID以及相关的资源配置参数。
在某些实施方案,所述客户端中的所述应用资源策略定制模块监测所述客户端中应用的启动和关闭情况,在配置有应用资源配置策略的应用启动时,所述应用资源策略定制模块向所述WIFI6路由发送应用启动通知。所述应用启动通知的数据包中包括应用所在的所述客户端的MAC、IP以及应用ID。
在某些实施方案,所述WIFI6路由根据所述MAC、IP以及应用ID检索所述配置表获取相关的资源配置参数。按照所述资源配置参数构建两个用于产生令牌的哈希槽,所述哈希槽的令牌生成速率根据所述资源配置参数设置,其中一个所述哈希槽按满足所述应用的数据的平均速率产生令牌并保存于第一令牌队列,另一个所述哈希槽按所述应用的数据的峰值速率产生令牌并保存于第二令牌队列;按照所述资源配置参数构建一定容量的所述任务队列,从所述第一令牌队列和第二令牌队列获取所述令牌,以所述令牌从所述任务队列中提取所述数据包,交由所述路由资源进行处理转发;这样给应用分配一个小于第二令牌产生速率的固定数据包分配速度,以满足应用的数据传输需求;其中在第一令牌队列中的令牌不足时,仅使用第二令牌队列中的令牌;为保证数据的数据处理速度能够与分配速度匹配,避免高丢包率,为所述任务队列配置一个数据处理线程池,按照所述应用资源配置策略设定所述数据处理线程池的线程容量,所述线程容量为所述数据处理线程池中允许容纳核心线程和非核心线程的总数,按照所述应用资源配置策略设定所述核心线程数量,所述核心线程和所述非核心线程均能调用封包发报函数处理所述任务队列中的数据。
所述客户端在所述应用的数据包的包头中添加与所述应用ID对应的区别码,在某些实施方案,所述区别码设置于所述数据包包头的用 户定义字段中,所述WIFI6路由添加针对所述用户定义字段的区别码的解析指令;所述WIFI6路由解析所述包头获取所述MAC、IP以及区别码,并据所述MAC、IP以及区别码将所述数据包添加到所述任务队列。根据所述应用资源配置策略设定所述任务队列的容量阈值。
在某些实施方案,参阅图2所示,所述任务队列中有数据时,判断所述任务队列的数据是否达到所述容量阈值,如果没达到所述容量阈值以所述第一令牌队列中的令牌分配数据给所述数据处理线程池,如果达到所述容量阈值,则以所述第二令牌队列中的令牌分配数据给所述数据处理线程池;当所述数据处理线程池中是否有空闲的线程(包括核心线程和非核心线程,且优先使用核心线程),如果有则通过所述空闲的线程处理分配的数据,如果所述数据处理线程池中没有空闲的线程,则判断所述数据处理线程池中的线程数量是否达到所述线程容量,如果没达到,则创建所述非核心线程处理分配的数据,如果达到,则判断所述任务队列是否满,如果未满则重新存回所述任务队列,如果满了则丢弃。通过固定的核心线程保证应用的基本数据处理,通过创建非核心线程攫取WIFI6路由资源保证应用数据处理高峰时的数据处理要求,从而保证WIFI6路由为所述应用提供特定服务保证应用的用户体验。
在某些实施方案,通过所述应用发送峰值负载测试数据测试所述路由资源是否满足应用的要求,不满足则优化所述应用资源配置策略。。所述路由资源包括针对所述任务队列中数据包的数据处理线程资源,所述数据处理线程资源优先处理所述任务队列中的数据。为所述任务队列配置一个所述数据处理线程池,所述数据处理线程池配置一定量的核心线程和非核心线程,所述核心线程永久存在于所述数据处理线程池、处理所述任务队列中的数据,所述非核心线程临时构建、处理所述任务队列中的数据,且所述非核心线程的闲置时间超过设定的时间阈值则销毁所述非核心线程,避免用不到非核心线程时,占用路由资源。
在某些实施方案,通过抓包的方式获取所述WIFI6路由执行所述峰值负载测试数据的性能参数,所述性能参数包括数据传输速率,延 迟和丢包率。根据性能参数的优化内容包括所述哈希槽的变化速率(数据传输速率不够增加所述哈希槽的变化速率,以提高令牌产生速率),优化信道带宽(确保所述WIFI6路由为所述客户端提供稳定带宽),优化任务队列容量(加大任务队列容量,避免丢包),优化所述数据处理线程池的线程容量(增加数据处理能力),优化所述数据处理线程池中核心线程的数量(增加固定分配的数据处理能力),优化所述容量阈值(所述任务队列中数据堆积到容量阈值,说明第一令牌队列的令牌生产速度相对数据传输速度不足,数据堆积进而导致延迟增加,通过优化容量阈值能及时调用第二令牌队列的令牌分配,并通过非核心线程的创建攫取路由资源以满足第二令牌队列的分配速度),优化所述非核心线程的所述时间阈值(适当的提升非核心线程的时间阈值,能够减少非核心线程的重建)。
在某些实施方案,通过所述应用资源策略定制模块监控到用户停止使用应用,所述应用资源策略定制模块向所述WIFI6路由发送应用停用通知,所述应用停用通知的数据包包括应用所在客户端的MAC、IP和应用ID,所述WIFI6路由接收所述应用停用通知,所述WIFI6路由根据所述应用停用通知确定并解散所述任务队列,释放所述数据处理线程池中线程占用的路由资源。
在某些实施方案,参阅图3所示,根据WIFI6路由的线程能力设定所述任务队列的配置阈值。避免WIFI6路由因配置过多的应用资源配置策略而过多的占用路由资源对其他服务产生影响。在某些实施方案,启动的某一应用而是任务队列超出所述配置阈值,所述WIFI6路由向所述应用资源配置模块发送超载反馈,并拒绝执行所述应用资源配置策略。
本公开还涉及WIFI6路由的路由资源分配装置,其包括客户端,所述客户端配置应用资源策略定制模块和应用资源策略验证模块,所述应用资源策略定制模块检测所述客户端安装的应用,为用户提供应用资源配置策略配置界面以帮助用户完成应用资源配置策略的制定、并检测所述客户端应用的启动情况,发送应用启动通知和应用停用通知给WIFI6路由;所述应用资源策略验证模块通过抓包的方式获取执 行应用资源配置策略时峰值负载测试数据的性能参数,根据所述性能参数是否达标判断所述应用资源配置策略是否合格,如果不合格根据性能参数与要求之间差距提供优化参数进行优化,直至达标。
与所述客户端连接的WIFI6路由,所述WIFI6路由配置应用资源策略接收模块和应用资源策略执行模块,所述应用资源策略接收模块接收所述应用资源配置策略、所述应用停用通知和所述应用启动通知,所述应用资源策略执行模块根据所述应用资源配置策略以及所述应用停用通知和所述应用启动通知创建或者解散任务队列和数据处理线程池。
本公开实施例提供的该方法当所述客户端运行设定有应用资源配置策略的应用时,所述客户端向所述WIFI6路由发送应用启动通知,所述WIFI6路由根据相应的应用资源配置策略为所述客户端的应用分配固定的路由资源,以实现满足所述客户端的应用需求,提高用户的应用体验;通过所述峰值负载测试数据测试所述路由资源能否满足应用峰值负载,从而保证设定的所述路由资源能够充分满足所述应用使用。当所述应用停用时,所述客户端向所述WIFI6路由发送应用停用通知,所述WIFI6路由解散所述任务队列释放路由资源,实现启用应用时构建任务队列,停用应用时解散任务队列,根据应用配置路由资源以满足所述应用需求。能够有效降低所述应用数据的延迟、丢包,满足所述应用数据传输速度要求,给用户更好的应用体验。相比现有的qos针对客户端,本公开能针对应用分配路由资源以给用户更好的应用体验。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排 除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. WIFI6路由的路由资源分配方法,其包括:
    客户端根据应用的性质确定相应的应用资源配置策略并发送给WIFI6路由;
    所述客户端向所述WIFI6路由发送应用启动通知;
    所述WIFI6路由根据所述应用启动通知查询所述应用资源配置策略并构建任务队列,为所述任务队列配置固定的路由资源;
    所述客户端通过所述WIFI6路由收发峰值负载测试数据,获取执行所述峰值负载测试数据的性能参数,并判断是否达到所述应用资源配置策略的要求,如果能则以现有任务队列以及路由资源执行所述应用资源配置策略,如果不能则根据所述性能参数与要求之间的差距提供优化参数,以所述优化参数优化所述任务队列以及路由资源直至满足要求;以及
    若检测到所述应用的停止操作时,通过所述客户端向所述WIFI6路由发送应用停用通知,所述WIFI6路由接收所述应用停用通知解散所述任务队列并释放相应的所述路由资源。
  2. 如权利要求1所述WIFI6路由的路由资源分配方法,其中,所述WIFI6路由中存储所述应用资源配置策略的配置表,所述配置表中记录包括所述应用所在客户端的MAC、IP、所述应用的应用ID以及相关的资源配置参数,所述应用启动通知包含应用所在的所述客户端的MAC、IP以及应用ID,所述WIFI6路由根据应用启动通知查询所述配置表获取资源配置参数来构建所述任务队列。
  3. 如权利要求2所述WIFI6路由的路由资源分配方法,其中,在所述应用的数据包的包头中添加与所述应用ID对应的区别码,所述WIFI6路由解析所述包头获取所述MAC、IP以及区别码,并据此将所述数据包添加到所述任务队列。
  4. 如权利要求3所述WIFI6路由的路由资源分配方法,其中,
    构建两个配置为产生令牌的哈希槽,所述哈希槽的令牌生成速率根据所述资源配置参数设置,其中一个所述哈希槽按满足所述应用的数据的平均速率产生令牌并保存于第一令牌队列,另一个所述哈希槽按所述应用的数据的峰值速率产生令牌并保存于第二令牌队列;
    构建对应所述应用的所述任务队列,所述WIFI6路由根据所述区别码将所述应用相关的数据发送至所述任务队列;以及
    从所述第一令牌队列和第二令牌队列获取所述令牌,以所述令牌从所述任务队列中提取所述数据,交由所述路由资源进行处理转发。
  5. 根据权利要求1至4中任一权利要求所述WIFI6路由的路由资源分配方法,其中,所述路由资源包括针对所述任务队列中数据的数据处理线程资源,所述数据处理线程资源调取封包发报函数优先处理所述任务队列中的数据。
  6. 如权利要求5所述WIFI6路由的路由资源分配方法,其中,为所述任务队列配置一个数据处理线程池,所述数据处理线程池配置一定量的核心线程和非核心线程,所述核心线程永久存在于所述数据处理线程池、处理所述任务队列中的数据,所述非核心线程临时构建、处理所述任务队列中的数据,且所述非核心线程的闲置时间超过设定的时间阈值则销毁所述非核心线程。
  7. 如权利要求1至6中任一权利要求所述WIFI6路由的路由资源分配方法,其中,通过抓包的方式获取所述WIFI6路由执行所述峰值负载测试数据的性能参数,所述性能参数包括数据传输速率,延迟和丢包率。
  8. 如权利要求4至7中任一权利要求所述WIFI6路由的路由资源分配方法,其中,根据性能参数的优化内容包括所述哈希槽的变化速率,优化任务队列容量,优化所述数据处理线程池的线程容量,优化所述数据处理线程池中核心线程的数量,优化所述容量阈值,优化所 述非核心线程的所述时间阈值。
  9. 如权利要求6至8中任一权利要求所述WIFI6路由的路由资源分配方法,其中,根据WIFI6路由的线程能力设定所述任务队列的配置阈值。
  10. WIFI6路由的路由资源分配装置,其包括客户端,所述客户端配置至少一条客户端指令,执行所述客户端指令实现提供应用资源配置策略配置界面以指定和优化应用资源配置策略,检测应用的启动情况,发送应用启动通知和应用停用通知;
    WIFI6路由,配置至少一条路由指令,执行所述路由指令实现如权利要求1至9中任一权利要求所述的WIFI6路由的路由资源分配方法。
PCT/CN2021/135037 2020-12-17 2021-12-02 Wifi6路由的路由资源分配方法及装置 WO2022127608A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/336,032 US20230337266A1 (en) 2020-12-17 2023-06-16 Method, and electronic device for allocating routing resources of wifi6 router

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011502753.4 2020-12-17
CN202011502753.4A CN112637871B (zh) 2020-12-17 2020-12-17 一种wifi6路由的路由资源分配方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/336,032 Continuation US20230337266A1 (en) 2020-12-17 2023-06-16 Method, and electronic device for allocating routing resources of wifi6 router

Publications (1)

Publication Number Publication Date
WO2022127608A1 true WO2022127608A1 (zh) 2022-06-23

Family

ID=75316911

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/135037 WO2022127608A1 (zh) 2020-12-17 2021-12-02 Wifi6路由的路由资源分配方法及装置

Country Status (3)

Country Link
US (1) US20230337266A1 (zh)
CN (1) CN112637871B (zh)
WO (1) WO2022127608A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637871B (zh) * 2020-12-17 2021-10-08 深圳市微网力合信息技术有限公司 一种wifi6路由的路由资源分配方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373434A (zh) * 2015-12-16 2016-03-02 上海携程商务有限公司 资源管理系统及方法
CN108566286A (zh) * 2017-12-29 2018-09-21 惠州Tcl移动通信有限公司 一种智能路由器服务质量的实现方法、路由器及电子设备
CN109792411A (zh) * 2016-08-22 2019-05-21 西门子股份公司 用于管理端到端连接的设备和方法
CN109842522A (zh) * 2019-02-01 2019-06-04 国家电网有限公司 通信路由资源的配置方法及系统
CN110213363A (zh) * 2019-05-30 2019-09-06 华南理工大学 基于软件定义网络的云资源动态分配系统及方法
CN112637871A (zh) * 2020-12-17 2021-04-09 深圳市微网力合信息技术有限公司 一种wifi6路由的路由资源分配方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373434A (zh) * 2015-12-16 2016-03-02 上海携程商务有限公司 资源管理系统及方法
CN109792411A (zh) * 2016-08-22 2019-05-21 西门子股份公司 用于管理端到端连接的设备和方法
CN108566286A (zh) * 2017-12-29 2018-09-21 惠州Tcl移动通信有限公司 一种智能路由器服务质量的实现方法、路由器及电子设备
CN109842522A (zh) * 2019-02-01 2019-06-04 国家电网有限公司 通信路由资源的配置方法及系统
CN110213363A (zh) * 2019-05-30 2019-09-06 华南理工大学 基于软件定义网络的云资源动态分配系统及方法
CN112637871A (zh) * 2020-12-17 2021-04-09 深圳市微网力合信息技术有限公司 一种wifi6路由的路由资源分配方法及装置

Also Published As

Publication number Publication date
CN112637871A (zh) 2021-04-09
CN112637871B (zh) 2021-10-08
US20230337266A1 (en) 2023-10-19

Similar Documents

Publication Publication Date Title
US10419531B2 (en) Method for setting gateway device identity, and management gateway device
JP7101308B2 (ja) 高速転送テーブル作成
WO2019223661A1 (zh) 一种识别应用标识的方法、设备及系统
US11165716B2 (en) Data flow processing method and device
JP2005537764A (ja) 優先度及びリザーブ帯域幅プロトコルを利用したネットワークにおけるQoSを提供する機構
US11223568B2 (en) Packet processing method and apparatus
WO2008080314A1 (fr) Procédé, moteur de retransmission et dispositif de communication pour la commande d'accès aux messages
WO2017166136A1 (zh) 一种vnf的资源分配方法及装置
WO2011012023A1 (zh) 一种网络处理器输出端口队列的管理方法及系统
WO2021098425A1 (zh) 配置业务的服务质量策略方法、装置和计算设备
WO2009115037A1 (zh) 以太网链路聚合端口配置的方法和设备
US9001650B2 (en) TCP relay apparatus
WO2014094432A1 (zh) 深度报文检测结果扩散方法及装置
US9800479B2 (en) Packet processing method, forwarder, packet processing device, and packet processing system
WO2011032321A1 (zh) 一种数据转发方法、数据处理方法、系统以及相关设备
WO2022127608A1 (zh) Wifi6路由的路由资源分配方法及装置
WO2021147354A1 (zh) 服务等级配置方法以及装置
WO2020151482A1 (zh) 信息查询方法、装置、设备及存储介质
WO2011029358A1 (zh) 报文调度方法和装置
KR20110008311A (ko) 네트워크를 관리하는 방법들 및 디바이스들
JP2005295457A (ja) P2pトラフィック対応ルータ及びそれを用いたp2pトラフィック情報共有システム
WO2017008576A1 (zh) 网络服务质量策略的调整方法和装置
EP2814217A1 (en) Access control method for wifi device and wifi device thereof
JP2020017903A (ja) 通信システム、通信制御方法、及び通信装置
WO2016150020A1 (zh) 基于调度流标识的报文调度方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21905537

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21905537

Country of ref document: EP

Kind code of ref document: A1