Method and apparatus for collecting IP address of service server of application

By parsing application traffic data packets on the SDK side of the terminal device and establishing a mapping relationship between packet names and IP addresses, the problem of limited application scope in existing technologies is solved, and IP address collection is realized in various acceleration systems.

CN116886661BActive Publication Date: 2026-05-19CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2023-07-21
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing methods can only collect the IP addresses of business servers in acceleration systems built with SOCKS proxy technology, and cannot be applied to acceleration systems built with VPN technology, thus limiting their application scope.

Method used

The application's traffic data packets are parsed on the SDK side of the terminal device to obtain the target IP address, and a mapping relationship set between packet name and IP address is established and sent to the IP address collection platform for storage.

Benefits of technology

It enables the collection of business server IP addresses in acceleration systems built with SOCKS proxy and VPN technologies, making it more widely applicable and supporting compatibility with multiple acceleration technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116886661B_ABST
    Figure CN116886661B_ABST
Patent Text Reader

Abstract

The application provides an application service server IP address collection method and device, and relates to the technical field of communication. The method comprises the following steps: acquiring traffic data packets of a target application, wherein the traffic data packets comprise at least one target IP address, the target application is an application corresponding to any package name in a preset application package name library, and the target IP address is an IP address of a service server to be accessed by the target application; analyzing the traffic data packets by a software development kit to acquire the target IP address; establishing a mapping relationship set between the package name of the target application and the target IP address; and sending the mapping relationship set to an IP address collection platform, so that the IP address collection platform saves the mapping relationship set to an IP address library. In this way, the application range of the SDK for collecting the service server IP address of the application is wider, and subsequent acceleration can be performed by using socks proxy technology or VPN technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, specifically relating to a method and apparatus for collecting the IP address of a business server in an application. Background Technology

[0002] With the rapid development of internet services, users often use application accelerators (such as mobile game accelerators) to speed up applications (apps) such as live video streaming, game acceleration, or flash sales. Acceleration requires establishing a dedicated acceleration channel based on the IP address of the business server accessed by the application; therefore, it is necessary to collect the IP address of the application's business server.

[0003] In some implementations, SOCKS proxy technology is used to build accelerated services. Specifically, when accelerating applications such as live video streaming and games using a software development kit (SDK) and gateway devices, the application's traffic data packets are imported into the gateway device. The gateway device then parses the application's traffic data packets to obtain the IP address of the business server that the application needs to access.

[0004] However, this method of obtaining the application's business server IP address has a limited scope of application and can only be used in acceleration systems built with SOCKS proxy technology. Summary of the Invention

[0005] This application relates to a method and apparatus for collecting the IP address of a business server in an application, which can be applied to various acceleration systems and has a wider range of applications.

[0006] In a first aspect, this application provides a method for collecting the IP address of a business server used in a terminal device, the method comprising:

[0007] Obtain the traffic data packet of the target application. The traffic data packet includes at least one target IP address. The target application is any application corresponding to any package name in the preset application package name library. The target IP address is the IP address of the business server that the target application wants to access.

[0008] The target IP address is obtained by parsing traffic data packets using a software development kit;

[0009] Establish a mapping set between the packet name of the target application and the target IP address;

[0010] The mapping set is sent to the IP address collection platform so that the IP address collection platform can save the mapping set to the IP address database.

[0011] In one possible implementation, when parsing traffic packets to obtain the target IP address, the method further includes:

[0012] The traffic data packet and the target IP address are sent to the gateway device, so that the gateway device sends the traffic data packet to the business server corresponding to the target IP address.

[0013] In one possible implementation, acquiring the traffic data packets of the target application includes:

[0014] In response to the user's input to start data collection, the system retrieves the traffic data packets of the target application based on the target application's package name.

[0015] Secondly, this application provides another method for collecting the IP addresses of business servers, applied to an IP address collection platform, the method comprising:

[0016] Receive the set of mapping relationships between the package name of the target application and the target IP address; the target application is any application corresponding to any package name in the preset application package name library, and the target IP address is the IP address of the business server that the target application wants to access;

[0017] Save the mapping set to the IP address database.

[0018] In one possible implementation, the method further includes: if the target IP address in the mapping relationship set already exists in the IP address database, then the update time of the target IP address in the IP address database is updated to the storage time, where the storage time is the time when the mapping relationship set is stored in the IP address database.

[0019] In one possible implementation, the method further includes: if the update time of any target IP address in the IP address database does not change within a preset time, then delete the target IP address.

[0020] Thirdly, this application provides a device for collecting the IP addresses of a business server in an application, comprising an acquisition module, a parsing module, an establishment module, and a sending module, wherein...

[0021] The acquisition module is used to acquire traffic data packets of the target application. The traffic data packets include at least one target IP address. The target application is any application corresponding to any package name in the preset application package name library. The target IP address is the IP address of the business server that the target application wants to access.

[0022] The parsing module is used to parse traffic data packets using a software development kit to obtain the target IP address;

[0023] Establish a module to create a set of mapping relationships between the package name of the target application and the target IP address;

[0024] The sending module is used to send the mapping relationship set to the IP address collection platform, so that the IP address collection platform can save the mapping relationship set to the IP address database.

[0025] In one possible implementation, the device further includes:

[0026] The transmission module is used to send traffic data packets and target IP addresses to the gateway device, so that the gateway device can send the traffic data packets to the service server corresponding to the target IP address.

[0027] In one possible implementation, the acquisition module is specifically used for:

[0028] In response to the user's input to start data collection, the system retrieves the traffic data packets of the target application based on the target application's package name.

[0029] Fourthly, this application provides another application of a business server IP address collection device, including a receiving module and a storage module, wherein,

[0030] The receiving module is used to receive the mapping relationship set between the package name of the target application and the target IP address; the target application is any application corresponding to any package name in the preset application package name library, and the target IP address is the IP address of the business server that the target application wants to access;

[0031] The save module is used to save the mapping relationship set to the IP address database.

[0032] In one possible implementation, the device further includes:

[0033] The update module is used to update the update time of the target IP address in the IP address database to the save time if the target IP address in the mapping relationship set already exists in the IP address database. The save time is the time when the mapping relationship set was saved to the IP address database.

[0034] In one possible implementation, the device further includes:

[0035] The deletion module is used to delete a target IP address if the update time of any target IP address in the IP address database does not change within a preset time.

[0036] Fifthly, this application provides a terminal device, including: a processor and a memory;

[0037] The memory stores the instructions that the computer executes;

[0038] The processor executes computer execution instructions stored in memory, causing the processor to perform the business server IP address acquisition method of the application as described in the first or second aspect.

[0039] Sixthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the business server IP address acquisition method of the application described in the first or second aspect.

[0040] In a seventh aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the business server IP address collection method of the application described in the first or second aspect.

[0041] Eighthly, this application provides a chip on which a computer program is stored. When the computer program is executed by the chip, it implements the method for collecting the business server IP address of the application as described in the first or second aspect.

[0042] In one possible implementation, the chip is a chip within a chip module.

[0043] This application provides a method and apparatus for collecting the IP address of a business server for an application. The method involves: acquiring traffic data packets of a target application, the traffic data packets including at least one target IP address, the target application being any application corresponding to a package name in a preset application package name library, and the target IP address being the IP address of the business server to be accessed by the target application; parsing the traffic data packets using a software development kit to obtain the target IP address; establishing a mapping relationship set between the package name of the target application and the target IP address; and sending the mapping relationship set to an IP address collection platform so that the IP address collection platform saves the mapping relationship set to an IP address library. Since collecting the target IP address in both acceleration systems built with SOCKS proxy technology and VPN technology requires exporting the application's traffic data packets from the application on the SDK side, once the application's business server IP address (i.e., the target IP address) is obtained by parsing the application's traffic data packets through the SDK on the terminal device, there is no need to worry about whether subsequent acceleration is performed through SOCKS proxy technology or VPN technology. In other words, when collecting the application's business server IP address through the SDK, subsequent acceleration can be performed using either SOCKS proxy technology or VPN technology, making this method of collecting the target IP address more widely applicable. Attached Figure Description

[0044] Figure 1 This is a schematic diagram of the architecture for collecting the IP address of a business server in an application applicable to an embodiment of this application.

[0045] Figure 2 A flowchart illustrating a method for collecting the IP address of a business server in an application, as provided in this application embodiment. Figure 1 ;

[0046] Figure 3 A flowchart illustrating a method for collecting the IP address of a business server in an application, as provided in this application embodiment. Figure 2 ;

[0047] Figure 4 A schematic diagram of the structure of a business server IP address collection device provided in an embodiment of this application;

[0048] Figure 5 A schematic diagram of the structure of a business server IP address collection device for another application provided in this application embodiment;

[0049] Figure 6 This is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of this application. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0051] In this application, "at least one" means one or more. "More than one" means two or more. The descriptions of "first," "second," etc., appearing in the embodiments of this application are only for illustration and to distinguish the described objects, and have no order, nor do they indicate a special limitation on the number of devices in the embodiments of this application, and cannot constitute any limitation on the embodiments of this application. For example, the first value and the second value are only to distinguish different values, and do not indicate a difference in the size, priority, or importance of these two values.

[0052] In this application, terms such as "exemplary," "in some embodiments," and "in other embodiments" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Rather, the term "exemplary" is used to present the concept in a specific manner.

[0053] In this application, the terms "of," "corresponding (relevant)," "corresponding," and "related" may sometimes be used interchangeably. It should be noted that, unless a distinction is emphasized, their intended meanings are consistent. Similarly, in the embodiments of this application, "communication" and "transmission" may sometimes be used interchangeably. It should be noted that, unless a distinction is emphasized, their intended meanings are consistent. For example, transmission can include sending and / or receiving, and can be a noun or a verb.

[0054] It should be understood that although the steps in the flowcharts of this application's embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include at least one sub-step or at least one stage. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.

[0055] With the rapid development of internet services, users often use application accelerators (such as mobile game accelerators) to speed up applications (apps) such as live video streaming, game acceleration, or flash sales. Acceleration requires establishing a dedicated acceleration channel based on the IP address of the business server accessed by the application; therefore, it is necessary to collect the IP address of the application's business server. However, in actual app operation, to ensure their own security, each app keeps its business server IP address confidential and changes frequently, making it difficult to collect the application's business server IP address.

[0056] In some implementations, SOCKS proxy technology is used to build acceleration services. Specifically, when accelerating applications such as live video streaming and games using a software development kit (SDK) + gateway device, the Virtual Private Network Service (VPN service) component based on the Android system can leverage the application's traffic redirection feature to import the application's traffic data packets into the gateway device. The gateway device then parses the application's traffic data packets to obtain the IP address of the business server that the application wants to access.

[0057] However, besides being built with SOCKS proxy technology, mainstream acceleration systems can also be built with Virtual Private Network (VPN) technology, such as Wireguard and OpenVPN. SOCKS proxy technology forwards the traffic data packets of the application requiring acceleration to the business server that the application needs to access through a proxy server (which can function as a gateway). VPN technology transmits application traffic data through an established VPN tunnel. This VPN tunnel can be a logically dedicated encrypted "channel" between the terminal device (the device hosting the application) and the application's business server. Because the VPN tunnel is encrypted, it is difficult to obtain the IP address of the business server that the application needs to access when the application's traffic data packets are transmitted through the VPN tunnel.

[0058] Therefore, this method of obtaining the IP address of the application's business server by parsing traffic data packets on the gateway device can only be applied to acceleration systems built with SOCKS proxy technology, and not to acceleration services built with VPN technology, meaning its application scope is limited.

[0059] In view of this, this application provides a method for collecting the IP address of an application's business server. This method parses the application's traffic data packets at the front end, i.e., the SDK side, to obtain the application's business server IP address. Since collecting the target IP address in either an acceleration system built using SOCKS proxy technology or an acceleration system built using VPN technology requires exporting the application's traffic data packets from the application at the SDK side, obtaining the application's business server IP address at the SDK side eliminates the need to consider whether subsequent acceleration is achieved through SOCKS proxy technology or VPN technology. In other words, when collecting the application's business server IP address at the SDK side, subsequent acceleration can be performed using either SOCKS proxy technology or VPN technology, thus broadening the applicability of this method for collecting the target IP address.

[0060] Figure 1 This is a schematic diagram illustrating the architecture for collecting the IP address of a business server in an application applicable to embodiments of this application. Figure 1 The architecture shown includes a terminal device 101, a gateway device 102, and an IP address acquisition platform 103. The terminal device 101 can wirelessly communicate with both the gateway device 102 and the IP address acquisition platform 103.

[0061] In this embodiment of the application, the terminal device 101 may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user apparatus.

[0062] Terminal device 101 can be a device configured with an Android system. For example, terminal device 101 can be: a mobile phone, a tablet, a computer with wireless transceiver capabilities (such as a laptop, PDA, etc.), a mobile internet device (MID), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical care, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, or a personal digital assistant. The following are examples of terminal devices: assistant (PDA), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, terminal devices in 5G networks, or terminal devices in future public land mobile networks (PLMNs).

[0063] In this embodiment of the application, the IP address collection platform 103 can be a cloud server, used to store the IP addresses of the business servers that the applications that need to be accelerated need to access, collected by the terminal device 101, into the IP address database.

[0064] In this embodiment of the application, the gateway device 102 can be used to forward traffic data packets of the target application in the terminal device to the business server that the application wants to access.

[0065] like Figure 1As shown, the terminal device 101 includes a software development kit (SDK) based on the Android system and at least one application that needs acceleration (the target application). When the target application needs acceleration, the terminal device 101 executes the application's business server IP address collection method provided in this application embodiment through the SDK to collect the application's business server IP address.

[0066] For example, the method for collecting the business server IP address of the application may include: obtaining traffic data packets of the target application, wherein the traffic data packets include at least one target IP address, the target application is any application corresponding to any package name in a preset application package name library, and the target IP address is the IP address of the business server to be accessed by the target application; parsing the traffic data packets using a software development kit to obtain the target IP address; establishing a mapping relationship set between the package name of the target application and the target IP address; and sending the mapping relationship set to the IP address collection platform so that the IP address collection platform saves the mapping relationship set to the IP address library. Since collecting the target IP address in both acceleration systems built with SOCKS proxy technology and VPN technology requires exporting the application's traffic data packets from the application on the SDK side, once the application's business server IP address is obtained by parsing the application's traffic data packets through the SDK on the terminal device, there is no need to worry about whether subsequent acceleration is performed through SOCKS proxy technology or VPN technology. In other words, when collecting the application's business server IP address through the SDK, subsequent acceleration can be performed using either SOCKS proxy technology or VPN technology, making this method of collecting the target IP address more widely applicable.

[0067] The technical solutions shown in this application will now be described in detail through specific embodiments. It should be noted that the following embodiments may exist independently or in combination with each other; for the same or similar content, the description will not be repeated in different embodiments.

[0068] For example, Figure 2 This illustration shows a flowchart of a method for collecting the IP address of a business server provided in an embodiment of this application. Figure 1 The execution entity of this application embodiment can be Figure 1 The specific execution entity of the terminal device 101 in the illustrated embodiment can be determined according to the actual application scenario. For example... Figure 2 As shown, the method includes:

[0069] S201: Obtain the traffic data packet of the target application. The traffic data packet includes at least one target IP address. The target application is any application corresponding to any package name in the preset application package name library. The target IP address is the IP address of the business server that the target application wants to access.

[0070] In this embodiment, the preset application package name library may include the package names of applications that need acceleration, recorded by the SDK in the terminal device. These applications that need acceleration are installed on the terminal device.

[0071] Before acquiring traffic data packets from the target application, the terminal device can record the package names of the applications that need acceleration through the SDK. For example, the SDK can record the package names of these applications when they are installed on the terminal device.

[0072] In a possible implementation, the SDK exports the target application's traffic data packets from the target application through the Virtual Private Network Service (vpnservice) component, where the vpnservice component is a component in the Android system.

[0073] In this embodiment of the application, the terminal device can start acquiring traffic data packets of the target application after receiving a user's trigger operation on the SDK. The trigger operation may be, for example, triggering a relevant button on the SDK.

[0074] S202: Use a software development kit to parse traffic packets to obtain the target IP address.

[0075] In a possible implementation, after the SDK exports traffic packets from the target application through the VPN service component, the terminal device parses the traffic packets through the SDK before forwarding them to the gateway device, thereby obtaining the IP address of the business server that the target application wants to access.

[0076] S203: Establish a mapping set between the packet name of the target application and the target IP address.

[0077] In this embodiment of the application, the mapping relationship set may include the package name of the target application, the target IP address, and the mapping relationship between the package name of the target application and the target IP address.

[0078] It is understandable that a target application can access multiple business servers based on its business needs. Therefore, the traffic data packets of the target application can include multiple target IP addresses. Thus, in the mapping relationship set, the packet name of one target application can correspond to multiple target IP addresses.

[0079] S204: Send the mapping set to the IP address collection platform so that the IP address collection platform can save the mapping set to the IP address database.

[0080] In one possible implementation, the terminal device can periodically send the mapping set to the IP address collection platform for storage.

[0081] In another possible implementation, after the terminal device establishes a mapping relationship set, it can send a notification message to the IP address collection platform. The notification message indicates that the mapping relationship set in the terminal device has been established. After receiving the notification message, the IP address collection platform can periodically obtain the mapping relationship set from the terminal device.

[0082] In this embodiment, the terminal device obtains traffic data packets of the target application. The traffic data packets include at least one target IP address. The target application is any application corresponding to a package name in a preset application package name library, and the target IP address is the IP address of the business server accessed by the target application. The traffic data packets are parsed using a software development kit (SDK) to obtain the target IP address. A mapping relationship set between the package name of the target application and the target IP address is established. The mapping relationship set is sent to an IP address collection platform, which then saves the mapping relationship set to its IP address library. Since collecting the target IP address in both an acceleration system built using SOCKS proxy technology and an acceleration system built using VPN technology requires exporting the application's traffic data packets from the application at the SDK end, obtaining the target IP address by parsing the application's traffic data packets using the SDK on the terminal device eliminates the need to consider whether subsequent acceleration is performed using SOCKS proxy technology or VPN technology. In other words, when collecting the application's business server IP address via the SDK, subsequent acceleration can be performed using either SOCKS proxy technology or VPN technology, thus broadening the applicability of this method for collecting target IP addresses.

[0083] Based on the above embodiments, in order to more clearly describe the technical solution of this application, please refer to the exemplary embodiments. Figure 3 , Figure 3 This illustration shows a flowchart of a method for collecting the IP address of a business server provided in an embodiment of this application. Figure 2 .like Figure 3 As shown, the method may include:

[0084] S301: The terminal device responds to the user's input start collection command and obtains the traffic data packet of the target application according to the packet name of the target application.

[0085] In this embodiment, the user can input a start collection command by triggering the relevant button on the SDK.

[0086] For example, the SDK can run as an application on the software system of a terminal device. The SDK can be configured with a target application selection button and a "Start Acceleration" or "Start Collection" button. When the user selects a target application based on the target application selection button and triggers the "Start Acceleration" or "Start Collection" button, the VPN service component identifies the package name of the selected target application and exports traffic data packets from the target application based on that package name.

[0087] To ensure that the SDK can clearly identify which target application corresponds to the target IP address when parsing traffic packets, only the packet name of one target application is selected for traffic redirection. This guarantees that an SDK will only introduce the traffic packets of one target application into the gateway device through the VPN service component at any given time.

[0088] In this embodiment of the application, the traffic data packets of the target application are obtained according to the package name of the target application, that is, the traffic is diverted based on the package name of the target application, which facilitates the subsequent establishment of a mapping relationship set.

[0089] S302: The terminal device uses a software development kit to parse traffic data packets to obtain the target IP address.

[0090] S303: The terminal device establishes a mapping set between the packet name of the target application and the target IP address.

[0091] S304: The terminal device sends the mapping relationship set to the IP address collection platform, and the IP address collection platform receives the mapping relationship set between the packet name of the target application and the target IP address.

[0092] The steps S302 to S304 above are similar to or the same as steps S202 to S204 above, and will not be repeated here.

[0093] S305: The IP address collection platform saves the mapping relationship set to the IP address database.

[0094] In a possible implementation, the IP address acquisition platform saves the target application's packet name, target IP address, and the mapping relationship between the target application's packet name and target IP address to an IP address database. The target IP address in the IP address database can be used to identify which application the traffic data packet comes from, and it can also be used in other scenarios that require the use of the business server's IP address.

[0095] In one possible implementation, the method may further include step S306: if the target IP address in the mapping relationship set already exists in the IP address database, the IP address acquisition platform updates the update time of the target IP address in the IP address database to the storage time, where the storage time is the time when the mapping relationship set is stored in the IP address database.

[0096] In a possible implementation, when the terminal device collects a target IP address that already exists in the IP address database, it does not need to save it again; it only needs to update the update time of the target IP address to the latest save time.

[0097] For example, when user L uses target application A, they trigger the SDK's "Start Acceleration" or "Start Collection" button. Assuming that the traffic data packets of target application A include target IP address D1 and target IP address D2, and the time when target IP address D1 and target IP address D2 are saved to the IP address database is the first time, then the first time is the update time of target IP address D1 and target IP address D2. Later, assuming user N uses target application A, and the traffic data packets of target application A also include target IP address D1 and target IP address D2, and the time when target IP address D1 and target IP address D2 are saved to the IP address database is the second time (assuming the second time is later than the first time), since target IP address D1 and target IP address D2 already exist in the IP address database, the IP address collection platform updates the update time of target IP address D1 and target IP address D2 from the first time to the second time.

[0098] In one possible implementation, the method may further include step S307: if the update time of any target IP address in the IP address database does not change within a preset time, then delete the target IP address.

[0099] For the security of business servers, their IP addresses are prone to change. When a new business server IP address is used, the old one will no longer be used, and its update time will remain unchanged for a long time. Therefore, if the update time of any target IP address in the IP address database does not change within a preset time, that target IP address will be deleted. Simultaneously, pruning the target IP addresses in the IP address database can also save storage resources for the IP address collection platform.

[0100] The preset time can be set according to the actual scenario; for example, the preset time can be 3 months. This application does not impose specific limitations on the setting of the preset time.

[0101] In one possible implementation, when performing step S302, the method may further include step S308: the terminal device sends the traffic data packet and the target IP address to the gateway device, so that the gateway device sends the traffic data packet to the service server corresponding to the target IP address.

[0102] To ensure a smoother, lag-free experience for users using target applications, when a terminal device parses traffic data packets to obtain the target IP address, it can use an SDK to send the traffic data packets and the target IP address to the gateway device in real time. The gateway device then forwards the traffic data packets to the service server corresponding to the target IP address, enabling the service server to provide the appropriate service. This simultaneous parsing and real-time transmission of traffic data packets and the target IP address by the terminal device helps achieve the effect of simultaneously collecting the target IP address and accelerating service operations.

[0103] It is understandable that the more frequently users use the acceleration service, the more times the VPN service component redirects traffic, and the more comprehensive and accurate the target IP addresses collected.

[0104] In this embodiment, regardless of whether the target IP address is collected in an acceleration system built using SOCKS proxy technology or an acceleration system built using VPN technology, the application's traffic data packets need to be exported from the application on the SDK side. Therefore, after obtaining the application's business server IP address (i.e., the target IP address) by parsing the application's traffic data packets through the SDK on the terminal device, it is not necessary to concern oneself with whether subsequent acceleration is performed using SOCKS proxy technology or VPN technology. In other words, when collecting the application's business server IP address through the SDK, subsequent acceleration can be performed using either SOCKS proxy technology or VPN technology, thus broadening the applicability of this method for collecting the target IP address. Furthermore, it allows the terminal device to simultaneously collect the target IP address and perform acceleration services.

[0105] Figure 4 This is a schematic diagram of a business server IP address collection device provided in an embodiment of this application. Please refer to [link / reference]. Figure 4 The device 40 includes an acquisition module 401, a parsing module 402, an establishment module 403, and a sending module 404, wherein...

[0106] The acquisition module 401 is used to acquire traffic data packets of the target application. The traffic data packets include at least one target IP address. The target application is any application corresponding to any package name in the preset application package name library. The target IP address is the IP address of the business server that the target application wants to access.

[0107] The parsing module 402 is used to parse traffic data packets using a software development kit to obtain the target IP address;

[0108] Establish module 403 to establish a mapping set between the packet name of the target application and the target IP address;

[0109] The sending module 404 is used to send the mapping relationship set to the IP address collection platform so that the IP address collection platform can save the mapping relationship set to the IP address database.

[0110] In one possible implementation, device 40 further includes:

[0111] The transmission module is used to send traffic data packets and target IP addresses to the gateway device, so that the gateway device can send the traffic data packets to the service server corresponding to the target IP address.

[0112] In one possible implementation, module 401 is specifically used for:

[0113] In response to the user's input to start data collection, the system retrieves the traffic data packets of the target application based on the target application's package name.

[0114] Figure 5 This is a schematic diagram of a business server IP address collection device provided in another application of this application. Please refer to... Figure 5 The device 50 includes a receiving module 501 and a storage module 502, wherein,

[0115] The receiving module 501 is used to receive the mapping relationship set between the package name of the target application and the target IP address; the target application is any application corresponding to any package name in the preset application package name library, and the target IP address is the IP address of the business server that the target application wants to access;

[0116] The storage module 502 is used to save the mapping relationship set to the IP address database.

[0117] In one possible implementation, device 50 further includes:

[0118] The update module is used to update the update time of the target IP address in the IP address database to the save time if the target IP address in the mapping relationship set already exists in the IP address database. The save time is the time when the mapping relationship set was saved to the IP address database.

[0119] In one possible implementation, device 50 further includes:

[0120] The deletion module is used to delete a target IP address if the update time of any target IP address in the IP address database does not change within a preset time.

[0121] This application provides a terminal device. Figure 6 This is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of this application.

[0122] like Figure 6 As shown, the terminal device 60 includes a processor 601 and a memory 602; the memory 602 stores computer execution instructions; the processor 601 executes the computer execution instructions stored in the memory 602, causing the terminal device 60 to perform the above-described method.

[0123] When the memory 602 is set up independently, the terminal device 60 also includes a bus 603 for connecting the memory 602 and the processor 601.

[0124] This application provides a chip. The chip includes a processor, which is used to call a computer program in memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those in the related embodiments described above, and will not be repeated here.

[0125] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0126] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0127] This application provides a computer program product, which includes a computer program that, when run, causes a computer to perform the above-described method.

[0128] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0129] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for collecting the IP address of a business server in an application, characterized in that, Applied to a terminal device, the method includes: Obtain traffic data packets of the target application, wherein the traffic data packets include at least one target IP address, the target application is an application corresponding to any package name in a preset application package name library, and the target IP address is the IP address of the business server that the target application wants to access; The target IP address is obtained by parsing the traffic data packets using a software development kit; Establish a mapping set between the packet name of the target application and the target IP address; The mapping set is sent to the IP address collection platform so that the IP address collection platform saves the mapping set to the IP address database.

2. The method according to claim 1, characterized in that, When parsing the traffic data packets to obtain the target IP address, the method further includes: The traffic data packet and the target IP address are sent to the gateway device, so that the gateway device sends the traffic data packet to the service server corresponding to the target IP address.

3. The method according to claim 1 or 2, characterized in that, The acquisition of traffic data packets of the target application includes: In response to a user-input start collection command, the traffic data packets of the target application are obtained based on the package name of the target application.

4. A method for collecting the IP address of a business server in an application, characterized in that, Applied to an IP address collection platform, the method includes: The system receives a mapping set between the packet name of a target application and the target IP address. The target application is any application corresponding to a packet name in a preset application packet name library. The target IP address is the IP address of the business server that the target application wants to access. The mapping set is a mapping set established by the terminal device by parsing the traffic data packet using a software development kit. The mapping set is a mapping set between the packet name of the target application and the target IP address. The traffic data packet is a traffic data packet of the target application obtained by the terminal device, and the traffic data packet includes at least one target IP address. Save the mapping set to the IP address database.

5. The method according to claim 4, characterized in that, The method further includes: If the target IP address in the mapping relationship set already exists in the IP address database, then the update time of the target IP address in the IP address database is updated to the storage time, where the storage time is the time when the mapping relationship set is stored in the IP address database.

6. The method according to claim 4 or 5, characterized in that, The method further includes: If the update time of any target IP address in the IP address database remains unchanged within a preset time, then the target IP address is deleted.

7. A device for collecting the IP address of a business server in an application, characterized in that, The device includes an acquisition module, a parsing module, an establishment module, and a sending module, wherein... The acquisition module is used to acquire traffic data packets of the target application. The traffic data packets include at least one target IP address. The target application is an application corresponding to any package name in the preset application package name library. The target IP address is the IP address of the business server that the target application wants to access. The parsing module is used to parse the traffic data packets using a software development kit to obtain the target IP address; The establishment module is used to establish a mapping relationship set between the package name of the target application and the target IP address; The sending module is used to send the mapping relationship set to the IP address collection platform, so that the IP address collection platform saves the mapping relationship set to the IP address database.

8. A device for collecting the IP address of a business server in an application, characterized in that, It includes a receiving module and a storage module, wherein, The receiving module is used to receive a mapping relationship set between the packet name of the target application and the target IP address; the target application is an application corresponding to any packet name in the preset application packet name library, the target IP address is the IP address of the business server to be accessed by the target application, the mapping relationship set is a mapping relationship set established by the terminal device by parsing the traffic data packet through a software development kit, the mapping relationship set is a mapping relationship set between the packet name of the target application and the target IP address, the traffic data packet is the traffic data packet of the target application obtained by the terminal device, and the traffic data packet includes at least one target IP address; The storage module is used to save the mapping relationship set to the IP address database.

9. A terminal device, characterized in that, include: Processor, memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-3, or the method as described in any one of claims 4-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, are used to implement the method as described in any one of claims 1-3, or the method as described in any one of claims 4-6.