CN109076005A - A kind of VPN circuit switching method, device and electronic equipment - Google Patents

A kind of VPN circuit switching method, device and electronic equipment Download PDF

Info

Publication number
CN109076005A
CN109076005A CN201880001462.1A CN201880001462A CN109076005A CN 109076005 A CN109076005 A CN 109076005A CN 201880001462 A CN201880001462 A CN 201880001462A CN 109076005 A CN109076005 A CN 109076005A
Authority
CN
China
Prior art keywords
mobile terminal
vpn route
vpn
line parameter
parameter circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201880001462.1A
Other languages
Chinese (zh)
Other versions
CN109076005B (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
Cloudminds Inc
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 Cloudminds Inc filed Critical Cloudminds Inc
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

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

Abstract

The embodiment of the present application discloses a kind of VPN circuit switching method, device and electronic equipment.This method comprises: obtaining the line parameter circuit value of the mobile terminal;The VPN route of the mobile terminal is determined according to the line parameter circuit value;Control the VPN route that the mobile terminal switches to the determination, wherein the quantity of the VPN route is at least two, and the line parameter circuit value and the VPN route have one-to-one relationship.The embodiment can make mobile terminal be connected automatically according to its line parameter circuit value, switch VPN route, manually select VPN without user, bring conveniently to the operation that user connects VPN, the user experience is improved.

Description

A kind of VPN circuit switching method, device and electronic equipment
Technical field
This application involves the handoff technique fields Virtual Private Network (Virtual Private Network, VPN), especially It is to be related to a kind of VPN circuit switching method, device and electronic equipment.
Background technique
It is some to be related to sensitive or safety business and usually all currently, each business unit increasingly payes attention to network security It is deployed in corporate intranet.Under the main trend of mobile office, when a user is related to multiple and different interior network services simultaneously When, need to complete the processing to network service in multiple difference by multiple and different VPN, ordinary circumstance is user according to certainly Oneself is current to need to manually select some VPN, hence into corresponding Intranet.
However, manually selecting corresponding VPN every time can make troubles to the operation of user, it is unfavorable for user experience.
Summary of the invention
The embodiment of the present application provides a kind of VPN circuit switching method, device and electronic equipment, is mainly used for solving to cut manually Change the problem that VPN causes user's operation inconvenient.
In order to solve the above technical problems, the technical solution that the embodiment of the present application uses is: providing a kind of VPN route and cut Method is changed, mobile terminal is applied to, which comprises
Obtain the line parameter circuit value of the mobile terminal;
The VPN route of the mobile terminal is determined according to the line parameter circuit value;
Control the VPN route that the mobile terminal switches to the determination, wherein the quantity of the VPN route is at least Two, and the line parameter circuit value and the VPN route have one-to-one relationship.
Optionally, the line parameter circuit value of the mobile terminal includes following at least any one:
The WIFI title that the mobile terminal is connected;
The location of described mobile terminal;
The system time of the mobile terminal;And
The NFC of the mobile terminal checks card information.
Optionally, described to be determined according to the line parameter circuit value when the line parameter circuit value got includes at least two The VPN route of the mobile terminal includes:
According to the corresponding priority of at least two line parameter circuit values, the line parameter circuit value of highest priority is obtained;
The VPN route of the mobile terminal is determined according to the line parameter circuit value of the highest priority.
Optionally, before the line parameter circuit value for obtaining the mobile terminal, the method also includes: detecting use After family account logs in the mobile terminal, the VPN route of the user account connection default is controlled;
After the VPN route for determining the mobile terminal according to the line parameter circuit value, the method also includes: sentence Whether the VPN route for the default of breaking and the VPN route of the determination are identical, if not identical, execute the control shifting Dynamic terminal switches to the step of VPN route of the determination.
Optionally, the VPN route of the default are as follows:
The VPN route of user account the last time connection;Or
The highest VPN route of rate of connections in the user account preset time;Or
Connection Time longest VPN route in the user account preset time.
In order to solve the above technical problems, another technical solution that the embodiment of the present application uses is: providing a kind of VPN route Switching device, is applied to mobile terminal, and described device includes:
Module is obtained, for obtaining the line parameter circuit value of the mobile terminal;
Determining module, for determining the VPN route of the mobile terminal according to the line parameter circuit value;
Switching module switches to the VPN route of the determination for controlling the mobile terminal, wherein the VPN route Quantity be at least two, and the line parameter circuit value and the VPN route have one-to-one relationship.
Optionally, the acquisition module is specifically used for obtaining following at least any one:
The WIFI title that the mobile terminal is connected;
The location of described mobile terminal;
The system time of the mobile terminal;And
The NFC of the mobile terminal checks card information.
Optionally, when the line parameter circuit value got includes at least two, the determining module includes:
Acquiring unit, for obtaining the line of highest priority according to the corresponding priority of at least two line parameter circuit values Road parameter;
Determination unit, for determining the VPN route of the mobile terminal according to the line parameter circuit value of the highest priority.
Optionally, before the line parameter circuit value for obtaining the mobile terminal, described device further includes control module, institute Control module is stated for after detecting that user account logs in the mobile terminal, controlling the user account connection default VPN route;
After the VPN route for determining the mobile terminal according to the line parameter circuit value, described device further includes sentencing Disconnected module, the judgment module is for judging whether the VPN route of the default is identical as the VPN route of the determination, if not It is identical, then execute the step of control mobile terminal switches to the VPN route of the determination.
Optionally, the VPN route of the default are as follows:
The VPN route of user account the last time connection;Or
The highest VPN route of rate of connections in the user account preset time;Or
Connection Time longest VPN route in the user account preset time.
In order to solve the above technical problems, another technical solution that the embodiment of the present application uses is: providing a kind of electronics and set It is standby, comprising: at least one processor;And the memory being connect at least one described processor communication;Wherein, described to deposit Reservoir is stored with the instruction repertorie that can be executed by least one described processor, and described instruction program is by least one described processing Device executes, so that at least one described processor executes VPN circuit switching method as described above.
In order to solve the above technical problems, another technical solution that the embodiment of the present application uses is: providing a kind of computer Program product, the computer program product include: non-volatile computer readable storage medium storing program for executing, and are embedded in described non-easy The computer program instructions of the property lost computer readable storage medium, the computer program instructions include execute processor The instruction of VPN circuit switching method as described above.
In order to solve the above technical problems, the also technical solution that the embodiment of the present application uses is: providing a kind of non-volatile Property computer readable storage medium, the computer-readable recording medium storage have computer executable instructions, the computer Executable instruction is for making computer execute VPN circuit switching method as described above.
In the embodiment of the present application, it by obtaining the line parameter circuit value of mobile terminal, is then determined according to the line parameter circuit value The VPN route of the mobile terminal, so that controlling the mobile terminal connects identified VPN route.The embodiment can make to move Dynamic terminal connects automatically according to its line parameter circuit value, switches VPN route, manually selects VPN without user, connects to user The operation of VPN is brought conveniently, and the user experience is improved.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the running environment schematic diagram of the embodiment of the present application;
Fig. 2 is a kind of flow diagram of VPN circuit switching method provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram for VPN circuit switching method that another embodiment of the application provides;
Fig. 4 is a kind of structural schematic diagram of VPN circuit switching device provided by the embodiments of the present application;
Fig. 5 is the hardware structural diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not For limiting the application.
It should be noted that each feature in the embodiment of the present application can be combined with each other, in this Shen if do not conflicted Within protection scope please.In addition, though having carried out functional module division in schematic device, shows patrol in flow charts Sequence is collected, but in some cases, it can be held with the sequence in the module division being different from schematic device or flow chart The shown or described step of row.
The application is more fully understood in order to facilitate reader, before present invention thought is described, first to this The running environment of application is described, referring to Fig. 1, Fig. 1 is the running environment schematic diagram of the embodiment of the present application, the running environment Including EMM server 10, EMM terminal 20 and VPN network 30.Wherein, EMM server 10 and EMM terminal 20 are based on enterprise The server and terminal of mobile management (Enterprise Mobile Management, EMM) Platform deployment.EMM is a set of reality The mobile terminals such as existing enterprise staff safe handling mobile phone, tablet computer, desktop computer carry out the technology platform of mobile work And management method, EMM is by mobile information technology and management means, for being related in enterprise mobile information process of construction The contents such as corporate mobile devices, application, information the solution and service of information system management are provided.
In the present embodiment, EMM server 10 can provide corresponding service or logical operation capability, for example, configuration VPN Strategy, and the corresponding trigger condition of each VPN strategy of configuration, etc..EMM server 10 may also connect to one or more Database calls relevant data (for example current connected VPN line information being obtained from EMM terminal 20, and stored) Or program instruction.EMM server 10 specifically can be a server, or the server set consisted of several servers Group or a cloud computing service center.EMM terminal 20 connects the EMM by wireless network or wired network communication Server 10, EMM terminal 20 specifically can be the mobile terminals such as mobile phone, tablet computer, laptop, desktop computer and set It is standby.In the present embodiment, the EMM terminal 20 is mainly used for executing VPN circuit switching method, for example, obtaining the line of its own Road parameter;Its VPN route is determined according to the line parameter circuit value;Control switches to the VPN route of the determination, wherein the VPN The quantity of route is at least two, and the line parameter circuit value and the VPN route have one-to-one relationship.VPN network 30 Including at least two, connect respectively with EMM terminal 20 so that EMM terminal 20 by connection VPN network 30 access it is relevant Intranet.VPN network 30 can use end-to-end mode perhaps supplier-enterprise model or internal suppliers mould in deployment Formula.
In the present embodiment, the line parameter circuit value and the VPN network that the EMM terminal 20 is got, which have to correspond, to close System.
It should be noted that running environment provided by the embodiments of the present application is not limited to running environment shown in Fig. 1.Although An EMM server 10 and an EMM terminal 20 and an EMM terminal 20 and multiple VPN network 30 are only shown in Fig. 1 Corresponding relationship, it will be appreciated by those skilled in the art that in practical applications, which can also include more EMM server 10 and EMM terminal 20 and multiple EMM terminals 20 and VPN network 30 corresponding relationship.
A kind of VPN circuit switching method applied to above-mentioned running environment is provided below, referring to Fig. 2, Fig. 2 is the application A kind of flow diagram for VPN circuit switching method that embodiment provides, this method comprises:
Step 101, the line parameter circuit value for obtaining the mobile terminal;
Step 102, the VPN route that the mobile terminal is determined according to the line parameter circuit value;
Step 103, the control mobile terminal switch to the VPN route of the determination, wherein the number of the VPN route Amount is at least two, and the line parameter circuit value and the VPN route have one-to-one relationship.
In the present embodiment, the VPN circuit switching method is executed by above-mentioned EMM terminal 20, herein, the EMM terminal The i.e. described mobile terminal.Obtain the line parameter circuit value of the mobile terminal namely the line parameter circuit value of the acquisition for mobile terminal itself. The mobile terminal can periodically obtain the line parameter circuit value of its own, just obtain its line automatically at interval of preset periodic quantity The setting of road parameter, the periodic quantity can switch the frequency of VPN route according to the mobile terminal to determine, if switching VPN The frequency of route is high, then periodic quantity can be relatively small.The line parameter circuit value refer to it is associated with the mobile terminal and Meet the parameter of VPN connection condition, wherein VPN connection condition can be pre-set at above-mentioned EMM server 10 In, the mobile terminal is issued to by EMM server 10.
In the present embodiment, the line parameter circuit value includes following at least any one: the mobile terminal is connected The NFC of the location of WIFI title, described mobile terminal, the system time of the mobile terminal and the mobile terminal is beaten Card information.
Wherein, the WIFI title that the mobile terminal is connected refers to the current connected WIFI's of the mobile terminal Title.The whole WIFI titles that the mobile terminal can be connected are both configured to line parameter circuit value, can also be by the movement Part WIFI title in terminal connection is set as line parameter circuit value.For example, a WIFI white list can be preset, it is only described For WIFI title in mobile terminal connection on the WIFI white list, these WIFI titles just can be used as line parameter circuit value.It should WIFI white list refers to making the mobile terminal meet VPN route according to the circuit-switched concrete application scene of current VPN and cutting The WIFI list that changes condition and can connect.Line parameter circuit value is screened by WIFI white list, the mobile terminal can be helped The suitable line parameter circuit value of quick obtaining, so as to shorten the time of the VPN route of the determination mobile terminal.When the line parameter circuit value When being the WIFI title that the mobile terminal is connected, the VPN line that the mobile terminal is determined according to the line parameter circuit value Road specifically includes: searching the corresponding VPN route of the WIFI title according to the WIFI title, the VPN route found is i.e. The VPN route of the mobile terminal.Wherein, the corresponding VPN route of every WIFI title.
It is understood that identical WIFI title can be arranged in WIFI network different under some cases, occur at this time more The case where a identical WIFI title corresponds to same VPN route can be based further in order to avoid VPN route accesses mistake The MAC Address of the gateway of network is accessed to select VPN route, the corresponding VPN route of each MAC Address, therefore, even if moving The title of the WIFI of dynamic terminal connection is identical, but the MAC Address accessed is different, so as to correctly determine its corresponding VPN line Road.
Wherein, the location of described mobile terminal can pass through self-contained locating module by the mobile terminal (such as GPS positioning module) is detected, and the position that the mobile terminal is presently in is obtained.In the present embodiment, when described It is described that the mobile terminal is determined according to the line parameter circuit value when line parameter circuit value is the position that the mobile terminal is presently in VPN route includes: the position searching the mobile terminal in preset geography fence information table and being presently in, and is judged describedly It whether include that the position that is presently in of the mobile terminal obtains the corresponding VPN in the position if including in reason fence information table Coding, so that it is determined that the VPN route of the mobile terminal.The VPN coding is for identifying the VPN route, every VPN route Corresponding VPN coding.Wherein, the geography fence information table pre-establishes, and can store in above-mentioned EMM server 10 In, it include that multiple and different geographic areas and multiple different geographic regions respectively correspond in the geography fence information table VPN route.Multiple different geographic area be the concrete application scene according to involved by current VPN circuit switching come Determining, for example, certain specialist is employed by tri- hospitals of A, B, C respectively, which needs to access these three respectively when working The Intranet of hospital can predefine the geography fence based on geographical location locating for these three hospitals of A, B, C herein Information table, is divided into region 1, and corresponding VPN1 for A hospital, and B hospital is divided into region 2, and corresponding VPN2, C is cured Institute is divided into region 3, and corresponding VPN3, if detecting that the position that the doctor is presently in is located in region 2, it is determined that institute The VPN route for stating mobile terminal is VPN2.
Wherein, the system time of the mobile terminal refers to the current system time of the mobile terminal, is specially The a certain moment.It is described that institute is determined according to the line parameter circuit value when the line parameter circuit value is the system time of the mobile terminal The VPN route for stating mobile terminal includes: the system time that the mobile terminal is searched in preset time fence information table, is sentenced Whether break in the time fence information table includes that the system time of the mobile terminal obtains the system time if including Corresponding VPN coding, so that it is determined that the VPN route of the mobile terminal.Wherein, the time fence information table is to pre-establish , it can store in above-mentioned EMM server 10, include multiple and different periods in the time fence information table, and The corresponding VPN route of multiple different time sections.For example, the time fence information table specifically can be as described in Table 1:
Table 1
Period VPN coding VPN route
Monday 8:30am-12:00am VPN-A The corresponding VPN route of A hospital
Monday 2:00pm-5:30pm VPN-B The corresponding VPN route of B hospital
Wednesday 2:00pm-5:30pm VPN-A The corresponding VPN route of A hospital
Friday 8:30am-5:30pm VPN-C The corresponding VPN route of C hospital
If the current system time of the mobile terminal is " Monday 3:00pm ", it is determined that the VPN line of the mobile terminal Road is the corresponding VPN route of B hospital.In above-mentioned time fence information table, the coding of VPN determined by different time sections can basis The historical time of user connects the habit of VPN coding to determine, can also determine by other means.In addition, the time encloses Column information table can dynamically update, and can be to enclose in above-mentioned EMM server between each mobile terminal user distributes management a period of time Column information table, time dynamic when connecting VPN route according to mobile terminal update the time fence information table.
Wherein, the NFC of mobile terminal information of checking card includes that the mobile terminal carries out time when NFC checks card, with And the mobile terminal carries out geographical location when NFC checks card.The mobile terminal includes NFC attendance function, in its progress NFC When checking card, the mobile terminal obtains its current system time and the current geographical location of the mobile terminal automatically.At this In embodiment, the VPN route of the mobile terminal is determined according to line parameter circuit value, i.e., NFC is carried out according to the mobile terminal and checked card When system time or its current geographical location determine its VPN route;It is beaten alternatively, carrying out NFC according to the mobile terminal System time and its current geographical location when card determine its VPN route.Wherein, NFC is carried out according to the mobile terminal to beat System time or its current geographical location when card determine that its VPN route can specifically refer to above-described embodiment part.Root System time when NFC checks card is carried out according to the mobile terminal and determines its VPN route with its current geographical location, i.e., examines simultaneously Consider time and two, geographical location limiting factor (s), is only all satisfied preset time and preset geography in the two limiting factor (s)s When position, the preset time and preset geographical location corresponding VPN route can be just selected.In the present embodiment, lead to simultaneously Time and two, geographical location limiting factor (s) are crossed to determine VPN route, so that identified VPN route is more able to satisfy the reality of user The accuracy of border demand, identified VPN route is higher.
It should be noted that the line parameter circuit value can also include other other than above-mentioned cited line parameter circuit value Parameter, for example, the line parameter circuit value can also be the MAC Address of the gateway of the connection of mobile terminal into network, it is different MAC Address corresponds to a unique VPN route.
The above process is the VPN route that the mobile terminal is determined according to a line parameter circuit value, when the mobile terminal When the line parameter circuit value got simultaneously includes at least two, the VPN that the mobile terminal is determined according to the line parameter circuit value Route includes: to obtain the line parameter circuit value of highest priority according to the corresponding priority of at least two line parameter circuit values;According to institute The line parameter circuit value for stating highest priority determines the VPN route of the mobile terminal.
For example, the line parameter circuit value of the mobile terminal currently got include: the mobile terminal connected WIFI title, The current system time in the position and the mobile terminal that the mobile terminal is presently in, and this three line parameter circuit values pair The priority answered is the WIFI name that the position that is presently in of the mobile terminal, the mobile terminal are connected respectively from high to low Claim, the system time that the mobile terminal is current, then, the shifting is determined according to the position that mobile terminal is presently at this time The VPN route of dynamic terminal.
Wherein it is possible to carry out dynamic update based on priority of the big data to above-mentioned line parameter circuit value.For example, certain doctor is daily At 10 points in the morning handles official business in A hospital, and connects the corresponding VPN route of A hospital, at this time positional priority highest.But from certain It rises, which starts 10 points of every morning, counts to the accumulation of number when secondary in the VPN route of connection B hospital of A hospital Up to after threshold value, the priority of time is higher than the priority of position, at this point, updating the corresponding priority of the line parameter circuit value.
When the line parameter circuit value that the above process is got at the same time includes multinomial, according to the corresponding priority of line parameter circuit value from more A line parameter circuit value is determined in item line parameter circuit value, and the VPN line of the mobile terminal is then determined according to the line parameter circuit value of the determination Road.It should be noted that can also determine the VPN route of the mobile terminal by other means in addition to the embodiment.Than Such as, the VPN route of the mobile terminal is directly determined based on preset algorithm and current multinomial line parameter circuit value.
The embodiment of the present application provides a kind of VPN circuit switching method, and this method is joined by obtaining the route of mobile terminal Number, then determines the VPN route of the mobile terminal according to the line parameter circuit value, to control determined by mobile terminal connection VPN route.The embodiment can make mobile terminal be connected automatically according to its line parameter circuit value, switch VPN route, without with Family manually selects VPN, brings conveniently to the operation that user connects VPN, the user experience is improved.
Referring to Fig. 3, Fig. 3 is a kind of flow diagram for VPN circuit switching method that another embodiment of the application provides, This method comprises:
Step 201, after detecting that user account logs in the mobile terminal, control the user account connection default VPN route;
Step 202, the line parameter circuit value for obtaining the mobile terminal;
Step 203, the VPN route that the mobile terminal is determined according to the line parameter circuit value;
Whether step 204, the VPN route for judging the default are identical as the VPN route of the determination;
If step 205, not identical, the VPN route that the mobile terminal switches to the determination is controlled, wherein described The quantity of VPN route is at least two, and the line parameter circuit value and the VPN route have one-to-one relationship.
In the present embodiment, the user for being related to VPN switching can register in above-mentioned EMM server 10, register User account can pass through above-mentioned EMM terminal 20 (namely described mobile terminal) and log in the EMM server 10.It is above-mentioned can be with It is that mobile terminal itself detects whether the user account logs in, is also possible to mobile terminal from EMM server 10 and obtains user The relevant information that account logs in.After the user account logs in mobile terminal, the VPN of the user account connection default is controlled Route, the VPN route of the default are that EMM server 10 is issued according to preset VPN configuration strategy to the mobile terminal VPN route, for example, the VPN route of the default are as follows: the VPN route of user account the last time connection or the use Connection Time longest in the highest VPN route of rate of connections or the user account preset time in the account preset time of family VPN route, etc..In the present embodiment, user starts also not needing user when connecting VPN and manually select, in conjunction with user's history The habit of VPN route is connected, automatically distributes VPN route for user, simplifies the operation that user connects VPN, is user's operation It brings conveniently.
After the VPN route defaulted in the mobile terminal connection, the route of the mobile terminal can be periodically obtained Parameter, and determine according to the line parameter circuit value got the VPN route of the mobile terminal, which can specifically refer to above-mentioned The narration of embodiment, details are not described herein.
The present embodiment is before switching VPN route, first by the VPN line of the VPN route of the default connection and the determination Road is compared, and in the two difference, otherwise the switching for just carrying out VPN route still connects the VPN route of default.As a result, Switched VPN route is avoided to repeat.
It should be noted that the circuit-switched process of VPN is controlled in above-described embodiment mainly the mobile terminal execution, In some other embodiment, the switching of VPN route can also be controlled by above-mentioned EMM server 10, for example, according to After line parameter circuit value determines the VPN route of the mobile terminal, the determining VPN route is sent to EMM server 10, EMM Server 10 controls the VPN route that the user account switches to the determination.
The embodiment of the present application provides a kind of VPN circuit switching method, and this method passes through the user account that detection logs in, from And it is the VPN route that the user account distributes default automatically, mobile terminal connects the VPN route of the default, further, may be used also The VPN route that mobile terminal allows hand over is determined with the line parameter circuit value according to mobile terminal, to realize the switching of VPN route. This embodiment achieves the modes of two kinds of automatic connection VPN routes, and do not need user's manual operation, in addition, the implementation Mode can connect automatically corresponding VPN route according to user account and specific application scenarios, ensure that connected VPN line The reliability on road.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of VPN circuit switching device provided by the embodiments of the present application, such as scheme Shown in 4, which includes: to obtain module 41, determining module 42 and switching module 43.
Wherein, module 41 is obtained, for obtaining the line parameter circuit value of the mobile terminal;Determining module 42, for according to institute State the VPN route that line parameter circuit value determines the mobile terminal;Switching module 43, for control the mobile terminal switch to it is described Determining VPN route, wherein the quantity of the VPN route is at least two, and the line parameter circuit value and the VPN route With one-to-one relationship.
Wherein, the acquisition module 41 is specifically used for obtaining following at least any one: what the mobile terminal was connected WIFI title;The location of described mobile terminal;The system time of the mobile terminal;And the NFC of the mobile terminal It checks card information.
It is same referring to Fig. 4, when the line parameter circuit value got includes at least two in some other embodiment When, the determining module 42 includes: acquiring unit 421 and determination unit 422.The acquiring unit 421, it is described extremely for basis Few corresponding priority of two line parameter circuit values, obtains the line parameter circuit value of highest priority.The determination unit 422 is used for basis The line parameter circuit value of the highest priority determines the VPN route of the mobile terminal.
In some other embodiment, it is same referring to Fig. 4, the line parameter circuit value for obtaining the mobile terminal it Before, described device 40 further includes control module 44, and the control module 44 is used to detect the user account login movement After terminal, the VPN route of the user account connection default is controlled.The movement is determined eventually according to the line parameter circuit value described After the VPN route at end, described device 40 further includes judgment module 45, and the judgment module 45 is for judging the default Whether VPN route is identical as the VPN route of the determination, if not identical, executes the relevant operation of the switching module 43, tool Body is the VPN route that the control mobile terminal switches to the determination.
Wherein, the VPN route of the default are as follows: the VPN route of user account the last time connection or the use Connection Time longest in the highest VPN route of rate of connections or the user account preset time in the account preset time of family VPN route, etc..
It is worth noting that the contents such as information exchange, implementation procedure between module, unit in above-mentioned apparatus, due to It is based on same design with the present processes embodiment, particular content can be found in the narration in the application embodiment of the method, herein It repeats no more.
The embodiment of the present application provides a kind of VPN circuit switching device, which is joined by obtaining the route of mobile terminal Number, then determines the VPN route of the mobile terminal according to the line parameter circuit value, to control determined by mobile terminal connection VPN route.The embodiment can make mobile terminal be connected automatically according to its line parameter circuit value, switch VPN route, without with Family manually selects VPN, brings conveniently to the operation that user connects VPN, the user experience is improved.
Referring to Fig. 5, Fig. 5 is the hardware structural diagram of electronic equipment provided by the embodiments of the present application, the electronic equipment 50 are able to carry out VPN circuit switching method as described above.The electronic equipment 50 includes:
One or more processors 51 and memory 52, in Fig. 5 by taking a processor 51 as an example.
Processor 51 can be connected with memory 52 by bus or other modes, to be connected as by bus in Fig. 5 Example.
Memory 52 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the corresponding journey of VPN circuit switching method in the embodiment of the present application Sequence instruction/module (for example, attached module shown in Fig. 4).Processor 51 is stored in non-volatile in memory 52 by operation Software program, instruction and module, thereby executing the various function application and data processing of server, i.e. the realization above method Embodiment VPN circuit switching method.
Memory 52 may include storing program area and storage data area, wherein storing program area can storage program area, Application program required at least one function;Storage data area can be stored to be created according to using for VPN circuit switching device Data etc..In addition, memory 52 may include high-speed random access memory, it can also include nonvolatile memory, example Such as at least one disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, it deposits Optional reservoir 52 includes the memory remotely located relative to processor 51, these remote memories can be by being connected to the network extremely VPN circuit switching device.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication And combinations thereof.
One or more of modules are stored in the memory 52, when by one or more of processors 51 When execution, the VPN circuit switching method in above-mentioned any means embodiment is executed, for example, executing the side in Fig. 2 described above For method step 101 to step 103, the method and step 201 in Fig. 3 realizes module 41-45, unit 421- in Fig. 4 to step 205 422 function.
Method provided by the embodiment of the present application can be performed in the said goods, has the corresponding functional module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present application.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone, multimedia handset, functional mobile phone and low-end mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc..
(3) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(4) other electronic devices with data interaction function.
The embodiment of the present application provides a kind of non-volatile computer readable storage medium storing program for executing, and the non-volatile computer can It reads storage medium and is stored with computer executable instructions, which executes above-mentioned any means by electronic equipment VPN circuit switching method in embodiment, for example, executing method and step 101 in Fig. 2 described above to step 103, Fig. 3 In method and step 201 to step 205, realize the module 41-45 in Fig. 4, the function of unit 421-422.
The embodiment of the present application provides a kind of computer program product, including is stored in non-volatile computer readable storage Calculation procedure on medium, the computer program include program instruction, are computer-executed constantly, make when described program instructs The computer executes the VPN circuit switching method in above-mentioned any means embodiment, for example, executing in Fig. 2 described above Method and step 101 to step 103, the method and step 201 in Fig. 3 realizes the module 41-45 in Fig. 4, unit to step 205 The function of 421-422.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those of ordinary skill in the art can be understood that each embodiment The mode of general hardware platform can be added to realize by software, naturally it is also possible to pass through hardware.Those of ordinary skill in the art can With understand all or part of the process realized in above-described embodiment method be can be instructed by computer program it is relevant hard Part is completed, and the program can be stored in a computer-readable storage medium, the program is when being executed, it may include as above State the process of the embodiment of each method.Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read- Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;At this It under the thinking of application, can also be combined between the technical characteristic in above embodiments or different embodiment, step can be with It is realized with random order, and there are many other variations of the different aspect of the application as described above, for simplicity, they do not have Have and is provided in details;Although the application is described in detail with reference to the foregoing embodiments, the ordinary skill people of this field Member is it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part of skill Art feature is equivalently replaced;And these are modified or replaceed, each reality of the application that it does not separate the essence of the corresponding technical solution Apply the range of a technical solution.

Claims (13)

1. a kind of VPN circuit switching method is applied to mobile terminal, which is characterized in that the described method includes:
Obtain the line parameter circuit value of the mobile terminal;
The VPN route of the mobile terminal is determined according to the line parameter circuit value;
Controlling the VPN route that the mobile terminal switches to the determination, wherein the quantity of the VPN route is at least two, And the line parameter circuit value and the VPN route have one-to-one relationship.
2. the method according to claim 1, wherein the line parameter circuit value of the mobile terminal includes following at least appointing Meaning one:
The WIFI title that the mobile terminal is connected;
The location of described mobile terminal;
The system time of the mobile terminal;And
The NFC of the mobile terminal checks card information.
3. the method according to claim 1, wherein when the line parameter circuit value got includes at least two When, the VPN route that the mobile terminal is determined according to the line parameter circuit value includes:
According to the corresponding priority of at least two line parameter circuit values, the line parameter circuit value of highest priority is obtained;
The VPN route of the mobile terminal is determined according to the line parameter circuit value of the highest priority.
4. method according to any one of claims 1 to 3, which is characterized in that
Before the line parameter circuit value for obtaining the mobile terminal, the method also includes: detecting user account login After the mobile terminal, the VPN route of the user account connection default is controlled;
After the VPN route for determining the mobile terminal according to the line parameter circuit value, the method also includes: judge institute Whether the VPN route for stating default is identical as the VPN route of the determination, if not identical, it is described mobile whole to execute the control The step of end switches to the VPN route of the determination.
5. according to the method described in claim 4, it is characterized in that, the VPN route of the default are as follows:
The VPN route of user account the last time connection;Or
The highest VPN route of rate of connections in the user account preset time;Or
Connection Time longest VPN route in the user account preset time.
6. a kind of VPN circuit switching device, it is applied to mobile terminal, which is characterized in that described device includes:
Module is obtained, for obtaining the line parameter circuit value of the mobile terminal;
Determining module, for determining the VPN route of the mobile terminal according to the line parameter circuit value;
Switching module switches to the VPN route of the determination for controlling the mobile terminal, wherein the number of the VPN route Amount is at least two, and the line parameter circuit value and the VPN route have one-to-one relationship.
7. device according to claim 6, which is characterized in that the acquisition module is specifically used for obtaining following at least any One:
The WIFI title that the mobile terminal is connected;
The location of described mobile terminal;
The system time of the mobile terminal;And
The NFC of the mobile terminal checks card information.
8. device according to claim 6, which is characterized in that when the line parameter circuit value got includes at least two When, the determining module includes:
Acquiring unit, for obtaining the route ginseng of highest priority according to the corresponding priority of at least two line parameter circuit values Number;
Determination unit, for determining the VPN route of the mobile terminal according to the line parameter circuit value of the highest priority.
9. according to the described in any item devices of claim 6 to 8, which is characterized in that in the line for obtaining the mobile terminal Before the parameter of road, described device further includes control module, and the control module is used to detect the user account login shifting After dynamic terminal, the VPN route of the user account connection default is controlled;
After the VPN route for determining the mobile terminal according to the line parameter circuit value, described device further includes judging mould Block, the judgment module is for judging whether the VPN route of the default is identical as the VPN route of the determination, if not identical, Then execute the step of control mobile terminal switches to the VPN route of the determination.
10. device according to claim 9, which is characterized in that the VPN route of the default are as follows:
The VPN route of user account the last time connection;Or
The highest VPN route of rate of connections in the user account preset time;Or
Connection Time longest VPN route in the user account preset time.
11. a kind of electronic equipment characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory be stored with can by least one described processor execute instruction repertorie, described instruction program by it is described extremely A few processor executes, so that at least one described processor perform claim requires 1 to 5 described in any item methods.
12. a kind of computer program product, which is characterized in that the computer program product includes: that non-volatile computer can Storage medium is read, and is embedded in the computer program instructions of the non-volatile computer readable storage medium storing program for executing, the calculating Machine program instruction includes the instruction to make processor perform claim require 1 to 5 described in any item methods.
13. a kind of non-volatile computer readable storage medium storing program for executing, which is characterized in that the computer-readable recording medium storage has Computer executable instructions, the computer executable instructions are described in any item for making the requirement 1 to 5 of computer enforcement power Method.
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 true CN109076005A (en) 2018-12-21
CN109076005B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213769A (en) * 2019-06-10 2019-09-06 平安科技(深圳)有限公司 A kind of Intranet access method and relevant apparatus
CN110324826A (en) * 2019-06-10 2019-10-11 平安科技(深圳)有限公司 A kind of Intranet access method and relevant apparatus
WO2020248368A1 (en) * 2019-06-10 2020-12-17 平安科技(深圳)有限公司 Intranet accessing method, system, and related device

Citations (5)

* 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
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
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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181624A (en) * 2017-06-30 2017-09-19 联想(北京)有限公司 A kind of method for connecting network, electronic equipment and computer-readable storage medium

Patent Citations (5)

* 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
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
CN106789530A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of method for connecting network, device and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213769A (en) * 2019-06-10 2019-09-06 平安科技(深圳)有限公司 A kind of Intranet access method and relevant apparatus
CN110324826A (en) * 2019-06-10 2019-10-11 平安科技(深圳)有限公司 A kind of Intranet access method and relevant apparatus
WO2020248368A1 (en) * 2019-06-10 2020-12-17 平安科技(深圳)有限公司 Intranet accessing method, system, and related device
CN110324826B (en) * 2019-06-10 2022-08-16 平安科技(深圳)有限公司 Intranet access method and related device

Also Published As

Publication number Publication date
WO2019205133A1 (en) 2019-10-31
CN109076005B (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN103098442B (en) The setting of network store system and configuration
US10057115B2 (en) Device resource management based on contextual planning
CN109076005A (en) A kind of VPN circuit switching method, device and electronic equipment
CN103037506B (en) Localization method, system and relevant device
CN102761894B (en) Method, device and system for acquiring paths
CN103281673A (en) Business information push service system and method
CN102385575A (en) Timely carpooling service system and method based on GIS (Geographic Information System)
CN107182098A (en) For realizing the method and apparatus that user equipment switches between WAP
CN103313192A (en) Multiple-screen sharing method and system
CN108596785A (en) Processing method, device, computer equipment and the storage medium of power equipment data
EP3364633A1 (en) Method and device for identifying address type
CN104881717A (en) Route recommend method and user terminal
CN105163269A (en) E-card information adding method and device and intelligent device
CN106686545B (en) A kind of application method and device of Wireless Fidelity national code
CN106412078B (en) Accurate information method for pushing, device and system
CN106303420A (en) A kind of monitoring method being applied to moving target and monitoring system
CN103813439A (en) Method for terminal register and terminal
CN103595846A (en) Mobile terminal address list sorting method and system
CN108781189B (en) Load balancing method and related equipment
CN115277598A (en) Computing resource scheduling method and device and computer readable storage medium
CN104754505A (en) Number information pushing method, quickly dialing method, device and system
CN107257383A (en) A kind of information-pushing method, device and storage medium, electronic equipment
CN105307113A (en) Loss identifying and finding method of mobile terminal and mobile terminal
CN106604316A (en) Wireless access equipment fault positioning method, device and system
CN106097772A (en) A kind of road parking place reservation system based on mobile Internet and method

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.