CN113329473A - Method and device for accessing application program to Internet and user terminal - Google Patents
Method and device for accessing application program to Internet and user terminal Download PDFInfo
- Publication number
- CN113329473A CN113329473A CN202010134060.8A CN202010134060A CN113329473A CN 113329473 A CN113329473 A CN 113329473A CN 202010134060 A CN202010134060 A CN 202010134060A CN 113329473 A CN113329473 A CN 113329473A
- Authority
- CN
- China
- Prior art keywords
- application program
- internet
- network
- user terminal
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method, a device and a user terminal for accessing an application program to the Internet, wherein the method is applied to the user terminal which is connected with the Internet through a Wi-Fi network and a mobile network; if the Wi-Fi network of the user terminal is started, acquiring a target application program which is in the user terminal and needs to access the Internet through a mobile network; and accessing the target application program to the Internet through the mobile network. According to the method, two network paths, namely the Wi-Fi network and the mobile network parallel to the Wi-Fi network, are reserved, so that when the Wi-Fi network of the user terminal is started, a target application program needing to access the Internet through the mobile network can be automatically accessed to the Internet through the mobile network at the same time, and further the application program shielded by the Wi-Fi network can be accessed to the Internet more conveniently, and the efficiency of accessing the application program in the user terminal to the Internet is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a user terminal for accessing an application to the internet.
Background
In the related art, when the user terminal is connected to the internet only through Wi-Fi, if some application programs installed on the user terminal are shielded by the Wi-Fi proxy server, the user cannot access the shielded application programs; even if the user terminal is connected with the Internet through the Wi-Fi and the mobile network at the same time, because only one network access is usually allowed to be connected with the Internet at the same time and the priority of the Wi-Fi is usually higher, the current Internet connection is still realized through the Wi-Fi, and the user cannot access the application programs shielded by the Wi-Fi proxy server; if the user needs to access the shielded application program, the Wi-Fi connection is usually required to be disconnected, and the mobile data network is connected, so that the working efficiency is low.
Disclosure of Invention
The invention aims to provide a method and a device for accessing an application program to the Internet and a user terminal, so as to improve the efficiency of accessing the application program in the user terminal to the Internet.
The invention provides a method for accessing an application program to the Internet, which is applied to a user terminal, wherein the user terminal is connected with the Internet through a Wi-Fi network and a mobile network; the method comprises the following steps: if the Wi-Fi network of the user terminal is started, acquiring a target application program which needs to access the Internet through a mobile network in the user terminal; and accessing the target application program to the Internet through the mobile network.
Further, the step of obtaining a target application program that needs to access the internet through a mobile network in the user terminal includes: acquiring a preset application program list, and determining an application program in the application program list as a target application program; the application program list is established according to the network connection state of each application program in the user terminal, and/or the application program list is established according to a user instruction.
Further, if the application program list is established according to the network connection state of each application program in the user terminal, the application program list is specifically established in the following manner: for each application in the user terminal, performing the following operations: and if the current application program cannot access the Internet through the Wi-Fi network and can access the Internet through the mobile network, adding the current application program into the application program list.
Further, the current application program is preset with a connection state identifier; the connection state identifier is used for indicating whether the current application program can access the Internet through the Wi-Fi network; if the current application program can not access the Internet through the Wi-Fi network and can access the Internet through the mobile network, the step of adding the current application program to the application program list comprises the following steps: if the connection state identifier indicates that the current application program cannot access the Internet through the Wi-Fi network, acquiring a program identifier and port configuration information of the current application program; establishing connection between the current application program and the internet through the mobile network according to the program identification and the port configuration information; and if the current application program can access the Internet through the mobile network, adding the current application program into the application program list.
Further, the application program list comprises a first list and a second list; the first list is established according to the network connection state of each application program in the user terminal; the second list is established according to a user instruction; the step of determining the application program in the application program list as the target application program includes: and if the preset application program belongs to the second list and does not belong to the first list, determining that the preset application program is a target application program.
Further, the step of accessing the target application to the internet through the mobile network includes: allocating an IP address and a port number for accessing the Internet through the mobile network to the target application program; binding the allocated IP address and the allocated port number with the target application program; and accessing the target application program to the Internet through the allocated IP address and the allocated port number.
The device for accessing the application program to the Internet is arranged on a user terminal, and the user terminal is connected with the Internet through a Wi-Fi network and a mobile network; the device comprises: the acquisition module is used for acquiring a target application program which needs to access the Internet through a mobile network in the user terminal if the Wi-Fi network of the user terminal is started; and the access module is used for accessing the target application program to the Internet through the mobile network.
Further, the obtaining module is further configured to: acquiring a preset application program list, and determining an application program in the application program list as a target application program; the application program list is established according to the network connection state of each application program in the user terminal, and/or the application program list is established according to a user instruction.
The invention provides a user terminal, which comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the method for accessing the internet by the application program.
The invention provides a machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement any of the above methods for accessing the internet by an application program.
The method, the device and the user terminal for accessing the application program to the internet are applied to the user terminal, wherein the user terminal is connected with the internet through a Wi-Fi network and a mobile network; if the Wi-Fi network of the user terminal is started, acquiring a target application program which is in the user terminal and needs to access the Internet through a mobile network; and accessing the target application program to the Internet through the mobile network. According to the method, two network paths, namely the Wi-Fi network and the mobile network parallel to the Wi-Fi network, are reserved, so that when the Wi-Fi network of the user terminal is started, a target application program needing to access the Internet through the mobile network can be automatically accessed to the Internet through the mobile network at the same time, and further the application program shielded by the Wi-Fi network can be accessed to the Internet more conveniently, and the efficiency of accessing the application program in the user terminal to the Internet is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for an application to access the internet according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for accessing the internet by an application according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for accessing the internet by an application according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating determining a network connection status of an application according to a program algorithm according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an app binding process providing network connection according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a RAT restriction list maintenance manner according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for accessing internet by an application according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, some enterprises may shield some applications for security, such as social networking/messaging applications, e.g. WhatsApp (an application for communication between smartphones), WeChat, Telegram (an instant Messenger across platforms), Facebook Messenger (a desktop chat software), LINE (an instant Messenger software), etc., because end-to-end encryption is used, it is easy to target the shielding in enterprise networks, because enterprise security is very important. Also, voice and video services are not allowed in enterprise networks. This occurs when Device Management (DM) services, such as VMWare, MobileIron, etc., are used, and the rights are higher than those of the android local administrator; for example, in the daily office process, a user opens a Wi-Fi connection office network in the user terminal. IT departments of most companies in most countries, which comply with corporate policies and restrict access to office networks, may shield some applications from the office. For example, most companies in India will mask Whatapp and Facebook; in china, most companies are screening chat and other social networking applications.
In an office area, a user will typically turn on only the Wi-Fi network or both the Wi-Fi network and the mobile network. However, when the office area internet agent masks the above application, even if there is traffic in the mobile network package of the user terminal and the Wi-Fi network and the mobile network are connected at the same time, the user cannot use the masked application.
If a user starts the Wi-Fi and the mobile network at the same time on the user terminal, since the Wi-Fi priority is often higher, an Application program (app for short) on the user terminal, such as a mobile device or a tablet computer, will use the Wi-Fi network to connect to the internet to obtain data. If some applications are shielded by the proxy server of the Wi-Fi network, the applications cannot be used by the user because the applications are shielded, even if the mobile network is started at the same time, because only one network access is generally allowed to be connected to the Internet at the same time and the Wi-Fi is higher in priority, the current Internet connection is still realized through the Wi-Fi, and the user cannot access the applications shielded by the Wi-Fi proxy server.
The purpose of installing a proxy server is to filter and mask applications. When unshielded, these applications can provide better voice communication clarity because of the wider bandwidth available when connecting Wi-Fi. Nowadays, in order to ensure that the applications can still work, the Wi-Fi connection is disconnected, and the applications shielded by the Wi-Fi network can be used when the mobile network (LTE/3G) is accessed, but the Wi-Fi network of an enterprise cannot be connected, and the data transmission speed of the mobile network is generally slower than that of the Wi-Fi network, so that the work efficiency is low.
Based on this, the embodiment of the invention provides a method, a device and a user terminal for accessing an application program to the internet, and the technology can be applied to user terminals such as mobile phones and tablet computers.
In order to facilitate understanding of the embodiment, a method for accessing an application program to the internet disclosed in the embodiment of the present invention is first described in detail, and the method may be applied to a user terminal, where the user terminal is connected to the internet through a Wi-Fi network and a mobile network; as shown in fig. 1, the method comprises the steps of:
and step S102, if the Wi-Fi network of the user terminal is started, acquiring a target application program which is in the user terminal and needs to access the Internet through a mobile network.
The User terminal may be a mobile phone, a tablet computer, or other User Equipment (UE for short); the mobile network can be understood as a mode that a user terminal, such as a mobile phone, a tablet computer and the like, is connected to a public network to realize internet access; the target application may be understood as an application selected from a plurality of applications in the user terminal and requiring access to the internet through the mobile network; and if the Wi-Fi network of the user terminal is started, acquiring the selected target application program in the user terminal, which needs to access the Internet through the mobile network.
And step S104, accessing the target application program to the Internet through the mobile network.
In practical implementation, The mobile Network connection may be implemented by establishing a parallel Public Data Network (PDN), and then binding The target application with The mobile Network connection link, for example, a logic may be forcibly written in a modem Data Access Server (NAS)/multimode module, which requires that The target application only Access The internet through The mobile Network, and The mobile Network may be a RAT (radio Access technology) -based 5G (The 5th Generation mobile communication technology, 5G for short), a fifth Generation mobile communication technology, a 4G (The 4th Generation mobile communication technology, 4G for short), a fourth Generation mobile communication technology, a 3G (The 3rd Generation mobile communication technology, 3G for short), 2G (The 2nd Generation mobile communication technology, 2G for short; second Generation mobile communication technology) or LTE (Long Term Evolution), and The target application program is accessed to The Internet through The mobile network to realize data transmission.
The method for accessing the application program to the internet is applied to a user terminal, and the user terminal is connected with the internet through a Wi-Fi network and a mobile network; if the Wi-Fi network of the user terminal is started, acquiring a target application program which is in the user terminal and needs to access the Internet through a mobile network; and accessing the target application program to the Internet through the mobile network. According to the method, two network paths, namely the Wi-Fi network and the mobile network parallel to the Wi-Fi network, are reserved, so that when the Wi-Fi network of the user terminal is started, a target application program needing to access the Internet through the mobile network can be automatically accessed to the Internet through the mobile network at the same time, and further the application program shielded by the Wi-Fi network can be accessed to the Internet more conveniently, and the efficiency of accessing the application program in the user terminal to the Internet is improved.
The embodiment of the invention also provides another method for accessing the application program to the Internet, which is realized on the basis of the method of the embodiment; the method mainly describes a specific process of acquiring a target application program which needs to access the internet through a mobile network in a user terminal, and specifically corresponds to the following step S202, as shown in fig. 2, the method includes the following steps:
step S202, if the Wi-Fi network of the user terminal is started, a preset application program list is obtained, and the application program in the application program list is determined as a target application program; the application program list is established according to the network connection state of each application program in the user terminal, and/or the application program list is established according to a user instruction.
The application program list usually contains program identifiers of application programs needing to access the internet through a mobile network; the network connection state may be understood as a state in which each application in the user terminal has accessed the internet or has not accessed the internet; the user instruction can be understood as that the user can select the application program which needs to access the internet through the mobile network according to the actual requirement through the user terminal interface. The application program list can be established according to the network connection state of each application program in the user terminal, and during actual implementation, if the Wi-Fi network of the user terminal is started, the user terminal can judge and record the connection condition of each application program through an internal program algorithm; alternatively, the application list may be established according to a user instruction, for example, the user may specify that one or more applications in the user terminal are connected to the internet only through the mobile network; or, the network connection state and the user instruction of each application program in the user terminal are jointly established.
If the application program list is established according to the network connection state of each application program in the user terminal, the application program list may be specifically established through the following steps:
step 20, for each application program in the user terminal, executing the following operations: and if the current application program cannot access the Internet through the Wi-Fi network and can access the Internet through the mobile network, adding the current application program into the application program list.
The program algorithm in the user terminal is responsible for identifying and recording the network connection condition of the application program installed in the user terminal, particularly social network and communication application programs, and then comparing the connection condition with other general application programs so as to preliminarily judge the application program shielded by the Wi-Fi network. That is, the program algorithm may record the network connection status of all the applications on the user terminal when only the Wi-Fi network is turned on, or only the mobile network is turned on, or when the Wi-Fi network and the mobile network are turned on at the same time.
The current application program is preset with a connection state identifier; the connection status indicator indicates whether the current application can access the internet via a Wi-Fi network.
In practical implementation, the connection state identifier may be a boolean flag (APP _ ID _ BLOCK _ state) assigned by a program algorithm in the user terminal to each installed application program, and an initial value of the boolean flag of each application program may be set to a default value of 0; if the current application program is successfully accessed to the internet through the Wi-Fi network, setting the Boolean flag of the current application program to be 0 through a program algorithm, namely APP _ ID _ BLOCK _ STATUS is 0; if the current application program is shielded by the proxy server in the Wi-Fi network and the proxy server cannot respond to the continuous attempt of connecting with the current application program, the Boolean flag of the current application program is set to 1 through a program algorithm, namely APP _ ID _ BLOCK _ STATUS is 1, which indicates that the program identification of the current application program is shielded by the proxy server in the Wi-Fi network. Specifically, the step 20 can be implemented by the following steps 200 to 202:
and 200, if the connection state identifier indicates that the current application program cannot access the internet through the Wi-Fi network, acquiring a program identifier and port configuration information of the current application program.
The program identifier may be understood as an ID (Identity document) of the application program in the process; the port configuration information generally includes information such as a port number of the current application program; in actual implementation, when the user terminal identifies and determines the network connection state of each application program through an internal program algorithm, if it is found that the connection state identifier of the current application program indicates that the current application program cannot access the internet through a Wi-Fi network, that is, APP _ ID _ BLOCK _ STATUS of the current application program is 1, the program identifier with the current application program, that is, APP ID, and an indication of port configuration information are sent to an APP binding process in the user terminal through the internal program algorithm.
And when the user terminal is connected with the Wi-Fi network each time, whether the current application program can access the Internet through the Wi-Fi network is reconfirmed, namely, the APP _ ID _ BLOCK _ STATUS of the current application program is reassessed so as to reconfirm the network connection state of the current application program.
Step 201, according to the program identifier and the port configuration information, establishing the connection between the current application program and the internet through a mobile network.
In actual implementation, after the app binding process in the user terminal receives the instruction, the app binding process usually adds the current application program to a "RAT RESTRICTION suspected LIST" (RAT _ RESTRICTION _ SUSPECT _ LIST), starts to establish a RAT-based network connection of the current application program according to the program identifier and port configuration information in the instruction, and feeds back a signal to a program algorithm to inform the program algorithm that the RAT-based network connection is established, so as to determine and confirm a network connection state.
Step 202, if the current application program can access the internet through the mobile network, adding the current application program to the application program list.
In practical implementation, the application program LIST may be a "RAT RESTRICTION LIST" (RAT _ RESTRICTION _ LIST); in the above step 200, the program algorithm sends only the suspected indication that the current application program is masked, and still cannot determine whether the proxy server in the Wi-Fi network is abnormal or the IP address of the Wi-Fi network masks the current application program, and therefore, after the app binding process establishes the RAT-based internet connection, if it is confirmed through a program algorithm in the user terminal that the network connection state of the current application program being masked is normal, the app ID of the current application program will be added to the application program list, i.e., the RAT restriction list, the program algorithm in the ue will send an indication that the APP is "shielded by Wi-Fi but not by the mobile network", or "APP _ booted _ BY _ WIFI _ unlocked _ BY _ MO bielenet", this indication means for APP binding process: with mobile data, the current application may be networked, please continue the network connection currently provided on a RAT basis.
After establishing an internet connection based on a RAT in the APP binding process, if it is confirmed through a program algorithm in the user terminal that the shielded current application program still cannot be networked, sending an indication to the APP binding process, where the content may be "APP cannot be networked with mobile data through Wi-Fi", or "APP _ unreadable _ BY _ WIFI _ AND _ mobieldat", which means that the application program itself is abnormal, AND a proxy server of a Wi-Fi network is normal, AND the APP binding process deletes the APP ID of the current application program from the "RAT restriction suspected list" AND the "RAT restriction list"; the above steps are repeated for all the applications, and finally a 'RAT restriction list' containing all the applications which need to use the mobile network for networking is formed.
As can be understood from the above steps, the ue first confirms the application programs shielded by the Wi-Fi network through the internal program algorithm, and establishes a "RAT restriction suspected list" containing app IDs of the shielded application programs; if the application program in the "RAT restriction suspected list" can be successfully networked through the mobile network, the app ID of the application program is added into the final "RAT restriction list", that is, the "RAT restriction list" contains all the application programs which need to use the mobile network to be networked. Each time the Wi-Fi network is turned on and the mobile network is turned off, the "RAT restriction suspected list" and the "RAT restriction list" on the UI (User Interface) are reset.
The app binding process is responsible for ensuring that only applications listed in the final list (FINAL LIST), which may be the "RAT limit list" described above, can use RAT-based network connections.
In practical implementation, the application program list may include a first list and a second list; wherein, the first list is established according to the network connection state of each application program in the user terminal; the second list is established according to a user instruction; the first list usually includes program identifiers of application programs that need to access the internet through a mobile network, which are determined according to the network connection state of each application program in the user terminal; the second list usually comprises program identifiers of application programs which are selected by a user through a user terminal interface and need to access the Internet through a mobile network according to actual requirements; the preset application may be a designated application in the user terminal.
In this embodiment, the user may establish and manage the second list by himself, for example, the user may designate one or more application programs, and when using the designated application program, access the internet through the mobile network, instead of accessing the internet through the Wi-Fi network, and when opening the designated application program on the user terminal, the user may automatically switch to the mobile network access; the priority of the second list is higher than that of the first list, namely, if the preset application program belongs to the second list and does not belong to the first list, the preset application program is determined to be the target application program; for example, if the second list includes the WeChat application but the first list does not include the WeChat application, the WeChat application is determined to be a target application that needs to access the Internet through the mobile network because the second list has a higher priority than the first list.
Step S204, the target application program is accessed to the Internet through the mobile network.
In practical implementations, all RAT-based network traffic is limited only to the applications listed in the final list. Module modem data in the protocol stack, only to have app ID, and IP is the application assigned by RAT network; furthermore, only ports that are restricted from being listed can operate.
All applications that are not masked by the Wi-Fi network will continue to run using the IP address assigned by the Wi-Fi network, while applications that have been masked by the Wi-Fi network will run using the IP address assigned by the RAT-based mobile network.
In practical implementation, when a program algorithm in a user terminal identifies and judges whether an application program is shielded by a Wi-Fi network, the user terminal is usually firstly judged whether only the Wi-Fi network is started or whether the Wi-Fi network and a mobile network are both in a starting state; if the User terminal only opens the Wi-Fi network, if the program detects that the application program is shielded by a proxy server of the Wi-Fi network, characters with the following meanings are popped up on a User Interface (UI): "some apps have been masked by the Wi-Fi proxy and please open mobile data if desired to be unaffected by the masking".
If the user terminal simultaneously opens the Wi-Fi network and the mobile network, and the program algorithm detects that the application program is shielded by a proxy server of the Wi-Fi network, the UI pops up characters containing the following meanings: "some apps are masked, if it is desired to use the apps through the mobile internet, please click 'OK', this allows both Wi-Fi and mobile internet access to the masked app ", that is, after the user clicks "OK", it is possible to display the information in a state where the Wi-Fi network is turned on, simultaneously, the application program shielded by the Wi-Fi network is accessed to the Internet through the mobile network, in practical implementation, the option may be set in the user terminal, for example, in a state where the user terminal is simultaneously on the Wi-Fi network and the mobile network, when the user opens the shielded application for the first time, the dialog box may pop up, after the user clicks 'OK', the program algorithm can record the selection of the user to all the shielded application programs, and the dialog box can not be popped up when the application program is opened next time; of course, the user may also set in the user terminal so that the program algorithm does not record the user's selection, and the user selects and confirms the selection each time the dialog box is popped up.
The method for accessing the application program to the Internet acquires a preset application program list and determines the application program in the application program list as a target application program; the application program list is established according to the network connection state of each application program in the user terminal, and/or the application program list is established according to a user instruction; the method introduces a specific process of adding the current application program into the application program list if the current application program can not access the Internet through a Wi-Fi network and can access the Internet through a mobile network in detail; besides, the application program list can be established according to the network connection state of each application program in the user terminal and can also be established according to a user instruction, and the use mode is more flexible. According to the method, two network paths, namely the Wi-Fi network and the mobile network parallel to the Wi-Fi network, are reserved, so that when the Wi-Fi network of the user terminal is started, a target application program needing to access the Internet through the mobile network can be automatically accessed to the Internet through the mobile network at the same time, and further the application program shielded by the Wi-Fi network can be accessed to the Internet more conveniently, and the efficiency of accessing the application program in the user terminal to the Internet is improved.
The embodiment of the invention also provides another method for accessing the application program to the Internet, which is realized on the basis of the method of the embodiment; the method mainly describes a specific process of accessing a target application program to the internet through a mobile network, and specifically corresponds to the following steps S304 to S308, as shown in fig. 3, the method includes the following steps:
step S302, if the Wi-Fi network of the user terminal is started, acquiring a target application program which is in the user terminal and needs to access the Internet through a mobile network;
step S304, an IP address and a port number for accessing the internet through the mobile network are allocated to the target application.
The IP address may be understood as an IP address assigned by the mobile base station device to provide a mobile network connection; the port number can be understood as a port ID that can provide a mobile network connection; when a target application program which needs to access the internet through a mobile network in a user terminal is obtained, an IP address and a port ID which are used for accessing the internet through the mobile network based on the RAT are distributed to the target application program.
Step S306, binding both the allocated IP address and the allocated port number with the target application program.
In practical implementation, the obtained target application program is forced to be bound to an IP address allocated by the RAT-based mobile network, and a corresponding port ID is obtained.
And step S308, accessing the target application program to the Internet through the allocated IP address and the allocated port number.
And the user terminal accesses the target application program to the Internet through the mobile network based on the RAT through the allocated IP address and the allocated port ID so that the target application program performs data transmission through the mobile network.
The method for accessing the application program to the Internet can intelligently manage network connection. By using a watcher process, a list of applications that have been masked by the Wi-Fi network can be established for the enterprise Wi-Fi area based on the ID and port information of the applications. Once the user opens the application program masked in the application program list, a single public data network PDN is triggered to be established to obtain the ip service allocated by the EPC/P-GW. A PDN is automatically generated and IP services are allocated to the user. The EPC is a Core network of LTE, and is called Evolved Packet Core network in English; LTE (Long Term Evolution ) is a transition between 3G and 4G technologies; the P-GW is a PDN GateWay and is called PDN GateWay in English; a PDN (Public Data Network, PDN for short; Public Data Network) is a Public Data Network.
In the related art, if a user wants to access a shielded application program or website, the user needs to install a Virtual Private Network (VPN) or a third-party VPN application to shield an IP address, so as to access all the application programs or websites. However, as countries begin to restrict VPN usage, this practice becomes progressively ineffective. Under the condition that the VPN is unavailable, the shielded application program and the website can be continuously accessed on the premise of not violating the limit of related government departments or enterprises by using the method for accessing the Internet by the application program.
According to the method for accessing the application program to the internet, after a target application program which needs to access the internet through a mobile network in a user terminal is obtained, an IP address and a port number which are used for accessing the internet through the mobile network are allocated to the target application program and are bound with the target application program, and the target application program is accessed to the internet through the allocated IP address and the allocated port number. According to the method, two network paths, namely the Wi-Fi network and the mobile network parallel to the Wi-Fi network, are reserved, so that when the Wi-Fi network of the user terminal is started, a target application program needing to access the Internet through the mobile network can be automatically accessed to the Internet through the mobile network at the same time, and further the application program shielded by the Wi-Fi network can be accessed to the Internet more conveniently, and the efficiency of accessing the application program in the user terminal to the Internet is improved.
To further understand the above embodiments, a flowchart for determining a network connection state of an application program through a program algorithm is provided below, as shown in fig. 4, in a Wi-Fi network enabled state, identifying and recording all application programs, such as application program 1 and application program 2, on a user terminal through the program algorithm until a network connection condition of the application program n, evaluating and checking the application programs that cannot access the internet through the Wi-Fi network, determining whether to send a relevant indication to an app binding process according to a connection state identifier of each application program, if an application program shielded by the Wi-Fi network is detected, constructing an indication containing an app ID and port configuration information, and sending the indication to the app binding process; if the application program shielded by the Wi-Fi network is not detected, all the application programs can be understood to be accessed to the Internet through the Wi-Fi network; the above-described process is repeatedly performed each time the user terminal connects to the Wi-Fi network.
There is also provided a flow chart below of the app binding process providing a network connection, as shown in fig. 5, the app binding process receives a message containing an app ID, and the port configuration information, the app binding process adds the masked application to the "RAT restriction suspicion list", and identifies the applications added to the "RAT restricted suspect list" list, the app binding process will provide network connectivity to the masked applications over the mobile network, and feeds back a signal to the program algorithm, which confirms the network connection status of the masked application program, if the network connection state is normal, the APP binding process receives "APP has been masked by Wi-Fi, but not shielded by the mobile network, and adding the application program which is not shielded by the mobile network into a final 'RAT restriction list', and continuing to provide network connection for the shielded application program through the mobile network.
A schematic diagram of a maintenance manner of the RAT restriction list is also provided below, as shown in fig. 6, the RAT restriction list may be updated or modified according to a user instruction, that is, a user may select an application program connected to the internet only through a mobile network according to a requirement, and update the application program into the RAT restriction list; the RAT restriction list may also be updated or modified according to the program algorithm and app binding process inside the ue; in practical implementations, the "RAT restriction list" may be typically stored in a database of the user terminal. Corresponding to the above method embodiment, refer to fig. 7, which is a schematic structural diagram of an apparatus for accessing an application program to the internet, the apparatus being disposed in a user terminal, the user terminal being connected to the internet through a Wi-Fi network and a mobile network; the device includes: an obtaining module 70, configured to obtain a target application program, which needs to access the internet through a mobile network, in a user terminal if a Wi-Fi network of the user terminal is started; and an access module 71, configured to access the target application to the internet through the mobile network.
According to the device for accessing the application program to the internet, provided by the embodiment of the invention, if the Wi-Fi network of the user terminal is started, the target application program which needs to access the internet through the mobile network in the user terminal is obtained; and accessing the target application program to the Internet through the mobile network. The device enables the Wi-Fi network of the user terminal to be started, and simultaneously and automatically enables the target application program which needs to be accessed to the Internet through the mobile network by reserving two network access ways, namely the Wi-Fi network and the mobile network parallel to the Wi-Fi network, so that the application program shielded by the Wi-Fi network can be accessed to the Internet more conveniently, and the efficiency of accessing the application program in the user terminal to the Internet is improved.
Further, the obtaining module 70 is further configured to: acquiring a preset application program list, and determining an application program in the application program list as a target application program; the application program list is established according to the network connection state of each application program in the user terminal, and/or the application program list is established according to a user instruction.
Further, the obtaining module 70 is further configured to: for each application in the user terminal, performing the following operations: and if the current application program cannot access the Internet through the Wi-Fi network and can access the Internet through the mobile network, adding the current application program into the application program list.
Further, a connection state identifier is preset in the current application program; the connection state identifier is used for indicating whether the current application program can be accessed to the Internet through a Wi-Fi network; the obtaining module 70 is further configured to: if the connection state identifier indicates that the current application program cannot access the Internet through the Wi-Fi network, acquiring a program identifier and port configuration information of the current application program; establishing connection between the current application program and the internet through a mobile network according to the program identifier and the port configuration information; and if the current application program can access the Internet through the mobile network, adding the current application program into the application program list.
Further, the application program list comprises a first list and a second list; the first list is established according to the network connection state of each application program in the user terminal; the second list is established according to a user instruction; the obtaining module 70 is further configured to: and if the preset application program belongs to the second list and does not belong to the first list, determining the preset application program as a target application program.
Further, the access module 71 is further configured to: allocating an IP address and a port number for accessing the Internet through a mobile network to a target application program; binding the allocated IP address and the port number with the target application program; and accessing the target application program to the Internet through the allocated IP address and the port number.
The implementation principle and the generated technical effect of the device for accessing the application program to the internet provided by the embodiment of the invention are the same as those of the embodiment of the method for accessing the application program to the internet, and for the sake of brief description, no mention is made in the embodiment of the device for accessing the application program to the internet, and reference may be made to the corresponding contents in the embodiment of the method for accessing the application program to the internet.
An embodiment of the present invention further provides a user terminal, as shown in fig. 8, where the user terminal includes a processor 130 and a memory 131, the memory 131 stores machine executable instructions that can be executed by the processor 130, and the processor 130 executes the machine executable instructions to implement the method for accessing the internet by the application program.
Further, the user terminal or the server shown in fig. 8 further includes a bus 132 and a communication interface 133, and the processor 130, the communication interface 133 and the memory 131 are connected through the bus 132.
The Memory 131 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 132 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
The processor 130 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 130. The Processor 130 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131 and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the method for accessing the application program to the internet, and specific implementation may refer to method embodiments, and is not described herein again.
The method, the apparatus, and the computer program product of the user terminal for accessing the application program to the internet according to the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for accessing an application program to the Internet is characterized in that the method is applied to a user terminal, and the user terminal is connected with the Internet through a Wi-Fi network and a mobile network; the method comprises the following steps:
if the Wi-Fi network of the user terminal is started, acquiring a target application program which needs to access the Internet through a mobile network in the user terminal;
and accessing the target application program to the Internet through the mobile network.
2. The method of claim 1, wherein the step of obtaining the target application program of the user terminal that needs to access the internet through the mobile network comprises:
acquiring a preset application program list, and determining an application program in the application program list as a target application program; the application program list is established according to the network connection state of each application program in the user terminal, and/or the application program list is established according to a user instruction.
3. The method according to claim 2, wherein if the application list is established according to the network connection status of each application in the user terminal, the application list is specifically established by:
for each application in the user terminal, performing the following operations: and if the current application program cannot access the Internet through the Wi-Fi network and can access the Internet through the mobile network, adding the current application program into the application program list.
4. The method according to claim 3, wherein the current application program is preset with a connection status identifier; the connection state identifier is used for indicating whether the current application program can access the Internet through the Wi-Fi network;
if the current application program can not access the Internet through the Wi-Fi network and can access the Internet through the mobile network, the step of adding the current application program to the application program list comprises the following steps:
if the connection state identifier indicates that the current application program cannot access the Internet through the Wi-Fi network, acquiring a program identifier and port configuration information of the current application program;
establishing connection between the current application program and the internet through the mobile network according to the program identification and the port configuration information;
and if the current application program can access the Internet through the mobile network, adding the current application program into the application program list.
5. The method of claim 2, wherein the application list comprises a first list and a second list; the first list is established according to the network connection state of each application program in the user terminal; the second list is established according to a user instruction;
the step of determining the application program in the application program list as the target application program includes: and if the preset application program belongs to the second list and does not belong to the first list, determining that the preset application program is a target application program.
6. The method of claim 1, wherein the step of accessing the target application to the internet via the mobile network comprises:
allocating an IP address and a port number for accessing the Internet through the mobile network to the target application program;
binding the allocated IP address and the allocated port number with the target application program;
and accessing the target application program to the Internet through the allocated IP address and the allocated port number.
7. The device for accessing the application program to the Internet is characterized in that the device is arranged on a user terminal, and the user terminal is connected with the Internet through a Wi-Fi network and a mobile network; the device comprises:
the acquisition module is used for acquiring a target application program which needs to access the Internet through a mobile network in the user terminal if the Wi-Fi network of the user terminal is started;
and the access module is used for accessing the target application program to the Internet through the mobile network.
8. The apparatus of claim 7, wherein the obtaining module is further configured to:
acquiring a preset application program list, and determining an application program in the application program list as a target application program; the application program list is established according to the network connection state of each application program in the user terminal, and/or the application program list is established according to a user instruction.
9. A user terminal comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of any one of claims 1 to 6 for accessing the internet by an application program.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any of claims 1 to 6 for accessing the internet by an application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010134060.8A CN113329473B (en) | 2020-02-28 | 2020-02-28 | Method and device for accessing application program to Internet and user terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010134060.8A CN113329473B (en) | 2020-02-28 | 2020-02-28 | Method and device for accessing application program to Internet and user terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113329473A true CN113329473A (en) | 2021-08-31 |
CN113329473B CN113329473B (en) | 2023-02-17 |
Family
ID=77412951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010134060.8A Active CN113329473B (en) | 2020-02-28 | 2020-02-28 | Method and device for accessing application program to Internet and user terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113329473B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114071628A (en) * | 2022-01-06 | 2022-02-18 | 深圳佑驾创新科技有限公司 | Terminal communication method and device based on android system and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130149996A1 (en) * | 2011-12-09 | 2013-06-13 | Verizon Patent And Licensing Inc. | Public key cryptography for applications requiring generic bootstrap architecture |
CN105357373A (en) * | 2015-10-08 | 2016-02-24 | 广州中海达定位技术有限公司 | Method and system for simultaneously using plurality of networks based on Android system |
CN105472678A (en) * | 2014-07-31 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Wireless network switching method, wireless network switching device and terminal equipment |
CN105791560A (en) * | 2016-02-26 | 2016-07-20 | 广东欧珀移动通信有限公司 | Data network access control method and user terminal |
US20170054760A1 (en) * | 2011-10-11 | 2017-02-23 | Citrix Systems, Inc. | Policy-Based Application Management |
CN107750055A (en) * | 2017-09-29 | 2018-03-02 | 努比亚技术有限公司 | Wi Fi control methods, mobile terminal and computer-readable recording medium |
CN108243417A (en) * | 2017-12-27 | 2018-07-03 | 努比亚技术有限公司 | Method, mobile terminal and storage medium are determined based on the user right of WIFI connections |
CN108401259A (en) * | 2017-02-07 | 2018-08-14 | 蔡伟英 | A kind of mobile terminal multi-mode formula internet access method and system |
-
2020
- 2020-02-28 CN CN202010134060.8A patent/CN113329473B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170054760A1 (en) * | 2011-10-11 | 2017-02-23 | Citrix Systems, Inc. | Policy-Based Application Management |
US20130149996A1 (en) * | 2011-12-09 | 2013-06-13 | Verizon Patent And Licensing Inc. | Public key cryptography for applications requiring generic bootstrap architecture |
CN105472678A (en) * | 2014-07-31 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Wireless network switching method, wireless network switching device and terminal equipment |
CN105357373A (en) * | 2015-10-08 | 2016-02-24 | 广州中海达定位技术有限公司 | Method and system for simultaneously using plurality of networks based on Android system |
CN105791560A (en) * | 2016-02-26 | 2016-07-20 | 广东欧珀移动通信有限公司 | Data network access control method and user terminal |
CN108401259A (en) * | 2017-02-07 | 2018-08-14 | 蔡伟英 | A kind of mobile terminal multi-mode formula internet access method and system |
CN107750055A (en) * | 2017-09-29 | 2018-03-02 | 努比亚技术有限公司 | Wi Fi control methods, mobile terminal and computer-readable recording medium |
CN108243417A (en) * | 2017-12-27 | 2018-07-03 | 努比亚技术有限公司 | Method, mobile terminal and storage medium are determined based on the user right of WIFI connections |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114071628A (en) * | 2022-01-06 | 2022-02-18 | 深圳佑驾创新科技有限公司 | Terminal communication method and device based on android system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113329473B (en) | 2023-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3231153B1 (en) | Distributing a network access policy | |
US11689577B2 (en) | Method and system for operating and monitoring permissions for applications in an electronic device | |
US9479450B2 (en) | Resolving communication collisions in a heterogeneous network | |
US20210250771A1 (en) | Method For Determining Class Information And Apparatus | |
US11057309B2 (en) | Management method, management unit, and system | |
WO2019056883A1 (en) | Network slice deployment method and related device | |
US11356416B2 (en) | Service flow control method and apparatus | |
US11463364B2 (en) | Methods, nodes and operator network for enabling filtering of traffic from an application | |
CN111147425A (en) | Data access processing method, device, equipment and storage medium | |
CN110870256B (en) | Method, system and computer readable medium for operating a telecommunication network | |
TW201902285A (en) | Method and terminal for determining establishment cause | |
CN111163471B (en) | Method, device, equipment and storage medium for protecting integrity of service data | |
CN113329473B (en) | Method and device for accessing application program to Internet and user terminal | |
CN114339948A (en) | Communication method and communication device | |
CN111262782B (en) | Message processing method, device and equipment | |
US11108914B2 (en) | Method and system for revenue maximization in a communication network | |
US20230006967A1 (en) | Machine learning capable mac filtering for enforcing edge security over mac randomization in wlan networks | |
US20210410207A1 (en) | Data sending method, terminal device, and storage medium | |
US20240121617A1 (en) | Data Messaging Quality Check Tool | |
CN114980272B (en) | Mobility policy configuration method and device, electronic equipment and storage medium | |
WO2023116356A1 (en) | Information configuration method and apparatus, and related devices and storage medium | |
CN114567876A (en) | Equipment network access number management method, system, storage medium and electronic equipment | |
CN118054929A (en) | Flow optimization method, device, controller, switch and storage medium | |
CN110769424A (en) | Illegal terminal identification method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |