Online Socket Process Upgrade via Data Copying
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Upgrading a TCP socket process online is challenging due to the complexity of TCP connections, often resulting in data loss and process instability, as existing methods require disconnecting and re-establishing socket connections.
Innovation Solution
A method and system for process upgrade that involves copying data from a source process to a target process, determining data completeness, ceasing interaction, copying received data, and sending an upgrade indication to switch the socket interface service to the target process without disconnecting the socket connection.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the source process is upgraded by disconnecting and re-establishing socket connections, then the process can be updated to a higher version, but data loss and process instability occur
Solution Approach 1:
The patent creates a target process in advance before the source process needs to be upgraded. The target process is prepared with all necessary resources and configurations, so when the upgrade occurs, the transition is smooth and continuous. This preliminary preparation eliminates the need to disconnect socket connections during upgrade, preventing data loss and maintaining process stability.
Solution Approach 2:
The patent introduces a target process as an intermediary between the source process and the external system. During the upgrade transition, the target process acts as a mediator that receives socket connections and forwards them to the source process. This intermediary mechanism allows the source process to be replaced without interrupting the socket connection, thereby preventing data loss and maintaining reliability.
2Reliability
If the source process is upgraded by disconnecting socket connections, then the process version can be updated, but the far end entity perceives the update causing potential issues
Solution Approach 1:
The target process serves as an intermediary that absorbs the upgrade transition. External connections continue to interact with the target process, which then communicates with the source process. This intermediary layer shields the far end entity from感知ing the upgrade, preventing any harmful effects that might arise from perceived updates.
Solution Approach 2:
The patent creates a copy of the source process (the target process) that maintains the same interface and behavior. This copy is used during the upgrade transition, ensuring that the far end entity interacts with an identical process version and cannot detect any changes. The copying mechanism effectively hides the upgrade from external observers.
3Adaptability or versatility
If socket connections are disconnected during upgrade, then the source process can be replaced, but data interaction is interrupted
Solution Approach 1:
The patent ensures continuous data interaction by maintaining active socket connections throughout the upgrade process. The target process continuously receives and forwards data packets, ensuring no interruption in the data flow. This continuity of useful action allows the source process to be replaced while maintaining uninterrupted data interaction with external systems.
Solution Approach 2:
The target process acts as a mediator that maintains continuous data interaction during the upgrade. It receives data from external systems and forwards it to the source process, and vice versa. This intermediary mechanism ensures that data interaction continues without interruption while the source process is being replaced, preserving both adaptability and continuity.
Data Source
AI summary
A method and a system for process upgrade are disclosed. A source process implements data interaction, via a socket interface, with a far end entity connected with the socket interface. When the source process intends to upgrade itself, the source process copies its process data to a target process and determines if the data from the far end entity received via socket interface is complete. If it is determined that the data is complete, the source process ceases data interaction with the socket interface and copies the received data to the target process. After the data is copied, the source process sends an upgrade and switch indication to the target process and enables the target process to send an upgrade and switch request to the socket interface. The socket interface then switches a socket interface service to the target process. Accordingly, the technical solutions according to the present invention realize a reliable and smooth process upgrade without disconnecting the socket connection.


