CN113950125B - Method, device and storage medium for accelerating network in application program - Google Patents

Method, device and storage medium for accelerating network in application program Download PDF

Info

Publication number
CN113950125B
CN113950125B CN202010686368.3A CN202010686368A CN113950125B CN 113950125 B CN113950125 B CN 113950125B CN 202010686368 A CN202010686368 A CN 202010686368A CN 113950125 B CN113950125 B CN 113950125B
Authority
CN
China
Prior art keywords
network
access point
information
delay
target
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
CN202010686368.3A
Other languages
Chinese (zh)
Other versions
CN113950125A (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 CN202010686368.3A priority Critical patent/CN113950125B/en
Publication of CN113950125A publication Critical patent/CN113950125A/en
Application granted granted Critical
Publication of CN113950125B publication Critical patent/CN113950125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

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

Abstract

The application discloses a method, a device and a storage medium for accelerating network in an application program. Acquiring access point information of a plurality of network access points by responding to the starting of a target application program; then determining a first network delay between the terminal and the network access point based on the access point information; detecting the running information of the target application program to determine the address information of the target network equipment; detecting a second network delay between the network access point and the target network device based on the address information; and further determining the target access point based on the first network delay and the second network delay to generate a connection path. Therefore, the process of automatically selecting the network access point and determining the corresponding target network equipment to accelerate the network is realized, the accuracy of network access point selection is ensured, and the network acceleration efficiency is improved.

Description

Method, device and storage medium for accelerating network in application program
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for network acceleration in an application program, and a storage medium.
Background
With the development of the internet, more and more application programs are presented in the life of people, wherein the demands on network quality are also higher and higher, and the application programs are particularly applied to scenes with high demands on delay, such as game applications.
In general, an accelerator may be set up between a terminal device and a server corresponding to an application, that is, network data sent by a terminal is received through a network access point and then forwarded to a next node in the acceleration network until being sent to the server corresponding to a target application.
However, in the process of establishing a connection path for acceleration, different network access points are required to be manually selected to perform network acceleration, and because of the plurality of network access points, network delays corresponding to the different network access points are different, manual selection may have a situation of wrong selection, and accuracy and efficiency of access point selection in the network acceleration process are affected.
Disclosure of Invention
In view of this, the present application provides a network acceleration method, which can effectively avoid the influence of accuracy and efficiency generated in the manual network access point selection process, and improve the accuracy and efficiency of the network acceleration process.
The first aspect of the present application provides a network acceleration method, which may be applied to a system or a program including a network acceleration function in a terminal device, and specifically includes: responding to the starting of a target application program, acquiring access point information corresponding to a plurality of network access points, wherein the network access points are used for associating the network access of a terminal and target network equipment, and the target network equipment is used for providing data of the target application program running in the terminal;
Determining speed measurement information based on the access point information, wherein the speed measurement information is used for indicating a first network delay between the terminal and the network access point;
detecting the running information of the target application program to determine address information corresponding to the target network equipment according to the running information;
detecting a second network delay between the network access point and the target network device according to the address information;
and determining a target access point according to the first network delay and the second network delay to generate a connection path, wherein the connection path is used for providing network acceleration for the target application program.
Optionally, in some possible implementations of the present application, the determining speed measurement information based on the access point information includes:
analyzing the access point information to determine an access point address;
and sending a speed measurement request to the access point address to determine the speed measurement information.
Optionally, in some possible implementations of the present application, the determining, based on the running information of the target application, address information corresponding to the target network device includes:
Loading a service plug-in corresponding to the target application program;
And associating the key information indicated in the service plug-in with the running process of the target application program to determine the address information corresponding to the target network equipment.
Optionally, in some possible implementations of the present application, associating the key information indicated in the service plugin with the running process of the target application to determine the address information corresponding to the target network device includes:
Correlating the key information indicated in the service plug-in with the running process of the target application program to capture the flow information corresponding to the target application program;
And analyzing the flow information to determine the address information.
Optionally, in some possible implementations of the present application, the detecting a network delay between the network access point and the target network device according to the address information to determine the target network device includes:
determining an acceleration access point based on the address information;
Acquiring delay information between the acceleration access point and the network access point;
The second network delay is determined based on the delay information.
Optionally, in some possible implementations of the present application, the determining an acceleration access point based on the address information includes:
Determining the geographic position corresponding to the address information;
Acquiring a plurality of local access points in a preset range based on the geographic position;
The acceleration access point is determined based on delay information between the local access point and the target network device.
Optionally, in some possible implementations of the present application, the acquiring delay information between the acceleration access point and the network access point includes:
loading cache information between the acceleration access point and the network access point;
And determining the delay information based on the cache information.
Optionally, in some possible implementations of the present application, the method further includes:
Transmitting a preset period to the network access points so that delay detection based on the preset period is performed among the network access points;
And receiving the period information sent by the network access point to update the buffer information, wherein the period information is obtained by the network access point performing delay detection based on the preset period.
Optionally, in some possible implementations of the present application, the determining the target access point according to the first network delay and the second network delay to generate the connection path includes:
adding the value corresponding to the first network delay and the value corresponding to the second network delay to obtain accumulated network delay;
determining an indicated delay satisfaction term in the accumulated network delay;
And obtaining the target access point corresponding to the delay meeting item to generate the connection path.
Optionally, in some possible implementations of the present application, the method further includes:
Determining a handoff access point in response to the target operation;
and updating the connection path based on the switching access point.
Optionally, in some possible implementations of the present application, the method further includes:
acquiring state information corresponding to the address information;
Determining an associated access point indicated in the status information;
And updating the connection path based on the associated access point.
Optionally, in some possible implementations of the present application, the target application program is a game application, the target network device is a game server, and the network access point is configured to reduce network delay between the game application and the game server.
A second aspect of the present application provides a network acceleration apparatus, comprising: the terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for responding to the starting of a target application program and acquiring access point information corresponding to a plurality of network access points, the network access points are used for associating the network access of the terminal and target network equipment, and the target network equipment is used for providing data of the target application program running in the terminal;
a determining unit, configured to determine speed measurement information based on the access point information, where the speed measurement information is used to indicate a first network delay between the terminal and the network access point;
the determining unit is further configured to detect operation information of the target application program, so as to determine address information corresponding to the target network device according to the operation information;
A detection unit, configured to detect a second network delay between the network access point and the target network device according to the address information;
And the acceleration unit is used for determining a target access point according to the first network delay and the second network delay so as to generate a connection path, wherein the connection path is used for providing network acceleration for the target application program.
Optionally, in some possible implementations of the present application, the determining unit is specifically configured to parse the access point information to determine an access point address;
the determining unit is specifically configured to send a speed measurement request to the access point address, so as to determine the speed measurement information.
Optionally, in some possible implementation manners of the present application, the determining unit is specifically configured to load a service plug-in corresponding to the target application program;
The determining unit is specifically configured to associate the key information indicated in the service plug-in with the running process of the target application program, so as to determine the address information corresponding to the target network device.
Optionally, in some possible implementation manners of the present application, the determining unit is specifically configured to associate key information indicated in the service plug-in with an operation process of the target application program, so as to capture flow information corresponding to the target application program;
the determining unit is specifically configured to parse the traffic information to determine the address information.
Optionally, in some possible implementations of the present application, the detecting unit is specifically configured to determine an acceleration access point based on the address information;
the detection unit is specifically configured to obtain delay information between the acceleration access point and the network access point;
the detection unit is specifically configured to determine the second network delay based on the delay information.
Optionally, in some possible implementations of the present application, the detecting unit is specifically configured to determine a geographic location corresponding to the address information;
The detection unit is specifically configured to obtain a plurality of local access points within a preset range based on the geographic location;
The detection unit is specifically configured to determine the acceleration access point based on delay information between the local access point and the target network device.
Optionally, in some possible implementations of the present application, the detecting unit is specifically configured to load cache information between the acceleration access point and the network access point;
The detection unit is specifically configured to determine the delay information based on the cache information.
Optionally, in some possible implementations of the present application, the detecting unit is specifically configured to send a preset period to the network access points, so that delay detection based on the preset period is performed between the network access points;
the detection unit is specifically configured to receive period information sent by the network access point, so as to update the cache information, where the period information is obtained by performing delay detection by the network access point based on the preset period.
Optionally, in some possible implementations of the present application, the acceleration unit is specifically configured to add a value corresponding to the first network delay and a value corresponding to the second network delay to obtain an accumulated network delay;
the acceleration unit is specifically configured to determine an indicated delay satisfaction term in the accumulated network delay;
the acceleration unit is specifically configured to obtain a target access point corresponding to the delay meeting item, so as to generate the connection path.
Optionally, in some possible implementations of the present application, the acceleration unit is specifically configured to determine to switch the access point in response to a target operation;
the acceleration unit is specifically configured to update the connection path based on the handover access point.
Optionally, in some possible implementation manners of the present application, the acceleration unit is specifically configured to obtain state information corresponding to the address information;
The acceleration unit is specifically configured to determine an associated access point indicated in the state information;
The acceleration unit is specifically configured to update the connection path based on the associated access point.
A third aspect of the present application provides a computer apparatus comprising: a memory, a processor, and a bus system; the memory is used for storing program codes; the processor is configured to execute the network acceleration method according to the first aspect or any one of the first aspects according to instructions in the program code.
A fourth aspect of the application provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the network acceleration method of any of the above-described first aspects or first aspects.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, the computer instructions being executed by the processor to cause the computer device to perform the network acceleration method provided in the first aspect or various alternative implementations of the first aspect described above.
From the above technical solutions, the embodiment of the present application has the following advantages:
Acquiring access point information corresponding to a plurality of network access points in response to the starting of a target application program, wherein the network access points are used for associating network access of a terminal and target network equipment, and the target network equipment is used for providing data of the running of the target application program in the terminal; then determining speed measurement information based on the access point information, wherein the speed measurement information is used for indicating first network delay between the terminal and the network access point; detecting the running information of the target application program to determine the address information corresponding to the target network equipment; further detecting a second network delay between the network access point and the target network device based on the address information; and further determining the target access point according to the first network delay and the second network delay to generate a connection path, wherein the connection path is used for establishing network connection between the terminal and the target network device. Therefore, the process of automatically selecting the network access point and determining the corresponding target network equipment to accelerate the network is realized, the accuracy of network access point selection is ensured because the determination process of the target access point is obtained dynamically according to the address information of the target application program, and the efficiency of network acceleration is improved because the process automatically detects and connects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of a network architecture for operation of a network acceleration system;
FIG. 2 is a flow architecture diagram of network acceleration according to an embodiment of the present application;
FIG. 3 is a flowchart of a network acceleration method according to an embodiment of the present application;
fig. 4 is a flow chart of a network acceleration method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a scenario of a network acceleration method according to an embodiment of the present application;
fig. 6 is a flow chart of another network acceleration method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a scenario of another network acceleration method according to an embodiment of the present application;
FIG. 8 is a flowchart of another network acceleration method according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a network acceleration device according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a network acceleration method and a related device, which can be applied to a system or a program containing a network acceleration function in terminal equipment, and the network acceleration method and the related device can be used for acquiring access point information corresponding to a plurality of network access points by responding to the starting of a target application program, wherein the network access points are used for associating the network access of a terminal and the target network equipment, and the target network equipment is used for providing data of the running of the target application program in the terminal; then determining speed measurement information based on the access point information, wherein the speed measurement information is used for indicating first network delay between the terminal and the network access point; detecting the running information of the target application program to determine the address information corresponding to the target network equipment; further detecting a second network delay between the network access point and the target network device based on the address information; and further determining the target access point according to the first network delay and the second network delay to generate a connection path, wherein the connection path is used for establishing network connection between the terminal and the target network device. Therefore, the process of automatically selecting the network access point and determining the corresponding target network equipment to accelerate the network is realized, the accuracy of network access point selection is ensured because the determination process of the target access point is obtained dynamically according to the address information of the target application program, and the efficiency of network acceleration is improved because the process automatically detects and connects.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "includes" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
First, some terms that may appear in the embodiments of the present application will be explained.
All-region clothes: compared with the common game area suit, the full area suit is effective to any area suit in the game after acceleration.
An access point: all nodes in the acceleration network can be used as access points, and network data sent by a user terminal is received and forwarded to the next node in the acceleration network.
T1 delay: network delay from the user to the access point.
T2 delay: network delay from the access point to the game server.
It should be understood that the network acceleration method provided by the present application may be applied to a system or a program including a network acceleration function in a terminal device, for example, a game acceleration platform, and specifically, the network acceleration system may operate in a network architecture shown in fig. 1, as shown in fig. 1, which is a network architecture diagram in which the network acceleration system operates, as shown in fig. 1, the network acceleration system may provide a network acceleration process corresponding to a plurality of information sources, that is, select a corresponding server based on a target application program running on different terminals, and determine a network access point for reducing network delay between the terminals and the server according to the network acceleration method provided by the present application; it will be appreciated that in fig. 1, various terminal devices are shown, and in an actual scenario, there may be more or fewer terminal devices participating in the network acceleration process, and the specific number and types are not limited herein according to the actual scenario, and in addition, in fig. 1, one server is shown, but in an actual scenario, there may also be multiple servers participating, and in a scenario of multi-application interaction, especially, the specific number of servers depends on the actual scenario.
In this embodiment, the server may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein.
It will be appreciated that the network acceleration system described above may be operated on a personal mobile terminal, for example: the application of the image recommendation platform can be used as a server or a third party device to provide network acceleration so as to obtain a network acceleration processing result of an information source; the specific network acceleration system may be in a program form, may also be operated as a system component in the device, and may also be used as a cloud service program, where a specific operation mode is determined according to an actual scenario, and is not limited herein.
With the development of the internet, more and more application programs are presented in the life of people, wherein the demands on network quality are also higher and higher, and the application programs are particularly applied to scenes with high demands on delay, such as game applications.
In general, an accelerator may be set up between a terminal device and a server corresponding to an application, that is, network data sent by a terminal is received through a network access point and then forwarded to a next node in the acceleration network until being sent to the server corresponding to a target application.
However, in the process of establishing a connection path for acceleration, different network access points are required to be manually selected to perform network acceleration, and because of the plurality of network access points, network delays corresponding to the different network access points are different, manual selection may have a situation of wrong selection, and accuracy and efficiency of access point selection in the network acceleration process are affected.
In order to solve the above-mentioned problems, the present application proposes a network acceleration method, which is applied to a network acceleration flow frame shown in fig. 2, as shown in fig. 2, and is a network acceleration flow frame provided in an embodiment of the present application, firstly, delay information between a terminal and a plurality of access points is obtained, then, a corresponding server is determined according to a target application running on the terminal, and delay information between the server and the plurality of access points is detected, so that a network access point corresponding to a time when an accumulated delay is the smallest is determined, so as to complete network acceleration of the target application in the terminal.
It can be understood that the method provided by the application can be a program writing method, which is used as a processing logic in a hardware system, and can also be used as a network accelerating device, and the processing logic can be realized in an integrated or external mode. As an implementation manner, the network acceleration device obtains access point information corresponding to a plurality of network access points by responding to the starting of a target application program, wherein the network access points are used for associating the network access of a terminal and target network equipment, and the target network equipment is used for providing data of the running of the target application program in the terminal; then determining speed measurement information based on the access point information, wherein the speed measurement information is used for indicating first network delay between the terminal and the network access point; detecting the running information of the target application program to determine the address information corresponding to the target network equipment; further detecting a second network delay between the network access point and the target network device based on the address information; and further determining the target access point according to the first network delay and the second network delay to generate a connection path, wherein the connection path is used for establishing network connection between the terminal and the target network device. Therefore, the process of automatically selecting the network access point and determining the corresponding target network equipment to accelerate the network is realized, the accuracy of network access point selection is ensured because the determination process of the target access point is obtained dynamically according to the address information of the target application program, and the efficiency of network acceleration is improved because the process automatically detects and connects.
With reference to fig. 3, fig. 3 is a flowchart of a network acceleration method according to an embodiment of the present application, where the network acceleration method includes at least the following steps:
301. and responding to the starting of the target application program, and acquiring access point information corresponding to a plurality of network access points.
In this embodiment, the network access point is configured to associate network access between the terminal and the target network device, where the target network device is configured to provide data that the target application program runs in the terminal; in a practical scenario, the target network device may be a server, and there are a plurality of servers associated with the target application program, that is, servers set based on different regions, or servers set based on different functions, where the target network device is a description for the scenario, and the determining process of the target network device will be described in the following description.
It will be appreciated that the target application may be a game, the corresponding network access point being the access point indicated by the client (network accelerator) for game acceleration, and the target network device being the game server, and the game server typically being a plurality of, e.g. different, regional servers, among which the user needs to select the regional server with less network delay as the target server,
It should be noted that the initiation in response to the target application may be initiated when the user clicks on a virtual element corresponding to the target application, for example: when the user clicks the game icon; the response to the start of the target application program may be when the target application program finishes loading the resource and needs to select the server, for example: the specific manner in which the game resource is loaded is determined by the actual scenario, i.e., the game resource is loaded immediately before entering the server list, and is not limited herein.
302. Determining speed measurement information based on the access point information, wherein the speed measurement information is used for indicating a first network delay between the terminal and the network access point;
In this embodiment, the access point information is information indicating network access, such as an IP address and a port of the access point; the speed measurement information is information obtained by measuring the speed of the ping packet sent by the access point corresponding to the access point information, and delay information between the terminal and the network access point can be obtained after the ping packet is sent to the access point, and can be calculated as T1 delay, namely first network delay.
Specifically, for the determination process of the speed measurement information, the access point information may be first parsed to determine the address of the access point; and then sending a speed measurement request to the access point address to determine speed measurement information. For example, in the above-mentioned sending process of the ping packet, it is to be understood that other instructions having a speed measurement meaning may also be used as one of the embodiments of the present application, which is not limited herein.
303. And detecting the running information of the target application program to determine the address information corresponding to the target network equipment according to the running information.
In this embodiment, the running information of the target application program is the running process of the application, for example: a game progress at the time of game running; the address information is the address of the server for providing the data of the target application program, and since the addresses of the servers with association relationship are indicated in the application running process, the target network device can be determined by analyzing the traffic of the servers, for example: a server on which the user frequently logs in, or a login record cached by the user during the last login.
Specifically, the determining process of the address information may be performed by the service plugin, that is, the service plugin associates with a relevant running process in the target application program, so as to analyze the address information. Specifically, the service plugin may be a hierarchical service provider (LAYERED SERVICE provider, LSP), that is, a service plugin corresponding to the target application program is determined first; the key information indicated in the service plug-in is then associated with the running process of the target application to determine address information.
The LSP is an application program extension (DLL) which can be installed into a Winsock directory, then a socket application program is created, and key information can be called without acquiring related information of the LSP, wherein the key information can be a function used for capturing information, such as a WSPSendto function.
Specifically, the function of capturing information may include: winsock entry function WSP Startup; socket initialization function WSPSocket; closing a Socket function WSPCIoseSocket; winsock connection function WSPConnect; socket accepts request function WSPACCEPT; connection-oriented transmit data function WSPSend; connection-oriented accept data function WSPRecv; a connectionless transmission data function WSPSendto is oriented; connectionless-oriented accepted data function WSPRecvFrom, etc., the specific function composition depends on the actual scenario.
In addition, the invocation of the service plugin may be even if installed, and the installation process for the LSP may include storing after finding the original protocol service provider in the first winsock directory on which our layered protocol is to be installed; then installing the layering protocol, namely obtaining a winsock library installed directory ID number, which can be copied from the original layering protocol, but the corresponding item needs to be modified; and then installing a protocol chain, installing the installed layered protocol on the basic protocol service provider stored in the first step, and then loading the function for capturing information based on the protocol chain, wherein the function can be loaded only by providing GUID of LSP and DLL position, namely one or more WSAPROTOCOL _ INFOW structures for describing the protocol supported by the function, thereby realizing the rapid installation process of the plug-in and improving the information acquisition efficiency.
Optionally, the process of associating the key information indicated in the service plugin with the running process of the target application program to determine the address information may be implemented by capturing traffic information, that is, first associating the key information indicated in the service plugin with the running process of the target application program to capture traffic information corresponding to the target application program; address information is then determined from the traffic information. Thereby ensuring the accuracy of the address information.
304. A second network delay between the network access point and the target network device is detected based on the address information.
In this embodiment, the process of detecting the second network delay between the network access point and the target network device according to the address information, that is, detecting the delay between each network access point and the IP address of the target network device, may be referred to as a T2 delay, that is, the second network delay. In one possible scenario, the T2 delay describes the delay between the network access point and the game server.
Optionally, since the setting of the target network device is generally distributed based on regions or areas, that is, the target network device has respective location information, in one possible scenario, the access point with smaller delay with the target network device may be first determined as an intermediate access point (acceleration access point) in the network access points, so as to reduce resource consumption of access point configuration, because different applications correspond to different multiple area servers, and if delay situations of the network access point and the multiple area servers are detected one by one, different applications need to be distinguished for statistics, and the process occupies a large amount of system resources; by setting the acceleration access point, the delay condition between the access point and the target network equipment can be well obtained by detecting the delay between the access points within a certain range (geographic range, regional range and the like), and the network acceleration efficiency is improved.
Specifically, for the acceleration process of multiple network access points, the acceleration access point may be first determined based on address information; then obtaining delay information between the acceleration access point and the network access point; and determining a second network delay based on the delay information. The delay information is a delay list between the acceleration access point and each network access point.
It may be appreciated that the acceleration access point may be determined based on the geographical location of the target network device, i.e. the geographical location corresponding to the address information is determined first; then acquiring a plurality of local access points in a preset range based on the geographic position; and further determining an acceleration access point based on delay information between the local access point and the target network device. For example, the preset range corresponds to the same city as the address information, that is, the local access point is the access point in the same city as the target network device, and the preset range may be set based on the delay threshold, for example, the preset range is that the delay between the target network devices corresponding to the address information is less than 50ms, that is, the delay between the local access point and the target network devices is less than 50ms, and the local access point is selected as the acceleration access point with the smallest delay, so that the acquisition efficiency of the second network delay is improved.
Optionally, the delay information between the acceleration access point and the network access point may also be determined based on a cache, i.e. the cache information between the acceleration access point and the network access point is loaded; delay information is then determined based on the cache information. Therefore, the integrity and the instantaneity of the data are ensured, and the occurrence of data errors is avoided.
Specifically, the obtaining of the cache information may be periodically cached, that is, a preset period is first sent to the network access points, so that delay detection based on the preset period is performed between the network access points; and then receiving the periodic information sent by the network access point to update the cache information, wherein the periodic information is obtained by the network access point through delay detection based on a preset period. For example, the ping packet network speed measurement between the access point and the respective network access point is accelerated every 24 hours.
305. A target access point is determined based on the first network delay and the second network delay to generate a connection path.
In this embodiment, the connection path is used to establish a network connection between the terminal and the target network device, so that the terminal packages relevant data of the target application program and sends the relevant data to the target network device through the target access point corresponding to the connection path.
Specifically, the process of determining the target access point may be adding the first network delay (T1 delay) and the second network delay (T2 delay) to obtain an accumulated network delay; at least one target access point corresponding to the accumulated network delay is then determined to generate a connection path. For example, the first network delay includes a delay of 10ms for network access point 1 and terminal, a delay of 5ms for network access point 2 and terminal, and a delay of 20ms for network access point 3 and terminal; the second network delay comprises 20ms of delay corresponding to the target network equipment by the network access point 1, 5ms of delay corresponding to the target network equipment by the network access point 2, and 10ms of delay corresponding to the target network equipment by the network access point 3; the accumulated network delay (t1+t2) is 30ms for network access point 1, 10ms for network access point 2, and 30ms for network access point 3, thereby selecting network access point 2 as the target network node.
Alternatively, the process of determining the target access point may be set based on an accumulation threshold, for example, the accumulation threshold may be less than 20ms and may be used as the target access point.
In another possible scenario, after determining the target access point, the handoff access point may also be determined in response to the target operation; the connection path is then updated based on the handover access point. I.e. switching to a user-defined network access point as the target access point.
In combination with the above embodiment, it is known that, by responding to the start of the target application, access point information corresponding to a plurality of network access points is obtained, where the network access points are used for associating network access between the terminal and the target network device, and the target network device is used for providing data running in the terminal by the target application; then determining speed measurement information based on the access point information, wherein the speed measurement information is used for indicating first network delay between the terminal and the network access point; detecting the running information of the target application program to determine the address information corresponding to the target network equipment; further detecting a second network delay between the network access point and the target network device based on the address information; and further determining the target access point according to the first network delay and the second network delay to generate a connection path, wherein the connection path is used for establishing network connection between the terminal and the target network device. Therefore, the process of automatically selecting the network access point and determining the corresponding target network equipment to accelerate the network is realized, the accuracy of network access point selection is ensured because the determination process of the target access point is obtained dynamically according to the address information of the target application program, and the efficiency of network acceleration is improved because the process automatically detects and connects.
The following describes the flow of the network acceleration method, as shown in fig. 4, by taking a game scenario as an example, and is a schematic flow diagram of the network acceleration method according to an embodiment of the present application, which may be applied to a terminal device, and includes the following steps:
401. and the terminal equipment responds to the starting instruction to start the game process.
In this embodiment, the start instruction may be issued by the user clicking on the accelerator product in the terminal device, that is, the user starts the entry into the game through the game in the accelerator product, and starts the network acceleration process at the same time. In addition, the start instruction may be a start instruction of a game client in the terminal device, and call a network acceleration process.
402. The terminal device loads the layered service module.
In this embodiment, the layered service module is an LSP module, that is, the client side filters and captures game network data by installing an LSP, that is, the client side obtains the network data by detecting running information of the target application program. The specific loading (installation) process is as described in step 303 in the embodiment shown in fig. 3, and will not be described here.
403. The terminal device acquires address information.
In this embodiment, the address information is obtained by loading the LSP module through the game process and completing the hooking of key functions such as WSPSendto; further, capturing game network traffic in a key function of the hook of WSPSendto; thereby obtaining the game server ip address and port information, i.e. address information, by means of the parameters indicated in the game network traffic.
404. The terminal device judges whether the address information is associated.
In this embodiment, whether the address is associated or not is determined, that is, whether the ip already has a corresponding access point is determined. I.e. the game is already in an acceleration state and is connected with the corresponding network access point; or configured mapping, i.e. connection.
405. And the terminal equipment dynamically acquires the line information.
In this embodiment, since the running information of the game is dynamically changed, the acquired line information may also be changed. For example, the user may have a plurality of accounts in the game, and the game area where each account is located is different, and the obtained route may be running information generated during the process of logging in the game by the user in the latest time period.
406. The terminal device responds to the target operation to start network acceleration.
In this embodiment, the target operation is to click the acceleration button of the accelerator, so as to start the network acceleration process; and receiving a line scheduling request initiated by the game process from the background angle of the terminal equipment, namely the accelerator process, so as to start network acceleration.
407. The terminal device loads the layered service module.
In this embodiment, the hierarchical service module loads the address information acquired in step 403 through the accelerator process, so as to determine the corresponding network access point.
408. The terminal device pulls all the lines.
In the application, the line pulled by the terminal equipment is the line between the network access points determined based on the address information.
409. And the terminal equipment tests the speed and caches the speed.
In this embodiment, the process of steps 407-408 queries all access point lists, and then obtains information (access point information) of access points ip, ports, etc. therein; and then, the speed measurement is carried out on ping packets of all access points, and the speed measurement information is cached.
410. The terminal device processes the address information of the line corresponding to the game process.
In this embodiment, in the process of processing a game process, a local communication channel needs to be opened, so as to prepare for receiving a line inquiry request initiated by the game process.
411. Terminal equipment inquires optimal line
In this embodiment, the local communication channel proxy requests the optimal line corresponding to the game server ip through the accelerator (network access point client), that is, the accelerator process sends the game server ip (address information) of all the access point speed measurement data cached in step 409 and the request parameters of step 403, as the request parameters of the line scheduling, to the background service; after the background service receives the request, the analysis parameter calculates the optimal access point and returns the optimal access point to the accelerator client.
412. The terminal equipment judges whether the line check is passed or not.
In this embodiment, the process of line verification is to ensure normal use of the connection line, and avoid occurrence of connection failure, and specific verification conditions include timeout or failure to acquire the line, where a timeout threshold may be set, for example, timeout 300ms is not connected.
413. If the verification is not passed, the terminal equipment does not accelerate.
In this embodiment, if the verification is not passed, it indicates that the corresponding network access point in the line has a fault, and network acceleration may not be performed.
414. And if the verification is passed, the terminal equipment performs line configuration.
In this embodiment, if the verification is not passed, the information related to the line configuration, such as the IP address and the port information, of the network device involved in the connection process is broadcasted in the connection path; therefore, the game process LSP module obtains the optimal access point corresponding to the game server ip, and determines the corresponding ip address and port information (address information), so as to cache the mapping relationship between the game server ip and the network access point.
415. The terminal device performs line acceleration.
In this embodiment, through the dynamic line acceleration process, the delay between the terminal and the game server is ensured to be small, and the fluency of game operation is improved.
In addition, for the above-mentioned query process of the optimal line in step 411, mainly the determination process of the background service is described below with reference to the accompanying drawings, as shown in fig. 5, which is a schematic view of a scenario of a network acceleration method provided in an embodiment of the present application, the determination process of the optimal line (connection path) is shown in the figure to be determined based on an acceleration node (acceleration access point) and each network access point, and in the network access point, an access point with smaller delay with respect to a target network device is first determined as the acceleration node (acceleration access point), so as to reduce resource consumption of access point configuration, because different applications correspond to different multiple area servers, if delay situations of the network access point and the multiple area servers need to be detected one by one, different applications need to be distinguished for statistics, and the process occupies a large amount of system resources; by setting the acceleration access point, the delay condition between the access point and the target network equipment can be well obtained by detecting the delay between the access points within a certain range (geographic range, regional range and the like), and the network acceleration efficiency is improved.
Specifically, the above-mentioned process of determining an optimal line based on an acceleration node includes the following steps, as shown in fig. 6, which is a schematic flow chart of another network acceleration method according to an embodiment of the present application. The task of the background line scheduling interface is to take the access point with the smallest total delay as the optimal result to return to the client by calculating the total delay between the user and the game server through each access point. The method specifically comprises the following steps:
601. and the terminal equipment executes background service initialization.
In this embodiment, the background service calculates the total delay between the user passing through each access point and the game server; specifically, the background service indicates the ip address library of the network access point and the position information such as city information corresponding to the network access point.
602. The terminal device generates a configuration file of the address information.
In the application, the configuration file of the address information is to correlate the ip of each network access point with the position information such as city information corresponding to the network access point, and the speed measuring process is directly set in every two network access points.
603. And measuring the speed between network access points of the terminal equipment.
In this embodiment, a speed measurement process between network access points, that is, a timing initiation of a ping packet between network access points is required, network delay between nodes is detected, and delay data is synchronized to a scheduling service.
604. The terminal device generates delay information between access points.
In this embodiment, the delay information between access points is the delay between pairs of access points.
605. The terminal device receives the client request.
In this embodiment, the line scheduling service detects the client request, i.e., determines whether the user has pressed the accelerated button.
606. The terminal device parses the request parameters.
In this embodiment, a client request is received, and the request parameters are parsed, so as to obtain a T1 delay data list from the client to each access point, and a target ip (address of a target network device) to be queried by the client.
607. The terminal device determines an acceleration node.
In this embodiment, the acceleration node may match the network access point of the same city as the target ip as the acceleration node based on the ip address library in step 601.
608. The terminal device calculates the delay between each access point and the acceleration node.
In this embodiment, the data in step 603 is used to know the delay of each access point to all paths of acceleration node a.
609. The terminal device determines an optimal access point.
In this embodiment, the T1 delay data list in step 606 is summed with each delay in step 608 to obtain a total delay list for the user to reach the acceleration node via each access point; taking the access point corresponding to the minimum delay in the total delay list as the optimal access point
610. And the terminal equipment returns to the optimal access point.
In this embodiment, the optimal access point is returned to the accelerator client to complete the line inquiry.
In one possible scenario, after determining the optimal access point, a scenario shown in fig. 7 may be presented, and fig. 7 is a schematic diagram of a scenario of another network acceleration method provided by an embodiment of the present application, where delay information and status information of a connection path corresponding to each network access point are shown, where the status information is used to indicate the number of connection people, i.e. load situations, of the network access point corresponding to the connection path. In addition, the user can perform the process of accelerating again by clicking the target application program A1 to replace the application, specifically, clicking the intelligent acceleration button after selecting the line shown in the figure, to perform network acceleration for automatically selecting the connection path with the minimum delay.
According to the embodiment, the user does not need to select the accelerated game zone suit, so that tedious and error-prone operation is avoided, and user experience is improved. In addition, the operation and maintenance of the game district service are avoided, and the operation cost of accelerator products is reduced.
The above embodiment describes response logic of a client of a terminal and a background service, and in the following, a management process of a server in a network acceleration process is described in connection with hardware possibly involved in the present application. Referring to fig. 8, fig. 8 is a flowchart of another network acceleration method according to an embodiment of the present application, where the embodiment of the present application at least includes the following steps:
801. The terminal equipment is provided with a layered service module.
In this embodiment, the process of installing the layered service module may be installed based on network resources, or may be installed based on hardware resource input operations performed by a user.
802. The terminal device sends a speed measurement request to the network access point.
In this embodiment, the terminal device sends a speed measurement request to each network access point, so as to obtain a T1 speed measurement. Specifically, due to the volatility of the network, the process of sending the speed measurement request to the network access point by the terminal device may be performed periodically, for example, the terminal device sends the speed measurement request to the network access point every 12 hours.
803. The network access point responds to the speed measurement request to the terminal equipment.
In this embodiment, each network access point may perform feedback in response to a speed measurement request sent by the terminal, so that the terminal device obtains a network delay with each network access point.
804. The terminal device caches the first network delay.
In this embodiment, the process from step 801 to step 804 may refer to the description of step 302 in the embodiment shown in fig. 3, which is not described herein.
It can be understood that the terminal runs the acceleration logic of the client in fig. 4, that is, the terminal installs the network accelerator client therein, and the terminal runs the detection logic of the background service in fig. 6, and the specific detection process refers to the following interaction process with the network access point and the target network device.
805. The terminal equipment acquires the running process of the target application program.
In this embodiment, the target application may be a game, and its running process may be obtained by capturing a key function by using the layered service module installed in step 801.
806. The terminal device determines address information.
In this embodiment, the terminal device may obtain a corresponding network connection process by analyzing the running process of the target application, so that a network access point specifically accessed by the terminal device and address information such as an ip address and an interface corresponding to the network access point are resolved by the network connection process.
807. The terminal device sends address information to the network access point.
In this embodiment, the address information is the IP address of the target network device, and is sent to the network access point, so that each network access point performs step 808.
808. The network access point and the target network equipment carry out periodic speed measurement.
In this embodiment, the process of periodically measuring the speed between the network access point and the target network device, that is, the speed measurement process between the network access point and the acceleration node.
809. The network access point determines a second network delay.
In this embodiment, the acceleration node may be obtained by periodically measuring the speed in step 808, so as to serve as the second network delay based on the delay information between the acceleration node and each network access point.
810. The terminal device determines an accumulated network delay.
In this embodiment, the accumulated network delay is the sum of the first network delay and the second network delay, that is, the accumulated network delay is calculated between the terminal device and each network access point, and a specific presentation form may be an accumulated network delay list of the background of the terminal device.
811. The terminal device determines a connection path.
In this embodiment, the smallest delay value in the accumulated network delay is selected as the target access point, so as to obtain the connection path; or selecting the accumulated network delay smaller than the delay threshold value as the target access point, for example, the accumulated network delay smaller than 30ms can be used as the target access point, so that the data of each network access point do not need to be traversed, and the data processing efficiency is improved.
812. And establishing network acceleration connection between the terminal equipment and the target network equipment.
In this embodiment, the terminal determines a corresponding access point according to the IP information corresponding to the connection path, so as to establish a network acceleration connection with the target network device.
Optionally, in this embodiment, the target network device may be a gateway, and the network access point is a router, that is, the above network acceleration process is a process of selecting an optimal routing path for the terminal, and the method and the device can be specifically applied to a scenario that requires a large number of routers, such as indoor positioning, so as to ensure stability of the terminal network and convenience of network acceleration.
In order to better implement the above-described aspects of the embodiments of the present application, the following provides related apparatuses for implementing the above-described aspects. Referring to fig. 9, fig. 9 is a schematic structural diagram of a network acceleration device according to an embodiment of the present application, and a network acceleration device 800 includes:
An obtaining unit 901, configured to obtain access point information corresponding to a plurality of network access points in response to starting of a target application, where the network access points are used to associate network access of a terminal and a target network device, and the target network device is used to provide data running in the terminal by the target application;
A determining unit 902, configured to determine, based on the access point information, speed measurement information, where the speed measurement information is used to indicate a first network delay between the terminal and the network access point;
The determining unit 902 is further configured to detect operation information of the target application program, so as to determine address information corresponding to the target network device according to the operation information;
a detecting unit 903, configured to detect a second network delay between the network access point and the target network device according to the address information;
An acceleration unit 904, configured to determine a target access point according to the first network delay and the second network delay, so as to generate a connection path, where the connection path is used to provide network acceleration for the target application program.
Optionally, in some possible implementations of the present application, the determining unit 902 is specifically configured to parse the access point information to determine an access point address;
The determining unit 902 is specifically configured to send a speed measurement request to the access point address to determine the speed measurement information.
Optionally, in some possible implementations of the present application, the determining unit 902 is specifically configured to load a service plug-in corresponding to the target application;
The determining unit 902 is specifically configured to associate the key information indicated in the service plug-in with the running process of the target application program, so as to determine the address information corresponding to the target network device.
Optionally, in some possible implementations of the present application, the determining unit 902 is specifically configured to associate key information indicated in the service plug-in with an operation process of the target application program, so as to capture flow information corresponding to the target application program;
the determining unit 902 is specifically configured to parse the traffic information to determine the address information.
Optionally, in some possible implementations of the present application, the detecting unit 903 is specifically configured to determine an acceleration access point based on the address information;
the detecting unit 903 is specifically configured to obtain delay information between the acceleration access point and the network access point;
The detection unit 903 is specifically configured to determine the second network delay based on the delay information.
Optionally, in some possible implementations of the present application, the detecting unit 903 is specifically configured to determine a geographic location corresponding to the address information;
The detecting unit 903 is specifically configured to obtain a plurality of local access points within a preset range based on the geographic location;
The detection unit 903 is specifically configured to determine the acceleration access point based on delay information between the local access point and the target network device.
Optionally, in some possible implementations of the present application, the detecting unit 903 is specifically configured to load cache information between the acceleration access point and the network access point;
The detecting unit 903 is specifically configured to determine the delay information based on the cache information.
Optionally, in some possible implementations of the present application, the detecting unit 903 is specifically configured to send a preset period to the network access points, so that delay detection based on the preset period is performed between the network access points;
the detecting unit 903 is specifically configured to receive period information sent by the network access point, so as to update the buffer information, where the period information is obtained by performing delay detection by the network access point based on the preset period.
Optionally, in some possible implementations of the present application, the acceleration unit 904 is specifically configured to add a value corresponding to the first network delay and a value corresponding to the second network delay to obtain an accumulated network delay;
the acceleration unit 904 is specifically configured to determine an indicated delay satisfaction term in the accumulated network delay;
The acceleration unit 904 is specifically configured to obtain a target access point corresponding to the delay meeting item, so as to generate the connection path.
Optionally, in some possible implementations of the present application, the acceleration unit 904 is specifically configured to determine to switch to the access point in response to a target operation;
the acceleration unit 904 is specifically configured to update the connection path based on the handover access point.
Optionally, in some possible implementations of the present application, the acceleration unit 904 is specifically configured to obtain status information corresponding to the address information;
The acceleration unit 904 is specifically configured to determine an associated access point indicated in the state information;
the acceleration unit 904 is specifically configured to update the connection path based on the associated access point.
Acquiring access point information corresponding to a plurality of network access points in response to the starting of a target application program, wherein the network access points are used for associating network access of a terminal and target network equipment, and the target network equipment is used for providing data of the running of the target application program in the terminal; then determining speed measurement information based on the access point information, wherein the speed measurement information is used for indicating first network delay between the terminal and the network access point; detecting the running information of the target application program to determine the address information corresponding to the target network equipment; further detecting a second network delay between the network access point and the target network device based on the address information; and further determining the target access point according to the first network delay and the second network delay to generate a connection path, wherein the connection path is used for establishing network connection between the terminal and the target network device. Therefore, the process of automatically selecting the network access point and determining the corresponding target network equipment to accelerate the network is realized, the accuracy of network access point selection is ensured because the determination process of the target access point is obtained dynamically according to the address information of the target application program, and the efficiency of network acceleration is improved because the process automatically detects and connects.
The embodiment of the present application further provides a terminal device, as shown in fig. 10, which is a schematic structural diagram of another terminal device provided in the embodiment of the present application, for convenience of explanation, only the portion related to the embodiment of the present application is shown, and specific technical details are not disclosed, please refer to the method portion of the embodiment of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a point of sale (POS), a vehicle-mounted computer, and the like, taking the mobile phone as an example:
Fig. 10 is a block diagram showing a part of the structure of a mobile phone related to a terminal provided by an embodiment of the present application. Referring to fig. 10, the mobile phone includes: radio Frequency (RF) circuitry 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuitry 1060, wireless fidelity (WIRELESS FIDELITY, wiFi) module 1070, processor 1080, and power source 1090. It will be appreciated by those skilled in the art that the handset construction shown in fig. 10 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 10:
The RF circuit 1010 may be used for receiving and transmitting signals during a message or a call, and particularly, after receiving downlink information of a base station, the signal is processed by the processor 1080; in addition, the data of the design uplink is sent to the base station. Generally, RF circuitry 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (low noise amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communications may use any communication standard or protocol including, but not limited to, global System for Mobile communications (global system of mobile communication, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), long term evolution (long term evolution, LTE), email, short message service (short MESSAGING SERVICE, SMS), and the like.
The memory 1020 may be used to store software programs and modules that the processor 1080 performs various functional applications and data processing of the handset by executing the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 1020 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state memory device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the handset. In particular, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1031 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc., and spaced touch operations within a certain range on the touch panel 1031) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1080 and can receive commands from the processor 1080 and execute them. Further, the touch panel 1031 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, etc.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041, and alternatively, the display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), or the like. Further, the touch panel 1031 may overlay the display panel 1041, and when the touch panel 1031 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 1080 to determine a type of touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in fig. 10, the touch panel 1031 and the display panel 1041 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 1060, a speaker 1061, and a microphone 1062 may provide an audio interface between a user and a cell phone. Audio circuit 1060 may transmit the received electrical signal after audio data conversion to speaker 1061 for conversion by speaker 1061 into an audio signal output; on the other hand, microphone 1062 converts the collected sound signals into electrical signals, which are received by audio circuit 1060 and converted into audio data, which are processed by audio data output processor 1080 for transmission to, for example, another cell phone via RF circuit 1010 or for output to memory 1020 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 1070, so that wireless broadband Internet access is provided for the user. Although fig. 10 shows a WiFi module 1070, it is understood that it does not belong to the necessary constitution of the handset, and can be omitted entirely as required within the scope of not changing the essence of the invention.
Processor 1080 is the control center of the handset, connects the various parts of the entire handset using various interfaces and lines, and performs various functions and processes of the handset by running or executing software programs and/or modules stored in memory 1020, and invoking data stored in memory 1020. Optionally, processor 1080 may include one or more processing units; alternatively, processor 1080 may integrate an application processor primarily handling operating systems, user interfaces, applications, etc., with a modem processor primarily handling wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset further includes a power source 1090 (e.g., a battery) for powering the various components, optionally in logical communication with the processor 1080 via a power management system, such as for managing charge, discharge, and power consumption by the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In an embodiment of the present application, the processor 1080 included in the terminal also has the function of performing the various steps of the network acceleration method described above.
Embodiments of the present application also provide a computer readable storage medium having stored therein network acceleration instructions that, when executed on a computer, cause the computer to perform the steps performed by the network acceleration apparatus in the method described in the embodiments of fig. 3 to 8.
Embodiments of the present application also provide a computer program product comprising network acceleration instructions which, when run on a computer, cause the computer to perform the steps performed by the network acceleration apparatus in the method described in the embodiments of fig. 3 to 8.
The embodiment of the application also provides a network acceleration system, which can comprise the network acceleration device in the embodiment shown in fig. 9 or the terminal equipment shown in fig. 10.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a network acceleration device, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (22)

1. A method for network acceleration in an application, comprising:
Responding to the starting of a target application program, acquiring access point information corresponding to a plurality of network access points, wherein the network access points are used for associating the network access of a terminal and target network equipment, and the target network equipment is used for providing data of the target application program running in the terminal;
Determining speed measurement information based on the access point information, wherein the speed measurement information is used for indicating a first network delay between the terminal and the network access point;
detecting the running information of the target application program to determine address information corresponding to the target network equipment according to the running information, wherein the running information of the target application program is the running process of the application;
Determining the geographic position corresponding to the address information;
Acquiring a plurality of local access points in a preset range based on the geographic position;
determining an acceleration access point based on delay information between the local access point and the target network device;
Acquiring delay information between the acceleration access point and the network access point;
Determining a second network delay between the network access point and the target network device based on the delay information;
and determining a target access point according to the first network delay and the second network delay to generate a connection path, wherein the connection path is used for providing network acceleration for the target application program.
2. The method of claim 1, wherein the determining speed measurement information based on the access point information comprises:
analyzing the access point information to determine an access point address;
and sending a speed measurement request to the access point address to determine the speed measurement information.
3. The method according to claim 1, wherein detecting the running information of the target application program to determine the address information corresponding to the target network device according to the running information includes:
Loading a service plug-in corresponding to the target application program;
And associating the key information indicated in the service plug-in with the running process of the target application program to determine the address information corresponding to the target network equipment.
4. A method according to claim 3, wherein said associating key information indicated in the service plug-in with a running process of the target application to determine the address information corresponding to the target network device comprises:
Correlating the key information indicated in the service plug-in with the running process of the target application program to capture the flow information corresponding to the target application program;
and analyzing the flow information to determine the address information corresponding to the target network equipment.
5. The method of claim 1, wherein the obtaining delay information between the acceleration access point and the network access point comprises:
loading cache information between the acceleration access point and the network access point;
And determining the delay information based on the cache information.
6. The method of claim 5, wherein the method further comprises:
Transmitting a preset period to the network access points so that delay detection based on the preset period is performed among the network access points;
And receiving the period information sent by the network access point to update the buffer information, wherein the period information is obtained by the network access point performing delay detection based on the preset period.
7. The method of claim 1, wherein the determining a target access point from the first network delay and the second network delay to generate a connection path comprises:
adding the value corresponding to the first network delay and the value corresponding to the second network delay to obtain accumulated network delay;
determining an indicated delay satisfaction term in the accumulated network delay;
And obtaining the target access point corresponding to the delay meeting item to generate the connection path.
8. The method according to any one of claims 1-7, further comprising:
Determining a handoff access point in response to the target operation;
and updating the connection path based on the switching access point.
9. The method according to any one of claims 1-7, further comprising:
acquiring state information corresponding to the address information;
Determining an associated access point indicated in the status information;
And updating the connection path based on the associated access point.
10. The method of claim 1, wherein the target application program is a game application and the target network device is a game server, the network access point being configured to reduce network latency between the game application and the game server.
11. A network acceleration apparatus, comprising:
the terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for responding to the starting of a target application program and acquiring access point information corresponding to a plurality of network access points, the network access points are used for associating the network access of the terminal and target network equipment, and the target network equipment is used for providing data of the target application program running in the terminal;
a determining unit, configured to determine speed measurement information based on the access point information, where the speed measurement information is used to indicate a first network delay between the terminal and the network access point;
The determining unit is further configured to detect operation information of the target application program, so as to determine address information corresponding to the target network device according to the operation information, where the operation information of the target application program is an operation process of an application;
The detection unit is used for determining the geographic position corresponding to the address information; acquiring a plurality of local access points in a preset range based on the geographic position; determining an acceleration access point based on delay information between the local access point and the target network device; acquiring delay information between the acceleration access point and the network access point; determining a second network delay between the network access point and the target network device based on the delay information;
And the acceleration unit is used for determining a target access point according to the first network delay and the second network delay so as to generate a connection path, wherein the connection path is used for providing network acceleration for the target application program.
12. The apparatus according to claim 11, wherein the determining unit is specifically configured to:
analyzing the access point information to determine an access point address;
and sending a speed measurement request to the access point address to determine the speed measurement information.
13. The apparatus according to claim 11, wherein the determining unit is specifically configured to:
Loading a service plug-in corresponding to the target application program;
And associating the key information indicated in the service plug-in with the running process of the target application program to determine the address information corresponding to the target network equipment.
14. The apparatus according to claim 13, wherein the determining unit is specifically configured to:
Correlating the key information indicated in the service plug-in with the running process of the target application program to capture the flow information corresponding to the target application program;
and analyzing the flow information to determine the address information corresponding to the target network equipment.
15. The device according to claim 11, characterized in that the detection unit is specifically configured to:
loading cache information between the acceleration access point and the network access point;
And determining the delay information based on the cache information.
16. The device according to claim 15, wherein the detection unit is specifically configured to:
Transmitting a preset period to the network access points so that delay detection based on the preset period is performed among the network access points;
And receiving the period information sent by the network access point to update the buffer information, wherein the period information is obtained by the network access point performing delay detection based on the preset period.
17. The device according to claim 11, characterized in that said acceleration unit is in particular adapted to:
adding the value corresponding to the first network delay and the value corresponding to the second network delay to obtain accumulated network delay;
determining an indicated delay satisfaction term in the accumulated network delay;
And obtaining the target access point corresponding to the delay meeting item to generate the connection path.
18. The device according to any one of claims 11-17, characterized in that the acceleration unit is specifically configured to:
Determining a handoff access point in response to the target operation;
and updating the connection path based on the switching access point.
19. The device according to any one of claims 11-17, characterized in that the acceleration unit is specifically configured to:
acquiring state information corresponding to the address information;
Determining an associated access point indicated in the status information;
And updating the connection path based on the associated access point.
20. A computer device, the computer device comprising a processor and a memory:
The memory is used for storing program codes; the processor is configured to perform the network acceleration method of any one of claims 1 to 7 according to instructions in the program code.
21. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the network acceleration method of any one of the preceding claims 1 to 7.
22. A computer program product, characterized in that the computer program product comprises computer instructions, which are executed by a processor of a computer device, such that the computer device performs the network acceleration method of any one of the preceding claims 1 to 7.
CN202010686368.3A 2020-07-16 2020-07-16 Method, device and storage medium for accelerating network in application program Active CN113950125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010686368.3A CN113950125B (en) 2020-07-16 2020-07-16 Method, device and storage medium for accelerating network in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010686368.3A CN113950125B (en) 2020-07-16 2020-07-16 Method, device and storage medium for accelerating network in application program

Publications (2)

Publication Number Publication Date
CN113950125A CN113950125A (en) 2022-01-18
CN113950125B true CN113950125B (en) 2024-05-17

Family

ID=79326362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010686368.3A Active CN113950125B (en) 2020-07-16 2020-07-16 Method, device and storage medium for accelerating network in application program

Country Status (1)

Country Link
CN (1) CN113950125B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115138065A (en) * 2022-06-13 2022-10-04 炫彩互动网络科技有限公司 Acceleration method and device of cloud game terminal
CN115442863A (en) * 2022-08-11 2022-12-06 中科驭数(北京)科技有限公司 Access point determination method, device, equipment and readable storage medium
CN115913956A (en) * 2022-11-30 2023-04-04 网易(杭州)网络有限公司 Network acceleration method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684947A (en) * 2012-05-25 2012-09-19 四川迅游网络科技股份有限公司 Speed measurement method for network accelerating system
CN106656800A (en) * 2017-02-21 2017-05-10 网宿科技股份有限公司 Path selection method and system, network acceleration node and network acceleration system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10033587B2 (en) * 2012-11-09 2018-07-24 At&T Intellectual Property I, L.P. Controlling network traffic using acceleration policies

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684947A (en) * 2012-05-25 2012-09-19 四川迅游网络科技股份有限公司 Speed measurement method for network accelerating system
CN106656800A (en) * 2017-02-21 2017-05-10 网宿科技股份有限公司 Path selection method and system, network acceleration node and network acceleration system

Also Published As

Publication number Publication date
CN113950125A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN113950125B (en) Method, device and storage medium for accelerating network in application program
CN111629075B (en) Data downloading method and related device
CN110213315B (en) Path determining method and device
CN104850434A (en) Method and apparatus for downloading multimedia resources
CN107204989B (en) Advertisement blocking method, terminal, server and storage medium
CN110620822A (en) Network element determination method and device
WO2015035947A1 (en) Method for realizing cellphone without card, cellphone and server
CN112148579B (en) User interface testing method and device
CN106293738B (en) Expression image updating method and device
CN106953898B (en) Method and device for acquiring software package
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN109002547B (en) Log file storage method, mobile terminal and computer readable storage medium
CN107743149B (en) Network access method, device and terminal
CN112749074B (en) Test case recommending method and device
CN108347460B (en) Resource access method and device
WO2014183438A1 (en) Method, apparatus, and communication system for allocating and managing voice channels
CN110138887B (en) Data processing method, device and storage medium
CN115118636B (en) Method and device for determining network jitter state, electronic equipment and storage medium
CN108075945B (en) Application testing method and device
CN113873048B (en) Method and system for downloading application package in application downloading platform
CN112188586B (en) Network access method and device
CN112153154A (en) Data transmission method and related device
CN114490307A (en) Unit testing method, device and storage medium
CN112732548A (en) Interface testing method and device
CN112799857B (en) Application access method, device, terminal and storage medium

Legal Events

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