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.
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.