CN108650050A - A kind of distributed network clock synchronous method - Google Patents
A kind of distributed network clock synchronous method Download PDFInfo
- Publication number
- CN108650050A CN108650050A CN201810439744.1A CN201810439744A CN108650050A CN 108650050 A CN108650050 A CN 108650050A CN 201810439744 A CN201810439744 A CN 201810439744A CN 108650050 A CN108650050 A CN 108650050A
- Authority
- CN
- China
- Prior art keywords
- equipment
- timestamp
- clock
- delay
- message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0682—Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The present invention relates to a kind of distributed network clock synchronous method, are applied to distributed network, including:Main equipment is determined by clock selecting algorithm and from equipment;Measure the main equipment and the link delay from equipment;The main equipment and the time difference from equipment are obtained by the link delay;It is described synchronous from the clock of equipment with time difference completion by the main equipment.The embodiment of the present invention is by measuring link delay, and the time difference is calculated by link delay, then realize that clock synchronizes, so that the clock synchronization accuracy of distributed network reaches nanosecond rank, and make the distributed network that there is stronger stability, i.e. when the equipment in distributed network occurs abnormal, which can adaptively adjust network structure within a very short time, reselect suitable master clock and complete clock synchronization.
Description
Technical field
The invention belongs to electronics and the communications field, and in particular to a kind of distributed network clock synchronous method.
Background technology
With the development of modern information technologies, various application control equipment gradually move towards distribution, intelligence, networking,
The required precision that network clocking synchronizes is also more and more high.It can be telecommunications, mobile communication base station, Personal Handyphone System base that network clocking, which synchronizes,
It stands, the systems such as GSM network optimization provide high-precision time and frequency synchronization signal.Therefore, synchronizing capacity receives extensively
Attention, be all key technology in the research and development of many network systems.
It is to use NTP (Network Time Protocol (Network Time Protocol) that traditional distributed network clock, which synchronizes,
Transmission mode is realized, i.e., transmits unified, standard time on the internet.Particular by specifying on a distribution network
Several clock Source Sites provide time service service to the user, and should be able to mutually be compared between these websites, improve accuracy.
Using communication channel as media synchronization time service, such as computer network, telephone network.
However, this time service mode is since the delay that time signal is transmitted to by channel different terminals is different, Zhi Nengman
The requirement of sufficient medium accuracy time user can only meet the timing tracking accuracy demand of ms ranks.But it is led in Industry Control
In domain, some require very stringent network system, existing Internet network time protocol (NTP), letter to time synchronization
Single Network Time Protocol (SNTP) etc. cannot reach required synchronization accuracy, and base station institute is synchronized especially for wireless time
The us grade time precisions needed are even more far from being enough.
Invention content
In order to solve the above-mentioned problems in the prior art, the present invention provides a kind of distributed network clock sides of synchronization
Method.The technical problem to be solved in the present invention is achieved through the following technical solutions:
An embodiment of the present invention provides a kind of distributed network clock synchronous method, are applied to distributed network, including:
Main equipment is determined by clock selecting algorithm and from equipment;
Measure the main equipment and the link delay from equipment;
The main equipment and the time difference from equipment are obtained by the link delay;
It is described synchronous from the clock of equipment with time difference completion by the main equipment.
In one embodiment of the invention, described that main equipment is determined by clock selecting algorithm and is gone back before equipment
Including:
Judge whether each equipment in the distributed network supports clock synchronization protocol;
If so, operation clock selecting algorithm;
If it is not, then terminating clock synchronization.
In one embodiment of the invention, described that main equipment is determined by clock selecting algorithm and includes from equipment:
Each equipment in the distributed network is run into the clock synchronization algorithm, wherein the clock synchronization algorithm
For BMCA algorithms;
Master clock is determined according to operation result;
The corresponding equipment of the master clock is the main equipment, and surplus equipment is described from equipment.
In one embodiment of the invention, the measurement main equipment includes from the link delay of equipment with described:
Delay request message is sent from equipment to the main equipment by described, and records and stabs at the first time;Wherein, described
Stamp is the delay request message sending time point at the first time;
The delay request message is received by the main equipment, and records the second timestamp;Wherein, second time
Stamp is the delay request message receiving time point;
Delay response message is sent from equipment to described by the main equipment, and records third timestamp;Wherein, described
Third timestamp is the delay response message sending time point;
By the main equipment message is followed from equipment transmission delay response to described;
The delay response message is received from equipment by described, and records the 4th timestamp;Wherein, the 4th time
Stamp is the delay response message receiving time point;
By described message is followed from the equipment reception delay response;
It is stabbed by the first time, second timestamp, the third timestamp, the 4th timestamp calculates institute
State link delay.
In one embodiment of the invention, the delay response message includes second timestamp, and the delay is rung
It includes the third timestamp that message, which should be followed,.
In one embodiment of the invention, it is stabbed by the first time, second timestamp, the third time
Stamp, the 4th timestamp calculate the link delay and meet:
Wherein, link_delay is the link delay, and t1 stabs for the first time, and t2 is second timestamp,
T3 is the third timestamp, and t4 is the 4th timestamp.
In one embodiment of the invention, described by the link delay acquisition main equipment and described from equipment
Time difference include:
Sync message is sent from equipment to described by the main equipment, and records the 5th timestamp;Wherein, the described 5th
Timestamp is the sending time point of the sync message;
Message is followed from equipment transmission to described by the main equipment, wherein described when message being followed to include the described 5th
Between stab;
The sync message is received from equipment by described, and records the 6th timestamp;Wherein, the 6th timestamp is
The sync message receiving time point;
By it is described from equipment receive described in follow message;
The main equipment and the time difference from equipment are calculated according to the 5th timestamp and the 6th timestamp.
In one embodiment of the invention, by the 5th timestamp, the 6th timestamp calculates the time
Difference meets:
D=link_delay+t6-t5
Wherein, D is the time difference, and link_delay is the link delay, and t5 is the 5th timestamp, and t6 is institute
State the 6th timestamp.
In one embodiment of the invention, further include described when having next stage equipment from equipment, pass through the side of synchronization
Method, the clock for completing the next stage equipment synchronize.
In one embodiment of the invention, the clock selecting algorithm is synchronize week with the distributed network clock
Phase property is run.
Compared with prior art, beneficial effects of the present invention:
1) clock synchronizing method provided by the invention provides more structurally sound Time Synchronizing so that time synchronization essence
Degree reaches nanosecond rank, and relative to the synchronization accuracy of former delicate grade, it is very stringent to clock synchronization requirement can to meet some
Distributed network demand;
2) clock synchronizing method provided by the invention makes distributed network have stronger robustness, as the super master in network
When clock or other equipment occur abnormal, which can adaptively adjust network structure within a very short time, again
It selects suitable clock source and completes clock synchronous task.
Description of the drawings
Fig. 1 is a kind of flow chart of distributed network clock synchronous method provided in an embodiment of the present invention;
Fig. 2 is a kind of implementation process schematic diagram of distributed network clock synchronous method provided in an embodiment of the present invention;
Fig. 3 is that a kind of measurement link delay principle of distributed network clock synchronous method provided in an embodiment of the present invention is shown
It is intended to;
Fig. 4 is the clock synchronization principles signal of another distributed network clock synchronous method provided in an embodiment of the present invention
Figure.
Specific implementation mode
Further detailed description is done to the present invention with reference to specific embodiment, but embodiments of the present invention are not limited to
This.
Embodiment one
Fig. 1 is referred to, Fig. 1 is a kind of flow chart of distributed network clock synchronous method provided in an embodiment of the present invention.
The clock that the clock synchronizing method of the present invention can be used for distributed network synchronizes, and is network applied to distribution, specifically, the party
Method includes step:
Step 1 determines main equipment by clock selecting algorithm and from equipment;
Step 2 measures the main equipment and the link delay from equipment;
Step 3 obtains the main equipment and the time difference from equipment by the link delay;
Step 4, completed by the main equipment and the time difference it is described synchronous from the clock of equipment.
Wherein, for that before step 1, can also include:
Step X1, judge whether each equipment in the distributed network supports clock synchronization protocol;
If so, operation clock selecting algorithm;
If it is not, then terminating clock synchronization.
Wherein, for step 1, may include:
Each equipment in the distributed network is run the clock synchronization algorithm by step 11, wherein the clock is same
Step algorithm is BMCA algorithms;
Step 12 determines master clock according to operation result;
Step 13, the corresponding equipment of the master clock are the main equipment, and surplus equipment is described from equipment.
Wherein, for step 2, may include:
Step 21 sends delay request message from equipment to the main equipment by described, and records and stab at the first time;Its
In, the first time stamp is the delay request message sending time point;
Step 22 is received the delay request message by the main equipment, and records the second timestamp;Wherein, described
Second timestamp is the delay request message receiving time point;
Step 23 sends delay response message from equipment to described by the main equipment, and records third timestamp;Its
In, the third timestamp is the delay response message sending time point;
Step 24 follows message to described by the main equipment from equipment transmission delay response;
Step 25 receives the delay response message from equipment by described, and records the 4th timestamp;Wherein, described
4th timestamp is the delay response message receiving time point;
Step 26 follows message by described from the equipment reception delay response;
Step 27 is stabbed, second timestamp, the third timestamp, the 4th time by the first time
Stamp calculates the link delay.
Further, the delay response message in step 23 and step 25 includes second timestamp, step 24
It includes the third timestamp to follow message with the delay response in step 26.
Further, being stabbed by the first time in step 27, second timestamp, the third timestamp,
4th timestamp calculates the link delay and meets:
Wherein, link_delay is the link delay, and t1 stabs for the first time, and t2 is second timestamp,
T3 is the third timestamp, and t4 is the 4th timestamp.
Wherein, for step 3, may include:
Step 31 sends sync message from equipment to described by the main equipment, and records the 5th timestamp;Wherein,
5th timestamp is the sending time point of the sync message;
Step 32 follows message to described by the main equipment from equipment transmission, wherein described follow message to include institute
State the 5th timestamp;
Step 33 receives the sync message from equipment by described, and records the 6th timestamp;Wherein, the described 6th
Timestamp is the sync message receiving time point;
Step 34, by it is described from equipment receive described in follow message;
Step 35 calculates the main equipment according to the 5th timestamp and the 6th timestamp with described from equipment
Time difference.
Further, the time difference in step 35 meets:
D=link_delay+t6-t5
Wherein, D is the time difference, and link_delay is the link delay, and t5 is the 5th timestamp, and t6 is institute
State the 6th timestamp.
Wherein, for that after step 4, can also include:
Described when having next stage equipment from equipment, by the synchronous method, the clock for completing the next stage equipment is same
Step
Further, the clock selecting algorithm in step 1, step 2, step 3 and step 4 and the distributed network
It is cycling service that clock, which synchronizes,.
In the present embodiment, super master clock is determined by clock algorithm algorithm, and measures link delay, and synchronized in clock
When add link delay so that clock synchronization accuracy reach nanosecond rank, it is very tight to clock synchronization requirement that some can be met
The demand of the distributed network system (DNS) of lattice.
Embodiment two
Fig. 2 is referred to, Fig. 2 is a kind of implementation process of distributed network clock synchronous method provided in an embodiment of the present invention
Schematic diagram;Fig. 3 is that a kind of measurement link delay principle of distributed network clock synchronous method provided in an embodiment of the present invention is shown
It is intended to;Fig. 4 is a kind of clock synchronization principles schematic diagram of distributed network clock synchronous method provided in an embodiment of the present invention.This
Embodiment on the basis of the above embodiments, is further described in detail the clock synchronizing method.Specifically, this method packet
Include following steps:
Step 1 transmits and receives message
Each node in distributed network is a Time Perception system, each Time Perception system corresponding one
A equipment, each equipment.When each node in distributed network after the power is turned on, i.e., each equipment of distributed network is powered after operation,
Message is sent mutually between two connected equipment, determines whether each equipment is supported to support 802.1AS agreements, is run if supporting
Clock selecting algorithm terminates clock synchronization if not supporting.
Preferably, clock selecting algorithm is BMC algorithms, and BMC algorithms, that is, best master clock algorithm is IEEE1588 (when accurate
Clock synchronous protocol) one of most important core technology, the system synchronized into row clock by IEEE1588 agreements is by running most
Good master clock algorithm carrys out the master clock in selection system.Other clocks are synchronized into row clock with master clock as reference entirely.Wherein,
IEEE1588 is the time protocol about network measure and control system, can reach higher network clock synchronization precision, is realized high-precision
The time synchronization of degree.
Step 2, operation BMC algorithms, determine main equipment
Announce messages (declaration message) are sent in distributed network between each equipment, wherein each equipment receives and locates
The message information of other equipment is managed, and is interacted by Announce messages, more each clock information, and selects master clock,
Wherein, equipment where master clock is main equipment, and the equipment being connected with main equipment is from equipment, and determination main equipment and distributed network
The synchronous path of other equipment in network.
Step 3 measures main equipment and the link delay from equipment
As shown in figure 3, after determining main equipment, delay_Req messages (delay request message) are sent from equipment to main equipment,
After message is sent, the timestamp that sends out of the message is recorded from equipment, and the time point that the message is sent out is recorded as at the first time
Stamp;
Preferably, after main equipment receives the delay_Req messages that are sent out from equipment, main equipment record receive the message when
Between point, and the time point for receiving the message is recorded as the second timestamp;
Preferably, main equipment sends delay_Resp messages (delay response message) to from equipment, wherein delay_Resp
Message contains the second timestamp, and after delay_Resp messages are sent successfully, main equipment records sending time point, and should by sending
The time point of message is recorded as third timestamp.And then, main equipment sends delay_Resp_Follow_Up reports to from equipment
Text (delay response follows message), wherein delay_Resp_Follow_Up messages include third timestamp;
Preferably, delay_Resp messages are received from equipment, and by second timestamp of Receive message, then, note
Record receives the time point of the message, and the time point is recorded as the 4th timestamp, finally, receives delay_Resp_Follow_
Up Receive message timestamp third timestamps,;
Preferably, main equipment calculates main equipment to the link delay from equipment by formula, then its calculation formula is:
Wherein, link_delay is link delay, and t1 is to stab at the first time, and t2 is the second timestamp, and t3 is the third time
Stamp, t4 are the 4th timestamp.
Step 4 is completed to synchronize from the clock of equipment.
As shown in figure 4, after measuring link delay, main equipment sends Sync messages (sync message) to from equipment, is sending out
Sending time point is recorded after going out the message, and the time point is recorded as the 5th timestamp.And then, master clock is sent out to from equipment
Send Follow_Up messages (following message), wherein Follow_Up messages include the 5th timestamp.
Preferably, after equipment receives Sync messages, and the time point for receiving the message is recorded, and the time point is recorded
For the 6th timestamp the 5th timestamp is obtained after equipment collects Follow_Up messages.
Preferably, it is calculated from equipment from the time difference of equipment and main equipment, then the calculation formula of time difference is:
D=link_delay+t6-t5
Wherein, D is the time difference, and t5 is the 5th timestamp, and t6 is the 6th timestamp.
Preferably, from equipment on the basis of main equipment by correcting the synchronised clock from clock by time difference D, and
It completes to synchronize from the clock of equipment.
Step 5, it synchronizes step by step, the clock for completing distributed network synchronizes
After equipment completion clock synchronizes, similarly, measurement link is sequentially completed to the next stage equipment being connected with from equipment
Delay and time difference, wherein link delay be from equipment to the link delay of its next stage equipment connected, the time difference for from
Equipment to its next stage equipment connected time difference, and it is synchronous with from equipment clock.And so on, it is distributed until completing
The clock of network synchronizes.
Preferably, BMC algorithms are cycling service, and distribution is that network clocking synchronizes also as cycling service, wherein BMC
The algorithm time cycle synchronous with clock is obtained by Signaling messages (signaling message), and Signaling messages pass through equipment
Signal configuration interface setting.
The embodiment of the present invention calculates the time difference by measuring link delay, and by link delay, then realizes clock
It is synchronous so that the clock synchronization accuracy of distributed network reaches nanosecond rank, and it is stronger steady so that the distributed network is had
Qualitative, i.e., when the equipment in distributed network occurs abnormal, which can adaptively adjust within a very short time
Network structure reselects suitable master clock and completes clock synchronization.
Embodiment three
Distributed network is by being distributed in different location and having made of the Node station interconnection of multiple terminals.It is any in net
Point be at least connected with two lines road, when any one line failure, communication can turn through other links complete, with compared with
High reliability, meanwhile, network is easy to expand.
Preferably, whole nodes in distributed network constitute a clock system domain, all nodes in domain
Respectively include clock source, bridge and end station, wherein the quantity of clock source is one, and the quantity of end station is at least one, the quantity of bridge
It is at least one.Each node in distributed network is a Time Perception system, i.e., when clock source, bridge and end station are all
Between sensory perceptual system.
Preferably, Time Perception system includes:Synchronous website synchronizing station point module (Sitesync), first port
(portsync 1), second port (portsync 2), data relay module (Md), master (ClockMaster) and
From clock module (ClockSlave), wherein synchronizing station point module is according to clock selecting algorithm picks as a result, to determine number
According to flow direction, and call relevant function module;First port is the information filling report for sending the synchronizing station point module
Text, and send out the message;Second port is to be sent to the synchronizing station for receiving and parsing through message, and by the message
Point module;Data relay module is and external connection to obtain message information, and complete the forwarding of message;Master, with
Clock source connects, and is to be sent to the synchronizing station point module for providing standard time information, and by the standard time information;
From clock module, information is sended and received to the synchronizing station point module, link delay is calculated by described information, according to described
Link delay calculates the time difference with even higher level of node, and corrects local clock by the time difference.
Preferably, clock selecting algorithm is sent out between each node by the distributed network where the Time Perception system
Send Announce messages (declaration message), wherein each node receives and processes the message information of other nodes, and passes through
Announce messages interact, more each clock information, and select the clock synchronous path of master clock and distributed network,
Wherein, node where master clock is host node, and the node being connected with host node is from node, and determination host node and distributed network
The synchronous path of other nodes in network.
Preferably, when the Time Perception system is master clock by clock selecting algorithms selection, then the Time Perception system
Node where system is host node, and equipment where host node is main equipment, other coupled nodes are from node, from node
Equipment is from equipment, and synchronizing station point module calls master, first port and data relay mould according to clock selecting algorithm
Block, wherein master is connected with clock source, and master clock provides the standard time that clock synchronizes.When the Time Perception system
For from clock when, then node where Time Perception system is from node, and synchronizing station point module is called according to clock selecting algorithm
Data relay module, second port and from clock module, wherein go out the master clock information obtained and local clock from clock calculation
Time difference, and correct local clock.When this from node there is also when next stage node, synchronizing station point module also calls first end
Mouthful, the time after correction is sent to by next stage node by first port.
Preferably, it when this node sends message to next stage node, is selected first by the node synchronizing station point module
Calling module, the master of Selection and call or sends information to synchronizing station point module from clock module, synchronous website mould
Block sends information to first port, and the information of transmission is sent to number after the message filling by first port in the form of message
According to transit module, data relay module is sent to next stage point by being connect with network card interface, by message.
Preferably, when this node receives even higher level of node message, message is received by data relay module first, and
Data relay module can obtain timestamp information, and message and timestamp information are then sent to second port, second segment mouth
Analytic message, and by after parsing message information and timestamp information be sent to synchronizing station point module, last synchronizing station point module
It transmits these information to from clock module.
Preferably, clock synchronization will be completed by synchronizing the connected Time Perception system of master-slave relationship there are clock when two
When, prime minister needs to measure link delay, as shown in figure 3, measurement link delay includes:
By distributed network node, upstream connected node sends delay request message, and records and stab at the first time,
In, stamp is delay request message sending time point at the first time;By upstream be connected clock node receive delay request message, and
Record the second timestamp, wherein the second timestamp is delay request message receiving time point;Upstream is connected clock node to this section
Point sends delay response message, and records and stab between the third of sending time, wherein delay response message includes the second timestamp;
This node receives delay response message, obtains the second timestamp, and record the 4th timestamp of receiving time;Upstream is connected clock
Node sends delay response to this node and follows message, wherein it includes third timestamp that delay response, which follows message,;This node
It receives delay response and follows message, obtain third timestamp;Finally, link delay is calculated by formula, calculates link delay
Formula is:
Wherein, link_delay is link delay, and t1 is to stab at the first time, and t2 is the second timestamp, and t3 is the third time
Stamp, t4 are the 4th timestamp.
Preferably, as shown in figure 4, time of measuring difference includes:Sync message is sent to this node by upstream connected node,
And record the 5th timestamp;Wherein, the 5th timestamp is the sending time point of sync message;By upstream connected node to this section
Point sends and follows message, wherein it includes the 5th timestamp to follow message;When receiving sync message by this node, and recording the 6th
Between stab;Wherein, the 6th timestamp is sync message receiving time point;Message is followed by the reception of this node;According to the 5th time
Stamp and the 6th timestamp calculate the time difference of upstream connected node and this node, and the formula for calculating the time difference is:
D=link_delay+t6-t5
Wherein, link_delay is link delay, and D is the time difference, and t5 is the 5th timestamp, and t6 is the 6th timestamp.
Preferably, after this node completion clock synchronizes, similarly, measurement link is sequentially completed to the next stage node being connected
Delay and time difference, deadline synchronize, and wherein link delay prolongs for the link of this node to its next stage equipment connected
When, and it is synchronous with this nodal clock.And so on, the clock until completing distributed network synchronizes.
Preferably, delay_Req messages, delay_Resp messages, Sync messages are event message;Pdelay_Resp_
Follow_Up messages, Follow_Up messages are general message, wherein event message needs record when sending and receiving
Accurate timestamp, general message do not have to logging timestamp.
Preferably, from clock after calculating the time difference with master clock, by clock source interface function, clock tune is called
Function is saved, the time difference between master clock is corrected, it is synchronous with the clock of master clock to complete.
Preferably, clock selecting algorithm is cycling service, and distribution is that network clocking synchronization is also cycling service,
In, the clock selecting algorithm time cycle synchronous with clock is obtained by Signaling messages (signaling message), Signaling
Message configures interface setting by the Signal of equipment.
In the present embodiment, when further calculating the time difference by measuring the link delay between associated devices, and passing through
Between difference correction synchronised clock, step by step complete distributed network clock synchronize, distributed network can be made to reach using which
The other clock synchronization accuracy of nanosecond, and the stability that the distributed network clock synchronizes is stronger, can more meet more equipment
Demand.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that
The specific implementation of the present invention is confined to these explanations.For those of ordinary skill in the art to which the present invention belongs, exist
Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the present invention's
Protection domain.
Claims (10)
1. a kind of distributed network clock synchronous method, which is characterized in that it is applied to distributed network, including:
Main equipment is determined by clock selecting algorithm and from equipment;
Measure the main equipment and the link delay from equipment;
The main equipment and the time difference from equipment are obtained by the link delay;
It is described synchronous from the clock of equipment with time difference completion by the main equipment.
2. synchronous method according to claim 1, which is characterized in that it is described by clock selecting algorithm determine main equipment with
And further include before equipment:
Judge whether each equipment in the distributed network supports clock synchronization protocol;
If so, operation clock selecting algorithm;
If it is not, then terminating clock synchronization.
3. synchronous method according to claim 1, which is characterized in that it is described by clock selecting algorithm determine main equipment with
And include from equipment:
Each equipment in the distributed network is run into the clock synchronization algorithm, wherein the clock synchronization algorithm is BMCA
Algorithm;
Master clock is determined according to operation result;
The corresponding equipment of the master clock is the main equipment, and surplus equipment is described from equipment.
4. synchronous method according to claim 1, which is characterized in that described to measure the main equipment with described from equipment
Link delay includes:
Delay request message is sent from equipment to the main equipment by described, and records and stabs at the first time;Wherein, described first
Timestamp is the delay request message sending time point;
The delay request message is received by the main equipment, and records the second timestamp;Wherein, second timestamp is
The delay request message receiving time point;
Delay response message is sent from equipment to described by the main equipment, and records third timestamp;Wherein, the third
Timestamp is the delay response message sending time point;
By the main equipment message is followed from equipment transmission delay response to described;
The delay response message is received from equipment by described, and records the 4th timestamp;Wherein, the 4th timestamp is
The delay response message receiving time point;
By described message is followed from the equipment reception delay response;
It is stabbed by the first time, second timestamp, the third timestamp, the 4th timestamp calculates the chain
Road is delayed.
5. synchronous method according to claim 4, which is characterized in that the delay response message includes second time
Stamp, it includes the third timestamp that the delay response, which follows message,.
6. synchronous method according to claim 4, which is characterized in that stabbed by the first time, second time
Stamp, the third timestamp, the 4th timestamp calculate the link delay and meet:
Wherein, link_delay is the link delay, and t1 stabs for the first time, and t2 is second timestamp, and t3 is
The third timestamp, t4 are the 4th timestamp.
7. synchronous method according to claim 6, which is characterized in that described to be set by the link delay acquisition master
It is standby to include from the time difference of equipment with described:
Sync message is sent from equipment to described by the main equipment, and records the 5th timestamp;Wherein, the 5th time
Stamp is the sending time point of the sync message;
Message is followed from equipment transmission to described by the main equipment, wherein described follow message to include the 5th time
Stamp;
The sync message is received from equipment by described, and records the 6th timestamp;Wherein, the 6th timestamp is described
Sync message receiving time point;
By it is described from equipment receive described in follow message;
The main equipment and the time difference from equipment are calculated according to the 5th timestamp and the 6th timestamp.
8. synchronous method according to claim 7, which is characterized in that by the 5th timestamp, the 6th time
Stamp calculates the time difference satisfaction:
D=link_delay+t6-t5
Wherein, D is the time difference, and link_delay is the link delay, and t5 is the 5th timestamp, and t6 is described the
Six timestamps.
9. synchronous method according to claim 1, which is characterized in that when having next stage equipment from equipment described in further including,
By the synchronous method, the clock for completing the next stage equipment synchronizes.
10. synchronous method according to claim 1, which is characterized in that the clock selecting algorithm and the distributed network
It is cycling service that network clock, which synchronizes,.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810439744.1A CN108650050A (en) | 2018-05-09 | 2018-05-09 | A kind of distributed network clock synchronous method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810439744.1A CN108650050A (en) | 2018-05-09 | 2018-05-09 | A kind of distributed network clock synchronous method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108650050A true CN108650050A (en) | 2018-10-12 |
Family
ID=63753859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810439744.1A Pending CN108650050A (en) | 2018-05-09 | 2018-05-09 | A kind of distributed network clock synchronous method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108650050A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981204A (en) * | 2019-02-21 | 2019-07-05 | 福建星云电子股份有限公司 | A kind of Multi-Machine Synchronous method of BMS analogue system |
CN110099439A (en) * | 2019-04-16 | 2019-08-06 | 新华三技术有限公司 | Method for synchronizing time and device |
CN110557826A (en) * | 2019-09-20 | 2019-12-10 | 北京邮电大学 | Clock synchronization method and device |
CN111835446A (en) * | 2019-04-19 | 2020-10-27 | 杭州海康威视数字技术股份有限公司 | Method, device and medium for determining master equipment |
CN112040472A (en) * | 2020-08-10 | 2020-12-04 | 烽火通信科技股份有限公司 | Clock synchronization method, system and readable storage medium |
CN112152744A (en) * | 2019-06-28 | 2020-12-29 | 比亚迪股份有限公司 | Clock synchronization method and device, FPGA chip and optical fiber communication network |
CN114124616A (en) * | 2022-01-25 | 2022-03-01 | 浙江中控研究院有限公司 | Clock synchronization optimization method based on EPA bus structure |
CN114244465A (en) * | 2021-12-25 | 2022-03-25 | 江苏信而泰智能装备有限公司 | Cascade system main equipment selection method, selection device and cascade system |
CN116436555A (en) * | 2023-06-09 | 2023-07-14 | 新华三技术有限公司 | Time synchronization method and device and distributed network equipment |
CN116506096A (en) * | 2023-06-26 | 2023-07-28 | 北京象帝先计算技术有限公司 | Clock synchronization method, system, component and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102195735A (en) * | 2010-03-11 | 2011-09-21 | 杭州华三通信技术有限公司 | Time synchronization method for multi-subsystem equipment and subsystem |
CN102983927A (en) * | 2012-12-12 | 2013-03-20 | 南京协澳智能控制系统有限公司 | Time compensation method for master-slave clock timing based on IEEE 1588 protocol |
CN103442312A (en) * | 2013-09-06 | 2013-12-11 | 国家电网公司 | Intelligent power distribution network time synchronization system and method based on PTN+EPON communication system |
CN103995471A (en) * | 2014-05-23 | 2014-08-20 | 华中科技大学 | Clock synchronization method of distributed control system |
CN105323054A (en) * | 2014-06-26 | 2016-02-10 | 中兴通讯股份有限公司 | Clock synchronization method and device |
CN106130681A (en) * | 2016-07-25 | 2016-11-16 | 广州市国飞信息科技有限公司 | High-accuracy clock synchronization method, module, equipment and system for time dissemination system |
-
2018
- 2018-05-09 CN CN201810439744.1A patent/CN108650050A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102195735A (en) * | 2010-03-11 | 2011-09-21 | 杭州华三通信技术有限公司 | Time synchronization method for multi-subsystem equipment and subsystem |
CN102983927A (en) * | 2012-12-12 | 2013-03-20 | 南京协澳智能控制系统有限公司 | Time compensation method for master-slave clock timing based on IEEE 1588 protocol |
CN103442312A (en) * | 2013-09-06 | 2013-12-11 | 国家电网公司 | Intelligent power distribution network time synchronization system and method based on PTN+EPON communication system |
CN103995471A (en) * | 2014-05-23 | 2014-08-20 | 华中科技大学 | Clock synchronization method of distributed control system |
CN105323054A (en) * | 2014-06-26 | 2016-02-10 | 中兴通讯股份有限公司 | Clock synchronization method and device |
CN106130681A (en) * | 2016-07-25 | 2016-11-16 | 广州市国飞信息科技有限公司 | High-accuracy clock synchronization method, module, equipment and system for time dissemination system |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981204A (en) * | 2019-02-21 | 2019-07-05 | 福建星云电子股份有限公司 | A kind of Multi-Machine Synchronous method of BMS analogue system |
CN110099439A (en) * | 2019-04-16 | 2019-08-06 | 新华三技术有限公司 | Method for synchronizing time and device |
CN110099439B (en) * | 2019-04-16 | 2021-06-22 | 新华三技术有限公司 | Time synchronization method and device |
CN111835446A (en) * | 2019-04-19 | 2020-10-27 | 杭州海康威视数字技术股份有限公司 | Method, device and medium for determining master equipment |
CN112152744A (en) * | 2019-06-28 | 2020-12-29 | 比亚迪股份有限公司 | Clock synchronization method and device, FPGA chip and optical fiber communication network |
CN110557826A (en) * | 2019-09-20 | 2019-12-10 | 北京邮电大学 | Clock synchronization method and device |
CN110557826B (en) * | 2019-09-20 | 2020-12-04 | 北京邮电大学 | Clock synchronization method and device |
CN112040472B (en) * | 2020-08-10 | 2022-10-18 | 烽火通信科技股份有限公司 | Clock synchronization method, system and readable storage medium |
CN112040472A (en) * | 2020-08-10 | 2020-12-04 | 烽火通信科技股份有限公司 | Clock synchronization method, system and readable storage medium |
CN114244465A (en) * | 2021-12-25 | 2022-03-25 | 江苏信而泰智能装备有限公司 | Cascade system main equipment selection method, selection device and cascade system |
CN114124616A (en) * | 2022-01-25 | 2022-03-01 | 浙江中控研究院有限公司 | Clock synchronization optimization method based on EPA bus structure |
CN114124616B (en) * | 2022-01-25 | 2022-05-27 | 浙江中控研究院有限公司 | Clock synchronization optimization method based on EPA bus structure |
CN116436555A (en) * | 2023-06-09 | 2023-07-14 | 新华三技术有限公司 | Time synchronization method and device and distributed network equipment |
CN116436555B (en) * | 2023-06-09 | 2023-08-18 | 新华三技术有限公司 | Time synchronization method and device and distributed network equipment |
CN116506096A (en) * | 2023-06-26 | 2023-07-28 | 北京象帝先计算技术有限公司 | Clock synchronization method, system, component and equipment |
CN116506096B (en) * | 2023-06-26 | 2023-10-20 | 北京象帝先计算技术有限公司 | Clock synchronization method, system, component and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108650050A (en) | A kind of distributed network clock synchronous method | |
CN108599888A (en) | A kind of distributed network clock synchronizing system | |
CN102394715B (en) | Clock synchronizing method and device | |
CN103001720B (en) | Time synchronization method and device | |
CN110784275B (en) | Time synchronization deviation adjusting method, device, terminal and access stratum equipment | |
US8599881B2 (en) | Redundant communication timing for remote nodes | |
US8964790B2 (en) | Communication apparatus | |
US8995473B2 (en) | Ring based precise time data network clock phase adjustments | |
KR101290643B1 (en) | Method and system for bearing time synchronization protocol in optical transport network | |
CN101425865B (en) | Method and system for synchronizing clock of transmission network as well as subordinate clock side entity | |
CN102244603B (en) | Method, equipment and system for transmitting message bearing time | |
CN103166792B (en) | Line asymmetrical compensation method, equipment and system | |
Garner et al. | Synchronization of audio/video bridging networks using IEEE 802.1 AS | |
CN103929293A (en) | Asymmetrically-delayed time synchronization method and system | |
WO2013020499A1 (en) | Method and device for implementing automatic compensation for asymmetric delay of 1588 link | |
US8718213B2 (en) | Clock synchronization method, apparatus, and system | |
CN102035638A (en) | Clock source selection processing method, device and system | |
CN108683472A (en) | A kind of clock synchronizing method based on Time delay measurement | |
CN106027193A (en) | Clock synchronization method, module, equipment and system for network timing system | |
US10069583B2 (en) | Faster synchronization time and better master selection based on dynamic accuracy information in a network of IEEE 1588 clocks | |
AU757626B2 (en) | Frame phase synchronous system and a method thereof | |
CN105978652A (en) | Synchronous time comparing equipment of redundant Ethernet, system and method thereof | |
CN103580768B (en) | A kind of method for synchronizing time and device | |
CN100591173C (en) | Method, system and equipment for measuring transmission delay | |
CN114389735A (en) | Clock synchronization method based on IEEE802.1AS redundant master clock |
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: 20181012 |
|
RJ01 | Rejection of invention patent application after publication |