Communication method, STA device, AP device, electronic device and storage medium

By having the STA device actively acquire QoS parameters and send QoS mapping rules, the STA device and AP device negotiate user priority, which solves the latency problem of gaming services in wireless access point devices and improves the gaming experience.

CN120935665APending Publication Date: 2025-11-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410566004.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

In wireless access point devices that meet the WiFi 6 and WiFi 7 standards, the data streams of low-latency services such as gaming experience experience increased transmission latency due to mapping to AC_BE (TID is 0), making fine-grained mapping impossible and affecting the gaming experience.

Method used

The STA device actively obtains the QoS parameters of the target data stream and sends QoS mapping rules to the AP device to indicate the expected user priority in the mirrored stream classification service MSCS. The AP device adjusts the mapping according to the response.

Benefits of technology

It enables fine-grained mapping of target data streams, reduces latency and stuttering, and improves the user experience of gaming services in weak wireless channel environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120935665A_ABST
    Figure CN120935665A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication method, STA equipment, AP equipment, electronic equipment and a computer readable storage medium, and relates to the field of communication. The method comprises the following steps: acquiring a QoS parameter of a target data stream; if it is determined that the QoS parameter does not meet the preset QoS requirement, a QoS mapping rule is sent to a wireless access point AP device, and the QoS mapping rule is used for indicating the expected user priority of the target data flow in a mirror image flow classification service MSCS; the first response sent by the AP device is received, the first response is used for indicating the AP device to accept or reject the QoS mapping rule, the flexibility of the QoS mapping rule is higher, fine-grained mapping is achieved, the problem of delay lagging of low-delay game services in the scene that fine mapping is not carried out in the TID mapping process is solved, and the user experience is improved. The method lays a foundation for improving the performance and service quality of the business corresponding to the target data stream, and can improve the game experience and improve the user perception especially in a game scene with a weak wireless channel environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and more specifically, to a communication method, STA device, AP device, communication system, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] In network deployments of wireless access point (AP) devices that meet the WiFi 6 (IEEE 802.11ax) or WiFi 7 (IEEE 802.11be) standards, all services are mapped according to AC_BE (TID is 0).

[0003] For example, if a wireless workstation (STA) device is running a game that requires internet access, the data for the game service and the data for other services (such as downloading movies) will be mapped according to AC_BE (TID is 0). This will cause the data to be scheduled in a first-in, first-out (FIFO) mode, which will have a certain negative impact on the transmission latency of the game service. Summary of the Invention

[0004] This application provides a communication method, a STA device, an AP device, a communication system, an electronic device, a computer-readable storage medium, and a computer program product, which can solve the above-mentioned problems of the prior art. The technical solution is as follows: In a first aspect, embodiments of this application provide a communication method executed by a STA device, the method comprising: Obtain the Quality of Service (QoS) parameters of the target data stream; If it is determined that the QoS parameters do not meet the preset QoS requirements, a QoS mapping rule is sent to the wireless access point (AP) device. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the mirrored stream classification service (MSCS). The AP device receives a first response, which instructs the AP device to accept or reject the QoS mapping rule.

[0005] Secondly, embodiments of this application provide a communication method executed by an AP device, the method comprising: Receive QoS mapping rules sent by STA device, the QoS mapping rules being used to indicate the expected user priority of the target data stream in MSCS; Send a first response to the STA device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule; The QoS mapping rule is sent by the STA device when the QoS parameters of the target data stream do not meet the preset QoS requirements.

[0006] Thirdly, embodiments of this application provide a STA device, including: The perception module is used to acquire the Quality of Service (QoS) parameters of the target data stream; The rule sending module is used to send a QoS mapping rule to the wireless access point (AP) device if it is determined that the QoS parameter does not meet the preset QoS requirements. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the mirrored stream classification service (MSCS). The response receiving module is used to receive a first response sent by the AP device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule.

[0007] As an optional implementation, the first response is used to instruct the AP device to accept the QoS mapping rule; STA equipment also includes: A data receiving module is used to receive the target data stream transmitted by the AP device with the user priority.

[0008] As an optional implementation, the QoS rule includes the IP 5-tuple of the target data stream and the user priority, so that the AP device obtains the Differential Service Code Point (DSCP) corresponding to the target data stream based on the IP 5-tuple, and establishes a mapping relationship between the DSCP and the user priority.

[0009] As an optional implementation, the rule sending module is used to: send an MSCS request frame to the AP device, the MSCS request frame including the QoS mapping rule; The response receiving module is used to receive the MSCS response frame sent by the AP device, the MSCS response frame including the first response.

[0010] As an optional implementation, the STA device also includes: The first instruction sending module is used to send a first instruction to the AP device, wherein the first instruction is used to indicate that the STA device supports MSCS; The second indication receiving module is used to receive a second indication returned by the AP device, the second indication being used to indicate that the AP device supports MSCS.

[0011] As an optional implementation, the first indication sending module is used to send a first request frame to the AP device, the first request frame including the first indication; The second indication receiving module is used to receive a first response frame returned by the AP device, the first response frame including the second indication; Wherein, if the first request frame is an associated request frame, then the first response frame is an associated response frame; If the first request frame is a reassociation request frame, then the first response frame is a reassociation response frame.

[0012] In some embodiments, the QoS parameter is characterized by the received signal strength indicating RSSI.

[0013] Fourthly, embodiments of this application provide an AP device, including: The rule receiving module is used to receive QoS mapping rules sent by the STA device, wherein the QoS mapping rules are used to indicate the expected user priority of the target data stream in the MSCS; The rule response module is used to send a first response to the STA device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule; The QoS mapping rule is sent by the STA device when the QoS parameters of the target data stream do not meet the preset QoS requirements.

[0014] As an optional implementation, the first response is used to instruct the AP device to accept the QoS mapping rule; AP devices also include: The data transmission module is used to transmit the target data stream to the STA device according to the user priority.

[0015] As an optional implementation, the QoS rule includes the IP 5-tuple of the target data flow and the user priority; The response receiving module is also configured to obtain the target DSCP corresponding to the target data stream based on the IP 5-tuple; and establish a mapping relationship between the DSCP and the user priority. The data transmission module is used to receive data streams, obtain the DSCP corresponding to the data stream based on the IP 5-tuple of the data stream; if the DSCP is the target DSCP, then obtain the user priority based on the mapping relationship; and transmit the data stream to the STA device according to the user priority.

[0016] As an optional implementation, the rule receiving module is used to receive the MSCS request frame sent by the STA device, the MSCS request frame including the QoS mapping rule; The rule response module is used to send an MSCS response frame to the STA device, the MSCS response frame including the first response.

[0017] As an optional implementation, the AP device also includes: A first indication receiving module is configured to receive a first indication sent by a STA device, wherein the first indication is used to indicate that the STA device supports MSCS; The second instruction sending module is used to return a second instruction to the STA device, the second instruction being used to indicate that the AP device supports MSCS.

[0018] As an optional implementation, the first indication receiving module is used to receive a first request frame sent by the STA device, the first request frame including the first indication; The second instruction sending module is used to send a first response frame to the STA device, wherein the first response frame includes the second instruction; Wherein, if the first request frame is an associated request frame, then the first response frame is an associated response frame; if the first request is a re-associated request frame, then the first response frame is a re-associated response frame.

[0019] Fifthly, embodiments of this application provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above-described communication method.

[0020] In a sixth aspect, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-described communication method.

[0021] In a seventh aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described communication method.

[0022] Eighthly, embodiments of this application provide a communication system, including a STA device and an AP device, wherein: The STA device is used to obtain the QoS parameters of the target data stream. If it is determined that the QoS parameters do not meet the preset QoS requirements, it sends a QoS mapping rule to the AP device. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the MSCS. An AP device is configured to receive the QoS mapping rule and send a first response to an STA device, wherein the first response is used to instruct the AP device to accept or reject the QoS mapping rule. The STA device is also used to receive the first response sent by the AP device.

[0023] The technical solution provided in this application embodiment actively obtains the QoS parameters of the target data stream through the STA device. When it is determined that the QoS parameters do not meet the preset QoS requirements, a QoS mapping rule is sent to the AP device. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the Mirror Stream Classification Service (MSCS). Since there are 8 levels of user priority in the MSCS service, while the Access Class (AC) only has 4 levels, the QoS mapping rule of this application embodiment is more flexible. Furthermore, the QoS mapping rule of this application embodiment is set for the target data stream. Compared with the mapping rules set for all services (data streams) in the prior art, this application real-time example realizes fine-grained mapping, which solves the latency and stuttering problem in low-latency game services in scenarios where fine-grained mapping is not performed during TID mapping. This lays the foundation for improving the performance and service quality of the corresponding services of the target data stream. Especially in game scenarios with weak wireless channel environment, when game services are running simultaneously with multiple services, it can improve the game experience and enhance the user's perception. Attached Figure Description

[0024] Figure 1 This is a schematic diagram of the system architecture for implementing the communication method provided in an embodiment of this application; Figure 2 A flowchart illustrating a communication method performed by a STA device, provided as an embodiment of this application; Figure 3 An interactive schematic diagram of a communication method provided in an embodiment of this application; Figure 4 A schematic diagram of the element structure of an MSCS description element provided in an embodiment of this application; Figure 5 This is a schematic diagram illustrating the interaction between a STA device and an AP device to confirm that they both support MSCS, as provided in an embodiment of this application. Figure 6 A flowchart illustrating a communication method performed by an AP device, provided as an embodiment of this application; Figure 7 An interactive schematic diagram of a communication method provided in another embodiment of this application; Figure 8 A schematic diagram illustrating the implementation environment involved in a specific application scenario provided in this application embodiment; Figure 9 This is a schematic diagram of the structure of a STA device provided in an embodiment of this application; Figure 10 This is a schematic diagram of the structure of an AP device provided in an embodiment of this application; Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0025] The embodiments of this application are described below with reference to the accompanying drawings.

[0026] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a,” “an,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.”

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0028] First, let's introduce and explain several terms used in this application: Quality of Service (QoS) refers to a network's ability to provide better service for specified network communications by utilizing various underlying technologies. It is a network security mechanism and a technology used to solve problems such as network latency and congestion.

[0029] The Mirrored Stream Classification Service enables STA devices to manage the QoS processing of downlink data streams by AP devices using QoS mirroring.

[0030] The Maximum Size Data Unit (MSDU) in the data link layer is typically defined by the underlying network protocol (such as Ethernet or Wi-Fi). The size of the MSDU affects the efficiency and performance of data link layer transmission.

[0031] Access Category Best Effort (AC-BE) typically refers to a method or type of data transmission, applicable to environments such as wireless local area networks (WLANs), and is used to describe one of the Quality of Service (QoS) levels provided in Wi-Fi networks.

[0032] AC_VI (Access Category Video): This is a service type that guarantees priority transmission of video data streams and is suitable for real-time video transmission, such as video calls or video streaming.

[0033] AC_VO (Access Category Voice): This is a service type that guarantees priority transmission of voice data streams and is suitable for real-time voice communication, such as VoIP or voice chat.

[0034] In existing AP device network deployments that meet the WiFi 6 (IEEE 802.11ax) or WiFi 7 (IEEE 802.11ax) standards, each service is mapped according to AC_BE (TID is 0).

[0035] For example, if a wireless workstation (STA device) is running a game that requires internet access, the data from the game and other services (such as downloading movies) will be mapped according to AC_BE (TID is 0). This causes the data to be scheduled in a first-in, first-out (FIFO) manner, which negatively impacts the transmission latency of the game service.

[0036] The communication methods, apparatus, electronic devices, computer-readable storage media, and computer program products provided in this application are intended to solve the above-mentioned technical problems of the prior art.

[0037] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0038] Figure 1 The system architecture diagram for implementing the communication method provided in the embodiments of this application is shown in the figure, including STA device 101 and AP device 102.

[0039] In some embodiments, the STA device 101 may be a device including a wireless communication chip supporting WiFi communication, a wireless sensor, or a wireless communication terminal. Optionally, the wireless communication terminal may be at least one of, but is not limited to, a mobile phone, a wearable device, an IoT device supporting WiFi communication, a car with WiFi communication capabilities, a smart car, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical surgery, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, and a wireless terminal device in a smart home.

[0040] STA device 101 can be a terminal device or network device with a Wi-Fi chip. Optionally, STA device 101 can support multiple WLAN standards such as 802.11ax, 802.11be, 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11a, as well as the next-generation 802.11 protocol, but is not limited to these.

[0041] In some embodiments, the AP device 102 can be an access point for mobile terminals to access a wired network. The AP acts as a bridge connecting wired and wireless networks, its main function being to connect various wireless network clients together and then connect the wireless network to the Ethernet. Specifically, the AP device 102 can be a terminal device or network device with a Wi-Fi chip. Optionally, the AP device can support various WLAN standards such as 802.11ax, 802.11be, 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11a, as well as the next-generation 802.11 protocol, but is not limited to these.

[0042] It is understood that the communication system described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions proposed in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions proposed in the embodiments of this application are also applicable to similar technical problems.

[0043] The following embodiments of this application can be applied to Figure 1 The communication system 100 shown, or a part thereof, but not limited to it. Figure 1 The entities shown are illustrative; a communication system may include... Figure 1 All or part of the main body, or may include Figure 1 Other entities besides the main body, the number and form of each entity are arbitrary, each entity can be physical or virtual, the connection relationship between the entities is illustrative, the entities can be unconnected or connected, and the connection can be in any way, it can be a direct connection or an indirect connection, it can be a wired connection or a wireless connection.

[0044] The embodiments of this application can be applied to Wireless Local Area Networks (WLANs), such as to IEEE 802.11 system standards, such as 802.11a / b / g, 802.11n, 802.11ac, 802.11ax, or their next generation, such as 802.11be, also known as WiFi 7 or Extremely High Throughput (EHT) standards or even later-generation standards.

[0045] Alternatively, the embodiments of this application can also be applied to wireless local area network systems such as Internet of Things (IoT) networks or Vehicle-to-X (V2X) networks. Of course, the embodiments of this application can also be applied to other possible communication systems, such as Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD) systems, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication systems, and future 5th generation (5G) communication systems, etc.

[0046] This application provides a flowchart illustrating a communication method executed by a STA device, as shown in the embodiments below. Figure 2 As shown, the method includes: S101. Obtain the Quality of Service (QoS) parameters of the target data stream.

[0047] STA devices typically perform tasks continuously. However, due to uncontrollable factors, network issues may occur, affecting task execution. Compared to related technologies where AP devices proactively initiate network transmission optimization, this application's embodiment uses a method where the STA device obtains the wireless environment quality in real time, combines it with the QoS parameters of the target data stream of the target service it is executing, and determines whether the wireless environment quality meets the preset QoS requirements, thereby proactively initiating network transmission optimization.

[0048] Taking the STA device running a network game as an example, when the network is poor, the game will experience problems such as lag and slow refresh, which will affect the experience. The STA device in this application embodiment can obtain QoS parameters such as network latency and Received Signal Strength Indication (RSSI) of the target data stream of the game in real time. If the QoS parameters do not meet the preset QoS requirements, it will actively initiate an update of the QoS mapping to improve the game experience.

[0049] S102. If it is determined that the QoS parameters do not meet the preset QoS requirements, a QoS mapping rule is sent to the wireless access point (AP) device. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the mirrored stream classification service (MSCS).

[0050] When the STA device in this embodiment determines that the QoS parameters do not meet the preset QoS requirements, it actively sends a QoS mapping rule to the wireless access point (AP) device. The QoS mapping rule is used to indicate the expected user priority (UP) of the target data stream in the mirrored stream classification service (MSCS).

[0051] It should be noted that there are 8 levels of user priority for MSCS services, while the access category AC only has 4 levels. Therefore, the QoS mapping rules in this application embodiment are more flexible. Furthermore, the QoS mapping rules in this application embodiment are set for the target data stream. Compared with the mapping rules set for all services (data streams) in the prior art, this application real-time example implements fine-grained mapping.

[0052] S103. Receive a first response sent by the AP device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule.

[0053] After sending the QoS mapping rule to the AP device in this embodiment of the application, the STA device also requests the AP device to return a first response. The first response instructs the AP device to accept or reject the QoS mapping rule, so that the STA device can determine whether to receive the target data stream based on the MSCS service or modify the QoS mapping rule and send it to the AP device for confirmation.

[0054] The communication method of this application embodiment actively acquires the QoS parameters of the target data stream through the STA device. When it is determined that the QoS parameters do not meet the preset QoS requirements, a QoS mapping rule is sent to the AP device. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the Mirror Stream Classification Service (MSCS). Since there are 8 levels of user priority in the MSCS service, while the Access Class (AC) only has 4 levels, the QoS mapping rule of this application embodiment is more flexible. Furthermore, the QoS mapping rule of this application embodiment is set for the target data stream. Compared with the mapping rules set for all services (data streams) in the prior art, this application real-time example realizes fine-grained mapping, which solves the latency and stuttering problem in low-latency game services in scenarios where fine-grained mapping is not performed during TID mapping. This lays the foundation for improving the performance and service quality of the corresponding services of the target data stream. Especially in game scenarios with weak wireless channel environment, when game services are running simultaneously with multiple services, it can improve the game experience and enhance the user's perception.

[0055] Based on the above embodiments, as an optional embodiment, the first response is used to instruct the AP device to accept the QoS mapping rule.

[0056] The system receives a first response from the AP device, and then includes: Receive the target data stream transmitted by the AP device with the user priority.

[0057] In other words, once the AP device accepts the QoS mapping rules, it will transmit the target data stream according to the user priority expected by the STA device. This will prevent latency and stuttering issues in the target data stream in scenarios with weak wireless channels, thereby improving the user experience of the corresponding service.

[0058] Based on the above embodiments, as an optional embodiment, the QoS rules include the IP 5-tuple of the target data stream and the user priority. It should be understood that the IP 5-tuple refers to the five basic elements that identify and locate a specific network connection in network communication, including source IP address, source port number, destination IP address, destination port number, and protocol type.

[0059] The source IP address is a unique identifier for the sending host on the network, used to determine the origin of a data packet. It is represented by 32 bits of binary digits, usually presented in dotted decimal notation.

[0060] The source port number is the port number used by the application on the sending host to deliver data packets to the correct destination.

[0061] The destination IP address is a unique identifier for the receiving host on the network, used to determine the destination of data packets. It is also represented by 32 bits of binary numbers, usually presented in dotted decimal notation. The destination port number is the port number used by the application on the receiving host to receive data packets.

[0062] Protocol type refers to the protocol used when transmitting data packets, such as ICR (Transmission Control Protocol) or WDR (User Datagram Protocol).

[0063] Using these five basic elements, network devices can accurately transmit data packets from the source host to the destination host. The IP 5-tuple helps network administrators and security analysts perform network traffic analysis.

[0064] This application records the IP 5-tuple of the target data stream in the QoS rules, enabling the AP device to determine the target data stream's data packets from the received data streams based on the IP 5-tuple. Furthermore, the AP device can determine the DSCP from the data packet's IP header, thereby establishing a mapping relationship between the DSCP and the user priority in the QoS rules. Therefore, after receiving the target data stream's data packets from the upper layer, the AP device transmits the data packets according to the user priority corresponding to the DSCP in the IP header of this data table.

[0065] Please see Figure 3 The figure exemplifies an interactive schematic diagram of the communication method of this application, as shown in the figure, including: S301, STA devices acquire the Quality of Service (QoS) parameters of the target data stream; S302. If the STA device determines that the QoS parameters do not meet the preset QoS requirements, it generates an MSCS request frame, which includes the QoS mapping rules. S303, the STA device sends an MSCS request frame to the AP device; S304. The AP device parses the MSCS request frame, obtains the QoS mapping rules, and generates an MSCS response frame, wherein the MSCS response frame includes the first response. S305, the AP device sends an MSCS response frame to the STA device.

[0066] In this embodiment, the STA device constructs an MSCS request frame including QoS mapping rules and sends it to the AP device. The AP device parses the MSCS request frame, obtains the QoS mapping rules, generates an MSCS response frame, and returns it to the STA device, thus realizing the interaction between the QoS mapping rules and the first response.

[0067] It should be understood that the frame format of the MSCS request frame mainly includes four parts: category, robust action, token dialogue, and MSCS descriptive element. In this embodiment, the QoS mapping rules are recorded in the MSCS descriptive element. Please refer to [link to relevant documentation]. Figure 4 The figure illustrates a schematic diagram of the element structure of the MSCS description element according to an embodiment of this application. As shown, the MSCS description element may include an element identifier field, an element length field, an element identifier extension field, a request type field, a user priority control field, and a flow classification mask element field. The relatively important fields in the MSCS description element are the user priority control field and the flow classification mask element field. The user priority control field in this embodiment includes: The user priority bit mapping field is used to record the user priority expected by the STA device. Specifically, since there are 8 levels of user priority, this field can have 8 bits, each bit corresponding to a user priority. When the value of the corresponding bit is 0, it indicates that it is not the user priority expected by the STA device, and when the value is 1, it indicates that it is the user priority expected by the STA device. The User Priority Limit field limits the maximum UP value assigned to an incoming MSDU in the MSCS-classified flow. The value of this field ranges from 0 to 7, and is generally set to 7 (the highest). For example, if it is set to only allow users with a maximum MSCS mirror value of VI, i.e., User Priority Limit=5, then the QoS rules generated by the AP device based on the uplink IP flow with a user priority of 6 or 7 sent by the STA device will be limited and assigned a user priority of 5. In this case, if the STA device expects a user priority of 6 or 7, then it will be actually limited to 5. The stream classification mask element fields include: Category type field: Used to describe the business type corresponding to the target data stream. For example, for game business, this field can be set to 4; Classification mask field: Used to record the IP quintuple of the target data stream; The MSCS description element field in this application records the IP 5-tuple of the target data stream and the expected user priority, enabling the AP device to obtain the QoS user rules expected by the STA device by parsing the MSCS description element field.

[0068] In some embodiments, after receiving an MSCS request frame from a STA device, if the AP device receives the QoS mapping rules expected by the STA device, it will determine whether the MSCS service of the STA device has been activated. If it has not been activated, it will update the corresponding MSCS data.

[0069] In some embodiments, if the AP device receives an MSCS request frame while associating with the STA device, the AP device may include an MSCS DescriptorElement specified as Success in the (Re)Association Response frame to indicate a first response; if the AP device receives an MSCS request while associating with the STA device, the first response may be indicated in the MSCS response.

[0070] It should be noted that in the IEEE series of protocols, the MSCS protocol is optional. Therefore, based on the above embodiments, as an optional embodiment, before sending the QoS mapping rules to the AP device, the STA device in this application also includes an interaction process between the AP device and the STA device to confirm that they support MSCS. The STA device sends a first indication to the AP device, the first indication being used to indicate that the STA device supports MSCS; and The STA device receives a second indication returned by the AP device, the second indication being used to indicate that the AP device supports MSCS.

[0071] After determining that both the STA device and the AP device support MSCS, if the QoS parameters do not meet the preset QoS requirements, the STA device sends QoS mapping rules to the wireless access point AP device. This avoids the situation where the STA device sends QoS rules to the AP device but the AP device does not support MSCS, resulting in an invalid request.

[0072] Based on the above embodiments, as an optional embodiment, sending a first instruction to the AP device includes: Send a first request frame to the AP device, the first request frame including the first indication; The receipt of the second instruction returned by the AP device includes: Receive a first response frame returned by the AP device, the first response frame including the second indication; Wherein, if the first request frame is an associated request frame, then the first response frame is an associated response frame; if the first request is a re-associated request frame, then the first response frame is a re-associated response frame.

[0073] During communication between the STA device and the AP device, an association request frame or a reassociation request frame will be sent. The association request frame or reassociation request frame will contain the first indication of support for MSCS. If the Mirrored SCS field in the Extended CAP device capabilities information is set to true, then both the STA device and the AP device support MSCS. The AP device will assign a user priority to the MSDU from L2 / L3 according to the mapping rules (i.e., mirroring) of the corresponding MSDU sent by the STA device.

[0074] When the AP device receives an association request frame or reassociation request frame from the STA device, it will parse it, set the dot11MSCSActivated field to true, and set the relevant parameters of the QoS rule in the MSCS Descriptor description element to generate an association response frame or reassociation response frame and send it to the STA device.

[0075] Please see Figure 5 The figure illustrates an exemplary diagram of the interaction between the STA device and the AP device confirming mutual support for MSCS in an embodiment of this application, as shown in the figure, including S501~S504: S501, the STA device generates the first request frame.

[0076] In some embodiments, the first request frame is an association request frame or a reassociation request frame.

[0077] In some embodiments, the MirroredSCS field in the Extended CAP device availability field of the first request frame is set to true, indicating that the STA device supports MSCS.

[0078] S502, the STA device sends the first request frame to the AP device.

[0079] S503, the AP device receives and parses the first request frame.

[0080] S504, the AP device generates the first response frame.

[0081] In some embodiments, when the first request frame is an associated request frame, the first response frame is an associated response frame; if the first request frame is a re-associated request frame, the first response frame is a re-associated response frame.

[0082] In some embodiments, by setting the dot11MSCSActivated field to true in the first response frame, it is indicated that the AP device supports MSCS (i.e., the second indication). At the same time, the initial QoS rules are set in the MSCS Descriptor description element field. The initial QoS rules are not individually set for each data stream, but rather set the same user priority for all service data streams.

[0083] S505, the AP device sends the first response frame to the STA device.

[0084] In this embodiment of the application, the STA device receives a first response frame and determines, based on the second indication in the first response frame, that the AP device also supports MSCS. This lays the foundation for the STA device to send QoS mapping rules to the AP device if the QoS parameters it obtains do not meet the preset QoS requirements.

[0085] Please see Figure 6 The figure provides an exemplary flowchart of a communication method performed by an AP device according to an embodiment of this application, as shown in the figure, including: S601, Receive QoS mapping rules sent by STA device.

[0086] STA devices typically perform tasks continuously. However, due to uncontrollable factors, network issues may occur, affecting task execution. Compared to related technologies where AP devices proactively initiate network transmission optimization, this application's embodiment uses a method where the STA device obtains the wireless environment quality in real time, combines it with the QoS parameters of the target data stream of the target service it is executing, and determines whether the wireless environment quality meets the preset QoS requirements, thereby proactively initiating network transmission optimization.

[0087] Taking the STA device running a network game as an example, when the network is poor, the game will experience problems such as lag and slow refresh, which will affect the experience. The STA device in this application embodiment can obtain QoS parameters such as network latency and Received Signal Strength Indication (RSSI) of the target data stream of the game in real time. If the QoS parameters do not meet the preset QoS requirements, it will actively initiate an update of the QoS mapping to improve the game experience.

[0088] When the STA device in this embodiment determines that the QoS parameters do not meet the preset QoS requirements, it actively sends a QoS mapping rule to the wireless access point (AP) device. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the mirrored stream classification service (MSCS).

[0089] It should be noted that there are 8 levels of user priority for MSCS services, while the access category AC only has 4 levels. Therefore, the QoS mapping rules in this application embodiment are more flexible. Furthermore, the QoS mapping rules in this application embodiment are set for the target data stream. Compared with the mapping rules set for all services (data streams) in the prior art, this application real-time example implements fine-grained mapping.

[0090] S602. Send a first response to the STA device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule.

[0091] The AP device determines whether to accept or reject the QoS mapping rules of the STA device, and then sends a first response to the STA device.

[0092] In some embodiments, if the AP device accepts the QoS mapping rules of the STA device, it will activate the MSCS for the STA device; or, if the MSCS of the STA device has been activated previously, the parameters of the MSCS will be updated based on the QoS mapping rules.

[0093] In some embodiments, if the AP device receives a QoS mapping rule during association, it responds by including an MSCS Descriptor indicating "Success" in the (Re)Association Response frame; or, if the AP device receives a QoS mapping rule after association, it indicates "Success" in the MSCS Response. The AP device maintains the MSCS state for each STA device individually. This means that the MSCS parameters and QoS rules negotiated in this embodiment are specific to each STA device.

[0094] If the AP device does not accept the QoS rules, it will provide a status code that may indicate the reason for the rejection, such as insufficient processing resources or an unsupported TCLAS Mask parameter.

[0095] In the communication method of this application embodiment, the AP device receives a QoS mapping rule sent by the STA device. This QoS mapping rule is sent by the STA device when it actively obtains the QoS parameters of the target data and determines that the QoS parameters do not meet the preset QoS requirements. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the Mirror Stream Classification Service (MSCS). Since there are 8 levels of user priority in the MSCS service and only 4 levels in the Access Class (AC), the QoS mapping rule of this application embodiment is more flexible. Furthermore, the QoS mapping rule of this application embodiment is set for the target data stream. Compared with the mapping rules set for all services (data streams) in the prior art, this application real-time example implements fine-grained mapping, which solves the latency and stuttering problem in low-latency game services in scenarios where fine-grained mapping is not performed during TID mapping. This lays the foundation for improving the performance and service quality of the services corresponding to the target data stream. Especially in scenarios with weak wireless channel environment, when game services are running simultaneously with multiple services, it can improve the game experience and enhance the user's perception.

[0096] Based on the above embodiments, as an optional embodiment, the first response is used to instruct the AP device to accept the QoS mapping rule; The step of sending a first response to the STA device further includes: The target data stream is transmitted to the STA device according to the user priority.

[0097] In other words, once the AP device accepts the QoS mapping rules, it will transmit the target data stream according to the user priority expected by the STA device. This will prevent latency and stuttering issues in the target data stream in scenarios with weak wireless channels, thereby improving the user experience of the corresponding service.

[0098] Based on the above embodiments, as an optional embodiment, the QoS rule includes the IP 5-tuple of the target data stream and the user priority. It should be understood that the IP 5-tuple refers to the five basic elements that identify and locate a specific network connection in network communication, including the source IP address, source port number, destination IP address, destination port number, and protocol type.

[0099] The AP device sends a first response to the STA device, which also includes: Based on the IP quintuple, obtain the target DSCP corresponding to the target data stream; Establish a mapping relationship between DSCP and the user priority.

[0100] This application enables AP devices to determine the target data stream's packets from various received data streams by recording the target data stream's IP 5-tuple in QoS rules. Furthermore, the AP device can determine the DSCP from the packet's IP header, thereby establishing a mapping between the DSCP and the user priority in the QoS rules.

[0101] For example, if the user priority accepted by the AP device is 5, a mapping relationship is established between the DSCP of the target data stream and UP=5.

[0102] The AP device transmits the target data stream to the STA device according to the user priority, including: Receive a data stream, and obtain the DSCP corresponding to the data stream from the IP 5-tuple of the data stream; If the DSCP is the target DSCP, then the user priority is obtained according to the mapping relationship; The data stream is transmitted to the STA device according to the user priority.

[0103] For any data packet in the received target data stream, the AP device determines the corresponding DSCP from the IP header of the data packet, and transmits the data packet according to the corresponding user priority based on the mapping relationship between the DSCP and user priority, thereby improving the QoS of the target data stream and enhancing the user experience.

[0104] Based on the above embodiments, as an optional embodiment, receiving QoS mapping rules sent by the STA device includes: Receive the MSCS request frame sent by the STA device. The MSCS request frame includes QoS mapping rules. Sending a first response to the STA device includes: Send an MSCS response frame to the STA device. The MSCS response frame includes a first response.

[0105] The frame format of the MSCS request frame in this application embodiment mainly includes four parts: category, robust action, token dialogue, and MSCS description element. In this application embodiment, the QoS mapping rules are recorded in the MSCS description element.

[0106] The MSCS description element may include an element identifier field, an element length field, an element identifier extension field, a request type field, a user priority control field, and a flow classification mask element field. The relatively important fields in the MSCS description element are the user priority control field and the flow classification mask element field. The user priority control field in this embodiment includes: The user priority bit mapping field is used to record the user priority expected by the STA device. Specifically, since there are 8 levels of user priority, this field can have 8 bits, each bit corresponding to a user priority. When the value of the corresponding bit is 0, it means that it is not the user priority expected by the STA device, and when the value is 1, it means that it is the user priority expected by the STA device. The User Priority Limit field limits the maximum UP value assigned to an incoming MSDU in the MSCS-classified flow. The value of this field ranges from 0 to 7, and is generally set to 7 (the highest). For example, if it is set to only allow users with a maximum MSCS mirror value of VI, i.e., User Priority Limit=5, then the QoS rules generated by the AP device based on the uplink IP flow with a user priority of 6 or 7 sent by the STA device will be limited and assigned a user priority of 5. In this case, if the STA device expects a user priority of 6 or 7, then it will be actually limited to 5. The stream classification mask element fields include: Category type field: Used to describe the business type corresponding to the target data stream. For example, for game business, this field can be set to 4; Classification mask field: Used to record the IP quintuple of the target data stream; The MSCS description element field in this application records the IP 5-tuple of the target data stream and the expected user priority, enabling the AP device to obtain the QoS user rules expected by the STA device by parsing the MSCS description element field.

[0107] In some embodiments, after receiving an MSCS request frame from a STA device, if the AP device receives the QoS mapping rules expected by the STA device, it will determine whether the MSCS service of the STA device has been activated. If it has not been activated, it will update the corresponding MSCS data.

[0108] In some embodiments, if the AP device receives an MSCS request frame while associating with the STA device, the AP device may include an MSCS DescriptorElement specified as Success in the (Re)Association Response frame to indicate a first response; if the AP device receives an MSCS request while associating with the STA device, the first response may be indicated in the MSCS response.

[0109] It should be noted that in the IEEE series of protocols, the MSCS protocol is optional. Therefore, based on the above embodiments, as an optional embodiment, before sending the QoS mapping rules to the AP device, the STA device in this application also includes an interaction process between the AP device and the STA device to confirm that they support MSCS. The STA device sends a first indication to the AP device, the first indication being used to indicate that the STA device supports MSCS; and The STA device receives a second indication returned by the AP device, the second indication being used to indicate that the AP device supports MSCS.

[0110] After determining that both the STA device and the AP device support MSCS, if the QoS parameters do not meet the preset QoS requirements, the STA device sends QoS mapping rules to the wireless access point AP device. This avoids the situation where the STA device sends QoS rules to the AP device but the AP device does not support MSCS, resulting in an invalid request.

[0111] Based on the above embodiments, as an optional embodiment, the AP device receives a second instruction sent by the STA device, including: Receive a first request frame sent by the STA device, the first request frame including the first indication; The second instruction returned to the STA device includes: Send a first response frame to the STA device, the first response frame including the second indication; Wherein, if the first request frame is an associated request frame, then the first response frame is an associated response frame; If the first request is a reassociation request frame, then the first response frame is a reassociation response frame.

[0112] During communication between the STA and AP devices, an association request frame or a reassociation request frame will be sent. The association request frame or reassociation request frame will contain the first indication of support for MSCS. The Mirrored SCS field in the Extended CAP device capabilities is set to true. In this case, both the STA device and the AP device support MSCS. The AP device will assign a user priority to the MSDU from L2 / L3 according to the mapping rules (i.e., mirroring) of the corresponding MSDU sent by the STA device.

[0113] When the AP device receives an association request frame or reassociation request frame from the STA device, it will parse it, set the dot11MSCSActivated field to true, set the relevant parameters of the QoS rule in the MSCS Descriptor description element, and generate an association response frame or reassociation response frame to send to the STA device.

[0114] Please see Figure 7 The figure exemplarily illustrates an interaction diagram of a communication method according to another embodiment of the present application, as shown, including: S701, the STA device sends a first request frame to the AP device. The first request frame includes the first indication. The first request frame is an association request frame or a reassociation request frame. The first indication is used to indicate that the STA device supports MSCS. S702, the AP device returns a first response frame to the STA device, the first response frame including a second indication; If the first request frame is an association request frame, then the first response frame is an association response frame; if the first request frame is a reassociation request frame, then the first response frame is a reassociation response frame. The second indication is used to indicate that the AP device supports MSCS; S703 and STA devices acquire QoS parameters of the target data stream; In some embodiments, the QoS parameter can be a received signal strength indicator; S704. If it is determined that the QoS parameters do not meet the preset QoS requirements, the STA device sends an MSCS request frame to the AP device. The MSCS request frame includes QoS mapping rules. S705. The AP device sends an MSCS response frame to the STA device. The MSCS response frame includes a first response. The first response is used to instruct the AP device to accept the QoS mapping rules. S706, The AP device transmits the target data stream to the STA device with user priority.

[0115] Figure 8 This is a schematic diagram illustrating the implementation environment of a specific application scenario provided by an embodiment of the present invention, according to an exemplary embodiment. The implementation environment involved in the present invention can be applied to various scenarios such as cloud technology, artificial intelligence, intelligent transportation, and assisted driving. Its implementation environment includes at least a game client 110, a user-used terminal 120, a router 130, and a server 140. The terminal 110, router 130, and server 140 interact with each other via the Internet.

[0116] Game client 110 is deployed on terminal 120, and under user control, it runs and navigates between pages. Whether running game client 110 or navigating between pages, game client 110 will receive a page, which will be displayed on terminal 120. The data used to display this page is obtained by terminal 120 through data interaction with server 140 via router 130.

[0117] Server 140 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. There are no restrictions on this.

[0118] When the router 130 and terminal 120 are transmitting game data required by the game client 110, the terminal 120 obtains the QoS parameters of the target data stream. When it detects that the game service is unstable and no longer meets the QoS requirements, it constructs an MSCS request frame through the WIFI chip. The MSCS request frame includes QoS mapping rules, which are used to indicate the expected user priority of the target data stream in the Mirror Stream Classification Service (MSCS). The terminal 120 sends the MSCS request frame to the router 130. After receiving the MSCS request frame, the router 130 parses the QoS mapping rules and agrees to modify the QoS mapping. It then sends an MSCS response frame to the terminal 120. The MSCS response frame includes a first response, which is used to instruct the AP device to accept the QoS mapping rules. At the same time, the router 120 transmits the game data using the new QoS mapping rules. This solves the latency and stuttering problem in scenarios where low-latency game services do not undergo fine-grained mapping during TID mapping. Especially in scenarios with weak wireless channel environments, when game services are running simultaneously with multiple services, it can improve the game experience and enhance the user's perception.

[0119] This application provides an embodiment of a STA device, such as... Figure 9 As shown, the STA device may include: a sensing module 901, a rule sending module 902, and a response receiving module 903, specifically: The perception module 901 is used to acquire the Quality of Service (QoS) parameters of the target data stream; The rule sending module 902 is used to send a QoS mapping rule to the wireless access point (AP) device if it is determined that the QoS parameter does not meet the preset QoS requirements. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the mirrored stream classification service (MSCS). The response receiving module 903 is used to receive a first response sent by the AP device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule.

[0120] As an optional implementation, the first response is used to instruct the AP device to accept the QoS mapping rule; STA equipment also includes: A data receiving module is used to receive the target data stream transmitted by the AP device with the user priority.

[0121] As an optional implementation, the QoS rule includes the IP 5-tuple of the target data stream and the user priority, so that the AP device obtains the Differential Service Code Point (DSCP) corresponding to the target data stream based on the IP 5-tuple, and establishes a mapping relationship between the DSCP and the user priority.

[0122] As an optional implementation, the rule sending module is used to: send an MSCS request frame to the AP device, the MSCS request frame including the QoS mapping rule; The response receiving module is used to receive the MSCS response frame sent by the AP device, the MSCS response frame including the first response.

[0123] As an optional implementation, the STA device also includes: The first instruction sending module is used to send a first instruction to the AP device, wherein the first instruction is used to indicate that the STA device supports MSCS; The second indication receiving module is used to receive a second indication returned by the AP device, the second indication being used to indicate that the AP device supports MSCS.

[0124] As an optional implementation, the first indication sending module is used to send a first request frame to the AP device, the first request frame including the first indication; The second indication receiving module is used to receive a first response frame returned by the AP device, the first response frame including the second indication; Wherein, if the first request frame is an associated request frame, then the first response frame is an associated response frame; If the first request frame is a reassociation request frame, then the first response frame is a reassociation response frame.

[0125] In some embodiments, the QoS parameter is characterized by the received signal strength indicating RSSI.

[0126] The STA device in this application embodiment can execute the communication method on the STA device side provided in this application embodiment. The implementation principle is similar. The actions performed by each module in the STA device in each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the STA device, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0127] This application provides an AP device, such as... Figure 10 As shown, the AP device may include: a rule receiving module 1001 and a rule response module 1002, specifically: Rule receiving module 1001 is used to receive QoS mapping rules sent by STA device, wherein the QoS mapping rules are used to indicate the expected user priority of the target data stream in MSCS; Rule response module 1002 is used to send a first response to the STA device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule; The QoS mapping rule is sent by the STA device when the QoS parameters of the target data stream do not meet the preset QoS requirements.

[0128] As an optional implementation, the first response is used to instruct the AP device to accept the QoS mapping rule; AP devices also include: The data transmission module is used to transmit the target data stream to the STA device according to the user priority.

[0129] As an optional implementation, the QoS rule includes the IP 5-tuple of the target data flow and the user priority; The response receiving module is also configured to obtain the target DSCP corresponding to the target data stream based on the IP 5-tuple; and establish a mapping relationship between the DSCP and the user priority. The data transmission module is used to receive data streams, obtain the DSCP corresponding to the data stream based on the IP 5-tuple of the data stream; if the DSCP is the target DSCP, then obtain the user priority based on the mapping relationship; and transmit the data stream to the STA device according to the user priority.

[0130] As an optional implementation, the rule receiving module is used to receive the MSCS request frame sent by the STA device, the MSCS request frame including the QoS mapping rule; The rule response module is used to send an MSCS response frame to the STA device, the MSCS response frame including the first response.

[0131] As an optional implementation, the AP device also includes: A first indication receiving module is configured to receive a first indication sent by a STA device, wherein the first indication is used to indicate that the STA device supports MSCS; The second instruction sending module is used to return a second instruction to the STA device, the second instruction being used to indicate that the AP device supports MSCS.

[0132] As an optional implementation, the first indication receiving module is used to receive a first request frame sent by the STA device, the first request frame including the first indication; The second instruction sending module is used to send a first response frame to the STA device, wherein the first response frame includes the second instruction; Wherein, if the first request frame is an associated request frame, then the first response frame is an associated response frame; if the first request is a re-associated request frame, then the first response frame is a re-associated response frame.

[0133] The AP device in this application embodiment can execute the communication method on the AP device side provided in this application embodiment. The implementation principle is similar. The actions performed by each module in the AP device in each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the AP device, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0134] This application also provides a communication system, including a STA device and an AP device. The STA device is capable of executing the STA-side communication methods provided in the above embodiments, and the AP device is capable of executing the AP-side communication methods provided in the above embodiments, for example: The STA device is used to obtain the QoS parameters of the target data stream. If it is determined that the QoS parameters do not meet the preset QoS requirements, it sends a QoS mapping rule to the AP device. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the MSCS. An AP device is configured to receive the QoS mapping rule and send a first response to an STA device, wherein the first response is used to instruct the AP device to accept or reject the QoS mapping rule. The STA device is also used to receive the first response sent by the AP device.

[0135] This application provides an electronic device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of a communication method. Compared with related technologies, it can achieve the following: actively acquiring QoS parameters of a target data stream through a STA device; when it is determined that the QoS parameters do not meet the preset QoS requirements, sending QoS mapping rules to an AP device. The QoS mapping rules are used to indicate the expected user priority of the target data stream in the Mirror Stream Classification Service (MSCS). Since there are 8 levels of user priority in the MSCS service, while the Access Class (AC) only has 4 levels, the QoS mapping rules of this application embodiment are more flexible. Furthermore, the QoS mapping rules of this application embodiment are set for the target data stream. Compared with the mapping rules set by the prior art for all services (data streams), this application real-time example implements fine-grained mapping, solving the latency and stuttering problem in low-latency game services in scenarios where fine-grained mapping is not performed during TID mapping. This lays the foundation for improving the performance and service quality of the services corresponding to the target data stream. Especially in game scenarios with weak wireless channel environments, when game services are running simultaneously with multiple services, it can improve the game experience and enhance user perception.

[0136] In one alternative embodiment, an electronic device is provided, such as Figure 11 As shown, Figure 11 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.

[0137] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0138] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, bus 4002 is represented by only one thick line in the figure, but this does not indicate that there is only one bus or one type of bus.

[0139] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0140] The memory 4003 stores computer programs that execute embodiments of this application, and its execution is controlled by the processor 4001. The processor 4001 executes the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0141] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned method embodiments.

[0142] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0143] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the illustrations or text descriptions.

[0144] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0145] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.

Claims

1. A communication method, characterized in that, Performed by a wireless workstation (STA) device, the method includes: Obtain the Quality of Service (QoS) parameters of the target data stream; If it is determined that the QoS parameters do not meet the preset QoS requirements, a QoS mapping rule is sent to the wireless access point (AP) device. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the mirrored stream classification service (MSCS). The AP device receives a first response, which instructs the AP device to accept or reject the QoS mapping rule.

2. The method according to claim 1, characterized in that, The first response is used to instruct the AP device to accept the QoS mapping rule; After receiving the first response sent by the AP device, the process also includes: Receive the target data stream transmitted by the AP device with the user priority.

3. The method according to claim 2, characterized in that, The QoS rules include the IP 5-tuple of the target data stream and the user priority, so that the AP device can obtain the Differential Service Code Point (DSCP) corresponding to the target data stream based on the IP 5-tuple, and establish a mapping relationship between the DSCP and the user priority.

4. The method according to any one of claims 1-3, characterized in that, Send QoS mapping rules to the AP device, including: Send an MSCS request frame to the AP device, the MSCS request frame including the QoS mapping rules; The first response sent by the receiving AP device includes: Receive an MSCS response frame sent by the AP device, the MSCS response frame including the first response.

5. The method according to any one of claims 1-3, characterized in that, Before sending the QoS mapping rules to the AP device, the following is also included: Send a first indication to the AP device, the first indication being used to indicate that the STA device supports MSCS; Receive a second indication returned by the AP device, the second indication being used to indicate that the AP device supports MSCS.

6. The method according to claim 5, characterized in that, Sending the first instruction to the AP device includes: Send a first request frame to the AP device, the first request frame including the first indication; The receipt of the second instruction returned by the AP device includes: Receive a first response frame returned by the AP device, the first response frame including the second indication; Wherein, if the first request frame is an associated request frame, then the first response frame is an associated response frame; If the first request frame is a reassociation request frame, then the first response frame is a reassociation response frame.

7. A communication method, characterized in that, Performed by the AP device, the method includes: Receive QoS mapping rules sent by the STA device, the QoS mapping rules being used to indicate the expected user priority of the target data stream in the MSCS; Send a first response to the STA device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule; The QoS mapping rule is sent by the STA device when it determines that the QoS parameters of the target data stream do not meet the preset QoS requirements.

8. The method according to claim 7, characterized in that, The first response is used to instruct the AP device to accept the QoS mapping rule; The step of sending a first response to the STA device further includes: The target data stream is transmitted to the STA device according to the user priority.

9. The method according to claim 8, characterized in that, The QoS rules include the IP 5-tuple of the target data stream and the user priority; Sending the first response to the STA device further includes: Based on the IP quintuple, obtain the target DSCP corresponding to the target data stream; Establish a mapping relationship between the DSCP and the user priority; The step of transmitting the target data stream to the STA device according to the user priority includes: Receive data streams and obtain the DSCP corresponding to the data streams based on the IP 5-tuple of the data streams; If the DSCP is the target DSCP, then the user priority is obtained according to the mapping relationship; The data stream is transmitted to the STA device according to the user priority.

10. The method according to any one of claims 7-9, characterized in that, The QoS mapping rules sent by the receiving STA device include: Receive the MSCS request frame sent by the STA device, the MSCS request frame including the QoS mapping rule; Sending a first response to the STA device includes: Send an MSCS response frame to the STA device, the MSCS response frame including the first response.

11. The method according to any one of claims 7-9, characterized in that, The QoS mapping rules sent by the receiving STA device are preceded by: Receive a first indication sent by the STA device, the first indication being used to indicate that the STA device supports MSCS; A second indication is returned to the STA device, which indicates that the AP device supports MSCS.

12. The method according to claim 11, characterized in that, The first instruction sent by the receiving STA device includes: Receive a first request frame sent by the STA device, the first request frame including the first indication; The second instruction returned to the STA device includes: Send a first response frame to the STA device, the first response frame including the second indication; Wherein, if the first request frame is an associated request frame, then the first response frame is an associated response frame; If the first request is a reassociation request frame, then the first response frame is a reassociation response frame.

13. A STA device, characterized in that, include: The perception module is used to acquire the Quality of Service (QoS) parameters of the target data stream; The rule sending module is used to send a QoS mapping rule to the wireless access point (AP) device if it is determined that the QoS parameter does not meet the preset QoS requirements. The QoS mapping rule is used to indicate the expected user priority of the target data stream in the mirrored stream classification service (MSCS). The response receiving module is used to receive a first response sent by the AP device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule.

14. An AP device, characterized in that, include: The rule receiving module is used to receive QoS mapping rules sent by the STA device, wherein the QoS mapping rules are used to indicate the expected user priority of the target data stream in the MSCS; The rule response module is used to send a first response to the STA device, the first response being used to instruct the AP device to accept or reject the QoS mapping rule; The QoS mapping rule is sent by the STA device when the QoS parameters of the target data stream do not meet the preset QoS requirements.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the communication method according to any one of claims 1-12.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the communication method according to any one of claims 1-12.

17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the communication method according to any one of claims 1-12.