Disclosure of Invention
The invention provides a method and a system for accelerating a wireless terminal, which are used for solving the technical problem that partial service with small delay and small flow needs to be forwarded preferentially in the prior art.
The invention relates to a method for accelerating wireless terminals, which comprises the following steps:
S1, setting all services of a wireless terminal or acceleration of a plurality of services of the wireless terminal;
S2, updating a data table and a service pool, and then sending the information and the priority of the newly configured wireless terminal to an adaptation layer;
And S3, the adaptation layer adapts the priority of the wireless terminal according to the acquired MAC and the corresponding priority of the wireless terminal and sends the priority to the wireless driving layer, and the wireless driving layer updates the sending priority of a plurality of acceleration services or all services of the wireless terminal.
The invention further improves, in step S2, the matching timing detection operation is set, the updating operation is periodically carried out, the method for accelerating the wireless terminal further comprises step S4, the matching period arrives, the items in the service pool are traversed and acquired, and if the items are set with priority, the priority is not repeatedly configured.
The invention further improves, and the step S4 also comprises the steps of judging whether the accelerated all-service wireless terminal or a plurality of accelerated services in the wireless terminal are on line, if so, accelerating normally, and if not, deleting the wireless terminal or the service items in the data packet and the service pool.
The invention further improves, if a plurality of acceleration services of the wireless terminal are all off-line and the wireless terminal is on-line, the priority of the wireless terminal is adjusted to be a common level, and acceleration processing is not performed.
The invention further improves, the data table comprises a MAC-IP table, a connection table, an ARP table and a connection tracking table, and the service pool comprises a service IP pool and a service MAC pool.
The invention further improves, sets up the processing method of the whole business acceleration of the wireless terminal as:
(1) When the wireless terminal is connected, the wireless acceleration page displays an associated wireless terminal list;
(2) Selecting a wireless terminal needing acceleration and issuing the wireless terminal to a server;
(3) After receiving the data, the server stores the data into a service MAC pool database table in a database, and when the data is updated, the server notifies an acceleration matching process;
(4) After receiving the update signal, the acceleration matching process updates the service MAC pool, and when the acceleration condition is met, the MAC of the current device is subjected to data assembly in the highest priority mode and is sent to the adaptation layer.
In step S3, after the adaptation layer parses the data, the MAC and pri information of the wireless terminal is sent to the wireless driving layer;
The wireless driving layer acquires the MAC of the set wireless terminal equipment and the corresponding set priority through analyzing the message, and drives to search the terminal information corresponding to the MAC through traversing the current associated terminal list, so as to modify the sending priority.
The invention further improves, after the terminal is off line, the information of the off-line terminal is not displayed in the related wireless terminal list, the ARP table can refresh the on-line state of the wireless terminal, when the matching period comes again, the MAC in the service MAC pool is obtained by traversing, if the corresponding equipment MAC is found to be off line in the ARP table, the corresponding MAC item information in the service MAC pool is deleted, and the information structure of the off-line wireless terminal is driven to be automatically deleted.
The invention further improves, wherein, a plurality of business acceleration of the wireless terminal is realized by pre-configuring an acceleration template file, and the specific processing method is as follows:
(1) Periodically inquiring the equipment existence information in the ARP table, and updating the MAC-IP table according to the information of the MAC and the IP;
(2) Periodically inquiring the accelerating template file information, and updating service IP pool information according to the domain name information and the IP information;
(3) Periodically inquiring connection tracking table information, updating connection table information according to protocol type and receiving and transmitting address information, if the destination IP appears in the connection table and the IP in the service IP are consistent, indicating that a target service appears, and inquiring corresponding equipment MAC information in an MAC-IP table by using a source IP in an entry of the connection tracking table;
(4) And the MAC of the current equipment is subjected to data assembly in a highest priority mode and is sent to an adaptation layer.
The invention also provides a system for realizing the acceleration method of the wireless terminal, which comprises the following steps:
the configuration module is used for configuring an acceleration template or accelerating terminal selection, wherein the acceleration template is used for setting a plurality of services needing acceleration in the wireless terminals, and the accelerating terminal selection is used for setting the wireless terminals needing full service acceleration;
The matching acceleration layer is used for updating the data table and the service pool according to the configuration information of the configuration module, and then sending the newly configured wireless terminal information and the priority to the adaptation module;
the adaptation layer is used for adapting the priority of the wireless terminal according to the acquired MAC of the wireless terminal and the corresponding priority;
and the wireless driving layer is used for updating the sending priority of a plurality of acceleration services or all services of the wireless terminal according to the adaptation information of the adaptation module.
Compared with the prior art, the method has the advantages that the existing terminal flow balancing mechanism is only suitable for a terminal high-flow scene, cannot solve the problem that the priority processing of low-flow and low-delay service is needed, greatly influences the interactive experience of users in a multi-user scene, and can effectively improve the data forwarding and data interactive experience of specific users or user specific data sending priorities by pre-configuring an acceleration template or designating the wireless terminal to accelerate.
All business acceleration requirements of the wireless terminal are covered through the two acceleration modes, and the wireless terminal has strong compatibility and wide application range. Wherein, the acceleration mode advantage of the wireless terminal is specified:
1. The terminal is used as a unit to accelerate all services, namely, as long as the terminal acceleration is selected, all the services on the terminal are preferentially transmitted and processed relative to other terminals;
2. the manual configuration of the user page is supported, and the target terminal is accelerated in a targeted manner.
The pre-set acceleration template takes effect and accelerates the mode advantage:
1. Accelerating the service of the matched terminal, namely accelerating the transmission of the terminal only when the preset template service is matched, and recovering to the default data transmission priority if the terminal does not perform the corresponding template service;
2. the AP decides whether to accelerate the terminal according to the service of the terminal without manual configuration of the user;
3. the accelerating template can be dynamically modified to be effective without version modification, so that the accelerating template can be conveniently expanded.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs, the terms used in the description of this application are for the purpose of describing particular embodiments only and are not intended to be limiting of the application, and the terms "comprising" and "having" and any variations thereof in the description of this application and the claims and the above description of the drawings are intended to cover non-exclusive inclusions. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to make the person skilled in the art better understand the solution of the present application, the technical solution of the embodiment of the present application will be clearly and completely described below with reference to the accompanying drawings.
In order to shorten the communication interaction time of the data service with small flow and small delay and improve the communication speed of the service in the aspect, the invention sets acceleration on the AP such as a gateway and the like and realizes the service acceleration of the network terminal connected with the gateway.
The present example may be applied to a network device such as a router, a switch, or an MPP, which connects a plurality of wireless terminals, in addition to a gateway.
As shown in fig. 1, the method for accelerating the wireless terminal of this example includes the following steps:
S1, setting all services of a wireless terminal or acceleration of a plurality of services of the wireless terminal;
S2, updating a data table and a service pool, and then sending the information and the priority of the newly configured wireless terminal to an adaptation layer;
And S3, the adaptation layer adapts the priority of the wireless terminal according to the acquired MAC and the corresponding priority of the wireless terminal and sends the priority to the wireless driving layer, and the wireless driving layer updates the sending priority of a plurality of acceleration services or all services of the wireless terminal.
Because the wireless network terminal is not always online, and when the wireless network terminal is not online, the wireless network terminal avoids occupying forwarding resources, in the step S2, a matching timing detection operation is set, and updating operation is periodically carried out, the method for accelerating the wireless terminal further comprises the step S4 of traversing the entry in the acquisition service pool when the matching period comes, and if the entry is set with priority, the priority is not repeatedly configured, so that the processing pressure of driving is reduced. If not, the flow process is expedited in accordance with the present invention.
In the periodic detection operation process, if the accelerated full-service wireless terminal or a plurality of accelerated services in the wireless terminal are set to be online, the acceleration is normal, and if the accelerated full-service wireless terminal or a plurality of accelerated services in the wireless terminal are not online, the wireless terminal or the accelerated service items are deleted in the data packet and the service pool. At this time, there are two cases, if the wireless terminal is online, but all accelerated services are offline, the priority of the wireless terminal is adjusted to a common level, no acceleration processing is performed, and if the wireless terminal is not online, all information with the wireless terminal in the system is deleted, and the original priority is automatically disabled.
As shown in fig. 2, as an embodiment of the present invention, this example is described in detail by two aspects of acceleration of several services in the wireless terminal and acceleration of full services in the wireless terminal, respectively.
Example 1 designating Wireless terminal acceleration
The method for accelerating the full service of the wireless terminal is as follows:
1. After the wireless terminal is connected with the AP in a wireless mode, the AP displays a terminal list associated with the AP on a wireless acceleration page, wherein list information comprises names of terminals, MAC (media access control) and options whether to be checked, and if the first terminal needs to be accelerated, the corresponding terminal is checked and issued;
2. after the terminal equipment is checked and issued, the back end BOA (WEB server) receives the data and stores the data into a service MAC pool database table in a database, and when the data is updated, the acceleration matching process is notified;
3. after receiving the update signal, the acceleration matching process updates the service MAC pool, and when the matching period arrives, the corresponding equipment MAC is detected whether to exist in the ARP table, whether to be the wireless equipment MAC or not, whether to be the online equipment, if yes, the current equipment MAC is subjected to data assembly in a priority 7 mode and is sent to the adaptation layer by using a set_sta_pri format command;
4. After the adaptation layer analyzes the command belonging to the set_sta_pri format, the adaptation layer sends the MAC and pri information of the equipment to the wireless driving layer through the message of the TD_OPER;
5. The wireless driving layer acquires the set terminal equipment MAC and the corresponding set priority through analyzing the message, drives to search the terminal information corresponding to the MAC through traversing the associated terminal list of the current AP, modifies the transmission priority of the terminal information, and the higher the priority is, the higher the transmission priority of the corresponding transmission queue is, the smaller the waiting interval and the backoff window of the corresponding transmission is, so that the use right of the channel is easier to be preempted in the complex wireless medium environment;
6. The wireless terminal is not offline, the matching period comes again, the MAC item information in the service MAC pool is obtained through traversal, if the corresponding MAC item is found to be configured with the priority, the priority is not repeatedly configured, and the driving processing pressure is reduced;
7. When the wireless terminal is off line, the information of the off-line terminal is not displayed in the wireless terminal list associated with the page AP, the ARP table can refresh the on-line state of the terminal, when the matching period comes again, the MAC in the service MAC pool is obtained through traversal, if the corresponding equipment MAC is found to be off-line in the ARP table, the corresponding MAC item information in the service MAC pool is deleted, and the information structure of the terminal is automatically deleted due to off-line driving of the terminal, so that the original priority is automatically disabled when the terminal is off-line.
Example 2 preset acceleration template effective acceleration
The method is used for accelerating one or more services in the wireless terminal, and comprises the following steps of:
The AP equipment presets an acceleration template file according to a specified template format, wherein the acceleration template file comprises service related information to be accelerated, if an acceleration function is closed, the following steps are not carried out, and an acceleration function switch is opened by default.
2. The acceleration matching process periodically performs the following processes:
i) Periodically inquiring the equipment existence information in the ARP table, and updating the MAC-IP relation table according to the information of the MAC and the IP;
ii) periodically inquiring the accelerating template file information, and updating the service IP pool information according to the domain name information and the IP information;
iii) Periodically inquiring connection tracking table information, and updating the connection table information according to the protocol type and the receiving and transmitting address information;
3. If the destination IP appearing in the connection table is consistent with the IP in the service IP pool, indicating that the target service appears, inquiring corresponding equipment MAC information in the MAC-IP relation table by using the source IP in the connection tracking table entry;
4. data assembly of the current device MAC in a priority 7 mode is carried out, and a set_sta_pri format command is used for sending to an adaptation layer;
5. The wireless driving layer acquires the set terminal equipment MAC and the corresponding set priority through analyzing the message, drives to search the terminal information corresponding to the MAC through traversing the associated terminal list of the current AP, modifies the transmission priority of the terminal information, and the higher the priority is, the higher the transmission priority of the corresponding transmission queue is, the smaller the waiting interval and the backoff window of the corresponding transmission is, so that the use right of the channel is easier to be preempted in the complex wireless medium environment;
6. if the terminal is not offline and the matching period comes again, if the destination IP in the connection table is consistent with the IP item information in the service IP pool, but the corresponding IP item is configured with priority, the priority is not repeatedly configured, and the driving processing pressure is reduced;
7. And if the matching period arrives again, if the IP in the MAC-IP table does not appear in the connection table, the ARP table is queried, if the MAC corresponding equipment is online, the current equipment MAC is subjected to data assembly in a priority 0 mode and is sent to the adaptation layer by using a set_sta_pri format command, if the MAC corresponding equipment is not online, the corresponding MACIP item information in the service MAC pool is deleted, and the information structure of the terminal is automatically deleted due to offline driving of the terminal, so that the original priority is automatically disabled when the terminal is offline.
The invention also provides a system for realizing the acceleration method of the wireless terminal, which comprises the following steps:
the configuration module is used for configuring an acceleration template or accelerating terminal selection, wherein the acceleration template is used for setting a plurality of services needing acceleration in the wireless terminals, and the accelerating terminal selection is used for setting the wireless terminals needing full service acceleration;
The matching acceleration layer is used for updating the data table and the service pool according to the configuration information of the configuration module, and then sending the newly configured wireless terminal information and the priority to the adaptation module;
the adaptation layer is used for adapting the priority of the wireless terminal according to the acquired MAC of the wireless terminal and the corresponding priority;
and the wireless driving layer is used for updating the sending priority of a plurality of acceleration services or all services of the wireless terminal according to the adaptation information of the adaptation module.
In addition, in the configuration module, the whole service of the wireless terminal is quickened, an acceleration function switch is arranged on the interface, and if the wireless terminal is started to quicken, the wireless terminal list of the page is checked, so that the wireless terminal needing to quicken is directly selected.
The method comprises the steps of realizing acceleration of single or multiple services of a wireless terminal through pre-configuring an acceleration template file, updating data in a database through reading information in the acceleration template file, and carrying out matching acceleration processing on the updated data by a matching acceleration layer.
As a low-delay game service, the invention improves the game experience of the wireless terminal by pre-configuring the game template or designating the wireless terminal to improve the data transmission priority of the game user.
Designating acceleration mode advantage of wireless terminal:
1. The terminal is used as a unit for full service acceleration, namely, as long as the terminal acceleration is selected, all the services on the terminal are preferentially transmitted and processed relative to other terminals, and the operation is very convenient and quick;
2. the manual configuration of the user page is supported, and the target terminal is accelerated in a targeted manner.
The pre-set acceleration template takes effect and accelerates the mode advantage:
1. Accelerating the service of the matched terminal, namely accelerating the transmission of the terminal only when the preset template service is matched, and recovering to the default data transmission priority if the terminal does not perform the corresponding template service;
2. the AP decides whether to accelerate the terminal according to the service of the terminal without manual configuration of the user;
3. the accelerating template can be dynamically modified to be effective without version modification, so that the accelerating template can be conveniently expanded.
The above embodiments are preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, which includes but is not limited to the embodiments, and equivalent modifications according to the present invention are within the scope of the present invention.