CN109039513A - Clock synchronizing method, device, equipment and storage medium - Google Patents

Clock synchronizing method, device, equipment and storage medium Download PDF

Info

Publication number
CN109039513A
CN109039513A CN201810790419.XA CN201810790419A CN109039513A CN 109039513 A CN109039513 A CN 109039513A CN 201810790419 A CN201810790419 A CN 201810790419A CN 109039513 A CN109039513 A CN 109039513A
Authority
CN
China
Prior art keywords
block
clock
local
node
gps
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810790419.XA
Other languages
Chinese (zh)
Inventor
郑旗
肖伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810790419.XA priority Critical patent/CN109039513A/en
Publication of CN109039513A publication Critical patent/CN109039513A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS

Abstract

The invention discloses a kind of clock synchronizing method, device, equipment and storage mediums.The described method includes: obtaining GPS clock signal by local Global Positioning System equipment;According to the GPS clock signal is carried out to local clock time calibration.The embodiment of the present invention is precisely synchronized by calibrating the local clock of each block chain network node, the local clock that each block chain network node may be implemented according to local Global Positioning System, improves out the stability of block operation.

Description

Clock synchronizing method, device, equipment and storage medium
Technical field
The present embodiments relate to block chain technical field more particularly to a kind of clock synchronizing method, device, equipment and deposit Storage media.
Background technique
In block chain network, many operations that block chain network node executes require the time provided with local clock Information is foundation.If the clock between block chain network node is asynchronous, many problems can be brought.
For example, in the case where Authorized Stock proves (Delegated Proof of Stake, DPOS) mechanism, block link network Part of nodes in network, which is elected, generates node as candidate block, and multiple candidate blocks generate node sequentially in time Node, which is generated, alternately as block executes out block operation.If the clock that each candidate block generates node is asynchronous, such as some Candidate block generates the clock bad of node, then will lead to out block entanglement.
It is synchronized at present by the clock that network clocking server generates node to candidate block, there is also network clockings Server clock error caused by malicious attack, and then can also cause block entanglement.
Summary of the invention
The embodiment of the present invention provides a kind of clock synchronizing method, device, equipment and storage medium, to realize block chain network Clock between node is synchronous.
In a first aspect, being applied to block chain network node, packet the embodiment of the invention provides a kind of clock synchronizing method It includes:
GPS clock signal is obtained by local Global Positioning System equipment;
According to the GPS clock signal is carried out to local clock time calibration.
Second aspect, the embodiment of the invention also provides a kind of clock synchronization apparatus, are set to block chain network node, institute Stating device includes:
GPS clock signal obtains module, for obtaining GPS clock signal by local Global Positioning System equipment;
Local clock calibration module, for carrying out time calibration to local clock according to the GPS clock signal.
The third aspect, the embodiment of the invention also provides a kind of computer equipment, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes clock synchronizing method provided by first aspect embodiment.
Fourth aspect, the embodiment of the invention also provides a kind of storage mediums, are stored thereon with computer program, the program Clock synchronizing method provided by first aspect embodiment is realized when being executed by processor.
In the embodiment of the present invention, block chain network node is by getting GPS clock signal, school according to local GPS device The local clock of quasi- block chain network node, the local clock that each block chain network node may be implemented precisely are synchronized, are solved It, can be to avoid network clocking server by malicious attack in the prior art the problems such as caused block entanglement out asynchronous due to clock The case where caused clock error, to improve the stability of block chain network.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the clock synchronizing method provided in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of the clock synchronizing method provided in the embodiment of the present invention two;
Fig. 3 is a kind of structural schematic diagram of the clock synchronization apparatus provided in the embodiment of the present invention three;
Fig. 4 is a kind of structural schematic diagram of the computer equipment provided in the embodiment of the present invention four.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for clock synchronizing method that the embodiment of the present invention one provides.This method is applied to block chain Node, that is, block chain network node in network, block chain network can be publicly-owned chain, alliance's chain or privately owned chain, block chain network Usually all can be including multiple nodes, node can be obtained block and be generated to weigh based on common recognition mechanism becomes block generation node.The present invention The scheme of embodiment can be adapted for the situation that each node in block chain network executes clock synchronization operation.This method can be by Clock synchronization apparatus provided in an embodiment of the present invention executes, and the mode which can be used software and/or hardware is realized, and can It is integrated in the equipment of carrying block chain network node.The equipment of carrying block chain network node can be server, movement eventually The electronic equipments such as end or server cluster.Referring to Fig. 1, this method is specifically included:
S110, when obtaining GPS by local global position system (Global Positioning System, GPS) equipment Clock signal.
Specifically, local GPS device can refer to the GPS device being built in block chain network on each node, for leading to It crosses GPS system and receives the position and temporal information that satellite is sent.In the present embodiment, in order to make each node in block chain network Clock is synchronous, the time service service acquisition GPS clock signal that can be provided by GPS system.Wherein, GPS clock signal can be The time signal for referring to the satellite output in GPS system, since GPS clock precision is high, commonly used in the calibration as other clocks Foundation.In addition, clock signal can also be provided by other satellite navigation systems in addition to GPS system.
Further, optionally, described to pass through local in order to make the clock real-time synchronization of each node in block chain network GPS device obtains GPS clock signal, comprising: passes through local GPS device every setting time and obtains GPS clock signal.Wherein, Setting time can be set according to actual needs, for example, it can be set to being obtained every 1 minute each node by local GPS device Take GPS clock signal.To which in adjacent time calibration interval twice, due to periodic synchronization clock, different nodes are using local The time error that clock executes blocks operation substantially reduces.
S120 carries out time calibration to local clock according to the GPS clock signal.
Specifically, time calibration can refer to the temporal information for meeting specification according to user demand output according to GPS clock Format, and keep local clock synchronous with the GPS clock.Wherein it is possible to when taming crystal oscillator to local clock progress by GPS clock Between calibrate.
In a specific example, taming crystal oscillator using GPS clock is specifically to adopt to local clock progress time calibration Monitoring technology is measured with GPS, the GPS second pulse signal provided using satellite time transfer receiver is to the output frequency of crystal oscillator Carry out accurate measurement and adjusting, wherein second pulse signal can refer to fixed frequency signal.By the second pulse signal and local crystalline substance The oscillator signal that vibration generates is compared, and obtains difference on the frequency, according to difference on the frequency by the voltage-controlled tuning of crystal oscillator to local crystal oscillator into Row is adjusted, and carries out the accuracy that control makes crystal oscillator be locked to GPS clock by phase-locked loop, to make the frequency of oscillation of crystal oscillator It is consistent with the frequency of oscillation of second pulse signal.Simultaneously during frequency adjustment, it is also necessary to be carried out to the phase of local crystal oscillator Compensation obtains two by carrying out phase demodulation to the second signal and GPS second pulse signal of the output of local crystal oscillator at setting time interval The phase difference of a signal, and corresponding conversion is voltage value, later by voltage-controlled adjustment and phase lock loop locks, so that local crystal oscillator The second pulse signal difference of second signal and satellite time transfer the receiver output of output is in a certain range.It is possible thereby to realize crystal oscillator Output frequency it is synchronous with the second pulse signal of GPS system, to provide high-precision Time and frequency standard signal, to realize height The frequency and time signal of precision export, and this mode is to reach nanosecond time service precision and stability at present in 1E12 magnitude frequency The most effective mode of rate output.
Local signal can be calibrated according to high-precision GPS clock signal, if the precision of local clock is not at this time Height, the clock that also not can guarantee each node in block chain network precisely synchronize, optional in order to improve the precision of local clock , using local atomic clock as local clock, wherein atomic clock is also known as cesium-beam atomic clock, is existed using the electronics inside Cs atom The electromagnetic wave radiated when jumping between two energy levels removes control calibration electro coupled oscillator as standard, and then controls walking for clock It is dynamic.The degree of stability of this clock is very high, and best cesium-beam atomic clock, which reaches 20,000,000 years, just to differ 1 second.
In the embodiment of the present invention, block chain network node is by getting GPS clock signal, school according to local GPS device The local clock of quasi- block chain network node, the local clock that each block chain network node may be implemented precisely are synchronized, are solved It, can be to avoid network clocking server by malicious attack in the prior art the problems such as caused block entanglement out asynchronous due to clock The case where caused clock error, to improve the stability of block chain network.
Embodiment two
On the basis of the above embodiments, which can be applied particularly to the block chain using DPOS mechanism Each node in network.
Specifically, the part of nodes in block chain network is elected as candidate block generation under DPOS mechanism Node, multiple candidate blocks generate node and execute out block operation according to default rule in turn.This multiple candidate block generates node It can fix, can also be not fixed the candidate block generation node elected every time can not be identical.Correspondingly, this implementation The method of example further include: candidate block in the block chain network generate temporal information that node is provided according to local clock with Default Rule Information in turn determines whether to need to be implemented out block operation, if so, the transactions requests based on local cache are held Row generates block and operates the block that goes out that the block of generation carries out transmission verifying.
Correspondingly, as shown in Fig. 2, the clock synchronizing method specifically includes:
S130, candidate block generate node and pass through local Global Positioning System equipment acquisition GPS clock signal.
S140, candidate block generate node and carry out time calibration to local clock according to the GPS clock signal.
Local Global Positioning System equipment, GPS clock signal, the meaning of local clock in the present embodiment, with timely Between calibration method can refer to the introduction of previous embodiment.
S150, candidate block generate the temporal information that node is provided according to local clock and preset Rule Information in turn, sentence It is disconnected currently whether to need to be implemented out block operation, if so, executing S160;Otherwise S130 is executed.
Specifically, default rule in turn can refer to that each candidate block generates node and obtains the specific of block generation power in turn Rule, illustratively, above-mentioned default rule can be specific as follows in turn: every predetermined time period (namely a block period) It selects N number of candidate block to generate node, and determines that multiple candidate blocks generate the block genesis sequence of node simultaneously, and by one Block period is divided into N number of period, corresponds to each period according still further to block genesis sequence and distributes to each candidate block generation Node, each candidate block generate node and execute out block operation according to the pre- block time interval that sets out within the period of its distribution.Than Such as, node is generated every 10 candidate blocks of selection in 100 minutes, and determines that 10 candidate blocks generate the block life of node simultaneously At sequence, specifically 10 candidate blocks can be generated into node and be ranked up, the sequence after sequence is that each candidate block generates The block genesis sequence of node;Then 10 periods were divided by 100 minutes, according still further to block genesis sequence by each period Corresponding to distribute to each candidate block generation node, each candidate block generates node and held within the period of its distribution every 1 minute Row once goes out block operation, holds in 0-10 minutes every 1 minute specifically, first candidate block after sequence generates node Row once goes out block operation, and second candidate block generation node after sequence executed in 10-20 minutes every 1 minute primary Block operates out, and the third candidate block after sequence, which generates node and executed in 20-30 minutes every 1 minute, once goes out block behaviour Make, etc., and so on.
Correspondingly, above-mentioned candidate block generates the temporal information that node is provided according to local clock and default rule in turn is believed Breath determines whether to need to be implemented out block operation, implements the candidate that can be such that in the block chain network node Block generates node, when generating the period according to the temporal information of local clock offer, pre-assigned block and set out block in advance Between be spaced, determine whether to need to be implemented out block operation, if so, the transactions requests based on local cache, which execute, generates block It is operated with the block that goes out that the block of generation is carried out transmission verifying;Wherein, the block generation period is by default block period After being divided into N number of period, the block genesis sequence of node is generated according to preset each candidate block, from it is described N number of when Between the period that the candidate block generates node is selected and distributed in section, the N is that candidate block generates node Quantity.
Specifically, the local clock can refer to the clock calibrated by GPS clock signal;Between the preset block time out Every can refer to candidate block generate node execute complete it is primary go out block operation and the preceding primary time completed out between block operation Difference;Default block period, which can according to need, to be set, and is required to carry out candidate block life for each default block period At the election of node.According to the temporal information that the local clock calibrated provides, each candidate block generates node and distributes for it Block generate the period it is corresponding at the beginning of start to execute out block operation according to setting out block time interval in advance, and corresponding End time stops block operation out.The above-mentioned pre- length for setting out block time interval and generating the period less than block, when block generates Between the length of section be less than default block period.
Since candidate block generation node needs frequently during executing out block operation using local zone time as judgement Foundation, for example, the initial time of block period, end time, the candidate block generates node and is divided in a block period The determination that the block matched generates the moment such as initial time, the end time of period is required to local zone time as judgment basis. The local zone time for other nodes in local zone time and block chain network calibrated at this time according to GPS clock signal keeps one It causes, that is, the time that candidate block generates node in block chain network is unified, is executed out so that each candidate block generates node The time of block operation is executed based on a standard time sequence, the stability for improving out block operation is achieved in, to improve The stability of block chain network.
S160, candidate block, which generates node and executes transactions requests based on local cache and execute, generates block and by generation The block that goes out that block carries out transmission verifying operates.
After step S160, it can return to and execute step S130.
The embodiment of the present invention in each node in the block chain network using DPOS mechanism by executing the synchronous behaviour of clock Make, and generates node according to the time progress candidate block generation node election by GPS clock signal calibration, candidate block and hold Row goes out block operation, so that the block operation that goes out that each candidate block generates node is executed according to the unified time, realization improves out block The stability of operation, to improve the stability of block chain network.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for clock synchronization apparatus that the embodiment of the present invention three provides, which is set to area Block chain network node, as shown in figure 3, described device specifically includes:
GPS clock signal obtains module 210, for obtaining GPS clock signal by local GPS device;
Local clock calibration module 220, for carrying out time calibration to local clock according to the GPS clock signal.
Further, the local clock is local atomic clock.
Further, the GPS clock signal obtains module and is specifically used for:
Pass through local GPS device every setting time and obtains GPS clock signal.
Further, the block chain network node is in the block chain network for prove DPOS mechanism using Authorized Stock Node.
Further, when block chain network node is that candidate block generates node, described device further include: go out block and execute Module 230, temporal information and default Rule Information in turn for being provided according to local clock, determines whether to need to be implemented Block operates out, generates block if so, the transactions requests based on local cache execute and the block of generation is carried out transmission verifying Go out block operation.
Further, the block execution module 230 out, is specifically used for: according to the temporal information of local clock offer, in advance The block of distribution generates the period and sets out block time interval in advance, determines whether to need to be implemented out block operation;Wherein, described The block generation period is to be generated after default block period is divided into N number of period according to preset each candidate block The block genesis sequence of node, when being selected from N number of period and distributing to one of the candidate block generation node Between section, the N be candidate block generate node quantity.
It is same that clock provided by any embodiment of the invention can be performed in clock synchronization apparatus provided by the embodiment of the present invention One step process has the corresponding functional module of execution method and beneficial effect.
Example IV
Fig. 4 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention four provides.Fig. 4, which is shown, to be suitable for being used to Realize the block diagram of the exemplary computer device 301 of embodiment of the present invention.The computer equipment 301 that Fig. 4 is shown is only one A example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 4, computer equipment 301 is showed in the form of universal computing device.The component of computer equipment 301 can To include but is not limited to: one or more processor or processing unit 302, system storage 303 connect not homologous ray group The bus 304 of part (including system storage 303 and processing unit 302).
Bus 304 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (Industry Standard Architecture, ISA) bus, microchannel architecture (Micro Channel Architecture, MCA) bus, enhancing Type isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local Bus and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Computer equipment 301 typically comprises a variety of computer system readable media.These media can be it is any can The usable medium accessed by computer equipment 301, including volatile and non-volatile media, moveable and immovable Jie Matter.
System storage 303 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (Random Access Memory, RAM) 305 and/or cache memory 306.Computer equipment 301 can be with It further comprise other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, Storage system 307 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 4 do not show, commonly referred to as " hard drive Device ").Although not shown in fig 4, the disk for reading and writing removable non-volatile magnetic disk (such as " floppy disk ") can be provided to drive Dynamic device, and to removable anonvolatile optical disk (such as compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other Optical medium) read-write CD drive.In these cases, each driver can be connect by one or more data medium Mouth is connected with bus 304.System storage 303 may include at least one program product, the program product have one group (such as At least one) program module, these program modules are configured to perform the function of various embodiments of the present invention.
Program/utility 309 with one group of (at least one) program module 308, can store and deposit in such as system In reservoir 303, such program module 308 include --- but being not limited to --- operating system, one or more application program, It may include the reality of network environment in other program modules and program data, each of these examples or certain combination It is existing.Program module 308 usually executes function and/or method in embodiment described in the invention.
Computer equipment 301 can also be communicated with one or more external equipments 310 (such as keyboard, sensing equipment etc.), Can also be enabled a user to one or more equipment interacted with the computer equipment 301 communication, and/or with make the calculating Any equipment (such as network interface card, modem etc. that machine equipment 301 can be communicated with one or more of the other calculating equipment Deng) communication.This communication can be carried out by input/output (Input/Output, I/O) interface 312.Also, computer is set Standby 301 can also by network adapter 313 and one or more network (such as local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and/or public network, such as internet) communication.As shown, network Adapter 313 is communicated by bus 304 with other modules of computer equipment 301.It should be understood that although not shown in fig 4, it can With combine computer equipment 301 use other hardware and/or software module, including but not limited to: microcode, device driver, Redundant processing unit, external disk drive array, disk array (Redundant Arrays of Inexpensive Disks, RAID) system, tape drive and data backup storage system etc..
Processing unit 302 by the program that is stored in system storage 303 of operation, thereby executing various function application with And data processing, such as realize a kind of clock synchronizing method provided by the embodiment of the present invention.
That is, the processing unit is realized when executing described program: obtaining GPS clock signal by local GPS device;Root According to the GPS clock signal is carried out to local clock time calibration.
Embodiment five
The embodiment of the present invention five additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should The clock synchronizing method provided such as all inventive embodiments of the application is provided when program is executed by processor: the described method includes: GPS clock signal is obtained by local GPS device;According to the GPS clock signal is carried out to local clock time calibration.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, RAM, read-only memory (Read Only of one or more conducting wires Memory, ROM), erasable programmable read only memory (Erasable Programmable Read Only Memory, EPROM), flash memory, optical fiber, portable CD-ROM, light storage device, magnetic memory device or above-mentioned any appropriate combination. In this document, it includes or the tangible medium of storage program that the program can be by that computer readable storage medium, which can be any, Instruction execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, radio frequency (RadioFrequency, RF) etc. or above-mentioned any appropriate group It closes.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN or WAN --- even It is connected to subscriber computer, or, it may be connected to outer computer (such as pass through internet using ISP Connection).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (9)

1. a kind of clock synchronizing method, which is characterized in that be applied to block chain network node, which comprises
GPS clock signal is obtained by local Global Positioning System equipment;
According to the GPS clock signal is carried out to local clock time calibration.
2. the method according to claim 1, wherein the local clock is local atomic clock.
3. the method according to claim 1, wherein it is described by local GPS device obtain GPS clock signal, Include:
Pass through local GPS device every setting time and obtains GPS clock signal.
4. method according to any one of claim 1-3, which is characterized in that the block chain network node is to use to award Power-shareholder part proves the node in the block chain network of DPOS mechanism.
5. according to the method described in claim 4, it is characterized in that, when the block chain network node is that candidate block generates section When point, the method also includes:
The temporal information provided according to local clock and default Rule Information in turn determine whether to need to be implemented out block behaviour Make, if so, the transactions requests based on local cache execute the block out for generating block and the block of generation being carried out to transmission verifying Operation.
6. according to the method described in claim 5, it is characterized in that, the temporal information provided according to local clock and default Rule Information in turn determines whether to need to be implemented out block operation, comprising:
The period is generated according to the temporal information of local clock offer, pre-assigned block and sets out block time interval in advance, really Whether block operation is needed to be implemented out before settled;
Wherein, the block generation period is after default block period is divided into N number of period, according to preset each Candidate block generates the block genesis sequence of node, selects from N number of period and distributes to the candidate block generation One period of node, the N are the quantity that candidate block generates node.
7. a kind of clock synchronization apparatus, which is characterized in that be set to block chain network node, described device includes:
GPS clock signal obtains module, for obtaining GPS clock signal by local Global Positioning System equipment;
Local clock calibration module, for carrying out time calibration to local clock according to the GPS clock signal.
8. a kind of computer equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as clock synchronizing method as claimed in any one of claims 1 to 6.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that realized such as when the program is executed by processor Clock synchronizing method as claimed in any one of claims 1 to 6.
CN201810790419.XA 2018-07-18 2018-07-18 Clock synchronizing method, device, equipment and storage medium Pending CN109039513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810790419.XA CN109039513A (en) 2018-07-18 2018-07-18 Clock synchronizing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810790419.XA CN109039513A (en) 2018-07-18 2018-07-18 Clock synchronizing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109039513A true CN109039513A (en) 2018-12-18

Family

ID=64644065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810790419.XA Pending CN109039513A (en) 2018-07-18 2018-07-18 Clock synchronizing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109039513A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109613818A (en) * 2018-12-29 2019-04-12 广西电网有限责任公司南宁供电局 Time service method and system, storage medium and electronic equipment based on big-dipper satellite
CN110492964A (en) * 2019-08-29 2019-11-22 广东博智林机器人有限公司 One kind being based on CLOCK BUFF clock source synchronizing device and method
CN110830138A (en) * 2019-10-31 2020-02-21 联想(北京)有限公司 Information processing method, electronic equipment and server
CN111339187A (en) * 2020-02-20 2020-06-26 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium based on intelligent contract
CN111766771A (en) * 2020-07-10 2020-10-13 桂林电子科技大学 Voltage-controlled crystal oscillator taming-based time interval measuring method and system
CN113922908A (en) * 2021-09-30 2022-01-11 西安诺瓦星云科技股份有限公司 GPS timing precision improvement and synchronous playing method, storage medium and equipment thereof
CN114924617A (en) * 2022-06-15 2022-08-19 深圳前海微众银行股份有限公司 Clock synchronization method and device in decentralized system
CN114924617B (en) * 2022-06-15 2024-04-26 深圳前海微众银行股份有限公司 Clock synchronization method and device in decentralization system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090231191A1 (en) * 2008-03-17 2009-09-17 Wi-Lan, Inc. Systems and methods for distributing GPS clock to communications devices
CN102098776A (en) * 2009-12-10 2011-06-15 中兴通讯股份有限公司 Method and network for realizing multi-sector base transceiver station clock cascade synchronization
CN105717784A (en) * 2016-01-29 2016-06-29 北京市计量检测科学研究院 Power time service method
CN107124403A (en) * 2017-04-14 2017-09-01 朱清明 The generation method and computing device of common recognition block in block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090231191A1 (en) * 2008-03-17 2009-09-17 Wi-Lan, Inc. Systems and methods for distributing GPS clock to communications devices
CN102098776A (en) * 2009-12-10 2011-06-15 中兴通讯股份有限公司 Method and network for realizing multi-sector base transceiver station clock cascade synchronization
CN105717784A (en) * 2016-01-29 2016-06-29 北京市计量检测科学研究院 Power time service method
CN107124403A (en) * 2017-04-14 2017-09-01 朱清明 The generation method and computing device of common recognition block in block chain

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109613818A (en) * 2018-12-29 2019-04-12 广西电网有限责任公司南宁供电局 Time service method and system, storage medium and electronic equipment based on big-dipper satellite
CN110492964A (en) * 2019-08-29 2019-11-22 广东博智林机器人有限公司 One kind being based on CLOCK BUFF clock source synchronizing device and method
CN110830138A (en) * 2019-10-31 2020-02-21 联想(北京)有限公司 Information processing method, electronic equipment and server
CN111339187A (en) * 2020-02-20 2020-06-26 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium based on intelligent contract
CN111339187B (en) * 2020-02-20 2023-05-09 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium based on intelligent contract
CN111766771A (en) * 2020-07-10 2020-10-13 桂林电子科技大学 Voltage-controlled crystal oscillator taming-based time interval measuring method and system
CN113922908A (en) * 2021-09-30 2022-01-11 西安诺瓦星云科技股份有限公司 GPS timing precision improvement and synchronous playing method, storage medium and equipment thereof
CN113922908B (en) * 2021-09-30 2023-11-14 西安诺瓦星云科技股份有限公司 GPS timing precision improvement and synchronous playing method, storage medium and equipment thereof
CN114924617A (en) * 2022-06-15 2022-08-19 深圳前海微众银行股份有限公司 Clock synchronization method and device in decentralized system
CN114924617B (en) * 2022-06-15 2024-04-26 深圳前海微众银行股份有限公司 Clock synchronization method and device in decentralization system

Similar Documents

Publication Publication Date Title
CN109039513A (en) Clock synchronizing method, device, equipment and storage medium
US11706730B2 (en) Time synchronization method and electronic device
US9256658B2 (en) Ranging scalable time stamp data synchronization
EP2378718B1 (en) Method, node and system for controlling version in distributed system
US20120005517A1 (en) Synchronisation and timing method and apparatus
JP5569299B2 (en) COMMUNICATION SYSTEM, COMMUNICATION INTERFACE DEVICE, AND SYNCHRONIZATION METHOD
JP2021506037A (en) Network cards, time synchronization methods and devices, and computer storage media
CN112540388B (en) Satellite communication module and uplink signal Doppler compensation method thereof
CN109525351A (en) A kind of equipment for realizing time synchronization with time reference station
CN112866098B (en) Gateway time service method, device, electronic equipment and computer readable medium
US20110222561A1 (en) Systems and methods for providing time synchronization
CN109412588A (en) Crystal oscillator frequency tames method, apparatus, electronic equipment and storage medium
WO2012111112A1 (en) Information processing device, time setting method, and time setting program
CN108738127B (en) Radio remote unit, baseband processing unit, distributed base station and synchronization method thereof
CN112969229B (en) Clock correction method and device and network equipment
US9104364B2 (en) Generation and distribution of steered time interval pulse to a plurality of hardware components of the computing system
CN114063505A (en) Synchronization control method, device, equipment, synchronization system and storage medium
CN115150019A (en) Multi-sensor time synchronization method, device, equipment and medium
CN105589328B (en) Time synchronization test method, measuring accuracy determine method and device
KR20200083030A (en) System for syncronizing satellite time and ground time and the operation method thereof
EP4258759A1 (en) Peripheral time server device
CN114114883B (en) Method for detecting atomic clock jump by observing multiple pulsar
US9312838B2 (en) Apparatus and method for transferring multiple asynchronous clock signals over a single conductor
Zhao et al. High-precision clock recovery based on OOK
CN116614129A (en) Rubidium atomic clock time domain signal stability optimization method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218

RJ01 Rejection of invention patent application after publication