Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Clock synchronization method, clock synchronization device and computer readable storage medium

A clock synchronization and computer technology, applied in the direction of time division multiplexing system, electrical components, multiplexing communication, etc., can solve problems such as user experience troubles, clock inaccuracy, equipment and equipment errors, etc.

Active Publication Date: 2019-09-20
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF7 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In some scenarios that require high timeliness, such as a widely used online activity (such as a game), the browser page needs to capture the key state of the server to perform operations such as changing views, refreshing, and initiating network requests. If the state lasts for a short time, the browser page may miss or execute the expected action early due to time out of synchronization, which will bring troubles to the user experience; in addition, a large number of devices on the market currently have the problem of clock inaccuracy at the front and back end, for example, when the system time On devices that are automatically set, due to certain inaccuracies between various synchronization sources, there are considerable errors between devices; in addition, business behavior is based on the server's time, which may not be set in any Synchronization or synchronization with completely different sources, so that the time between the client and the server cannot be synchronized, and cannot meet the timeliness requirements
[0003] Therefore, in scenarios that require a high degree of timeliness, in order to keep the time error between the client and the server as small as possible, the time of the server is often obtained by polling the server through network requests. Polling the status of the server can be effective and timely Synchronize the business state, including the server clock, but polling the server state requires frequent network requests, and the server occupies a large amount of computing resources, resulting in wasted bandwidth between the client and the server, and low ROI (return on investment) , and the server clock will be greatly affected by the round-trip delay of network requests during transmission; while reducing the polling frequency can save resources, but obviously sacrifices timeliness, which is contrary to the goal of high timeliness

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Clock synchronization method, clock synchronization device and computer readable storage medium
  • Clock synchronization method, clock synchronization device and computer readable storage medium
  • Clock synchronization method, clock synchronization device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0089] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0090] Figure 1a It is a flowchart of a clock synchronization method applied to a client according to an exemplary embodiment, and specifically includes the following steps.

[0091] In step S101, a clock synchronization request is sent to the server and the first time when sending is recorded.

[0092] In a scenario with a high demand for timeliness, the client (browser page) needs to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a clock synchronization method, a clock synchronization device and a computer readable storage medium. The clock synchronization method comprises the following steps: sending a clock synchronization request to a server and recording a first moment when the clock synchronization request is sent; receiving response data sent by the server and recording a second moment during receiving, wherein the response data comprises a third moment when the server receives the clock synchronization request and a fourth moment when the server sends the response data; obtaining clock deviation between the client and the server according to the first moment to the fourth moment; and obtaining a system clock of the client, and obtaining a synchronous clock of the server in combination with the clock deviation. According to the clock synchronization method, the clock synchronization request is sent to the server, the response data sent back by the server is received, and the clock deviation between the client and the server is obtained according to several sent and received moments, so that the system clock of the client is adjusted, and the system clock is synchronized with the clock of the server.

Description

technical field [0001] The application belongs to the field of computer software applications, and in particular relates to a clock synchronization method and a clock synchronization device. Background technique [0002] With the rapid development of browser technology and the popularization of high-performance handheld devices, the social demand for Web interaction means is getting higher and higher. Comes with greater responsibility. In some scenarios that require high timeliness, such as a widely used online activity (such as a game), the browser page needs to capture the key state of the server to perform operations such as changing views, refreshing, and initiating network requests. If the state lasts for a short time, the browser page may miss or execute the expected action early due to time out of synchronization, which will bring troubles to the user experience; in addition, a large number of devices on the market currently have the problem of clock inaccuracy at th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04J3/06
CPCH04J3/0635
Inventor 殷勇
Owner BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products