CN112217679B - Application acceleration method, device, computer equipment and storage medium - Google Patents

Application acceleration method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112217679B
CN112217679B CN202011108915.6A CN202011108915A CN112217679B CN 112217679 B CN112217679 B CN 112217679B CN 202011108915 A CN202011108915 A CN 202011108915A CN 112217679 B CN112217679 B CN 112217679B
Authority
CN
China
Prior art keywords
network
target
acceleration
application program
traffic
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
CN202011108915.6A
Other languages
Chinese (zh)
Other versions
CN112217679A (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 CN202011108915.6A priority Critical patent/CN112217679B/en
Publication of CN112217679A publication Critical patent/CN112217679A/en
Application granted granted Critical
Publication of CN112217679B publication Critical patent/CN112217679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/083Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for increasing network speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to an application acceleration method, an application acceleration device, computer equipment and a storage medium. The method comprises the following steps: acquiring network flow data generated when a terminal operates; analyzing the flow characteristics of the network flow data to obtain corresponding network flow characteristics, and carrying out characteristic matching processing on the network flow characteristics and preset flow characteristics; when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the network flow characteristics of the successful matching, thereby obtaining the target application program currently operated by the terminal; and carrying out network acceleration processing on the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program. By adopting the method, the acceleration efficiency can be further improved.

Description

Application acceleration method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application acceleration method, an application acceleration device, a computer device, and a storage medium.
Background
With the continuous development of science and technology, application programs are also widely applied, wherein network performance is an important factor for the application programs to obtain good user experience. When a user participates in an application program with strong timeliness, for example, when the user participates in activities such as group answering, rushing to the heart, rushing to the wheat, or the like, or the user participates in some competitive activities, the user puts higher expectations and requirements on the network speed and the running speed of the application program.
In order to meet the expectations and demands of users on the running speed of applications, some application acceleration schemes have also been developed. At present, the traditional application program acceleration scheme is mainly used for accelerating the network performance of an application program based on an accelerator, and the target application program to be accelerated is selected based on the pre-started accelerator by starting the accelerator in advance, and then the target application program is started, so that the network acceleration of the target application program is realized.
However, the conventional acceleration scheme of the application program hinders the normal operation flow of the user, and it is required to start and operate the accelerator before starting the application program in order to obtain the acceleration effect. This clearly increases the pre-dependency of the application, increases the time for starting the application, and greatly limits the acceleration efficiency of the application, so it is highly desirable to provide an application acceleration method capable of further improving the acceleration efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an application acceleration method, apparatus, computer device, and storage medium that can further improve the application acceleration efficiency.
An application acceleration method, the method comprising:
acquiring network flow data generated when a terminal operates;
Analyzing the flow characteristics of the network flow data to obtain corresponding network flow characteristics, and carrying out characteristic matching processing on the network flow characteristics and preset flow characteristics;
when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the network flow characteristics of the successful matching, and obtaining the target application program currently operated by the terminal;
and carrying out network acceleration processing on the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program.
An application acceleration apparatus, the apparatus comprising:
The flow data acquisition module is used for acquiring network flow data generated when the terminal operates;
The target application program determining module is used for carrying out flow characteristic analysis on the network flow data to obtain corresponding network flow characteristics, and carrying out characteristic matching processing on the network flow characteristics and preset flow characteristics; when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the network flow characteristics of the successful matching, and obtaining the target application program currently operated by the terminal;
and the acceleration module is used for carrying out network acceleration processing on the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program.
In one embodiment, the preset traffic characteristics include a preset target domain name, the network traffic characteristics include a network domain name, and the target application program determining module is further configured to perform traffic characteristic analysis on the network traffic data to obtain a network domain name corresponding to the network traffic data; performing domain name matching on the network domain name and a preset target domain name; and when the network domain name is the preset target domain name, determining that the matching is successful.
In one embodiment, the network traffic data is traffic data flowing through a system network card, and the target application program determining module is further configured to wake up an acceleration service through a network card driver corresponding to the system network card and forward the network traffic data to a virtual network card corresponding to the acceleration service when the network traffic feature is successfully matched with a preset traffic feature; and identifying the application program based on the network flow data on the virtual network card through the acceleration service to determine the target application program currently operated by the terminal.
In one embodiment, the target application program determining module is further configured to obtain, through the acceleration service, a correspondence between a preset application program and a preset flow characteristic; through the acceleration service, carrying out relation matching on the network flow characteristics of the network flow data on the virtual network card and the corresponding relation; and taking the matched preset application program as a target application program currently operated by the terminal.
In one embodiment, the application program accelerating device further comprises a preset flow characteristic obtaining module, which is used for obtaining verification flow data and determining flow source information and network flow characteristics of the verification flow data; determining preset application identifiers corresponding to preset application programs belonging to the target class respectively; and when the traffic source information points to the preset application program corresponding to the preset application identifier, taking the network traffic characteristic corresponding to the traffic source information as a preset traffic characteristic.
In one embodiment, the acceleration module is further configured to determine network related information of a network where the terminal is currently located, and application related information of the target application program; the network related information comprises at least one of network delay information, network channel setting information and flow types corresponding to the network flow data, and the application related information comprises at least one of a region where a target server corresponding to the target application program is located and application account information; the network channel setting information comprises the condition that switching operation of the network channel is allowed to be carried out and the condition that switching operation of the network channel is not allowed to be carried out; the traffic types corresponding to the network traffic data comprise website traffic and domain name traffic.
In one embodiment, the network related information includes a traffic type corresponding to the network traffic data; the acceleration module further comprises a shielding module, which is used for acquiring abnormal flow conditions corresponding to the flow types through the acceleration service; and when the network traffic data of the target application program meets the abnormal traffic condition, shielding the network traffic data of the target application program through the acceleration service.
In one embodiment, the network related information includes network delay information and network channel setting information; the acceleration module further comprises a channel switching module, which is used for triggering switching operation of switching the network channel of the current network through the acceleration service when the network delay information does not meet the network fluency condition and the network channel setting information characterizes that the network channel switching is allowed; and carrying out network acceleration processing on the target application based on the application related information and the network after channel type switching.
In one embodiment, the channel switching module is further configured to determine a matched target acceleration line through the acceleration service based on the application related information; and transmitting the network flow data of the target application program to a target server corresponding to the target application program through the target acceleration line and the network after channel type switching, so as to realize network acceleration processing of the target application program.
In one embodiment, the application related information includes an area where a target server corresponding to the target application program is located; the channel switching module is also used for determining a primary area label and a secondary area label of the area where the target server is located through the acceleration service; the secondary region tag is subordinate to the primary region tag; determining a matched target access node according to the primary area label through the acceleration service, and determining a matched target exit node according to the secondary area label; and determining a corresponding target acceleration line according to the target access node and the target exit node through the acceleration service.
In one embodiment, the channel switching module is further configured to determine, when the number of the target servers is more than one, a secondary area label to which each of the target servers respectively belongs; determining a secondary target area label from the secondary area labels respectively belonging to the target servers; and setting a target exit node based on a target server subordinate to the secondary target area label.
In one embodiment, the application accelerating device is further configured to determine a target interface currently displayed by the target application when the acceleration service performs network acceleration processing on the target application; and correspondingly displaying an acceleration service opening identification at a target position of the target interface.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring network flow data generated when a terminal operates;
Analyzing the flow characteristics of the network flow data to obtain corresponding network flow characteristics, and carrying out characteristic matching processing on the network flow characteristics and preset flow characteristics;
when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the network flow characteristics of the successful matching, and obtaining the target application program currently operated by the terminal;
and carrying out network acceleration processing on the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring network flow data generated when a terminal operates;
Analyzing the flow characteristics of the network flow data to obtain corresponding network flow characteristics, and carrying out characteristic matching processing on the network flow characteristics and preset flow characteristics;
when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the network flow characteristics of the successful matching, and obtaining the target application program currently operated by the terminal;
and carrying out network acceleration processing on the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program.
According to the application program acceleration method, the device, the computer equipment and the storage medium, the network flow data can be subjected to flow characteristic analysis by acquiring the network flow data when the terminal runs, so that the network flow characteristics can be obtained, the network flow characteristics and the preset flow characteristics can be subjected to characteristic matching processing, and the acceleration service is automatically awakened when the matching is successful, so that the target application program running at present can be determined based on the automatic awakened acceleration service, and intelligent acceleration processing is performed on the target application program according to the network related information of the network where the terminal is currently located and the application related information of the target application program. Because the application can automatically wake up the acceleration service when the current network flow data meets the preset network characteristic conditions and determine the corresponding target application program based on the acceleration service to intelligently accelerate the target application program, compared with the traditional method of starting and operating the accelerator and then starting the application program, the application can greatly simplify the operation steps and further improve the acceleration efficiency.
In addition, due to the fact that the acceleration strategy is determined according to the network related information and the application related information, the method and the device can intelligently select the proper acceleration strategy, and therefore acceleration effect is improved based on the proper acceleration strategy.
Drawings
FIG. 1 is an application environment diagram of an application acceleration method in one embodiment;
FIG. 2 is a flow chart of an application acceleration method in one embodiment;
FIG. 3 is a flow diagram of network acceleration based on traffic type and exception conditions in one embodiment;
FIG. 4 is a schematic diagram of a speed up service opening identifier in one embodiment;
FIG. 5 is a flow diagram of network acceleration processing based on network delay information in one embodiment;
FIG. 6 is a schematic diagram of node replacement in one embodiment;
FIG. 7 is a flow chart illustrating steps for determining a target acceleration circuit in one embodiment;
FIG. 8 is a flow chart of an acceleration method of an application in one embodiment;
FIG. 9 is a flowchart of an application acceleration method according to another embodiment;
FIG. 10 is a flowchart of an application acceleration method according to another embodiment;
FIG. 11 is a flowchart of an application acceleration method according to another embodiment;
FIG. 12 is a block diagram of an application acceleration device in one embodiment;
FIG. 13 is a block diagram of an application acceleration device in another embodiment;
Fig. 14 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
FIG. 1 is a diagram of an application environment for an application acceleration method in one embodiment. Referring to fig. 1, the application acceleration method is applied to an application acceleration system including a terminal 102 and a server 104. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 is provided with an acceleration service, when the target application program to be accelerated is determined to be started based on the network flow data sent to the server 104, the terminal 102 automatically wakes up the acceleration service, and triggers the acceleration service to perform intelligent acceleration processing on the target application program to be accelerated based on the network related information of the current network and the application related information of the target application program to be accelerated. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, among others. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, an application acceleration method is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
Step S202, obtaining network flow data generated when the terminal runs.
The network traffic data is a data stream sent to the outside of the electronic device, or a data stream received by the electronic device, which may specifically be a data packet corresponding to an access request sent by an application running on the terminal, or a data packet received by the application and used for responding to the access request.
Specifically, when the terminal allows to establish a network channel, for example, when allowing to establish a 4G (the 4th generation mobile communication technology, fourth generation mobile communication technology) network channel or allowing to establish a WIFI network channel, an application running in the terminal may perform network communication based on the established network channel, thereby generating network traffic data. When the application program performs network communication to generate network data traffic, the terminal can capture the generated network data traffic so as to intelligently accelerate the application program based on the captured network data traffic.
In one embodiment, the terminal further comprises a system network card for connecting the terminal with the external internet. When network communication with the outside is needed, an application program running in the terminal can send the network flow data to the system network card, so that the terminal can capture the network flow data flowing through the system network card.
Step S204, analyzing the flow characteristics of the network flow data to obtain corresponding network flow characteristics, and carrying out characteristic matching processing on the network flow characteristics and preset flow characteristics.
The traffic characteristics are characteristic information for characterizing network traffic data, and may specifically include at least one of a network domain name corresponding to the network traffic data, a network address corresponding to the network traffic data, and security information of the network traffic data. In the process of generating the network traffic data, in order to indicate the destination end to which the network traffic data is sent, the network traffic data may carry a domain name and/or an IP (Internet Protocol ) address of the destination end, so that the carried domain name is a network domain name corresponding to the network traffic data; the carried IP address is the network address corresponding to the network flow data.
It is easy to understand that the user can set the flow characteristics generated by the target application program to be accelerated in advance, and the flow characteristics at this time are preset flow characteristics. The terminal can analyze the network flow data generated during operation, and the flow characteristics obtained through analysis at the moment are the network flow characteristics.
The terminal is provided with an accelerator, and the accelerator comprises an accelerator application program and an acceleration service. The acceleration service is a background program of the accelerator, and is used for analyzing flow characteristics of the network data flow, and carrying out network acceleration processing on the corresponding application program according to the flow characteristic analysis result. The accelerator application is a front-end program of the accelerator for processing user interaction logic, for example, for determining corresponding preset flow characteristics according to user input.
Specifically, when obtaining network traffic data, the terminal analyzes the traffic characteristics of the network traffic data to obtain network traffic characteristics, and performs characteristic matching processing on the network traffic characteristics and preset traffic characteristics. When the network flow characteristics are matched with the preset flow characteristics, the network flow characteristics are characterized as meeting the preset flow characteristic conditions, and at the moment, the terminal wakes up the local acceleration service.
In one embodiment, when an application program creates an access request for accessing a target server through HTTP (HyperText Transfer Protocol ), network traffic data corresponding to the access request can carry a domain name of the target server and an IP address of the target server, so that when the network traffic data is intercepted, a terminal can perform traffic feature analysis in a regular matching manner, extract the domain name and the IP address in the network traffic data, and take the extracted domain name and IP address as network traffic features.
In one embodiment, the accelerator application may correspondingly present the traffic feature condition setting interface, so that the user may input the network domain name of the target server of the specific application program, for example, the network domain name of the target server corresponding to the specific game application desiring network acceleration, based on the presented traffic feature condition setting interface, so that the accelerator application may take the network domain name input by the user as a preset target domain name and set the preset target domain name as a corresponding preset traffic feature.
In one embodiment, before performing the feature matching process on the network traffic feature and the preset traffic feature, a preset traffic feature condition needs to be determined, and the step of determining the preset traffic feature condition includes: acquiring verification flow data, and determining flow source information and network flow characteristics of the verification flow data; determining preset application identifiers corresponding to preset application programs belonging to the target class respectively; when the flow source information points to a preset application program corresponding to the preset application identifier, taking the network flow characteristic corresponding to the flow source information as a preset flow characteristic; and determining a preset flow characteristic condition according to the preset flow characteristic.
It can be understood that before the user allows the terminal to automatically perform network acceleration processing on the application program, the terminal can collect and analyze the flow data of the network card of the flow system in advance so as to determine the corresponding relationship between the application program pointed by the flow data and the corresponding flow characteristics, and the flow data at this time is verification flow data. When the user allows the terminal to automatically perform network acceleration processing on the application program, the terminal captures flow data flowing through the network card of the system, analyzes the flow data to determine whether to wake up local acceleration service, and the flow data at this time is network flow data.
Specifically, when obtaining verification flow data, the terminal analyzes the verification flow data to determine flow source information and flow characteristics of the verification flow. The traffic source information is an application identifier of the application program generating the verification traffic data, which may specifically be an application packet name of the application program generating the verification traffic data. The terminal determines preset application identifiers corresponding to the preset application programs belonging to the target category respectively, matches the flow source information in the verification flow with the preset application identifiers, and judges whether the flow source information in the verification flow points to the preset application program corresponding to the preset application identifier. When the flow source information points to a preset application program corresponding to the preset application identifier, the terminal takes the verification flow data as target verification flow data, takes the flow characteristic of the target verification flow data as a preset flow characteristic, and takes the flow characteristic corresponding to the flow source information as the preset flow characteristic.
For example, the terminal obtains preset application package names corresponding to each game application belonging to the game category in advance, and determines whether the application package name of the application program generating the verification flow currently belongs to the preset application package name. When the application package name of the application program generating the verification flow belongs to the preset application package name, the application program generating the verification flow is indicated to be a game application program, and at the moment, the terminal sets the flow characteristic of the verification flow as the preset flow characteristic.
In one embodiment, when the verification traffic data is captured, the terminal acquires a log additionally generated when the verification traffic data is generated, extracts an application identifier of an application program generating the verification traffic data from the log, and uses the extracted application identifier as traffic source information of the verification traffic data. It is easy to understand that there may be multiple logs obtained by the terminal, and for each log obtained by the terminal, the terminal extracts the source port information in the log, and performs port matching on the source port information and the local port information in the verification traffic data. When the source port information in the log is consistent with the local port information, the terminal takes the log as a target log corresponding to the verification flow data, and takes the application identifier in the target log as the flow source information.
In one embodiment, the terminal provides a NEFilterControlProvider-type VPN based configuration, based on which traffic source information and corresponding traffic characteristics of the verification traffic data can be obtained.
In one embodiment, when determining each target verification flow data, the terminal may further determine a correspondence between the preset application program and the preset flow feature according to the flow source information of each target verification flow data and the corresponding flow feature.
In one embodiment, the application flow information may also be reported using a conventional acceleration path, and background statistics may be performed on the reported application flow information to obtain a preset flow characteristic.
In the above embodiment, by determining the flow source of the verification flow data, when the flow source points to the preset application program corresponding to the preset application identifier, the verification flow data can be quickly used as the target verification flow data, and the flow characteristics of the verification flow data can be used as the preset flow characteristics.
And S206, when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the successfully matched network flow characteristics, thereby obtaining the target application program currently operated by the terminal.
Specifically, when the network traffic characteristics are successfully matched with the preset traffic characteristics, the terminal wakes up the locally pre-installed acceleration service, determines an application program generating the network traffic data based on the successfully matched network traffic characteristics through the acceleration service, and takes the application program generating the network traffic data as a target application program currently operated by the terminal.
In one embodiment, when the preset traffic characteristics are preset network domain names corresponding to target servers of preset application programs respectively, the terminal determines a network domain name corresponding to the network traffic data, performs domain name matching on the network domain name and the preset network domain name, and when the network domain name belongs to the preset network domain name, indicates that the application program generating the current network traffic data is the preset application program, and at the moment, the terminal automatically wakes up the locally installed acceleration service so that the acceleration service performs network acceleration processing on the application program generating the current network traffic data.
In one embodiment, the terminal may extract all network traffic characteristics in the network traffic data, and perform characteristic matching on the extracted network traffic characteristics and preset traffic characteristics, and wake up local acceleration service when each network traffic characteristic and the preset traffic characteristic are successfully matched; and when the partial network flow characteristics are successfully matched with the preset flow characteristics, the local acceleration service is awakened. The present embodiment is not limited thereto.
In one embodiment, the method for determining the target application program currently operated by the terminal through accelerating service and performing application program identification based on network traffic data on the virtual network card comprises the following steps: acquiring a corresponding relation between a preset application program and preset flow characteristics through acceleration service; and carrying out relation matching on the network flow characteristics of the network flow data meeting the preset flow characteristic conditions and the corresponding relation through the acceleration service, and taking the matched preset application program as a target application program currently operated by the terminal.
Specifically, when the network flow data meets the preset flow characteristic condition, the acceleration service acquires a corresponding relation between a preset application program and a preset flow characteristic stored in advance, and performs relation matching on the network flow characteristic of the successfully matched network flow data and the corresponding relation, so as to judge whether the network flow characteristic belongs to the preset flow characteristic in the corresponding relation. When the network flow characteristics belong to preset flow characteristics in the corresponding relation, the acceleration service determines a preset application program corresponding to the network flow characteristics according to the corresponding relation, and takes the preset application program corresponding to the network flow characteristics as a currently running target application program.
In this embodiment, only the correspondence between the preset application program and the preset feature flow is preset, and the application program generating the network flow data can be quickly determined according to the correspondence, so that the determination efficiency of determining the currently running target application program is improved.
Step S208, based on the network related information of the network where the terminal is currently located and the application related information of the target application program, the target application program is subjected to network acceleration processing through the acceleration service.
The network related information is information related to the current network, and the network related information may specifically include network status information and channel load information. The network state information may specifically be network delay information; the channel load information may specifically include at least one of network channel setting information and a traffic type corresponding to the network traffic data. The network delay information is information for representing the network delay degree, such as high network delay, network failure, etc. The network channel setting information is related information for characterizing the channel setting of the current network, and may specifically be information that allows the switching operation of the network channel, and that does not allow the switching operation of the network channel. The network channel is a channel for carrying out network transmission, and when the terminal is connected with the Internet by using a 4G network, the network channel is the 4G network channel; when the terminal is connected with the Internet by using the WIFI network, the network channel is the WIFI network channel. The traffic type comprises website traffic and domain name traffic, and when the application program directly accesses the corresponding server through the IP address, the traffic type of the network data traffic is the website traffic; when the application program accesses the corresponding server through the domain name, the flow type of the network data flow is the domain name flow.
The application related information is information related to a currently running target application program, and specifically may include at least one of an area where a server corresponding to the application program is located and application account information. The area where the server corresponding to the application program is located is the geographic position where the response server responding to the access request sent by the application program is located. The application account information is related information of an application account of the login target application, for example, the application account information may be whether the application account of the login target application is a target account allowing network acceleration, and the like.
In particular, the terminal may perform a network delay test on a currently connected network to determine network delay information. The terminal may also determine what traffic type the currently collected network traffic data specifically belongs to, such as belonging to a website traffic or belonging to a domain name traffic. The terminal may also determine current network channel setting information based on the setting information of the network in advance by the user. When it is determined that the target application program is currently running on the terminal, the terminal may also acquire application related information related to the target application program.
Further, when obtaining the network related information of the current network and the application related information of the target application program, the terminal can determine a corresponding acceleration policy according to the network related information and the application related information, and perform acceleration processing on the currently running target application program through the acceleration service according to the corresponding acceleration policy. The acceleration policy is a way to implement network acceleration.
The acceleration service is automatically awakened when the user starts the target application program, and the network acceleration processing is performed on the target application program based on the acceleration service without perception, so that higher expectations and requirements of the user on the network speed and the running speed of the application program are met, and the user experience is greatly improved.
In one embodiment, the acceleration service may generate a detection data packet for detecting the smoothness of the network, and send the detection data packet to a preset response server, so as to trigger the response service to return a response data packet according to the detection data packet. The acceleration service determines the sending time of the detection data packet and the returning time of the returned response data packet, and determines the network fluency of the current network through the sending time and the returning time. For example, when the time difference between the transmission time and the return time is greater than a preset time difference threshold, indicating that the current network is highly delayed; and when the time difference between the sending time and the returning time is smaller than or equal to a preset time difference threshold value, indicating that the current network is smooth.
In one embodiment, the terminal may correspondingly display a network channel setting page, so that a user may set a network channel based on the page to determine whether to allow the terminal to automatically perform a switching operation of the network channel under the condition that the current network does not meet a preset network fluency condition, and further, the acceleration service may determine network channel setting information based on the setting operation of the user.
In one embodiment, the acceleration service obtains network traffic data corresponding to the current network, and analyzes the network traffic data to determine whether the network traffic data includes a network address and a network domain name, so that the acceleration service can determine a traffic type corresponding to the network traffic data according to the network address and the network domain name. When the network flow data only contains a network address, the acceleration service judges that the flow type corresponding to the network flow data is website flow; when the network flow data only comprises a network domain name, the acceleration service judges that the flow type corresponding to the network flow data is domain name flow; when the network traffic data includes both the network address and the network domain name, the traffic type corresponding to the network traffic data can be either web site traffic or domain name traffic.
In one embodiment, when the network address in the network traffic data is obtained, that is, when the IP address of the target server is obtained, the acceleration service may query the address of the IP, so that the address of the IP is set as the area where the target server corresponding to the target application program is located.
In one embodiment, when the application identifier of the currently running target application program is obtained, the terminal acceleration service may query, from the network, the area where the target server corresponding to the target application program is located according to the application identifier.
In the application program acceleration method, the network flow data can be subjected to flow characteristic analysis by acquiring the network flow data when the terminal runs, so as to obtain the network flow characteristics, the network flow characteristics and the preset flow characteristics can be subjected to characteristic matching processing, and when the matching is successful, the acceleration service is automatically awakened, so that the target application program running at present can be determined based on the acceleration service which is automatically awakened, and the intelligent acceleration processing is performed on the target application program according to the network related information of the network where the terminal is currently located and the application related information of the target application program. Because the application can automatically wake up the acceleration service when the current network flow data meets the preset network characteristic conditions, and determine the corresponding target application program based on the acceleration service to intelligently accelerate the target application program, compared with the traditional method of starting and operating the accelerator and then starting the application program, the application can greatly simplify the operation steps, thereby further improving the acceleration efficiency.
In addition, due to the fact that the acceleration strategy is determined according to the network related information and the application related information, the method and the device can intelligently select the proper acceleration strategy, and therefore acceleration effect is improved based on the proper acceleration strategy.
In one embodiment, the preset traffic characteristics include a preset target domain name, the network traffic characteristics include a network domain name, the traffic characteristics are parsed for the network traffic data to obtain corresponding network traffic characteristics, and the network traffic characteristics and the preset traffic characteristics are subjected to characteristic matching processing, including: analyzing the flow characteristics of the network flow data to obtain a network domain name corresponding to the network flow data; performing domain name matching on the network domain name and a preset target domain name; and when the network domain name is a preset target domain name, determining that the matching is successful.
Specifically, before the application program sends the network traffic data to the corresponding server, the application program may generate an HTTP packet according to the domain name corresponding to the server, generate a TCP (Transmission Control Protocol ) header according to the local port number and the server port number, generate an IP header according to the local IP address and the IP address corresponding to the domain name, combine the HTTP packet, the TCP header, and the IP header to obtain the network traffic data, and send the network traffic data to the system network card.
The terminal captures network flow data flowing through the system network card, analyzes flow characteristics of the network flow data, removes an IP header and a TCP header to obtain an HTTP message, and extracts a domain name in the HTTP message based on a preset regular matching condition to obtain a network domain name corresponding to the network flow data. The terminal performs domain name matching on the network domain name and a preset target domain name, judges whether the network domain name corresponding to the network traffic data belongs to the preset target domain name, and determines that the network domain name is successfully matched with the preset target domain name when the network domain name belongs to the preset target domain name.
In this embodiment, since only a simple domain name matching is performed on the network domain name, whether the network traffic data accords with the preset traffic characteristics can be determined, so that the wake-up efficiency of the acceleration service is greatly improved, and the acceleration efficiency of the application program is further improved.
In one embodiment, the network traffic data is traffic data flowing through a network card of the system, and when the matching is successful, wake up an acceleration service locally pre-installed in the terminal, so as to identify an application program according to the network traffic characteristics of the matching success, and obtain a target application program currently operated by the terminal, including: when the network flow characteristics are successfully matched with the preset flow characteristics, the acceleration service is awakened through the network card drive corresponding to the system network card, and the network flow data is forwarded to the virtual network card corresponding to the acceleration service; and identifying the application program based on the network flow data on the virtual network card by accelerating the service so as to determine the target application program currently operated by the terminal.
Specifically, when the network traffic data flows through the system network card, the terminal captures the network traffic data flowing through the system network card, and analyzes the flow characteristics of the captured network traffic data to determine whether the network traffic characteristics of the network traffic data are matched with the preset flow characteristics. When the network flow characteristics are matched with the preset flow characteristics, the terminal wakes up the acceleration service through the network card drive corresponding to the system network card, and forwards the network flow data to the virtual network card corresponding to the acceleration service, so as to trigger the waken up acceleration service to identify the application program of the network flow data flowing through the virtual network card, and determine the currently running target application program for generating the network flow data.
In this embodiment, by capturing network traffic data flowing through a network card of the system, the network traffic data can be matched with a preset traffic feature, so that when the matching is successful, the acceleration service is automatically awakened through the network card drive; by forwarding the network flow data meeting the preset flow characteristic conditions to the corresponding virtual network card, the acceleration service can conveniently identify the application program of the network flow data, and the currently running target application program is determined, so that the network acceleration processing of the target application program is realized.
In one embodiment, the network related information includes at least one of network delay information, network channel setting information, and a traffic type corresponding to the network traffic data, and the application related information includes at least one of an area where a target server corresponding to the target application program is located, and application account information; the network channel setting information comprises the condition that switching operation of the network channel is allowed to be performed and the condition that switching operation of the network channel is not allowed to be performed; the traffic types corresponding to the network traffic data comprise website traffic and domain name traffic.
Specifically, the acceleration service acquires network delay information of a current network, determines whether the current network allows switching operation of a network channel, judges the flow type of network flow data corresponding to the current network, and takes whether the current network allows switching operation of the network channel as corresponding network channel setting information; and taking the traffic type corresponding to the network delay information, the network channel setting information and the network traffic data as the network related information. Meanwhile, the acceleration service determines the area of the target server corresponding to the target application program and the application account information of the login target application program, and takes the area of the target server and the application account information of the login target application program as application related information.
In this embodiment, by acquiring the multidimensional network related information and the application related information, the actual situations of the current network and the currently running target application program can be comprehensively judged based on the network related information and the application related information, so as to obtain a suitable acceleration policy.
In one embodiment, the network-related information includes a traffic type corresponding to network traffic data; based on the network related information of the network where the terminal is currently located and the application related information of the target application program, performing network acceleration processing on the target application program through an acceleration service, including: acquiring abnormal flow conditions corresponding to the flow types through acceleration service; when the network traffic data of the target application program meets the abnormal traffic condition, the network traffic data of the target application program is shielded through the acceleration service.
Specifically, when obtaining the network traffic data of the target application program, the acceleration service analyzes the network traffic data and extracts a network address and/or a network domain name in the network traffic data. When the network traffic data contains a network address, that is, when the traffic type of the network traffic data is web site traffic, the acceleration service obtains an abnormal traffic condition corresponding to the web site traffic, and judges whether the network traffic data of the target application program meets the abnormal traffic condition. Similarly, when the network traffic data includes a network domain name, that is, when the traffic type of the network traffic data is the domain name traffic, the acceleration service obtains an abnormal traffic condition corresponding to the domain name traffic, and determines whether the network traffic data of the target application program satisfies the abnormal traffic condition.
When the network traffic data of the target application program meets the abnormal traffic condition, the target server accessed by the target application program is indicated to be an abnormal server, and the acceleration service performs shielding processing on the network traffic data of the target application program. And when the network traffic data of the target application program does not meet the abnormal traffic condition, the acceleration service carries out network acceleration processing on the target application program based on the application related information.
It is easy to understand that when the network traffic data of the target application includes both the network address and the network domain name, the acceleration service obtains an abnormal traffic condition corresponding to the website traffic and an abnormal traffic condition corresponding to the domain name traffic, and judges whether the network traffic data of the target application program is abnormal or not according to the abnormal traffic condition corresponding to the website traffic and the abnormal traffic condition corresponding to the domain name traffic. The abnormal traffic condition corresponding to the website traffic may be whether the network address in the network traffic data is one of the preset abnormal IP address sets; the abnormal traffic condition corresponding to the domain name traffic may be whether the network domain name in the network traffic data is one of a preset abnormal domain name set.
In one embodiment, referring to fig. 3, as shown in fig. 3, when obtaining network traffic data of a target application program, an acceleration service determines a traffic type of the network traffic data, obtains a corresponding abnormal traffic condition based on the traffic type, that is, obtains a website abnormal traffic condition and/or a domain name abnormal traffic condition, and performs condition matching on the network traffic data of the target application program and the abnormal traffic condition to determine whether the network traffic data meets the abnormal traffic condition. When the network traffic data of the target application program does not belong to the website traffic and the domain name traffic, the acceleration service performs shielding processing on the network traffic data; when the network flow data of the target application program belongs to the website flow or the domain name flow and the abnormal flow condition is met, the acceleration service performs shielding processing on the network flow data; when the network flow data of the target application program belongs to the website flow or the domain name flow and the abnormal flow condition is not met, the acceleration service judges whether the current network is high in delay or not according to the network delay information of the current network, and carries out network acceleration processing on the target application program under the condition that the current network is high in delay or not, and carries out direct connection processing on the target application program under the condition that the current network is smooth. FIG. 3 is a flow diagram illustrating network acceleration based on traffic type and exception conditions, in one embodiment.
In the above embodiment, when the network traffic data of the target application program does not meet the abnormal traffic condition, by performing the masking processing on the network traffic data of the target application program, the unnecessary acceleration process may be reduced, so as to save the resources consumed when performing the unnecessary acceleration process.
In one embodiment, the network related information includes network delay information and network channel setting information; based on the network related information of the network where the terminal is currently located and the application related information of the target application program, performing network acceleration processing on the target application program through an acceleration service, including: when the network delay information does not meet the network fluency condition and the network channel setting information characterizes that the network channel switching is allowed, triggering the switching operation of switching the network channel of the current network through the acceleration service; and carrying out network acceleration processing on the target application based on the application related information and the network after channel type switching.
Specifically, the acceleration service generates a detection data packet for detecting the network smoothness, sends the detection data packet to a preset response server, and determines network delay information of the current network according to the sending time of the detection data packet and the returning time of the response data packet returned by the preset response server. Further, the acceleration service judges whether network delay information of the current network meets network fluency conditions, and when the network delay information does not meet the network fluency conditions and network channel setting information characterization allows network channel switching and the terminal has the capability of connecting double network channels, the acceleration service automatically switches the network channels of the current network, and carries out network acceleration processing on the target application based on the application related information and the network after channel type switching. For example, when the network channel setting information characterization allows network channel switching, the current terminal is connected with the WIF network, and the 4G traffic switch is turned on, the acceleration service judges whether the current WIFI network is high-delay or not, and when the current WIFI network is high-delay or not, the network channel is automatically switched to the 4G traffic, so that the network acceleration processing is performed on the target application program using the 4G traffic.
In one embodiment, before the application program is started to perform application interaction, the user may set the authority of switching the network channel, so as to determine whether to allow the terminal to automatically perform the switching operation of the network channel under the condition that the current network is high in delay or not connected.
In the above embodiment, when the network delay information of the current network does not meet the network fluency condition, the acceleration processing is performed on the network of the target application, so that an unnecessary acceleration processing process can be reduced, and resources consumed when the unnecessary acceleration processing process is performed are saved.
In one embodiment, based on the application related information and the network after the channel type is switched, performing network acceleration processing on the target application includes: determining a matched target acceleration line through an acceleration service based on the application related information; and transmitting the network flow data of the target application program to a target server corresponding to the target application program through the target acceleration line and the network after the channel type is switched, so as to realize the network acceleration processing of the target application program.
Specifically, the acceleration service determines a target acceleration line by applying the related information, and uses the network after channel type switching as a carrier, and transmits network flow data of the target application program to a target server corresponding to the target application program through the target acceleration line so as to accelerate the network of the target application program.
In this embodiment, by determining the target acceleration line and the network after the channel type is switched, the network after the channel type is switched may be used as a carrier, and the network traffic data is sent to the corresponding server through the target acceleration line, so as to implement network acceleration processing.
In one embodiment, the application-related information includes an area where a target server corresponding to the target application program is located; determining a matched target acceleration line through an acceleration service based on the application related information, including: determining a primary area label and a secondary area label of an area where a target server is located through acceleration service; the secondary region label is subordinate to the primary region label; through acceleration service, determining a matched target access node according to the primary area label, and determining a matched target exit node according to the secondary area label; and determining a corresponding target acceleration line according to the target access node and the target exit node through the acceleration service.
Specifically, when the acceleration service determines the target application, the acceleration service may determine a primary area tag and a secondary area tag to which an area where the target server corresponding to the target application belongs, and determine a corresponding target acceleration line according to the primary tag and the secondary tag. Wherein the first-level regional tag is a higher-level regional tag, and the second-level regional tag is a tag subordinate to the first-level regional tag. It will be appreciated that the secondary region tags identify a larger region range, including a plurality of secondary region tags of the subordinate. For example, the first-level regional tag may specifically be tag information identifying the country in which the target server is located; the secondary area label may specifically be label information identifying the province where the target server is located.
Further, when the primary area tag is obtained, the acceleration service determines whether the corresponding target server is in China or not based on the primary area tag. When the target server is in China, the acceleration service selects a domestic acceleration circuit, and takes a pre-deployed acceleration server which is positioned on the domestic acceleration circuit and is closest to the current terminal as a target access node of the domestic acceleration circuit; when the target server is in abroad, the acceleration service selects an abroad acceleration line, and takes a pre-deployed acceleration server which is positioned on the abroad acceleration line and is closest to the current terminal as a target access node of the abroad acceleration line.
Correspondingly, when the secondary region label is obtained, the acceleration service takes a pre-deployed acceleration server which is positioned on a corresponding acceleration line and is closest to a region corresponding to the secondary region label as a target exit node, so that the acceleration service can determine a corresponding target acceleration line based on a target access node and the target exit node, send network flow data of a target application program to the target access node of the target acceleration line, forward the network flow data to the target exit node through the target access node, and forward the network flow data to the corresponding target server through the target exit node, thereby realizing network acceleration processing of the target application. The acceleration server is a server for forwarding network data traffic, and before accelerating the network of the target application program based on the acceleration service, a plurality of acceleration servers can be deployed in different provinces of different countries, so that the acceleration service can intelligently select a proper acceleration server, and the network data traffic is quickly transmitted to the corresponding target server through the acceleration server.
In the above embodiment, by intelligently selecting a suitable target acceleration line through the area where the target server is located, the acceleration effect of network acceleration on the target application program can be greatly improved.
In one embodiment, determining a matching target egress node from the secondary region label by the acceleration service comprises: when the number of the target servers is more than one, determining a secondary area label to which each target server belongs respectively through acceleration service; determining a secondary target area label from the secondary area labels respectively belonging to each target server through acceleration service; by the acceleration service, a target egress node is set based on a target server belonging to the secondary target area label.
Specifically, in order to facilitate the terminal to quickly acquire corresponding information from the target servers, multiple target servers may be deployed in different provinces in different countries for the same target application program, so that the terminal may establish a communication link with a target server closest to the terminal, and quickly acquire corresponding information stored in the target server based on the communication link. Therefore, when the number of the target servers is more than one, the acceleration service determines the secondary area labels to which each target server respectively belongs, and determines the secondary target area labels from the secondary area labels to which each target server respectively belongs according to the current area of the terminal. For example, the acceleration service determines secondary areas corresponding to the secondary area labels respectively, takes a secondary area closest to the current area of the terminal as a target secondary area, and takes a secondary area label corresponding to the target secondary area as a secondary target area label. Further, the acceleration service determines a target server within the target secondary area, and takes the determined target server as a target exit node.
It is easy to understand that when the number of target servers corresponding to the target application program is one, the target exit node of the target acceleration line is a fixed exit node, that is, the target exit node is fixed to the same server; when the target servers corresponding to the target application program are distributed in different provinces, the target exit node of the target acceleration line is a dynamic exit node, namely the target exit node can be dynamically switched among a plurality of servers.
In the above embodiment, since the corresponding target exit node is determined based on the secondary area tag, the optimal exit node may be determined based on the secondary area tag, so that the acceleration effect of the network acceleration processing on the target application is improved based on the optimal exit node.
In one embodiment, the application acceleration method further includes: when the network acceleration processing is carried out on the target application program through the acceleration service, determining a target interface currently displayed by the target application; and correspondingly displaying the acceleration service opening identification at the target position of the target interface.
Specifically, when the acceleration service is awakened and network acceleration processing is performed on the currently running target application based on the acceleration service, the terminal determines a target interface currently displayed by the target application, and displays an acceleration service opening identifier at a target position of the target interface. For example, referring to fig. 4, when the acceleration service is awakened, the terminal obtains the interface data of the target interface currently displayed by the target application, and adds the acceleration service opening identifier to the interface data, so that after rendering the interface data added with the acceleration service opening identifier, the acceleration service opening identifier 402 can be correspondingly displayed at the target position of the current interface, so as to remind the user that the acceleration service is opened. FIG. 4 is a schematic diagram of an acceleration service opening identification, in one embodiment.
In this embodiment, the acceleration service start identifier is displayed correspondingly, so that the user can be reminded that the acceleration service is started, and the user experience is improved.
In one embodiment, the network related information includes network delay information; based on the network related information of the network where the terminal is currently located and the application related information of the target application program, carrying out network acceleration processing on the target application program through an acceleration service, wherein the network acceleration processing comprises the following steps: when the network delay information does not meet the network fluency condition, determining a matched target acceleration line through acceleration service based on the application related information; and transmitting the network flow data of the target application program to a target server corresponding to the target application program through a target acceleration circuit, so as to realize the network acceleration processing of the target application program.
Specifically, the acceleration service generates a detection data packet for detecting the network smoothness, sends the detection data packet to a preset response server, and determines network delay information of the current network according to the sending time of the detection data packet and the returning time of the response data packet returned by the preset response server. Further, the acceleration service judges whether the network delay information of the current network meets the preset network fluency condition, when the network delay information does not meet the preset network fluency condition, namely when the current network is high in delay or is not connected, the acceleration service determines a corresponding target acceleration line according to the application related information, and transmits network flow data to a target server corresponding to the target application program through the target acceleration line so as to realize network acceleration processing of the target application program. And when the network delay information meets the preset network fluency condition, namely when the current network is fluent, the acceleration service pauses to determine a target acceleration line, and the network flow data is directly sent to a target server corresponding to the target application program according to the original mode.
In one embodiment, referring to fig. 5, as shown in fig. 5, when the terminal obtains the network traffic data flowing through the network card of the system, the terminal determines whether the network traffic data meets a preset traffic characteristic condition, and automatically wakes up the acceleration service when the network traffic data meets the preset traffic characteristic condition. Further, the acceleration service determines network delay information of the current network, judges whether the network delay information of the current network meets network fluency conditions, determines a target acceleration line by applying relevant information under the condition that the current network is high in delay or is not connected, and accelerates the network of the target application program through the target acceleration line; when the current network is smooth, the network flow data is directly sent to a target server corresponding to the target application program according to the original mode so as to directly connect the network of the target application program. Fig. 5 shows a flow diagram of a network acceleration process based on network delay information in one embodiment.
In the above embodiment, when the network delay information of the current network does not meet the network fluency condition, the acceleration processing is performed on the network of the target application, so that an unnecessary acceleration processing process can be reduced, and resources consumed when the unnecessary acceleration processing process is performed are saved.
In one embodiment, the network related information includes network delay information and network channel setting information; based on the network related information of the network where the terminal is currently located and the application related information of the target application program, carrying out network acceleration processing on the target application program through an acceleration service, wherein the network acceleration processing comprises the following steps: when the network delay information does not meet the network fluency condition and the network channel setting information characterizes that the network channel switching is allowed, triggering the switching operation of switching the network channel of the current network through the acceleration service; and carrying out network acceleration processing on the target application based on the application related information and the network after channel type switching.
Specifically, the network related information includes network delay information and network channel setting information, and before an application program is started to perform application interaction, a user can set the authority of network channel switching so as to determine whether to allow the terminal to automatically perform network channel switching operation under the condition that the current network is high in delay or not connected.
When a user starts a target application program and the network data flow generated by the target application program meets the preset flow characteristic conditions, the terminal automatically wakes up the acceleration service, and obtains application related information of the target application and network delay information of the current network through the acceleration service. The acceleration service judges whether network delay information of the current network meets network fluency conditions, and when the network delay information does not meet the network fluency conditions, network channel setting information characterization allows network channel switching, and the terminal has the capability of connecting double network channels, the acceleration service automatically switches the network channels of the current network, and carries out network acceleration processing on the target application based on application related information and the network after channel type switching. For example, when the network channel setting information characterization allows network channel switching, the current terminal is connected with the WIF network, and the 4G traffic is started, the acceleration service judges whether the current WIFI network is high-delay or not connected, and when the current WIFI network is high-delay or not connected, the network channel is automatically switched to the 4G traffic, so that the network acceleration processing is performed on the target application program using the 4G traffic.
It is easy to understand that when the network delay information meets the network fluency condition, the acceleration service directly sends the network data to the corresponding target server according to the original mode; when the network delay information does not meet the network fluency condition and the network channel setting information characterizes the network channel switching is not allowed, the acceleration service carries out network acceleration processing on the target application based on the application related information of the target application and the network without channel type switching.
In one embodiment, after the network channel is switched, the acceleration service obtains network delay information of the network after the channel type is switched, and determines whether the network delay information meets a network fluency condition. When the network delay information of the network after the channel type switching meets the network fluency condition, the acceleration service directly sends the network data to a corresponding target server according to the original mode, namely, directly connecting the target application program; and when the network delay information of the network after the channel type is switched does not meet the network fluency condition, the acceleration service carries out network acceleration processing on the target application program based on the application related information.
In one embodiment, when the network delay information of the current network channel does not meet the network fluency condition and the network channel setting information characterization allows the network channel switching, the terminal judges whether the user has opened another network channel, if not, the terminal automatically opens another network channel and executes the network channel switching operation, such as automatically opening the 4G traffic, and automatically switching the WIFI traffic to the 4G traffic.
In the above embodiment, the current network may be switched to a smoother network channel by performing the switching process on the network channel, so as to improve the network acceleration effect on the target application.
In one embodiment, the application-related information includes an area where a target server corresponding to the target application program is located; based on the network related information of the network where the terminal is currently located and the application related information of the target application program, carrying out network acceleration processing on the target application program through an acceleration service, wherein the network acceleration processing comprises the following steps: determining a primary area label and a secondary area label of an area where a target server is located; the secondary region label is subordinate to the primary region label; determining a matched target access node according to the primary area label, and determining a matched target exit node according to the secondary area label; determining a corresponding target acceleration line according to the target access node and the target exit node; and transmitting the network traffic data of the target application program to the target server through the acceleration service and the target acceleration line.
Specifically, when the acceleration service determines the target application, the acceleration service may determine a primary area tag and a secondary area tag to which an area where the target server corresponding to the target application belongs, and determine a corresponding target acceleration line according to the primary tag and the secondary tag. Wherein the first-level regional tag is a higher-level regional tag, and the second-level regional tag is a tag subordinate to the first-level regional tag. It will be appreciated that the secondary region tags identify a larger region range, including a plurality of secondary region tags of the subordinate. For example, the first-level regional tag may specifically be tag information identifying the country in which the target server is located; the secondary area label may specifically be label information identifying the province where the target server is located.
Further, when the primary area tag is obtained, the acceleration service determines whether the corresponding target server is in China or not based on the primary area tag. When the target server is in China, the acceleration service selects a domestic acceleration circuit, and takes a pre-deployed acceleration server which is positioned on the domestic acceleration circuit and is closest to the current terminal as a target access node of the domestic acceleration circuit; when the target server is in abroad, the acceleration service selects an abroad acceleration line, and takes a pre-deployed acceleration server which is positioned on the abroad acceleration line and is closest to the current terminal as a target access node of the abroad acceleration line.
Correspondingly, when the secondary region label is obtained, the acceleration service takes a pre-deployed acceleration server which is positioned on a corresponding acceleration line and is closest to a region corresponding to the secondary region label as a target exit node, so that the acceleration service can determine a corresponding target acceleration line based on a target access node and the target exit node, send network flow data of a target application program to the target access node of the target acceleration line, forward the network flow data to the target exit node through the target access node, and forward the network flow data to the corresponding target server through the target exit node, thereby realizing network acceleration processing of the target application. The acceleration server is a server for forwarding network data traffic, and before accelerating the network of the target application program based on the acceleration service, a plurality of acceleration servers can be deployed in different provinces of different countries, so that the acceleration service can intelligently select a proper acceleration server, and the network data traffic is quickly transmitted to the corresponding target server through the acceleration server. In one embodiment, the target server may also be directly used as the target egress node, so that the target access node may directly forward the network data traffic to the corresponding target server.
In one embodiment, when a node in the target acceleration line is unavailable due to a failure, the acceleration service may intelligently select an alternate node and re-forward network traffic data to the target server based on the alternate node. For example, referring to fig. 6, when a user in country a accesses a C target server deployed in country C through an a target application, an acceleration service determines an a acceleration server previously installed in country a, and forwards network traffic data forwarded to the target access node to the target server through a foreign acceleration line with the a acceleration server as a target access node. When the acceleration server A is unavailable due to a fault, the acceleration service determines the acceleration server B closest to the acceleration server A, takes the acceleration server B as a replacement node, and forwards the network traffic data to the target server again based on the replacement node. FIG. 6 illustrates a node replacement schematic diagram, in one embodiment.
In one embodiment, referring to fig. 7, as shown in fig. 7, when the first-level regional tag is obtained, the acceleration service determines whether the target application program belongs to the national service application according to the first-level tag, and when the target application program belongs to the national service application, the acceleration service selects a domestic acceleration line; when the target application does not belong to the national service application, the acceleration service selects a foreign acceleration line. Further, the acceleration service determines a target operator providing the current network, determines a target intermediate device which belongs to the target operator and is closest to the area where the current terminal is located, and takes the target intermediate device as a target access node of a corresponding acceleration line. The intermediate device may be a router, gateway, switch, etc.
Further, when the domestic acceleration line is selected, the acceleration service determines a matched target exit node based on the secondary area label of the target server, and determines the target acceleration line according to the target access node and the target exit node. When the foreign accelerating line is selected, the accelerating service determines a corresponding national special line according to the application area suit which is selected by the user and expected to enter, determines a matched target exit node based on a secondary area label of the target server, and connects the target access node and the target exit node through the national special line to obtain the corresponding target accelerating line. The application zone suit is divided into different zone groups based on the architecture setting of the zone suit, each zone group is composed of one or more servers in the corresponding zone, for example, the A suit is composed of one or more servers in the A-state zone, so that when a user can select a certain zone group to log in an application, the acceleration service determines a target zone in which the servers composing the zone group are located, and determines a corresponding national special line according to the target zone, for example, the A-state special line is determined according to the selected A-suit, and network traffic data is forwarded to the target server in the A-state zone based on the A-state special line. FIG. 7 is a flow diagram that illustrates the steps of determining a target acceleration circuit, in one embodiment.
In the above embodiment, by intelligently selecting a suitable target acceleration line through the area where the target server is located, the acceleration effect of network acceleration on the target application program can be greatly improved.
As shown in fig. 8, in a specific embodiment, the application-based acceleration method includes the steps of:
S802, obtaining verification traffic data, and determining traffic source information and network traffic characteristics of the verification traffic data.
S804, determining preset application identifiers corresponding to preset application programs belonging to the target category, when the flow source information points to the preset application program corresponding to the preset application identifier, taking the network flow characteristic corresponding to the flow source information as the preset flow characteristic, and determining the preset flow characteristic condition according to the preset flow characteristic.
And S806, acquiring network flow data generated during terminal operation, and analyzing flow characteristics of the network flow data to obtain a network domain name corresponding to the network flow data.
S808, performing domain name matching on the network domain name and a preset target domain name.
S810, when the network domain name is a preset target domain name, waking up the acceleration service through a network card driver corresponding to the system network card, and forwarding the network flow data to a virtual network card corresponding to the acceleration service.
And S812, acquiring a corresponding relation between the preset application program and the preset flow characteristics through the acceleration service, performing relation matching on the network flow characteristics of the network flow data on the virtual network card and the corresponding relation, and taking the matched preset application program as a target application program currently operated by the terminal.
S814, determining network related information of the network where the terminal is currently located and application related information of the target application program; the network related information comprises at least one of network delay information, network channel setting information and flow types corresponding to network flow data, and the application related information comprises at least one of a region where a target server corresponding to a target application program is located and application account information; the network channel setting information comprises the condition that switching operation of the network channel is allowed to be performed and the condition that switching operation of the network channel is not allowed to be performed; the traffic types corresponding to the network traffic data comprise website traffic and domain name traffic.
And S816, carrying out network acceleration processing on the target application program through the acceleration service based on the network related information of the terminal and the application related information of the target application program.
S818, when the network acceleration processing is carried out on the target application program through the acceleration service, determining a target interface currently displayed by the target application; and correspondingly displaying the acceleration service opening identification at the target position of the target interface.
In the application program acceleration method, the network flow data can be subjected to flow characteristic analysis by acquiring the network flow data when the terminal runs, so as to obtain the network flow characteristics, the network flow characteristics and the preset flow characteristics can be subjected to characteristic matching processing, and when the matching is successful, the acceleration service is automatically awakened, so that the target application program running at present can be determined based on the acceleration service which is automatically awakened, and the intelligent acceleration processing is performed on the target application program according to the network related information of the network where the terminal is currently located and the application related information of the target application program. Because the application can automatically wake up the acceleration service when the current network flow data meets the preset network characteristic conditions, and determine the corresponding target application program based on the acceleration service to intelligently accelerate the target application program, compared with the traditional method of starting and operating the accelerator and then starting the application program, the application can greatly simplify the operation steps, thereby further improving the acceleration efficiency.
As shown in fig. 9, in a specific embodiment, the application-based acceleration method includes the steps of:
S902, acquiring network flow data generated when the terminal runs, waking up the local acceleration service of the terminal (also known as starting an accelerator VPN process) when the network flow data is flow data generated by a game application (for example, when a network flow characteristic corresponding to the network flow data hits a preset game characteristic rule), and forwarding the network flow data to a virtual network card corresponding to the acceleration service.
S904, the application program identification is carried out on the network flow data forwarded to the virtual network card through the acceleration service so as to determine the currently running target game application. For example, on the virtual network card, the accelerator VPN matches the characteristics of the pre-set IP and/or domain name with the network traffic data, and identifies the specific game according to the matching result.
S906, determining network related information of the current network and application related information of the target game; the network related information comprises at least one of network delay information, network channel setting information and flow types corresponding to the network flow data, and the application related information comprises at least one of a region where a target game server corresponding to the target game application is located and a game account number.
S908, when the network delay information does not meet the network fluency condition (for example, when the network where the terminal is currently located is high in delay or is directly connected and is not connected), and the network channel setting information indicates that the network channel switching is allowed, triggering a switching operation of switching the network channel of the current network through the acceleration service.
S910, obtaining an abnormal flow condition corresponding to the flow type through the acceleration service, and shielding the network flow data of the target game application through the acceleration service when the network flow data of the target game application meets the abnormal flow condition (for example, when the network flow data is sensitive or is abnormal flow data).
S912, determining a primary area label (country) and a secondary area label (province) of an area where the target game server is located, and determining a matched target access node according to the primary area label; the secondary region tags are subordinate to the primary region tags. That is, a national access node provided by a national operator or a foreign access node provided by a foreign operator is selected to be accessed through the primary area tag.
S914, when the number of the target game servers is more than one, determining a secondary area label to which each target game server belongs respectively; and determining a secondary target area label from the secondary area labels respectively belonging to the target game servers.
S916, setting a target exit node based on the target game server belonging to the secondary target area label, and determining a corresponding target acceleration line according to the target access node and the target exit node.
S918, transmitting the network flow data of the target game application to the target game server through the acceleration service and the target acceleration line.
It should be understood that, although the steps in the flowcharts of fig. 2, 8-9 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of FIGS. 2, 8-9 may include steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in other steps.
For ease of understanding by those skilled in the art, referring to FIG. 10, FIG. 10 illustrates a flow diagram of an application acceleration method in one embodiment. The user can preset the preset flow characteristics through the accelerator application program, so that when the network flow data flowing through the system network card is obtained, the network flow characteristics corresponding to the network flow data can be matched with the preset flow characteristics, and when the network flow characteristics are matched with the preset flow characteristics, the system network card drives to wake up the acceleration service, and the network flow data flowing through the system network card is forwarded to the virtual network card corresponding to the acceleration service. The acceleration service analyzes the network flow data flowing through the virtual network card, identifies a target application program based on the network address and the network domain name in the network flow data, and acquires the network related information of the current network and the application related information of the target application program. The acceleration service determines whether the current network of the terminal meets the network fluency condition according to the network related information, and determines whether to perform network acceleration processing on the target application program based on whether the current network of the terminal meets the network fluency condition. When the current network of the terminal does not meet the network fluency condition, the terminal selects to perform network acceleration processing on the target application program, the acceleration service determines a corresponding acceleration channel according to network channel setting information in the network related information, determines a target inlet node and a target outlet node according to the application related information, and forwards network flow data to the target server according to the acceleration channel, the target inlet node and the target outlet node. And when the current network of the terminal meets the network fluency condition, the acceleration service carries out direct connection processing on the current network of the terminal.
For ease of understanding by those skilled in the art, referring to FIG. 11, FIG. 11 shows a schematic flow diagram of application acceleration in another embodiment. The terminal obtains network flow data generated during operation, analyzes flow characteristics of the network flow data to obtain corresponding network flow characteristics, performs characteristic matching on the network flow characteristics and preset flow, wakes up a local pre-installed acceleration service when the matching is successful, and performs application program identification according to the successfully matched network flow characteristics to obtain a currently operated target application program. The terminal obtains network delay information and network channel setting information of the current network, compares the network delay information with network fluency conditions, and when the network delay information does not meet the network fluency conditions, the acceleration service judges whether the network channel setting information is characterized to allow network channel switching, and when the network channel setting information is characterized to allow the network channel switching, the acceleration service triggers switching operation of switching the network channels of the current network; when the network channel setting information characterizes that the network channel switching is not allowed, the acceleration service stops triggering the switching operation of switching the network channel of the current network. And when the network delay information meets the network fluency condition, the acceleration service carries out direct connection processing on the current network.
Further, when the network delay information does not meet the network fluency condition and the current network channel is determined, the acceleration service acquires the flow type corresponding to the network flow data and the abnormal flow condition corresponding to the flow type, judges whether the network flow data of the target application program meets the abnormal flow condition, and when the network flow data of the target application program meets the abnormal flow condition, the acceleration service performs shielding processing on the network flow data of the target application program.
Further, when the network traffic data of the target application program does not meet the abnormal traffic condition, the acceleration service acquires application related information of the target application program, and determines an area where a target server corresponding to the target application program is located based on the application related information. The acceleration service determines a primary area label and a secondary area label of an area where the target server is located, and determines a matched target access node according to the primary area label. When the number of the target servers is more than one, the acceleration service determines secondary area labels to which each target server respectively belongs, determines the secondary target area labels from the secondary area labels to which each target server respectively belongs, and sets a target exit node based on the target servers subordinate to the secondary target area labels. The acceleration service determines a corresponding target acceleration line according to the target access node and the target exit node, and transmits network flow data of the target application program to a target server corresponding to the target application program through the target acceleration line and the current network channel, so as to realize network acceleration processing of the target application program.
The application also provides an application scene, which applies the application program acceleration method. Specifically, the application of the application program acceleration method in the application scene is as follows:
When the acceleration processing is required to be performed on the game applications belonging to the game categories, a developer can set the game domain names corresponding to the game applications in the terminal in advance based on the accelerator application program, so that when the user starts the application program, the terminal can judge whether the currently running application program is the game application or not based on the network domain names in the network flow data generated by the application program. When the currently running application program belongs to the game application, the terminal automatically wakes up the acceleration service, acquires network related information of the current network and application related information of the currently running game application based on the acceleration service, and automatically accelerates the currently running game application according to the network related information and the application related information.
The application also provides another application scene, and the application scene applies the application program acceleration method. Specifically, the application of the application program acceleration method in the application scene is as follows:
When the terminal analyzes flow characteristics of network flow data generated during operation, and determines that a user starts a target application program with stronger timeliness such as group answering, red packet answering or wheat answering and the like according to analysis results, and participates in activities such as group answering, red packet answering and wheat answering, the terminal automatically wakes up a locally pre-installed acceleration service, and determines a specific target application program currently operated through the acceleration service. The terminal acquires network related information of the current network and application related information of the target application program, and performs network acceleration processing on the target application program based on the network related information and the application related information through acceleration service so as to meet the higher requirements of users on timeliness and networks.
In one embodiment, as shown in fig. 12, an application acceleration apparatus 1200 is provided, which may employ software modules or hardware modules, or a combination of both, as part of a computer device, and specifically includes: a traffic data acquisition module 1202, a target application determination module 1204, and an acceleration module 1206, wherein:
The traffic data acquisition module 1202 is configured to acquire network traffic data generated during terminal operation.
The target application program determining module 1204 is configured to perform flow characteristic analysis on the network flow data to obtain a corresponding network flow characteristic, and perform characteristic matching processing on the network flow characteristic and a preset flow characteristic; and when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the network flow characteristics of the successful matching, thereby obtaining the target application program currently operated by the terminal.
The acceleration module 1206 is configured to perform network acceleration processing on the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program.
In one embodiment, as shown in fig. 13, the preset traffic characteristics include a preset target domain name, the network traffic characteristics include a network domain name, and the target application program determining module 1204 is further configured to perform traffic characteristic analysis on the network traffic data to obtain a network domain name corresponding to the network traffic data; performing domain name matching on the network domain name and a preset target domain name; and when the network domain name is a preset target domain name, determining that the matching is successful.
In one embodiment, the network traffic data is traffic data flowing through a system network card, and the target application program determining module 1204 is further configured to wake up the acceleration service through a network card driver corresponding to the system network card and forward the network traffic data to a virtual network card corresponding to the acceleration service when the network traffic feature is successfully matched with the preset traffic feature; and identifying the application program based on the network flow data on the virtual network card by accelerating the service so as to determine the target application program currently operated by the terminal.
In one embodiment, the target application determining module 1204 is further configured to obtain, through an acceleration service, a correspondence between a preset application and a preset flow characteristic; through acceleration service, network flow characteristics of network flow data on the virtual network card are subjected to relation matching with corresponding relations; and taking the matched preset application program as a target application program currently operated by the terminal.
In one embodiment, the application acceleration device 1200 further includes a preset traffic characteristics acquisition module 1208 configured to acquire verification traffic data and determine traffic source information and network traffic characteristics of the verification traffic data; determining preset application identifiers corresponding to preset application programs belonging to the target class respectively; when the traffic source information points to the preset application program corresponding to the preset application identifier, the network traffic characteristic corresponding to the traffic source information is used as the preset traffic characteristic.
In one embodiment, the acceleration module 1206 is further configured to determine network related information of a network in which the terminal is currently located, and application related information of the target application; the network related information comprises at least one of network delay information, network channel setting information and flow types corresponding to network flow data, and the application related information comprises at least one of a region where a target server corresponding to a target application program is located and application account information; the network channel setting information comprises the condition that switching operation of the network channel is allowed to be performed and the condition that switching operation of the network channel is not allowed to be performed; the traffic types corresponding to the network traffic data comprise website traffic and domain name traffic.
In one embodiment, the network related information includes network delay information and network channel setting information; the acceleration module 1206 further includes a masking module 1261, configured to obtain, through an acceleration service, an abnormal traffic condition corresponding to a traffic type; when the network traffic data of the target application program meets the abnormal traffic condition, the network traffic data of the target application program is shielded through the acceleration service.
In one embodiment, the network related information includes network delay information and network channel setting information; the acceleration module 1206 further includes a channel switching module 1262 configured to trigger a switching operation of switching a network channel of the current network through the acceleration service when the network delay information does not satisfy the network fluency condition and the network channel setting information characterizes that the network channel switching is allowed; and carrying out network acceleration processing on the target application based on the application related information and the network after channel type switching.
In one embodiment, the channel switch module 1262 is further configured to determine a matching target acceleration line based on the application related information and through the acceleration service; and transmitting the network flow data of the target application program to a target server corresponding to the target application program through the target acceleration line and the network after the channel type is switched, so as to realize the network acceleration processing of the target application program.
In one embodiment, the application-related information includes an area where a target server corresponding to the target application program is located; the channel switching module 1262 is further configured to determine, through acceleration service, a primary area tag and a secondary area tag to which an area where the target server is located belongs; the secondary region label is subordinate to the primary region label; through acceleration service, determining a matched target access node according to the primary area label, and determining a matched target exit node according to the secondary area label; and determining a corresponding target acceleration line according to the target access node and the target exit node through the acceleration service.
In one embodiment, the channel switching module 1262 is further configured to determine, when the number of target servers is more than one, a secondary area tag to which each target server belongs respectively through the acceleration service; determining a secondary target area label from the secondary area labels respectively belonging to each target server through acceleration service; by the acceleration service, a target egress node is set based on a target server belonging to the secondary target area label.
In one embodiment, the application accelerating device 1200 is further configured to determine a target interface currently displayed by the target application when performing network acceleration processing on the target application through the acceleration service; and correspondingly displaying the acceleration service opening identification at the target position of the target interface.
For specific limitations of the application acceleration device, reference may be made to the above limitation of the application acceleration method, and no further description is given here. The various modules in the application acceleration device described above may be implemented in whole or in part in software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 14. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an application acceleration method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 14 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements are applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (26)

1. An application acceleration method, the method comprising:
acquiring network flow data generated when a terminal operates;
Analyzing the flow characteristics of the network flow data to obtain corresponding network flow characteristics, and carrying out characteristic matching processing on the network flow characteristics and preset flow characteristics;
when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the network flow characteristics of the successful matching, and obtaining the target application program currently operated by the terminal;
and carrying out network acceleration processing on the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program.
2. The method according to claim 1, wherein the preset traffic characteristics include a preset target domain name, the network traffic characteristics include a network domain name, the analyzing the traffic characteristics of the network traffic data to obtain corresponding network traffic characteristics, and performing characteristic matching processing on the network traffic characteristics and the preset traffic characteristics, includes:
Analyzing the flow characteristics of the network flow data to obtain a network domain name corresponding to the network flow data;
performing domain name matching on the network domain name and a preset target domain name;
and when the network domain name is the preset target domain name, determining that the matching is successful.
3. The method of claim 1, wherein the network traffic data is traffic data flowing through a network card of the system, and when the matching is successful, waking up an acceleration service locally pre-installed in the terminal to identify an application according to the network traffic characteristics of the matching success, so as to obtain a target application currently operated by the terminal, including:
When the network flow characteristics are successfully matched with the preset flow characteristics, waking up acceleration service through a network card driver corresponding to the system network card, and forwarding the network flow data to a virtual network card corresponding to the acceleration service;
and identifying the application program based on the network flow data on the virtual network card through the acceleration service to determine the target application program currently operated by the terminal.
4. The method of claim 3, wherein the passing through the acceleration service and performing application identification based on network traffic data on the virtual network card to determine a target application currently running by the terminal comprises:
acquiring a corresponding relation between a preset application program and a preset flow characteristic through the acceleration service;
through the acceleration service, carrying out relation matching on the network flow characteristics of the network flow data on the virtual network card and the corresponding relation;
and taking the matched preset application program as a target application program currently operated by the terminal.
5. The method according to claim 1, wherein the method further comprises:
Acquiring verification flow data, and determining flow source information and network flow characteristics of the verification flow data;
determining preset application identifiers corresponding to preset application programs belonging to the target class respectively;
and when the traffic source information points to the preset application program corresponding to the preset application identifier, taking the network traffic characteristic corresponding to the traffic source information as a preset traffic characteristic.
6. The method of claim 1, wherein the network-related information includes at least one of network delay information, network channel setting information, and a traffic type corresponding to the network traffic data, and the application-related information includes at least one of an area where a target server corresponding to the target application program is located, and application account information; the network channel setting information comprises the condition that switching operation of the network channel is allowed to be carried out and the condition that switching operation of the network channel is not allowed to be carried out; the traffic types corresponding to the network traffic data comprise website traffic and domain name traffic.
7. The method according to claim 1, wherein the network-related information includes a traffic type corresponding to the network traffic data; the network acceleration processing for the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program comprises the following steps:
Acquiring an abnormal flow condition corresponding to the flow type through the acceleration service;
And when the network traffic data of the target application program meets the abnormal traffic condition, shielding the network traffic data of the target application program through the acceleration service.
8. The method of claim 1, wherein the network-related information includes network delay information and network channel setting information; the network acceleration processing for the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program comprises the following steps:
When the network delay information does not meet the network fluency condition and the network channel setting information characterizes that the network channel switching is allowed, triggering the switching operation of switching the network channel of the current network through the acceleration service;
and carrying out network acceleration processing on the target application program based on the application related information and the network after channel type switching.
9. The method according to claim 8, wherein the performing network acceleration processing on the target application program based on the application-related information and the channel-type-switched network includes:
determining a matched target acceleration line through the acceleration service based on the application related information;
And transmitting the network flow data of the target application program to a target server corresponding to the target application program through the target acceleration line and the network after channel type switching, so as to realize network acceleration processing of the target application program.
10. The method of claim 9, wherein the application-related information includes an area where a target server corresponding to the target application program is located; the determining, based on the application related information and through the acceleration service, a matched target acceleration line includes:
Determining a primary area label and a secondary area label of an area where the target server is located through the acceleration service; the secondary region tag is subordinate to the primary region tag;
Determining a matched target access node according to the primary area label through the acceleration service, and determining a matched target exit node according to the secondary area label;
And determining a corresponding target acceleration line according to the target access node and the target exit node through the acceleration service.
11. The method of claim 10, wherein said determining a matching target egress node from the secondary region label comprises:
when the number of the target servers is more than one, determining secondary area labels to which the target servers respectively belong;
determining a secondary target area label from the secondary area labels respectively belonging to the target servers;
and setting a target exit node based on a target server subordinate to the secondary target area label.
12. The method according to any one of claims 1 to 11, further comprising:
when the acceleration service is used for carrying out network acceleration processing on the target application program, determining a target interface currently displayed by the target application program;
And correspondingly displaying an acceleration service opening identification at a target position of the target interface.
13. An application acceleration apparatus, the apparatus comprising:
The flow data acquisition module is used for acquiring network flow data generated when the terminal operates;
The target application program determining module is used for carrying out flow characteristic analysis on the network flow data to obtain corresponding network flow characteristics, and carrying out characteristic matching processing on the network flow characteristics and preset flow characteristics; when the matching is successful, waking up the locally pre-installed acceleration service of the terminal so as to identify the application program according to the network flow characteristics of the successful matching, and obtaining the target application program currently operated by the terminal;
and the acceleration module is used for carrying out network acceleration processing on the target application program through the acceleration service based on the network related information of the network where the terminal is currently located and the application related information of the target application program.
14. The apparatus of claim 13, wherein the preset traffic characteristics include a preset target domain name, the network traffic characteristics include a network domain name, and the target application program determining module is further configured to perform traffic characteristic analysis on the network traffic data to obtain a network domain name corresponding to the network traffic data; performing domain name matching on the network domain name and a preset target domain name; and when the network domain name is the preset target domain name, determining that the matching is successful.
15. The apparatus of claim 13, wherein the network traffic data is traffic data flowing through a system network card, and the target application determining module is further configured to wake up an acceleration service through a network card driver corresponding to the system network card and forward the network traffic data to a virtual network card corresponding to the acceleration service when the network traffic feature is successfully matched with a preset traffic feature; and identifying the application program based on the network flow data on the virtual network card through the acceleration service to determine the target application program currently operated by the terminal.
16. The apparatus of claim 15, wherein the target application determining module is further configured to obtain, through the acceleration service, a correspondence between a preset application and a preset traffic feature; through the acceleration service, carrying out relation matching on the network flow characteristics of the network flow data on the virtual network card and the corresponding relation; and taking the matched preset application program as a target application program currently operated by the terminal.
17. The apparatus of claim 13, wherein the application acceleration apparatus further comprises a preset traffic characteristics acquisition module configured to acquire verification traffic data and determine traffic source information and network traffic characteristics of the verification traffic data; determining preset application identifiers corresponding to preset application programs belonging to the target class respectively; and when the traffic source information points to the preset application program corresponding to the preset application identifier, taking the network traffic characteristic corresponding to the traffic source information as a preset traffic characteristic.
18. The apparatus of claim 13, wherein the network-related information includes at least one of network delay information, network channel setting information, and a traffic type corresponding to the network traffic data, and the application-related information includes at least one of an area where a target server corresponding to the target application program is located, and application account information; the network channel setting information comprises the condition that switching operation of the network channel is allowed to be carried out and the condition that switching operation of the network channel is not allowed to be carried out; the traffic types corresponding to the network traffic data comprise website traffic and domain name traffic.
19. The apparatus of claim 18, wherein the network-related information includes a traffic type corresponding to the network traffic data; the acceleration module further comprises a shielding module, and is used for acquiring abnormal flow conditions corresponding to the flow types through the acceleration service; and when the network traffic data of the target application program meets the abnormal traffic condition, shielding the network traffic data of the target application program through the acceleration service.
20. The apparatus of claim 19, wherein the network-related information comprises network delay information and network channel setting information; the acceleration module further comprises a channel switching module, and is used for triggering switching operation of switching the network channel of the current network through the acceleration service when the network delay information does not meet the network fluency condition and the network channel setting information characterizes that the network channel switching is allowed; and carrying out network acceleration processing on the target application program based on the application related information and the network after channel type switching.
21. The apparatus of claim 20, wherein the channel switching module is further configured to determine a matched target acceleration line via the acceleration service based on the application related information; and transmitting the network flow data of the target application program to a target server corresponding to the target application program through the target acceleration line and the network after channel type switching, so as to realize network acceleration processing of the target application program.
22. The apparatus of claim 21, wherein the application-related information includes an area where a target server corresponding to the target application program is located; the channel switching module is also used for determining a primary area label and a secondary area label of the area where the target server is located through the acceleration service; the secondary region tag is subordinate to the primary region tag; determining a matched target access node according to the primary area label through the acceleration service, and determining a matched target exit node according to the secondary area label; and determining a corresponding target acceleration line according to the target access node and the target exit node through the acceleration service.
23. The apparatus of claim 22, wherein the channel switching module is further configured to determine a secondary zone label to which each of the target servers respectively belong when the number of the target servers is more than one; determining a secondary target area label from the secondary area labels respectively belonging to the target servers; and setting a target exit node based on a target server subordinate to the secondary target area label.
24. The apparatus according to any one of claims 13 to 23, wherein the application acceleration apparatus is further configured to determine a target interface currently presented by the target application when network acceleration processing is performed on the target application by the acceleration service; and correspondingly displaying an acceleration service opening identification at a target position of the target interface.
25. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 12 when the computer program is executed.
26. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 12.
CN202011108915.6A 2020-10-16 2020-10-16 Application acceleration method, device, computer equipment and storage medium Active CN112217679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011108915.6A CN112217679B (en) 2020-10-16 2020-10-16 Application acceleration method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011108915.6A CN112217679B (en) 2020-10-16 2020-10-16 Application acceleration method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112217679A CN112217679A (en) 2021-01-12
CN112217679B true CN112217679B (en) 2024-05-31

Family

ID=74055455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011108915.6A Active CN112217679B (en) 2020-10-16 2020-10-16 Application acceleration method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112217679B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910791B (en) * 2021-02-08 2023-06-30 网宿科技股份有限公司 Diversion system and method thereof
CN114915598B (en) * 2021-02-08 2023-10-20 腾讯科技(深圳)有限公司 Network acceleration method and device of application program and electronic equipment
CN112949768A (en) * 2021-04-07 2021-06-11 苏州瑞立思科技有限公司 Traffic classification method based on LSTM
CN114968391B (en) * 2021-05-26 2023-07-25 中移互联网有限公司 Application acceleration method and device
CN113014509B (en) * 2021-05-26 2021-09-17 腾讯科技(深圳)有限公司 Application program acceleration method and device
CN115460084B (en) * 2021-06-09 2024-05-24 贵州白山云科技股份有限公司 Security acceleration service deployment method, device, medium and equipment
CN113810965B (en) * 2021-06-15 2022-09-06 荣耀终端有限公司 Channel switching method, electronic device and storage medium
CN113810938B (en) * 2021-06-29 2022-09-27 荣耀终端有限公司 Channel switching method, electronic device and storage medium
CN114979073B (en) * 2021-08-30 2023-09-05 中移互联网有限公司 Address information acquisition system, method, electronic device and storage medium
CN114039906B (en) * 2021-09-27 2023-09-22 网宿科技股份有限公司 Flow guiding method, electronic device and readable storage medium
CN116095037A (en) * 2021-11-05 2023-05-09 腾讯科技(深圳)有限公司 Application acceleration method and device, electronic equipment and storage medium
CN115103401B (en) * 2022-08-25 2022-12-06 广州丰石科技有限公司 Network traffic configuration method, system and device based on 5G multi-dimension

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384991A (en) * 2010-08-12 2013-11-06 思杰系统有限公司 Systems and methods for quality of service of encrypted network traffic
CN104137602A (en) * 2012-02-20 2014-11-05 华为技术有限公司 System and method for content and application acceleration in a wireless communications system
CN105207860A (en) * 2015-08-13 2015-12-30 中国联合网络通信集团有限公司 Business acceleration system and method
CN105389193A (en) * 2015-12-25 2016-03-09 北京奇虎科技有限公司 Accelerating processing method, device and system for application, and server
CN109756390A (en) * 2018-12-06 2019-05-14 网易(杭州)网络有限公司 Automatic test network accelerator connectivity method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10110563B1 (en) * 2016-04-28 2018-10-23 Palo Alto Networks, Inc. Reduction and acceleration of a deterministic finite automaton

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103384991A (en) * 2010-08-12 2013-11-06 思杰系统有限公司 Systems and methods for quality of service of encrypted network traffic
CN104137602A (en) * 2012-02-20 2014-11-05 华为技术有限公司 System and method for content and application acceleration in a wireless communications system
CN105207860A (en) * 2015-08-13 2015-12-30 中国联合网络通信集团有限公司 Business acceleration system and method
CN105389193A (en) * 2015-12-25 2016-03-09 北京奇虎科技有限公司 Accelerating processing method, device and system for application, and server
CN109756390A (en) * 2018-12-06 2019-05-14 网易(杭州)网络有限公司 Automatic test network accelerator connectivity method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种通用的动态Web应用加速方案;柳杨;范冰冰;;计算机工程;20120605(第11期);第253-256页 *

Also Published As

Publication number Publication date
CN112217679A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN112217679B (en) Application acceleration method, device, computer equipment and storage medium
US11562380B2 (en) System and method for applying tracing tools for network locations
EP3855692A1 (en) Network security monitoring method, network security monitoring device, and system
CN109152095B (en) Wireless network connection method for terminal
EP3116189B1 (en) Service link selection control method and device
US10355949B2 (en) Behavioral network intelligence system and method thereof
JP2023126745A (en) Dynamic code management
KR102076861B1 (en) Network performance diagnosis method and apparatus, and system
US11595325B2 (en) Bot response generation with dynamically-changing website or native application
CN108900374B (en) Data processing method and device applied to DPI equipment
CN112769833B (en) Method and device for detecting command injection attack, computer equipment and storage medium
CN106789413B (en) Method and device for detecting proxy internet surfing
CN114024972A (en) Long connection communication method, system, device, equipment and storage medium
CN108901035A (en) The recognition methods of internet-of-things terminal and device
CN113472798B (en) Method, device, equipment and medium for backtracking and analyzing network data packet
CN112866139A (en) Method, equipment and storage medium for realizing multi-rule flow classification
CN115941224A (en) Network access information management method and device and computer readable storage medium
Zhang et al. Software defined security architecture with deep learning-based network anomaly detection module
Oudah et al. Using burstiness for network applications classification
CN108156071A (en) To method, terminal device and the computer readable storage medium of community's addition member
WO2024149032A1 (en) Computing power path determination method, electronic device and storage medium
US20230119151A1 (en) Service platform with configurable electricity usage characteristics
CN104683218B (en) Service the method and device of early warning
Liu et al. Does Time Effect the Networking Performance of Mobile Applications?
Duarte Dos Reis et al. A Sustainability Study of NFV versus PNF in an MSC-Server: An African Country Case Study

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40038168

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant