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

A time calibration method, device and computer storage medium

A time calibration and time technology, applied in the field of communications, can solve problems such as timing disorder, business logic or service errors, and high operation and maintenance costs, and achieve the effect of reducing network pressure, reducing the number of signaling, and reducing complexity.

Active Publication Date: 2021-07-20
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If there is no unified time calibration mechanism, the timing of each node in the distributed system will be disordered, resulting in errors and exceptions in business logic or services
[0004] In the existing distributed system, it is necessary to uniformly deploy a network policy in each node to support time calibration between the node and the time server. The complexity of deployment is high, and the operation and maintenance cost is high.

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
  • A time calibration method, device and computer storage medium
  • A time calibration method, device and computer storage medium
  • A time calibration method, device and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0162] Embodiment 1 provides a specific implementation process, and its system architecture includes an NTP time server, a heartbeat server and nodes, wherein, steps 411 to 414 are the process for the heartbeat server to use the NTP server to perform time synchronization, and steps 421 to 428 are The node uses the heartbeat server to perform time calibration process, and the relationship between the two processes is not limited. The overall method is as Figure 4 shown, including:

[0163] Step 411, the heartbeat server sends the NTP message to the NTP time server.

[0164] Step 412, the NTP time server generates an NTP response message, and adds the time of the NTP time server into the NTP response message.

[0165] Step 413, the NTP time server sends the NTP response message to the heartbeat server.

[0166] Step 414, the heartbeat server synchronizes the local time of the heartbeat server according to the time of the NTP time server.

[0167] Step 421, the node generate...

Embodiment 2

[0175] Embodiment 2 provides another specific implementation process, its system architecture includes heartbeat servers and nodes, the method is as follows Figure 5 shown, including:

[0176] Step 501, the node sends heartbeat request information to the heartbeat server.

[0177] Step 502, the heartbeat server determines the receiving time point of receiving the heartbeat request information.

[0178] Step 503, the heartbeat server judges whether the receiving time point is within the preset time period, if so, execute step 504, otherwise, execute step 505.

[0179] Step 504, the heartbeat server obtains the local time of the heartbeat server, and generates a heartbeat response message, where the heartbeat response message includes the local time of the heartbeat server.

[0180] Step 505, the heartbeat server generates a heartbeat response message.

[0181] Step 506, the heartbeat server sends a heartbeat response message to the node.

[0182] Step 507, the node judges ...

Embodiment 3

[0184] Embodiment 3 provides yet another specific implementation process, its system architecture includes heartbeat servers and nodes, the method is as follows Figure 6 shown, including:

[0185] Step 601, the node generates heartbeat request information, and determines whether to add special characters in the heartbeat request information according to a preset time point.

[0186] Step 602, the node sends heartbeat request information to the heartbeat server.

[0187] Step 603, the heartbeat server determines whether the received heartbeat request contains special characters, if so, execute step 604, otherwise execute step 605.

[0188] Step 604, the heartbeat server acquires the local time of the heartbeat server, and generates a heartbeat response message, where the heartbeat response message includes the local time of the heartbeat server.

[0189] Step 605, the heartbeat server generates a heartbeat response message.

[0190] Step 606, the heartbeat server sends a he...

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 embodiment of the present application discloses a time calibration method, device and computer storage medium, which belong to the technical field of communication. The method includes: the heartbeat server receives a heartbeat request message sent by a node; the heartbeat server generates a heartbeat response message, the heartbeat response message includes the local time of the heartbeat server, the local time of the heartbeat server and the time of the time server Synchronization: the heartbeat server sends the heartbeat response message to the node, so that the node calibrates the local time of the node according to the local time of the heartbeat server.

Description

technical field [0001] The embodiments of the present application relate to the technical field of communications, and in particular to a time calibration method, device, and computer storage medium. Background technique [0002] The rapid development of information science and its increasingly widespread application in various fields of society have greatly promoted the development of modern society. In existing distributed information systems and related important application fields, it is necessary to rely on the high availability and high efficiency of computers to accurately control key tasks, and at the same time to ensure the consistency of the clocks of various application platforms, servers and user terminals in the system There are high demands on performance and accuracy. [0003] In a distributed system, the unified time service is a very basic service facility. Usually, the realization of many services and business logic depends on the unified time, such as: ti...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04J3/06
CPCH04J3/0667
Inventor 周辉
Owner TENCENT TECH (SHENZHEN) 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