Application acceleration method, device, electronic device and storage medium

By obtaining and processing network acceleration rule information, configuring virtual network cards and sending domain name resolution requests, the problem of poor domain name resolution accuracy is solved, and application acceleration and user experience improvement are achieved.

CN116095037BActive Publication Date: 2024-09-13TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111671675.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-11-05
Filing Date
2021-12-31
Publication Date
2024-09-13
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

Under different network environments, poor accuracy and passability of domain name resolution lead to application acceleration failure and affect user experience.

Method used

By obtaining network acceleration rule information that matches the target application, configuring the virtual network card, parsing and processing traffic information, and sending domain name resolution requests to the corresponding domain name resolution server to achieve correct domain name resolution results and application acceleration.

Benefits of technology

It improves the domain name resolution quality of applications, ensures the acceleration effect of applications, improves user experience, adapts to different types of applications, and reduces the number of installations of acceleration devices and hardware processing pressure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095037B_ABST
    Figure CN116095037B_ABST
Patent Text Reader

Abstract

The present invention provides an application acceleration method, device, and electronic device, and the relevant embodiments can be applied to various scenarios such as cloud technology, cloud security, and smart transportation. The method includes: obtaining network acceleration rule information that matches the target application; based on the network acceleration rule information, obtaining a network acceleration channel that matches the target application, and obtaining a domain name resolution server list; obtaining target traffic information that matches the target application through a virtual network card; according to the type of target traffic information and the network acceleration rule information, sending the domain name resolution request in the target traffic information to the corresponding domain name resolution server to obtain the domain name resolution result. The application acceleration method of the present application can improve the data processing efficiency of the application, optimize the effect of application data acceleration, and promptly send out messages of domain name resolution results. At the same time, it can save the storage space of the terminal during domain name resolution and reduce the pressure on the terminal's hardware processing.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority statement

[0002] This application claims priority to application number 202111304938.9, filing date November 5, 2021, and title: Application acceleration method, device, electronic device, and storage medium. Technical Field

[0003] The present invention relates to information processing technology, and in particular to an application acceleration method, device, electronic device and storage medium. Background Art

[0004] With the development of different applications, the types of applications are diverse. For applications with different usage requirements, different application acceleration services can be configured according to the type of application, for example: game applications can be accelerated through game accelerators, and live broadcast applications can be accelerated through live broadcast accelerators to reduce the freeze of video information in live broadcasts; in this process, due to different terminal types, the applications that need acceleration services are also different. When the application needs to interact with the application server through network traffic, the quality of domain name resolution is closely related to the experience of the application. Due to the portability of mobile devices, the geographical location of the user's home of the application is usually changing, and the network environment in which it is located is also changing. In different network environments, the passability and accuracy of domain name resolution are different (for example, the operator's network cannot correctly resolve a domain name due to the domain name resolution cache, and the domestic resolution of a foreign domain name is inaccurate, etc.). Incorrect domain name resolution not only makes the application unable to accelerate processing, but also affects the user's experience. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides an application acceleration method, device, electronic device and storage medium, which can effectively improve the domain name resolution quality of the application, complete the acceleration of the target application through the correct domain name resolution result, and improve the user experience.

[0006] The technical solution of the embodiment of the present invention is achieved as follows:

[0007] An embodiment of the present invention provides an application acceleration method including:

[0008] In response to the application acceleration instruction, obtaining network acceleration rule information matching the target application;

[0009] Based on the network acceleration rule information, a network acceleration channel matching the target application is acquired, and a domain name resolution server list is obtained;

[0010] Configuring a virtual network card for the target application, and obtaining target traffic information matching the target application through the virtual network card;

[0011] Parsing the target flow information to obtain the type of the target flow information;

[0012] According to the type of the target traffic information and the network acceleration rule information, the domain name resolution request in the target traffic information is sent to the corresponding domain name resolution server to obtain the domain name resolution result, so as to process the target traffic information through the domain name resolution result and complete the acceleration of the target application.

[0013] The embodiment of the present invention further provides an application acceleration device, including:

[0014] An information transmission module, used to obtain network acceleration rule information matching a target application in response to an application acceleration instruction;

[0015] An information processing module, configured to obtain a network acceleration channel matching the target application based on the network acceleration rule information, and obtain a domain name resolution server list;

[0016] The information processing module is used to configure a virtual network card for the target application and obtain target flow information matching the target application through the virtual network card;

[0017] The information processing module is used to parse the target flow information to obtain the type of the target flow information;

[0018] The information processing module is used to send the domain name resolution request in the target traffic information to the corresponding domain name resolution server according to the type of the target traffic information and the network acceleration rule information, and obtain the domain name resolution result, so as to process the target traffic information through the domain name resolution result and complete the acceleration of the target application.

[0019] In the above scheme,

[0020] The information processing module is used to determine the type of the target application in response to the application acceleration instruction;

[0021] The information processing module is used to determine the acceleration method of the target application according to the type of the target application;

[0022] The information processing module is used to perform combined processing on the acceleration methods of the target application to obtain network acceleration rule information matching the target application, wherein the network acceleration rule information includes at least one of the following:

[0023] Multi-service domain name resolution acceleration, single-service domain name resolution acceleration and direct connection domain name resolution.

[0024] In the above scheme,

[0025] The information processing module is used to determine the number of network acceleration channels of the target application according to the type of the target application;

[0026] The information processing module is used to determine the number of accelerated domain name resolution standby servers corresponding to the network acceleration rule information based on the number of network acceleration channels and the network acceleration rule information;

[0027] The information processing module is used to adjust the number of different types of servers in the domain name resolution server list based on the number of the accelerated domain name resolution standby servers.

[0028] In the above scheme,

[0029] The information processing module is used to extract the domain name information to be resolved from the target traffic information when the type of the target traffic information is domain name resolution request traffic;

[0030] The information processing module is used to match the domain name information to be resolved through a regular expression to obtain a domain name resolution acceleration strategy corresponding to the domain name information to be resolved;

[0031] The information processing module is used to forward the domain name resolution request in the target traffic information according to the domain name resolution acceleration strategy, and send the domain name resolution request to the corresponding domain name resolution server;

[0032] The information processing module is used to obtain processing results of different domain name resolution servers to obtain the domain name resolution result corresponding to the domain name resolution request.

[0033] In the above scheme,

[0034] The information processing module is used to perform fission processing on the domain name resolution request when the domain name resolution acceleration strategy is a multi-service domain name resolution acceleration strategy, and modify the target IP address of the domain name resolution request to the IP address of the accelerated domain name resolution primary server and the IP address of at least one accelerated domain name resolution backup server;

[0035] The information processing module is used to process the domain name resolution request through the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server and a network acceleration channel matching the target application;

[0036] The information processing module is used to integrate different domain name resolution results of the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server to obtain a domain name resolution result;

[0037] The information processing module is used to send the domain name resolution result to the original IP address of the domain name resolution request in the target traffic information, and notify the target application through the original IP address of the domain name resolution request.

[0038] In the above scheme,

[0039] The information processing module is used to obtain the domain name resolution process of the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server when the target application is a game program;

[0040] The information processing module is used to determine, when a domain name resolution result is obtained for the first time, that the obtained domain name resolution result is a domain name resolution result that matches the game program.

[0041] In the above scheme,

[0042] The information processing module is used to modify the target IP address of the domain name resolution request to the IP address of the target domain name resolution server when the domain name resolution acceleration strategy is a single-service domain name resolution acceleration strategy;

[0043] The information processing module is used to process the domain name resolution request through the target domain name resolution server and obtain a domain name resolution result by using a network acceleration channel matching the target application program;

[0044] The information processing module is used to send the domain name resolution result to the original IP address of the domain name resolution request in the target traffic information, and notify the target application through the original IP address of the domain name resolution request.

[0045] In the above scheme,

[0046] The information processing module is used to modify the target IP address of the domain name resolution request to the IP address of the target domain name resolution server when the domain name resolution acceleration strategy is the direct domain name resolution acceleration strategy;

[0047] The information processing module is used to process the domain name resolution request through the target domain name resolution server to obtain a domain name resolution result;

[0048] The information processing module is used to send the domain name resolution result to the original IP address of the domain name resolution request in the target traffic information, and notify the target application through the original IP address of the domain name resolution request.

[0049] In the above scheme,

[0050] The information processing module is used for, when the type of the target traffic information is non-domain name resolution request traffic,

[0051] The information processing module is used to detect the legitimacy of the target flow information and obtain the legitimacy detection result of the target flow information;

[0052] The information processing module is used to perform at least one of the following according to the legitimacy detection result of the target traffic information:

[0053] forwarding the target traffic information to a server corresponding to the target application, or

[0054] Issue illegal traffic warning information.

[0055] In the above scheme,

[0056] The information processing module is used for, when the type of the target traffic information is hypertext transfer protocol traffic or encrypted hypertext transfer protocol traffic,

[0057] The information processing module is used to obtain the target domain name and port information by parsing the corresponding hypertext transfer protocol;

[0058] The information processing module is used to obtain the target Internet Protocol address corresponding to the target domain name by sending query information to the domain name system; send the target Internet Protocol address, port information and target traffic information corresponding to the target domain name to the corresponding proxy server;

[0059] The information processing module is used by the proxy server to accelerate the processing of the target traffic information.

[0060] In the above scheme,

[0061] The information processing module is used to determine the identification information of the target user when the target application is a cloud game;

[0062] The information processing module is used to determine a data source cluster matching the identification information based on a cloud server network;

[0063] The information processing module is used to store the cloud game history information of the user matching the target user in the cloud game server according to the data source cluster.

[0064] An embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0065] A memory for storing executable instructions;

[0066] The processor is used to implement the aforementioned application acceleration method when running the executable instructions stored in the memory.

[0067] An embodiment of the present invention further provides a computer-readable storage medium storing executable instructions, which implement the aforementioned application acceleration method when executed by a processor.

[0068] The embodiments of the present invention have the following beneficial effects:

[0069] The present invention obtains network acceleration rule information matching the target application in response to an application acceleration instruction; based on the network acceleration rule information, obtains a network acceleration channel matching the target application, and obtains a domain name resolution server list; configures a virtual network card for the target application, and obtains target traffic information matching the target application through the virtual network card; parses and processes the target traffic information to obtain the type of the target traffic information; according to the type of the target traffic information and the network acceleration rule information, sends the domain name resolution request in the target traffic information to the corresponding domain name resolution server to obtain the domain name resolution result, so as to realize the processing of the target traffic information through the domain name resolution result and complete the acceleration of the target application. In this way, the domain name resolution quality of the application can be effectively improved, and the acceleration of the target application can be completed through the correct domain name resolution result, thereby improving the user experience. At the same time, this scheme can adapt to different types of applications, so that users can flexibly adjust the application to be accelerated through the application acceleration method provided by this application, reduce the number of installations of different application acceleration devices, and reduce the hardware processing pressure of the running terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 A schematic diagram of a usage scenario of the application acceleration method provided by an embodiment of the present invention;

[0071] Figure 2 A schematic diagram of the structure of an application acceleration device provided by an embodiment of the present invention;

[0072] Figure 3 An optional flowchart of the application acceleration method provided by an embodiment of the present invention;

[0073] Figure 4A A schematic diagram of the effect of game data processing in an embodiment of the present invention;

[0074] Figure 4B A schematic diagram of the effect of game data processing in an embodiment of the present invention;

[0075] Figure 5 A schematic diagram of the flow that needs to be accelerated in an embodiment of the present invention;

[0076] Figure 6 A schematic diagram of binding a virtual network card to an IP in an embodiment of the present invention;

[0077] Figure 7 An optional flowchart of the application acceleration method provided by an embodiment of the present invention;

[0078] Figure 8 Schematic diagram of a regular expression in an embodiment of the present invention;

[0079] Fig. 9 An optional flowchart of the application acceleration method provided by an embodiment of the present invention;

[0080] Fig.10 An optional flowchart of the application acceleration method provided by an embodiment of the present invention;

[0081] Fig.11 This is a schematic diagram of traffic interception of an iOS system in an embodiment of the present invention. DETAILED DESCRIPTION

[0082] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without performing creative work are within the scope of protection of the present invention.

[0083] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0084] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.

[0085] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0086] 2) Based on: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.

[0087] 3) Virtual scene: It is a virtual scene displayed (or provided) when the application is running on the terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional three-dimensional environment, or a purely fictional three-dimensional environment.

[0088] The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene and a three-dimensional virtual scene. The following embodiments are illustrated by taking the virtual scene as a three-dimensional virtual scene, but this is not limited. Optionally, the virtual scene is also used for a virtual scene battle between at least two virtual objects. Optionally, the virtual scene is also used for a battle between at least two virtual objects using virtual attack props. Optionally, the virtual scene can also be not limited to gun battle games, parkour games, racing games, multiplayer online tactical competitive games (Multiplayer Online Battle Arena, MOBA), racing games (Racing Game, RCG) and sports games (SPG). The trained game data processing model provided by the present application can be deployed in the game server corresponding to the aforementioned various game scenes, used to generate a real-time virtual scene route and present it in the game interface, perform corresponding actions in the corresponding game, simulate the operation of the virtual user, and complete different types of games in the virtual scene with the users who actually participate in the game.

[0089] 4) Virtual objects, images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as: people, animals, plants, oil drums, walls, stones, etc. displayed in a virtual scene. The virtual object can be a virtual image in the virtual scene that represents the user. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.

[0090] 5) Action: In the process of controlling virtual objects through operations on the client, when the virtual scene route and the corresponding auxiliary lines are presented in the virtual scene using the application acceleration method provided in the present application, any point in the virtual scene route can be selected with the help of the auxiliary lines to perform corresponding actions. For example, when the virtual scene route is a route in a game map, any position can be selected in the air route of the game to perform parachuting or airdropping, or any position can be selected in the water route of the game to perform diving or diving.

[0091] 6) Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing. It is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool and be used on demand, flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.

[0092] 7) Cloud gaming: refers to a game that runs on a cloud server device. The game screen rendered by the cloud device is encoded and transmitted to the user terminal through the network. The user terminal decodes the encoded file and renders it to the display screen for display. Therefore, the user does not need to install the game locally, but only needs to establish a communication network connection with the cloud to complete the game interaction process.

[0093] Before introducing the application acceleration method provided by the present application, the application acceleration method in the conventional technology is first described by taking the game program as an example. In the conventional technology, the generation of the virtual scene route of the FPS game in the game console is taken as an example. In order to realize the presentation of the virtual scene route through the game map in the virtual scene, or the acceleration of the corresponding action process, the following two methods can be included:

[0094] (1) Dedicated line acceleration: Use a dedicated line network to forward domain name resolution traffic, relying on the stability of the dedicated line to improve the quality of domain name resolution, thereby improving the gaming experience.

[0095] However, the limitation of this method is that it can only solve the problem of packet loss on the operator's line, but cannot solve the problem of unresolvable domain names and domain name resolution accuracy on the domain name resolution server. It will sacrifice the acceleration effect of the game, and in serious cases may make the game unplayable, affecting the user experience.

[0096] (2) Dual-channel acceleration: Use cellular networks and Wi-Fi networks to forward domain name resolution traffic simultaneously, and improve the success rate of domain name resolution by sending a large number of redundant packets.

[0097] However, the limitation of this method is that it can only solve the problem of packet loss on the user's local network, but cannot solve the problem of unresolvable domain names on the domain name resolution server and the problem of domain name resolution accuracy.

[0098] In order to solve the above defects, an embodiment of the present invention provides an application acceleration method to obtain the correct domain name resolution result, and accelerate the application according to the domain name resolution result, optimize the acceleration effect of the application, and improve the user experience.

[0099] Figure 1 Schematic diagram of an implementation scenario of the application acceleration method provided by an embodiment of the present invention, see Figure 1 To support an exemplary application, the terminals include a terminal 10-1 and a terminal 10-2. The terminals are connected to an application acceleration device 200 via a network 300. The network 300 may be a wide area network or a local area network, or a combination of the two, and data transmission is achieved using wireless or wired links.

[0100] The terminal (such as terminal 10-2) is located at the user side and is used to issue a virtual scene route generation request to request to obtain a virtual scene route that is compatible with the virtual scene where the target object is located, where the target object can be various types of game users. The terminal (including terminal 10-1 and terminal 10-2) can obtain virtual scene data from the corresponding virtual scene server 200 through the network 300 and present the virtual scene in the display area of ​​the terminal. The application acceleration device set in the terminal can execute the following scheme:

[0101] In response to an application acceleration instruction, network acceleration rule information matching the target application is obtained; based on the network acceleration rule information, a network acceleration channel matching the target application is obtained, and a domain name resolution server list is obtained; a virtual network card is configured for the target application, and target traffic information matching the target application is obtained through the virtual network card; the target traffic information is parsed and processed to obtain the type of the target traffic information; according to the type of the target traffic information and the network acceleration rule information, a domain name resolution request in the target traffic information is sent to a corresponding domain name resolution server to obtain a domain name resolution result, so as to realize processing of the target traffic information through the domain name resolution result and complete acceleration of the target application.

[0102] In some embodiments, terminal 10 - 1 may install and run an application program that supports virtual scenes. The application may be a virtual reality application, a three-dimensional map program, a first-person shooting game (FPS First-person shooting game), a multiplayer online tactical competitive game (MOBA Multiplayer Online Battle Arena Games) and other different virtual scenes. Taking shooting games as an example, the user may control the virtual object to perform actions at different positions in the virtual scene route, or perform actions at different time points while moving along the virtual scene route, such as free falling, gliding or opening a parachute to fall in the sky at different positions in the virtual scene route, or running, jumping, crawling, bending forward at different positions in the virtual scene route on land, or controlling the virtual object to swim, float or dive in the ocean at different positions in the virtual scene route. Of course, the user may also control the virtual object to move in the virtual scene by riding a virtual vehicle, and display the real-time position at different positions in the virtual scene route. For example, the virtual vehicle may be a virtual car, a virtual aircraft, a virtual yacht moving along the virtual scene route, etc. The above-mentioned scenes are only used as examples for illustration, and the embodiments of the present invention are not specifically limited to this. The user can also control the virtual object to interact with other virtual objects by fighting with virtual attack props. The virtual attack props can be cold weapons or hot weapons. The present invention does not specifically limit the type of virtual attack props.

[0103] Among them, the application acceleration device can be packaged in a professional game terminal or in different mobile electronic devices. This application does not make specific restrictions. Among them, when the application is a game program, the application acceleration device can be a game accelerator. The game itself runs in the cloud server device. After the game screen rendered by the cloud device is encoded, it is transmitted to the user terminal through the network. The user terminal decodes the encoded file and renders it to the display screen for display. In this way, the user does not need to install the game locally, but only needs to establish a communication network connection with the cloud to complete the game interaction process. The organizational structure of cloud games includes terminals and cloud servers, wherein the terminal is used to receive the user's control operation on the game process, and send the control instructions corresponding to the control operation to the cloud server. The cloud server is used to control the game process and send the video stream of the game process to the terminal for playback. That is, in the organizational structure of cloud games, the terminal is mainly responsible for receiving the game video and game audio of the corresponding server for rendering and playback during the game, and sending the game user's operations on the terminal side (including but not limited to the operations performed by the game user through the mouse, keyboard, operating handle, voice command, touch command, etc.) to the server through the signaling channel connected to the server. The server sends these operation information to the matching mouse driver process, sound card driver process and keyboard driver process, thereby realizing the control of the cloud game. The game accelerator can achieve data processing efficiency for the game program and optimize the data acceleration effect of the application by executing the application acceleration method provided in this application.

[0104] The following is an explanation of an application acceleration device for implementing the application acceleration method of an embodiment of the present invention. The application acceleration device can be implemented in various forms, such as a terminal with an application acceleration device processing function, or a server with an application acceleration device processing function, such as the preceding Figure 1 Server 200 in. Figure 2 The schematic diagram of the composition structure of the application acceleration device provided by the embodiment of the present invention can be understood as follows: Figure 2 Only an exemplary structure of the application acceleration device is shown, not all structures, and can be implemented as needed. Figure 2 Partial or complete structure shown.

[0105] The application acceleration device provided in the embodiment of the present invention includes: at least one processor 201, a memory 202, a user interface 203 and at least one network interface 204. The various components in the application acceleration device are coupled together through a bus system 205. It can be understood that the bus system 205 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 205 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 205 is not used in the application acceleration device. Figure 2Various buses are labeled as bus system 205 .

[0106] The user interface 203 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0107] It is understood that the memory 202 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The memory 202 in the embodiment of the present invention can store data to support the operation of the terminal (such as 10-1). Examples of these data include: any computer program for operating on the terminal (such as 10-1), such as an operating system and an application program. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program may include various applications.

[0108] In some embodiments, the application acceleration device provided in the embodiment of the present invention can be implemented in a combination of software and hardware. As an example, the application acceleration device provided in the embodiment of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the application acceleration method provided in the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0109] As an example of an application acceleration device provided in an embodiment of the present invention being implemented by a combination of software and hardware, the application acceleration device provided in an embodiment of the present invention can be directly embodied as a combination of software modules executed by a processor 201, and the software module can be located in a storage medium, and the storage medium is located in a memory 202. The processor 201 reads the executable instructions included in the software module in the memory 202, and combines with necessary hardware (for example, including a processor 201 and other components connected to a bus 205) to complete the application acceleration method provided in an embodiment of the present invention.

[0110] As an example, the processor 201 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0111] As an example of hardware implementation of the application acceleration device provided in an embodiment of the present invention, the device provided in an embodiment of the present invention can be directly executed by a processor 201 in the form of a hardware decoding processor, for example, one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components to implement the application acceleration method provided in an embodiment of the present invention.

[0112] The memory 202 in the embodiment of the present invention is used to store various types of data to support the operation of the application acceleration device. Examples of these data include: any executable instructions for operating on the application acceleration device, such as executable instructions, and the program for implementing the application acceleration method of the embodiment of the present invention can be included in the executable instructions.

[0113] In other embodiments, the application acceleration device provided by the embodiment of the present invention can be implemented in software. Figure 2 The application acceleration device stored in the memory 202 is shown, which may be software in the form of a program and a plug-in, and includes a series of modules. As an example of a program stored in the memory 202, an application acceleration device may be included, and the application acceleration device includes the following software modules:

[0114] The information transmission module 2081 obtains network acceleration rule information matching the target application in response to the application acceleration instruction;

[0115] The information processing module 2082 is used to obtain a network acceleration channel matching the target application based on the network acceleration rule information, and obtain a domain name resolution server list;

[0116] The information processing module 2082 is used to configure a virtual network card for the target application and obtain target flow information matching the target application through the virtual network card;

[0117] The information processing module 2082 is used to parse the target flow information to obtain the type of the target flow information;

[0118] The information processing module 2082 is used to send the domain name resolution request in the target traffic information to the corresponding domain name resolution server according to the type of the target traffic information and the network acceleration rule information, and obtain the domain name resolution result, so as to process the target traffic information through the domain name resolution result and complete the acceleration of the target application.

[0119] In some embodiments, the application acceleration device 200 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network), and big data and artificial intelligence platforms. The terminal (such as terminal 10-1) can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected through wired or wireless communication, which is not limited in the embodiments of the present invention.

[0120] according to Figure 2 The application acceleration device shown, in one aspect of the present application, the present application also provides a computer program product or a computer program, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the different embodiments and combinations of embodiments provided in various optional implementations of the above-mentioned point application acceleration method.

[0121] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0122] Continue to combine Figure 2 The application acceleration device shown in the figure illustrates the application acceleration method provided by the embodiment of the present invention. Figure 3 , Figure 3 An optional flow chart of the application acceleration method provided in an embodiment of the present invention, taking the application as a game program as an example, can be run on Figure 1 The game accelerator in the terminal 10-1 or 10-2 shown executes the application acceleration method provided by the present application, so as to improve the efficiency of game data processing while ensuring the accuracy of game data processing, and process the data in the game scene with complex dimensions more quickly. It should be noted that Figure 3 The steps shown can be executed by various electronic devices running an application acceleration device, for example, a terminal with an application acceleration device, such as a somatosensory game console, a personal game console, or the application acceleration method provided in this application can be executed through game accelerator software in a mobile phone.

[0123] Combine the following Figure 3 The steps shown are specifically described by taking an application acceleration device implementing the application acceleration method provided by an embodiment of the present invention as an example.

[0124] Step 301: The application acceleration device responds to the application acceleration instruction and obtains network acceleration rule information matching the target application.

[0125] In some embodiments of the present invention, reference Figure 4A and Figure 4B , Figure 4A Schematic diagram of the effect of game data processing in an embodiment of the present invention. The game acceleration mark can be set at the edge of the virtual scene image (including but not limited to the upper left corner or the upper right corner of the virtual scene image). Specifically, due to the different types of target games, the game screens presented in the game client are also various. However, for any type of game, the accelerator display position can be adjusted according to the user's usage habits, such as Figure 4A As shown, the game terminal is a somatosensory game console, click the acceleration mark to start the acceleration process, and execute the application acceleration method of the present application. At the same time, Figure 4B The effect diagram of the game data processing in the embodiment of the present invention can be obtained by Figure 4B The game acceleration progress is displayed to the user to facilitate prompting the user of the game acceleration progress. It should be noted that the game terminal can also be various types of user terminals, including but not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, car terminals, etc.

[0126] In some embodiments of the present invention, in response to an application acceleration instruction, obtaining network acceleration rule information matching a target application may be achieved in the following manner:

[0127] In response to an application acceleration instruction, determine the type of the target application; determine the acceleration method of the target application based on the type of the target application; combine the acceleration methods of the target application to obtain network acceleration rule information that matches the target application, wherein the network acceleration rule information includes at least one of the following: multi-service domain name resolution acceleration, single-service domain name resolution acceleration, and direct domain name resolution.

[0128] Step 302: The application acceleration device obtains a network acceleration channel matching the target application based on the network acceleration rule information, and obtains a domain name resolution server list.

[0129] In some embodiments of the present invention, when obtaining a domain name resolution server list, the number of network acceleration channels of the target application can be determined according to the type of the target application; based on the number of network acceleration channels and the network acceleration rule information, the number of accelerated domain name resolution standby servers corresponding to the network acceleration rule information can be determined; based on the number of accelerated domain name resolution standby servers, the number of different types of servers in the domain name resolution server list can be adjusted. Among them, the domain name resolution server list includes a direct domain name resolution server, an accelerated domain name resolution main server and at least one accelerated domain name resolution backup server. The direct domain name resolution server is used for the subsequent direct domain name resolution process, the accelerated domain name resolution main server is used for the subsequent acceleration process of single-service domain name resolution, and the accelerated domain name resolution backup server is used for the subsequent acceleration process of multi-service simultaneous resolution. Specifically, when the target application is a game program, the number of network acceleration channels can be 3, and the number of accelerated domain name resolution backup servers corresponding to the corresponding network acceleration rule information can be 2. At the same time, for non-Chinese game usage scenarios (such as game scenarios of American game servers or game scenarios of Japanese game servers), the number of network acceleration channels can be 4, and the number of accelerated domain name resolution backup servers corresponding to the corresponding network acceleration rule information can be 6. It should be noted that the number of network acceleration channels and the number of accelerated domain name resolution backup servers can be flexibly adjusted according to the needs of game operators to adapt to the actual needs of game players in different countries.

[0130] Step 303: The application acceleration device configures a virtual network card for the target application, and obtains target traffic information matching the target application through the virtual network card.

[0131] Due to the different types of applications, the target traffic information obtained through traffic pulling is also different. For example, when the application is a game program, the type of target traffic information can be HTTP traffic information, TCP traffic information or UDP traffic information; when the application is a live video program, the type of target traffic information can be HTTP traffic information; when the application is a software download program, the type of target traffic information can be TCP traffic information or UDP traffic information. At the same time, different types of traffic information have different functions. For example, UDP traffic with a target port of 53 and a standard DNS request protocol as the message content can represent domain name resolution request traffic.

[0132] refer to Figure 5 , taking the personal game console switch as an example, Figure 5 The following is a schematic diagram of the traffic that needs to be accelerated in an embodiment of the present invention, wherein HTTP / HTTPS traffic is intercepted by a fixed-port HTTP proxy (opened on the local port 6666), and TCP and UDP traffic information needs to include the destination IP and destination port of the traffic. Specifically, when the type of the accelerated traffic information is Hypertext Transfer Protocol traffic or encrypted Hypertext Transfer Protocol traffic, the Internet Protocol address of the virtual network card is bound to a local fixed address of the game terminal; and the network handle is bound to the same fixed address of the game terminal. Figure 5 As shown in the figure, when the local port 6666 is intercepted, the TCP IP and destination port are:

[0133] 1.2.3.4:1111; 1.2.3.5:1111; 1.2.3.6:1111, 1.2.3.7:2222 and 1.2.3.7:3333. The UDP IP and destination port are 4.3.2.1:1111, 4.3.2.2:1111 and 4.3.2.2:2222.

[0134] refer to Figure 6 , taking the personal game console switch as an example, Figure 6 Schematic diagram of binding a virtual network card to an IP address in an embodiment of the present invention, Figure 5 The IP3 information and port information shown, the virtual network card bound IP, the traffic information that needs to be accelerated, the establishment of a virtual network card, the bound network card IP can be: 1.2.3.4; 1.2.3.5; 1.2.3.6; 1.2.3.7; 4.3.2.1; 4.3.2.2.

[0135] Step 304: The application acceleration device parses the target flow information to obtain the type of the target flow information.

[0136] Specifically, in one embodiment of the present application, when the application is a game process, the type of accelerated traffic information can be Transmission Control Protocol traffic (TCP traffic), User Datagram Protocol traffic (UDP traffic), Hypertext Transfer Protocol traffic and encrypted Hypertext Transfer Protocol traffic, wherein the window unit of Transmission Control Protocol traffic TCP is bytes, not segments, and the sending window of the data transmission end cannot exceed the value of the receiving window given by the receiving end. The mechanism of traffic control is to control the packet loss rate, and its main purpose is to let the data transmission end understand the current receiving capacity of the data receiving end and flexibly adjust the transmission rate.

[0137] UDP traffic is a connectionless, unreliable datagram transport protocol. UDP traffic only transmits datagrams to be sent to the network and receives datagrams from the network without establishing a connection with the remote UDP module. UDP provides services for user network applications, such as Network File System (NFS) and Simple Network Management Protocol (SNMP). UDP retains the message boundaries defined by the application. It will neither connect the messages of two applications together nor divide the messages of one application into multiple parts.

[0138] When accelerating the game process of a personal game console through the application acceleration method provided by the present application, the UDP header field consists of 4 parts, two of which are optional. Each 16-bit source port and destination port is used to mark the sending and receiving application processes. Because UDP does not require a response, the source port is optional. If the source port is not used, it is set to zero. Following the destination port is a fixed length field in bytes, which is used to specify the length of the UDP datagram including the data part, and the minimum length is 8 (octets).

[0139] Step 305: The application acceleration device sends the domain name resolution request in the target traffic information to the corresponding domain name resolution server according to the type of the target traffic information and the network acceleration rule information to obtain the domain name resolution result.

[0140] In some embodiments of the present invention, when the type of the target traffic information is domain name resolution request traffic, the domain name information to be resolved is extracted from the target traffic information; the domain name information to be resolved is matched by a regular expression to obtain a domain name resolution acceleration strategy corresponding to the domain name information to be resolved; according to the domain name resolution acceleration strategy, the domain name resolution request in the target traffic information is forwarded and sent to a corresponding domain name resolution server; the processing results of different domain name resolution servers are obtained to obtain a domain name resolution result corresponding to the domain name resolution request.

[0141] At the same time, when the type of the target traffic information is non-domain name resolution request traffic, the legitimacy of the target traffic information can be detected to obtain the legitimacy detection result of the target traffic information; at least one of the following is performed according to the legitimacy detection result of the target traffic information: forwarding the target traffic information to the server corresponding to the target application, or issuing an illegal traffic prompt message. Of course, illegal traffic exceeding the threshold can also be discarded to reduce the processing pressure of the game server.

[0142] Thus, the target traffic information can be processed through the domain name resolution result to complete the acceleration of the target application. Through the processing of steps 301 to 305, the application acceleration method provided by the present application can be used to optimize the data acceleration effect of the application, and the application can be accelerated through accurate domain name resolution results. At the same time, for different applications (such as foreign game applications or Taiwan live video applications), the data processing efficiency of the application can be effectively improved, so that users can flexibly adjust the application to be accelerated through the application acceleration method provided by the present application. At the same time, the application acceleration method disclosed in the present application obtains various types of domain name resolution results, which can be saved on the blockchain, and the domain name resolution results can be shared between different nodes in the blockchain network.

[0143] The following describes the processing procedures for different types of traffic information.

[0144] See also Figure 7 , Figure 7 An optional flow chart of the application acceleration method provided in an embodiment of the present invention specifically includes the following steps:

[0145] Step 701: When the type of the target traffic information is domain name resolution request traffic, the application acceleration device extracts domain name information to be resolved from the target traffic information.

[0146] Step 702: The application acceleration device matches the domain name information to be resolved through a regular expression to obtain a domain name resolution acceleration strategy corresponding to the domain name information to be resolved.

[0147] Among them, regular expression is a method of expressing text patterns (i.e. string structures), which is a bit like a string template and is often used as a tool to match text according to a "given pattern". Regular expressions use a single string to describe and match a series of strings that conform to a certain syntactic rule. In many text editors, regular expressions are often used to retrieve and replace text that conforms to a certain pattern. For reference, Figure 8 , Figure 8 The figure is a schematic diagram of a regular expression in an embodiment of the present invention, wherein the domain name rule is composed of a regular expression and three strategies (accelerating multi-domain name service resolution, accelerating single domain name service resolution, and directly connecting single domain name service resolution); the regular expression of the domain name rule is used to match the domain name information in the domain name resolution request flow. If the regular expression in the domain name rule matches the domain name in the domain name resolution request, the strategy corresponding to the rule is applied to the resolution process of this domain name. For example, a domain name resolution request flow with the domain name www.qq.com is matched using domain name rule 1 and domain name rule 2. Since the regular expression of domain name rule 2 can match the domain name www.qq.com, the strategy associated with domain name rule 2 is used to accelerate the resolution of the single domain name resolution service for processing, and the corresponding domain name resolution result is obtained.

[0148] Step 703: The application acceleration device forwards the domain name resolution request in the target traffic information according to the domain name resolution acceleration strategy, and sends the domain name resolution request to the corresponding domain name resolution server.

[0149] In some embodiments of the present invention, reference Fig. 9 , Fig. 9 An optional flow chart of the application acceleration method provided in an embodiment of the present invention specifically includes the following steps:

[0150] Step 901: When the domain name resolution acceleration strategy is a multi-service domain name resolution acceleration strategy, the domain name resolution request is subjected to fission processing, and the target IP address of the domain name resolution request is modified to the IP address of the accelerated domain name resolution main server and the IP address of at least one accelerated domain name resolution backup server.

[0151] Step 902: The domain name resolution request is processed by a network acceleration channel matching the target application through the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server.

[0152] Among them, Fig. 9 As shown, in Fig. 9 In the implementation environment shown, the number of accelerated domain name resolution backup servers is 2, and both can process domain name resolution requests. Traffic forwarding can be achieved through a variety of intermediate protocols, such as forwarding traffic through the SockS5 protocol and forwarding traffic through the VPN protocol. An accelerated channel is determined by an access point and an exit point. The access point receives traffic sent by the client, and the exit point is bound to a public network IP to interact with the target server. When the client forwards traffic to the accelerated channel access point, the traffic will be sent from the exit point to the target server through the accelerated channel. In this scenario, the target server is the target domain name resolution server.

[0153] Step 903: Integrate different domain name resolution results of the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server to obtain a domain name resolution result.

[0154] Among them, when the target application is a game program, the domain name resolution process of the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server is obtained; when the domain name resolution result is obtained for the first time, it is determined that the obtained domain name resolution result is a domain name resolution result that matches the game program. As a result, users will obtain accurate domain name resolution results more quickly, reduce waiting time, and further improve the user experience.

[0155] Step 904: Send the domain name resolution result to the original IP address of the domain name resolution request in the target traffic information, and notify the target application through the original IP address of the domain name resolution request.

[0156] In some embodiments of the present invention, when the domain name resolution acceleration strategy is a single-service domain name resolution acceleration strategy, the target IP address of the domain name resolution request is modified to the IP address of the target domain name resolution server; the domain name resolution request is processed by the target domain name resolution server using a network acceleration channel that matches the target application to obtain a domain name resolution result; the domain name resolution result is sent to the original IP address of the domain name resolution request in the target traffic information, and the target application is notified through the original IP address of the domain name resolution request.

[0157] In some embodiments of the present invention, when the domain name resolution acceleration strategy is a direct domain name resolution acceleration strategy, the target IP address of the domain name resolution request is modified to the IP address of the target domain name resolution server; the domain name resolution request is processed by the target domain name resolution server to obtain a domain name resolution result; the domain name resolution result is sent to the original IP address of the domain name resolution request in the target traffic information, and the target application is notified through the original IP address of the domain name resolution request. Since there is no need to forward using a network acceleration channel that matches the target application, the direct domain name resolution acceleration strategy processes domain name resolution faster, which also reduces the user's waiting time.

[0158] After the corresponding domain name of Butterfly is resolved through the above embodiment, step 704 is continued.

[0159] Step 704: The application acceleration device obtains processing results of different domain name resolution servers to obtain a domain name resolution result corresponding to the domain name resolution request.

[0160] It should be noted that when the cloud game is accelerated by the application acceleration method provided in the present application, since the cloud game is operated by the cloud server during operation, and the video stream obtained after the operation is transmitted to the terminal for playback, that is, the terminal is responsible for video playback during the operation of the cloud game. The operation of the cloud game does not have very high requirements on the computing power of the terminal, and it is not easy to cause lag during the playback of the game video. The cloud server has a large amount of calculation during the game operation, which is prone to lag. Therefore, the video stream generated by the cloud server itself is a video stream with lag, and there is no lag caused by the terminal in the process of the terminal playing the video stream. Therefore, the transmission of video stream information of the cloud server in the cloud game can also be accelerated by the application acceleration method provided in the present application.

[0161] Next, taking a virtual scene as an example of a game, the application acceleration method provided by the embodiment of the present invention is further described. Among them, with the development of online games, in some games running on mobile terminals, the target users of the game have higher and higher requirements for the game scenes. During the game process, due to the limitation of the display range of the mobile terminal, the game character held by the user changes in the real-time scene. Due to different terminal types and different game types, different game acceleration services are required. Game acceleration in traditional technology cannot obtain accurate domain name resolution results, which will sacrifice the acceleration effect of the game and affect the user's experience.

[0162] In some embodiments of the present invention, when the target game is a cloud game, the identification information of the target user is determined; based on the cloud server network, a data source cluster matching the identification information is determined; based on the data source cluster, the cloud game history information of the user matching the target user is stored in the cloud game server. The user's cloud game history information can also be called by other applications (such as game simulators or somatosensory game devices). Of course, the game data processing model matching different types of games can also be migrated to online FPS games or offline FPS games and cloud games in the instant messaging process.

[0163] In order to better illustrate the application acceleration method provided by the present application, and introduce the processing process of domain name resolution in the application acceleration method, the following takes the iOS system as an example to illustrate the domain name resolution and acceleration process of the game program when accelerating the game program in the iOS system, with reference to Fig.10 , Fig.10 An optional flowchart of the application acceleration method provided by an embodiment of the present invention is provided. Fig.10 The steps shown can be performed by various game terminals or game accelerator processes that deploy application acceleration devices, and specifically include the following steps:

[0164] Step 1001: Obtain the network acceleration rule information, network acceleration channel and domain name resolution server list of the game process.

[0165] Among them, when the user needs to accelerate the game, by triggering the accelerator matched by the game process, the accelerator obtains the acceleration rules from the game server through the protocol, and determines what strategy to use to handle different domain name resolution request traffic; the acceleration rules are composed of domain name rules. Based on the acceleration rules, it can be decided that the traffic is processed using three strategies: multi-service domain name resolution acceleration, single-service domain name resolution acceleration, and direct domain name resolution. Among them, the domain name server (DNS Domain NameServer) is a server that converts domain names and corresponding IP addresses. A table of domain names and corresponding IP addresses is stored in the DNS, which can resolve the domain names of Internet messages. This method is: different groups are responsible for the names of each subsystem. Each layer in the system is called a domain, and each domain is separated by a dot. The domain name server (Name Server) is actually a host with a domain name system installed. It is a hierarchical database that can realize name resolution.

[0166] After obtaining the acceleration rule information, the accelerator continues to pull the access point of the acceleration channel from the background through the protocol. An access node represents the entrance of an acceleration line. The traffic information forwarded to this access point will be sent out from the exit of this channel through the acceleration channel. The exit traffic will be forwarded to the game server to interact with the game program.

[0167] Furthermore, after pulling the acceleration channel access point, the accelerator pulls the domain name resolution server list from the background through the protocol. This list includes a direct domain name resolution server, an accelerated domain name resolution main server, and multiple accelerated domain name resolution backup servers. The direct domain name resolution server is used for the subsequent direct domain name resolution process, the accelerated domain name resolution main server is used for the subsequent acceleration process of single-service domain name resolution, and the accelerated domain name resolution backup server is used for the subsequent acceleration process of multiple services simultaneously resolving.

[0168] Step 1002: configure a virtual network card, and obtain target traffic information matching the target application through the virtual network card.

[0169] Among them, in the game process, the types of traffic information that need to be accelerated can be transmission control protocol traffic (TCP traffic), user datagram protocol traffic (UDP traffic), hypertext transfer protocol traffic and encrypted hypertext transfer protocol traffic. When classified by the role of traffic information, it can be divided into domain name resolution request traffic and IP protocol traffic. By establishing a virtual network card on the client, the virtual network card can be used to intercept game traffic. After the virtual network card intercepts the game traffic, the accelerator performs directional operations on the traffic according to the traffic type and acceleration rules to accurately analyze the acceleration method.

[0170] In iOS, refer to Fig.11 , Fig.11 The following is a schematic diagram of traffic interception for the iOS system in an embodiment of the present invention, in which the use of VPN to obtain traffic information locally is taken as an example; the iOS system provides a VPN configuration of the NEFilter Control Provider type, which can obtain the following key traffic information of the App on the device: 1) Traffic source (App name) 2) Target domain name. The traffic information captured by the above-mentioned type of VPN will contain information about which App the traffic comes from. Therefore, for the traffic information, filtering based on the App name can capture the traffic of the corresponding App; for the domain name, the corresponding regular expression rule can be constructed. Fig.11As shown, after the VPN is turned on locally, traffic 1 can be analyzed through VPN to come from target game 1, and the target domain name requested is www.qq.com; traffic 2 can be analyzed through VPN to come from target game 2, and the target domain name requested is smoba.qq.com; traffic 3 can be analyzed through VPN to come from target game 3, and the target domain name requested is z.douyin.com.

[0171] Step 1003: Determine whether it is domain name resolution request traffic, if so, execute step 1004, otherwise execute step.

[0172] Since there are many types of game processes, they can be different virtual scenes such as virtual reality applications, three-dimensional map programs, first-person shooting games (FPS First-person shooting games), multiplayer online tactical competitive games (MOBA Multiplayer Online Battle Arena Games), etc., among which, taking shooting games as an example, users can control virtual objects to perform actions at different positions in the virtual scene route, or perform actions at different time points when moving along the virtual scene route, such as free falling, gliding or opening a parachute to fall in the sky at different positions in the virtual scene route, running, jumping, crawling, bending forward, etc. can also be achieved at different positions in the virtual scene route on land, and virtual objects can also be controlled to swim, float or dive in the ocean at different positions in the virtual scene route. When performing the above operations by controlling virtual objects, no matter which type of game process the user uses, accurate domain name resolution must be achieved to accelerate the game process according to the result of the domain name resolution. However, due to the portability of mobile devices, the user's geographical location is usually changing, and the network environment in which it is located is also changing. In different network environments, the passability and accuracy of domain name resolution are different (for example, the operator's network cannot correctly resolve a domain name due to the domain name resolution cache, and the resolution of a foreign domain name in China may be inaccurate), and the quality of domain name resolution is closely related to the game. Failed or incorrect domain name resolution usually leads to inability to enter the game, freezing, and disconnection. Therefore, timely interception of domain name resolution request traffic can accelerate all traffic information in the game process, improve the overall running speed of the game process, reduce user waiting time, and improve user experience.

[0173] Step 1004: extract domain name information and perform regular expression matching processing.

[0174] If the traffic is a domain name resolution request traffic, the accelerator first extracts the domain name to be resolved from the traffic, and then uses a regular expression rule based on the domain name to match the extracted domain name. For example: UDP traffic with a target port of 53 and a standard DNS request protocol is domain name resolution request traffic.

[0175] Of course, it should be noted that DNS uses TCP in two situations, including:

[0176] 1) When the parsing device sends a request, if the tc truncation flag bit in the returned response is set to 1, it means that the feedback message is truncated because it is too long. This is because the maximum length of a UDP message is 512 bytes. After the parsing device discovers this, it will use TCP to resend the request, and TCP allows the message length to exceed 512 bytes. Since TCP can divide the data stream into multiple segments, it can use more segments to transmit data of any length. The maximum length of a UDP message is 512 bytes, while TCP allows the message length to exceed 512 bytes. When the DNS query exceeds 512 bytes, a deletion flag appears in the TC flag of the protocol, and TCP is used to send it. Traditional UDP messages are usually no larger than 512 bytes.

[0177] 2) Another situation is that DNS uses TCP protocol when performing zone transfer and UDP protocol at other times.

[0178] The DNS specification specifies two types of DNS servers, one is called the primary DNS server and the other is called the secondary DNS server. In a zone, the primary DNS server reads the DNS data information of the zone from its own local data file, while the secondary DNS server reads the DNS data information of the zone from the primary DNS server of the zone. When a secondary DNS server starts, it needs to communicate with the primary DNS server and load the data information, which is called zone transfer.

[0179] The secondary domain name server will periodically query the primary domain name server to find out if the data has changed. If there is a change, a zone transfer will be performed to synchronize the data. Zone transfer will use TCP instead of UDP, firstly because the amount of data transferred by data synchronization is much larger than the amount of data in a request and response; secondly, TCP is a reliable connection that ensures the accuracy of the data.

[0180] For the server domain name resolution of the game program in the embodiment of the present application, DNS uses UDP in most cases. The client queries the DNS server for the domain name, and the returned content generally does not exceed 512 bytes, which can be transmitted using UDP. Without going through the TCP three-way handshake, the DNS server load is lower and the response is faster, so that game users can get a better user experience.

[0181] Step 1005: Determine whether it is IP protocol traffic, if so, execute step 1006, otherwise execute step 1007.

[0182] Step 1006: Accelerate the acquired IP protocol traffic and forward it to the corresponding game service program.

[0183] In the embodiment of the present application, when the traffic information is classified according to its role in the game process, it can be divided into domain name resolution request traffic and IP protocol traffic. The domain name resolution request traffic is used for domain name resolution processing, and the IP protocol traffic is used for information transmission in the game process, wherein the IP protocol traffic complies with the format requirements of the IP protocol, including an IP protocol header, wherein the IP protocol header includes: version number: the version of the IP protocol, for example, for the IPv4 type, the value of the version number is 4; header length: 4 bits with a maximum of 0xF, note that the field represents the unit in words (4 bytes); service type (Type Of Service, TOS): 3-bit priority field (now ignored) + 4-bit TOS field + 1-bit reserved field (must be 0). The 4-bit TOS field represents the minimum delay, maximum throughput, highest reliability, and minimum cost, respectively, and at most one of them can be set to 1. The game process can set the TOS value according to actual needs. For example, login programs such as ssh and telnet require services with minimum delay, and file transfer ftp requires services with maximum throughput; Total length: refers to the length of the entire IP datagram in bytes, that is, the maximum length of an IP datagram is 65535 bytes (2 to the 16th power). Due to the limitation of MTU, datagrams longer than MTU will be transmitted in fragments, so the length of the actual transmitted IP fragment datagram is far from the maximum value.

[0184] It can also include: an identifier, which is used to uniquely identify each datagram sent by the host. Its initial value is random, and its value increases by 1 each time a datagram is sent. All fragments of the same datagram have the same identifier value. A flag, which is used to indicate that bit 1 is reserved, and bit 2 indicates that fragmentation is prohibited (DF). If this bit is set, the IP module will not fragment the datagram. In this case, if the IP datagram exceeds the MTU, the IP module will discard the datagram and return an ICMP error message; bit 3 identifies more fragments (MF). Except for the last fragment of the datagram, other fragments must set it to 1. A bit offset, which is used to indicate the offset of the fragment relative to the data part of the original IP datagram. The actual offset value is obtained by shifting the value left by 3 bits, so except for the last IP datagram fragment, the length of the data part of each IP fragment must be an integer multiple of 8.

[0185] . Time to live, used to indicate the number of router hops a datagram is allowed to pass through before reaching its destination. The TTL value is set by the sender and is usually set to 64. The value is reduced by 1 by the router every time the datagram passes through a router during the forwarding process. When the TTL value is 0, the router discards the data packet and sends an ICMP error message to the source. TTL can prevent datagrams from falling into routing loops; the header checksum is filled by the sender and checked by the receiver using the CRC algorithm to check whether the IP datagram header is damaged during transmission; the source IP address and the destination IP address: indicate the sender and receiver of the datagram. Generally, these two addresses remain unchanged during the entire datagram transmission process, no matter how many routers it passes through.

[0186] Step 1007 discards the acquired non-IP protocol traffic.

[0187] Step 1008: Determine whether it matches the multi-service domain name resolution acceleration strategy. If so, execute step 1009; otherwise, execute step 1012.

[0188] Among them, the network acceleration rule information summarized and provided in the embodiments of the present application includes: multi-service domain name resolution acceleration, single-service domain name resolution acceleration and direct connection domain name resolution acceleration.

[0189] Step 1009: Perform fission processing on the domain name resolution request to obtain multiple domain name resolution requests.

[0190] During the fission process, in addition to modifying the target IP, it is also necessary to record the target IP of the original request for later replying to the game process through the virtual network card, so as to avoid affecting the timeliness of the domain name resolution result reply of the game process during the fission process of the domain name resolution request due to the use of a multi-service domain name resolution acceleration strategy.

[0191] Step 1010: Process the multiple domain name resolution requests obtained in step 1009 through multiple acceleration channels.

[0192] Step 1011: multiple domain name resolution servers matching the game program resolve the domain name simultaneously, and integrate the resolution results to obtain the domain name resolution result.

[0193] Among them, since the game process only expects to receive one domain name resolution result when sending a domain name resolution request, it is necessary to integrate the domain name resolution results received after receiving the domain name resolution results replied by different domain name resolution servers. After the client receives the first domain name resolution result of the domain name resolution request, it notifies the game process of the domain name resolution result. After receiving the domain name resolution results sent by other domain name resolution servers, it will no longer notify the game process to avoid the game process receiving duplicate domain name resolution results, which will affect the normal execution of the game process.

[0194] Step 1012: Determine whether it matches the single-server domain name resolution acceleration policy. If yes, execute step 1013; otherwise, execute step 1015.

[0195] Step 1013: Process a domain name resolution request obtained in step 1012 through an acceleration channel.

[0196] Step 1014: The target domain name resolution server performs domain name resolution processing to obtain a domain name resolution result.

[0197] Among them, if it matches the single-service domain name resolution acceleration strategy, the original domain name resolution request is modified to a domain name resolution request pointing to the accelerated domain name resolution server, and then the domain name resolution request is forwarded through the acceleration channel, and the domain name resolution request can be requested to the target server.

[0198] Step 1015: Determine that the domain name resolution acceleration strategy is a direct domain name resolution acceleration strategy.

[0199] Step 1016: Perform domain name resolution processing by directly connecting to the target domain name resolution server corresponding to the domain name resolution acceleration strategy to obtain a domain name resolution result.

[0200] After completing the domain name resolution required in the game process by using the three methods of multi-service domain name resolution acceleration, single-service domain name resolution acceleration and direct domain name resolution through steps 1008 to 1016, the correctness of the domain name resolution can also be tested. Taking Table 1 as an example, after obtaining the domain name resolution results shown in Table 1 through the three methods of multi-service domain name resolution acceleration, single-service domain name resolution acceleration and direct domain name resolution, the domain names in Table 1 can be tested to obtain ineffective domain names. During the test, the reasons why the resolved domain name is ineffective may include: 1) local network failure; 2) abnormal resolution record of the cloud resolution server; 3) domain name resolution record is modified or cached in DNS; 4) domain name fails real-name authentication. Among them, when performing domain name resolution record detection, first check whether the domain name has been modified by the DNS server or whether the modification of the DNS server takes 24 to 48 hours to take effect. If the resolution record cache service is installed, execute the cache record restart service to refresh the cache. Finally, run the dig example.com@8.8.8.8 or dig example.com@114.114.114.114 command to check whether the public DNS resolution is effective, and change the local DNS to the public DNS to ensure that the domain name resolution result is effective.

[0201]

[0202] Table 1

[0203] Beneficial technical effects:

[0204] The present invention obtains network acceleration rule information matching the target application in response to an application acceleration instruction; based on the network acceleration rule information, obtains a network acceleration channel matching the target application, and obtains a domain name resolution server list; configures a virtual network card for the target application, and obtains target traffic information matching the target application through the virtual network card; parses and processes the target traffic information to obtain the type of the target traffic information; according to the type of the target traffic information and the network acceleration rule information, sends the domain name resolution request in the target traffic information to the corresponding domain name resolution server to obtain the domain name resolution result, so as to realize the processing of the target traffic information through the domain name resolution result and complete the acceleration of the target application. In this way, the domain name resolution quality of the application can be effectively improved, and the acceleration of the target application can be completed through the correct domain name resolution result, thereby improving the user experience. At the same time, this scheme can adapt to different types of applications, so that users can flexibly adjust the application to be accelerated through the application acceleration method provided by this application, reduce the number of installations of different application acceleration devices, and reduce the hardware processing pressure of the running terminal.

[0205] The above descriptions are merely embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for accelerating an application program, characterized in that: The method comprises: In response to the application acceleration instruction, determining a type of a target application; Determining an acceleration method for the target application according to the type of the target application; Combining and processing the acceleration methods of the target application to obtain network acceleration rule information matching the target application, wherein the network acceleration rule information includes at least one of the following: multi-service domain name resolution acceleration, single-service domain name resolution acceleration, and direct domain name resolution acceleration; Determining the number of network acceleration channels for the target application according to the type of the target application; Based on the number of network acceleration channels and the network acceleration rule information, determine the number of accelerated domain name resolution standby servers corresponding to the network acceleration rule information; Adjusting the number of different types of servers in the domain name resolution server list based on the number of the accelerated domain name resolution standby servers; Configuring a virtual network card for the target application, and obtaining target traffic information matching the target application through the virtual network card; Parsing the target flow information to obtain the type of the target flow information; According to the type of the target traffic information and the network acceleration rule information, the domain name resolution request in the target traffic information is sent to the corresponding domain name resolution server in the domain name resolution server list to obtain the domain name resolution result, so as to process the target traffic information through the domain name resolution result and complete the acceleration of the target application.

2. The method according to claim 1, characterized in that The step of sending a domain name resolution request in the target traffic information to a corresponding domain name resolution server according to the type of the target traffic information and the network acceleration rule information to obtain a domain name resolution result, so as to process the target traffic information through the domain name resolution result and complete the acceleration of the target application program includes: When the type of the target traffic information is domain name resolution request traffic, extracting the domain name information to be resolved from the target traffic information; The domain name information to be resolved is matched by a regular expression to obtain a domain name resolution acceleration strategy corresponding to the domain name information to be resolved; According to the domain name resolution acceleration strategy, forwarding processing is performed on the domain name resolution request in the target traffic information, and sending the domain name resolution request to the corresponding domain name resolution server; Obtain processing results of different domain name resolution servers to obtain a domain name resolution result corresponding to the domain name resolution request.

3. The method according to claim 2, characterized in that The forwarding process of the domain name resolution request in the target traffic information according to the domain name resolution acceleration strategy and sending the domain name resolution request to a corresponding domain name resolution server includes: When the domain name resolution acceleration strategy is a multi-service domain name resolution acceleration strategy, the domain name resolution request is subjected to fission processing, and the target IP address of the domain name resolution request is modified to the IP address of the accelerated domain name resolution primary server and the IP address of at least one accelerated domain name resolution backup server; The domain name resolution request is processed by a network acceleration channel matching the target application through the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server; Integrate different domain name resolution results of the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server to obtain a domain name resolution result; The domain name resolution result is sent to the original IP address of the domain name resolution request in the target traffic information, and the target application is notified through the original IP address of the domain name resolution request.

4. The method according to claim 3, characterized in that The method further comprises: When the target application is a game program, obtaining the domain name resolution process of the accelerated domain name resolution main server and at least one accelerated domain name resolution backup server; When the domain name resolution result is obtained for the first time, it is determined that the obtained domain name resolution result is a domain name resolution result that matches the game program.

5. The method according to claim 2, characterized in that: The forwarding process of the domain name resolution request in the target traffic information according to the domain name resolution acceleration strategy and sending the domain name resolution request to a corresponding domain name resolution server includes: When the domain name resolution acceleration strategy is a single-service domain name resolution acceleration strategy, modifying the target IP address of the domain name resolution request to the IP address of the target domain name resolution server; The target domain name resolution server processes the domain name resolution request by using a network acceleration channel that matches the target application program to obtain a domain name resolution result; The domain name resolution result is sent to the original IP address of the domain name resolution request in the target traffic information, and the target application is notified through the original IP address of the domain name resolution request.

6. The method according to claim 2, characterized in that The forwarding process of the domain name resolution request in the target traffic information according to the domain name resolution acceleration strategy and sending the domain name resolution request to a corresponding domain name resolution server includes: When the domain name resolution acceleration strategy is a direct domain name resolution acceleration strategy, the target IP address of the domain name resolution request is modified to the IP address of the target domain name resolution server; Processing the domain name resolution request through the target domain name resolution server to obtain a domain name resolution result; The domain name resolution result is sent to the original IP address of the domain name resolution request in the target traffic information, and the target application is notified through the original IP address of the domain name resolution request.

7. The method according to claim 1, characterized in that The step of sending a domain name resolution request in the target traffic information to a corresponding domain name resolution server according to the type of the target traffic information and the network acceleration rule information to obtain a domain name resolution result, so as to process the target traffic information through the domain name resolution result and complete the acceleration of the target application program includes: When the type of the target traffic information is non-domain name resolution request traffic, Detecting the legitimacy of the target flow information to obtain a legitimacy detection result of the target flow information; Perform at least one of the following based on the legitimacy detection result of the target traffic information: forwarding the target traffic information to a server corresponding to the target application, or Issue illegal traffic warning information.

8. The method according to claim 1, characterized in that The method further comprises: When the type of the target traffic information is Hypertext Transfer Protocol traffic or encrypted Hypertext Transfer Protocol traffic, By parsing the corresponding hypertext transfer protocol, the target domain name and port information are obtained; Obtain a target Internet Protocol address corresponding to the target domain name by sending query information to a domain name system; send the target Internet Protocol address, port information and target traffic information corresponding to the target domain name to a corresponding proxy server; The proxy server accelerates processing of the target traffic information.

9. The method according to claim 1, characterized in that: The method further comprises: When the target application is a cloud game, determining identification information of a target user; Determining, based on a cloud server network, a data source cluster matching the identification information; According to the data source cluster, cloud game history information of a user matching the target user is stored in a cloud game server.

10. An application acceleration device, characterized in that: The device comprises: An information transmission module is used to determine the type of a target application in response to an application acceleration instruction; determine the acceleration method of the target application according to the type of the target application; and perform combined processing on the acceleration methods of the target application to obtain network acceleration rule information matching the target application, wherein the network acceleration rule information includes at least one of the following: multi-service domain name resolution acceleration, single-service domain name resolution acceleration, and direct domain name resolution acceleration; An information processing module is used to determine the number of network acceleration channels of the target application according to the type of the target application; based on the number of network acceleration channels and the network acceleration rule information, determine the number of accelerated domain name resolution standby servers corresponding to the network acceleration rule information; based on the number of accelerated domain name resolution standby servers, adjust the number of different types of servers in the domain name resolution server list; The information processing module is used to configure a virtual network card for the target application and obtain target flow information matching the target application through the virtual network card; The information processing module is used to parse the target flow information to obtain the type of the target flow information; The information processing module is used to send the domain name resolution request in the target traffic information to the corresponding domain name resolution server in the domain name resolution server list according to the type of the target traffic information and the network acceleration rule information, and obtain the domain name resolution result, so as to process the target traffic information through the domain name resolution result and complete the acceleration of the target application.

11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the application acceleration method described in any one of claims 1 to 9 is implemented.

12. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; A processor is used to implement the application acceleration method described in any one of claims 1 to 9 when running the executable instructions stored in the memory.

13. A computer-readable storage medium storing executable instructions, characterized in that: When the executable instructions are executed by a processor, the application acceleration method described in any one of claims 1 to 9 is implemented.