Terminal scheduling method, device and equipment and readable storage medium
By collecting terminal operation information and performing adaptive scheduling based on comprehensive anomaly scores, the problem of abnormal terminals occupying shared queues in wireless LANs is solved, thereby improving system robustness and user experience and avoiding the need for high-cost hardware design.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XINHUASAN INFORMATION TECH CO LTD
- Filing Date
- 2026-02-14
- Publication Date
- 2026-05-05
AI Technical Summary
The heterogeneity of terminals in modern wireless LANs can lead to abnormal terminals occupying shared packet sending queue resources, resulting in decreased overall throughput and increased latency. Furthermore, the high cost of independent queue hardware design makes large-scale application difficult.
By collecting terminal operation information under different statistical dimensions, adaptive scheduling is performed based on comprehensive anomaly scores to identify and intervene in the resource consumption of abnormal terminals, thus avoiding reliance on high-cost hardware queue resources.
Without increasing hardware resources, it can accurately identify and isolate abnormal terminals, improve system robustness and user experience, and reduce operational complexity.
Smart Images

Figure CN121985352A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a terminal scheduling method, apparatus, device, and readable storage medium. Background Technology
[0002] With the widespread adoption of Wi-Fi 6 / 7 and smart homes, modern wireless LANs generally face the problem of terminal heterogeneity, meaning that high-speed terminals, slow-speed terminals, and terminals with abnormal behavior coexist in the same network. Current wireless access devices mostly use a shared packet queue architecture. When a terminal with abnormal behavior fails to complete downlink data transmission due to reasons such as not responding to acknowledgment signals, prolonged sleep, or continuous retransmission, its pending packets will continuously accumulate in the shared queue. Consequently, the wireless access device needs to repeatedly retransmit unacknowledged frames, during which a large amount of queue space and scheduling resources are ineffectively occupied, wasting on-chip memory and air interface time slots, and crowding out the resource quotas of normal terminals, leading to a decrease in overall throughput and an increase in latency. In home networks, after the gateway allocates a large buffer for high-speed download terminals, if a terminal suddenly malfunctions, it will also cause the entire house's Wi-Fi performance to degrade due to abnormal occupation of the shared packet queue. Summary of the Invention
[0003] In view of this, in order to solve the above-mentioned technical problems, this application provides a terminal scheduling method, apparatus, device and readable storage medium, which can avoid the whole machine from being stuck or frozen due to a single abnormal terminal occupying too much packet sending queue resources without increasing hardware queue resources.
[0004] Specifically, this application is implemented through the following technical solution: According to a first aspect of the embodiments of this application, a terminal scheduling method is provided, applied to a wireless access device, the method comprising: For each terminal that has been connected to the wireless access device, the operating information of the terminal under different statistical dimensions at the current time is collected; wherein, the operating information under different statistical dimensions is used to at least represent the behavior of the terminal when using the shared communication resources in the wireless access device; Based on the matching results of the terminal's operating information under different statistical dimensions and each preset abnormal condition, the comprehensive abnormal score of the terminal at the current moment is determined. Based on the comprehensive anomaly score of the terminal, a scheduling operation matching the comprehensive anomaly score is performed on the terminal; the scheduling operation is used to adjust the terminal's use of shared communication resources in the access device.
[0005] According to a second aspect of the embodiments of this application, a terminal scheduling device is provided, applied to a wireless access device, the device comprising: The acquisition module is configured to acquire operational information of each terminal connected to the wireless access device at the current moment under different statistical dimensions; wherein, the operational information under different statistical dimensions is used to at least represent the behavior of the terminal when using the shared communication resources in the wireless access device; The comprehensive evaluation module is configured to determine the comprehensive anomaly score of the terminal at the current moment based on the matching results of the terminal's operating information under different statistical dimensions and various preset anomaly conditions. An adaptive scheduling module is configured to perform a scheduling operation on the terminal based on the terminal's comprehensive anomaly score; the scheduling operation is used to adjust the terminal's use of shared communication resources in the access device.
[0006] According to a third aspect of the embodiments of this application, an electronic device is provided, the electronic device comprising: a memory and a processor; the memory being used to store a computer program; the processor being used to execute the terminal scheduling method described above by invoking the computer program.
[0007] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, wherein the program, when executed by a processor, implements the terminal scheduling method described above.
[0008] The technical solutions provided in this application embodiment may include the following beneficial effects: In the technical solution provided in this application, the method collects the terminal's operational information under statistical dimensions such as status, services, and queue occupancy, and determines the terminal's comprehensive anomaly score based on the matching of the operational information with preset abnormal conditions. Based on the comprehensive anomaly score, it adaptively executes hierarchical scheduling operations. It can accurately identify the abnormal occupancy of shared communication resources by the terminal without relying on high-cost independent queue hardware for each STA, and implement scheduling intervention for abnormal terminals. Without increasing hardware queue resources, it effectively avoids the whole machine from being stuck or frozen due to a single abnormal terminal occupying too much packet sending queue resources, thereby improving system robustness, resource utilization efficiency, and multi-user fairness.
[0009] Furthermore, this method is applicable to the operation and maintenance of various types of WLAN networks. This application can identify queue accumulation and air interface resource abuse caused by terminal anomalies in real time and automatically perform hierarchical scheduling intervention. Compared with traditional solutions that rely on manual troubleshooting or passive restarts, this application achieves proactive perception, accurate location, and seamless handling of abnormal terminals, effectively avoiding whole-house WLAN lag or service interruption caused by a single abnormal interruption, and improving the network's autonomy, stability, and user experience. Attached Figure Description
[0010] Figure 1 This is a schematic diagram illustrating an independent packet sending queue, as exemplified in related technologies; Figure 2A This is a schematic flowchart illustrating a terminal scheduling method according to an exemplary embodiment of this application; Figure 2B This is a schematic diagram illustrating the collection of operational information under different statistical dimensions, as shown in an exemplary embodiment of this application; Figure 2C This application illustrates a comprehensive anomaly score generation process in an exemplary embodiment. Figure 2D This is a schematic diagram illustrating an exemplary embodiment of this application of a scheduling operation that matches the terminal to the comprehensive anomaly score; Figure 3 This is a schematic diagram illustrating a preset abnormal condition according to an exemplary embodiment of this application; Figure 4 This is a schematic diagram of the structure of a terminal scheduling device shown in an exemplary embodiment of this application; Figure 5 This is a hardware schematic diagram of an electronic device illustrated in an exemplary embodiment of this application. Detailed Implementation
[0011] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another.
[0012] With the widespread adoption of Wi-Fi 6 / 7 technology and the surge in smart home devices, modern wireless LANs generally face the problem of heterogeneous terminals, meaning that the network typically contains: High-speed terminals: such as mobile phones and computers that support Wi-Fi 6 / 6E / 7, 160MHz bandwidth, and MU-MIMO; Slow-speed devices: such as older devices that only support Wi-Fi 4 (802.11n) and 20MHz bandwidth; Terminals exhibiting abnormal behavior: such as devices that cannot send or receive data normally due to driver defects, protocol stack failures, or application layer freezes.
[0013] In current mainstream WLAN architectures, wireless access devices typically employ a shared packet queue, shared by all terminals connected to the device. When a terminal's downlink data transmission from the wireless access device fails due to an abnormal state (such as not responding to ACKs, remaining in a dormant state for an extended period without disconnection, or continuously triggering retransmissions), a large amount of pending data accumulates in the shared packet queue. According to protocol requirements, the wireless access device must retransmit unacknowledged frames multiple times until the maximum number of retransmissions is reached. During this retransmission period, the packet queue space and scheduling opportunities occupied by the abnormally behaving terminal cannot be released, wasting on-chip memory and air interface time slots. This also severely restricts the resource quotas of other normal terminals, leading to a decrease in overall throughput and a surge in latency.
[0014] FTTR (Fiber to the Room) is a home network architecture designed for high bandwidth, low latency, and whole-house coverage. It connects a main gateway to multiple secondary gateways (optical access points) via fiber optic cables to achieve whole-house Wi-Fi 6 / 7 coverage. In practical use, abnormal terminals within the FTTR network can cause wireless air interface resources and the shared packet sending queues within the FTTR equipment to be occupied for extended periods by invalid or untransmitted data streams, leading to system-level performance degradation or service interruption.
[0015] For example, when a terminal is performing a high-speed download (such as video playback or system updates), the FTTR device allocates a large downlink packet sending queue buffer for it. If the terminal stops responding to ACK frames (i.e., does not acknowledge receipt of data packets) due to driver crashes, protocol stack deadlocks, or other reasons, according to the 802.11 protocol, the FTTR (from the gateway) must retransmit the unacknowledged data packets until the maximum number of retransmissions is reached. During this period, a large number of packets retransmitted to the abnormal terminal accumulate in the sending queue, consuming memory and scheduling resources. Packets from other normal terminals cannot be enqueued or scheduled in a timely manner, causing severe lag in the entire WLAN forwarding.
[0016] To alleviate the above problems, some high-end Wi-Fi chips adopt an independent queue design in their hardware design, see [link to relevant documentation]. Figure 1 The illustration shows a schematic diagram of an independent packet sending queue in a related technology. Each connected terminal STA has an independent packet sending queue inside the chip. At the same time, a packet distributor is integrated in the hardware to accurately route downlink data to the packet sending queue dedicated to each STA according to the destination terminal, thereby achieving resource isolation.
[0017] This design effectively achieves queue isolation; even if a terminal freezes abnormally, loses ACKs, or fails to receive data for an extended period, its queue becoming full will not affect the scheduling and forwarding of other normal terminals. However, this approach requires pre-allocating an independent packet sending queue buffer for each potential STA, significantly increasing on-chip memory requirements. The hardware distribution logic and queue management unit increase chip area and design complexity, leading to a substantial increase in chip cost. In cost-sensitive applications such as home gateways, FTTR slave gateways, and small and medium-sized enterprise APs, manufacturers often find it difficult to afford such high-end chip solutions, hindering the large-scale deployment of this solution.
[0018] In view of this, this application provides a terminal scheduling method for wireless access devices, which can actively identify and suppress the invalid occupation of shared communication resources by abnormal terminals through intelligent scheduling without relying on high-cost hardware queue isolation, thereby improving the robustness of WLAN systems and user experience.
[0019] This method is applicable to wireless access devices in various communication networks, including enterprise parks, smart factories, warehousing and logistics, hospitals, hotels, and home broadband, improving network fault tolerance and service reliability. It is understood that this method is also applicable to FTTR (Fiber to the Room) networks, but not limited to that scenario. This method is also applicable to other wireless access scenarios, including enterprise-grade Wi-Fi, industrial IoT, wireless extension modules for traditional copper cable access devices, and various IP network environments and topologies supporting the DFS band, demonstrating broad applicability and scalability.
[0020] The wireless access device can be a single Wi-Fi device, such as a home router or an optical network terminal that supports Wi-Fi functionality, or it can be a system that uses FTTR (Fiber to the Room), or a centralized Wi-Fi network consisting of a wireless access controller and multiple wireless access points, or a cloud-managed wireless access point network.
[0021] See Figure 2A The illustrative diagram illustrates the steps of a terminal scheduling method, which may include at least the following steps: S201, for each terminal that has been connected to the wireless access device, collect the terminal's operating information under different statistical dimensions at the current moment; wherein, the operating information under different statistical dimensions is used to at least represent the terminal's behavior when using the shared communication resources in the wireless access device; The different statistical dimensions are used to capture the operational characteristics of the terminal in the process of using shared communication resources from multiple orthogonal perspectives such as protocol stack status, service transmission behavior and hardware resource usage, so as to comprehensively and accurately describe the actual impact and potential risks of the terminal on the wireless access device system resources.
[0022] The terminal's operational information under different statistical dimensions can be obtained through collaborative collection by multiple functional modules in the wireless access device to which the terminal is connected. For example, the wireless access device includes: a terminal management module for acquiring terminal status information; a service statistics module for acquiring packet sending and receiving and traffic performance data of the terminal; and a hardware packet sending queue feedback module for acquiring the terminal's occupancy status and scheduling dynamics in the shared packet sending queue.
[0023] The shared communication resources in the wireless access device refer to limited system resources that are competed for and used by multiple connected terminals. These resources include a shared packet queue shared by all terminals for caching downlink data packets. This shared packet queue, as a critical hardware resource within the wireless access device, is responsible for the temporary storage and scheduling of all downlink data packets. When a terminal is unable to receive or respond to data normally due to protocol anomalies, driver failures, or network degradation, its corresponding pending packets will accumulate in the shared packet queue for an extended period, thus affecting the data forwarding efficiency of other normal terminals.
[0024] To accurately identify such abnormal behavior and achieve refined resource management, this application employs a multi-dimensional data collection mechanism to obtain real-time operational information of the terminal from the following three statistical dimensions: The terminal status dimension, the operational information under the terminal status dimension is used to describe the operational status of the terminal itself; Terminal service statistics dimension, the operational information under the terminal service statistics dimension is used to characterize the data transmission characteristics of the terminal in service interaction; The packet sending queue status dimension, the operational information under the packet sending queue status dimension, is used to characterize the terminal's resource usage of the shared packet sending queue in the wireless access device.
[0025] The terminal state dimension describes the terminal's current connection status, activity level, and stability characteristics at each layer of the protocol stack and operational behavior level. This includes key attributes such as power management behavior, mobility performance, wireless link quality, session persistence, and network layer reachability, providing a basis for determining whether the terminal is abnormal, whether roaming guidance is needed, or whether resources need to be released. For example, the terminal's real-time operational status may include, but is not limited to, the following operational information: Whether the terminal is in a low-power or sleep state reflects the terminal's willingness to be active; Roaming behavior characteristics, such as roaming status and roaming frequency, can be used to determine whether there is ping-pong roaming or coverage blind spots; Wireless link quality, such as Received Signal Strength Indicator (RSSI), Signal-to-Noise Ratio (SNR), and Negotiated Rate Capability Set (NCAP), is used to characterize the physical layer communication quality. Session duration and recent activity time are used to determine whether it is a zombie terminal or an intermittent terminal; Network layer protocol states, such as the status of DHCP IP acquisition and the validity of ARP entries, are used to reflect end-to-end connectivity.
[0026] The terminal service statistics dimension is used to quantify the terminal's performance in actual service interactions, describing the terminal's efficiency in utilizing wireless air interface resources, service load characteristics, and communication reliability during data transmission. Specifically, it reflects the terminal's traffic behavior, transmission quality, protocol overhead, and potential impact on the shared channel within a preset time window. This dimension can quantify the terminal's actual service behavior, identifying high retransmission, inefficient transmission, or abnormal traffic patterns, providing crucial data support for identifying inefficient terminals, abnormal traffic, or air interface bottlenecks. This dimension includes multiple statistics within the preset time window, which may include, but are not limited to, the following operational information: The number of packets sent and received within a specified time window, and the success / failure ratio of sending and receiving packets, reflect the basic connectivity. Packet loss rate and retransmission rate reflect the stability of the link and the degree of interference; Average throughput and traffic volume are used to characterize the intensity of user service load. The statistical distribution by frame type (such as data frames, management frames, and control frames) reveals the protocol interaction overhead. Assess the proportion of low-speed messages, broadcast messages, or multicast messages to evaluate their negative impact on air interface fairness and overall network efficiency.
[0027] The terminal's packet sending queue status dimension characterizes the real-time occupancy, scheduling pressure, and potential congestion risk of each terminal in the shared packet sending queue—a critical communication resource in the wireless access device. It reflects the intensity and dynamic trend of the data transmission behavior's consumption of the underlying hardware queue. This dimension can describe the terminal's data flow characteristics and its competition for system resources from a hardware scheduling perspective, and may include, but is not limited to, the following operational information: The amount of data currently backed up in the packet sending queue of this terminal; The inbound and outbound rates reflect the degree of matching between the suddenness of business operations and the scheduling service capabilities. The current overall occupancy level of the shared queue is used to assess the overall resource stress level; The slope of the length of the packet sending queue occupied by the terminal over time (such as a continuous increase or sharp fluctuation) is used to predict potential congestion or scheduling anomalies.
[0028] Based on this, see Figure 2B This example illustrates the collection of operational information under different statistical dimensions. Operational information X1 (terminal status dimension) is obtained from the terminal management module of the wireless access device, operational information X2 (terminal service statistics dimension) is obtained from the terminal statistics module, and operational information X3 (packet queue status dimension) is obtained from the hardware packet queue feedback module. The collected operational information of the terminal under different statistical dimensions at the current moment serves as the data basis for terminal scheduling execution in subsequent steps of this embodiment.
[0029] S202, based on the matching results of the terminal's operating information under different statistical dimensions and each preset abnormal condition, determine the comprehensive abnormal score of the terminal at the current moment; Among them, any preset abnormal condition is used to indicate a specific abnormal behavior pattern exhibited by the terminal when using the shared communication resources in the access device, reflecting the terminal's unreasonable or abnormal occupation of the shared communication resources (such as packet queues). For example, a terminal in a dormant state continuously accumulating a large amount of downlink data, or extremely low service traffic but an abnormally high packet loss rate, both constitute abnormal consumption of resources.
[0030] Based on this, in determining the comprehensive anomaly score of the terminal at the current moment, this embodiment adopts a method of independent scoring under multiple preset anomaly conditions and dynamic fusion of independent scores to achieve fine-grained quantification and continuous evaluation of the terminal's abnormal behavior, avoiding misjudgment of a single indicator or scheduling errors caused by momentary jitter. See also Figure 2C An exemplary process for generating a comprehensive anomaly score includes the following steps: S2021, For each preset abnormal condition, based on whether the terminal's operating information under different statistical dimensions contains features that meet the preset abnormal condition, the abnormal score of the terminal under the preset abnormal condition is determined. For each preset abnormal condition, the abnormal score of the terminal under that preset abnormal condition is based on whether the terminal's operating information under different statistical dimensions matches the preset abnormal condition.
[0031] If the terminal exhibits features that meet the preset abnormal conditions in its operational information under different statistical dimensions, then the abnormal score of the terminal under the preset abnormal conditions is determined to be a first value; the first value is the abnormal score configured for the preset abnormal conditions. Otherwise, the abnormal score of the terminal under the preset abnormal condition is determined to be the second value; the second value indicates that there is no preset benchmark value that meets the characteristics of the preset abnormal condition.
[0032] The first value is the abnormal score configured for the preset abnormal condition, which indicates the quantitative contribution of the preset abnormal condition to the degree of terminal abnormality when it is triggered. It is used to reflect the potential harm of the specific abnormal behavior pattern to shared communication resources in the comprehensive abnormal score calculation. The second value indicates that the preset abnormal condition is not triggered and does not contribute to the comprehensive abnormal score. It can usually be configured to zero.
[0033] For example, see Table 1 below for an exemplary correspondence between preset exception conditions and exception score configurations: Table 1 If the terminal exhibits a feature that meets the preset abnormal condition corresponding to the abnormal sleep feature in the operation information of the terminal under different statistical dimensions, then the abnormal score of the terminal under the preset abnormal condition 1 is the first value 20. Similarly, assuming that the terminal does not exhibit any features that meet the preset abnormal conditions corresponding to the high packet loss and weak signal characteristics in the operational information of the terminal under different statistical dimensions, then the abnormal score of the terminal under the preset abnormal condition 2 is the second value 0.
[0034] S2022: Based on the anomaly scores of the terminal under each preset abnormal condition, determine the comprehensive anomaly score of the terminal at the current moment.
[0035] The comprehensive anomaly score of the terminal at the current moment represents the quantitative assessment result of the risk of abnormal occupation of shared communication resources in the wireless access device caused by the terminal. It is a unified anomaly measurement index generated after comprehensively considering its operating characteristics from different statistical dimensions (including terminal status dimension, service transmission behavior dimension and packet queue status dimension). It is used to characterize the degree to which the current behavior of the terminal deviates from the normal communication mode and its potential impact on the overall system performance.
[0036] In one implementation, the anomaly scores of the terminal under various preset abnormal conditions can be directly summed to obtain the comprehensive anomaly score of the terminal at the current moment. This method is simple and efficient, enabling rapid anomaly assessment in scenarios with high real-time requirements, reducing computational overhead, and is suitable for resource-constrained access devices (such as home-level FTTRs from gateways or low-end APs), thereby triggering subsequent scheduling interventions or resource protection mechanisms in a timely manner.
[0037] In another, more refined implementation, to avoid long-term misjudgments caused by transient anomalies, a time decay mechanism (i.e., score aging) can be introduced to achieve dynamic and smooth updates of anomaly scores. This approach includes: The incremental anomaly score of the terminal at the current moment is determined by weighted calculation based on the anomaly scores of the terminal under each preset abnormal condition. The terminal obtains its historical comprehensive anomaly score at the previous moment, and ages the historical comprehensive anomaly score based on a preset time decay strategy to obtain a decayed baseline score; wherein, the time decay strategy is configured to make the anomaly score decrease with time at a preset slope, thereby gradually reducing the impact of historical anomaly events on the current state. Based on the incremental anomaly score and the baseline score, the comprehensive anomaly score of the terminal at the current moment is determined.
[0038] For example, the incremental anomaly score can be added to the attenuated baseline score to obtain the terminal's comprehensive anomaly score at the current moment. Alternatively, the incremental anomaly score and the baseline score can be weighted according to a pre-set fusion weight, and the weighted result can be used as the terminal's comprehensive anomaly score at the current moment.
[0039] It is understood that those skilled in the art can also employ other applicable fusion strategies (such as nonlinear combination, sliding window smoothing, exponentially weighted moving average, etc.) to integrate the incremental anomaly score with the benchmark score to generate a comprehensive anomaly score, depending on the actual network environment, equipment performance, or service requirements. The above-mentioned fusion methods are all reasonable extensions of the technical concept of this application, and this application does not limit them.
[0040] Through the above methods, this embodiment can quantify the severity of abnormal terminal behavior, effectively avoid excessive scheduling intervention caused by short-term network fluctuations, and ensure timely identification and response to real abnormal terminals. The resulting comprehensive anomaly score provides a reliable decision-making basis for subsequent adaptive scheduling operations.
[0041] S203, based on the comprehensive anomaly score of the terminal, perform a scheduling operation on the terminal that matches the comprehensive anomaly score; the scheduling operation is used to adjust the terminal's use of shared communication resources in the access device.
[0042] The purpose of this step is to dynamically apply a matching resource control strategy based on the degree of abnormal occupation of shared communication resources reflected by the terminal's current comprehensive anomaly score, so as to suppress the ineffective occupation of system resources by abnormal or high-risk terminals while ensuring the service quality of normal users.
[0043] Specifically, during the scheduling operation of the terminal based on its comprehensive anomaly score, a tiered response mechanism can be adopted to implement differentiated resource control according to the severity of the anomaly represented by the score. See also... Figure 2D An exemplary schematic diagram of a scheduling operation for the terminal to be matched with the comprehensive anomaly score is shown, which may include at least the following steps: S2031, if the comprehensive anomaly score of the terminal indicates that the terminal has a deterministic abnormal occupation of the shared communication resources, then based on the degree of anomaly to which the comprehensive anomaly score of the terminal belongs, a strong intervention scheduling operation matching the degree of anomaly is performed on the terminal. Deterministic abnormal occupation of shared communication resources indicates that the terminal's behavior pattern has clearly deviated from normal communication patterns, and its occupation of shared communication resources is persistent and unrecoverable. Examples include: continuous queue growth in sleep mode, long-term lack of ACK response leading to retransmission backlog, high packet loss under weak signal conditions and no service traffic, etc. Such behavior is usually caused by protocol stack failure, driver crash, or application freeze, rather than transient network jitter.
[0044] Anomaly severity is used to represent the severity level classification within deterministic anomalies, and to distinguish between general anomalies and severe anomalies. Different anomaly severity levels correspond to different resource impact ranges and system risk levels, requiring different intensities of scheduling intervention.
[0045] Strong intervention scheduling operations refer to proactive, significant, and potentially user-affecting resource restrictions or connection management measures applied to abnormal terminals (i.e., terminals that exhibit deterministic abnormal occupation of the shared communication resources). These measures include clearing the packet sending queue, limiting the packet sending rate, reducing the queue quota, forcibly deassociating, and adding to a short-term blacklist. The goal is to quickly release the system resources that are being ineffectively occupied and ensure the service quality of other normal terminals.
[0046] The comprehensive anomaly score of the terminal can be used to characterize the risk of abnormal occupation of shared communication resources in the wireless access device. Therefore, the comprehensive anomaly score can be compared with one or more preset thresholds to determine whether the terminal has entered a deterministic anomaly range. Furthermore, if the comprehensive anomaly score falls within the deterministic anomaly range, the degree of anomaly of the terminal's comprehensive anomaly score can be identified based on the specific numerical range of the score. Thus, according to the degree of anomaly, a corresponding scheduling instruction can be selected from a pre-configured action policy library and sent to the hardware or protocol stack module of the wireless access device to perform a strong intervention scheduling operation on the terminal that matches the degree of anomaly.
[0047] This process can be implemented in the control plane of the wireless access device (such as the main control CPU) or a dedicated scheduling engine, without relying on high-cost hardware designs such as separate queues for each terminal.
[0048] S2032, if the comprehensive anomaly score of the terminal indicates that the terminal has a potential tendency to abnormally occupy the shared communication resources, then a lightweight scheduling operation is performed on the terminal.
[0049] Potential abnormal usage of shared communication resources refers to situations where the terminal's current behavior does not constitute clear or sustained resource abuse, but suspicious or borderline abnormal characteristics have emerged, such as a brief increase in packet loss rate or excessively high instantaneous queue occupancy. Such behavior may be caused by temporary interference, application bursts, or network jitter, and is insufficient to determine a genuine fault, but it requires observation and appropriate constraints.
[0050] Lightweight scheduling operations refer to non-intrusive, reversible resource control measures applied to terminals with minimal impact on user experience. The goal of these operations is not immediate blocking or punishment, but rather to mitigate potential risks, enhance monitoring granularity, accumulate data for subsequent decision-making, and ensure basic business continuity. Examples of such operations include, but are not limited to: slightly reducing scheduling priority, limiting the maximum transmission rate, reducing packet queue quotas, shortening the behavior observation window, and increasing the statistical sampling frequency.
[0051] This step compares the comprehensive anomaly score with one or more preset thresholds to determine whether the terminal has entered a suspected anomaly range. If so, an appropriate scheduling action can be selected from a pre-configured library of lightweight intervention strategies, and the scheduling instruction can be sent to the scheduler or queue management module of the wireless access device. More granular monitoring can then be initiated (such as shortening the statistical window or increasing the sampling rate) to quickly confirm whether the anomaly has worsened into a deterministic anomaly in the next cycle.
[0052] This process is entirely completed at the software control level, requiring no modification to the hardware architecture, and is suitable for resource-constrained home gateways, FTTR slave gateways, and other devices. The suspected anomaly range is the intermediate zone between normal use of shared communication resources and deterministic abnormal occupancy of shared communication resources. For example, if the comprehensive anomaly score is less than the first scoring threshold T1, it indicates that the terminal is using shared communication resources normally; if the comprehensive anomaly score is greater than or equal to the second scoring threshold T2, then [T1, T2) represents the suspected anomaly range.
[0053] To enable those skilled in the art to better understand this embodiment, in one exemplary implementation, the comprehensive anomaly score adopts a positive number scoring system (i.e., the higher the comprehensive anomaly score, the more severe the abnormal occupation of shared communication resources). The system can be configured with multiple scoring thresholds to achieve fine-grained classification: A first scoring threshold T1 is set to distinguish whether a terminal is in a normal state of using shared communication resources: If the terminal's overall anomaly score is lower than T1, it indicates that its use of shared communication resources is normal and it does not show obvious resource abuse behavior, so no intervention needs to be triggered. If the terminal's overall anomaly score is higher than or equal to T1, then the anomaly type is further distinguished based on the set second scoring threshold T2: If the overall anomaly score is greater than or equal to T1 and less than T2, it indicates that the terminal has a potential tendency to abnormally occupy shared communication resources, and enters the processing flow of S2032 to perform lightweight scheduling operations (such as speed reduction and monitoring). If the overall anomaly score is greater than or equal to T2, it indicates that the terminal has a deterministic abnormal occupation of shared communication resources, and the process proceeds to S2031. To support differentiated strong intervention, the severity level within the deterministic anomaly is divided according to the set third scoring threshold T3: If the comprehensive anomaly score is greater than or equal to T2 and less than T3, it indicates that the terminal is in the first anomaly level, and a strong intervention scheduling operation matching the first anomaly level is performed on the terminal. If the comprehensive anomaly score is greater than or equal to T3, it indicates that the terminal is in the second anomaly level, and its anomaly severity is higher than that of the first anomaly level. In this case, a strong intervention scheduling operation matching the second anomaly level will be performed on the terminal.
[0054] For example, further, based on the above scoring and control, the present invention adopts differentiated processing measures for different levels of abnormality: (1) For terminals at the first level of abnormality (e.g., T2 ≤ comprehensive abnormality score < T3): Limit the downlink packet sending rate of the terminal and reduce its packet queue quota in the shared packet sending queue (i.e., reduce its maximum allowed queue length), but do not perform the deassociation operation for the time being, in order to preserve connection continuity and give it a chance to recover; (2) For terminals at the second level of abnormality (e.g., T3 ≤ comprehensive abnormality score): Clear the packet queue corresponding to the terminal and release the buffer resources that are invalidally occupied; at the same time, try to actively wake up the terminal or refresh its keep-alive status; if no valid response is received from the terminal within the preset time, operate the terminal management table entry to perform a forced deassociation operation for the terminal, or add the terminal to the short-term blacklist and refuse its reconnection request within the set time window (such as 30 seconds) to prevent repeated dragging down the system. (3) For terminals in a risky state (i.e., terminals that have a potential tendency to abnormally occupy shared communication resources): Preventive measures may include, but are not limited to: shortening the behavior observation window to speed up anomaly detection response, reducing the packet sending queue quota, and limiting the maximum packet sending rate, thereby reducing the potential impact on shared communication resources without affecting basic connectivity.
[0055] The above scheduling operations are all applied to the software scheduling layer and hardware queue management unit of the wireless access device. Without relying on high-cost hardware architectures such as independent queues for each STA, it can effectively isolate abnormal terminals and protect resources, thereby effectively improving system robustness and user experience in scenarios such as FTTR, home gateways and ordinary APs.
[0056] The above embodiments are applicable not only to WLAN network management in various networking environments, but also to FTTR networking environments. The above methods enable users to efficiently and accurately complete WLAN network management tasks in FTTR networks without needing to have professional network knowledge, reducing the operational complexity of network operation and maintenance, and providing users with visual feedback on the operation results, thereby improving the operation and maintenance experience in FTTR networks.
[0057] In some embodiments, to address the issue of shared communication resources potentially becoming overloaded due to abnormal terminal behavior in high-density terminal access scenarios, this embodiment further introduces a collaborative resource regulation mechanism based on global resource level awareness. Building upon the existing terminal-level anomaly scoring and adaptive scheduling, it further introduces a system-level resource protection strategy. By monitoring the overall occupancy level of shared communication resources, when the system is on the verge of congestion, it prioritizes ensuring the service quality of normal terminals while implementing resource restriction strategies for abnormal terminals to maintain the steady state of global shared communication resources.
[0058] In this embodiment, each terminal is allocated a resource quota; the resource quota represents the communication resources that the terminal can use in the shared communication resources. For example, if the shared communication resources are packet queues, then the resource quota represents the maximum length of the packet queue that the terminal can use.
[0059] After performing a scheduling operation on the terminal that matches the comprehensive anomaly score, the following steps may also be included: Obtain the current overall occupancy level of shared communication resources in the wireless access device; If the current overall occupancy level is detected to exceed a preset high occupancy threshold, a resource restriction policy is implemented for terminals other than the normal terminals while maintaining the resource quota allocated to normal terminals. The normal terminals include all terminals whose comprehensive anomaly score indicates that they are currently in normal use of the shared communication resources. The resource restriction policy is used to reduce the current overall occupancy level of the shared communication resources.
[0060] The current overall occupancy level of shared communication resources in the wireless access device represents the proportion or absolute amount of shared resources (such as packet queues) that are competed for by multiple terminals within the device, and is used to reflect the overall resource stress of the system. For example, it can be obtained by monitoring the total occupancy level of the shared queues in the hardware system.
[0061] The purpose of implementing resource restriction policies on terminals other than the normal terminals is to prioritize the service quality of normal terminals when system resources are on the verge of overload, while quickly releasing buffers and scheduling opportunities that are invalidally occupied by abnormal or high-risk terminals, thereby reducing the overall resource consumption level and restoring system stability.
[0062] For example, in one exemplary implementation, when the overall occupancy level of the hardware shared packet sending queue exceeds the system queue high watermark threshold TQ_SYS_HIGH, the following queue protection policy is executed: For STAs whose comprehensive anomaly score is within the normal range, their pre-allocated packet sending resource quotas will be strictly guaranteed to ensure that their service forwarding performance is not affected. Prioritize implementing packet sending rate limits, queue depth reduction, or directly triggering queue reset operations for terminals with high comprehensive anomaly scores; and / or prioritize determining whether old data frames that have been occupied by abnormal terminals but have not been transmitted for a long time can be released, and if necessary, directly discard their low-priority services (such as background synchronization and non-real-time video streams) to quickly free up packet queue space and alleviate congestion.
[0063] Furthermore, when the overall occupancy level of the shared packet sending queue falls below the system low water level threshold TQ_SYS_LOW, the system gradually relaxes the rate limiting policy and packet sending queue quota restrictions for each terminal, restores the normal scheduling mode, and achieves a dynamic balance between resource utilization efficiency and system robustness.
[0064] In this embodiment, based on existing terminal adaptive scheduling based on comprehensive anomaly scoring, a global queue level awareness mechanism is further introduced. When system resources are strained, terminals with normal comprehensive anomaly scores are prioritized to ensure their packet sending quotas are not encroached upon, thereby improving service fairness and stability in multi-user scenarios. Furthermore, by performing targeted operations such as queue reset, old frame discarding, and low-priority service cleanup on high-scoring anomaly terminals, buffers and scheduling slots occupied by long-term stagnant data can be quickly reclaimed, significantly shortening congestion duration and avoiding resource waste.
[0065] In addition, the entire process described above is based on software scheduling strategies and existing queue status feedback, without the need for hardware design support such as independent queues for each STA. It is suitable for cost-sensitive but multi-terminal stability requirements in FTTR applications such as gateways and home optical modems, and has good engineering feasibility.
[0066] In some embodiments, the shared communication resources include a packet sending queue shared by each terminal. In this embodiment, each terminal is configured with a packet sending queue quota, which represents the maximum packet sending queue length that the terminal can use. Based on this, see [link to relevant documentation]. Figure 3An exemplary schematic diagram of preset abnormal conditions is shown, wherein the preset abnormal conditions include at least one of the following first to fifth conditions: 310, the first condition is used to indicate abnormal sleep characteristics, indicating that although the terminal is in a low power or inactive state, it is still accumulating a large amount of downlink data in the packet queue of the wireless access device, reflecting that it cannot receive or process the allocated communication resources normally, which may lead to the shared queue resources being ineffectively occupied for a long time.
[0067] Based on this, the first condition may include at least the following decision sub-conditions: The power status under the terminal status dimension indicates that the terminal is in a sleep state, for example, the IEEE 802.11 Power Save mode is activated, or the operating system reports a low power status. Furthermore, the proportion of data to be sent to the terminal under the terminal service statistics dimension in the packet sending queue allocated to the terminal exceeds the preset data threshold. For example, the downlink data frames account for more than 80% of the total capacity of its queue, indicating that there is no uplink response and the downlink continues to accumulate. Furthermore, the length of the packet queue occupied by the terminal under the packet queue status dimension continues to increase within the preset time window, that is, the queue level rises monotonically or the net increment is greater than zero, indicating that its data outgoing rate is much lower than its incoming rate, and there is a lack of receiving capability or protocol stack stagnation.
[0068] 320, the second condition is used to indicate high packet loss and low traffic characteristics, indicating that the terminal exhibits serious transmission unreliability on the wireless link, but its actual service load is extremely low, which does not conform to the normal high packet loss scenario. It is more likely due to protocol stack abnormality, driver failure or application layer deadlock, causing it to continuously try to retransmit a small amount of data but fail to complete effective communication, thus ineffectively occupying air interface and queue resources.
[0069] Based on this, the second condition may include at least the following decision sub-conditions: If the packet loss rate of a terminal under the terminal service statistics dimension is greater than or equal to a preset packet loss threshold (e.g., ≥30%) within a preset time window, and the service traffic is less than or equal to a preset traffic threshold (e.g., ≤10 KB / s), it indicates that there is no substantial data interaction.
[0070] 330, the third condition is used to indicate high packet loss and weak signal characteristics, indicating that the terminal is at the edge of wireless coverage or in a severely interfered environment, and its physical link quality has deteriorated to the point that it is difficult to maintain basic communication. If it is accompanied by high packet loss, it is very likely to cause continuous retransmission, missing ACKs and queue accumulation, which will have a significant negative impact on the system scheduling efficiency.
[0071] Based on this, the third condition may include at least the following sub-conditions: the signal strength under the terminal state dimension is less than or equal to a preset strength threshold; and the packet loss rate of the terminal under the terminal service statistics dimension within a preset time window is greater than or equal to a preset packet loss threshold.
[0072] 340. The fourth condition is used to indicate the characteristic of no traffic for a long time but occupying resources. It means that the terminal has no effective business activities for a long time, but still has a large amount of data to be sent in the packet queue, reflecting that it may have lost its receiving ability (such as application crash, TCP connection false liveness), but is still being pushed data by the upper layer service, causing the buffer resources to be ineffectively locked.
[0073] Based on this, the fourth condition may include at least the following sub-conditions: the change in the number of the terminal's sending and receiving traffic within the preset time window under the terminal service statistics dimension is lower than the preset difference threshold; and the amount of data to be sent currently backed up in the packet queue under the packet queue status dimension is greater than or equal to the preset cache threshold. 350, the fifth condition is used to indicate the characteristics of excessive / extremely high queue occupancy. It means that the terminal's resource consumption of the shared packet sending queue has reached or exceeded the system's tolerable level. Regardless of whether it is in an active state, it may crowd out the scheduling opportunities of other terminals, causing an increase in overall forwarding latency or a decrease in throughput. It is necessary to intervene in a graded manner according to the degree of occupancy.
[0074] Based on this, the fifth condition can at least include the following sub-conditions: the proportion of the packet queue currently occupied by the terminal under the packet queue status dimension relative to the corresponding packet queue quota is greater than or equal to a preset proportion threshold. The preset proportion threshold can include a first proportion threshold and a second proportion threshold. If the proportion of the packet queue currently occupied by the terminal relative to the corresponding packet queue quota is greater than or equal to the first proportion threshold, then it is determined that there is a characteristic of excessive queue occupancy; if the proportion of the packet queue currently occupied by the terminal relative to the corresponding packet queue quota is greater than or equal to the second proportion threshold, then it is determined that there is a characteristic of extremely high queue occupancy.
[0075] In addition, the thresholds involved in the first to fifth conditions mentioned above are not fixed and can be dynamically adjusted during the operation of the wireless access device based on the number of terminals currently connected to the wireless access device, the total traffic volume, the chip packet sending capability, and the system load.
[0076] Optionally, in this embodiment, each terminal is configured with a resource quota, which represents the maximum amount of communication resources that the terminal is allowed to use in the shared communication resources. The resource quota of any terminal can be dynamically adjusted during the scheduling operation that matches the terminal to the comprehensive anomaly score, based on at least one of the following: the terminal's comprehensive anomaly score; the historical number of times the terminal has exhibited deterministic abnormal occupation of shared communication resources within a specified time window; the terminal's signal quality and negotiation rate capability; and the terminal's user type and service priority (e.g., guest terminal, smart home terminal, etc.).
[0077] In this embodiment, the above five preset abnormal conditions are based on typical abnormal modes such as dormant backlog, low traffic high packet loss, weak signal high packet loss, silent queue occupation, and queue overload. This constructs a comprehensive, criterion-clear, and multi-dimensional collaborative abnormal terminal identification method. Each condition requires the joint satisfaction of cross-dimensional features, effectively avoiding misjudgment by a single indicator, thereby providing a reliable basis for subsequent accurate scoring and hierarchical scheduling.
[0078] In one embodiment, to ensure the reliability of critical interactions at the wireless protocol layer, the wireless access device implements differentiated queue management strategies for different types of packets. Specifically, during the allocation of packet queue resources, the system reserves dedicated or higher-priority queue space for management frames (such as beacon frames, probe response frames, authentication frames, association request / association response frames, acknowledgment control frames, etc.). When the overall occupancy level of the shared packet queue approaches full capacity (e.g., exceeding 90%), the scheduler prioritizes the enqueueing permission of management frames, ensuring that management frames receive the minimum queue quota even if data frames are dropped or rate-limited due to resource constraints.
[0079] In this embodiment, this method effectively avoids protocol layer failures such as association failure, authentication timeout, and link interruption caused by the inability to send management frames in a timely manner under high load or abnormal terminal queue congestion scenarios, thereby maintaining the stability of terminal connection and the availability of basic network control functions.
[0080] Corresponding to the embodiments of the aforementioned terminal scheduling method, see [link to relevant documentation]. Figure 4 As shown, this application also provides an embodiment of a terminal scheduling device applied to a wireless access device, the device comprising: The acquisition module 401 is configured to acquire, at the current moment, operational information of each terminal connected to the wireless access device under different statistical dimensions; wherein, the operational information under different statistical dimensions is used to at least represent the behavior of the terminal when using the shared communication resources in the wireless access device; The comprehensive evaluation module 402 is configured to determine the comprehensive anomaly score of the terminal at the current moment based on the matching results of the terminal's operating information under different statistical dimensions and each preset anomaly condition. The adaptive scheduling module 403 is configured to perform a scheduling operation on the terminal based on the comprehensive anomaly score of the terminal, which matches the comprehensive anomaly score; the scheduling operation is used to adjust the terminal's use of shared communication resources in the access device.
[0081] In some embodiments, the shared communication resources include a packet sending queue shared by each terminal; the statistical dimensions include: The terminal status dimension, the operational information under the terminal status dimension is used to describe the operational status of the terminal itself; Terminal service statistics dimension, the operational information under the terminal service statistics dimension is used to characterize the data transmission characteristics of the terminal in service interaction; The packet sending queue status dimension, the operational information under the packet sending queue status dimension, is used to characterize the terminal's resource usage of the shared packet sending queue in the wireless access device.
[0082] In some embodiments, when the comprehensive evaluation module is configured to determine the comprehensive anomaly score of the terminal at the current moment, it includes: The single score determination module is configured to determine the abnormal score of the terminal under each preset abnormal condition based on whether the terminal's operating information under different statistical dimensions contains features that meet the preset abnormal condition. The comprehensive score determination module is configured to determine the comprehensive anomaly score of the terminal at the current moment based on the anomaly scores of the terminal under various preset anomaly conditions.
[0083] In some embodiments, when the single-score determination module is configured to determine an abnormal score for the terminal under the preset abnormal condition, it includes: If the terminal exhibits features that meet the preset abnormal conditions in its operational information under different statistical dimensions, then the terminal's abnormal score under the preset abnormal conditions is determined to be a first value; the first value is the abnormal score configured for the preset abnormal conditions; otherwise, the terminal's abnormal score under the preset abnormal conditions is determined to be a second value; the second value indicates that there is no preset benchmark value for features that meet the preset abnormal conditions.
[0084] In some embodiments, when the comprehensive scoring determination module is configured to determine the comprehensive anomaly score of the terminal at the current moment based on the anomaly scores of the terminal under various preset anomaly conditions, the following steps are included: The current scoring determination module is configured to perform a weighted calculation based on the abnormal scores of the terminal under each preset abnormal condition to determine the incremental abnormal score of the terminal at the current moment. The benchmark score determination module is configured to obtain the historical comprehensive anomaly score of the terminal at the previous moment, and perform aging processing on the historical comprehensive anomaly score based on a preset time decay strategy to obtain the decayed benchmark score; wherein, the time decay strategy is configured to make the anomaly score decrease with time according to a preset slope. The comprehensive anomaly score determination module is configured to determine the comprehensive anomaly score of the terminal at the current moment based on the incremental anomaly score and the baseline score.
[0085] In some embodiments, each terminal is configured with a packet sending queue quota, which represents the maximum packet sending queue length that the terminal can use; the preset abnormal conditions include at least one of the following first to fifth conditions: The first condition includes: the power status under the terminal status dimension indicates that the terminal is in a sleep state; and the proportion of data to be sent to the terminal under the terminal service statistics dimension in the packet sending queue allocated to the terminal exceeds a preset data threshold; and the length of the packet sending queue occupied by the terminal under the packet sending queue status dimension continues to increase within a preset time window. The second condition includes: the packet loss rate of the terminal under the terminal service statistics dimension within the preset time window is greater than or equal to the preset packet loss threshold, and the service traffic is less than or equal to the preset traffic threshold. The third condition includes: the signal strength under the terminal status dimension is less than or equal to a preset strength threshold; and the packet loss rate of the terminal under the terminal service statistics dimension within a preset time window is greater than or equal to a preset packet loss threshold. The fourth condition includes: the change in the number of the terminal's sent and received traffic within a preset time window under the terminal service statistics dimension is lower than a preset difference threshold; and the amount of data to be sent currently backed up in the packet queue under the packet queue status dimension is greater than or equal to a preset cache threshold. The fifth condition includes: the proportion of the packet queue currently occupied by the terminal under the packet queue status dimension relative to the corresponding packet queue quota is greater than or equal to a preset proportion threshold.
[0086] In some embodiments, the adaptive scheduling module is configured to perform a scheduling operation on the terminal that matches the comprehensive anomaly score, including: The first scheduling module is configured to perform a strong intervention scheduling operation on the terminal that matches the degree of abnormality based on the degree of abnormality of the terminal's comprehensive abnormality score if the terminal's comprehensive abnormality score indicates that the terminal has a deterministic abnormal occupation of the shared communication resources. The second scheduling module is configured to perform a lightweight scheduling operation on the terminal if the terminal's comprehensive anomaly score indicates that the terminal has a potential tendency to abnormally occupy the shared communication resources.
[0087] In some embodiments, each terminal is allocated a resource quota; the resource quota represents the communication resources available to the terminal in the shared communication resources; after performing a scheduling operation on the terminal matching the comprehensive anomaly score, the apparatus further includes: The water level acquisition module is configured to acquire the current overall occupied water level of the shared communication resources in the wireless access device; A high-water-level processing module is configured to, if it detects that the current overall occupied water level exceeds a preset high-water-level threshold, execute a resource restriction policy on terminals other than the normal terminals while maintaining the resource quota allocated to normal terminals; wherein, the normal terminals include each terminal whose comprehensive anomaly score indicates that the terminal is currently in a normal usage state of the shared communication resources; the resource restriction policy is used to reduce the current overall occupied water level of the shared communication resources.
[0088] The specific implementation process of the functions and roles of each unit in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0089] This application also provides an electronic device, the structural schematic diagram of which is shown below. Figure 5 As shown, the electronic device 500 includes at least one processor 501, a memory 502, and a bus 503. At least one processor 501 is electrically connected to the memory 502. The memory 502 is configured to store at least one computer-executable instruction, and the processor 501 is configured to execute the at least one computer-executable instruction to perform the steps of any terminal scheduling method provided in any embodiment or optional implementation of this application.
[0090] Furthermore, the processor 501 can be an FPGA (Field-Programmable Gate Array) or other devices with logic processing capabilities, such as an MCU (Microcontroller Unit) or a CPU (Central Processing Unit).
[0091] This application also provides another readable storage medium storing a computer program that, when executed by a processor, implements the steps of any terminal scheduling method provided in any embodiment or optional implementation of this application.
[0092] The readable storage media provided in this application include, but are not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic cards, or optical cards. In other words, readable storage media include any medium by which a device (e.g., a computer) stores or transmits information in a readable form.
[0093] The terminal scheduling method, apparatus, device, and readable storage medium of this application embodiment can be used to schedule various terminals in a WLAN network to reduce the long-term invalid occupation of shared communication resources by abnormal terminals. It can be applied to various networking methods such as traditional access networks and all-optical access networks, including but not limited to FTTR fiber-to-the-room networking scenarios.
[0094] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A terminal scheduling method, characterized in that, Applied to wireless access devices, the method includes: For each terminal that has been connected to the wireless access device, the operating information of the terminal under different statistical dimensions at the current time is collected; wherein, the operating information under different statistical dimensions is used to at least represent the behavior of the terminal when using the shared communication resources in the wireless access device; Based on the matching results of the terminal's operating information under different statistical dimensions and each preset abnormal condition, the comprehensive abnormal score of the terminal at the current moment is determined. Based on the comprehensive anomaly score of the terminal, a scheduling operation matching the comprehensive anomaly score is performed on the terminal; the scheduling operation is used to adjust the terminal's use of shared communication resources in the access device.
2. The method according to claim 1, characterized in that, The shared communication resources include packet sending queues shared by all terminals; the statistical dimensions include: The terminal status dimension, the operational information under the terminal status dimension is used to describe the operational status of the terminal itself; Terminal service statistics dimension, the operational information under the terminal service statistics dimension is used to characterize the data transmission characteristics of the terminal in service interaction; The packet sending queue status dimension, the operational information under the packet sending queue status dimension, is used to characterize the terminal's resource usage of the shared packet sending queue in the wireless access device.
3. The method according to claim 1, characterized in that, The determination of the terminal's comprehensive anomaly score at the current moment includes: For each preset abnormal condition, based on whether the terminal's operating information under different statistical dimensions contains features that meet the preset abnormal condition, the abnormal score of the terminal under that preset abnormal condition is determined. Based on the anomaly scores of the terminal under various preset abnormal conditions, the comprehensive anomaly score of the terminal at the current moment is determined.
4. The method according to claim 3, characterized in that, Determining the abnormal score of the terminal under the preset abnormal condition includes: If the terminal exhibits features that meet the preset abnormal conditions in its operational information under different statistical dimensions, then the abnormal score of the terminal under the preset abnormal conditions is determined to be a first value; the first value is the abnormal score configured for the preset abnormal conditions. Otherwise, the abnormal score of the terminal under the preset abnormal condition is determined to be the second value; the second value indicates that there is no preset benchmark value that meets the characteristics of the preset abnormal condition.
5. The method according to claim 3, characterized in that, The step of determining the comprehensive anomaly score of the terminal at the current moment based on the anomaly scores of the terminal under various preset anomaly conditions includes: The incremental anomaly score of the terminal at the current moment is determined by weighted calculation based on the anomaly scores of the terminal under each preset abnormal condition. The terminal obtains its historical comprehensive anomaly score at the previous moment, and ages the historical comprehensive anomaly score based on a preset time decay strategy to obtain a decayed baseline score; wherein, the time decay strategy is configured to make the anomaly score decrease with time at a preset slope. Based on the incremental anomaly score and the baseline score, the comprehensive anomaly score of the terminal at the current moment is determined.
6. The method according to claim 2, characterized in that, Each terminal is configured with a packet sending queue quota, which represents the maximum packet sending queue length that the terminal can use; The preset abnormal conditions include at least one of the following first to fifth conditions: The first condition includes: the power status under the terminal status dimension indicates that the terminal is in a sleep state; and the proportion of data to be sent to the terminal under the terminal service statistics dimension in the packet sending queue allocated to the terminal exceeds a preset data threshold; and the length of the packet sending queue occupied by the terminal under the packet sending queue status dimension continues to increase within a preset time window. The second condition includes: the packet loss rate of the terminal under the terminal service statistics dimension within the preset time window is greater than or equal to the preset packet loss threshold, and the service traffic is less than or equal to the preset traffic threshold. The third condition includes: the signal strength under the terminal status dimension is less than or equal to a preset strength threshold; and the packet loss rate of the terminal under the terminal service statistics dimension within a preset time window is greater than or equal to a preset packet loss threshold. The fourth condition includes: the change in the number of the terminal's sent and received traffic within a preset time window under the terminal service statistics dimension is lower than a preset difference threshold; and the amount of data to be sent currently backed up in the packet queue under the packet queue status dimension is greater than or equal to a preset cache threshold. The fifth condition includes: the proportion of the packet queue currently occupied by the terminal under the packet queue status dimension relative to the corresponding packet queue quota is greater than or equal to a preset proportion threshold.
7. The method according to claim 1, characterized in that, The step of performing a scheduling operation on the terminal based on the comprehensive anomaly score includes: If the comprehensive anomaly score of the terminal indicates that the terminal has a deterministic abnormal occupation of the shared communication resources, then based on the degree of anomaly to which the comprehensive anomaly score of the terminal belongs, a strong intervention scheduling operation matching the degree of anomaly is performed on the terminal. If the terminal's comprehensive anomaly score indicates that the terminal has a potential tendency to abnormally occupy the shared communication resources, then a lightweight scheduling operation is performed on the terminal.
8. The method according to claim 1 or 7, characterized in that, Each terminal is allocated a resource quota; the resource quota represents the communication resources that the terminal can use in the shared communication resources; after performing a scheduling operation on the terminal matching the comprehensive anomaly score, the method further includes: Obtain the current overall occupancy level of shared communication resources in the wireless access device; If the current overall occupancy level is detected to exceed a preset high occupancy threshold, a resource restriction policy is implemented for terminals other than the normal terminals while maintaining the resource quota allocated to normal terminals. The normal terminals include all terminals whose comprehensive anomaly score indicates that they are currently in normal use of the shared communication resources. The resource restriction policy is used to reduce the current overall occupancy level of the shared communication resources.
9. A terminal scheduling device, characterized in that, Applied to wireless access devices, the device includes: The acquisition module is configured to acquire operational information of each terminal connected to the wireless access device at the current moment under different statistical dimensions; wherein, the operational information under different statistical dimensions is used to at least represent the behavior of the terminal when using the shared communication resources in the wireless access device; The comprehensive evaluation module is configured to determine the comprehensive anomaly score of the terminal at the current moment based on the matching results of the terminal's operating information under different statistical dimensions and various preset anomaly conditions. An adaptive scheduling module is configured to perform a scheduling operation on the terminal based on the terminal's comprehensive anomaly score; the scheduling operation is used to adjust the terminal's use of shared communication resources in the access device.
10. An electronic device, characterized in that, include: Memory, processor; The memory is used to store computer programs; The processor is configured to invoke the computer program to implement the method as described in any one of claims 1-8.
11. A readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-8.