CN110233937B - Data transmission method, device, equipment and storage medium - Google Patents

Data transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN110233937B
CN110233937B CN201910695834.1A CN201910695834A CN110233937B CN 110233937 B CN110233937 B CN 110233937B CN 201910695834 A CN201910695834 A CN 201910695834A CN 110233937 B CN110233937 B CN 110233937B
Authority
CN
China
Prior art keywords
wifi
acceleration mode
network acceleration
network
frequency band
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910695834.1A
Other languages
Chinese (zh)
Other versions
CN110233937A (en
Inventor
王子豪
宁斌晖
李刘腾
王奇
余晓贇
孟醒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910695834.1A priority Critical patent/CN110233937B/en
Publication of CN110233937A publication Critical patent/CN110233937A/en
Application granted granted Critical
Publication of CN110233937B publication Critical patent/CN110233937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data transmission method, a device, equipment and a storage medium, wherein the method comprises the following steps: when the application is started, determining whether the application is an application supported by an accelerator; when the application is supported by the accelerator, starting a network acceleration function to select a network acceleration mode adapting to the current network condition, and controlling data transmission based on the selected network acceleration mode; in the application running process, switching the network acceleration modes based on the priority order of the multiple network acceleration modes according to the network condition change condition, and controlling data transmission based on the switched network acceleration modes; when the application is closed, the acceleration function is turned off accordingly. The method can continuously ensure the high-quality data transmission effect, does not need manual operation of a user to start and close the acceleration function, and improves the use experience of the user.

Description

Data transmission method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, device, and storage medium.
Background
With the gradual popularization of terminal devices, various applications depending on the operation of the terminal devices are in a variety, and many of the applications need to perform data interaction with a server through a network in the self-operation process. For some applications that need to communicate with the server frequently, the network environment supporting data transmission is generally required to satisfy the characteristics of low delay and high stability, so as to ensure a better use experience for users.
Nowadays, a user can manually start an acceleration function by using an accelerator and manually close the acceleration function after the acceleration function is finished, so that an acceleration mode is selected by the accelerator according to the network condition of the user at the moment of entering, and the acceleration mode selected by the accelerator can select a more stable network environment for the software application needing acceleration in the transmission process of the application data packet of the software application, so that the requirements of low delay and high stability are met as far as possible.
However, the acceleration scheme only concerns the network situation of the user at the time of entering, and cannot adapt to a complex and variable network environment, so that the actual application effect is not good, the high-quality data transmission effect cannot be continuously guaranteed, the acceleration scheme requires the user to manually operate the opening and closing function every time the user uses the acceleration scheme, and the operation process is complicated and inconvenient to apply.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device, data transmission equipment and a storage medium, which can continuously ensure the high-quality data transmission effect and do not need manual operation of a user to start and close the acceleration function.
In view of this, a first aspect of the present application provides a data transmission method, including:
when an application is started, determining whether the application is an application supported by an accelerator;
when the application is the application supported by the accelerator, starting a network acceleration function, selecting a network acceleration mode adapting to the current network condition, and controlling data transmission based on the selected network acceleration mode;
in the application running process, switching the network acceleration modes according to the network condition change condition and based on the priority order of the multiple network acceleration modes, and controlling data transmission based on the switched network acceleration modes;
and when the application is closed, closing the network acceleration function.
A second aspect of the present application provides a data transmission apparatus, including:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining whether an application is supported by an accelerator when the application is started;
the starting acceleration module is used for starting a network acceleration function and selecting a network acceleration mode adapting to the current network condition when the application is the application supported by the accelerator, and controlling data transmission based on the selected network acceleration mode;
the dynamic switching module is used for switching the network acceleration modes according to the change conditions of network conditions and on the basis of the priority order of the multiple network acceleration modes in the application running process and controlling data transmission on the basis of the switched network acceleration modes;
and the closing module is used for closing the network acceleration function when the application is closed.
A third aspect of the present application provides a terminal device, comprising:
a processor and a memory; wherein the memory is for storing a computer program;
the processor is configured to perform the data transmission method according to the first aspect according to the computer program.
A fourth aspect of the present application provides a computer-readable storage medium for storing a computer program for executing the data transmission method according to the first aspect.
A fifth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data transmission method of the first aspect described above.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a data transmission method, which can flexibly and intelligently switch a network acceleration mode in the face of a complex and changeable network environment, can automatically monitor the starting and closing of an application, correspondingly start and close a network acceleration function aiming at the application supported by an accelerator, and simplifies the operation required to be executed by a user. Specifically, in the data transmission method provided by the application, when it is monitored that an application is started, it is determined whether the application is an application supported by an accelerator; if yes, starting a network acceleration function aiming at the application, selecting a network acceleration mode adaptive to the current network condition, and controlling data transmission based on the network acceleration mode; in the application running process, correspondingly switching the network acceleration modes based on the priority order of the multiple network acceleration modes according to the network condition change condition, and controlling data transmission based on the switched network acceleration modes; when the application is closed, the terminal device automatically closes the network acceleration function opened for the application. Compared with the existing acceleration scheme in the related art, the data acceleration method provided by the application can automatically start the network acceleration function when monitoring that the application supported by the accelerator is started, and automatically close the network acceleration function when monitoring that the application is closed, and does not need manual operation of a user; in the application running process, the data acceleration method can adaptively switch the network acceleration mode according to the change condition of the network condition so as to ensure that the adopted network acceleration mode is adaptive to the actual condition of the network, thus the network acceleration effect can be continuously kept to be optimal, and the use experience of a user is improved to a certain extent.
Drawings
Fig. 1 is a schematic view of an application scenario of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic view of an application interface provided with an accelerator interface switch according to an embodiment of the present application;
fig. 4 is a schematic diagram of WiFi and mobile data network acceleration modes provided by an embodiment of the present application;
fig. 5 is a schematic diagram of dual band-based data transmission of a wireless access point according to an embodiment of the present application;
fig. 6a is a schematic flowchart of selecting a network acceleration mode according to an embodiment of the present application;
fig. 6b is a schematic diagram of a network acceleration mode switching method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a terminal device and a dual-band wireless AP according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram illustrating a connection between a terminal device and a dual wireless AP according to an embodiment of the present application;
FIG. 9 is a diagram illustrating an application transmitting data via a multilink channel according to an embodiment of the present application;
fig. 10 is a schematic diagram of a dual WiFi acceleration mode configuration page provided by an embodiment of the present application;
fig. 11 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another data transmission device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The inventor researches and discovers that the existing acceleration scheme in the related art mainly has the following technical problems: in the application running process, the acceleration is always carried out based on a network acceleration mode which is adaptive to the network condition of the user at the time of entering, and the better network acceleration effect cannot be continuously ensured; and, every time of acceleration, the network acceleration function needs to be turned on and off by manual operation of a user, so that the operation is complicated and the user experience is poor.
In view of the technical problems in the related art, the embodiments of the present application provide a data transmission method, which can adaptively switch a network acceleration mode according to an actual network condition change situation in a complex and variable network environment, that is, implement intelligent switching of the network acceleration mode, ensure that the adopted network acceleration mode is always adapted to the actual network situation, and further ensure that the network acceleration effect is continuously kept optimal. In addition, the method can also automatically monitor the starting and closing of the application, correspondingly start and close the network acceleration function aiming at the application supported by the accelerator, does not need manual operation of a user, simplifies the operation flow required to be executed by the user, and improves the use experience of the user.
It should be understood that the data transmission method provided by the embodiment of the present application may be applied to terminal devices with data transmission capability, such as smart phones, computers, Personal Digital Assistants (PDAs), tablet computers, and the like; the data transmission method may be specifically stored in the terminal device in the form of an Application (APP), and when the terminal device runs the APP, the function of accelerating data transmission may be implemented accordingly. The application program can be developed and formed based on a Client/Server (C/S) architecture, and can also be developed and formed based on a Browser/Server (B/S) architecture; the application may be a stand-alone application or a functional module, plug-in, applet, etc. integrated on top of other applications.
The data transmission method provided by the embodiment of the present application is introduced below with reference to an actual application scenario.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a data transmission method provided in an embodiment of the present application. As shown in fig. 1, the application scenario includes: terminal device 110 and server 120. An accelerator (also referred to as accelerator APP)111 and a game APP112 run on the terminal device 110, and the terminal device 110 runs the accelerator 111, that is, the accelerator APP may be an application program embedded in an operating system of the terminal device 110, and the game APP112 is an application supported by the accelerator 111; the server 120 is configured to provide related service data for the game APP112, and is capable of processing operation data generated during the running process of the game APP112 accordingly and returning related processing result data to the game APP 112.
It should be understood that the game APP112 is only an example, and in practical applications, the applications supported by the accelerator 111 may also be other application programs, such as a music playing application, a video playing application, a social application, and the like, and the applications supported by the accelerator are not limited in any way. Besides, the terminal device 110 may run the accelerator 111 and the game APP112, and may also run other applications, and the applications run in the terminal device 110 are not limited in any way.
When the game APP112 is started, the terminal device 110 correspondingly determines whether the game APP112 is an application supported by the accelerator 111, that is, whether the accelerator 111 can provide acceleration service for data transmission between the game APP112 and the server 120. If game APP112 is an application supported by accelerator 111, terminal device 110 may trigger accelerator 111 to start a network acceleration function, select a network acceleration mode adapted to current network conditions, and transmit data generated by game APP112 to server 120 based on the network acceleration mode.
In the running process of the game APP112, the terminal device 110 may monitor a change condition of a network condition in real time, and switch a currently-used network acceleration mode according to a priority order of multiple network acceleration modes provided by the accelerator 111 according to the monitored change condition of the network condition, and further transmit data generated by the game APP112 to the server 120 based on the switched network acceleration mode. When the terminal device 110 detects that the game APP112 is closed, the network acceleration function started by the accelerator 110 for the game APP112 is correspondingly closed.
Thus, in the face of a complex and variable network environment, the terminal device 110 can realize intelligent switching of the network acceleration mode, and continuously ensure a high-quality network acceleration effect; and the terminal device 110 may automatically monitor the start and close of applications and turn on and off the network acceleration function accordingly for the applications supported by the accelerator 110 without manual operation by the user.
It should be understood that the application scenario shown in fig. 1 is only an example, and in practical application, the data transmission method provided in the embodiment of the present application may also be applied to other application scenarios, and no limitation is made to the application scenario of the data transmission method provided in the embodiment of the present application.
The data transmission method provided by the present application is described below by way of an embodiment.
Referring to fig. 2, fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step 201: when an application is launched, it is determined whether the application is an application supported by an accelerator.
The method comprises the steps that a terminal device monitors whether each application installed by the terminal device is started in real time, and when the fact that a certain application is started is monitored, whether the application is supported by an accelerator is further judged, namely whether the accelerator needs to start a network acceleration function aiming at data generated in the running process of the application is judged; it should be understood that the data generated during the application running process herein specifically includes: data sent by the terminal device to the server and data sent by the server to the terminal device.
The application supported by the accelerator may be an application that is preset by a user and needs to be accelerated by a network. The present application provides two exemplary ways to set up the applications supported by the accelerator by the user:
in one possible implementation, the user may set the applications that he or she supports through the accelerator. Specifically, an application selection control is configured on an application interface of the accelerator, and a user can select an application that needs to be network-accelerated from various applications installed in the terminal device through the application selection control, so as to serve as the application supported by the accelerator.
In another possible implementation, the user may set the application as an application supported by the accelerator by opening an accelerator interface provided in the application. Specifically, in the process of developing the application, an accelerator interface can be set for some applications which need to communicate with the server frequently, so that the applications have the function of calling an accelerator to perform network acceleration on data generated by the applications; when the terminal device is simultaneously installed with such an application and an accelerator provided with an accelerator interface, a user can set the application as an application supported by the accelerator by selecting to open the accelerator interface provided in the application.
Fig. 3 is a schematic diagram of an exemplary application interface provided with an accelerator interface switch. A network acceleration switch 301 and an automatic update switch 302 are included in the application interface; the user touches the network acceleration switch 301 to turn on, that is, the application can be set as the application supported by the accelerator accordingly, and the related introduction content of the network acceleration function can also be displayed below the network acceleration switch 301, so that the user can know about the network acceleration function provided by the accelerator; when the user touches the automatic update switch 302, the updated network acceleration function is automatically used when the network acceleration function is updated. In addition, the user can also view the application which currently supports the network acceleration function in the terminal equipment through the space of the supported application in the touch application interface.
It should be understood that the above two possible implementations are only examples, and in practical applications, the user may also set the application installed in the terminal device as the application supported by the accelerator by other means, and the manner in which the user sets the application supported by the accelerator is not limited in any way.
It should be noted that, in an actual application, besides the applications supported by the accelerator may be manually set by the user, the accelerator may also determine whether the application started in the terminal device is an application supported by the accelerator according to the application list and/or the application type list configured by the accelerator. Specifically, in the process of developing the accelerator, an application list and/or an application type list may be implanted into the accelerator, where the application list is used to record application names (or identifiers capable of uniquely representing applications) supported by the accelerator, and the application type list is used to record application type identifiers supported by the accelerator, such as game applications, audio/video playing applications, and the like; correspondingly, when monitoring that an application is started, the terminal device equipped with the accelerator can judge whether the application name is the application name recorded in the application list and/or judge whether the application type to which the application belongs is the application type recorded in the application type list, if so, further judge whether the application has started the acceleration function, and if so, determine that the application is the application supported by the accelerator.
Step 202: and when the application is the application supported by the accelerator, starting a network acceleration function, selecting a network acceleration mode adapting to the current network condition, and controlling data transmission based on the selected network acceleration mode.
After determining that the application started in the terminal device is the application supported by the accelerator in step 201, the terminal device starts a network acceleration function for the application through the accelerator, that is, performs network acceleration for a data transmission process between the application and the server. Specifically, the terminal device may first select a network acceleration mode adapted to the current network condition according to the current network condition, and then control a data transmission process between the application and the server based on the network acceleration mode.
It should be noted that the accelerator is generally capable of providing multiple network acceleration modes, different network acceleration modes are adapted to different network conditions, and data transmission is generally performed based on different data transmission channels in different network acceleration modes.
In one possible scenario, the plurality of network acceleration modes that the accelerator can provide include at least two of the following modes: a dual WiFi (Wireless Fidelity) acceleration mode, a WiFi and mobile data network acceleration mode, a single mobile data network acceleration mode, and a single WiFi acceleration mode. The dual-WiFi acceleration mode refers to a mode for carrying out data transmission based on two WiFi channels, namely main WiFi and auxiliary WiFi, under the dual-WiFi acceleration mode, the terminal equipment can simultaneously carry out data transmission by utilizing the two WiFi channels, namely the main WiFi and the auxiliary WiFi, and also can carry out data transmission by only utilizing one WiFi channel with better data transmission effect in the main WiFi and the auxiliary WiFi. The WiFi and mobile data network acceleration mode refers to a mode for carrying out data transmission based on two data channels of WiFi and mobile data networks, and under the WiFi and mobile data network acceleration mode, the terminal equipment can simultaneously carry out data transmission by utilizing the two data channels of WiFi and mobile data networks, and also can carry out data transmission by only utilizing one data channel with better data transmission effect in the WiFi and mobile data networks; as shown in fig. 4, when the WiFi channel data transmission effect is deteriorated due to a distance change between the terminal device and the router, a WiFi channel load change, and the like, the terminal device seamlessly switches to the mobile data network for data transmission when it is determined that connectivity and delay of the mobile data network are normal. The single mobile data network acceleration mode refers to a mode for data transmission based on only a mobile data network. The single WiFi turbo mode refers to a mode in which data transmission is performed based on only a WiFi channel.
It should be noted that, in some cases, WiFi may perform data transmission based on dual bands simultaneously, that is, data transmission of dual bands is realized based on one wireless Access Point (AP), as shown in fig. 5, the wireless AP may connect a 2.4GHz band and a 5GHz band simultaneously, and transmit a service data stream using the 2.4GHz band and the 5GHz band; therefore, in the above-mentioned modes (such as the dual-WiFi acceleration mode, the WiFi and mobile data network acceleration mode, and the single WiFi acceleration mode) in which data transmission can be performed based on the WiFi channel, when data is transmitted using the WiFi channel, data transmission can be performed based on both the dual frequency bands, or data transmission can be performed based on one of the dual frequency bands in which the data transmission effect is better. In addition, the mobile data network may specifically include any one of 3G, 4G and 5G mobile data networks.
It should be understood that the above mentioned several network acceleration modes are only examples, and in practical applications, the network acceleration modes in the embodiments of the present application may also include other modes, and the network acceleration modes in the present application are not limited in any way.
For convenience of understanding the specific implementation process of step 202, it is assumed that the network acceleration modes provided by the accelerator include a dual WiFi acceleration mode, a WiFi and mobile data network acceleration mode, a single mobile data network acceleration mode and a single WiFi acceleration mode, and the priority order corresponding to the network acceleration modes is from high to low, and the dual WiFi acceleration mode, the WiFi and mobile data network acceleration mode, the single WiFi acceleration mode and the single mobile data network acceleration mode are sequentially performed, for example, a manner of selecting the network acceleration mode when the terminal device starts the network acceleration function is described.
Referring to fig. 6a, fig. 6a is a schematic flowchart of a process for selecting a network acceleration mode by a terminal device. As shown in fig. 6a, when the terminal device starts the network acceleration function for the application supported by the accelerator, it may first determine whether the WiFi switch and the mobile data network switch of the terminal device are both turned on, and if not, the network acceleration function is not started; if so, continuing to judge whether the dual-WiFi switch is turned on, if not, displaying related prompt contents by the terminal equipment to guide a user to turn on the dual-WiFi switch, if so, further judging whether auxiliary WiFi is bound currently, and if not, displaying related prompt contents by the terminal equipment to guide the user to bind the auxiliary WiFi and construct an association relationship between the main WiFi and the auxiliary WiFi; after the auxiliary WiFi is bound, the terminal equipment pulls up a Virtual Private Network (VPN) connection proxy and selects a double-WiFi acceleration mode; if the user selects not to turn on the dual-WiFi switch, under the condition that both the main WiFi and the mobile data network channels are available, the terminal equipment can pull up the VPN connection agent, and selects a network acceleration mode to be adopted from a WiFi and mobile data network acceleration mode, a single-WiFi acceleration mode and a single-mobile data network acceleration mode according to the sequence of the priority levels from high to low.
It should be noted that, when the network acceleration mode is selected, the terminal device needs to consider the data transmission effects of the main WiFi channel, the auxiliary WiFi channel, and the mobile data network channel in addition to whether the WiFi switch, the mobile data network switch, and the dual WiFi switch are turned on; for example, in the case that the data transmission effect of both the primary WiFi channel and the secondary WiFi channel is poor, the terminal device may select the WiFi and mobile data network acceleration modes instead of the dual WiFi acceleration modes. In this way, the selected network acceleration mode is guaranteed to be capable of effectively accelerating the transmission of data.
Step 203: and in the application running process, switching the network acceleration modes based on the priority order of the multiple network acceleration modes according to the network condition change condition, and controlling data transmission based on the switched network acceleration modes.
In the application running process, the terminal device can monitor the change condition of the network condition in real time, and then switch the adopted network acceleration mode according to the monitored change condition of the network condition and the preset priority sequence of multiple network acceleration modes so as to ensure that the switched network acceleration mode is matched with the current network condition. And then, the data generated by the application operation is subjected to accelerated transmission based on the switched network acceleration mode, so that a good data transmission effect can be achieved all the time in the application operation process.
In order to facilitate understanding of the specific implementation process of step 203, it is still assumed that the multiple network acceleration modes provided by the accelerator include a dual WiFi acceleration mode, a WiFi and mobile data network acceleration mode, a single mobile data network acceleration mode, and a single WiFi acceleration mode, and the default priority orders corresponding to the multiple network acceleration modes are, in order from high to low: for example, a dual WiFi acceleration mode, a WiFi and mobile data network acceleration mode, a single WiFi acceleration mode, and a single mobile data network acceleration mode are introduced to a process of switching the network acceleration modes based on the default priority order according to a network condition change.
If the terminal device detects that the auxiliary WiFi channel is interrupted, the network acceleration mode is switched to a WiFi and mobile data network acceleration mode, and data generated in the application running process is transmitted by using the main WiFi channel and the mobile data network channel. If the terminal device detects that the main WiFi channel is interrupted, the auxiliary WiFi channel cannot be used as an independent data transmission channel, so the network acceleration mode needs to be switched to a single mobile data network acceleration mode, and data generated in the application running process is transmitted by using the mobile data network. After the network acceleration mode is switched to the WiFi and mobile data network acceleration mode, once the terminal equipment detects that the auxiliary WiFi channel is reconnected, the network acceleration mode is switched to the double-WiFi acceleration mode with higher priority. Similarly, if the currently used network acceleration mode is the single WiFi acceleration mode or the single mobile data network acceleration mode, after detecting that the mobile data network data channel or the WiFi channel is reconnected, the network acceleration mode is switched to the WiFi and mobile data network acceleration modes.
In order to facilitate understanding of the switching manner of the network acceleration mode, the switching manner of the network acceleration model is described in detail below with reference to fig. 6 b. As shown in fig. 6b, in the case that the terminal device is in the dual-WiFi acceleration mode, when the primary WiFi is disconnected, the secondary WiFi cannot be used as an independent data transmission channel, and therefore the terminal device directly switches to the single-mobile data network acceleration mode, and performs data transmission by using the mobile data network channel, during which the terminal device continuously tries to connect the primary WiFi link, so as to switch back to the dual-WiFi acceleration mode for network acceleration after the successful connection attempt is made. Under the condition that the terminal equipment is in the dual-WiFi acceleration mode, when the auxiliary WiFi is disconnected, data transmission is continuously carried out by taking the main WiFi link as the main WiFi link, namely the data transmission is carried out by adopting the single-WiFi acceleration mode, in the process, the terminal equipment can still continuously try to connect the auxiliary WiFi so as to switch back to the dual-WiFi acceleration mode for network acceleration after the successful connection attempt is carried out.
If the attempt to connect the auxiliary WiFi fails, the mobile data network link is connected, and the mode is switched to a WiFi and mobile data network acceleration mode. In the process that the terminal equipment performs network acceleration by using the WiFi and mobile data network acceleration modes, if the WiFi link is disconnected, the terminal equipment is switched to the single mobile data network acceleration mode, and when the terminal equipment is in the single mobile data network acceleration mode, the terminal equipment continuously tries to connect the WiFi link, so that after the connection is successfully tried, the terminal equipment is switched to the WiFi and mobile data network acceleration mode to perform network acceleration. In the process that the terminal device performs network acceleration by using the WiFi and mobile data network acceleration modes, if the mobile data network link is disconnected, the terminal device switches to the single WiFi acceleration mode, and when the terminal device is in the single WiFi acceleration mode, the terminal device may continuously try to connect the auxiliary WiFi link so as to switch to the dual WiFi acceleration mode for network acceleration after the connection is tried successfully, or the terminal device may continuously connect the mobile data network link so as to switch to the WiFi and mobile data network acceleration mode for network acceleration after the connection is tried successfully.
The switching mode of the network acceleration mode can be correspondingly switched to the network acceleration mode adaptive to the current network environment according to the change condition of the network environment, so that the optimal network acceleration mode is provided for the user under the condition that the user does not sense the change condition, namely under the condition that the foreground operation of the user is not influenced, the data transmission can be supported on the basis of the most appropriate network acceleration mode all the time in the application running process, and better user experience is brought to the user. It should be understood that the above switching manner of the network acceleration mode is only an example, and in practical application, the priority order of multiple network acceleration modes provided by the accelerator may be set according to actual situations, and the network acceleration mode is switched by using a corresponding switching manner in the application running process; the priority order of the network acceleration mode is not limited at all, and the switching mode of the network acceleration mode is not limited at all.
As described above, in some cases, the WiFi channel may perform data transmission based on dual bands at the same time, and thus, in a network acceleration mode (e.g., dual WiFi acceleration mode, WiFi and mobile data network acceleration mode, and single WiFi acceleration mode) for network acceleration based on the WiFi channel, network acceleration may be further achieved based on dual bands of a wireless AP. If the wireless AP supports the first frequency band and the second frequency band, and the coverage of the first frequency band is smaller than that of the second frequency band, when controlling data transmission based on the network acceleration mode, the terminal device may select an adaptive frequency band according to a position relationship between a current position of the terminal device and a coverage of a dual frequency band supported by the wireless AP, and transmit and receive data through the selected frequency band.
Specifically, when the current position of the terminal device is within the coverage range of the first frequency band, the terminal device may perform data transceiving in parallel through the two frequency bands of the wireless AP; when the current position of the terminal device is at the edge of the coverage area of the first frequency band, the terminal device can determine whether to continue to receive and transmit data through the first frequency band according to the wireless performance index, and meanwhile, keep receiving and transmitting data through the second frequency band; when the current position of the terminal device is outside the coverage of the first frequency band but within the coverage of the second frequency band, the terminal device preferentially receives and transmits data through the second frequency band.
In order to facilitate understanding of the above-mentioned specific implementation process of data transceiving based on the dual frequency bands of the wireless AP, taking the dual frequency bands supported by the wireless AP as 2.4GHz and 5GHz, respectively, as an example, a process of controlling data transmission is described with reference to fig. 7.
As shown in fig. 7, the coverage of 5GHz supported by the wireless AP is less than the coverage of 2.4 GHz. As shown in 701, when the terminal device is in a coverage range of 5GHz, the terminal device may be simultaneously connected to two frequency bands of 2.4GHz and 5GHz, and an application in the terminal device that starts a network acceleration function may simultaneously transmit and receive data through the 2.4GHz and 5 GHz. As shown in 702, when the terminal device is located at the edge of the coverage area of 5GHz, the terminal device may determine whether to continue to transmit and receive data through the 5GHz band according to wireless performance indexes such as wireless network signal strength, and meanwhile continue to transmit and receive data through the 2.4GHz band. As shown in 703, when the terminal device is outside the coverage of 5GHz and within the coverage of 2.4GHz, the 5GHz band cannot be normally connected, and at this time, data is preferentially received and transmitted through the 2.4GHz band.
Because the WiFi channel can simultaneously perform data transmission based on dual frequency bands, under the condition that the multiple network acceleration modes provided by the accelerator include a dual WiFi acceleration mode, the dual WiFi acceleration mode can implement network acceleration based on the dual frequency bands supported by the first wireless AP and the second wireless AP respectively; the first wireless AP supports a first frequency band and a second frequency band, the second wireless AP supports a third frequency band and a second frequency band, the coverage range of the third frequency band is smaller than that of the first frequency band, and the coverage range of the first frequency band is smaller than that of the second frequency band; when controlling data transmission based on the dual-WiFi acceleration mode, the terminal equipment needs to perform network acceleration according to the requirement and applies wireless signal indexes of each frequency band of the first wireless AP and the second wireless AP, selects adaptive frequency bands from the first frequency band, the second frequency band and the third frequency band, and then performs data receiving and transmitting based on the selected frequency bands.
Specifically, the terminal device may select two links with the highest and second highest current link quality from the first frequency band, the second frequency band, and the third frequency band, use the selected link with the highest quality as a main WiFi link, use the selected link with the second highest quality as an auxiliary WiFi link, and perform data transceiving through the main WiFi link and the auxiliary WiFi link.
In order to facilitate understanding of the above specific implementation process of data transceiving based on the dual-WiFi acceleration mode, the following takes the dual-WiFi acceleration mode to implement network acceleration based on dual bands supported by the wireless AP1 and the wireless AP2, and the process of controlling data transmission is described with reference to fig. 8.
As shown in fig. 8, the wireless AP1 supports a 5GHz band and a 2.4GHz band, and the wireless AP2 supports a 60GHz band and a 2.4GHz band, where a coverage of the 60GHz band is smaller than a coverage of the 5GHz band, and a coverage of the 5GHz band is smaller than a coverage of the 2.4GHz band. As shown in 801, when the terminal device is located in a coverage area of a 5GHz band, the terminal device detects that a band with the highest current link quality is 5GHz, and a band with the second highest current link quality is 60GHz, and accordingly, the terminal device may use the 5GHz band as a main WiFi link and use the 60GHz band as an auxiliary WiFi link to receive and transmit data. As shown in 802, when the terminal device is located at the edge of the coverage area of the 60GHz band, the terminal device detects that the band with the highest current link quality is 60GHz, and the band with the second highest current link quality is 5GHz, and accordingly, the terminal device may use the 60GHz band as the main WiFi link and the 5GHz band as the auxiliary WiFi link. As shown in 803, when the terminal device is located outside the coverage of the 5GHz band, outside the coverage of the 60GHz band, and within the coverage of the 2.4GHz band, the terminal device may correspondingly select, according to the link qualities corresponding to the 5GHz band, the 60GHz band, and the 2.4GHz band, a link with the highest current link quality, such as the 2.4GHz band, as a primary WiFi link, and select a link with the second highest current link quality, such as the 5GHz band or the 60GHz band, as an auxiliary WiFi link.
It should be understood that the selection manner of the primary WiFi link and the secondary WiFi link shown in fig. 8 is only an example, and in practical applications, the selection result that the terminal device can obtain based on the actual link quality is not limited to the selection result shown in fig. 8.
It should be noted that, when the terminal device performs data transmission based on multiple link channels, the terminal device may monitor the transmission efficiency of the multiple link channels, and when the transmission efficiency of one of the link channels is lower than a preset threshold, switch the data to be transmitted to another link channel for transmission; or, when the terminal device performs data transmission based on one link channel, the terminal device may perform data transmission according to the designated priority of the data packet.
Specifically, in some network acceleration modes (such as a dual-WiFi acceleration mode, a WiFi and mobile data network acceleration mode, and a dual-band-based single WiFi acceleration mode), the terminal device may perform data transmission based on multiple link channels. At this time, the terminal device may select a link channel with the best transmission efficiency from the multiple link channels to perform data transmission, and in the application running process, the terminal device may monitor the transmission efficiency of the multiple links in real time or periodically, and when the monitoring finds that the transmission efficiency of the link channel supporting data transmission currently is lower than a preset threshold, the terminal device may select a link channel with the highest current transmission efficiency from the other link channels, and switch the data to be transmitted to the link channel to perform transmission.
It should be understood that the preset threshold may be set according to actual requirements, and the size of the preset threshold is not specifically limited herein.
In some network acceleration modes (such as a single mobile data network acceleration mode), the terminal device can only perform data transmission based on one link channel. At this time, the terminal device may perform data transmission according to the priority of the designated data packet, specifically, the terminal device may set a higher priority for the data packet generated by the application that needs to be accelerated, and set a lower priority for the data packet generated by the application that does not need to be accelerated, and when performing data transmission based on one link channel, the terminal device transmits the data packet with the higher priority first and transmits the data packet with the lower priority later, that is, transmits the data packet generated by the application that needs to be accelerated first and transmits the data packet generated by the application that does not need to be accelerated later.
It should be noted that, when the terminal device receives data in parallel based on multiple link lanes, the terminal device may control the reception of the data based on a first-come-first-served policy, that is, the terminal device only processes the data received first, and discards the repeated data received thereafter.
Similarly, the server side also performs deduplication processing on the data received by the server side based on the same processing principle; as shown in fig. 9, the client 1 may send a data packet to the channel proxy server 1 through the link channel 1 and the link channel 2 in parallel, so as to forward the data packet to the application server through the channel proxy server 1, and the channel proxy server 1 processes the data packet sent from the link channel 1 and the link channel 2 based on a first-come first-use processing policy, that is, forwards the first-come data packet to the application server, and directly discards a later-come duplicate data packet; similarly, the client N may send the data packet to the channel proxy N through the link channel 1 and the link channel 2 in parallel, so as to forward the data packet to the application server through the channel proxy N, and the channel proxy N correspondingly adopts the first-come first-served processing except for processing the data packet sent from the link channel 1 and the link channel 2.
Step 204: and when the application is closed, closing the network acceleration function.
When the terminal device detects that the application which is currently subjected to network acceleration is closed, the network acceleration function which is opened aiming at the application is correspondingly and automatically closed.
It should be noted that, in the case that the network acceleration mode includes the dual WiFi acceleration mode, the terminal device may provide a WiFi configuration channel for the user accordingly, so that the user configures the primary WiFi and the secondary WiFi in the dual WiFi acceleration mode in advance. Specifically, the terminal device may display a dual WiFi acceleration mode configuration page, where a configuration channel for configuring a primary WiFi and an auxiliary WiFi for a dual WiFi acceleration mode is provided in the dual WiFi acceleration mode configuration page; after the terminal equipment determines the main WiFi and the auxiliary WiFi configured through the dual-WiFi acceleration mode configuration page, the main WiFi and the auxiliary WiFi are correspondingly associated and bound with the dual-WiFi acceleration mode.
Referring to fig. 10, fig. 10 is a schematic diagram of a dual WiFi turbo mode configuration page provided in an embodiment of the present application. As shown in fig. 10, a user may first select a wireless AP from currently connectable wireless APs as a master WiFi through a master WiFi configuration interface 1001 displayed by a terminal device; after the terminal device completes the configuration of the primary WiFi, the terminal device further skips to display the auxiliary WiFi configuration interface 1002, and selects one wireless AP from the currently connectable wireless APs (excluding the wireless AP configured as the primary WiFi) as the auxiliary WiFi. The configuration of the primary WiFi and the secondary WiFi and the associated binding of the primary WiFi and the secondary WiFi with the dual WiFi acceleration mode are thus completed.
It should be understood that the configuration manner of the main WiFi and the auxiliary WiFi in the dual WiFi mode shown in fig. 10 is only an example, in practical applications, the terminal device may only display one dual WiFi acceleration mode configuration page, in which the user may select two wireless APs at one time as the main WiFi and the auxiliary WiFi respectively, specifically, the wireless AP selected by the user first may be configured as the main WiFi, and the wireless AP selected by the user later may be configured as the auxiliary WiFi. The manner in which the primary WiFi and the secondary WiFi are configured in the dual WiFi mode is not limited in any way.
It should be noted that, in practical applications, the priority order of the above-mentioned multiple network acceleration modes may be configured by the user according to the needs of the user. During specific configuration, the terminal equipment displays a priority configuration page for a user, and the priority configuration page is provided with configuration channels of various network acceleration mode priority sequences; and determining a user-specified priority order corresponding to the multiple network acceleration modes in response to configuration operation triggered by the user for the priority configuration page. Accordingly, when the network acceleration mode is switched based on the priority order of the network acceleration mode according to the network condition change situation, the terminal device may switch the network acceleration mode based on the priority order designated by the user.
Specifically, the terminal device may display a priority configuration page for the user, where the priority configuration page displays multiple network acceleration modes supported by the accelerator, and the user may set, on the priority configuration page, the priorities corresponding to the various network acceleration modes by dragging controls corresponding to the various network acceleration modes; for example, the user may drag the control corresponding to the dual WiFi acceleration mode to a position above another network acceleration mode, so as to set the priority corresponding to the dual WiFi acceleration mode to be the highest.
It should be understood that the foregoing priority configuration is merely an example, and in practical applications, other forms of priority configuration may also be set, and the priority configuration adopted in the embodiments of the present application is not limited in any way.
The data transmission method faces to a complex and changeable network environment, and can adaptively switch the network acceleration mode according to the actual network condition change situation, namely, the intelligent switching of the network acceleration mode is realized, the adopted network acceleration mode is ensured to be always matched with the actual network situation, and the network acceleration effect is further ensured to be continuously kept to be optimal. In addition, the method can also automatically monitor the starting and closing of the application, correspondingly start and close the network acceleration function aiming at the application supported by the accelerator, does not need manual operation of a user, simplifies the operation flow required to be executed by the user, and improves the use experience of the user.
In order to further understand the data transmission method provided in the embodiment of the present application, the data transmission method provided in the embodiment of the present application is generally described below by taking network acceleration of a game application as an example.
When a user needs to start a network acceleration function for a certain game application, the user can touch and start a network acceleration interface in the game application in advance, so that the game application is set as an application supported by an accelerator, the game application can call the accelerator running in the terminal device, and data generated in the running process of the game application is transmitted in an accelerated mode based on a network acceleration mode provided by the accelerator.
Assume that the accelerator supported network acceleration modes include: a dual WiFi acceleration mode, a WiFi and mobile data network acceleration mode, a single mobile data network acceleration mode, and a single WiFi acceleration mode. The user can configure the primary WiFi and the auxiliary WiFi related to the dual-WiFi acceleration mode in advance through a dual-WiFi acceleration mode configuration interface in the accelerator. In addition, the user may also configure the priorities corresponding to the various network acceleration modes through a priority configuration page in the accelerator, and the following description will be given to the selection and switching process of the subsequent network acceleration modes, taking the priority order from high to low as the dual WiFi acceleration mode, the WiFi and mobile data network acceleration mode, the single WiFi acceleration mode, and the single mobile data network acceleration mode in turn.
When the game application is started, the terminal device correspondingly determines that the game application is the application supported by the accelerator, then starts a network acceleration function aiming at the game application, selects a network acceleration mode adaptive to the current network condition according to the sequence of the network acceleration mode priority from high to low, and further controls data transmission based on the selected network acceleration mode. Specifically, the terminal device may first determine whether there are a main WiFi and an auxiliary WiFi at this time, if so, select a dual WiFi acceleration mode, if not, continue to determine whether there are a main WiFi and a mobile data network at this time, if so, select a WiFi and a mobile data network acceleration mode, if not, continue to determine whether there is a WiFi channel or a mobile data network at present, and if there is only a single WiFi or a single mobile data network, correspondingly select a single WiFi acceleration mode or a single mobile data network acceleration mode.
In the running process of the game application, the terminal equipment can detect the change condition of the network condition in real time or periodically, and further switch the adopted network acceleration mode based on the priority order of the multiple network acceleration modes. Specifically, if the terminal device detects that the auxiliary WiFi channel is interrupted, the terminal device switches to a WiFi and mobile data network acceleration mode; if the main WiFi channel terminal cannot use the auxiliary WiFi channel as an independent WiFi transmission channel at the moment, switching to a single mobile data network acceleration mode; if the WiFi and mobile data network acceleration mode is switched, the auxiliary WiFi channel is reconnected, and the double WiFi acceleration mode with higher priority is switched back again; similarly, if the currently adopted network acceleration mode is a single-WiFi acceleration mode or a single-mobile-data-network acceleration mode, after detecting that the mobile data network data channel or the WiFi channel is reconnected, the network acceleration mode is switched to be the WiFi and mobile data network acceleration modes.
When the terminal device detects that the game application is closed, the terminal device also controls the accelerator to close the network acceleration function opened for the game application correspondingly.
For the above described data transmission method, the present application also provides a corresponding data transmission device, so that the above data transmission method can be applied and implemented in practice.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a data transmission apparatus 1100 corresponding to the data transmission method shown in fig. 2, where the data transmission apparatus 1100 includes:
a determining module 1101, configured to determine whether an application is an application supported by an accelerator when the application is started;
a start acceleration module 1102, configured to, when the application is an application supported by an accelerator, start a network acceleration function and select a network acceleration mode that adapts to current network conditions, and control data transmission based on the selected network acceleration mode;
a dynamic switching module 1103, configured to switch the network acceleration modes according to network condition change conditions and based on priority orders of the multiple network acceleration modes in the application running process, and control data transmission based on the switched network acceleration modes;
a shutdown module 1104, configured to shut down the network acceleration function when the application is shutdown.
Optionally, on the basis of the data transmission device shown in fig. 11, when the multiple network acceleration modes include a dual WiFi acceleration mode, referring to fig. 12, fig. 12 is a schematic structural diagram of another data transmission device 1200 provided in the embodiment of the present application, and the device further includes:
a first display module 1201, configured to display a dual WiFi acceleration mode configuration page, where the dual WiFi acceleration mode configuration page is provided with a configuration channel for configuring a primary WiFi and an auxiliary WiFi for the dual WiFi acceleration mode;
a dual WiFi acceleration mode configuration module 1202, configured to determine a primary WiFi and an auxiliary WiFi configured through the dual WiFi acceleration mode configuration page, and perform association binding on the primary WiFi and the auxiliary WiFi and the dual WiFi acceleration mode.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, referring to fig. 13, fig. 13 is a schematic structural diagram of another data transmission apparatus 1300 provided in the embodiment of the present application, and the apparatus further includes:
a second display module 1301, configured to display a priority configuration page, where the priority configuration page is provided with a configuration channel configured with a plurality of network acceleration mode priority orders;
a priority configuration module 1302, configured to determine, in response to a configuration operation triggered for the priority configuration page, a user-specified priority order corresponding to the multiple network acceleration modes;
the dynamic switching module 1103 is specifically configured to switch the network acceleration mode based on the priority order specified by the user according to the network condition change situation.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the currently selected network acceleration mode supports dual-band network acceleration based on a wireless access point, where the wireless access point supports a first frequency band and a second frequency band, and a coverage area of the first frequency band is smaller than a coverage area of the second frequency band; the start accelerating module 1102 and the dynamic switching module 1103 are specifically configured to:
and selecting an adaptive frequency band to receive and transmit data through the selected frequency band according to the position relation between the current position of the terminal where the application is positioned and the dual-frequency-band coverage range supported by the wireless access point.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the currently selected network acceleration mode supports dual-band network acceleration based on a wireless access point, where the wireless access point supports a first frequency band and a second frequency band, and a coverage area of the first frequency band is smaller than a coverage area of the second frequency band; the start accelerating module 1102 and the dynamic switching module 1103 are specifically configured to:
when the current position of the terminal where the application is located is within the coverage range of the first frequency band, data receiving and sending are carried out in parallel through the two frequency bands of the wireless access point;
when the current position of the terminal where the application is located is at the edge of the coverage area of the first frequency band, determining whether to transmit and receive data through the first frequency band according to the wireless performance index, and keeping transmitting and receiving data through the second frequency band;
and when the current position of the terminal where the application is located is out of the coverage range of the first frequency band but in the coverage range of the second frequency band, data receiving and sending are preferentially carried out through the second frequency band.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the multiple network acceleration modes include a dual WiFi acceleration mode, where the dual WiFi acceleration mode implements network acceleration based on dual bands supported by the first wireless access point and the second wireless access point respectively; the first wireless access point supports a first frequency band and a second frequency band, the second wireless access point supports a third frequency band and a second frequency band, wherein the coverage range of the third frequency band is smaller than that of the first frequency band, and the coverage range of the first frequency band is smaller than that of the second frequency band;
when the currently selected network acceleration mode is the dual WiFi acceleration mode, the start acceleration module 1102 and the dynamic switching module 1103 are specifically configured to:
and selecting an adaptive frequency band from the first frequency band, the second frequency band and the third frequency band according to the wireless signal index applied to each frequency band of the first wireless access point and the second wireless access point, and performing data transceiving based on the selected frequency band.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the multiple network acceleration modes include a dual WiFi acceleration mode, where the dual WiFi acceleration mode implements network acceleration based on dual bands supported by the first wireless access point and the second wireless access point respectively; the first wireless access point supports a first frequency band and a second frequency band, the second wireless access point supports a third frequency band and a second frequency band, wherein the coverage range of the third frequency band is smaller than that of the first frequency band, and the coverage range of the first frequency band is smaller than that of the second frequency band;
when the currently selected network acceleration mode is the dual WiFi acceleration mode, the start acceleration module 1102 and the dynamic switching module 1103 are specifically configured to:
and selecting two links with highest and second highest current link quality from the first frequency band, the second frequency band and the third frequency band, taking the link with the highest selected link quality as a main WiFi link and the link with the second highest selected link quality as an auxiliary WiFi link, and performing data transceiving through the main WiFi link and the auxiliary WiFi link.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the multiple network acceleration modes include at least two of a dual WiFi acceleration mode, a WiFi and mobile data network acceleration mode, a single mobile data network acceleration mode, and a single WiFi acceleration mode.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the multiple network acceleration modes include a dual WiFi acceleration mode, a WiFi and mobile data network acceleration mode, a single WiFi acceleration mode, and a single mobile data network acceleration mode; and the default priority order corresponding to the multiple network acceleration modes is as follows in sequence: the dual WiFi acceleration mode, the WiFi and mobile data network acceleration mode, the single WiFi acceleration mode, and the single mobile data network acceleration mode; the dynamic switching module 1103 is specifically configured to:
and switching the network acceleration mode based on the default priority order according to the network condition change condition.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the dynamic switching module 1103 is specifically configured to:
under the condition of the dual-WiFi acceleration mode, when the main WiFi is disconnected, directly switching to a single mobile data network acceleration mode;
under the condition of the dual-WiFi acceleration mode, when the auxiliary WiFi is disconnected, data transmission is continuously carried out by taking the main WiFi link as the main link, the auxiliary WiFi is tried to be connected, and after the connection is tried successfully, network acceleration is continuously carried out in the dual-WiFi acceleration mode;
if the auxiliary WiFi connection is failed, switching to the WiFi and mobile data network acceleration mode, and when a WiFi link is disconnected, switching to the single mobile data network acceleration mode;
when in the single mobile data network acceleration mode, attempting to connect a WiFi link to switch back to the WiFi and mobile data network acceleration mode;
under the condition of entering the WiFi and mobile data network acceleration mode, if a mobile data network link is disconnected, switching to the single-WiFi acceleration mode, and under the single-WiFi acceleration mode, trying to connect an auxiliary WiFi or mobile data network link so as to switch to the dual-WiFi acceleration mode or the WiFi and mobile data network acceleration mode.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the start accelerating module 1102 and the dynamic switching module 1103 are specifically configured to:
and carrying out data receiving in parallel based on a plurality of link channels, and adopting a first-come first-use strategy to control the data receiving.
Optionally, on the basis of the data transmission apparatus shown in fig. 11, the start accelerating module 1102 and the dynamic switching module 1103 are specifically configured to:
when data are transmitted based on a plurality of link channels, the transmission efficiency of the plurality of link channels is monitored, and when the transmission efficiency of one link channel is lower than a preset threshold value, the other link channel is switched to transmit;
or, when transmitting data based on a link channel, transmitting data according to the priority of the specified data packet.
The data transmission method faces to a complex and changeable network environment, and can adaptively switch the network acceleration mode according to the actual network condition change situation, namely, the intelligent switching of the network acceleration mode is realized, the adopted network acceleration mode is ensured to be always matched with the actual network situation, and the network acceleration effect is further ensured to be continuously kept to be optimal. In addition, the method can also automatically monitor the starting and closing of the application, correspondingly start and close the network acceleration function aiming at the application supported by the accelerator, does not need manual operation of a user, simplifies the operation flow required to be executed by the user, and improves the use experience of the user.
The embodiment of the present application further provides a terminal device for controlling data transmission, and the terminal device for controlling data transmission provided in the embodiment of the present application will be described in terms of hardware implementation.
Fig. 14 is a schematic structural diagram of a terminal device according to an embodiment of the present application. For convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the specific technology are not disclosed. The terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA, abbreviated as "Personal Digital Assistant"), a Sales terminal (POS, abbreviated as "Point of Sales"), a vehicle-mounted computer, etc., and the terminal is taken as a mobile phone as an example:
fig. 14 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 14, the handset includes: radio Frequency (RF) circuit 1410, memory 1420, input unit 1430, display unit 1440, sensor 1450, audio circuit 1460, wireless fidelity (WiFi) module 1470, processor 1480, and power supply 1490. Those skilled in the art will appreciate that the handset configuration shown in fig. 14 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 1420 may be used to store software programs and modules, and the processor 1480 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1420. The memory 1420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, memory 1420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1480, which is the control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1420 and calling data stored in the memory 1420, thereby integrally monitoring the mobile phone. Alternatively, the processor 1480 may include one or more processing units; preferably, the processor 1480 may integrate an application processor, which handles primarily operating systems, user interfaces, and applications, among others, with a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1480.
In the embodiment of the present application, the processor 1480 included in the terminal also has the following functions:
when an application is started, determining whether the application is an application supported by an accelerator;
when the application is the application supported by the accelerator, starting a network acceleration function, selecting a network acceleration mode adapting to the current network condition, and controlling data transmission based on the selected network acceleration mode;
in the application running process, switching the network acceleration modes according to the network condition change condition and based on the priority order of the multiple network acceleration modes, and controlling data transmission based on the switched network acceleration modes;
and when the application is closed, closing the network acceleration function.
Optionally, the processor 1480 is further configured to execute the steps of any implementation manner of the data transmission method provided in the embodiment of the present application.
The embodiment of the present application further provides a computer-readable storage medium for storing a computer program, where the computer program is used to execute any one implementation manner of the data transmission method described in the foregoing embodiments.
The present application further provides a computer program product including instructions, which when run on a computer, cause the computer to execute any one of the embodiments of a data transmission method described in the foregoing embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A method of data transmission, comprising:
when an application is started, determining whether the application is an application supported by an accelerator;
when the application is the application supported by the accelerator, starting a network acceleration function, selecting a network acceleration mode adapting to the current network condition, and controlling data transmission based on the selected network acceleration mode;
in the application running process, switching the network acceleration modes according to the network condition change condition and based on the default priority order corresponding to the multiple network acceleration modes, and controlling data transmission based on the switched network acceleration modes; the multiple network acceleration modes comprise a double-WiFi acceleration mode, a WiFi and mobile data network acceleration mode, a single-WiFi acceleration mode and a single-mobile data network acceleration mode; and the default priority order corresponding to the multiple network acceleration modes is as follows in sequence: the dual WiFi acceleration mode, the WiFi and mobile data network acceleration mode, the single WiFi acceleration mode, and the single mobile data network acceleration mode;
when the application is closed, closing the network acceleration function;
wherein, the switching the network acceleration mode according to the network condition change condition and based on the default priority order corresponding to the plurality of network acceleration modes comprises:
under the condition of the dual-WiFi acceleration mode, when the main WiFi is disconnected, directly switching to a single mobile data network acceleration mode;
under the condition of the dual-WiFi acceleration mode, when the auxiliary WiFi is disconnected, data transmission is continuously carried out by taking the main WiFi link as the main link, the auxiliary WiFi is tried to be connected, and after the connection is tried successfully, network acceleration is continuously carried out in the dual-WiFi acceleration mode;
if the auxiliary WiFi connection is failed, switching to the WiFi and mobile data network acceleration mode, and when a WiFi link is disconnected, switching to the single mobile data network acceleration mode;
when in the single mobile data network acceleration mode, attempting to connect a WiFi link to switch back to the WiFi and mobile data network acceleration mode;
under the condition of entering the WiFi and mobile data network acceleration mode, if a mobile data network link is disconnected, switching to the single-WiFi acceleration mode, and under the single-WiFi acceleration mode, trying to connect an auxiliary WiFi or mobile data network link so as to switch to the dual-WiFi acceleration mode or the WiFi and mobile data network acceleration mode.
2. The method of claim 1, wherein when the plurality of network acceleration modes includes a dual WiFi acceleration mode, the method further comprises:
displaying a dual-WiFi acceleration mode configuration page provided with configuration channels for configuring a primary WiFi and an auxiliary WiFi for the dual-WiFi acceleration mode;
determining a main WiFi and an auxiliary WiFi configured through the dual-WiFi acceleration mode configuration page, and performing association binding on the main WiFi and the auxiliary WiFi and the dual-WiFi acceleration mode.
3. The method of claim 1, further comprising:
displaying a priority configuration page, wherein the priority configuration page is provided with a configuration channel for configuring priority sequences of multiple network acceleration modes;
determining a user-specified priority order corresponding to the plurality of network acceleration modes in response to a configuration operation triggered for the priority configuration page;
then, the switching the network acceleration mode based on the network acceleration mode priority order according to the network condition change condition includes: and switching the network acceleration mode based on the priority sequence specified by the user according to the network condition change condition.
4. The method according to any of claims 1 to 3, wherein the currently selected network acceleration mode supports dual band network acceleration based on a wireless access point, the wireless access point supporting a first frequency band and a second frequency band, wherein the coverage area of the first frequency band is smaller than the coverage area of the second frequency band;
controlling data transmission based on the currently selected network acceleration mode, including:
and selecting an adaptive frequency band to receive and transmit data through the selected frequency band according to the position relation between the current position of the terminal where the application is positioned and the dual-frequency-band coverage range supported by the wireless access point.
5. The method of claim 4, wherein the selecting the adapted frequency band for data transmission and reception through the selected frequency band according to the position relationship between the current position of the terminal where the application is located and the dual-frequency-band coverage supported by the wireless access point comprises:
when the current position of the terminal where the application is located is within the coverage range of the first frequency band, data receiving and sending are carried out in parallel through the two frequency bands of the wireless access point;
when the current position of the terminal where the application is located is at the edge of the coverage area of the first frequency band, determining whether to transmit and receive data through the first frequency band according to the wireless performance index, and keeping transmitting and receiving data through the second frequency band;
and when the current position of the terminal where the application is located is out of the coverage range of the first frequency band but in the coverage range of the second frequency band, data receiving and sending are preferentially carried out through the second frequency band.
6. The method according to any of claims 1 to 3, wherein the plurality of network acceleration modes includes a dual WiFi acceleration mode, and the dual WiFi acceleration mode realizes network acceleration based on dual bands supported by each of the first wireless access point and the second wireless access point; the first wireless access point supports a first frequency band and a second frequency band, the second wireless access point supports a third frequency band and a second frequency band, wherein the coverage range of the third frequency band is smaller than that of the first frequency band, and the coverage range of the first frequency band is smaller than that of the second frequency band;
then when the currently selected network acceleration mode is the dual WiFi acceleration mode, the controlling data transmission based on the selected network acceleration mode includes:
and selecting an adaptive frequency band from the first frequency band, the second frequency band and the third frequency band according to the wireless signal index applied to each frequency band of the first wireless access point and the second wireless access point, and performing data transceiving based on the selected frequency band.
7. The method of claim 6, wherein the selecting an adaptive frequency band among the first frequency band, the second frequency band, and the third frequency band according to the wireless signal indicator applied to each frequency band of the first wireless access point and the second wireless access point, and performing the transceiving of the data packet based on the selected frequency band comprises:
and selecting two links with highest and second highest current link quality from the first frequency band, the second frequency band and the third frequency band, taking the link with the highest selected link quality as a main WiFi link and the link with the second highest selected link quality as an auxiliary WiFi link, and performing data transceiving through the main WiFi link and the auxiliary WiFi link.
8. The method according to any of claims 1 to 3, wherein said controlling data transmission based on the selected network acceleration mode comprises:
when data are transmitted based on a plurality of link channels, the transmission efficiency of the plurality of link channels is monitored, and when the transmission efficiency of one link channel is lower than a preset threshold value, the other link channel is switched to transmit;
or, when transmitting data based on a link channel, transmitting data according to the priority of the specified data packet.
9. A data transmission apparatus, comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining whether an application is supported by an accelerator when the application is started;
the starting acceleration module is used for starting a network acceleration function and selecting a network acceleration mode adapting to the current network condition when the application is the application supported by the accelerator, and controlling data transmission based on the selected network acceleration mode;
the dynamic switching module is used for switching the network acceleration modes according to the change conditions of network conditions and on the basis of default priority orders corresponding to the multiple network acceleration modes in the application running process and controlling data transmission on the basis of the switched network acceleration modes; the multiple network acceleration modes comprise a double-WiFi acceleration mode, a WiFi and mobile data network acceleration mode, a single-WiFi acceleration mode and a single-mobile data network acceleration mode; and the default priority order corresponding to the multiple network acceleration modes is as follows in sequence: the dual WiFi acceleration mode, the WiFi and mobile data network acceleration mode, the single WiFi acceleration mode, and the single mobile data network acceleration mode;
a closing module, configured to close the network acceleration function when the application is closed;
the dynamic switching module is specifically configured to:
under the condition of the dual-WiFi acceleration mode, when the main WiFi is disconnected, directly switching to a single mobile data network acceleration mode;
under the condition of the dual-WiFi acceleration mode, when the auxiliary WiFi is disconnected, data transmission is continuously carried out by taking the main WiFi link as the main link, the auxiliary WiFi is tried to be connected, and after the connection is tried successfully, network acceleration is continuously carried out in the dual-WiFi acceleration mode;
if the auxiliary WiFi connection is failed, switching to the WiFi and mobile data network acceleration mode, and when a WiFi link is disconnected, switching to the single mobile data network acceleration mode;
when in the single mobile data network acceleration mode, attempting to connect a WiFi link to switch back to the WiFi and mobile data network acceleration mode;
under the condition of entering the WiFi and mobile data network acceleration mode, if a mobile data network link is disconnected, switching to the single-WiFi acceleration mode, and under the single-WiFi acceleration mode, trying to connect an auxiliary WiFi or mobile data network link so as to switch to the dual-WiFi acceleration mode or the WiFi and mobile data network acceleration mode.
10. A terminal device, comprising:
a processor and a memory; wherein the content of the first and second substances,
the memory is used for storing a computer program;
the processor is configured to perform the method of any one of claims 1 to 8 in accordance with the computer program.
11. A computer-readable storage medium for storing a computer program which, when run on a computer, causes the computer processor to perform the method of any of claims 1 to 8.
CN201910695834.1A 2019-07-30 2019-07-30 Data transmission method, device, equipment and storage medium Active CN110233937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910695834.1A CN110233937B (en) 2019-07-30 2019-07-30 Data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910695834.1A CN110233937B (en) 2019-07-30 2019-07-30 Data transmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110233937A CN110233937A (en) 2019-09-13
CN110233937B true CN110233937B (en) 2021-06-25

Family

ID=67856043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910695834.1A Active CN110233937B (en) 2019-07-30 2019-07-30 Data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110233937B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769524A (en) * 2019-09-26 2020-02-07 维沃移动通信有限公司 Multi-network access method and terminal equipment
CN110944408B (en) * 2019-10-31 2022-05-17 维沃移动通信有限公司 Data transmission method and electronic equipment
CN112105068B (en) * 2020-07-28 2021-11-19 华为技术有限公司 Wireless data transmission method and related equipment thereof
CN112203119B (en) * 2020-09-27 2024-03-08 腾讯科技(深圳)有限公司 Multimedia service acceleration method, device, equipment and storage medium
CN112261680A (en) * 2020-10-22 2021-01-22 珠海格力电器股份有限公司 Method, device, equipment and storage medium for adjusting network
CN112702739B (en) * 2020-12-23 2023-06-09 南昌黑鲨科技有限公司 Wireless network sharing method and device, readable storage medium and mobile terminal
CN112671662B (en) * 2020-12-29 2023-04-18 网络通信与安全紫金山实验室 Data stream acceleration method, electronic device and storage medium
CN112752284B (en) * 2020-12-30 2022-11-04 惠州Tcl移动通信有限公司 Application network optimization method, device, equipment and medium under double WIFI
CN115460572A (en) * 2021-06-08 2022-12-09 腾讯科技(深圳)有限公司 Application program acceleration method, device, equipment and storage medium
CN114158065B (en) * 2021-11-17 2024-04-05 四川迅游网络科技股份有限公司 Parallel transmission method and system for multiple WiFi networks

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430701A (en) * 2015-10-28 2016-03-23 努比亚技术有限公司 Wireless network intelligent control method and device
CN105578528A (en) * 2016-01-08 2016-05-11 努比亚技术有限公司 Data interface distribution method and apparatus and terminal device
CN105759937B (en) * 2016-02-03 2020-07-28 努比亚技术有限公司 Method for reducing power consumption of terminal and terminal
CN108347357B (en) * 2017-01-24 2021-03-02 腾讯科技(深圳)有限公司 Data communication method, application client, acceleration node server and system
KR102455266B1 (en) * 2017-10-17 2022-10-18 삼성전자주식회사 Electronic device for controlling data communication of external electronic device and communication system thereof
US10609119B2 (en) * 2017-11-03 2020-03-31 Salesforce.Com, Inc. Simultaneous optimization of multiple TCP parameters to improve download outcomes for network-based mobile applications
CN108616912B (en) * 2018-08-02 2021-05-18 竞技世界(北京)网络技术有限公司 Network quality optimization method and device
CN109068359B (en) * 2018-08-28 2021-07-16 深圳市万普拉斯科技有限公司 Network switching method, device, terminal equipment and storage medium
CN109890087B (en) * 2018-12-29 2022-08-09 华为终端有限公司 Method and device for processing data packet
CN109743783B (en) * 2019-02-12 2021-11-02 Oppo广东移动通信有限公司 Data transmission control method and related product

Also Published As

Publication number Publication date
CN110233937A (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN110233937B (en) Data transmission method, device, equipment and storage medium
KR101649994B1 (en) Apparatus and method for automatic sim card selection according to network environment in dual mode terminal
US9648518B2 (en) Dynamic selection of coexistence profiles for improved Wi-Fi/bluetooth coexistence
KR101466792B1 (en) Controlled idle mode behavior in user equipment supporting multiple radio access techniques
US9485342B2 (en) Wireless device system-architecture
TWI571142B (en) Apparatus and method for processing priority information in a wireless device
CN109743783B (en) Data transmission control method and related product
CN108055687B (en) Wireless network connection method and device and terminal equipment
CN104581892A (en) Data transmission method and device of terminal
CN110710277A (en) Method and apparatus for wireless communication
US9743361B2 (en) Network access method, device, and system for detecting interference and reducing interference between interfering channels
CN107105516B (en) Apparatus and method for supporting multi-network based data transmission service
US11546800B2 (en) Data processing method and terminal
KR20220032618A (en) RESOURCE ALLOCATION METHOD AND APPARATUS, AND STORAGE MEDIUM
CN101466130B (en) Control method and device for network connection
CN103109565A (en) Network switching method and terminal
KR20180045407A (en) Method and Apparatus for selecting an access network in a wireless communication system
CN115038128B (en) Cell switching method, device, base station and storage medium
EP3291591A1 (en) Method for service transmission and transmission device
CN115150886A (en) Access method, device, equipment and readable storage medium
CN105429668A (en) Method and device for controlling radio-frequency link
CN105468415A (en) Radio-frequency link control method and apparatus
EP4142335A1 (en) Method for establishing multiple connections, and network device and system
US20230413357A1 (en) Communication method, aerial vehicle, and user device
WO2024001952A1 (en) Parameter determination method, terminal, and network side device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant