CN109076005B - VPN line switching method and device and electronic equipment - Google Patents

VPN line switching method and device and electronic equipment Download PDF

Info

Publication number
CN109076005B
CN109076005B CN201880001462.1A CN201880001462A CN109076005B CN 109076005 B CN109076005 B CN 109076005B CN 201880001462 A CN201880001462 A CN 201880001462A CN 109076005 B CN109076005 B CN 109076005B
Authority
CN
China
Prior art keywords
line
vpn
mobile terminal
user account
determining
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.)
Active
Application number
CN201880001462.1A
Other languages
Chinese (zh)
Other versions
CN109076005A (en
Inventor
袁国勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cloudminds Shanghai Robotics Co Ltd
Original Assignee
Shenzhen Qianhaida Yunyun Intelligent Technology Co ltd
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 Shenzhen Qianhaida Yunyun Intelligent Technology Co ltd filed Critical Shenzhen Qianhaida Yunyun Intelligent Technology Co ltd
Publication of CN109076005A publication Critical patent/CN109076005A/en
Application granted granted Critical
Publication of CN109076005B publication Critical patent/CN109076005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • 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
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a VPN line switching method and device and electronic equipment. The method comprises the following steps: acquiring a line parameter of the mobile terminal; determining a VPN line of the mobile terminal according to the line parameter; and controlling 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 and the VPN lines have one-to-one correspondence. According to the embodiment, the mobile terminal can automatically connect and switch the VPN line according to the line parameter without manually selecting the VPN by a user, so that convenience is brought to the operation of connecting the VPN by the user, and the user experience is improved.

Description

VPN line switching method and device and electronic equipment
Technical Field
The present disclosure relates to the field of Virtual Private Network (VPN) switching technologies, and in particular, to a VPN line switching method, an apparatus, and an electronic device.
Background
At present, network security is more and more emphasized by each enterprise unit, and some sensitive or secure services are usually deployed in an intranet. Under the trend of mobile office, when one user relates to a plurality of different intranet services at the same time, the plurality of different intranet services need to be processed through a plurality of different VPNs, and generally, the user manually selects a certain VPN according to the current needs of the user, so as to enter the corresponding intranet.
However, each manual selection of the corresponding VPN brings inconvenience to the operation of the user, which is not favorable for the user experience.
Disclosure of Invention
The embodiment of the application provides a VPN line switching method, a VPN line switching device and electronic equipment, and is mainly used for solving the problem that user operation is not convenient and fast due to manual VPN switching.
In order to solve the above technical problem, one technical solution adopted in the embodiments of the present application is: a VPN line switching method is provided and applied to a mobile terminal, and the method comprises the following steps:
acquiring a line parameter of the mobile terminal;
determining a VPN line of the mobile terminal according to the line parameter;
and controlling 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 and the VPN lines have one-to-one correspondence.
Optionally, the line parameter of the mobile terminal includes at least any one of:
the WIFI name connected with the mobile terminal;
the position of the mobile terminal;
a system time of the mobile terminal; and
and the NFC card punching information of the mobile terminal.
Optionally, when the acquired line parameters include at least two items, the determining the VPN line of the mobile terminal according to the line parameters includes:
acquiring the line parameter with the highest priority according to the priorities corresponding to the at least two line parameters;
and determining the VPN line of the mobile terminal according to the line parameter with the highest priority.
Optionally, before the obtaining of the line parameter of the mobile terminal, the method further includes: after a user account is detected to log in the mobile terminal, controlling the user account to be connected with a default VPN line;
after the determining the VPN line of the mobile terminal according to the line parameter, the method further comprises: and judging whether the default VPN line is the same as the determined VPN line, and if not, executing the step of controlling the mobile terminal to be switched to the determined VPN line.
Optionally, the default VPN line is:
the VPN line which is connected with the user account for the last time; or
Connecting a VPN line with the highest frequency within preset time of the user account; or
And connecting the VPN line with the longest connection time within the preset time of the user account.
In order to solve the above technical problem, another technical solution adopted in the embodiment of the present application is: provided is a VPN line switching device applied to a mobile terminal, the device comprising:
the acquisition module is used for acquiring the line parameters of the mobile terminal;
the determining module is used for determining the VPN line of the mobile terminal according to the line parameter;
and the switching module is used for controlling the mobile terminal to switch to the determined VPN lines, wherein the number of the VPN lines is at least two, and the line parameters and the VPN lines have one-to-one correspondence.
Optionally, the obtaining module is specifically configured to obtain at least any one of the following:
the WIFI name connected with the mobile terminal;
the position of the mobile terminal;
a system time of the mobile terminal; and
and the NFC card punching information of the mobile terminal.
Optionally, when the acquired line parameters include at least two items, the determining module includes:
the acquisition unit is used for acquiring the line parameter with the highest priority according to the priorities corresponding to the at least two line parameters;
and the determining unit is used for determining the VPN line of the mobile terminal according to the line parameter with the highest priority.
Optionally, before the line parameter of the mobile terminal is obtained, the apparatus further includes a control module, where the control module is configured to control a user account to connect to a default VPN line after detecting that the user account logs in the mobile terminal;
after determining the VPN line of the mobile terminal according to the line parameter, the apparatus 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, and if not, execute the step of controlling the mobile terminal to switch to the determined VPN line.
Optionally, the default VPN line is:
the VPN line which is connected with the user account for the last time; or
Connecting a VPN line with the highest frequency within preset time of the user account; or
And connecting the VPN line with the longest connection time within the preset time of the user account.
In order to solve the above technical problem, another technical solution adopted in the embodiments of the present application is: provided is an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a program of instructions executable by the at least one processor to cause the at least one processor to perform the VPN line switching method as described above.
In order to solve the above technical problem, another technical solution adopted in the embodiment of the present application is: there is provided a computer program product, the computer program product comprising: a non-transitory computer-readable storage medium, and computer program instructions embodied in the non-transitory computer-readable storage medium, the computer program instructions including instructions to cause a processor to perform the VPN line switching method as described above.
In order to solve the above technical problem, another technical solution adopted in the embodiment of the present application is: there is provided a non-transitory computer-readable storage medium storing computer-executable instructions for causing a computer to perform the VPN line switching method as described above.
In the embodiment of the application, the mobile terminal is controlled to connect with the determined VPN line by acquiring the line parameter of the mobile terminal and then determining the VPN line of the mobile terminal according to the line parameter. According to the embodiment, the mobile terminal can automatically connect and switch the VPN line according to the line parameter without manually selecting the VPN by a user, so that convenience is brought to the operation of connecting the VPN by the user, and the user experience is improved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic illustration of an operating environment of an embodiment of the present application;
fig. 2 is a schematic flowchart of a VPN line switching method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a VPN line switching method according to another embodiment of the present application;
fig. 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 hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that, if not conflicted, the various features of the embodiments of the present application may be combined with each other within the scope of protection of the present application. Additionally, while functional block divisions are performed in the device diagrams, with logical sequences shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than the block divisions in the device diagrams, or the flowcharts.
For the convenience of the reader to better understand the present application, before describing the inventive concept of the present application, an operation environment of the present application will be described, please refer to fig. 1, and fig. 1 is a schematic diagram of an operation environment of an embodiment of the present application, where the operation environment includes an EMM server 10, an EMM terminal 20, and a VPN network 30. Among them, the EMM server 10 and the EMM terminal 20 are servers and terminals deployed based on an Enterprise Mobile Management (EMM) platform. The EMM is a technical platform and a management method for realizing the safe use of mobile terminals such as mobile phones, tablet computers and desktop computers by enterprise employees, and provides a solution and service for informatization management aiming at contents such as enterprise mobile equipment, application and information involved in the mobile informatization construction process of enterprises through mobile informatization technology and management means.
In this embodiment, the EMM server 10 may provide corresponding services or logical operation capabilities, such as configuring VPN policies, configuring trigger conditions corresponding to the respective VPN policies, and the like. The EMM server 10 may also connect to one or more databases, invoking relevant data (such as obtaining and storing currently connected VPN line information from the EMM terminal 20) or program instructions. The EMM server 10 may be specifically a server, 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, and the EMM terminal 20 may be a mobile terminal device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like. In the present embodiment, the EMM terminal 20 is mainly used to perform a VPN line switching method, for example, to acquire its own line parameters; determining the VPN line according to the line parameters; and controlling to switch to the determined VPN line, wherein the number of the VPN lines is at least two, and the line parameters and the VPN lines have one-to-one correspondence. The VPN network 30 includes at least two bars, which are respectively connected to the EMM terminals 20 so that the EMM terminals 20 access the associated internal network through the connected VPN network 30. VPN network 30 may be deployed in an end-to-end mode, or 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 relationship 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 one EMM terminal 20 corresponds to a plurality of VPN networks 30, it will be understood by those skilled in the art that the operating environment may also include more EMM servers 10 and EMM terminals 20, and a plurality of EMM terminals 20 correspond to VPN networks 30 in practical applications.
Referring to fig. 2, fig. 2 is a schematic flow chart of a VPN line switching method provided in an embodiment of the present application, where the method includes:
step 101, obtaining a line parameter of the mobile terminal;
step 102, determining a VPN line of the mobile terminal according to the line parameter;
and 103, controlling 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 and the VPN lines have a one-to-one correspondence relationship.
In the present embodiment, the above-described method of switching the VPN line is performed by the EMM terminal 20, which is the mobile terminal. And acquiring the line parameters of the mobile terminal, namely acquiring the line parameters of the mobile terminal. The mobile terminal can periodically acquire its own line parameters, and automatically acquire its line parameters at intervals of a preset period value, where the setting of the period value can be determined according to the frequency of the mobile terminal for switching the VPN line, and if the frequency for switching the VPN line is high, the period value may be relatively small. The line parameter refers to a parameter that is associated with the mobile terminal and satisfies a VPN line connection condition, where the VPN line connection condition may be preset in the EMM server 10 and issued to the mobile terminal by the EMM server 10.
In this embodiment, the line parameter includes at least any one of the following items: the mobile terminal comprises a WIFI name connected with the mobile terminal, the position of the mobile terminal, the system time of the mobile terminal and NFC card punching information of the mobile terminal.
The WIFI name connected with the mobile terminal refers to the name of the WIFI currently connected with the mobile terminal. All WIFI names connected with the mobile terminal can be set as line parameters, and part of WIFI names connected with the mobile terminal can also be set as line parameters. For example, a WIFI white list may be preset, and only WIFI names connected to the mobile terminal are on the WIFI white list, these WIFI names may be used as line parameters. The WIFI white list refers to a WIFI white list which enables the mobile terminal to meet VPN line switching conditions and to be connected according to a specific application scene of current VPN line switching. The line parameters are screened through the WIFI white list, so that the mobile terminal can be helped to quickly acquire appropriate line parameters, and the time for determining the VPN line of the mobile terminal is shortened. When the line parameter is a WIFI name to which the mobile terminal is connected, the determining, according to the line parameter, a VPN line of the mobile terminal specifically includes: and searching a VPN line corresponding to the WIFI name according to the WIFI name, wherein the searched 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 may set the same WIFI name, and at this time, a plurality of the same WIFI names correspond to the same VPN line, and in order to avoid a VPN line access error, a VPN line may be further selected based on an MAC address of a gateway device accessing the network, where each MAC address corresponds to one VPN line, and therefore, even though the names of the WIFI networks connected to the mobile terminal are the same, the accessed MAC addresses are different, and thus, the corresponding VPN lines may be correctly determined.
The position of the mobile terminal may be detected by a positioning module (such as a GPS positioning module) carried by the mobile terminal, so as to obtain the current position of the mobile terminal. In this embodiment, when the line parameter is the current location of the mobile terminal, the determining the VPN line of the mobile terminal according to the line parameter includes: searching the current position of the mobile terminal in a preset geographic fence information table, judging whether the current position of the mobile terminal is included in the geographic fence information table, and if so, acquiring a VPN code corresponding to the position, thereby determining a VPN line of the mobile terminal. The VPN code is used for identifying the VPN lines, and each VPN line corresponds to one VPN code. The geo-fence information table is pre-established and may be stored in the EMM server 10, and the geo-fence information table includes a plurality of different geographical areas and VPN lines corresponding to the different geographical areas. The plurality of different geographic areas are determined according to a specific application scenario involved in the current VPN line switching, for example, a specialist is engaged in A, B, C three hospitals respectively, and needs to visit the internal networks of the three hospitals respectively when working, here, the geo-fence information table may be predetermined based on the geographic locations of A, B, C the three hospitals, i.e., the hospital a is divided into an area 1 and corresponds to the VPN1, the hospital B is divided into an area 2 and corresponds to the VPN2, the hospital C is divided into an area 3 and corresponds to the VPN3, and if the current location of the doctor is detected to be within the area 2, the VPN line of the mobile terminal is determined to be the VPN 2.
The system time of the mobile terminal refers to the current system time of the mobile terminal, and is specifically a certain moment. When the line parameter is the system time of the mobile terminal, the determining the VPN line of the mobile terminal according to the line parameter includes: the method comprises the steps of searching the system time of the mobile terminal in a preset time fence information table, judging whether the system time of the mobile terminal is included in the time fence information table, and if the system time of the mobile terminal is included in the time fence information table, acquiring a VPN code corresponding to the system time, so as to determine a VPN line of the mobile terminal. The time fence information table is pre-established and may be stored in the EMM server 10, and the time fence information table includes a plurality of different time periods and VPN lines corresponding to the different time periods. For example, the time fence information table can be specifically shown in the following table 1:
TABLE 1
Time period VPN encoding VPN line
Monday 8:30am-12:00am VPN-A VPN circuit corresponding to A hospital
2:00pm-5:30pm of Monday VPN-B VPN circuit corresponding to hospital B
2:00pm-5:30pm of Mongolian medicine VPN-A VPN circuit corresponding to A hospital
8:30am-5:30pm friday VPN-C VPN circuit corresponding to hospital C
And if the current system time of the mobile terminal is 3:00pm in Monday, determining that the VPN line of the mobile terminal is a VPN line corresponding to hospital B. In the time fence information table, the VPN codes determined in different time periods may be determined according to a habit of connecting VPN codes in historical time of a user, or may be determined in other manners. In addition, the time fence information table can be dynamically updated, a time fence information table can be distributed and managed for each mobile terminal user in the EMM server, and the time fence information table is dynamically updated according to the time when the mobile terminal is connected with the VPN line.
The NFC card punching information of the mobile terminal comprises the time when the mobile terminal performs NFC card punching and the geographic position when the mobile terminal performs NFC card punching. The mobile terminal comprises an NFC card punching function, and when the mobile terminal performs NFC card punching, the mobile terminal automatically acquires the current system time and the current geographic position 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 card punching or the current geographic location of the mobile terminal; or determining the VPN line according to the system time and the current geographic position of the mobile terminal when the mobile terminal carries out NFC card punching. Specifically, reference may be made to the foregoing embodiment for determining the VPN line according to the system time when the mobile terminal performs NFC card punching or the current geographic location of the mobile terminal. And determining the VPN line according to the system time and the current geographic position of the mobile terminal when the mobile terminal performs NFC card punching, namely, simultaneously considering two limiting factors of time and geographic position, and selecting the VPN line corresponding to the preset time and the preset geographic position only when the two limiting factors meet the preset time and the preset geographic position. In the embodiment, the VPN line is determined by two defined factors of time and geographic position, so that the determined VPN line can better meet the actual requirements of users, and the accuracy of the determined VPN line is higher.
It should be noted that, besides the above listed line parameters, the line parameters may also include other parameters, for example, the line parameters may also be MAC addresses of gateway devices of the mobile terminal accessing the network, and different MAC addresses correspond to a unique VPN line.
The determining the VPN line of the mobile terminal according to the line parameter includes, when the line parameters simultaneously acquired by the mobile terminal include at least two, determining the VPN line of the mobile terminal according to the line parameter: acquiring the line parameter with the highest priority according to the priorities corresponding to the at least two line parameters; and determining the VPN line of the mobile terminal according to the line parameter with the highest priority.
For example, the currently acquired line parameters of the mobile terminal include: the method comprises the steps that a WIFI name connected with a mobile terminal, a current position of the mobile terminal and current system time of the mobile terminal are obtained, and priorities corresponding to the three line parameters are respectively the current position of the mobile terminal, the WIFI name connected with the mobile terminal and the current system time of the mobile terminal from high to low, so that the VPN line of the mobile terminal is determined according to the current position of the mobile terminal.
Wherein the priority of the line parameter can be dynamically updated based on big data. For example, a doctor works in hospital a at 10 am every day and connects to the VPN line corresponding to hospital a, and the location priority is highest. However, from a certain day, the doctor starts to connect the VPN line of hospital B at 10 am every day in hospital a, and as the number of times accumulates, when the number of times reaches the threshold, the priority of time is higher than the priority of location, and at this time, the priority corresponding to the line parameter is updated.
In the above process, when the line parameters acquired simultaneously include a plurality of items, one 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, in addition to this embodiment, the VPN line of the mobile terminal may be determined in other manners. For example, the VPN line of the mobile terminal is directly determined based on a preset algorithm and current multiple line parameters.
The embodiment of the application provides a VPN line switching method, which comprises the steps of obtaining line parameters of a mobile terminal, and then determining a VPN line of the mobile terminal according to the line parameters, so as to control the mobile terminal to be connected with the determined VPN line. According to the embodiment, the mobile terminal can automatically connect and switch the VPN line according to the line parameter without manually selecting the VPN by a user, so that convenience is brought to the operation of connecting the VPN by the user, and the user experience is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a VPN line switching method according to another embodiment of the present application, where the method includes:
step 201, after detecting that a user account logs in the mobile terminal, controlling the user account to connect a default VPN line;
step 202, obtaining a line parameter of the mobile terminal;
step 203, determining a VPN line of the mobile terminal according to the line parameter;
step 204, judging whether the default VPN line is the same as the determined VPN line;
step 205, if the two VPN routes are different, controlling the mobile terminal to switch to the determined VPN route, where the number of VPN routes is at least two, and the route parameters and the VPN routes have a one-to-one correspondence relationship.
In this embodiment, a user involved in VPN switching may be registered in the EMM server 10, and a registered user account may log in the EMM server 10 through the EMM terminal 20 (i.e., the mobile terminal). The above may be that the mobile terminal itself detects whether the user account is logged in, or that the mobile terminal acquires the related information of the user account login from the EMM server 10. After the user account logs in the mobile terminal, controlling the user account to connect to a default VPN line, where the default VPN line is a VPN line issued 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 to which the user account is connected last time, or the VPN line to which the user account is connected with the highest frequency within the preset time, or the VPN line to which the user account is connected with the longest time within the preset time, and the like. In the embodiment, the user does not need to manually select when starting to connect the VPN, and the VPN line is automatically distributed to the user by combining the habit of connecting the VPN line by the user history, so that the operation of connecting the VPN by the user is simplified, and convenience is brought to the operation of the user.
After the mobile terminal is connected to the default VPN line, the line parameter of the mobile terminal may be periodically obtained, and the VPN line of the mobile terminal is determined according to the obtained line parameter.
In this embodiment, before switching the VPN line, the default connected VPN line is compared with the determined VPN line, and when the two VPN lines are different, the VPN line is switched, otherwise, the default VPN line is still connected. Thereby, switched VPN line duplication is avoided.
It should be noted that, in the above embodiment, the process of controlling the VPN line switching is mainly performed by the mobile terminal, and in some other embodiments, the EMM server 10 may also control the switching of the VPN line, for example, after the VPN line of the mobile terminal is determined according to the line parameter, the determined VPN line is sent to the EMM server 10, and the EMM server 10 controls the user account to be switched to the determined VPN line.
The embodiment of the application provides a VPN line switching method, which is characterized in that a login user account is detected, so that a default VPN line is automatically allocated to the user account, a mobile terminal is connected with the default VPN line, further, the VPN line which can be switched by the mobile terminal can be determined according to line parameters of the mobile terminal, and therefore the switching of the VPN line is achieved. In addition, the embodiment can automatically connect the corresponding VPN line according to the user account and the specific application scene, and the reliability of the connected VPN line is ensured.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a VPN line switching apparatus according to an embodiment of the present application, and as shown in fig. 4, the apparatus 40 includes: an acquisition module 41, a determination module 42, and a switching module 43.
The obtaining module 41 is configured to obtain a line parameter of the mobile terminal; a determining module 42, configured to determine a VPN line of the mobile terminal according to the line parameter; a switching module 43, configured to control the mobile terminal to switch to the determined VPN line, where the number of VPN lines is at least two, and the line parameter and the VPN line have a one-to-one correspondence relationship.
The obtaining module 41 is specifically configured to obtain at least any one of the following items: the WIFI name connected with the mobile terminal; the position of the mobile terminal; a system time of the mobile terminal; and NFC card punching information of the mobile terminal.
In some other embodiments, also referring to fig. 4, when the acquired line parameters include at least two items, the determining module 42 includes: an acquisition unit 421 and a determination unit 422. The obtaining unit 421 is configured to obtain the line parameter with the highest priority according to the priorities corresponding to the at least two line parameters. The determining unit 422 is configured to determine the VPN line of the mobile terminal according to the line parameter with the highest priority.
In some other embodiments, referring to fig. 4 as well, before the obtaining of the line parameter of the mobile terminal, the apparatus 40 further includes a control module 44, where the control module 44 is configured to control the user account to connect to a default VPN line after detecting that the user account logs in the mobile terminal. After determining the VPN line of the mobile terminal according to the line parameter, the apparatus 40 further includes a determining module 45, where the determining module 45 is configured to determine whether the default VPN line is the same as the determined VPN line, and if not, execute a related operation of the switching module 43, specifically, control the mobile terminal to switch to the determined VPN line.
Wherein the default VPN line is: the VPN line to which the user account is connected last time, or the VPN line to which the user account is connected with the highest frequency within the preset time, or the VPN line to which the user account is connected with the longest time within the preset time, and the like.
It should be noted that, for the information interaction, execution process and other contents between the modules and units in the apparatus, the specific contents may refer to the description in the method embodiment of the present application because the same concept is based on the method embodiment of the present application, and are not described herein again.
The embodiment of the application provides a VPN line switching device, which controls a mobile terminal to connect with a determined VPN line by acquiring a line parameter of the mobile terminal and then determining the VPN line of the mobile terminal according to the line parameter. According to the embodiment, the mobile terminal can automatically connect and switch the VPN line according to the line parameter without manually selecting the VPN by a user, so that convenience is brought to the operation of connecting the VPN by the user, and the user experience is improved.
Referring to fig. 5, fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure, where the electronic device 50 is capable of executing the VPN line switching method. The electronic device 50 includes:
one or more processors 51 and a memory 52, with one processor 51 being an example in fig. 5.
The processor 51 and the memory 52 may be connected by a bus or other means, such as the bus connection in fig. 5.
The memory 52 is a non-volatile computer-readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules (for example, the modules shown in fig. 4) corresponding to the VPN line switching method in the embodiment of the present application. The processor 51 executes various functional applications of the server and data processing by running the nonvolatile software programs, instructions, and modules stored in the memory 52, that is, implements the VPN line switching method of the above-described method embodiment.
The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program 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. Further, the memory 52 may include high speed random access memory, and may 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, the memory 52 may optionally include memory remotely located from the processor 51, and these remote memories may be connected to the VPN line switching device via 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 the VPN line switching method in any of the above-described method embodiments, for example, perform the above-described method steps 101 to 103 in fig. 2, and the method steps 201 to 205 in fig. 3, to implement the functions of the modules 41 to 45 and the unit 421 and 422 in fig. 4.
The product can execute the method provided by the embodiment of the application, and has 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 methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones, multimedia phones, functional phones, and low-end phones, etc.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc.
(3) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(4) And other electronic devices with data interaction functions.
The present application provides a non-volatile computer-readable storage medium, which stores computer-executable instructions, which are executed by an electronic device to perform the VPN line switching method in any of the above-mentioned method embodiments, for example, to perform the above-described method steps 101 to 103 in fig. 2, and the method steps 201 to 205 in fig. 3, to implement the functions of the modules 41 to 45 and the unit 421 and 422 in fig. 4.
The present application provides a computer program product, including a computer program stored on a non-volatile computer-readable storage medium, where the computer program includes program instructions, when the program instructions are executed by a computer, the computer executes the VPN line switching method in any of the above-mentioned method embodiments, for example, the method steps 101 to 103 in fig. 2 and the method steps 201 to 205 in fig. 3 described above are executed, and the functions of the modules 41 to 45 and the unit 421 and 422 in fig. 4 are implemented.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; within the context of the present application, where technical features in the above embodiments or in different embodiments can also be combined, the steps can be implemented in any order and there are many other variations of the different aspects of the present application as described above, which are not provided in detail 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 of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some 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 application.

Claims (10)

1. A VPN line switching method is applied to a mobile terminal, and is characterized by comprising the following steps:
periodically acquiring a line parameter of the mobile terminal;
determining a VPN line of the mobile terminal according to the line parameter;
controlling the mobile terminal to switch to the determined VPN lines, wherein the number of the VPN lines is at least two, and the line parameters and the VPN lines have a one-to-one correspondence relationship; when the obtained line parameters comprise at least two line parameters, obtaining the line parameters with the highest priority according to the priorities corresponding to the at least two line parameters, and dynamically updating the priority of the line parameters based on big data; and determining the VPN line of the mobile terminal according to the line parameter with the highest priority.
2. The method according to claim 1, wherein the line parameters of the mobile terminal include at least any one of the following:
the WIFI name connected with the mobile terminal;
the position of the mobile terminal;
a system time of the mobile terminal; and
and the NFC card punching information of the mobile terminal.
3. The method according to any one of claims 1 to 2,
before the obtaining of the line parameter of the mobile terminal, the method further includes: after a user account is detected to log in the mobile terminal, controlling the user account to be connected with a default VPN line;
after the determining the VPN line of the mobile terminal according to the line parameter, the method further comprises: and judging whether the default VPN line is the same as the determined VPN line, and if not, executing the step of controlling the mobile terminal to be switched to the determined VPN line.
4. The method of claim 3, wherein the default VPN routes are:
the VPN line which is connected with the user account for the last time; or
Connecting a VPN line with the highest frequency within preset time of the user account; or
And connecting the VPN line with the longest connection time within the preset time of the user account.
5. A VPN line switching apparatus applied to a mobile terminal, the apparatus comprising:
the acquisition module is used for periodically acquiring the line parameters of the mobile terminal;
the determining module is used for determining the VPN line of the mobile terminal according to the line parameter;
a switching module, configured to control the mobile terminal to switch to the determined VPN line, where the number of VPN lines is at least two, and the line parameters and the VPN lines have a one-to-one correspondence relationship; when the acquired line parameters include at least two items, the determining module includes:
the acquisition unit is used for acquiring the line parameter with the highest priority according to the priorities corresponding to the at least two line parameters, and dynamically updating the priority of the line parameter based on big data;
and the determining unit is used for determining the VPN line of the mobile terminal according to the line parameter with the highest priority.
6. The apparatus according to claim 5, wherein the obtaining module is specifically configured to obtain at least any one of:
the WIFI name connected with the mobile terminal;
the position of the mobile terminal;
a system time of the mobile terminal; and
and the NFC card punching information of the mobile terminal.
7. The device according to any one of claims 5 to 6, wherein before the obtaining of the line parameters of the mobile terminal, the device further comprises a control module, configured to control a user account to connect to a default VPN line after detecting that the user account logs in the mobile terminal;
after determining the VPN line of the mobile terminal according to the line parameter, the apparatus 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, and if not, execute the step of controlling the mobile terminal to switch to the determined VPN line.
8. The apparatus of claim 7, wherein the default VPN routes are:
the VPN line which is connected with the user account for the last time; or
Connecting a VPN line with the highest frequency within preset time of the user account; or
And connecting the VPN line with the longest connection time within the preset time of the user account.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a program of instructions executable by the at least one processor to cause the at least one processor to perform the method of any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 4.
CN201880001462.1A 2018-04-28 2018-04-28 VPN line switching method and device and electronic equipment Active CN109076005B (en)

Applications Claiming Priority (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

Publications (2)

Publication Number Publication Date
CN109076005A CN109076005A (en) 2018-12-21
CN109076005B true CN109076005B (en) 2021-02-09

Family

ID=64789283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880001462.1A Active CN109076005B (en) 2018-04-28 2018-04-28 VPN line switching method and device and electronic equipment

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336794B (en) * 2019-06-10 2022-08-30 平安科技(深圳)有限公司 Intranet access method, system and related device
CN110213769B (en) * 2019-06-10 2022-11-25 平安科技(深圳)有限公司 Intranet access method and related device
CN110324826B (en) * 2019-06-10 2022-08-16 平安科技(深圳)有限公司 Intranet access method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255920A (en) * 2011-08-24 2011-11-23 杭州华三通信技术有限公司 Method and device for sending VPN (Virtual Private Network) configuration information
CN106559304A (en) * 2016-11-15 2017-04-05 乐视控股(北京)有限公司 A kind of connection configuration method and device of VPN
CN106789530A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of method for connecting network, device and mobile terminal
CN107517492A (en) * 2016-06-17 2017-12-26 中兴通讯股份有限公司 A kind of mobile terminal and its method for network insertion

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2907345B1 (en) * 2012-10-12 2019-04-17 Nokia Solutions and Networks Oy Method and apparatus for access network selection
CN107181624A (en) * 2017-06-30 2017-09-19 联想(北京)有限公司 A kind of method for connecting network, electronic equipment and computer-readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255920A (en) * 2011-08-24 2011-11-23 杭州华三通信技术有限公司 Method and device for sending VPN (Virtual Private Network) configuration information
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
CN106789530A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of method for connecting network, device and mobile terminal

Also Published As

Publication number Publication date
CN109076005A (en) 2018-12-21
WO2019205133A1 (en) 2019-10-31

Similar Documents

Publication Publication Date Title
CN110287709B (en) User operation authority control method, device, equipment and medium
US11349767B2 (en) Device and method for disabling a WLAN hotspot based on data traffic value
US10009284B2 (en) Policy-based session establishment and transfer in a virtualized/cloud environment
US9277494B2 (en) Reducing wireless reconnection time of a computing device
WO2016173348A1 (en) Network access method and mobile communications terminal
CN109076005B (en) VPN line switching method and device and electronic equipment
US10070302B2 (en) Internet of things (IoT) delay tolerant wireless network service
EP2901739A1 (en) Mixed off-site / on-site prediction computation for reducing wireless reconnection time of a computing device
US10708763B2 (en) On-boarding entity for remote embedded universal integrated circuit card management
CN110808857B (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
CN105812435A (en) Application upgrading data package processing method and device, electronic equipment, and system
CN114285795B (en) State control method, device, equipment and storage medium of virtual equipment
WO2017166619A1 (en) Method and apparatus for determining emergency communication numbers, and electronic device
CN106210155A (en) The method and apparatus connecting application server
CN112995266A (en) Information pushing method and related equipment
CN105577734A (en) Information backup method, device, server and terminal
CN112784318B (en) Method, device and storage medium for generating unique identification code of equipment
CN104378806B (en) Information processing method and terminal device
CN107682271B (en) Method and device for generating routing line
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN114531279B (en) Private network access method, server and storage medium
CN106535161B (en) Method and device for intelligent dialing of intelligent terminal and intelligent terminal
US11228525B2 (en) Mission context routing data communication system
US11259340B2 (en) Management of a home gateway with mobile connectivity to a wide area network
CN109582680B (en) Business processing method based on new product development, electronic device and readable storage medium

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210326

Address after: 200000 second floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Patentee after: Dalu Robot Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: Shenzhen Qianhaida Yunyun Intelligent Technology Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 201111 Building 8, No. 207, Zhongqing Road, Minhang District, Shanghai

Patentee after: Dayu robot Co.,Ltd.

Address before: 200000 second floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Patentee before: Dalu Robot Co.,Ltd.