WO2019205133A1 - Vpn line handover method, apparatus and electronic device - Google Patents

Vpn line handover method, apparatus and electronic device Download PDF

Info

Publication number
WO2019205133A1
WO2019205133A1 PCT/CN2018/085081 CN2018085081W WO2019205133A1 WO 2019205133 A1 WO2019205133 A1 WO 2019205133A1 CN 2018085081 W CN2018085081 W CN 2018085081W WO 2019205133 A1 WO2019205133 A1 WO 2019205133A1
Authority
WO
WIPO (PCT)
Prior art keywords
line
mobile terminal
vpn
vpn line
according
Prior art date
Application number
PCT/CN2018/085081
Other languages
French (fr)
Chinese (zh)
Inventor
袁国勇
Original Assignee
深圳前海达闼云端智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海达闼云端智能科技有限公司 filed Critical 深圳前海达闼云端智能科技有限公司
Priority to PCT/CN2018/085081 priority Critical patent/WO2019205133A1/en
Publication of WO2019205133A1 publication Critical patent/WO2019205133A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. local area networks [LAN], wide area networks [WAN]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters used to improve the performance of a single terminal
    • H04W36/32Reselection being triggered by specific parameters used to improve the performance of a single terminal by location or mobility data, e.g. speed data

Abstract

A VPN line handover method, apparatus and electronic device, the method comprising: acquiring line parameters of a mobile terminal (101); determining a VPN line for the mobile terminal according to the line parameters (102); and controlling the mobile terminal to switch over to the determined VPN line, wherein there are at least two VPN lines, and there is a one-to-one correspondence between the line parameters and the VPN lines (103). The described method may allow a mobile terminal to automatically connect to and switch VPN lines according to the line parameters thereof without requiring a user to manually select a VPN, thus making the operation of the user connecting to a VPN more convenient and improving the user experience.

Description

VPN line switching method, device and electronic device Technical field

The present invention relates to the field of virtual private network (VPN) switching technologies, and in particular, to a VPN line switching method, device, and electronic device.

Background technique

At present, enterprises and organizations are paying more and more attention to network security. Some sensitive or security-related services are usually deployed in intranets. Under the general trend of mobile office, when a user involves multiple different intranet services at the same time, multiple different intranet services need to be processed through multiple different VPNs. Generally, users are based on their current You need to manually select a VPN to enter the corresponding intranet.

However, manually selecting the corresponding VPN each time may cause inconvenience to the user's operation, which is not conducive to the user experience.

Summary of the invention

The embodiment of the present invention provides a method, a device, and an electronic device for switching a VPN line, which are mainly used to solve the problem that the user is not convenient to operate by manually switching the VPN.

To solve the above technical problem, a technical solution adopted by the embodiment of the present application is to provide a VPN line switching method, which is applied to a mobile terminal, and the method includes:

Obtaining line parameters of the mobile terminal;

Determining, according to the line parameter, a VPN line of the mobile terminal;

And controlling the mobile terminal to switch to the determined VPN line, where the number of the VPN lines is at least two, and the line parameters have a one-to-one correspondence with the VPN line.

Optionally, the line parameter of the mobile terminal includes at least one of the following:

The name of the WIFI to which the mobile terminal is connected;

The location where the mobile terminal is located;

The system time of the mobile terminal;

The NFC punching information of the mobile terminal.

Optionally, when the obtained line parameter includes at least two items, determining, according to the line parameter, the VPN line of the mobile terminal includes:

Obtaining a line parameter with the highest priority according to a priority corresponding to the at least two line parameters;

Determining a VPN line of the mobile terminal according to the highest priority line parameter.

Optionally, before the acquiring the line parameter of the mobile terminal, the method further includes: after detecting that the user account is logged in to the mobile terminal, controlling the user account to connect to a default VPN line;

After determining the VPN line of the mobile terminal according to the line parameter, the method further includes: determining whether the default VPN line is the same as the determined VPN line, and if not, performing the control The step of the mobile terminal switching to the determined VPN line.

Optionally, the default VPN line is:

The VPN line to which the user account was last connected; or

The VPN line with the highest connection frequency in the preset time of the user account; or

The user account has the longest connection time of the VPN line in the preset time.

In order to solve the above technical problem, another technical solution adopted by the embodiment of the present application is to provide a VPN line switching device, which is applied to a mobile terminal, and the device includes:

An acquiring module, configured to acquire a line parameter of the mobile terminal;

a determining module, configured to determine, according to the line parameter, a VPN line of the mobile terminal;

And a switching module, configured to control the mobile terminal to switch to the determined VPN line, where the number of the VPN lines is at least two, and the line parameters have a one-to-one correspondence with the VPN line.

Optionally, the acquiring module is specifically configured to obtain at least one of the following:

The name of the WIFI to which the mobile terminal is connected;

The location where the mobile terminal is located;

The system time of the mobile terminal;

The NFC punching information of the mobile terminal.

Optionally, when the obtained line parameter includes at least two items, the determining module includes:

An obtaining unit, configured to obtain a line parameter with the highest priority according to a priority corresponding to the at least two line parameters;

And a determining unit, configured to determine, according to the highest priority line parameter, the VPN line of the mobile terminal.

Optionally, before the obtaining the line parameter of the mobile terminal, the device further includes a control module, where the control module is configured to control the user account connection default after detecting that the user account logs in to the mobile terminal. VPN line;

After determining the VPN line of the mobile terminal according to the line parameter, the device further includes a determining module, where the determining module is configured to determine whether the default VPN line is the same as the determined VPN line, if If not, the step of controlling the mobile terminal to switch to the determined VPN line is performed.

Optionally, the default VPN line is:

The VPN line to which the user account was last connected; or

The VPN line with the highest connection frequency in the preset time of the user account; or

The user account has the longest connection time of the VPN line in the preset time.

In order to solve the above technical problem, another technical solution adopted by the embodiment of the present application is to provide an electronic device, including: at least one processor; and a memory communicably connected to the at least one processor; wherein the memory An instruction program executable by the at least one processor is stored, the instruction program being executed by the at least one processor to cause the at least one processor to perform a VPN line switching method as described above.

In order to solve the above technical problem, another technical solution adopted by the embodiment of the present application is to provide a computer program product, the computer program product comprising: a non-volatile computer readable storage medium, and embedded in the non-easy Computer program instructions for a computer readable storage medium, the computer program instructions comprising instructions for causing a processor to perform a VPN line switching method as described above.

In order to solve the above technical problem, another technical solution adopted by the embodiment of the present application is to provide a non-transitory computer readable storage medium storing computer executable instructions, the computer executable The instructions are for causing a computer to perform the VPN line switching method as described above.

In the embodiment of the present application, the VPN line of the mobile terminal is obtained by acquiring the line parameter of the mobile terminal, and then determining the VPN line of the mobile terminal according to the line parameter. This embodiment enables the mobile terminal to automatically connect and switch the VPN line according to its line parameters, without requiring the user to manually select a VPN, which brings convenience for the user to connect to the VPN and improves the user experience.

DRAWINGS

The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.

1 is a schematic diagram of an operating environment of an embodiment of the present application;

2 is a schematic flowchart of a VPN line switching method according to an embodiment of the present application;

3 is a schematic flowchart of a method for switching a VPN line according to another embodiment of the present application;

4 is a schematic structural diagram of a VPN line switching apparatus according to an embodiment of the present application;

FIG. 5 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present disclosure.

detailed description

In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.

It should be noted that, if there is no conflict, the various features in the embodiments of the present application may be combined with each other, and are all within the protection scope of the present application. In addition, although the functional module division is performed in the device schematic, the logical sequence is shown in the flowchart, but in some cases, it may be performed in a different manner from the module in the device schematic, or in the order in the flowchart. The steps that are described or described.

In order to facilitate the reader's understanding of the present application, the operating environment of the present application is described before the description of the inventive concept of the present application. Referring to FIG. 1 , FIG. 1 is a schematic diagram of an operating environment of an embodiment of the present application, where the operating environment includes EMM server 10, EMM terminal 20, and VPN network 30. The EMM server 10 and the EMM terminal 20 are servers and terminals deployed based on an Enterprise Mobile Management (EMM) platform. EMM is a set of technology platform and management method for realizing the mobile use of mobile phones, tablet computers, desktop computers and other mobile terminals for enterprise employees. EMM is related to the process of enterprise mobile information construction through mobile information technology and management means. Enterprise mobile devices, applications, information and other content provide information management solutions and services.

In this embodiment, the EMM server 10 can provide corresponding service or logical computing capabilities, such as configuring a VPN policy, and configuring trigger conditions corresponding to each VPN policy. The EMM server 10 can also be connected to one or more databases, invoking relevant data (such as obtaining the currently connected VPN line information from the EMM terminal 20 and storing it) or program instructions. The EMM server 10 may specifically be a server, or a server cluster composed of several servers, or a cloud computing service center. The EMM terminal 20 is connected to the EMM server 10 through a wireless network or a wired network. The EMM terminal 20 may be a mobile terminal device such as a mobile phone, a tablet computer, a notebook computer, or a desktop computer. In this embodiment, the EMM terminal 20 is mainly used to perform a VPN line switching method, for example, acquiring its own line parameters; determining its VPN line according to the line parameters; and controlling to switch to the determined VPN line, where The number of the VPN lines is at least two, and the line parameters have a one-to-one correspondence with the VPN lines. The VPN network 30 includes at least two, which are respectively connected to the EMM terminal 20, so that the EMM terminal 20 accesses the relevant intranet through the connected VPN network 30. The VPN network 30 can be deployed in an end-to-end mode, either a vendor-enterprise mode or an internal vendor mode.

In this embodiment, the line parameters acquired by the EMM terminal 20 have a one-to-one correspondence with the VPN network.

It should be noted that the operating environment provided by the embodiment of the present application is not limited to the operating environment shown in FIG. 1 . Although only one EMM server 10 and one EMM terminal 20 are shown in FIG. 1, and the correspondence between one EMM terminal 20 and a plurality of VPN networks 30, those skilled in the art can understand that in practical applications, the operating environment More EMM server 10 and EMM terminal 20, as well as a corresponding relationship of multiple EMM terminals 20 with VPN network 30, may also be included.

The following is a schematic diagram of a VPN line switching method applied to the foregoing operating environment. Referring to FIG. 2, FIG. 2 is a schematic flowchart of a VPN line switching method according to an embodiment of the present disclosure, where the method includes:

Step 101: Obtain a line parameter of the mobile terminal.

Step 102: Determine, according to the line parameter, a VPN line of the mobile terminal.

Step 103: Control the mobile terminal to switch to the determined VPN line, where the number of the VPN lines is at least two, and the line parameters have a one-to-one correspondence with the VPN line.

In the present embodiment, the VPN line switching method is performed by the EMM terminal 20 described above, where the EMM terminal is the mobile terminal. Obtaining the line parameter of the mobile terminal, that is, the mobile terminal acquires its own line parameter. The mobile terminal can periodically acquire its own line parameters, and automatically obtain its line parameters every preset period value. The setting of the period value can be determined according to the frequency of the VPN terminal switching the VPN line, if the handover is performed. If the frequency of the VPN line is high, the period value can be relatively small. The line parameter refers to a parameter associated with the mobile terminal and satisfies a VPN line connection condition, wherein the VPN line connection condition may be preset in the EMM server 10 and delivered by the EMM server 10 to the mobile terminal. .

In this embodiment, the line parameter includes at least one of the following: a WIFI name to which the mobile terminal is connected, a location where the mobile terminal is located, a system time of the mobile terminal, and an NFC of the mobile terminal. Punch information.

The name of the WIFI to which the mobile terminal is connected refers to the name of the WIFI to which the mobile terminal is currently connected. All the WIFI names on the mobile terminal connection may be set as line parameters, and part of the WIFI name on the mobile terminal connection may also be set as a line parameter. For example, a WIFI whitelist may be preset, and only the WIFI name on the mobile terminal connection is on the WIFI whitelist, and the WIFI names can be used as line parameters. The WIFI whitelist refers to a WIFI list that enables the mobile terminal to meet the VPN line switching conditions and can be connected according to the specific application scenario of the current VPN line handover. Filtering the line parameters through the WIFI white list can help the mobile terminal to quickly obtain suitable line parameters, thereby shortening the time for determining the VPN line of the mobile terminal. Determining, according to the line parameter, the VPN line of the mobile terminal, according to the line parameter, searching for a VPN line corresponding to the WIFI name, where the line parameter is a WIFI name to which the mobile terminal is connected, The discovered VPN line is the VPN line of the mobile terminal. Each WIFI name corresponds to a VPN line.

It can be understood that in some cases, different WIFI networks will set the same WIFI name. In this case, multiple identical WIFI names correspond to the same VPN line. In order to avoid VPN line access errors, it may be further based on the access network. The MAC address of the gateway device selects a VPN line, and each MAC address corresponds to a VPN line. Therefore, even if the name of the WIFI connected to the mobile terminal is the same, the MAC address of the access is different, so that the corresponding VPN line can be correctly determined.

The location where the mobile terminal is located may be detected by the mobile terminal by using a positioning module (such as a GPS positioning module) carried by the mobile terminal, and the current location of the mobile terminal is obtained. In this embodiment, when the line parameter is the current location of the mobile terminal, determining the VPN line of the mobile terminal according to the line parameter includes: searching in a preset geofence information table. Determining, by the location of the mobile terminal, whether the location of the mobile terminal is currently included in the geo-fence information table, and if so, acquiring a VPN code corresponding to the location, thereby determining a VPN of the mobile terminal line. The VPN code is used to identify the VPN line, and each VPN line corresponds to a VPN code. The geo-fence information table is pre-established and may be stored in the EMM server 10, where the geo-fence information table includes a plurality of different geographic regions, and VPN lines corresponding to the plurality of different geographic regions. The plurality of different geographical areas are determined according to specific application scenarios involved in the current VPN line switching. For example, a specialist is employed in three hospitals A, B, and C respectively, and the doctor needs to separately access the work. The intranet of the three hospitals, where the geofence information table can be pre-determined based on the geographic location of the three hospitals A, B, and C, and the hospital A is divided into area 1, and corresponding to VPN1, B The hospital is divided into area 2, and corresponding to VPN2, the C hospital is divided into area 3, and corresponding to VPN3, if it is detected that the current location of the doctor is located in area 2, it is determined that the VPN line of the mobile terminal is VPN2.

The system time of the mobile terminal refers to the current system time of the mobile terminal, which is specifically a certain time. When the line parameter is the system time of the mobile terminal, determining the VPN line of the mobile terminal according to the line parameter comprises: searching for a system time of the mobile terminal in a preset time fence information table, Determining whether the system time of the mobile terminal is included in the time fence information table, and if yes, acquiring a VPN code corresponding to the system time, thereby determining a VPN line of the mobile terminal. The time fence information table is pre-established and may be stored in the EMM server 10, where the time fence information table includes a plurality of different time segments, and the VPN lines corresponding to the plurality of different time segments respectively. For example, the time fence information table can be specifically as shown in Table 1 below:

Table 1

period VPN coding VPN line Monday 8:30am-12:00am VPN-A A hospital's corresponding VPN line Monday 2:00pm-5:30pm VPN-B VPN line corresponding to hospital B Wednesday 2:00pm-5:30pm VPN-A A hospital's corresponding VPN line Friday 8:30am-5:30pm VPN-C C hospital corresponding VPN line

If the current system time of the mobile terminal is “Monday 3:00 pm”, it is determined that the VPN line of the mobile terminal is a VPN line corresponding to the B hospital. In the time fence information table, the VPN code determined in different time periods may be determined according to the user's historical time to connect to the VPN coding habit, or may be determined by other means. In addition, the time fence information table may be dynamically updated, and each mobile terminal user may be allocated a management time fence information table in the EMM server, and the time fence information table is dynamically updated according to the time when the mobile terminal connects to the VPN line.

The NFC punching information of the mobile terminal includes a time when the mobile terminal performs NFC punching, and a geographic location when the mobile terminal performs NFC punching. The mobile terminal includes an NFC punching function, and when it performs NFC punching, the mobile terminal automatically acquires its current system time and the current geographic location of the mobile terminal. In this embodiment, the VPN line of the mobile terminal is determined according to the line parameter, that is, the VPN line is determined according to the system time when the mobile terminal performs NFC punching or its current geographic location; or, according to the mobile terminal The system time and its current geographic location when the NFC is punched determines its VPN line. For the specific determination of the VPN line according to the system time when the mobile terminal performs NFC punching or its current geographical location, reference may be made to the foregoing embodiment. Determining the VPN line according to the system time when the mobile terminal performs NFC punching and its current geographic location, that is, considering both the time and the geographical location, only the two limiting factors satisfy the preset time and pre-determination. When the geographical location is set, the preset time and the VPN line corresponding to the preset geographical location are selected. In this embodiment, the VPN line is determined by two limiting factors, time and geographical location, so that the determined VPN line can better meet the actual needs of the user, and the determined VPN line has higher accuracy.

It should be noted that, in addition to the line parameters listed above, the line parameter may further include other parameters. For example, the line parameter may also be a MAC address of a gateway device of the mobile terminal accessing the network, different. The MAC address corresponds to a unique VPN line.

The foregoing process is to determine a VPN line of the mobile terminal according to a line parameter. When the line parameter acquired by the mobile terminal includes at least two items, the determining, according to the line parameter, the VPN line of the mobile terminal includes: Obtaining, according to the priority corresponding to the at least two line parameters, obtaining a line parameter with the highest priority; determining a VPN line of the mobile terminal according to the line parameter with the highest priority.

For example, the currently obtained line parameters of the mobile terminal include: a WIFI name to which the mobile terminal is connected, a current location of the mobile terminal, and a current system time of the mobile terminal, and the three line parameters correspond to The priority from high to low is the current location of the mobile terminal, the WIFI name to which the mobile terminal is connected, and the current system time of the mobile terminal. Then, according to the current location of the mobile terminal, Determining the VPN line of the mobile terminal.

The priority of the above line parameters may be dynamically updated based on big data. For example, a doctor works at A hospital every day at 10 am and connects to the VPN line corresponding to hospital A. At this time, the position priority is the highest. But from a certain day, the doctor started to connect to the VPN line of Hospital B at A hospital every day at 10:00 am. With the accumulation of the number of times, when the number of times reaches the threshold, the priority of time is higher than the priority of the position. Update the priority corresponding to the line parameter.

In the above process, when the acquired line parameters include multiple items, a line parameter is determined from the plurality of line parameters according to the priority corresponding to the line parameter, and then the VPN line of the mobile terminal is determined according to the determined line parameter. It should be noted that, besides this embodiment, the VPN line of the mobile terminal may be determined by other means. For example, the VPN line of the mobile terminal is directly determined based on a preset algorithm and a current multiple line parameter.

The embodiment of the present application provides a method for switching a VPN line, which determines a VPN line of the mobile terminal according to the line parameter of the mobile terminal, and then controls the VPN line determined by the mobile terminal to connect. This embodiment enables the mobile terminal to automatically connect and switch the VPN line according to its line parameters, without requiring the user to manually select a VPN, which brings convenience for the user to connect to the VPN and improves the user experience.

Referring to FIG. 3, FIG. 3 is a schematic flowchart of a VPN line switching method according to another embodiment of the present disclosure, where the method includes:

Step 201: After detecting that the user account logs in to the mobile terminal, control the user account to connect to a default VPN line.

Step 202: Obtain a line parameter of the mobile terminal.

Step 203: Determine, according to the line parameter, a VPN line of the mobile terminal.

Step 204: Determine whether the default VPN line is the same as the determined VPN line.

Step 205: If not, control the mobile terminal to switch to the determined VPN line, where the number of the VPN lines is at least two, and the line parameters have a one-to-one correspondence with the VPN line. .

In this embodiment, the user involved in the VPN handover may register in the EMM server 10, and the registered user account may log in to the EMM server 10 through the EMM terminal 20 (that is, the mobile terminal). The above may be that the mobile terminal itself detects whether the user account is logged in, or the mobile terminal obtains related information of the user account login from the EMM server 10. After the user account is logged in to the mobile terminal, the user account is controlled to connect to the default VPN line, and the default VPN line is a VPN line sent by the EMM server 10 to the mobile terminal according to a preset VPN configuration policy, for example, The default VPN line is: the VPN line that the user account is connected last time, or the VPN line with the highest connection frequency in the preset time of the user account, or the longest connection time in the preset time of the user account. VPN lines, etc. In this embodiment, when the user starts to connect to the VPN, the user does not need to manually select, and the user's history is used to connect the VPN line, and the VPN line is automatically allocated to the user, which simplifies the operation of connecting the VPN to the user, and brings convenience to the user operation. .

After the mobile terminal is connected to the default VPN line, the line parameters of the mobile terminal may be obtained periodically, and the VPN line of the mobile terminal may be determined according to the obtained line parameter, and the process may refer to the foregoing embodiment. The narrative will not be repeated here.

In this embodiment, before switching the VPN line, the default connected VPN line is compared with the determined VPN line, and when the two are different, the VPN line is switched. Otherwise, the default VPN line is still connected. Thereby, the repeated VPN line duplication is avoided.

It should be noted that, in the foregoing embodiment, the process of controlling the VPN line switching is mainly performed by the mobile terminal. In other embodiments, the switching of the VPN line may also be controlled by the EMM server 10, for example, according to the foregoing. After the line parameter determines the VPN line of the mobile terminal, the determined VPN line is sent to the EMM server 10, and the EMM server 10 controls the user account to switch to the determined VPN line.

The embodiment of the present application provides a VPN line switching method, which automatically allocates a default VPN line for the user account by detecting the logged user account, and the mobile terminal connects to the default VPN line, and further, according to the mobile The line parameters of the terminal determine the VPN line that the mobile terminal can switch, thereby implementing the switching of the VPN line. This embodiment implements two ways of automatically connecting the VPN line, and does not require manual operation by the user. In addition, the embodiment can automatically connect the corresponding VPN line according to the user account and the specific application scenario, thereby ensuring the connected VPN line. Reliability.

Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a VPN line switching apparatus according to an embodiment of the present disclosure. As shown in FIG. 4, the apparatus 40 includes an obtaining module 41, a determining module 42, and a switching module 43.

The obtaining module 41 is configured to acquire a line parameter of the mobile terminal, and the determining module 42 is configured to determine a VPN line of the mobile terminal according to the line parameter, and the switching module 43 is configured to control the mobile terminal to switch to The determined VPN line, wherein the number of the VPN lines is at least two, and the line parameters have a one-to-one correspondence with the VPN line.

The acquiring module 41 is specifically configured to acquire at least one of the following: a name of the WIFI to which the mobile terminal is connected; a location where the mobile terminal is located; a system time of the mobile terminal; and a location of the mobile terminal NFC punch card information.

In other embodiments, referring also to FIG. 4, when the acquired line parameters include at least two items, the determining module 42 includes: an obtaining unit 421 and a determining unit 422. The obtaining unit 421 is configured to obtain a line parameter with the highest priority according to the priority corresponding to the at least two line parameters. The determining unit 422 is configured to determine a VPN line of the mobile terminal according to the line parameter with the highest priority.

In other embodiments, referring to FIG. 4, before the acquiring the line parameter of the mobile terminal, the device 40 further includes a control module 44, where the control module 44 is configured to detect the user account login. After the mobile terminal is described, the user account is controlled to connect to a default VPN line. After determining the VPN line of the mobile terminal according to the line parameter, the device 40 further includes a determining module 45, where the determining module 45 is configured to determine whether the default VPN line and the determined VPN line are If not, the related operations of the switching module 43 are performed, specifically, the mobile terminal is controlled to switch to the determined VPN line.

The default VPN line is: the VPN line that is connected to the user account last time, or the VPN line with the highest connection frequency in the preset time of the user account, or the connection time of the user account is the longest in the preset time. VPN lines, etc.

It should be noted that the content of the module, the information exchange between the units, the execution process, and the like are based on the same concept as the method embodiment of the present application. For details, refer to the description in the method embodiment of the present application. No longer.

The embodiment of the present application provides a VPN line switching device, which determines a VPN line determined by the mobile terminal by acquiring a line parameter of the mobile terminal, and then determining a VPN line of the mobile terminal according to the line parameter. This embodiment enables the mobile terminal to automatically connect and switch the VPN line according to its line parameters, without requiring the user to manually select a VPN, which brings convenience for the user to connect to the VPN and improves the user experience.

Please refer to FIG. 5. FIG. 5 is a schematic diagram showing the hardware structure of an electronic device according to an embodiment of the present application. The electronic device 50 can perform the VPN line switching method as described above. The electronic device 50 includes:

One or more processors 51 and a memory 52 are exemplified by a processor 51 in FIG.

The processor 51 and the memory 52 can be connected by a bus or other means, as exemplified by a bus connection in FIG.

The memory 52 is a non-volatile computer readable storage medium and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as a program corresponding to the VPN line switching method in the embodiment of the present application. Instructions/modules (eg, the modules shown in Figure 4). The processor 51 executes various functional applications and data processing of the server by executing non-volatile software programs, instructions, and modules stored in the memory 52, that is, implementing the VPN line switching method of the above method embodiment.

The memory 52 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the VPN line switching device, and the like. Moreover, memory 52 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 52 may optionally include memory remotely located relative to processor 51, which may be connected to the VPN line switching device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The one or more modules are stored in the memory 52, and when executed by the one or more processors 51, perform a VPN line switching method in any of the above method embodiments, for example, performing the above described FIG. The method steps 101 to 103 in the method, the steps 201 to 205 in FIG. 3, implement the functions of the modules 41-45 and the units 421-422 in FIG.

The above products can perform the methods provided by the embodiments of the present application, and have the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.

The electronic device of the embodiment of the present application exists in various forms, including but not limited to:

(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones, multimedia phones, functional phones, and low-end phones.

(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices.

(3) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.

(4) Other electronic devices with data interaction functions.

The embodiment of the present application provides a non-transitory computer readable storage medium storing computer-executable instructions that are executed by an electronic device to perform any of the above method embodiments. In the VPN line switching method, for example, performing the method steps 101 to 103 in FIG. 2 described above, the method steps 201 to 205 in FIG. 3, implementing the modules 41-45 in FIG. 4, the units 421-422 Features.

An embodiment of the present application provides a computer program product, including a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer performs the VPN line switching method in any of the foregoing method embodiments, for example, performing the method steps 101 to 103 in FIG. 2 described above, and the method steps 201 to 205 in FIG. 3, implementing the module 41 in FIG. 45. Functions of units 421-422.

The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a general hardware platform, and of course, by hardware. A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; in the idea of the present application, the technical features in the above embodiments or different embodiments may also be combined. The steps may be carried out in any order, and there are many other variations of the various aspects of the present application as described above, which are not provided in the details for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, It should be understood by those skilled in the art that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the embodiments of the present application. The scope of the technical solution.

Claims (13)

  1. A VPN line switching method is applied to a mobile terminal, where the method includes:
    Obtaining line parameters of the mobile terminal;
    Determining, according to the line parameter, a VPN line of the mobile terminal;
    And controlling the mobile terminal to switch to the determined VPN line, where the number of the VPN lines is at least two, and the line parameters have a one-to-one correspondence with the VPN line.
  2. The method according to claim 1, wherein the line parameter of the mobile terminal comprises at least one of the following:
    The name of the WIFI to which the mobile terminal is connected;
    The location where the mobile terminal is located;
    The system time of the mobile terminal;
    The NFC punching information of the mobile terminal.
  3. The method according to claim 1, wherein when the acquired line parameters include at least two items, the determining, according to the line parameters, the VPN line of the mobile terminal comprises:
    Obtaining a line parameter with the highest priority according to a priority corresponding to the at least two line parameters;
    Determining a VPN line of the mobile terminal according to the highest priority line parameter.
  4. A method according to any one of claims 1 to 3, characterized in that
    Before the obtaining the line parameter of the mobile terminal, the method further includes: after detecting that the user account is logged into the mobile terminal, controlling the user account to connect to a default VPN line;
    After determining the VPN line of the mobile terminal according to the line parameter, the method further includes: determining whether the default VPN line is the same as the determined VPN line, and if not, performing the control The step of the mobile terminal switching to the determined VPN line.
  5. The method of claim 4 wherein said default VPN line is:
    The VPN line to which the user account was last connected; or
    The VPN line with the highest connection frequency in the preset time of the user account; or
    The user account has the longest connection time of the VPN line in the preset time.
  6. A VPN line switching device is applied to a mobile terminal, and the device includes:
    An acquiring module, configured to acquire a line parameter of the mobile terminal;
    a determining module, configured to determine, according to the line parameter, a VPN line of the mobile terminal;
    And a switching module, configured to control the mobile terminal to switch to the determined VPN line, where the number of the VPN lines is at least two, and the line parameters have a one-to-one correspondence with the VPN line.
  7. The device according to claim 6, wherein the obtaining module is specifically configured to obtain at least one of the following:
    The name of the WIFI to which the mobile terminal is connected;
    The location where the mobile terminal is located;
    The system time of the mobile terminal;
    The NFC punching information of the mobile terminal.
  8. The apparatus according to claim 6, wherein when the acquired line parameters include at least two items, the determining module comprises:
    An obtaining unit, configured to obtain a line parameter with the highest priority according to a priority corresponding to the at least two line parameters;
    And a determining unit, configured to determine, according to the highest priority line parameter, the VPN line of the mobile terminal.
  9. The device according to any one of claims 6 to 8, wherein before the acquiring the line parameter of the mobile terminal, the device further comprises a control module, wherein the control module is configured to detect a user account After logging in to the mobile terminal, controlling the user account to connect to a default VPN line;
    After determining the VPN line of the mobile terminal according to the line parameter, the device further includes a determining module, where the determining module is configured to determine whether the default VPN line is the same as the determined VPN line, if If not, the step of controlling the mobile terminal to switch to the determined VPN line is performed.
  10. The apparatus of claim 9 wherein said default VPN line is:
    The VPN line to which the user account was last connected; or
    The VPN line with the highest connection frequency in the preset time of the user account; or
    The user account has the longest connection time of the VPN line in the preset time.
  11. An electronic device, comprising:
    At least one processor; and,
    a memory communicatively coupled to the at least one processor; wherein
    The memory stores an instruction program executable by the at least one processor, the instruction program being executed by the at least one processor to cause the at least one processor to perform the method of any one of claims 1 to 5. Methods.
  12. A computer program product, comprising: a non-transitory computer readable storage medium, and computer program instructions embedded in the non-transitory computer readable storage medium, the computer The program instructions include instructions for causing a processor to perform the method of any of claims 1 to 5.
  13. A non-transitory computer readable storage medium, characterized in that the computer readable storage medium stores computer executable instructions for causing a computer to perform any of claims 1 to 5 The method described.
PCT/CN2018/085081 2018-04-28 2018-04-28 Vpn line handover method, apparatus and electronic device WO2019205133A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/085081 WO2019205133A1 (en) 2018-04-28 2018-04-28 Vpn line handover method, apparatus and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201880001462.1A CN109076005A (en) 2018-04-28 2018-04-28 A kind of VPN circuit switching method, device and electronic equipment
PCT/CN2018/085081 WO2019205133A1 (en) 2018-04-28 2018-04-28 Vpn line handover method, apparatus and electronic device

Publications (1)

Publication Number Publication Date
WO2019205133A1 true WO2019205133A1 (en) 2019-10-31

Family

ID=64789283

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/085081 WO2019205133A1 (en) 2018-04-28 2018-04-28 Vpn line handover method, apparatus and electronic device

Country Status (2)

Country Link
CN (1) CN109076005A (en)
WO (1) WO2019205133A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150282058A1 (en) * 2012-10-12 2015-10-01 Nokia Solutions And Networks Oy Method and Apparatus for Access Network Selection
CN106559304A (en) * 2016-11-15 2017-04-05 乐视控股(北京)有限公司 A kind of connection configuration method and device of VPN
CN107181624A (en) * 2017-06-30 2017-09-19 联想(北京)有限公司 A kind of method for connecting network, electronic equipment and computer-readable storage medium
CN107517492A (en) * 2016-06-17 2017-12-26 中兴通讯股份有限公司 A kind of mobile terminal and its method for network insertion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150282058A1 (en) * 2012-10-12 2015-10-01 Nokia Solutions And Networks Oy Method and Apparatus for Access Network Selection
CN107517492A (en) * 2016-06-17 2017-12-26 中兴通讯股份有限公司 A kind of mobile terminal and its method for network insertion
CN106559304A (en) * 2016-11-15 2017-04-05 乐视控股(北京)有限公司 A kind of connection configuration method and device of VPN
CN107181624A (en) * 2017-06-30 2017-09-19 联想(北京)有限公司 A kind of method for connecting network, electronic equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN109076005A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US10104066B2 (en) User login methods, devices, and systems
US8806478B2 (en) Customizing operating system based on detected carrier
US9801057B2 (en) Wireless network access technology
JP6161076B2 (en) An extensible framework for wireless network connectivity
US9176758B2 (en) Controlling virtualization resource utilization based on network state
US10270648B2 (en) Configuration information management method, device, network element management system and storage medium
US9935847B2 (en) Dynamic grouping of managed devices
CA2945848C (en) Wireless local area network wlan access method, terminal, and server
US9264534B2 (en) Methods, systems, and computer-readable media for self-maintaining interactive communications privileges governing interactive communications with entities outside a domain
US20120178488A1 (en) System, Method and Apparatus for Dynamic Wireless Network Discovery
US9791908B2 (en) Systems and methods for protecting virtualized assets
US10009284B2 (en) Policy-based session establishment and transfer in a virtualized/cloud environment
CN104333863B (en) Connection management method and device, electronic equipment
US20170006030A1 (en) Device Communication Environment
US10135923B2 (en) Data transfer method and system
CN103298072A (en) Method and system for automatically connecting to WiFi (wireless fidelity) access points and mobile communication terminal
US8725131B1 (en) Techniques for automatically activating or deactivating a phone associated with a virtual phone number
US20160117079A1 (en) Method and apparatus for displaying application icons on terminal
US10051445B2 (en) Location-oriented services
US9173097B2 (en) Techniques for auto-authentication
CN104243286A (en) Method for achieving public wifi authentication through WeChat
AU2016208339B2 (en) Context-based dynamic policy system for mobile devices and supporting network infrastructure
US20160162271A1 (en) Application Migration Method, Device and System for Mobile Terminal
US20160142903A1 (en) Cloud-Based Connectivity Information Discovery
CN104079543A (en) Method, device and system for obtaining intelligent home system monitoring permissions

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18916693

Country of ref document: EP

Kind code of ref document: A1