Unlock instant, AI-driven research and patent intelligence for your innovation.

Time synchronization method, client and computer readable storage medium

A time synchronization and client-side technology, applied in the field of communication, can solve problems affecting the time-setting accuracy and time difference error of SNTP clients

Inactive Publication Date: 2018-11-02
NR ELECTRIC CO LTD +1
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, there is a time difference of T1-T1' between the T1 obtained by using software methods such as client programs and the time T1' when the SNTP client actually sends out the synchronization request, and the T4 obtained by using software methods and the time when the SNTP client actually receives the synchronization response There is a time difference of T4-T4' between time T4', which leads to errors in the time difference obtained when using T1, T2, T3 and T4 to calculate the time difference between the SNTP client and the SNTP server, thus affecting the SNTP client time synchronization accuracy

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
  • Time synchronization method, client and computer readable storage medium
  • Time synchronization method, client and computer readable storage medium
  • Time synchronization method, client and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0074] An embodiment of the present invention provides a time synchronization method, which is applied to a client. The client includes a hardware circuit provided with a first communication interface. The client performs data interaction with the server through the first communication interface, such as image 3 As shown, the method may include:

[0075] S101. Use a client program to obtain a time synchronization request message.

[0076] A time synchronization method provided by an embodiment of the present invention is applicable to the scenario where the time of the client is synchronized with the time of the server.

[0077] In the embodiment of the present invention, the client is an SNTP client, and the server that performs data interaction with the client is an SNTP server.

[0078] In the embodiment of the present invention, the hardware circuit is a Field-Programmable Gate Array (FPGA, Field-Programmable Gate Array), etc., which is selected according to the actual s...

Embodiment 2

[0107] The embodiment of the present invention provides a time synchronization method in the embodiment of the present invention, which is applied to the client, and a hardware circuit is set on the client, and the client performs data interaction with the server through the hardware circuit, such as Image 6 As shown, the method may include:

[0108] S201. The client uses a client program to obtain a time synchronization request message.

[0109] A time synchronization method provided by an embodiment of the present invention is applicable to the scenario where the time of the client is synchronized with the time of the server.

[0110] In the embodiment of the present invention, the client is an SNTP client, and the server that performs data interaction with the client is an SNTP server.

[0111] In the embodiment of the present invention, the hardware circuit is an FPGA or the like, which is specifically selected according to actual conditions, and is not specifically limi...

Embodiment 3

[0167] The embodiment of the present invention provides a client 1, and the client 1 performs data interaction with the server 2, such as Figure 8 As shown, the client 1 includes:

[0168] A processor 10, the processor is provided with a first communication interface 100;

[0169] A hardware circuit 11 connected to the processor 10 through the first communication interface 100 and the second communication interface 110, the hardware circuit 11 is provided with the second communication interface 110 and the third communication interface 111, the The hardware circuit 11 is connected to the server 2 through the third communication interface 111 and performs data interaction; wherein,

[0170] The processor 10 is configured to transmit the time synchronization request message to the hardware circuit 11 when the time synchronization request message is obtained by running the client program;

[0171] The hardware circuit 11 is configured to obtain the first sending time when the ...

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 invention discloses a time synchronization method, a client and a computer readable storage medium. The time synchronization method is applied to the client; a hardware circuit is arranged on the client; and the client carries out data interaction with a server by the hardware circuit. The method comprises the steps of: obtaining a time synchronization request message by utilizing a client program; when sending the time synchronization request message to the server by the hardware circuit, acquiring first sending time by utilizing the hardware circuit; adding the first sending time to the time synchronization request message so as to complete the process of sending the time synchronization request message to the server; when receiving a time synchronization response message from the server by the hardware circuit, acquiring first receiving time by utilizing the hardware circuit; according to the first sending time, the first receiving time and a preset synchronization algorithm, calculating a time difference between the client and the server; and completing a time synchronization process between the client and the server by utilizing the time difference.

Description

technical field [0001] The present invention relates to the communication field, in particular to a time synchronization method, a client and a computer-readable storage medium. Background technique [0002] Simple Network Time Protocol (SNTP, Simple Network Protocol) is a protocol for synchronizing time across a wide area network or a local area network with high accuracy. SNTP uses a client / server working method, including Ethernet unicast mode and broadcast model. Among them, the unicast mode is that the client directly interacts with the SNTP server regularly to obtain the time difference for time correction. Specifically, as figure 1 As shown, the SNTP client uses the client program to write the sending time T1 into the SNTP synchronization request message, and sends the SNTP synchronization request message to the SNTP server through the hardware circuit at the time T1', and the SNTP server receives the SNTP synchronization request message at the time T2. The SNTP syn...

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 Applications(China)
IPC IPC(8): H04J3/06
CPCH04J3/0667
Inventor 姜晓光周强吴相楠花俊王浩陆云
Owner NR ELECTRIC CO LTD