A method for processing a message, an AP, and a storage medium
By analyzing the routing information of uplink packets in the AP device and establishing correspondence relationships, and automatically matching priority, the problem that AC and AP cannot recognize Qos priority is solved, which improves the Qos guarantee capability and user experience of wireless LANs, and reduces maintenance costs.
Patent Information
- Application Number
- CN202111251010.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2041-10-26
AI Technical Summary
In wireless LANs, AC and AP devices cannot correctly identify the Qos priority of downlink and uplink messages, resulting in the high priority guarantee of voice and video traffic, which affects the user experience.
By analyzing the routing information of the uplink message in the AP device, establishing the correspondence between the routing information and priority, and automatically matching and loading the priority into the message, ensuring that the AC and AP can correctly identify and process Qos priority.
It effectively improves the Qos guarantee capability of AC and AP for traffic, improves user experience, and reduces the demand for hardware resources and maintenance costs.
Smart Images

Figure CN114095975B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of wireless communication technologies, and in particular, to a method for processing packets, an AP, and a storage medium. Background Art
[0002] With the development of remote work and online education, higher requirements are also imposed on the construction of WLAN (Wireless LAN). The wireless local area network needs to be able to support the daily use of applications such as voice and video, and provide a good experience.
[0003] The wireless client senses the application program, assigns a corresponding higher Qos (Quality of Service) priority to voice and video traffic, and preferentially sends it on the wireless air interface; and carries Qos priority information in the uplink packet on the air interface.
[0004] The AP receives the packet, converts it into a wired packet; and modifies the DSCP (Differentiated Services Code Point) priority in the IP packet according to the priority of the port or the Qos priority of the uplink packet on the air interface for forwarding.
[0005] The AC receives the downlink wired packet from the Internet and forwards it to the AP according to the priority configured for the AC port or the DSCP priority in the IP packet.
[0006] The AP converts the DSCP priority in the IP packet into the Qos priority of the downlink packet on the air interface to send the packet, and carries Qos priority information in the wireless packet.
[0007] In an actual network environment, for the downlink traffic from the Internet, the DSCP in the packet is often modified or directly cleared by the intermediate network, resulting in the AC being unable to recognize the actual priority of the downlink packet; the AC or AP device is unable to recognize the Qos priority of the downlink packet and basically sends it at the default priority, resulting in the voice and video traffic not being guaranteed at a high priority and affecting the user experience.
[0008] In addition, with the rapid innovation of technologies and the market, and the continuous emergence of various new application programs, some wireless clients earlier than the new application programs cannot upgrade the program in real time to recognize the packets of the new application programs, and send the uplink packets on the air interface at the default priority, and the Qos priority carried in the wireless packet is also the default, resulting in the AP device being unable to perform Qos guarantee on the traffic at the correct Qos priority, which will also affect the user's use. Summary of the Invention
[0009] The present disclosure provides a method for processing packets, an AP, and a storage medium. By using this method, it is possible to effectively avoid the situation where the AC fails to recognize the actual priority of the downstream packets or the AP fails to perform QoS guarantee on the traffic with the correct QoS priority, thus affecting the user experience.
[0010] The present disclosure provides a method for processing packets, the method comprising:
[0011] Receiving an upstream packet sent by a client, and obtaining first routing information from the upstream packet;
[0012] Using the first routing information, obtaining a matching first priority from the correspondence between routing information and priorities;
[0013] Loading the first priority onto the upstream packet and sending it to the AC.
[0014] Optionally, the method further comprises:
[0015] Receiving a downstream packet sent by the AC, and obtaining second routing information from the downstream packet;
[0016] Using the second routing information, obtaining a matching second priority from the correspondence between routing information and priorities;
[0017] Loading the second priority onto the downstream packet and sending it to the client.
[0018] Optionally, the method for obtaining the correspondence between routing information and priorities comprises:
[0019] Receiving an upstream packet sent by a client, obtaining third routing information and a third priority from the upstream packet, and generating a correspondence between routing information and priorities by using the third routing information and the third priority.
[0020] Optionally, the method further comprises:
[0021] Sending the generated correspondence between routing information and priorities to the AC, so that the AC generates a set of correspondences by using the correspondences between routing information and priorities sent by each client.
[0022] Optionally, when a matching first priority cannot be obtained from the correspondence between routing information and priorities by using the first routing information, the method further comprises:
[0023] Using the first routing message, obtaining a matching fourth priority from the set of correspondences in the AC;
[0024] Loading the fourth priority onto the upstream packet and sending it to the AC.
[0025] Optionally, when the matching second priority cannot be obtained from the correspondence between the routing information and the priority by using the second routing information, the method further includes:
[0026] Using the second routing message, obtaining a matching fifth priority from the set of correspondences in the AC;
[0027] Loading the fifth priority in a downlink packet and sending it to the client.
[0028] Optionally, the loading the first priority in an uplink packet and sending it to the AC includes:
[0029] Mapping the first priority to the DSCP priority of the IP packet;
[0030] Loading the DSCP priority in an uplink packet and sending it to the AC.
[0031] Optionally, the routing information in the correspondence between the routing information and the priority at least includes: destination address information, protocol number, and port information.
[0032] As can be seen from the above embodiments, the AP can record the routing information and priority information carried in the uplink packet, and form a corresponding relationship. When receiving an uplink packet or a downlink packet without carrying a priority, the corresponding priority can be matched through the corresponding relationship by using the routing information carried in the uplink packet or the downlink packet, and loaded in the uplink packet or the downlink packet, effectively improving the user experience of the user.
[0033] The embodiments of the present disclosure further provide an AP, and the AP includes:
[0034] A receiving module, configured to receive an uplink packet sent by a client, and obtain first routing information from the uplink packet;
[0035] A matching module, configured to use the first routing information to obtain a matching first priority from the correspondence between the routing information and the priority;
[0036] A sending module, configured to load the first priority in an uplink packet and send it to the AC.
[0037] Optionally, the receiving module is further configured to receive a downlink packet sent by the AC, and obtain second routing information from the downlink packet;
[0038] The matching module is further configured to use the second routing information to obtain a matching second priority from the correspondence between the routing information and the priority;
[0039] The sending module is further configured to load the second priority in a downlink packet and send it to the client.
[0040] Optionally, the receiving module is further configured to receive an uplink message sent by a client, obtain third routing information and a third priority from the uplink message, and generate a corresponding relationship between the routing information and the priority by using the third routing information and the third priority;
[0041] The sending module is further configured to send the generated corresponding relationship between the routing information and the priority to the AC, so that the AC generates a set of corresponding relationships by using the corresponding relationships between the routing information and the priority sent by each client.
[0042] An embodiment of the present disclosure further provides an AP, which includes: a memory, a processor, and a program stored on the memory and executable on the processor. When the program is executed by the processor, the method steps in any of the above embodiments are implemented.
[0043] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the method steps in any of the above embodiments are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present specification and used together with the specification to explain the principles of the present specification.
[0045] Figure 1 It is a schematic flow chart of a method for processing messages provided by an embodiment of the present disclosure.
[0046] Figure 2 It is a schematic flow chart of a method for processing messages provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present specification as detailed in the appended claims.
[0048] The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit this specification. The singular forms "a", "the", and "said" used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0049] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0050] To improve the ability of the AC or AP to correctly identify the priority of data packets, the administrator can manually import the signature library of packets on the AP or AC, match the wired or wired uplink packets, and perform QoS guarantee according to the priority specified in the signature library based on the matching results.
[0051] However, for network communication products, the update of the feature library often cannot keep up with the changes in actual traffic characteristics. At the same time, in most scenarios, due to the need for isolation, it is also impossible to update it online in real time from the network, resulting in high maintenance costs.
[0052] In addition, in actual use, a larger feature library needs to be imported, which requires more hardware resources of the device and increases the cost of the wireless controller or AP.
[0053] In order to solve the above technical problems, the present disclosure provides a method for processing a message, such as Figure 1 As shown, the method includes:
[0054] S101 receives an uplink message sent by a client, and obtains first routing information from the uplink message;
[0055] S102 uses the first routing information to obtain a matching first priority from a correspondence between routing information and priorities;
[0056] S103 loads the first priority into an uplink message and sends it to the AC.
[0057] In this embodiment, the execution subject of the solution may be an AP device.
[0058] In this embodiment, after the AP device in the network receives an uplink message (air interface uplink message) from the client, it parses the uplink message. When it is determined that the uplink message carries a priority (for ease of distinction, the priority is called the third priority. In an actual application, the third priority is the Qos priority), the AP records the third priority and routing information of the uplink message.
[0059] In this embodiment, the routing information includes at least: destination address information, protocol number and port information. The record format is shown in Table 1.
[0060] Destination address information Protocol number Destination port Qos priority x.x.x.x xx xx xx
[0061] In other embodiments, in order to improve the accuracy of the correspondence of records, the routing information may further include source address information and source port information, as exemplified in Table 2.
[0062]
[0063] When performing step S101, when the AP device receives an uplink packet, it can parse the received uplink packet to determine whether the uplink packet carries priority information or whether the priority information carried in the uplink packet can be correctly identified. When the priority information carried in the uplink packet is not identified, the subsequent steps are executed.
[0064] In step S101, the first routing information obtained from the uplink packet can be determined according to the routing information in the correspondence recorded by itself. For example, if the routing information in the correspondence is in the format of Table 1, the first routing information obtained includes: destination address information, protocol number, and port information; if the routing information in the correspondence is in the format of Table 2, the first routing information obtained includes: MAC address, source address information, destination address information, protocol number, destination port information, source port information (for ease of description, the correspondence in the format of Table 1 will be used as an example for subsequent description, and the method steps for the correspondence in the format of Table 2 are the same as those for the correspondence in the format of Table 1).
[0065] In step S102, after obtaining the first routing information from the uplink packet, the first routing information is used to match the routing information in the correspondence. When there is a matching item in the correspondence with the first routing information, the priority of the matching routing information (referred to as the first priority here) is obtained from the correspondence, and the obtained first priority is loaded on the uplink packet.
[0066] In this embodiment, when generating the correspondence, the priority obtained by the AP from the uplink packet carrying the priority is usually the Qos priority, and the transmission from the AP to the AC is generally a wired transmission packet. Therefore, when the AP loads the first priority (Qos priority) on the uplink packet, it first maps the first priority to the DSCP priority of the IP packet and then sends the uplink packet to the AC.
[0067] In this embodiment, after the AP generates the correspondence between the routing information and the priority according to the uplink packet carrying the priority, it can send the correspondence to the AC. After the AC side receives the correspondences sent by each AP, it can record the correspondences sent by each AP and generate a correspondence set.
[0068] When a certain AP receives an uplink packet without carrying a priority (or the priority cannot be recognized), if no matching item can be found in the corresponding relationship using the first routing information in the uplink packet (for example, when the AP receives an uplink packet sent to a new destination address for the first time, or after the client installs a new application and the client cannot recognize the corresponding packet characteristics, and the uplink packet cannot carry Qos information), the AP can retrieve the set of corresponding relationships from the AC, or send the first routing information obtained from the uplink packet to the AC for the AP (or the AC) to match the first routing information with the set of corresponding relationships. If there is a matching fourth priority in the set of corresponding relationships, the AP uses it to load the fourth priority in the uplink packet and send it to the AC.
[0069] In one case, the AP does not obtain a matching first priority from either its own corresponding relationship or the set of corresponding relationships of the AC. At this time, a default priority can be added to the uplink packet and sent to the AC.
[0070] In this embodiment, in order to reduce the resources occupied by the corresponding relationship in the AP, a central device for storing the corresponding relationship can be set up. The corresponding relationships obtained by each AP can be stored in this central device, and this central device can be connected to each AP or the AC.
[0071] In another embodiment, when the AC device receives a downlink packet from the public network, if the downlink packet does not carry a DSCP priority, the AC can obtain the second routing information of the downlink packet and use the second routing information to match the set of corresponding relationships in the AC. If a matching fifth priority is obtained, the fifth priority is loaded in the downlink packet and sent to the AP.
[0072] In this embodiment, according to the communication principle, the source and destination addresses of the uplink packet are opposite to those of the downlink packet. Therefore, when the AC uses the second routing information to match the set of corresponding relationships, it needs to swap the source and destination addresses in the second routing information first.
[0073] In another embodiment, when the AC determines that the downlink packet does not carry a priority, the AC can directly send the downlink packet to the AP. Then, the AP that receives the downlink packet from the AC can perform the following steps, as Figure 2 shown,
[0074] S201 Receive the downlink packet sent by the AC and obtain the second routing information from the downlink packet;
[0075] S202 Use the second routing information to obtain a matching second priority from the corresponding relationship between the routing information and the priority;
[0076] S203 Load the second priority in the downlink packet and send it to the client.
[0077] In step S201, the category of the second routing information obtained by the AP from the downlink packet can correspond to the routing information category in the corresponding relationship stored by itself. Moreover, since the source and destination addresses in the routing information of the downlink packet are opposite to those in the routing information of the uplink packet, after the AP obtains the second routing information, it is necessary to swap the source and destination addresses in the second routing information. Specifically, when the corresponding relationship stored by the AP is the information in Table 1, the second routing information obtained by the AP is the source address information, protocol number, and source port information. The second routing information is used to match the destination address, protocol number, and destination port information in the corresponding relationship.
[0078] When the corresponding relationship stored by the AP is the information in Table 2, the processing principle is similar to that of Table 1 and will not be elaborated here.
[0079] In another case, when the AP fails to find a matching item by matching the second routing information with the corresponding relationship, the AP can obtain a set of corresponding relationships from the AC and use the second routing information to match the set of corresponding relationships. When there is a matching fifth priority, the fifth priority is loaded in the downlink packet and sent to the client.
[0080] Since the downlink packet sent by the AP to the client is a wireless packet, when the AP obtains the second priority (Qos priority) through matching, the second priority can be directly loaded in the downlink packet and sent to the client's air interface.
[0081] It can be seen from the above embodiments that when each AP receives an uplink packet, it can obtain the priority in the uplink packet and establish a corresponding relationship in combination with the routing information of the uplink packet. When encountering an uplink packet without a carried priority, it can match the routing information of the uplink packet with the corresponding relationship to obtain the corresponding priority. In this way, it can effectively avoid the situation where the AC cannot recognize the actual priority of the downlink packet or the AP cannot perform Qos guarantee on the traffic with the correct Qos priority, thus affecting the user experience.
[0082] In this embodiment, in order to avoid being maliciously attacked, an aging time is set for the corresponding relationship recorded by the AP (AC), or a quantity limit is imposed on the recorded corresponding relationship items.
[0083] Based on the same inventive concept as the above method embodiments, the present disclosure also provides an AP, which includes:
[0084] A receiving module, configured to receive an uplink packet sent by a client and obtain first routing information from the uplink packet;
[0085] A matching module, configured to obtain a matched first priority from the correspondence between routing information and priorities by using the first routing information;
[0086] A sending module, configured to load the first priority onto an uplink message and send it to the AC.
[0087] Optionally, the receiving module is further configured to receive a downlink message sent by the AC, and obtain second routing information from the downlink message;
[0088] The matching module is further configured to obtain a matched second priority from the correspondence between routing information and priorities by using the second routing information;
[0089] The sending module is further configured to load the second priority onto a downlink message and send it to the client.
[0090] Optionally, the receiving module is further configured to receive an uplink message sent by the client, obtain third routing information and a third priority from the uplink message, and generate a correspondence between routing information and priorities by using the third routing information and the third priority;
[0091] The sending module is further configured to send the generated correspondence between routing information and priorities to the AC, so that the AC generates a set of correspondences by using the correspondences between routing information and priorities sent by each client.
[0092] An embodiment of the present disclosure further provides an AP, including: a memory, a processor, and a program stored on the memory and executable on the processor, where when the program is executed by the processor, the method steps of any of the above embodiments are implemented.
[0093] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the method steps of any of the above embodiments are implemented.
[0094] The specific embodiments of this specification are described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0095] Those skilled in the art will readily conceive of other embodiments of the present specification after considering the specification and practicing the invention claimed herein. The present specification is intended to cover any variations, uses, or adaptations of the present specification, which follow the general principles of the present specification and include known common general knowledge or conventional technical means in the technical field not claimed in the present specification. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present specification are pointed out by the following claims.
[0096] It should be understood that the present specification is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present specification is only limited by the appended claims.
[0097] The above are only the preferred embodiments of the present specification and are not intended to limit the present specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present specification shall be included within the scope of protection of the present specification.
Claims
1. A method for processing a message, characterized in that, The method includes: Receiving an uplink packet sent by a client, and obtaining first routing information from the uplink packet; Using the first routing information to obtain a matching first priority from the correspondence between routing information and priorities; Loading the first priority onto the uplink packet and sending it to the AC; Wherein, the priority is a QoS priority; The loading the first priority onto the uplink packet and sending it to the AC includes: Mapping the first priority to the DSCP priority of the IP packet; Loading the DSCP priority onto the uplink packet and sending it to the AC; Wherein, the method for obtaining the correspondence between routing information and priorities includes: Receiving an uplink packet sent by a client, obtaining third routing information and a third priority from the uplink packet, and generating a correspondence between routing information and priorities by using the third routing information and the third priority; Sending the generated correspondence between routing information and priorities to the AC, so that the AC generates a set of correspondences by using the correspondences between routing information and priorities sent by each client.
2. The method according to claim 1, characterized in that, The method further includes: Receiving a downlink packet sent by the AC, and obtaining second routing information from the downlink packet; Using the second routing information to obtain a matching second priority from the correspondence between routing information and priorities; Loading the second priority onto the downlink packet and sending it to the client.
3. The method according to claim 1, wherein When the matching first priority cannot be obtained from the correspondence between routing information and priorities by using the first routing information, the method further includes: Using the first routing information to obtain a matching fourth priority from the set of correspondences in the AC; Loading the fourth priority onto the uplink packet and sending it to the AC.
4. The method according to claim 2, wherein When the matching second priority cannot be obtained from the correspondence between routing information and priorities by using the second routing information, the method further includes: Using the second routing information to obtain a matching fifth priority from the set of correspondences in the AC; Loading the fifth priority onto the downlink packet and sending it to the client.
5. The method according to claim 1, wherein The routing information in the correspondence between routing information and priorities at least includes: destination address information, protocol number, and port information.
6. An AP, characterized in that, The AP includes: A receiving module, configured to receive an uplink packet sent by a client, and obtain first routing information from the uplink packet; A matching module, configured to use the first routing information to obtain a matching first priority from the correspondence between routing information and priorities; A sending module, configured to load the first priority onto the uplink packet and send it to the AC; Wherein, the priority is a QoS priority; The sending module is specifically configured to map the first priority to the DSCP priority of the IP packet, and load the DSCP priority onto the uplink packet and send it to the AC; Wherein, the receiving module is further configured to receive an uplink packet sent by a client, obtain third routing information and a third priority from the uplink packet, and generate a correspondence between routing information and priorities by using the third routing information and the third priority; The sending module is further configured to send the correspondence between the generated routing information and the priority to the AC, so that the AC generates a correspondence set by using the correspondence between the routing information and the priority sent by each client.
7. The AP according to claim 6, wherein the receiving module is further configured to receive a downlink packet sent by the AC and obtain second routing information from the downlink packet; the matching module is further configured to obtain a matching second priority from the correspondence between the routing information and the priority by using the second routing information; the sending module is further configured to load the second priority into the downlink packet and send it to the client.
8. An AP, characterized in that, The AP includes: a memory, a processor, and a program stored on the memory and executable on the processor. When the program is executed by the processor, the method steps described in any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium, characterized in that, A program is stored on the computer-readable storage medium. When the program is executed by the processor, the method steps described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Equipment and method based on application layer protocol selection link
CN103067276A
Method and system for mapping priority of messages of wireless access equipment
CN105142181A
Data stream transmission method, device and system
CN106209675A