Industrial internet service seamless migration method

Through service mirroring and service relay technology, the possible interruption and data outages in industrial Internet service migration are solved, seamless migration is achieved and system availability and stability is improved.

CN119484552APending Publication Date: 2025-02-18NANJING ZHANGYU INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411592011.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

During the migration process, industrial Internet services are prone to service interruption, delay, data out-of-synchronization and inconsistent status problems, resulting in interruption of production processes or data loss.

Method used

Through technologies such as service mirroring and service relay, data consistency between server A and server B is ensured, and network tunnels are established during the migration process to forward client requests to maintain service continuity.

Benefits of technology

It realizes seamless migration of industrial Internet services, ensures continuity and consistency in the service migration process, and improves the availability and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0005125837260000011
    Figure HDA0005125837260000011
Patent Text Reader

Abstract

The invention provides a seamless migration method for industrial internet services, which realizes the smooth transition of the industrial internet services from an original server to a server to be migrated through the steps of service mirroring, service relaying, service switching and migration state checking. In the service mirroring step, the service environment and data of the original server are synchronized to the server to be migrated; in the service relay step, data received by an original server is forwarded to a to-be-migrated server through a network tunnel, and the states of the original server and the to-be-migrated server are consistent. In the service switching step, the client connection is gradually migrated to the server to be migrated through DNS (Domain Name Server) switching and active pushing; in the migration state checking step, the client migration condition is monitored until all clients are successfully switched. According to the method, the problems of interruption, data asynchronization, service delay and the like possibly occurring in the migration process of the industrial internet service are solved, and the availability and the stability of the system are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial Internet and software architecture, and in particular to a method for implementing seamless migration of industrial Internet services. Specifically, by setting up service mirroring and service relaying, it is ensured that existing industrial Internet services can be seamlessly migrated without interrupting operation, thereby providing continuous and stable operation and maintenance for industrial Internet applications. Background Art

[0002] The Industrial Internet is the product of the deep integration of the new generation of information technology and industrial systems. It applies technologies such as the Internet of Things, big data, and cloud computing to the industrial manufacturing process, aiming to achieve comprehensive connection and optimization of equipment, data, and services. Through the Industrial Internet, real-time data can be obtained in the production, management, and service links, thereby improving production efficiency, reducing costs, and improving service quality. The core of the Industrial Internet is to connect and optimize physical equipment and digital systems to build an intelligent industrial production system.

[0003] Traditional Internet services usually need to be interrupted during the migration process because of the synchronization updates of dependencies such as DNS resolution and network cache. For example, when a service is migrated from server A to server B, DNS resolution takes time to redirect user requests to the new server, which may cause access delays. In addition, factors such as network cache may cause the data of the old server to fail to be updated to the new server in time, resulting in inconsistent status. These reasons make traditional Internet services usually have short-term service unavailability during migration.

[0004] Compared with the ordinary Internet, the Industrial Internet usually requires services to run continuously without interruption, because its service objects are mostly manufacturing equipment and industrial automation systems. These devices usually need real-time monitoring and control, and any interruption may lead to the suspension of the production process or the loss of data. Service interruptions of the ordinary Internet may affect the user experience, but will not directly threaten production safety. However, due to the real-time, accurate and reliable requirements of its services, the Industrial Internet must ensure the continuity of services during migration or maintenance. Summary of the invention

[0005] The present invention proposes a method for implementing seamless migration of industrial Internet services, which is specifically used to ensure that the service is not interrupted and the data status of server A and server B are consistent during the migration of industrial Internet services from server A to server B. Through key technologies such as service mirroring and service relay, this method can ensure the smooth migration of industrial Internet services and improve the continuity and stability of services.

[0006] The specific steps of this method include:

[0007] S1. Service mirroring: This step copies the industrial Internet service software system deployed on server A (i.e., the original server) and redeploys it on server B (the server to be migrated), ensuring that server B and server A are consistent in network receiving and sending functions (listening to the same network port and protocol). At the same time, the persistent storage data used by server A (such as data in the database) is continuously synchronized to server B to ensure that the data between the two servers is always consistent.

[0008] S2. Service relay: After the service mirroring is completed, a network tunnel is established between server A and server B to forward the relevant data received by server A to server B, while retaining the functions of server A to receive, process and respond to data. In this stage, server B only receives data but does not respond, that is, the reply data received by server B will be discarded. At the same time, the persistent data synchronization between server A and server B is stopped in this step.

[0009] S3. Service switching: After the service relay is implemented, all clients of industrial Internet services are notified to migrate services through DNS switching or active push. During the service switching, Server A and Server B will remain online at the same time and work according to the settings of step S2 to ensure smooth migration of clients to the new server.

[0010] S4. Service migration status check: After the service switch is completed, the network status of Server A and Server B is continuously monitored, and the information of all clients connected to Server A is recorded until all clients complete the migration and connect to Server B. At this point, the migration process is complete. Technical Effects

[0011] A seamless migration method for industrial Internet services provided by the present invention solves the problems of service interruption, delay, data asynchrony and status inconsistency that may occur in the service migration process of existing industrial Internet systems through the effective coordination of service mirroring, service relay and service switching, ensures the continuity and consistency of the service migration process, effectively solves the problems of interruption and data asynchrony that may occur in the migration of industrial Internet services, and significantly improves the availability and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 Shown is a flow chart of a method for seamless migration of industrial Internet services disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0013] The following is a specific embodiment of the present invention, which describes in detail how to achieve smooth service migration through the steps of service mirroring, service relaying, service switching and migration status checking. The following are specific implementation steps:

[0014] Regarding step S1. Service mirroring, at the beginning of the migration, the industrial Internet service system deployed on the original server (i.e., server A) is first mirrored. Specifically, the service mirroring step includes the following sub-steps:

[0015] S1.1: Completely copy the industrial Internet services and related software systems running on server A to ensure that the server to be migrated (i.e. server B) can provide the same service capabilities;

[0016] S1.2: Redeploy the replicated service system on server B and ensure that it maintains the same network sending and receiving functions as server A, including listening to the same network ports and protocols, so as to ensure seamless transfer of client requests during the switch;

[0017] S1.3: Establish a persistent data synchronization mechanism between Server A and Server B, synchronize and mirror the persistent storage data of Server A (such as operation data in the database, system configuration, etc.) to Server B, and maintain real-time synchronization to ensure that the data status of Server B is completely consistent with that of Server A;

[0018] S1.4: During data synchronization, the data consistency of the two servers is regularly verified through log monitoring and data verification mechanisms to quickly discover and resolve potential synchronization errors.

[0019] By implementing the above steps S1.1-S1.4, Server B has the ability to run services independently and has the same data and network environment as Server A, laying the foundation for the subsequent migration process.

[0020] Regarding step S2. service relay, after completing the service mirroring, to ensure that the service status of the two servers is consistent when data is synchronized, the implementation of this step is as follows:

[0021] S2.1: A network tunnel is established between server A and server B to forward client requests and data traffic received on server A to server B, so that server B obtains service data consistent with that of server A;

[0022] S2.2: Server A continues to receive, process and reply to client requests, while Server B only receives data forwarded by Server A but does not process or reply to the data to ensure the unidirectional nature of the data flow;

[0023] S2.3: When the service relay is started, the persistent data synchronization function between server A and server B is suspended, new data write synchronization is stopped, and only data read operations are retained to avoid redundant operations or data conflicts between the two servers;

[0024] S2.4: During the relay period, use traffic monitoring tools to track the data traffic in the network tunnel and ensure that Server B can completely receive each request data packet forwarded by Server A to maintain the consistency of the service status.

[0025] By implementing steps S2.1-S2.4, it is ensured that during the service migration, server B can obtain the request data of server A in real time, providing the necessary preparatory conditions for the subsequent service switching.

[0026] For step S3. Service switching, the goal is to gradually migrate the client's connection to server B. The specific operations performed are as follows:

[0027] S3.1: Start DNS switching, point the DNS resolution of server A to the IP address of server B, and gradually redirect all client requests to server B. To speed up the switching process, use a low TTL (Time To Live) value to reduce the DNS resolution time of the client cache.

[0028] S3.2: While the DNS is switched, the client connected to server A is directly notified through active push notification (such as push instructions, system messages, etc.), requiring the client to reconnect to server B;

[0029] S3.3: During the switching process, Server A and Server B will be online and provide services at the same time. Server A continues to respond to requests from clients that have not switched, while Server B receives and processes requests from newly connected clients to achieve a smooth transition.

[0030] S3.4: During the service switching phase, the client connection status is tracked through real-time monitoring tools to record which clients have successfully connected to server B and which clients are still connected to server A, providing basic data for subsequent status checks.

[0031] Through the implementation of steps S3.1-S3.4, most of the clients will be connected to server B, while server A will continue to provide services for the remaining clients that have not switched, gradually realizing the full migration of clients.

[0032] Regarding step S4. Service migration status check, after the service switching in step S.3 is completed, this step is entered to ensure that all clients have been successfully transferred to server B. Specifically, it includes the following operations:

[0033] S4.1: Continuously monitor the network status of Server A and Server B, and record the connection details of each client, including IP address, connection time, and connection status;

[0034] S4.2: Confirm through the data log analysis tool that all client connections have been switched to server B. If it is found that there are still clients connected to server A, a notification instruction is issued to prompt the client to reconnect to server B;

[0035] S4.3: After confirming that there is no client connection to server A, the service of server A is officially terminated, and server A is safely shut down and resources are released to avoid duplicate services or data redundancy.

[0036] S4.4: Through comprehensive data comparison and status verification, ensure that the data and service status on server B fully meet the system requirements and formally complete the seamless migration process.

[0037] In summary, the present invention realizes the seamless migration of industrial Internet services through the above four steps, namely service mirroring, service relay, service switching and migration status check, ensures the continuity and consistency of the service migration process, and effectively solves the interruption and data asynchrony problems that may occur in the migration of industrial Internet services.

[0038] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.

Claims

1. A method for seamless migration of industrial Internet services, characterized in that: include: Through service mirroring operations, the industrial Internet services on the original server are copied to the server to be migrated, and the network receiving and sending functions between the two are guaranteed to be consistent, while achieving synchronization of persistent storage data.

2. The method for seamless migration of industrial Internet services according to claim 1, characterized in that: The service mirroring operation performs continuous data synchronization on the industrial Internet services of the original server, ensuring that the server to be migrated maintains a persistent storage state consistent with the original server.

3. The method for seamless migration of industrial Internet services according to claim 1 or 2, characterized in that: Including service relay operations, after the service mirroring is completed, the data information received by the original server is forwarded to the server to be migrated through the network tunnel, so that the service status of the two servers remains consistent.

4. The method for seamless migration of industrial Internet services according to claim 3 is characterized in that: The service relay operation stops the persistent data synchronization between the two servers after the network tunnel is established, so that the server to be migrated can independently receive and process data.

5. The method for seamless migration of industrial Internet services according to any one of claims 1 to 4, characterized in that: This includes service switching operations, which involves switching the industrial Internet client to the server to be migrated through DNS switching or active push notification, and ensuring that the original server and the server to be migrated are online at the same time during the service switching.

6. The method for seamless migration of industrial Internet services according to claim 5, characterized in that: The service switching operation ensures that the service of the server to be migrated runs stably during the client switching connection, and maintains the service status of the original server through the service relay until the switching is completed.

7. The method for seamless migration of industrial Internet services according to any one of claims 1 to 6, characterized in that: It includes a migration status check operation, which monitors the network status of the original server and the server to be migrated, records the connection status of all clients, and completes the migration process after all clients have been successfully transferred.