Network Time Synchronization for Disconnected User Terminals
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In network applications, such as gomoku and Dou Dizhu games, time synchronization across user terminals is inconsistent due to disconnections, leading to errors when users reconnect, as the countdown time is not accurately updated, causing discrepancies in displayed remaining processing time.
Innovation Solution
A time synchronization method and apparatus that stops the countdown process when a user reconnects, updates the remaining processing time by communicating with the server, and synchronizes this time across all user terminals, ensuring accurate and consistent time display.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If the countdown continues without interruption during disconnection and reconnection, then the processing time management is simple, but the time display becomes inaccurate and inconsistent
Solution Approach 1:
The server receives feedback about user reconnection status and adjusts the countdown accordingly. When a user reconnects, the server detects this through processing operations and updates the remaining processing time, ensuring accurate time display across all terminals while maintaining simple countdown management
Solution Approach 2:
The server acts as an intermediary between user terminals and the countdown system. It receives processing operations from terminals, determines reconnection status, calculates accurate remaining processing time, and distributes this information to all terminals, resolving the contradiction between simple management and accurate time display
2Speed
If the remaining processing time is not updated during reconnection, then the system response is fast, but time synchronization between terminals is lost
Solution Approach 1:
The server performs preliminary calculation of the accurate remaining processing time when it detects user reconnection. By preparing the correct time value in advance and then distributing it to all terminals simultaneously, the system maintains fast response while achieving stable time synchronization across all terminals
3Ease of operation
If each terminal independently manages its own time, then the terminal operation is simple, but time consistency across the network cannot be guaranteed
Solution Approach 1:
The patent merges time management functionality from individual terminals to a central server. The server becomes the single authority that calculates and distributes remaining processing time to all terminals, ensuring time consistency across the network while keeping terminal operations simple for users
Data Source
AI summary
The present disclosure discloses a time synchronization method and apparatus, which belong to the field of the Internet. The method includes: counting down, when a data processing right of a network application is allocated to a first user, a processing time of the first user, the first user being a user in a user group; stopping, when the first user is disconnected and logs in to the network application again in a process of countdown, if a processing operation sent by a first user terminal is received, the process of countdown, to obtain a remaining processing time of the first user, the processing operation including an operation of abandoning the data processing right or a network data processing operation; and sending the remaining processing time to the first user terminal and a second user terminal separately, so that the first user terminal and the second user terminal separately display the remaining processing time, a second user being a user other than the first user in the user group. The present disclosure prevents an error from occurring in time displayed in the first user terminal and the second user terminal.


