An application program diversion method, device and equipment of an iOS system and a medium

CN116886638BActive Publication Date: 2026-10-09CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310913133.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-24
Publication Date
2026-10-09
Estimated Expiration
2043-07-24

AI Technical Summary

Technical Problem

[0005]本申请提供一种iOS系统的应用程序引流方法、装置、设备和介质,用以解决现有技术对iOS系统中的应用软件引流存在使用效果不好的问题

Benefits of technology

[0042]This application provides a method, apparatus, device, and medium for redirecting traffic to an iOS system application. Based on a first software development kit (SDK) developed for the Android system, the method determines the target application and its package name. The package name is then sent to a gateway, which establishes a first mapping relationship based on the package name and the identifier of the target session connection. Using a virtual private network (VPN) service component configured in the Android system, the method directs target traffic corresponding to the package name of the target application to the gateway. The gateway then parses the target traffic within the target session connection according to the first mapping relationship to obtain the target IP address of the target application. The gateway stores the target IP address and the package name of the target application in an IP address database. This allows a second SSD to redirect traffic to the target application within the iOS system. In this method, the first SSD in the Android system uses the VPN service component to direct target traffic corresponding to the package name of the target application to the gateway. The gateway parses the target traffic to obtain the target IP address of the target application. Finally, the second SSD in the iOS system, along with the target IP address, redirects traffic to the target application within the iOS system, achieving an acceleration effect for the target application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116886638B_ABST
    Figure CN116886638B_ABST
Patent Text Reader

Abstract

The application provides an application program diversion method, device and equipment of an iOS system and a medium. The method sends a package name of a target application program to a gateway based on a first software development kit developed for an Android system, so that the gateway establishes a first mapping relationship according to the package name of the target application program and an identifier of a target session connection, analyzes target traffic in the target session connection according to the first mapping relationship, obtains a target IP address of the target application program, and finally stores the target IP address and the package name of the application program in an IP address library, so that a second software development kit diverts the target application program in the iOS system. The method of the application achieves the effect of accelerating the target application program in the iOS system. Moreover, the flow of the traffic acceleration service is utilized, resource cost is saved, IP address collection efficiency is improved, and thus the traffic acceleration effect of the target application program in the iOS system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to communication technology, and more particularly to an application traffic redirection method, apparatus, device, and medium for an iOS system. Background Technology

[0002] With the rapid development of mobile games and live streaming, people are increasingly using mobile devices to play games and watch live streams. However, when using applications for video live streaming, games, and flash sales, there are issues such as lag, latency, or frame drops.

[0003] Existing technologies typically improve the smoothness of live streaming and reduce lag and frame drops in games by accelerating applications. This is achieved by obtaining the server IP address of the application to be accelerated, diverting traffic from that specific IP address to the gateway, and then using relevant technologies to accelerate the internet traffic of that specific application.

[0004] However, existing technologies have limitations in effectively driving traffic to applications within the iOS system. Summary of the Invention

[0005] This application provides a method, apparatus, device, and medium for driving traffic to iOS systems, in order to solve the problem that the existing technology for driving traffic to iOS applications is not effective.

[0006] Firstly, this application provides a method for driving traffic to iOS applications, applied to a first software development kit (SDK) developed based on the Android system. The method includes:

[0007] Identify the target application and its package name. The target application is the application installed on the Android system and the iOS system. The package name of the target application is the package name of the target application installed on the Android system.

[0008] The package name of the target application is sent to the gateway so that the gateway can establish a first mapping relationship based on the package name of the target application and the identifier of the target session connection. The identifier of the target session connection is the identifier of the session connection established between the first software development kit and the gateway.

[0009] Based on the virtual private network service component configured in the Android system, the target traffic corresponding to the packet name of the target application is imported into the gateway. The gateway then resolves the target traffic within the target session connection according to the first mapping relationship, obtains the target IP address of the target application, and stores the target IP address and the packet name of the target application into the IP address database. This enables the second software development kit (SDK) to redirect traffic to the target application in the iOS system. The second SSD is a software development kit developed based on the iOS system.

[0010] In this application, the package name of the target application is sent to the gateway so that the gateway establishes a first mapping relationship based on the package name of the target application and the identifier of the target session connection, including:

[0011] Send a request to create a session connection to the gateway so that the gateway can establish a target session connection with the first software development kit based on the request and obtain the identifier of the target session connection, wherein the target session connection is a session connection based on the SOCKS protocol;

[0012] After establishing the target session connection, the package name of the target application is sent to the gateway as a control frame, so that the gateway can establish a first mapping relationship based on the package name of the target application and the identifier of the target session connection.

[0013] Secondly, this application provides an application traffic redirection method for iOS systems, applied to a gateway, the method comprising:

[0014] The system receives a control frame sent by the first software development kit (SDK) based on the target session connection. The first SSD is an SSD developed based on the Android system, the target application is an application installed on the Android system and the iOS system, and the package name of the target application is the package name of the target application installed on the Android system.

[0015] Based on the package name of the target application, determine the first mapping relationship between the identifier of the target session connection and the package name of the target application;

[0016] Based on the first mapping relationship, the target traffic is obtained in the target session connection. The target traffic is the traffic that the first software development kit redirects to the target application based on the virtual private network service component configured in the Android system.

[0017] The target traffic is parsed to obtain the target IP address corresponding to the target application;

[0018] The target IP address and the package name of the target application are stored in the IP address database, enabling the second software development kit (SDK) to redirect traffic to the target application in the iOS system. The second SSD is an SSD developed based on the iOS system.

[0019] In this application, receiving a control frame representing the package name of the target application sent by the first software development kit according to the target session connection includes:

[0020] Based on the session connection creation request sent by the first software development kit, a target session connection is established with the first software development kit, wherein the target session connection is a session connection based on the SOCKS protocol;

[0021] Obtain the identifier of the target session connection;

[0022] Receive a control frame sent by the first software development kit, representing the package name of the target application, based on the target session connection.

[0023] In this application, the target IP address and the package name of the target application are stored in an IP address database, enabling the second software development kit to redirect traffic to the target application in the iOS system, including:

[0024] Establish a second mapping relationship between the target IP address and the packet name of the target application;

[0025] The target IP address for establishing the second mapping relationship, as well as the package name of the target application, are stored in the IP address database so that the second software development kit can redirect traffic to the target application in the iOS system.

[0026] In this application, the method also includes:

[0027] Send the entry time to the IP address database so that the IP address database can delete or retain the target IP address based on the entry time. The entry time is the time when the target IP address for establishing the second mapping relationship and the packet name of the target application are entered into the IP address database.

[0028] Thirdly, this application provides an application referral device for an iOS system, applied to a first software development kit (SDK) developed based on an Android system, the device comprising:

[0029] The determination module is used to determine the target application and its package name. The target application is the application installed on the Android system and the iOS system, and the package name of the target application is the package name of the target application installed on the Android system.

[0030] The sending module is used to send the package name of the target application to the gateway, so that the gateway can establish a first mapping relationship based on the package name of the target application and the identifier of the target session connection. The identifier of the target session connection is the identifier of the session connection established between the first software development kit and the gateway.

[0031] The traffic redirection module is used to import target traffic corresponding to the packet name of the target application into the gateway according to the virtual private network service component configured in the Android system. This allows the gateway to parse the target traffic within the target session connection according to the first mapping relationship, obtain the target IP address of the target application, and store the target IP address and the packet name of the target application into the IP address database. This enables the second software development kit (SDK) to redirect traffic to the target application in the iOS system. The second SSD is a software development kit developed based on the iOS system.

[0032] Fourthly, this application provides an application referral device for an iOS system, applied to a gateway, the device comprising:

[0033] The first receiving module is used to receive a control frame sent by the first software development kit according to the target session connection, which represents the package name of the target application. The first software development kit is a software development kit developed based on the Android system, the target application is an application installed on the Android system and the iOS system, and the package name of the target application is the package name of the target application installed on the Android system.

[0034] The first processing module is used to determine the first mapping relationship between the identifier of the target session connection and the package name of the target application based on the package name of the target application.

[0035] The second receiving module is used to obtain target traffic in the target session connection according to the first mapping relationship. The target traffic is the traffic that the first software development kit redirects to the target application according to the virtual private network service component configured in the Android system.

[0036] The parsing module is used to parse the target traffic and obtain the target IP address corresponding to the target application;

[0037] The second processing module is used to store the target IP address and the package name of the target application into the IP address database, so that the second software development kit can drive traffic to the target application in the iOS system. The second software development kit is a software development kit developed based on the iOS system.

[0038] Fifthly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

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

[0040] The processor executes computer execution instructions stored in memory to implement the application routing method of the iOS system of this application.

[0041] Sixthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the application routing method of the iOS system of this application.

[0042] This application provides a method, apparatus, device, and medium for redirecting traffic to an iOS system application. Based on a first software development kit (SDK) developed for the Android system, the method determines the target application and its package name. The package name is then sent to a gateway, which establishes a first mapping relationship based on the package name and the identifier of the target session connection. Using a virtual private network (VPN) service component configured in the Android system, the method directs target traffic corresponding to the package name of the target application to the gateway. The gateway then parses the target traffic within the target session connection according to the first mapping relationship to obtain the target IP address of the target application. The gateway stores the target IP address and the package name of the target application in an IP address database. This allows a second SSD to redirect traffic to the target application within the iOS system. In this method, the first SSD in the Android system uses the VPN service component to direct target traffic corresponding to the package name of the target application to the gateway. The gateway parses the target traffic to obtain the target IP address of the target application. Finally, the second SSD in the iOS system, along with the target IP address, redirects traffic to the target application within the iOS system, achieving an acceleration effect for the target application.

[0043] Meanwhile, the process by which the first software development kit imports target traffic corresponding to the package name of the target application into the gateway based on the virtual private network service component configured in the Android system is also a process of redirecting traffic to the target application in the Android system. This traffic redirection process is the traffic acceleration process. Therefore, this solution collects target IP addresses during the process of traffic acceleration for applications in the Android system. It utilizes the traffic acceleration process, saves resource costs, and improves collection efficiency. The more frequently the traffic acceleration service is used, the more complete and accurate the target IP addresses collected will be, and the faster and better the traffic acceleration effect will be for target applications in the iOS system. Attached Figure Description

[0044] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0045] Figure 1 This application provides an illustration of an application traffic redirection scenario in an iOS system.

[0046] Figure 2 A flowchart illustrating an application traffic redirection method for an iOS system applied to a first software development kit, as provided in an embodiment of this application;

[0047] Figure 3A flowchart illustrating an application traffic redirection method for an iOS system applied to a gateway, as provided in an embodiment of this application;

[0048] Figure 4 A flowchart illustrating a multi-terminal interaction method for driving traffic to an iOS system, as provided in this application embodiment;

[0049] Figure 5 A schematic diagram of the structure of an application traffic redirection device for an iOS system applied to a first software development kit, provided in an embodiment of this application;

[0050] Figure 6 A schematic diagram of the structure of an application traffic diversion device for an iOS system applied to a gateway, provided in an embodiment of this application;

[0051] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0052] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0053] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0054] With the rapid development of mobile games and live streaming, people are increasingly using mobile devices to play games and watch live streams. However, when using applications such as video live streaming, games, and flash sales, there are often stuttering, delays, or frame drops due to data limitations, which affects the user experience.

[0055] In existing technologies, it is common to improve the smoothness of live streaming and reduce lag and frame drops in games by accelerating applications. This is done by obtaining the server IP (Internet Protocol) address of the application to be accelerated, diverting the traffic of the specific IP address to the gateway, and then using relevant technologies to accelerate the internet traffic of the specific application.

[0056] However, to ensure their own security, applications keep their server IP addresses confidential and frequently change them. Android has a Virtual Private Network (VPN) service component that can intercept and redirect traffic based on the application's packet name, thus accelerating the application. Therefore, Android does not need to obtain the application's server IP address to achieve acceleration. However, iOS lacks this application-specific traffic redirection functionality and can only use IP addresses. This makes it difficult to obtain the IP address of the application to be accelerated on iOS, preventing acceleration through IP address redirection.

[0057] To address the shortcomings of existing technologies, this application provides a method for redirecting traffic to an iOS system. To solve the problem of difficulty in obtaining the IP address of the application to be accelerated in the iOS system, thus preventing the acceleration effect from being achieved through IP address redirection, this application uses a first software development kit (SDK) developed based on the Android system to determine the target application and its package name in the Android system. The package name of the target application is then sent to a gateway. The gateway establishes a first mapping relationship based on the package name of the target application and the identifier of the target session connection. The identifier of the target session connection is the identifier of the session connection established between the first SSD and the gateway. Then, the first SSD, using a virtual private network (VPN) service component configured in the Android system, imports the target traffic corresponding to the package name of the target application into the gateway. The gateway parses the target traffic within the target session connection according to the first mapping relationship to obtain the target IP address of the target application. The gateway then stores the target IP address and the package name of the target application in an IP address database, enabling a second SSD to redirect traffic to the target application in the iOS system based on the target IP address, thereby achieving the effect of accelerating the target application in the iOS system.

[0058] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0059] Figure 1 This is a schematic diagram illustrating an application traffic redirection scenario in an iOS system, as provided in an embodiment of this application. Figure 1 As shown, the application traffic redirection device for the iOS system involves an Android system 110, a gateway 120, an IP address database 130, and an iOS system 140. The Android system 110 includes a target application 111, a first software development kit 112, and a virtual private network service component 113. The iOS system 140 includes the target application 111 and a second software development kit 141.

[0060] Both Android 110 and iOS 140 are mobile operating systems primarily used in mobile terminals, which can be wireless or wired devices. These can include mobile phones, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminals, augmented reality (AR) terminals, wireless terminals in industrial control, wireless terminals in self-driving vehicles, and so on; no specific limitations are specified here.

[0061] The first software development kit 112 in Android system 110 sends the traffic of target application 111 to gateway 120 through virtual private network service component 113.

[0062] Gateway 120 implements network interconnection above the network layer and is a complex network interconnection device used only for interconnecting two networks with different high-level protocols. Gateway 120 can be used for both wide area network (WAN) and local area network (LAN) interconnection. Gateway 120 is a computer system or device that acts as a converter between two systems with different communication protocols, data formats, languages, or even completely different architectures. Gateway 120 parses the traffic sent by the first software development kit 112 to obtain the IP address of the target application's server and then stores it in the IP address database 130.

[0063] The IP address database 130, through long-term accumulation and regular updates, maintenance, and supplementation, obtains the accurate server IP address of the target application 111. This server IP address can be recorded in a table or by software; no restriction is imposed here.

[0064] The second software development kit 141 in the iOS system 140 obtains the server IP address of the target application from the IP address database 130 and forwards the traffic of the target application to the gateway 120 for traffic redirection.

[0065] Software development kits (SDKs) are collections of development tools used by software engineers to create application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.

[0066] Package name: refers to the unique identifier of an application in the Android system;

[0067] Session: Different sessions are distinguished by a 5-tuple, which consists of: source IP address, source port, destination IP address, destination port, and transport layer protocol.

[0068] Virtual Private Network Service Components: These refer to the application programming interfaces (APIs) provided by the Android system for developers to create virtual private network solutions.

[0069] SOCKS protocol: This refers to the firewall security session transition protocol. SOCKS provides a framework for client / server applications in the TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) domains to more easily and securely use the services provided by network firewalls. The protocol operates at the session layer of the OSI (Open System Interconnect) reference model and uses the TCP protocol to transmit data.

[0070] Control frames: These are a type of Ethernet frame format primarily used to assist in the transmission of data frames.

[0071] Figure 2 This is a flowchart illustrating an application traffic redirection method for an iOS system using a first software development kit, as provided in an embodiment of this application. The execution entity in this embodiment can be... Figure 1 The first software development kit (SDK) based on the Android system. Figure 2 As shown, the method includes the following steps:

[0072] S201. Determine the target application and its package name. The target application is an application installed on the Android system and the iOS system. The package name of the target application is the package name of the target application installed on the Android system.

[0073] Among them, the target application can refer to the application that needs to be redirected to speed up the process. It often has high requirements for smoothness and can be video live streaming application, flash sale application, or game application, etc.

[0074] The package name of the target application can refer to the package name of the application in the Android system that needs to be redirected to speed up the process.

[0075] Methods for identifying target applications may include: identifying target applications based on the actions of iOS users in using acceleration software development kits to accelerate applications; or, identifying target applications based on users' application acceleration needs on Android systems by compiling a list of commonly used applications that require acceleration.

[0076] Methods to confirm the package name of a target application may include: viewing the application details in Android system settings, obtaining the package name by searching the application's installation file, or obtaining the package name through third-party software.

[0077] S202. Send the package name of the target application to the gateway so that the gateway can establish a first mapping relationship based on the package name of the target application and the identifier of the target session connection. The identifier of the target session connection is the identifier of the session connection established between the first software development kit and the gateway.

[0078] In this context, a gateway can refer to a proxy server used to redirect traffic to a target application. The function of a proxy server is to act as an intermediary for network users to obtain network information. Figuratively speaking, it is a relay station for network information, an intermediary agency between a personal network and a network service provider, responsible for forwarding legitimate network information and controlling and registering the forwarding process.

[0079] The target session connection refers to the session connection established between the first software development kit (SDK) and the gateway. A session represents a single interaction between the SSD and the gateway, which can be continuous or intermittent. When the SSD sends a session creation request to the gateway, the gateway creates a session connection between the SSD and the gateway, assigns it a session identifier, and sends it to the SSD. If the SSD subsequently requests other resources from the gateway, it automatically adds the session identifier to the request header. When the gateway receives the request, it receives the session identifier and locates the previously created session object in memory based on it. The session identifier is a unique identifier used to identify a session connection.

[0080] The first mapping relationship can refer to the one-to-one mapping between the package name of the target application and the identifier of the target session connection.

[0081] In this embodiment of the application, the method of sending the package name of the target application to the gateway so that the gateway can establish a first mapping relationship based on the package name of the target application and the identifier of the target session connection may include:

[0082] Send a request to create a session connection to the gateway so that the gateway can establish a target session connection with the first software development kit based on the request and obtain the identifier of the target session connection, wherein the target session connection is a session connection based on the SOCKS protocol;

[0083] After establishing the target session connection, the package name of the target application is sent to the gateway as a control frame, so that the gateway can establish a first mapping relationship based on the package name of the target application and the identifier of the target session connection.

[0084] The SOCKS protocol can refer to the firewall secure session transition protocol. SOCKS provides a framework for client / server applications in the TCP and UDP domains to more easily and securely use the services provided by network firewalls. The protocol operates at the session layer of the OSI reference model and uses the TCP protocol to transmit data.

[0085] A control frame can refer to a type of Ethernet frame format, primarily used to facilitate the transmission of data frames. In this embodiment, it is used to transmit the packet name of the target application.

[0086] In this embodiment of the application, since the first software development kit can redirect traffic to multiple applications when in use, there will be multiple session connections between the first software development kit and the gateway. At the same time, for the same application, the gateway will also receive multiple session connections requested by the first software development kit. Therefore, in order to determine the target session connection of the target application, it is necessary to establish a mapping relationship between the identifier of the target session connection and the package name of the target application.

[0087] S203. Based on the virtual private network service component configured in the Android system, the target traffic corresponding to the packet name of the target application is imported into the gateway, so that the gateway can parse the target traffic in the target session connection according to the first mapping relationship, obtain the target IP address of the target application, and store the target IP address and the packet name of the target application into the IP address database, so that the second software development kit can drive traffic to the target application in the iOS system. The second software development kit is a software development kit developed based on the iOS system.

[0088] Among them, the Virtual Private Network Service Component refers to the application programming interface provided by the Android system for developers to create virtual private network solutions.

[0089] Target traffic can refer to the data traffic generated by the target application during its use.

[0090] The target IP address can refer to the server IP address of the target application.

[0091] An IP address database can refer to a data table.

[0092] The second software development kit is a software development kit based on the iOS system, used to accelerate the traffic of target applications in the iOS system. It can import the data traffic of the target application to the gateway through the server IP address of the target application, and the gateway uses relevant technologies to accelerate the data traffic of the target application.

[0093] In this embodiment, the target application's package name is sent to the gateway via a first software development kit (SDK). The gateway then establishes a first mapping relationship based on the target application's package name and the identifier of the target session connection. Next, according to the virtual private network service component configured in the Android system, target traffic corresponding to the target application's package name is imported into the gateway. The gateway then parses the target traffic within the target session connection based on the first mapping relationship to obtain the target application's target IP address. The gateway then stores the target IP address and the target application's package name in an IP address database. This allows a second SSD installed in the iOS system to retrieve the target application's target IP address from the IP address database and redirect traffic to the target application in the iOS system, thereby accelerating the target application in the iOS system.

[0094] Meanwhile, the process by which the first software development kit imports target traffic corresponding to the package name of the target application into the gateway based on the virtual private network service component configured in the Android system is also a process of redirecting traffic to the target application in the Android system. This traffic redirection process is the traffic acceleration process. Therefore, this solution collects target IP addresses during the process of traffic acceleration for applications in the Android system. It utilizes the traffic acceleration process, saves resource costs, and improves collection efficiency. The more frequently the traffic acceleration service is used, the more complete and accurate the target IP addresses collected will be, and the faster and better the traffic acceleration effect will be for target applications in the iOS system.

[0095] The above embodiments describe in detail the application traffic redirection method for the iOS system according to the embodiments of this application from the perspective of the first software development kit. The following embodiments will describe in detail the application traffic redirection method for the iOS system according to the embodiments of this application from the perspective of the gateway.

[0096] Figure 3 This is a flowchart illustrating an iOS system application traffic redirection method applied to a gateway, as provided in this embodiment. The execution entity in this embodiment can be... Figure 1 Gateways in, such as Figure 3 As shown, the method may include the following steps:

[0097] S301. Receive a control frame sent by the first software development kit (SDK) based on the target session connection, representing the package name of the target application, wherein the first SSD is a software development kit developed based on the Android system, the target application is an application installed on the Android system and the iOS system, and the package name of the target application is the package name of the target application installed on the Android system.

[0098] The method for receiving a control frame representing the package name of the target application sent by the first software development kit according to the target session connection includes:

[0099] Based on the session connection creation request sent by the first software development kit, a target session connection is established with the first software development kit, wherein the target session connection is a session connection based on the SOCKS protocol;

[0100] Obtain the identifier of the target session connection;

[0101] Receive a control frame sent by the first software development kit, representing the package name of the target application, based on the target session connection.

[0102] S302. Determine the first mapping relationship between the identifier of the target session connection and the package name of the target application based on the package name of the target application;

[0103] S303. According to the first mapping relationship, obtain the target traffic in the target session connection. The target traffic is the traffic that the first software development kit redirects to the target application according to the virtual private network service component configured in the Android system.

[0104] S304. Analyze the target traffic to obtain the target IP address corresponding to the target application;

[0105] S305. Store the target IP address and the packet name of the target application into the IP address database, so that the second software development kit can redirect traffic to the target application in the iOS system. The second software development kit is a software development kit developed based on the iOS system.

[0106] In this embodiment of the application, the method of storing the target IP address and the package name of the target application in an IP address database, so that the second software development kit can redirect traffic to the target application in the iOS system, includes:

[0107] Establish a second mapping relationship between the target IP address and the packet name of the target application;

[0108] The target IP address for establishing the second mapping relationship, as well as the package name of the target application, are stored in the IP address database so that the second software development kit can redirect traffic to the target application in the iOS system.

[0109] The second mapping relationship can refer to the mapping relationship between the target IP address and the packet name of the target application, which is used to represent the correspondence between the target IP address and the target application.

[0110] In this embodiment of the application, the method after storing the target IP address and the package name of the target application in the IP address database, so that the second software development kit can redirect traffic to the target application in the iOS system, may further include:

[0111] Send the entry time to the IP address database so that the IP address database can delete or retain the target IP address based on the entry time. The entry time is the time when the target IP address for establishing the second mapping relationship and the application's packet name are entered into the IP address database.

[0112] The method for deleting or retaining target IP addresses in the IP address database based on their storage time may include: To identify and delete deprecated IP addresses from the IP address database, when the gateway sends the target IP address and the packet name of the target application to the IP address database, it also sends the storage time, so that the IP address database can delete or retain the target IP address based on the storage time. If the target IP address and the packet name of the target application sent by the gateway are already in the IP address database, the storage time of the target IP address in the IP address database is updated according to the sent storage time. Starting from the storage time, when the retention time of the target IP address reaches the preset retention time, the target IP address is deleted.

[0113] In this embodiment of the application, the gateway can send the target IP address and the packet name of the target application to the IP address collection platform, and then the IP address collection platform stores the target IP address and the packet name of the target application into the IP address database. In order to identify and delete abandoned IP addresses in the IP address database, when the IP address collection platform sends the target IP address and the packet name of the target application to the IP address database, it also sends the storage time, so that the IP address collection platform can delete or retain the target IP address according to the storage time.

[0114] In this embodiment, a gateway receives a control frame representing the package name of a target application sent by a first software development kit (SDK) based on a target session connection. Then, based on the package name of the target application, a first mapping relationship between the identifier of the target session connection and the package name of the target application is determined. Next, based on the first mapping relationship, target traffic is obtained in the target session connection, and the target traffic is parsed to obtain the target IP address corresponding to the target application. Finally, the target IP address and the package name of the target application are stored in an IP address database. Thus, the second SSD can redirect traffic to the target application in the iOS system based on the target IP address, thereby achieving the effect of accelerating the target application in the iOS system.

[0115] Moreover, this solution collects target IP addresses during the process of traffic acceleration for applications in the Android system. It utilizes the traffic acceleration process, saves resource costs, and improves collection efficiency. The more frequently the traffic acceleration service is used, the more complete and accurate the target IP addresses collected will be, and the faster and better the traffic acceleration effect will be for target applications in the iOS system.

[0116] Figure 4 This application provides a flowchart illustrating a multi-terminal interaction method for driving traffic to an iOS system, explaining the interaction between a first software development kit (SDK), a gateway, an IP address database, and a second SSD. Figure 4 As shown, the method may include:

[0117] S401, The first software development kit obtains the target application and the package name of the target application;

[0118] S402. The first software development kit sends a request to create a session connection to the gateway;

[0119] S403. The gateway establishes a target session connection with the first software development kit based on the session connection creation request sent by the first software development kit, and obtains the identifier of the target session connection.

[0120] S404. After establishing the target session connection, the first software development kit sends the package name of the target application as a control frame to the gateway.

[0121] S405. The gateway establishes a first mapping relationship based on the package name of the target application and the identifier of the target session connection.

[0122] S406. The first software development kit imports the target traffic corresponding to the package name of the target application into the gateway according to the virtual private network service component configured in the Android system.

[0123] S407. The gateway obtains the target traffic in the target session connection according to the first mapping relationship, and parses the target traffic to obtain the target IP address corresponding to the target application.

[0124] S408, The gateway stores the target IP address and the packet name of the target application into the IP address database;

[0125] S409. The second software development kit obtains the target IP address from the IP address database;

[0126] S410, the second software development kit, drives traffic to target applications in the iOS system.

[0127] In this embodiment, the first software development kit (SDK) sends a control frame representing the packet name of the target application based on the target session connection. Then, the gateway determines a first mapping relationship between the identifier of the target session connection and the packet name of the target application based on the packet name of the target application. The gateway then obtains the target traffic in the target session connection based on the first mapping relationship and parses the target traffic to obtain the target IP address corresponding to the target application. Next, the gateway stores the target IP address and the packet name of the target application in the IP address database. Finally, the second SSD redirects traffic to the target application in the iOS system based on the target IP address, thereby achieving the effect of accelerating the target application in the iOS system.

[0128] Moreover, this solution collects target IP addresses during the process of traffic acceleration for applications in the Android system. It utilizes the traffic acceleration process, saves resource costs, and improves collection efficiency. The more frequently the traffic acceleration service is used, the more complete and accurate the target IP addresses collected will be, and the faster and better the traffic acceleration effect will be for target applications in the iOS system.

[0129] Figure 5 This is a schematic diagram of the structure of an application traffic diversion device for an iOS system applied to a first software development kit, provided in an embodiment of this application. The device 50 includes: a determining module 501, a sending module 502, and a traffic diversion module 503, wherein:

[0130] The determination module 501 is used to determine the target application and the package name of the target application. The target application is an application installed on the Android system and the iOS system, and the package name of the target application is the package name of the target application installed on the Android system.

[0131] The sending module 502 is used to send the package name of the target application to the gateway, so that the gateway can establish a first mapping relationship based on the package name of the target application and the identifier of the target session connection. The identifier of the target session connection is the identifier of the session connection established between the first software development kit and the gateway.

[0132] The traffic redirection module 503 is used to import target traffic corresponding to the packet name of the target application into the gateway according to the virtual private network service component configured in the Android system. This allows the gateway to parse the target traffic within the target session connection according to the first mapping relationship, obtain the target IP address of the target application, and store the target IP address and the packet name of the target application into the IP address database. This enables the second software development kit to redirect traffic to the target application in the iOS system. The second software development kit is a software development kit developed based on the iOS system.

[0133] In this embodiment of the application, the sending module 502 can also be used to: send a request to create a session connection to the gateway, so that the gateway establishes a target session connection with the first software development kit according to the request to create a connection, and obtains the identifier of the target session connection, wherein the target session connection is a session connection based on the SOCKS protocol;

[0134] After establishing the target session connection, the package name of the target application is sent to the gateway as a control frame, so that the gateway can establish a first mapping relationship based on the package name of the target application and the identifier of the target session connection.

[0135] Figure 6 This is a schematic diagram of the structure of an application traffic redirection device for an iOS system applied to a gateway, provided in an embodiment of this application. The device 60 includes: a first receiving module 601, a first processing module 602, a second receiving module 603, a parsing module 604, and a second processing module 605, wherein:

[0136] The first receiving module 601 is used to receive a control frame sent by the first software development kit (SDK) according to the target session connection, which represents the package name of the target application. The first SSD is an SSD developed based on the Android system, the target application is an application installed on the Android system and the iOS system, and the package name of the target application is the package name of the target application installed on the Android system.

[0137] The first processing module 602 is used to determine a first mapping relationship between the identifier of the target session connection and the package name of the target application based on the package name of the target application.

[0138] The second receiving module 603 is used to obtain target traffic in the target session connection according to the first mapping relationship. The target traffic is the traffic redirected to the target application by the first software development kit according to the virtual private network service component configured in the Android system.

[0139] The parsing module 604 is used to parse the target traffic and obtain the target IP address corresponding to the target application.

[0140] The second processing module 605 is used to store the target IP address and the package name of the target application into the IP address database, so that the second software development kit can redirect traffic to the target application in the iOS system. The second software development kit is a software development kit developed based on the iOS system.

[0141] In this embodiment of the application, the first receiving module 601 is further configured to:

[0142] Based on the session connection creation request sent by the first software development kit, a target session connection is established with the first software development kit, wherein the target session connection is a session connection based on the SOCKS protocol;

[0143] Obtain the identifier of the target session connection;

[0144] Receive a control frame sent by the first software development kit, representing the package name of the target application, based on the target session connection.

[0145] In this embodiment of the application, the second processing module 605 is further configured to:

[0146] Establish a second mapping relationship between the target IP address and the packet name of the target application;

[0147] The target IP address for establishing the second mapping relationship, as well as the package name of the target application, are stored in the IP address database so that the second software development kit can redirect traffic to the target application in the iOS system.

[0148] In this embodiment of the application, the second processing module 605 is further configured to:

[0149] Send the entry time to the IP address database so that the IP address database can delete or retain the target IP address based on the entry time. The entry time is the time when the target IP address for establishing the second mapping relationship and the packet name of the target application are entered into the IP address database.

[0150] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 70 includes:

[0151] The electronic device 70 may include a processor 701 with one or more processing cores, a memory 702 with one or more computer-readable storage media, a communication component 703, and other components. The processor 701, memory 702, and communication component 703 are connected via a bus 704.

[0152] In the specific implementation process, at least one processor 701 executes computer execution instructions stored in memory 702, causing at least one processor 701 to execute the above-mentioned application traffic redirection method of the iOS system.

[0153] The specific implementation process of processor 701 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0154] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0155] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps in any of the application referral methods for an iOS system provided in embodiments of this application.

[0156] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0157] According to one aspect of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium.

[0158] Since the instructions stored in the storage medium can execute the steps in any of the iOS system application traffic redirection methods provided in the embodiments of this application, the beneficial effects that any of the iOS system application traffic redirection methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0159] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0160] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for driving traffic to iOS applications, characterized in that, The method of applying a first software development kit (SDK) based on the Android system includes: The target application and its package name are determined. The target application is an application installed on the Android system and the iOS system. The package name of the target application is the package name of the target application installed on the Android system. The determined target application is the application to be redirected in the iOS system. A request to create a session connection is sent to the gateway, so that the gateway establishes a target session connection with the first software development kit according to the request and obtains the identifier of the target session connection, wherein the target session connection is a session connection based on the SOCKS protocol; After establishing the target session connection, the package name of the target application is sent to the gateway as a control frame, so that the gateway establishes a first mapping relationship based on the package name of the target application and the identifier of the target session connection. The first mapping relationship is used to bind the package name of the target application to the target session connection on the gateway side. According to the virtual private network service component configured in the Android system, target traffic corresponding to the packet name of the target application is imported into the gateway. The import process into the gateway is reused as a traffic acceleration process for the target application in the Android system, so that the gateway resolves the target IP address of the target application from the target traffic within the target session connection according to the first mapping relationship. The gateway then establishes a second mapping relationship between the target IP address and the packet name of the target application, and stores the target IP address with the established second mapping relationship and the packet name of the target application in an IP address database. The IP address database stores the mapping relationship between the target IP address and the packet name of the target application. The gateway sends a storage time to the IP address database, so that the IP address database deletes or retains the target IP address based on the storage time, where the storage time is the time the target IP address and the packet name of the target application are stored in the IP address database. Finally, a second software development kit developed based on the iOS system reads the target IP address from the IP address database and redirects traffic to the target application in the iOS system based on the target IP address.

2. A method for driving traffic to iOS applications, characterized in that, Applied to a gateway, the method includes: Based on the session connection creation request sent by the first software development kit, a target session connection is established with the first software development kit, wherein the target session connection is a session connection based on the SOCKS protocol; the identifier of the target session connection is obtained; The system receives a control frame sent by a first software development kit (SDK) based on a target session connection, representing the package name of a target application. The first SSD is an SSD developed based on the Android system, the target application is an application installed on both the Android and iOS systems, and the package name of the target application is the package name of the target application installed on the Android system. The determined target application is the application to be redirected in the iOS system. Based on the package name of the target application, a first mapping relationship between the identifier of the target session connection and the package name of the target application is determined. The first mapping relationship is used to bind the package name of the target application and the target session connection on the gateway side. According to the first mapping relationship, target traffic is obtained in the target session connection. The target traffic is the traffic that the first software development kit redirects to the target application according to the virtual private network service component configured in the Android system. The redirection process is reused as a traffic acceleration process for the target application in the Android system. The target traffic is parsed to obtain the target IP address corresponding to the target application; A second mapping relationship is established between the target IP address and the packet name of the target application, and the target IP address with the established second mapping relationship and the packet name of the target application are stored in an IP address database, wherein the IP address database is used to store the mapping relationship between the target IP address of the target application and the packet name of the target application; Send the storage time to the IP address database so that the IP address database can delete or retain the target IP address based on the storage time, wherein the storage time is the time when the target IP address and the package name of the target application are stored in the IP address database; This enables a second software development kit (SDK) developed based on the iOS system to redirect traffic to a target application within the iOS system by reading the target IP address from the IP address database.

3. An application traffic redirection device for iOS system, characterized in that, A first software development kit for development based on the Android system, the device comprising: The determination module is used to determine the target application and the package name of the target application. The target application is an application installed on the Android system and the iOS system. The package name of the target application is the package name of the target application installed on the Android system. The determined target application is the application to be redirected in the iOS system. A sending module is configured to send a session connection creation request to a gateway, so that the gateway establishes a target session connection with the first software development kit according to the session connection creation request, and obtains the identifier of the target session connection, wherein the target session connection is a session connection based on the SOCKS protocol; and after establishing the target session connection, sending the package name of the target application as a control frame to the gateway, so that the gateway establishes a first mapping relationship according to the package name of the target application and the identifier of the target session connection, wherein the first mapping relationship is used to bind the package name of the target application to the target session connection on the gateway side; The traffic redirection module is used to import target traffic corresponding to the package name of the target application into the gateway according to the virtual private network service component configured in the Android system. The process of importing into the gateway is reused as a traffic acceleration process for the target application in the Android system, so that the gateway can resolve the target IP address of the target application from the target traffic in the target session connection according to the first mapping relationship. The processing module is configured to establish a second mapping relationship between the target IP address and the package name of the target application, and store the target IP address with the established second mapping relationship and the package name of the target application into an IP address database, wherein the IP address database is used to store the mapping relationship between the target IP address of the target application and the package name of the target application; and send a storage time to the IP address database, so that the IP address database deletes or retains the target IP address according to the storage time, wherein the storage time is the time when the target IP address and the package name of the target application are stored in the IP address database; thereby enabling a second software development kit developed based on the iOS system to read the target IP address from the IP address database and drive traffic to the target application in the iOS system based on the target IP address.

4. An application traffic redirection device for iOS system, characterized in that, Applied to a gateway, the device includes: The first receiving module is configured to: establish a target session connection with the first software development kit (SDK) based on a session connection creation request sent by the first SSD, wherein the target session connection is a SOCKS protocol-based session connection; obtain the identifier of the target session connection; and receive a control frame sent by the first SSD based on the target session connection, representing the package name of the target application, wherein the first SSD is an Android-based SSD, the target application is an application installed on both Android and iOS systems, the package name of the target application is the package name of the target application installed on Android, and the determined target application is the application to be redirected in the iOS system. The first processing module is used to determine a first mapping relationship between the identifier of the target session connection and the package name of the target application based on the package name of the target application. The first mapping relationship is used to bind the package name of the target application and the target session connection on the gateway side. The second receiving module is used to obtain target traffic in the target session connection according to the first mapping relationship. The target traffic is the traffic that the first software development kit redirects to the target application according to the virtual private network service component configured in the Android system. The redirection process is reused as a traffic acceleration process for the target application in the Android system. The parsing module is used to parse the target traffic to obtain the target IP address corresponding to the target application; The second processing module is configured to establish a second mapping relationship between the target IP address and the package name of the target application, and store the target IP address with the established second mapping relationship and the package name of the target application into an IP address database, wherein the IP address database is used to store the mapping relationship between the target IP address of the target application and the package name of the target application; send a storage time to the IP address database so that the IP address database can delete or retain the target IP address according to the storage time, wherein the storage time is the time when the target IP address and the package name of the target application are stored in the IP address database; and enable a second software development kit developed based on the iOS system to read the target IP address from the IP address database and drive traffic to the target application in the iOS system based on the target IP address.

5. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in claim 1 or 2.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in claim 1 or 2.

Citation Information

Patent Citations

  • Address information acquisition system and method, electronic equipment and storage medium

    CN114979073A

  • 5G SA network service guarantee method and device

    CN115514643A