Wireless network quality evaluation method and device based on active and passive cooperative measurement

Through active and passive collaborative measurement methods, the round-trip delay and signal strength of data packets are analyzed, which solves the problems of signal fading and interference in wireless communication networks and improves the agility and reliability of wireless network quality assessment.

CN120676388APending Publication Date: 2025-09-19THE 32008TH UNIT OF THE PEOPLES LIBERATION ARMY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510661377.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

Signal fading and interference exist in wireless communication networks, which leads to network transmission challenges when intelligent agents communicate, especially in mobile edge computing environments where it is difficult to effectively evaluate the quality of wireless networks.

Method used

A method based on active and passive collaborative measurement is adopted. The network interface monitoring module and the wireless interface monitoring module are used to capture data packets, analyze the round-trip delay and signal strength data, and use the heartbeat detection and calculation evaluation module to calculate the wireless network quality within the evaluation period.

Benefits of technology

It enhances the intelligent twin's ability to perceive the wireless communication network environment of the connected intelligent agent, and improves the agility and reliability of wireless network quality assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120676388A_ABST
    Figure CN120676388A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless network quality evaluation method and device based on active and passive cooperative measurement. The method comprises the following steps: determining preset parameters; initializing shared data resources; determining an agent IP address based on the agent hardware address; the network interface monitoring module circularly monitors a network interface capture data packet of the wireless network, takes round-trip delay data as to-be-evaluated data, and updates shared data resources when a statistical period arrives; the wireless interface monitoring module circularly monitors a wireless interface capture data packet of a wireless network, takes signal strength data as to-be-evaluated data, and updates shared data resources; and the heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated in the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated. According to the invention, the sensing capability of the wireless communication network environment where the network access agent is located is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of wireless communication network technology, and in particular relates to a wireless network quality assessment method and device based on active and passive collaborative measurement. Background Art

[0002] Intelligent agents, including drones, unmanned ground vehicles, unmanned boats, and unmanned underwater vehicles, are the product of artificial intelligence, robotics, and real-time control and decision-making systems. They are flexible, efficient, reliable, and highly adaptable. By designing intelligent perception, interaction, collaboration, and control methods for multi-agent systems, they develop strong autonomy and self-governance, enabling them to independently complete diverse tasks in complex environments.

[0003] Wireless communication networks are the foundation of communication and networking among intelligent agents. They transmit information over the air using electromagnetic waves, providing flexible, efficient, and reliable connectivity for intelligent agents. Wireless network edge devices, or communication relays, provide network access for intelligent agents, enabling them to communicate with other intelligent agents or computers. These include wireless base stations, wireless gateways, wireless routers, communication satellites, aircraft with communication relay capabilities, ground stations, ships, intelligent agents, and other wireless communication network platforms and devices that perform functions such as sending, receiving, forwarding, routing, and signal relaying network messages within wireless networks.

[0004] However, due to the open nature of wireless channel space, electromagnetic waves experience significant fading and interference when propagating through the air. When communicating with agents, wireless signal fading includes not only large-scale signal strength fading over long distances, but also slow fading due to path loss and shadow fading caused by obstructions. Furthermore, multipath propagation, where wireless signals travel along multiple paths through reflection, scattering, and diffraction, can also occur. In particular, different propagation paths have different propagation distances, arrival times, and phases, resulting in dramatic signal variations. The scattering environment of multipath propagation, combined with the mobility of agents, also causes dispersion in the wireless channel in time, frequency, and angle. Different agents and wireless devices can also interfere with each other during communication. This interference includes interference from signals transmitted by other communicating devices on an agent's receiver, interference between links when the same agent's transmitter simultaneously transmits signals to different receivers, interference from the same agent's transmitter on its own receiver when the agent simultaneously transmits and receives signals (self-interference), and background noise (white noise) outside the agent's communication band. To adapt to electromagnetic wave fading and interference, wireless communications employ different network protocols for different scenarios. These wireless communication-based network protocols differ significantly from those based on wired communications. While modern wireless communications widely utilize various multiplexing and multiple access technologies, beamforming and smart antenna technologies, spread spectrum and frequency hopping technologies, coding and modulation technologies, and spectrum resource allocation technologies to enhance network capacity, bandwidth, coverage, and reliability, their varying channel contention rules, data transmission methods, and packet loss and retransmission mechanisms significantly impact the network layer, resulting in varying characteristic distributions and jitter in round-trip delay and packet loss rate.

[0005] Fading and interference in wireless communications, as well as the impact of different wireless network protocols on network transmission, pose real challenges to agent-oriented mobile edge computing. To address this challenge, an agile and reliable assessment method is needed at the edge of wireless networks and communication relay carriers to enhance the agent's perception of the wireless communication network environment. Summary of the Invention

[0006] The present application provides a wireless network quality assessment method and device based on active and passive collaborative measurement to solve the above technical problems.

[0007] In a first aspect, a wireless network quality assessment method based on active and passive collaborative measurement is disclosed, the method comprising:

[0008] Step 1: Determine the preset parameters, including the agent's hardware address, the network interface name and wireless interface name of the wireless network communicating with the agent, the statistical period, and the evaluation period; construct a network interface monitoring module, a wireless interface monitoring module, and a heartbeat detection and calculation evaluation module;

[0009] Initialize shared data resources, which are data resources generated and managed by the network interface monitoring module, the wireless interface monitoring module, and the heartbeat detection and calculation evaluation module; determine the agent IP address based on the agent hardware address;

[0010] Step 2: The network interface monitoring module cyclically monitors the network interface of the wireless network and uses the agent hardware address as a filter to cyclically capture data packets at the network interface at the edge of the wireless network or the communication relay carrier. The module parses the data packets according to their protocol type, obtains the round-trip delay, uses the round-trip delay data as the data to be evaluated, and updates the shared data resource when the statistical period arrives.

[0011] The wireless interface monitoring module cyclically monitors the wireless interface of the wireless network, uses the intelligent agent hardware address as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the wireless interface; parses the data packets to determine the signal strength of the wireless network, uses the signal strength data as the data to be evaluated, and updates the shared data resources;

[0012] The heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated.

[0013] Preferably, the preset parameters also include the number of heartbeat packets; the shared data resources include TCP data, ICMP data, round-trip delay data, signal strength data, and a mutual exclusion lock for multi-threaded resource access.

[0014] Preferably, the data packet is parsed according to the protocol type of the data packet to obtain the round-trip delay, the round-trip delay data is used as the data to be evaluated, and the shared data resource is updated when the statistical period arrives, including:

[0015] When the protocol type of the data packet is TCP, the round-trip delay is obtained based on the sequence number and acknowledgment number fields in the segment header of different data transmission directions. The round-trip delay, packet loss count, and timestamp are combined into a structure as the round-trip delay data. The shared data resource is updated when the statistical period arrives.

[0016] When the protocol type of the data packet is ICMP, the sequence number field of the echo and echo reply type message headers of different data transmission directions is used to obtain the round-trip delay. The round-trip delay, packet loss count, and timestamp are combined into a structure as the round-trip delay data. The shared data resource is updated when the statistical period expires.

[0017] When the protocol type of the data packet is ARP protocol, the IP address of the intelligent entity is updated based on the ARP protocol.

[0018] Preferably, parsing the data packet to determine the signal strength of the wireless network, using the signal strength data as data to be evaluated, and updating the shared data resource includes:

[0019] The air interface protocol is used to parse the data packet to obtain the received signal strength, and the signal strength and timestamp are combined into a structure as signal strength data. The shared data resource is updated when the statistical period arrives.

[0020] Preferably, the heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated, wherein:

[0021] The heartbeat detection and calculation evaluation module updates the shared data resources at the arrival of each evaluation cycle and determines the data to be evaluated within the statistical cycle according to the statistical cycle;

[0022] When there is no round-trip delay data in the data to be evaluated within the statistical period, the heartbeat detection and calculation evaluation module sends a preset number of ICMP echo heartbeat packets to the agent's IP address before the next evaluation period arrives;

[0023] If round-trip delay data exists in the data to be evaluated within the statistical period, heartbeat detection and calculation evaluation are performed. The calculation evaluation formula is as follows:

[0024]

[0025] Where i is the evaluation cycle number, v i is the quality of the wireless network in the evaluation period numbered i, n is the number of round-trip delay data in the statistical period, j is the number of round-trip delay data in the statistical period, t j is the round trip delay corresponding to the round trip delay data numbered j, T is the preset maximum round trip delay, u j is the packet loss count corresponding to the round-trip delay data numbered j, m is the number of signal strength data in the statistical period, k is the signal strength data number in the statistical period, s k is the signal strength corresponding to the signal strength data numbered k, and S is the minimum signal strength.

[0026] In a second aspect, a wireless network quality assessment device based on active and passive collaborative measurement is disclosed, the device comprising:

[0027] Initialization module: configured to determine preset parameters, including the agent's hardware address, the network interface name and wireless interface name of the wireless network communicating with the agent, the statistical period and the evaluation period; construct a network interface monitoring module, a wireless interface monitoring module, and a heartbeat detection and calculation evaluation module;

[0028] Initialize shared data resources, which are data resources generated and managed by the network interface monitoring module, the wireless interface monitoring module, and the heartbeat detection and calculation evaluation module; determine the agent IP address based on the agent hardware address;

[0029] Evaluation module: This module is configured as a network interface monitoring module that cyclically monitors the network interface of the wireless network. It uses the hardware address of the intelligent agent as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the network interface. It parses the data packets according to their protocol type, obtains the round-trip delay, uses the round-trip delay data as the data to be evaluated, and updates the shared data resources when the statistical period arrives.

[0030] The wireless interface monitoring module cyclically monitors the wireless interface of the wireless network, uses the intelligent agent hardware address as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the wireless interface; parses the data packets to determine the signal strength of the wireless network, uses the signal strength data as the data to be evaluated, and updates the shared data resources;

[0031] The heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated.

[0032] In a third aspect, an electronic device is disclosed, comprising:

[0033] at least one processor; and

[0034] a memory communicatively connected to the at least one processor; wherein,

[0035] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method described above.

[0036] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is disclosed, wherein the computer instructions are used to cause the computer to execute the method as described above.

[0037] This application proposes a wireless network quality assessment method and device based on active and passive collaborative measurement, which is applied to the edge of a wireless network or a communication relay carrier that directly communicates with an intelligent agent. It serves as the wireless network perception of an intelligent twin of the networked intelligent agent on the edge or communication relay carrier. When the assessment cycle is reached, the wireless network quality of the networked intelligent agent on the edge of the wireless network or the communication relay carrier can be assessed to enhance the intelligent twin's perception of the wireless communication network environment where the networked intelligent agent is located. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A flowchart of a wireless network quality assessment method based on active and passive collaborative measurement is provided;

[0039] Figure 2 The figure is an interactive diagram of a wireless network quality assessment method based on active and passive collaborative measurement;

[0040] Figure 3 Schematic diagram of the architecture of a wireless network quality assessment method based on active and passive collaborative measurement;

[0041] Figure 4 The figure is a structural diagram of a wireless network quality assessment device based on active and passive collaborative measurement. DETAILED DESCRIPTION

[0042] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0043] like Figure 1-Figure 2 As shown, the present application provides a wireless network quality assessment method based on active and passive collaborative measurement, the method comprising:

[0044] Step 1: Determine the preset parameters, including the agent's hardware address, the network interface name and wireless interface name of the wireless network communicating with the agent, the statistical period, and the evaluation period; construct a network interface monitoring module, a wireless interface monitoring module, and a heartbeat detection and calculation evaluation module;

[0045] Initialize shared data resources, which are data resources generated and managed by the network interface monitoring module, the wireless interface monitoring module, and the heartbeat detection and calculation evaluation module; determine the agent IP address based on the agent hardware address;

[0046] Step 2: The network interface monitoring module cyclically monitors the network interface of the wireless network and uses the agent hardware address as a filter to cyclically capture data packets at the network interface at the edge of the wireless network or the communication relay carrier. The module parses the data packets according to their protocol type, obtains the round-trip delay, uses the round-trip delay data as the data to be evaluated, and updates the shared data resource when the statistical period arrives.

[0047] The wireless interface monitoring module cyclically monitors the wireless interface of the wireless network, uses the intelligent agent hardware address as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the wireless interface; parses the data packets to determine the signal strength of the wireless network, uses the signal strength data as the data to be evaluated, and updates the shared data resources;

[0048] The heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated.

[0049] Furthermore, the preset parameters also include the number of heartbeat packets; the shared data resources include but are not limited to TCP data, ICMP data, round-trip delay data, signal strength data, and mutual exclusion locks for multi-threaded resource access.

[0050] The step 2, parsing the data packet according to the protocol type of the data packet, obtaining the round-trip delay, using the round-trip delay data as the data to be evaluated, and updating the shared data resource when the statistical period arrives, includes:

[0051] When the protocol type of the data packet is TCP, the round-trip delay is obtained based on the sequence number and acknowledgment number fields in the segment header of different data transmission directions. The round-trip delay, packet loss count, and timestamp are combined into a structure as the round-trip delay data. The shared data resource is updated when the statistical period arrives.

[0052] When the protocol type of the data packet is ICMP, the sequence number field of the echo and echo reply type message headers of different data transmission directions is used to obtain the round-trip delay. The round-trip delay, packet loss count, and timestamp are combined into a structure as the round-trip delay data. The shared data resource is updated when the statistical period expires.

[0053] When the protocol type of the data packet is ARP protocol, the IP address of the intelligent entity is updated based on the ARP protocol.

[0054] The step 2, parsing the data packet to determine the signal strength of the wireless network, using the signal strength data as data to be evaluated, and updating the shared data resource, includes:

[0055] The air interface protocol is used to parse the data packet to obtain the received signal strength, and the signal strength and timestamp are combined into a structure as signal strength data. The shared data resource is updated when the statistical period arrives.

[0056] In step 2, the heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated, wherein:

[0057] The heartbeat detection and calculation evaluation module updates the shared data resources at the arrival of each evaluation cycle and determines the data to be evaluated within the statistical cycle according to the statistical cycle;

[0058] When there is no round-trip delay data in the data to be evaluated within the statistical period, the heartbeat detection and calculation evaluation module sends a preset number of ICMP echo heartbeat packets to the agent's IP address before the next evaluation period arrives;

[0059] If round-trip delay data exists in the data to be evaluated within the statistical period, heartbeat detection and calculation evaluation are performed. The calculation evaluation formula is as follows:

[0060]

[0061] Where i is the evaluation cycle number, v i is the quality of the wireless network in the evaluation period numbered i, n is the number of round-trip delay data in the statistical period, j is the number of round-trip delay data in the statistical period, t j is the round trip delay corresponding to the round trip delay data numbered j, T is the preset maximum round trip delay, u j is the packet loss count corresponding to the round-trip delay data numbered j, m is the number of signal strength data in the statistical period, k is the signal strength data number in the statistical period, s k is the signal strength corresponding to the signal strength data numbered k, and S is the minimum signal strength.

[0062] like Figure 3 As shown, the present application provides a specific embodiment of a wireless network quality assessment method based on active and passive collaborative measurement.

[0063] The method is deployed on the edge of a wireless network and a communication relay carrier, and the object of evaluation is an intelligent agent connected to the network through the wireless network edge or the communication relay carrier.

[0064] S1, receiving preset parameters, including the intelligent agent hardware address, the name of the network interface for communicating with the intelligent agent, the name of the wireless interface, a longer statistical cycle, a shorter evaluation cycle, and the number of heartbeat packets;

[0065] S2, creating and initializing shared data resources, including access resources managed and maintained by each module, including but not limited to TCP data elements, ICMP data elements, delay and packet loss elements, signal strength data elements, and mutex locks for multi-threaded resource access;

[0066] S3, setting the agent IP address according to the agent hardware address;

[0067] S4, creating and running a network interface monitoring module, using the agent hardware address as a filter to loop and capture data packets at the network interface on the wireless network edge or communication relay carrier. For the captured network interface data packets, enter S41 for protocol parsing and processing. After the parsing is completed, return to the loop and wait for the next data packet to be captured;

[0068] S41, protocol parsing first determines the data transmission direction through the Ethernet protocol, and then determines the data packet protocol type; if it is the IP protocol, further parsing is performed based on the transport layer protocol type; if it is the TCP protocol, the process proceeds to S411 for TCP protocol parsing and processing; if it is the ICMP protocol, the process proceeds to S412 for ICMP protocol parsing and processing; if it is the ARP protocol, the process proceeds to S413 for ARP protocol parsing and processing;

[0069] S411, using the sequence number and acknowledgment number fields in the TCP segment header of different data transmission directions to obtain the round-trip delay, updating the shared data resource according to the preset statistical period, and recording the round-trip delay, packet loss count and timestamp into a structure in the delay and packet loss factor;

[0070] S412, using the sequence number field of the ICMP echo and echo reply type message headers in different data transmission directions to obtain the round-trip delay, updating the shared data resource according to the preset statistical period, and recording the round-trip delay, packet loss count and timestamp into a structure in the delay and packet loss element;

[0071] S413, using the ARP protocol to update the IP address of the intelligent agent;

[0072] S5: Create and run a wireless interface monitoring module. Use the agent hardware address as a filter on the wireless network edge or communication relay carrier to loop and capture data packets on the wireless interface. For the captured wireless interface data packets, enter S51 and use the air interface protocol corresponding to the wireless interface to parse and obtain the received signal strength. The received signal strength and timestamp are combined into a structure and recorded in the signal strength data element. After the parsing process is completed, return to the loop and wait for the next data packet to be captured.

[0073] S6, creating and running a heartbeat detection and calculation evaluation module, performing heartbeat detection and calculation evaluation according to a preset evaluation cycle; when each evaluation cycle timing is reached, entering S61;

[0074] S61 updates shared data resources according to a preset statistical period, including TCP data elements, ICMP data elements, signal strength data elements, and delay and packet loss elements, and then enters S62;

[0075] S62: Calculate the wireless network quality index within the period according to the following method:

[0076] Assume that when the i-th evaluation period arrives, there are n round-trip delay and packet loss count values ​​in the delay and packet loss factors, including {(t1,u1),(t2,u2),…,(t n ,u n )}, where the jth element (t j ,u j), t j is the round trip delay in sec, u j is the packet loss count; the signal strength data element has m signal strength values, including {s1,s2,…,s k}, the unit is dBm, the maximum round trip delay is preset to T, and the minimum signal strength is S, then the wireless network quality index within the period is calculated according to function (1), and after the calculation result is submitted to the intelligent twin, enter S63;

[0077] S63, heartbeat detection is performed based on the data collected during the evaluation cycle. If no round-trip delay data is collected during the previous evaluation cycle, a preset number of ICMP echo heartbeat packets are sent to the agent's IP address in the next evaluation cycle. After the sending is completed, the process returns to the loop established in S6 and waits for the next evaluation cycle to arrive.

[0078] S7, wait for all modules to finish running;

[0079] S8, clean up and recycle shared data resources.

[0080] like Figure 4 As shown, the present application provides a wireless network quality assessment device based on active and passive collaborative measurement, the device comprising:

[0081] Initialization module: configured to determine preset parameters, including the agent's hardware address, the network interface name and wireless interface name of the wireless network communicating with the agent, the statistical period and the evaluation period; construct a network interface monitoring module, a wireless interface monitoring module, and a heartbeat detection and calculation evaluation module;

[0082] Initialize shared data resources, which are data resources generated and managed by the network interface monitoring module, the wireless interface monitoring module, and the heartbeat detection and calculation evaluation module; determine the agent IP address based on the agent hardware address;

[0083] Evaluation module: This module is configured as a network interface monitoring module that cyclically monitors the network interface of the wireless network. It uses the hardware address of the intelligent agent as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the network interface. It parses the data packets according to their protocol type, obtains the round-trip delay, uses the round-trip delay data as the data to be evaluated, and updates the shared data resources when the statistical period arrives.

[0084] The wireless interface monitoring module cyclically monitors the wireless interface of the wireless network, uses the intelligent agent hardware address as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the wireless interface; parses the data packets to determine the signal strength of the wireless network, uses the signal strength data as the data to be evaluated, and updates the shared data resources;

[0085] The heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated.

[0086] In this application, in addition to the original sending, receiving, forwarding, routing and signal relay functional modules of the wireless network edge device and communication relay device, the wireless network quality assessment device incrementally deploys a network interface monitoring module, a wireless interface monitoring module, a heartbeat detection and calculation evaluation module based on active and passive collaborative measurement.

[0087] The above embodiments are intended only to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments may be modified or some or all of the technical features thereof may be replaced with equivalents, and such modifications or replacements do not deviate from the essence of the corresponding technical solutions within the scope of the technical solutions of the embodiments of the present application.

Claims

1. A wireless network quality assessment method based on active and passive collaborative measurement, characterized in that: Methods include: Step 1: Determine the preset parameters, including the agent's hardware address, the network interface name and wireless interface name of the wireless network communicating with the agent, the statistical period, and the evaluation period; construct a network interface monitoring module, a wireless interface monitoring module, and a heartbeat detection and calculation evaluation module; Initialize shared data resources, which are data resources generated and managed by the network interface monitoring module, the wireless interface monitoring module, and the heartbeat detection and calculation evaluation module; determine the agent IP address based on the agent hardware address; Step 2: The network interface monitoring module cyclically monitors the network interface of the wireless network and uses the agent hardware address as a filter to cyclically capture data packets at the network interface at the edge of the wireless network or the communication relay carrier. The module parses the data packets according to their protocol type, obtains the round-trip delay, uses the round-trip delay data as the data to be evaluated, and updates the shared data resource when the statistical period arrives. The wireless interface monitoring module cyclically monitors the wireless interface of the wireless network, uses the intelligent agent hardware address as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the wireless interface; parses the data packets to determine the signal strength of the wireless network, uses the signal strength data as the data to be evaluated, and updates the shared data resources; The heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated.

2. The method according to claim 1, wherein The preset parameters also include the number of heartbeat packets; the shared data resources include TCP data, ICMP data, round-trip delay data, signal strength data, and a mutual exclusion lock for multi-threaded resource access.

3. The method according to claim 1, wherein Parse the data packet according to its protocol type, obtain the round-trip delay, use the round-trip delay data as the data to be evaluated, and update the shared data resources when the statistical period arrives, including: When the protocol type of the data packet is TCP, the round-trip delay is obtained based on the sequence number and acknowledgment number fields in the segment header of different data transmission directions. The round-trip delay, packet loss count, and timestamp are combined into a structure as the round-trip delay data. The shared data resource is updated when the statistical period arrives. When the protocol type of the data packet is ICMP, the sequence number field of the echo and echo reply type message headers of different data transmission directions is used to obtain the round-trip delay. The round-trip delay, packet loss count, and timestamp are combined into a structure as the round-trip delay data. The shared data resource is updated when the statistical period expires. When the protocol type of the data packet is ARP protocol, the IP address of the intelligent entity is updated based on the ARP protocol.

4. The method according to claim 1, wherein Parse the data packet to determine the signal strength of the wireless network, use the signal strength data as the data to be evaluated, and update the shared data resource, including: The air interface protocol is used to parse the data packet to obtain the received signal strength, and the signal strength and timestamp are combined into a structure as signal strength data. The shared data resource is updated when the statistical period arrives.

5. The method according to claim 1, wherein The heartbeat detection and calculation evaluation module updates the shared data resource at the arrival of each evaluation period, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network for the evaluation period based on the data to be evaluated, wherein: The heartbeat detection and calculation evaluation module updates the shared data resources at the arrival of each evaluation cycle and determines the data to be evaluated within the statistical cycle according to the statistical cycle; When there is no round-trip delay data in the data to be evaluated within the statistical period, the heartbeat detection and calculation evaluation module sends a preset number of ICMP echo heartbeat packets to the agent's IP address before the next evaluation period arrives; If round-trip delay data exists in the data to be evaluated within the statistical period, heartbeat detection and calculation evaluation are performed. The calculation evaluation formula is as follows: Where i is the evaluation cycle number, v i is the quality of the wireless network in the evaluation period numbered i, n is the number of round-trip delay data in the statistical period, j is the number of round-trip delay data in the statistical period, t j is the round trip delay corresponding to the round trip delay data numbered j, T is the preset maximum round trip delay, u j is the packet loss count corresponding to the round-trip delay data numbered j, m is the number of signal strength data in the statistical period, k is the signal strength data number in the statistical period, s k is the signal strength corresponding to the signal strength data numbered k, and S is the minimum signal strength.

6. A wireless network quality assessment device based on active and passive collaborative measurement, characterized in that: The device comprises: Initialization module: configured to determine preset parameters, including the agent's hardware address, the network interface name and wireless interface name of the wireless network communicating with the agent, the statistical period and the evaluation period; construct a network interface monitoring module, a wireless interface monitoring module, and a heartbeat detection and calculation evaluation module; Initialize shared data resources, which are data resources generated and managed by the network interface monitoring module, the wireless interface monitoring module, and the heartbeat detection and calculation evaluation module; determine the agent IP address based on the agent hardware address; Evaluation module: This module is configured as a network interface monitoring module that cyclically monitors the network interface of the wireless network. It uses the hardware address of the intelligent agent as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the network interface. It parses the data packets according to their protocol type, obtains the round-trip delay, uses the round-trip delay data as the data to be evaluated, and updates the shared data resources when the statistical period arrives. The wireless interface monitoring module cyclically monitors the wireless interface of the wireless network, uses the intelligent agent hardware address as a filter at the edge of the wireless network or the communication relay carrier to cyclically capture data packets at the wireless interface; parses the data packets to determine the signal strength of the wireless network, uses the signal strength data as the data to be evaluated, and updates the shared data resources; The heartbeat detection and calculation evaluation module updates the shared data resource when each evaluation period arrives, determines the data to be evaluated within the statistical period according to the statistical period, and determines the quality of the wireless network in the evaluation period based on the data to be evaluated.

7. An electronic device, characterized in that: The device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.