CN112148534A - Terminal seamless migration method and device, electronic equipment and storage medium - Google Patents

Terminal seamless migration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112148534A
CN112148534A CN202010876089.3A CN202010876089A CN112148534A CN 112148534 A CN112148534 A CN 112148534A CN 202010876089 A CN202010876089 A CN 202010876089A CN 112148534 A CN112148534 A CN 112148534A
Authority
CN
China
Prior art keywords
server
migration
access mode
terminal
switching instruction
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.)
Pending
Application number
CN202010876089.3A
Other languages
Chinese (zh)
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.)
NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER, Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Priority to CN202010876089.3A priority Critical patent/CN112148534A/en
Publication of CN112148534A publication Critical patent/CN112148534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/203Failover techniques using migration

Abstract

The embodiment of the invention provides a seamless terminal migration method, a seamless terminal migration device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from the first access mode to the second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server; and switching the local access mode according to the migration switching instruction, and switching the local access mode from the first access mode to the second access mode. According to the embodiment of the invention, the terminal is not required to be set, the local access mode is switched by receiving the migration switching instruction sent by the server, and the local access mode is conveniently, quickly and perceptually switched from the first access mode to the second access mode, so that seamless migration of the terminal accessing different servers is realized, and the user experience is greatly improved.

Description

Terminal seamless migration method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for seamless migration of a terminal, an electronic device, and a storage medium.
Background
The current C/S (Client-Server) architecture software in the prior art either does not have a function of migrating the local access mode from the access mode of the first Server to the access mode of the second Server, or requires manual setting on the terminal.
The disadvantages of both of these approaches are: the migration of the access mode of the first server to the access mode of the second server cannot be realized. Secondly, the server needs to be configured on one terminal manually, which brings waste of manpower and time and is extremely inconvenient.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for seamless migration of a terminal, an electronic device, and a storage medium.
Specifically, the embodiment of the invention provides the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for seamless migration of a terminal, where the method is applied to the terminal and includes:
receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information;
and switching the local access mode according to the migration switching instruction, and switching the local access mode from the first access mode to the second access mode.
Further, the migration switching instruction carries an address and a network port of the second server;
correspondingly, the local access mode switching is performed according to the migration switching instruction, and the local access mode is switched from the first access mode to the second access mode, including:
and carrying out validity check on the address and the network port of the second server, and if the check is successful, replacing the address and the network port of the first server in the local access mode with the address and the network port of the second server according to the migration switching instruction.
Further, still include:
and sending the local network access request to the second server according to the address and the network port of the second server.
Further, the migration switching instruction is sent by the first server when monitoring that the network throughput of the first server is lower than a preset threshold, or the migration switching instruction is sent by the first server when monitoring that the first server has a fault, or the migration switching instruction is sent by the first server when receiving a switching command of an administrator.
In a second aspect, an embodiment of the present invention further provides a method for seamless migration of a terminal, where the method is applied to a first server, and includes:
generating a migration switching instruction according to the pre-configured migration information;
sending the migration switching instruction to a terminal to indicate that the terminal is switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
Further, the migration switching instruction carries an address and a network port of the second server;
correspondingly, sending the migration switching instruction to the terminal to instruct the terminal to switch from the first access mode to the second access mode includes:
and sending a migration switching instruction to a terminal to indicate the terminal to carry out validity check on the address and the network port of the second server, and replacing the address and the network port of the first server in the local access mode of the terminal with the address and the network port of the second server according to the migration switching instruction when the check is successful.
Further, generating a migration switching instruction according to the preconfigured migration information, including:
judging whether the network throughput of the user is lower than a preset threshold value or not, or judging whether the user breaks down or not, or judging whether a switching command of an administrator is received, and if so, generating a migration switching instruction according to pre-configured migration information.
Further, determining whether the network throughput of the mobile terminal is lower than a preset threshold, or whether the mobile terminal has a fault, or whether a switching command of an administrator is received, and if so, generating a migration switching instruction according to preconfigured migration information, including:
judging whether the network throughput per se is lower than a preset threshold value or not, or whether the network throughput per se is in failure or not, or whether a switching command of an administrator is received or not, and if so, sending a configuration request to a center;
receiving the address and the network port of the second server sent by the center; wherein the address and the network port of the second server are determined by the center from a server set in an idle state or a non-full load state after receiving the configuration request;
and configuring the address and the network port of the second server as migration information, and generating a migration switching instruction according to the migration information.
In a third aspect, an embodiment of the present invention further provides a device for seamless migration of a terminal, where the device is applied to a terminal and includes:
the receiving module is used for receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information;
and the switching module is used for switching the local access mode according to the migration switching instruction and switching the local access mode from the first access mode to the second access mode.
In a fourth aspect, an embodiment of the present invention further provides a device for seamless migration of a terminal, where the device is applied to a first server, and the device includes:
the generation module is used for generating a migration switching instruction according to the pre-configured migration information;
the instruction switching module is used for sending the migration switching instruction to a terminal so as to instruct the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for seamless migration of a terminal according to the first aspect when executing the program; and/or the processor implements the steps of the seamless migration method of the terminal according to the second aspect when executing the program.
In a sixth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the terminal seamless migration method according to the first aspect; and/or the computer program realizes the steps of the seamless migration method of the terminal according to the second aspect when being executed by the processor.
In a seventh aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and is characterized in that when being executed by a processor, the computer program implements the steps of the terminal seamless migration method according to the first aspect; and/or the computer program realizes the steps of the seamless migration method of the terminal according to the second aspect when being executed by the processor.
As can be seen from the foregoing technical solutions, the seamless migration method and apparatus for a terminal, the electronic device, and the storage medium according to the embodiments of the present invention perform local access mode switching according to the migration switching instruction sent by the first server, and switch the local access mode from a first access mode accessing the first server to a second access mode accessing the second server. According to the embodiment of the invention, manual server configuration is not required on one terminal, the local access mode is switched by receiving the migration switching instruction sent by the server, and the local access mode can be conveniently, quickly and perceptually switched from the first access mode to the second access mode, so that seamless migration of the terminal accessing different servers is realized, the migration process of the server is more convenient, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a seamless migration method for a terminal according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating an implementation principle of a seamless migration method for a terminal according to an embodiment of the present invention;
fig. 3 is a flowchart of a seamless migration method for a terminal according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a seamless migration apparatus for a terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a seamless migration apparatus for a terminal according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, the migration is generally completed by manually configuring a server on one terminal, and the processing mode causes waste of labor and time cost. In order to solve the problem, the invention switches the local access mode by receiving the migration switching instruction sent by the server, thereby being capable of conveniently, quickly and insensibly switching from accessing the first server to accessing the second server. The seamless migration method of the terminal provided by the present invention will be explained and explained in detail by specific embodiments.
Fig. 1 shows a flowchart of a seamless migration method for a terminal according to an embodiment of the present invention. As shown in fig. 1, a method for seamlessly migrating a terminal according to an embodiment of the present invention is applied to a terminal, and includes the following steps:
step 101: receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information;
in this step, it should be noted that, software in a software system of a C/S (Client-Server) architecture is divided into two parts: a server part and a terminal part. The terminal is connected with the server through the network, receives the control of the server, executes different processing logics according to different instructions of the server, and completes different service functions. The server receives the network request of the terminal, and processes, summarizes and displays various information reported by the terminal. In this architecture, the server and the terminal are in a one-to-many relationship, that is, a plurality of terminals are hung under one server, and one terminal is connected with only one server. This involves a problem: how a terminal can be conveniently, quickly and unintelligibly switched to other servers can greatly improve the user experience of software if the problem can be solved. The current C/S architecture software has no migration function or needs to be set on a terminal, which is very inconvenient. To solve the problem, as shown in fig. 2, in this embodiment, a migration configuration is added at a server side to be migrated, and a receiving function is added at a terminal, so that when a first server to which the terminal is currently connected needs to be migrated to be connected to another server (i.e. a second server), a migration configuration needs to be performed at the first server side, and a specific configuration scheme is to configure a migrated server as the second server (the second server is a server capable of providing normal service for the terminal by default), at the same time, the first server sends a migration instruction to the terminal, so that the terminal switches from an access mode of currently accessing the first server to an access mode of accessing the second server according to the migration instruction, where the first server is preconfigured with migration information, which may be an IP address of the second server preconfigured in the first server, it may also be an IP address and a network port of a second server pre-configured in the first server.
Step 102: and switching the local access mode according to the migration switching instruction, and switching the local access mode from the first access mode to the second access mode.
In this step, after receiving the migration switching instruction, the terminal performs local access mode switching according to the migration switching instruction, and switches the local access mode from a first access mode for accessing the first server to a second access mode for accessing the second server, thereby completing seamless switching of the terminal to access different servers.
In this embodiment, it should be noted that the second server is another server that is parallel to the first server, where the first server and the second server are only a general term, and the second server may be any other server that is parallel to and different from the first server.
As can be seen from the foregoing technical solutions, in the seamless migration method for a terminal provided in this embodiment, the local access mode is switched according to the migration switching instruction sent by the first server, and the local access mode is switched from the first access mode for accessing the first server to the second access mode for accessing the second server. According to the embodiment of the invention, the server configuration is not required to be manually carried out on one terminal, and the local access mode can be switched by receiving the migration switching instruction sent by the server, so that the local access mode can be conveniently, quickly and perceptually switched from the first access mode to the second access mode, the seamless migration of the terminal accessing different servers is realized, the migration process of the server is more convenient, and the user experience is improved.
Based on the content of the foregoing embodiment, in this embodiment, the migration switching instruction carries an address and a network port of the second server;
correspondingly, the local access mode switching is performed according to the migration switching instruction, and the local access mode is switched from the first access mode to the second access mode, including:
and carrying out validity check on the address and the network port of the second server, and if the check is successful, replacing the address and the network port of the first server in the local access mode with the address and the network port of the second server according to the migration switching instruction.
In this embodiment, the migration switching instruction sent by the server carries an address and a network port of the second server, and it should be noted that the address of the second server may be an IP address (referred to as an internet protocol address) of the second server, where the IP address is a unified address format provided by an IP protocol, and allocates a logical address to each network and each host on the internet, so as to shield a difference of physical addresses. The network port of the second server is a port used by the second server to communicate with the terminal, and is generally represented by a port number.
In this embodiment, since the migration switching instruction carries the address and the network port of the second server, when the terminal performs local access mode switching according to the migration switching instruction, in order to ensure access security after switching, the terminal needs to perform validity check on the address and the network port of the second server, and only when the check is successful, the terminal performs switching from the first access mode to the second access mode, otherwise, the terminal does not perform switching. For example, when the address and the network port of the second server are subjected to validity check, the address and the network port of the second server may be compared with a preset valid server address set and a preset valid port set in a matching manner, and if the address and the network port of the second server are located in the preset valid server address set and the preset valid port set, it is indicated that the address and the network port of the second server are valid, otherwise, it is indicated that the address and the network port of the second server are not valid. In addition, in addition to the above determination manner, the address and the network port of the second server may be matched and compared with the preset illegal server address set and the preset illegal port set, and if the address and the network port of the second server are not located in the preset illegal server address set and the preset illegal port set, it is determined that the address and the network port of the second server are legal, otherwise, it is determined that the address and the network port of the second server are not legal. By adopting the judging method provided by the embodiment, the legality of the address and the network port of the second server can be judged quickly and accurately. In addition, according to actual requirements, other determination manners may be adopted when determining the validity of the address and the network port of the second server, which is not limited in this embodiment.
As can be seen from the foregoing technical solutions, in the seamless migration method for a terminal provided in this embodiment, since the migration switching instruction carries the address and the network port of the second server, in order to ensure the access security after switching, in this embodiment, the address and the network port of the second server are subjected to validity check, and only when the check is successful, the local access mode is switched, so that the security after switching is ensured.
Based on the content of the foregoing embodiments, in this embodiment, the method further includes:
and sending the local network access request to the second server according to the address and the network port of the second server.
In this embodiment, referring to fig. 2, after the terminal switches the local access mode from the first access mode accessing the first server to the second access mode accessing the second server according to the migration switching instruction, the terminal will not communicate with the first server any more, but communicate with the second server, and send a local network access request to the second server, thereby actually implementing the access switching.
Based on the content of the foregoing embodiments, in this embodiment, the migration switching instruction is sent by the first server when monitoring that the network throughput of the first server is lower than a preset threshold, or the migration switching instruction is sent by the first server when monitoring that the first server fails, or the migration switching instruction is sent by the first server when receiving a switching command of an administrator.
In this embodiment, it can be understood that the first server does not need to notify the terminal to perform migration switching in a general case, but sometimes the first server cannot continue to provide normal services for the terminal due to various states, for example, when the first server monitors that the network throughput of the first server is lower than a preset threshold, the first server cannot provide normal services for the terminal, and at this time, a migration switching instruction is sent to the terminal to notify the terminal to perform migration switching, so as to ensure normal access of the terminal. Therefore, in one implementation, the migration switching instruction is sent by the first server when the monitored network throughput of the first server is lower than a preset threshold. In this embodiment, it is assumed that the preset network throughput threshold is 1000Mbps, and when the first server monitors that the network throughput of the first server is lower than the preset threshold, the first server sends a migration instruction to the terminal. For another example, when the first server monitors that the first server has a fault, the first server cannot provide normal service for the terminal, so that a migration switching instruction is sent to the terminal at this time, and the terminal is notified to perform migration switching, so that normal access of the terminal is ensured. Therefore, in an implementation manner, the migration switching instruction is sent by the first server when the first server monitors that the first server has a failure. For another example, the first server itself has no abnormality, but when the administrator needs to perform server switching due to planning or other arrangements, the administrator issues a switching command to the first server, and at this time, the first server cannot continue to serve the terminal, so that a migration switching instruction is sent to the terminal at this time, and the terminal is notified to perform migration switching, so as to ensure normal access of the terminal. Thus, in one implementation, the migration switching instruction is sent by the first server upon receiving a switching command of an administrator.
Therefore, the working state of the first server can be automatically monitored, and when the network throughput of the first server is monitored to be lower than the preset threshold, or when the first server breaks down, or when a switching command of an administrator is received, a migration switching instruction can be automatically sent to the terminal, so that normal access of the terminal is ensured. In addition, it should be noted that in this embodiment, the server actively initiates the migration switching instruction, and then the terminal cooperates with the automatic access mode modification, so that the whole process does not need manual participation, thereby implementing seamless migration of the terminal accessing different servers.
The following explains and explains the seamless migration method of the terminal provided in this embodiment in detail with reference to the schematic diagram shown in fig. 2, and the specific working principle is as follows:
in addition, the embodiment adds the server setting and terminal receiving functions of migration configuration, when a server currently connected with the terminal needs to be migrated to another server, the server configures an IP and a communication port of the migration server, and the terminal notifies the communication module to change the server address after receiving the configuration, and accordingly, after receiving the server address change notification, the terminal communication module can send all network requests to a new server to complete seamless migration of the terminal. Therefore, in the embodiment, the migration configuration is added in the server (the migration configuration mainly configures the IP address and the communication port of the migration server), and is pushed to the terminal, the terminal performs validity check on the migration server after receiving the configuration, and sends all network requests of the terminal to the new server after the verification is successful, so as to complete seamless migration of the terminal, thereby greatly reducing the manpower and time waste caused by manual server configuration on one terminal to complete the migration.
Fig. 3 is a flowchart illustrating a method for seamless migration of a terminal according to another embodiment of the present invention. As shown in fig. 3, the method for seamless migration of a terminal according to an embodiment of the present invention is applied to a first server, and includes the following steps:
step 201: generating a migration switching instruction according to the pre-configured migration information;
in this step, it can be understood that, when the first server has a handover requirement, the first server first generates a handover instruction according to the preconfigured migration information, and then sends the handover instruction to the terminal through step 202. The preconfigured migration information may be an IP address of the second server preconfigured in the first server, or an IP address and a network port of the second server preconfigured in the first server.
It is understood that the first server having a switching requirement may refer to the following conditions: for example, when detecting that the self network throughput is lower than a preset threshold value, the first server; as another example, the first server detects a failure of itself, and as another example, the first server receives a switch command from an administrator.
Step 202: sending the migration switching instruction to a terminal to indicate that the terminal is switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
In this step, it can be understood that the first server sends a migration switching instruction to the terminal, where the migration switching instruction is used to instruct the terminal to switch from a first access mode for accessing the first server to a second access mode for accessing the second server, so as to complete seamless migration switching for the terminal to access different servers.
As can be seen from the foregoing technical solutions, in the seamless migration method for a terminal provided in this embodiment, the local access mode is switched according to the migration switching instruction sent by the first server, and the local access mode is switched from the first access mode for accessing the first server to the second access mode for accessing the second server. According to the embodiment of the invention, manual server configuration is not required on one terminal, the local access mode is switched by receiving the migration switching instruction sent by the server, and the local access mode can be conveniently, quickly and perceptually switched from the first access mode to the second access mode, so that seamless migration of the terminal accessing different servers is realized, the migration process of the server is more convenient, and the user experience is improved.
Based on the content of each of the above embodiments, in this embodiment, the migration switching instruction carries an address and a network port of the second server;
correspondingly, sending the migration switching instruction to the terminal to instruct the terminal to switch from the first access mode to the second access mode includes:
and sending a migration switching instruction to a terminal to indicate the terminal to carry out validity check on the address and the network port of the second server, and replacing the address and the network port of the first server in the local access mode of the terminal with the address and the network port of the second server according to the migration switching instruction when the check is successful.
In this embodiment, since the migration switching instruction carries the address and the network port of the second server, when the terminal performs local access mode switching according to the migration switching instruction, in order to ensure access security after switching, the terminal needs to perform validity check on the address and the network port of the second server, and only when the check is successful, the terminal performs switching from the first access mode to the second access mode, otherwise, the terminal does not perform switching. For example, when the address and the network port of the second server are subjected to validity check, the address and the network port of the second server may be compared with a preset valid server address set and a preset valid port set in a matching manner, and if the address and the network port of the second server are located in the preset valid server address set and the preset valid port set, it is indicated that the address and the network port of the second server are valid, otherwise, it is indicated that the address and the network port of the second server are not valid. In addition, in addition to the above determination manner, the address and the network port of the second server may be matched and compared with the preset illegal server address set and the preset illegal port set, and if the address and the network port of the second server are not located in the preset illegal server address set and the preset illegal port set, it is determined that the address and the network port of the second server are legal, otherwise, it is determined that the address and the network port of the second server are not legal. By adopting the judging method provided by the embodiment, the legality of the address and the network port of the second server can be judged quickly and accurately. In addition, according to actual requirements, other determination manners may be adopted when determining the validity of the address and the network port of the second server, which is not limited in this embodiment.
As can be seen from the foregoing technical solutions, in the seamless migration method for a terminal provided in this embodiment, since the migration switching instruction carries the address and the network port of the second server, in order to ensure the access security after switching, in this embodiment, the address and the network port of the second server are subjected to validity check, and only when the check is successful, the local access mode is switched, so that the security after switching is ensured.
Based on the content of the foregoing embodiments, in this embodiment, generating a migration switching instruction according to preconfigured migration information includes:
judging whether the network throughput of the user is lower than a preset threshold value or not, or judging whether the user breaks down or not, or judging whether a switching command of an administrator is received, and if so, generating a migration switching instruction according to pre-configured migration information.
In this embodiment, it can be understood that the first server does not need to notify the terminal to perform migration switching in a general case, but sometimes the first server cannot continue to provide normal services for the terminal due to various states, for example, when the first server monitors that the network throughput of the first server is lower than a preset threshold, the first server cannot provide normal services for the terminal, and at this time, a migration switching instruction is sent to the terminal to notify the terminal to perform migration switching, so as to ensure normal access of the terminal. Therefore, in one implementation, the migration switching instruction is sent by the first server when the monitored network throughput of the first server is lower than a preset threshold. In this embodiment, assuming that the preset network throughput threshold is 1000Mbps, when the first server monitors that the network throughput of the first server is lower than the preset threshold, the first server sends a migration instruction to the terminal. For another example, when the first server monitors that the first server has a fault, the first server cannot provide normal service for the terminal, so that a migration switching instruction is sent to the terminal at this time, and the terminal is notified to perform migration switching, so that normal access of the terminal is ensured. Therefore, in an implementation manner, the migration switching instruction is sent by the first server when the first server monitors that the first server has a failure. For another example, the first server itself has no abnormality, but when the administrator needs to perform server switching due to planning or other arrangements, the administrator issues a switching command to the first server, and at this time, the first server cannot continue to serve the terminal, so that a migration switching instruction is sent to the terminal at this time, and the terminal is notified to perform migration switching, so as to ensure normal access of the terminal. Thus, in one implementation, the migration switching instruction is sent by the first server upon receiving a switching command of an administrator.
Therefore, the working state of the first server can be automatically monitored, and when the network throughput of the first server is monitored to be lower than the preset threshold, or when the first server breaks down, or when a switching command of an administrator is received, a migration switching instruction can be automatically sent to the terminal, so that normal access of the terminal is ensured. In addition, it should be noted that in this embodiment, the server actively initiates the migration switching instruction, and then the terminal cooperates with the automatic access mode modification, so that the whole process does not need manual participation, thereby implementing seamless migration of the terminal accessing different servers.
Based on the content of each embodiment, in this embodiment, determining whether the network throughput of the mobile terminal is lower than a preset threshold, or whether the mobile terminal has a failure, or whether a switching command of an administrator is received, and if so, generating a migration switching instruction according to preconfigured migration information includes:
judging whether the network throughput per se is lower than a preset threshold value or not, or whether the network throughput per se is in failure or not, or whether a switching command of an administrator is received or not, and if so, sending a configuration request to a center;
receiving the address and the network port of the second server sent by the center; wherein the address and the network port of the second server are determined by the center from a server set in an idle state or a non-full load state after receiving the configuration request;
and configuring the address and the network port of the second server as migration information, and generating a migration switching instruction according to the migration information.
In this embodiment, it can be understood that, when the first server detects that the network throughput of the first server is lower than the preset threshold, or, when a fault occurs in itself, or when a switching command of an administrator is received, it is determined that a part of terminals connected to the first server needs to be accessed and migrated, at this time, the first server sends a configuration request to the center, the request center allocates a server in an idle state or a non-full load state to the first server as a server after terminal migration, correspondingly, after the center receives the configuration request, determining an address and a network port of a second server from the set of servers in an idle state or a non-fully loaded state, and then the first server generates a migration switching instruction according to the address and the network port of the second server sent by the center so as to instruct the terminal to perform the migration of the server, thereby ensuring the normal access of the terminal. Therefore, in the seamless migration method for the terminal provided by the embodiment, the whole process (including the steps that the first server detects that the first server is no longer capable of providing service for the terminal, the first server automatically applies for the second server in the idle state from the center, and the first server sends the migration switching instruction containing the address and the network port of the second server to the terminal for the terminal to perform migration switching, etc.) is automatically realized, for the terminal, seamless switching is realized, manual configuration does not need to be participated in, and thus the user experience is improved.
Fig. 4 is a schematic structural diagram of a seamless migration apparatus for a terminal according to an embodiment of the present invention. As shown in fig. 4, the seamless migration apparatus for a terminal according to this embodiment, applied to a terminal, includes: a receiving module 301 and a switching module 302, wherein:
a receiving module 301, configured to receive a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information;
a switching module 302, configured to perform local access mode switching according to the migration switching instruction, and switch the local access mode from the first access mode to the second access mode.
Based on the content of each of the above embodiments, in this embodiment, the migration switching instruction carries an address and a network port of the second server;
accordingly, the switching module 302 is configured to:
and carrying out validity check on the address and the network port of the second server, and if the check is successful, replacing the address and the network port of the first server in the local access mode with the address and the network port of the second server according to the migration switching instruction.
Based on the content of the foregoing embodiments, in this embodiment, the method further includes:
and the sending module is used for sending the local network access request to the second server according to the address and the network port of the second server.
Based on the content of the foregoing embodiments, in this embodiment, the migration switching instruction is sent by the first server when monitoring that the network throughput of the first server is lower than a preset threshold, or the migration switching instruction is sent by the first server when monitoring that the first server fails, or the migration switching instruction is sent by the first server when receiving a switching command of an administrator.
Since the seamless migration apparatus of the terminal according to the embodiment of the present invention may be used to execute the seamless migration method of the terminal according to the embodiment of the terminal side, and the working principle and the beneficial effect are similar, detailed descriptions are omitted here, and specific contents may refer to the description of the embodiment.
In this embodiment, it should be noted that each module in the apparatus according to the embodiment of the present invention may be integrated into a whole or may be separately disposed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Fig. 5 is a schematic structural diagram of a seamless migration apparatus for a terminal according to another embodiment of the present invention. As shown in fig. 5, the seamless migration apparatus for a terminal according to this embodiment, applied to a first server, includes: a generating module 401 and an indication switching module 402, wherein:
a generating module 401, configured to generate a migration switching instruction according to preconfigured migration information;
an instruction switching module 402, configured to send the migration switching instruction to a terminal to instruct the terminal to switch from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
Based on the content of each of the above embodiments, in this embodiment, the migration switching instruction carries an address and a network port of the second server;
accordingly, the switching module 402 is instructed to:
and sending a migration switching instruction to a terminal to indicate the terminal to carry out validity check on the address and the network port of the second server, and replacing the address and the network port of the first server in the local access mode of the terminal with the address and the network port of the second server according to the migration switching instruction when the check is successful.
Based on the content of the foregoing embodiments, in this embodiment, the generating module 401 is configured to:
judging whether the network throughput of the user is lower than a preset threshold value or not, or judging whether the user breaks down or not, or judging whether a switching command of an administrator is received, and if so, generating a migration switching instruction according to pre-configured migration information.
Based on the content of each embodiment, in this embodiment, it is determined whether the network throughput of the mobile terminal is lower than a preset threshold, or whether the mobile terminal has a failure, or whether a switching command of an administrator is received, and if so, a migration switching instruction is generated according to preconfigured migration information, and is used for:
judging whether the network throughput per se is lower than a preset threshold value or not, or whether the network throughput per se is in failure or not, or whether a switching command of an administrator is received or not, and if so, sending a configuration request to a center;
receiving the address and the network port of the second server sent by the center; wherein the address and the network port of the second server are determined by the center from a server set in an idle state or a non-full load state after receiving the configuration request;
and configuring the address and the network port of the second server as migration information, and generating a migration switching instruction according to the migration information.
Since the seamless migration apparatus of the terminal provided in the embodiment of the present invention can be used to execute the seamless migration method of the terminal described in the first server-side embodiment, the operation principle and the beneficial effect are similar, and therefore detailed description is omitted here, and specific contents can be referred to the description of the above embodiment.
In this embodiment, it should be noted that each module in the apparatus according to the embodiment of the present invention may be integrated into a whole or may be separately disposed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Based on the same inventive concept, another embodiment of the present invention provides an electronic device, which specifically includes the following components, with reference to fig. 6: a processor 501, a memory 502, a communication interface 503, and a communication bus 504;
the processor 501, the memory 502 and the communication interface 503 complete mutual communication through the communication bus 504;
the processor 501 is configured to call a computer program in the memory 502, and when the processor executes the computer program, the processor implements all the steps of the above-mentioned terminal wireless migration method, for example, when the processor executes the computer program, the processor implements the following processes: receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information; and switching the local access mode according to the migration switching instruction, and switching the local access mode from the first access mode to the second access mode.
Based on the same inventive concept, another embodiment of the present invention provides an electronic device, which specifically includes the following components, with reference to fig. 7: a processor 601, a memory 602, a communication interface 603, and a communication bus 604;
the processor 601, the memory 602 and the communication interface 603 complete mutual communication through the communication bus 604;
the processor 601 is configured to call a computer program in the memory 602, and when the processor executes the computer program, the processor implements all the steps of the above-mentioned terminal wireless migration method, for example, when the processor executes the computer program, the processor implements the following processes: generating a migration switching instruction according to the pre-configured migration information; sending the migration switching instruction to a terminal to indicate that the terminal is switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
It will be appreciated that the detailed functions and extended functions that the computer program may perform may be as described with reference to the above embodiments.
Based on the same inventive concept, another embodiment of the present invention provides a non-transitory computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements all the steps of the above-mentioned terminal wireless migration method, for example, receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information; and switching the local access mode according to the migration switching instruction, and switching the local access mode from the first access mode to the second access mode.
Based on the same inventive concept, another embodiment of the present invention provides a non-transitory computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements all the steps of the above-mentioned terminal wireless migration method, for example, generating a migration switching instruction according to preconfigured migration information; sending the migration switching instruction to a terminal to indicate that the terminal is switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
It will be appreciated that the detailed functions and extended functions that the computer program may perform may be as described with reference to the above embodiments.
Based on the same inventive concept, another embodiment of the present invention provides a computer program product, which includes a computer program, when being executed by a processor, the computer program implements all the steps of the above-mentioned associated application starting control method, for example, when the processor executes the computer program, the processor implements the following processes: receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information; and switching the local access mode according to the migration switching instruction, and switching the local access mode from the first access mode to the second access mode.
Based on the same inventive concept, another embodiment of the present invention provides a computer program product, which includes a computer program, when being executed by a processor, the computer program implements all the steps of the above-mentioned associated application starting control method, for example, when the processor executes the computer program, the processor implements the following processes: generating a migration switching instruction according to the pre-configured migration information; sending the migration switching instruction to a terminal to indicate that the terminal is switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
It will be appreciated that the detailed functions and extended functions that the computer program may perform may be as described with reference to the above embodiments.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
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 embodiment of the present invention. One of ordinary skill in the art can understand and implement it without inventive effort.
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 necessary general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions may be essentially or partially implemented in the form of software products, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and include several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the terminal wireless migration method according to the various embodiments or some parts of the embodiments.
Moreover, in the present invention, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Furthermore, in the present disclosure, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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 such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A terminal seamless migration method is applied to a terminal and comprises the following steps:
receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information;
and switching the local access mode according to the migration switching instruction, and switching the local access mode from the first access mode to the second access mode.
2. The seamless terminal migration method according to claim 1, wherein the migration switching instruction carries an address and a network port of the second server;
correspondingly, the local access mode switching is performed according to the migration switching instruction, and the local access mode is switched from the first access mode to the second access mode, including:
and carrying out validity check on the address and the network port of the second server, and if the check is successful, replacing the address and the network port of the first server in the local access mode with the address and the network port of the second server according to the migration switching instruction.
3. The method for seamlessly migrating the terminal according to claim 2, further comprising:
and sending the local network access request to the second server according to the address and the network port of the second server.
4. The method according to claim 1, wherein the migration switching instruction is sent by the first server when monitoring that the network throughput of the first server is lower than a preset threshold, or the migration switching instruction is sent by the first server when monitoring that the first server fails, or the migration switching instruction is sent by the first server when receiving a switching command from an administrator.
5. A terminal seamless migration method is applied to a first server and comprises the following steps:
generating a migration switching instruction according to the pre-configured migration information;
sending the migration switching instruction to a terminal to indicate that the terminal is switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
6. The seamless terminal migration method according to claim 5, wherein the migration switching instruction carries an address and a network port of the second server;
correspondingly, sending the migration switching instruction to the terminal to instruct the terminal to switch from the first access mode to the second access mode includes:
and sending a migration switching instruction to a terminal to indicate the terminal to carry out validity check on the address and the network port of the second server, and replacing the address and the network port of the first server in the local access mode of the terminal with the address and the network port of the second server according to the migration switching instruction when the check is successful.
7. The method for seamlessly migrating the terminal according to claim 5, wherein the step of generating the migration switching instruction according to the preconfigured migration information includes:
judging whether the network throughput of the user is lower than a preset threshold value or not, or judging whether the user breaks down or not, or judging whether a switching command of an administrator is received, and if so, generating a migration switching instruction according to pre-configured migration information.
8. The method according to claim 7, wherein determining whether the network throughput of the terminal is lower than a preset threshold, or whether the terminal has a failure, or whether a switching command of an administrator is received, and if so, generating a migration switching instruction according to preconfigured migration information includes:
judging whether the network throughput per se is lower than a preset threshold value or not, or whether the network throughput per se is in failure or not, or whether a switching command of an administrator is received or not, and if so, sending a configuration request to a center;
receiving the address and the network port of the second server sent by the center; wherein the address and the network port of the second server are determined by the center from a server set in an idle state or a non-full load state after receiving the configuration request;
and configuring the address and the network port of the second server as migration information, and generating a migration switching instruction according to the migration information.
9. A seamless migration device of a terminal is applied to the terminal and comprises the following components:
the receiving module is used for receiving a migration switching instruction sent by a first server; the migration switching instruction is used for indicating the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode that the terminal accesses a second server, the first server is configured with migration information in advance, and a migration switching instruction is generated according to the migration information;
and the switching module is used for switching the local access mode according to the migration switching instruction and switching the local access mode from the first access mode to the second access mode.
10. A seamless migration device of a terminal is applied to a first server and comprises the following components:
the generation module is used for generating a migration switching instruction according to the pre-configured migration information;
the instruction switching module is used for sending the migration switching instruction to a terminal so as to instruct the terminal to be switched from a first access mode to a second access mode; the first access mode is an access mode in which the terminal accesses the first server; the second access mode is an access mode in which the terminal accesses the second server.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the seamless migration method for a terminal according to any of claims 1 to 4; and/or the processor executes the program to realize the steps of the seamless migration method of the terminal according to any one of claims 5 to 8.
12. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the seamless migration method for a terminal according to any one of claims 1 to 4; and/or the computer program is adapted to perform the steps of a seamless migration method for a terminal according to any of claims 5 to 8 when executed by a processor.
13. A computer program product comprising a computer program, wherein the computer program when executed by a processor performs the steps of the seamless migration method for a terminal according to any of claims 1 to 4; and/or the computer program is adapted to perform the steps of a seamless migration method for a terminal according to any of claims 5 to 8 when executed by a processor.
CN202010876089.3A 2020-08-25 2020-08-25 Terminal seamless migration method and device, electronic equipment and storage medium Pending CN112148534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010876089.3A CN112148534A (en) 2020-08-25 2020-08-25 Terminal seamless migration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010876089.3A CN112148534A (en) 2020-08-25 2020-08-25 Terminal seamless migration method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112148534A true CN112148534A (en) 2020-12-29

Family

ID=73888247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010876089.3A Pending CN112148534A (en) 2020-08-25 2020-08-25 Terminal seamless migration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112148534A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064716A (en) * 2006-04-26 2007-10-31 华为技术有限公司 Method for dynamic host configuring protocol agent or server migration when the terminal is moving
EP2541877A1 (en) * 2011-06-30 2013-01-02 British Telecommunications Public Limited Company Method for changing a server address and related aspects
CN103618808A (en) * 2013-11-08 2014-03-05 北京奇虎科技有限公司 Method, device and system for processing address change of server terminal
US20170351702A1 (en) * 2016-06-03 2017-12-07 Electronic Arts Inc. Live migration of distributed databases
CN108563499A (en) * 2018-04-27 2018-09-21 努比亚技术有限公司 CDN server switching method, mobile terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064716A (en) * 2006-04-26 2007-10-31 华为技术有限公司 Method for dynamic host configuring protocol agent or server migration when the terminal is moving
EP2541877A1 (en) * 2011-06-30 2013-01-02 British Telecommunications Public Limited Company Method for changing a server address and related aspects
CN103618808A (en) * 2013-11-08 2014-03-05 北京奇虎科技有限公司 Method, device and system for processing address change of server terminal
US20170351702A1 (en) * 2016-06-03 2017-12-07 Electronic Arts Inc. Live migration of distributed databases
CN108563499A (en) * 2018-04-27 2018-09-21 努比亚技术有限公司 CDN server switching method, mobile terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11277306B2 (en) Sending information of a network repository function instance storing network function instance information
US10372478B2 (en) Using diversity to provide redundancy of virtual machines
CN110113441B (en) Computer equipment, system and method for realizing load balance
EP3291499B1 (en) Method and apparatus for network service capacity expansion
US20170331862A1 (en) Method for accessing cloud service and access device
EP3664372A1 (en) Network management method and related device
US20170105130A1 (en) Method and apparatus for creating virtual base station
US10880779B2 (en) User plane resource management method, user plane network element, and control plane network element
US11240198B2 (en) Session management method and apparatus
US10541862B2 (en) VNF processing policy determining method, apparatus, and system
US10764939B2 (en) Network function processing method and related device
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
EP3703337B1 (en) Mobile edge host-machine service notification method and apparatus
CN110995873A (en) Gateway service interface discovery method, system, electronic device and storage medium
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
CN112583630B (en) Device management method, device, system, device and storage medium
CN107534575B (en) Monitoring method and monitoring device in network virtualization environment and network node
CN109219070B (en) Supplementary service configuration method and device and electronic equipment
CN111414247A (en) Server switching method, device, management node and storage medium
CN112148534A (en) Terminal seamless migration method and device, electronic equipment and storage medium
CN113992685B (en) Service controller determining method, system and device
US20220329529A1 (en) 5g filters for virtual network functions
CN101133657A (en) Method and apparatus to facilitate foreign agent actions with respect to home agent nonresponsiveness
CN113676894B (en) Service processing method and equipment
CN109218415B (en) Distributed node management method, node and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination