CN106209337B - A kind of time synchronization message sends frequency self-adaption method, device and equipment - Google Patents

A kind of time synchronization message sends frequency self-adaption method, device and equipment Download PDF

Info

Publication number
CN106209337B
CN106209337B CN201510210491.7A CN201510210491A CN106209337B CN 106209337 B CN106209337 B CN 106209337B CN 201510210491 A CN201510210491 A CN 201510210491A CN 106209337 B CN106209337 B CN 106209337B
Authority
CN
China
Prior art keywords
frequency
equipment
clock
time synchronization
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.)
Active
Application number
CN201510210491.7A
Other languages
Chinese (zh)
Other versions
CN106209337A (en
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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510210491.7A priority Critical patent/CN106209337B/en
Publication of CN106209337A publication Critical patent/CN106209337A/en
Application granted granted Critical
Publication of CN106209337B publication Critical patent/CN106209337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a kind of time synchronization messages to send frequency self-adaption method, comprising: when equipment starts, it is first frequency that the time synchronization message of the slave clock port of equipment, which is sent set of frequency,;When real-time detection and determining equipment reach the regularization condition of preset time synchronization message transmission frequency, it is second frequency by set of frequency is sent from the time synchronization message of clock port, and notifies master clock corresponding adjustment in upstream to the frequency from clock port sending time sync message;The first frequency is greater than second frequency, and second frequency is synchronous with other equipment progress normal time for the equipment;And/or, when corresponding with the upstream master clock equipment room synchronous abnormality of equipment, it improves from the time synchronization message of clock port transmission frequency to third frequency, and notifies master clock corresponding adjustment in upstream to the frequency from clock port sending time sync message, third frequency is greater than the second frequency.The invention also discloses device corresponding with the method and equipment.

Description

A kind of time synchronization message sends frequency self-adaption method, device and equipment
Technical field
The present invention relates in the communications field Time synchronization technique more particularly to a kind of time synchronization message send frequency from Adaptive method, device and equipment.
Background technique
IEEE 1588v2 agreement is the accurate time synchronization protocol of current industry mainstream, and precision reaches submicrosecond grade.1588 Agreement uses master-slave mode Time Synchronization Mechanism: in 1588 communication paths, master clock provides source time, for next stage clock It is synchronous, that is, supply from clock reference;From clock then by with master clock intercommunication message, according to master clock provide time Correct local zone time.
Time synchronization message can be transmitted using the method for multicast, master clock downstream all connection equipment transmission groups Casting text, responds the message received from clock.In the prior art and standard, each clock in a network is all provided with It sets identical multicast and sends message frequencies.
Although 1588 messages are given out a contract for a project, frequency is high, helps to improve convergence rate and synchronization accuracy, can occupy more Link bandwidth and equipment internal processing resource.Moreover, under current mechanism, message frequency of giving out a contract for a project is fixed, can not flexible configuration, Convergence rate and precision are influenced in some scenarios, when discovery, which is unable to satisfy, to be required, it is necessary to give out a contract for a project via manually reconfiguring Frequency.
Summary of the invention
To solve existing technical problem, it is adaptive that the embodiment of the present invention provides a kind of time synchronization message transmission frequency Induction method, device and equipment.
The embodiment of the invention provides a kind of time synchronization messages to send frequency self-adaption method, this method comprises:
When equipment starts, it is the first frequency that the time synchronization message of the slave clock port of the equipment, which is sent set of frequency, Rate;Real-time detection and when determining that the equipment reaches preset time synchronization message and sends the regularization condition of frequency, will it is described from It is second frequency that the time synchronization message of clock port, which sends set of frequency, and notifies the corresponding adjustment of the upstream master clock to institute State the frequency from clock port sending time sync message;
Wherein, the first frequency is greater than the second frequency, and the second frequency is used for the equipment and other equipment It is synchronous to carry out normal time;And/or
When corresponding with the upstream master clock equipment room synchronous abnormality of the equipment, improve it is described from clock port when Between sync message send frequency to the third frequency, and notify the corresponding adjustment of the upstream master clock to described from clock port The frequency of sending time sync message;The third frequency is greater than the second frequency.
In one embodiment, this method further include:
When equipment starts, it is described first that the time synchronization message of the master clock port of the equipment, which is sent set of frequency, Frequency;
It receives and the first notice issued according to downstream from clock sends the time synchronization message of the master clock port Frequency is adjusted to the second frequency;First notice are as follows: the downstream reaches default in determination from the corresponding equipment of clock Time synchronization message issue when sending the regularization condition of frequency;And/or
It receives and the second notice issued according to downstream from clock sends the time synchronization message of the master clock port Frequency is adjusted to the third frequency, second notice are as follows: the downstream is from the corresponding equipment of clock in the determining and master It is issued when the corresponding equipment room synchronous abnormality of clock port.
Wherein, the synchronous abnormality of the equipment room includes:
The absolute value of reporting between master-salve clock is greater than preset value or the fluctuation of the absolute value is greater than preset value; And/or
When physical layer frequency is lost or degrades, equipment room needs to carry out Frequency Synchronization based on time synchronization message;And/or
Time delay value between the master-salve clock being calculated is greater than preset value or the fluctuation of time delay value is greater than preset value.
In one embodiment, this method further include:
When corresponding with the upstream master clock equipment room synchronous abnormality of the equipment is eliminated, by described from clock port Time synchronization message sends frequency and is reduced to the second frequency, and notify the corresponding adjustment of the upstream master clock to it is described from when The frequency of clock port sending time sync message.
In one embodiment, this method further include:
It receives and the third notice issued according to downstream from clock sends the time synchronization message of the master clock port Frequency is adjusted to the second frequency, the third notice are as follows: the downstream is from the corresponding equipment of clock in the determining and master What clock port corresponding equipment room synchronous abnormality issued when eliminating.
Wherein, the equipment notifies the corresponding adjustment of the upstream master clock to report to described from clock port sending time is synchronous The frequency of text, comprising:
The equipment sends individual message to the upstream master clock and is notified;Alternatively,
The equipment carries the information of the frequency of the adjustment sending time sync message in original time synchronization message Extended byte or reserve bytes in.
Wherein, the equipment receives the notice that downstream is issued from clock, comprising:
Receive the notice that downstream issues by way of sending independent message from clock;Alternatively,
The original time for receiving the information for carrying adjustment sending time sync message frequency that downstream is sent from clock is same Message is walked, carries the information in the extended byte or reserve bytes of the time synchronization message.
The embodiment of the invention also provides a kind of time synchronization messages to send frequency self-reacting device, which includes: to set Set module, judging treatmenting module and sending module;Wherein,
The setup module sends the time synchronization message of the slave clock port of the equipment when for equipment starting Set of frequency is first frequency;
The judging treatmenting module for real-time detection and determines that the equipment reaches preset time synchronization message and sends When the regularization condition of frequency, set of frequency is sent as second frequency from the time synchronization message of clock port by described;And/or
When for determining corresponding with the upstream master clock equipment room synchronous abnormality of the equipment, improve described from clock The time synchronization message of port sends frequency to the third frequency;
The sending module, for notifying that the upstream master clock is corresponding according to the processing result of the judging treatmenting module It adjusts to the frequency from clock port sending time sync message;
Wherein, the first frequency is greater than the second frequency, and the second frequency is used for the equipment and other equipment It is synchronous to carry out normal time;The third frequency is greater than the second frequency.
In one embodiment, described device further include:
Receiving module, the first notice for receiving and being issued from clock according to downstream is by the time of the master clock port Sync message sends frequency and is adjusted to the second frequency, first notice are as follows: the downstream exists from the corresponding equipment of clock It is issued when determining the regularization condition for reaching preset time synchronization message transmission frequency;And/or
The second notice for receiving and being issued from clock according to downstream is by the time synchronization message of the master clock port It sends frequency and is adjusted to the third frequency, second notice are as follows: the downstream is from the corresponding equipment of clock in determining and institute It is issued when stating the corresponding equipment room synchronous abnormality in master clock port;
Correspondingly, the setup module, when being also used to equipment starting, by the time synchronization of the master clock port of the equipment It is the first frequency that message, which sends set of frequency,.
In one embodiment, the judging treatmenting module is also used to determine the equipment and the upstream master clock pair When the equipment room synchronous abnormality answered is eliminated, described second is reduced to from the time synchronization message of clock port transmission frequency by described Frequency;
Correspondingly, the sending module, is also used to notify the upstream according to the processing result of the judging treatmenting module Master clock is corresponding to be adjusted to the frequency from clock port sending time sync message.
In one embodiment, the receiving module is also used to the third notice for receiving and issuing according to downstream from clock The time synchronization message of the master clock port is sent into frequency and is adjusted to the second frequency, the third notice are as follows: described Downstream is issued from the corresponding equipment of clock when determining that equipment room synchronous abnormality corresponding with the master clock port is eliminated.
The embodiment of the invention also provides a kind of time synchronization messages to send the adaptive equipment of frequency, on which includes: Device described in text.
Time synchronization message provided in an embodiment of the present invention sends frequency self-adaption method, device and equipment, equipment starting When, it is first frequency that the time synchronization message of the slave clock port of the equipment, which is sent set of frequency,;Real-time detection and determination When the equipment reaches the regularization condition of preset time synchronization message transmission frequency, by the time synchronization from clock port It is second frequency that message, which sends set of frequency, and notifies the corresponding adjustment of the upstream master clock to when the transmission from clock port Between sync message frequency;Wherein, the first frequency be greater than the second frequency, the second frequency for the equipment with It is synchronous that other equipment carry out normal time;And/or equipment equipment room synchronous abnormality corresponding with the upstream master clock When, improve it is described send frequency to the third frequency from the time synchronization message of clock port, and when notifying that the upstream is main Clock is corresponding to be adjusted to the frequency from clock port sending time sync message;The third frequency is greater than second frequency Rate.Time synchronization message can be adjusted flexibly automatically and send frequency for the equipment of the embodiment of the present invention, both ensure that same when initialization Frequency is improved in time when walking rate of convergence and quality, and degrading;Meanwhile lower hair is used in normal synchronized work Packet frequency avoids occupying excessive link bandwidth and equipment process resource, flexible and efficient.As it can be seen that the embodiment of the present invention can with gram Clothes in the prior art give out a contract for a project the fixed bring synchronizing quality of frequency the problem of can not coordinating with synchronous occupancy resource by sync message.
Detailed description of the invention
In attached drawing (it is not necessarily drawn to scale), similar appended drawing reference can describe phase in different views As component.Similar reference numerals with different letter suffix can indicate the different examples of similar component.Attached drawing with example and Unrestricted mode generally shows each embodiment discussed herein.
Fig. 1 is existing 1588 time synchronization message interaction process schematic;
Fig. 2 is that time synchronization message described in the embodiment of the present invention sends frequency self-adaption method implementation flow chart;
Fig. 3 is the structural schematic diagram that time synchronization message described in the embodiment of the present invention sends frequency self-reacting device;
Fig. 4 is the structural schematic diagram that time synchronization message described in another embodiment of the present invention sends frequency self-reacting device.
Specific embodiment
Fig. 1 is existing 1588 time synchronization message interaction process schematic, and the t1 can be main equipment (with shadow master clock) Issue the time of synchronous (Sync) message, t2 can be time that Sync message is received from equipment (corresponding from clock), t3 can for from Equipment issues the time of time delay request (Delay_Req) message, and t4 can receive the time of Delay_Req message for main equipment.
In the embodiment of the present invention, when equipment starts, the time synchronization message of the slave clock port of the equipment is sent Set of frequency is first frequency;Real-time detection simultaneously determines that the equipment reaches the adjustment that preset time synchronization message sends frequency When condition, set of frequency is sent as second frequency from the time synchronization message of clock port by described, and notify the upstream master Clock is corresponding to be adjusted to the frequency from clock port sending time sync message;Wherein, the first frequency is greater than described Second frequency, the second frequency are synchronous with other equipment progress normal time for the equipment;And/or the equipment with When the corresponding equipment room synchronous abnormality of the upstream master clock, improves and described send frequency from the time synchronization message of clock port To the third frequency, and notify the corresponding adjustment of the upstream master clock to described from clock port sending time sync message Frequency;The third frequency is greater than the second frequency.
The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
Fig. 2 is that time synchronization message described in the embodiment of the present invention sends frequency self-adaption method implementation flow chart, such as Fig. 2 institute Show, comprising:
Step 201: when equipment starts, the time synchronization message of the slave clock port of the equipment, which is sent set of frequency, is First frequency;
Step 202: real-time detection simultaneously determines that the equipment reaches the adjustment item that preset time synchronization message sends frequency When part, when sending set of frequency from the time synchronization message of clock port by described as second frequency, and notifying that the upstream is main Clock is corresponding to be adjusted to the frequency from clock port sending time sync message;Wherein, the first frequency is greater than described the Two frequencies, the second frequency are synchronous with other equipment progress normal time for the equipment;
And/or
Step 203: when corresponding with the upstream master clock equipment room synchronous abnormality of the equipment, improving described from clock The time synchronization message of port sends frequency to third frequency, and notifies the corresponding adjustment of the upstream master clock to described from clock The frequency of port sending time sync message;The third frequency is greater than the second frequency.
Wherein, the preset time synchronization message sends the regularization condition of frequency, can are as follows:
The clock of the equipment and the reporting of upstream master clock are less than preset threshold;Alternatively,
The equipment reaches the time of setting, such as 10 minutes etc. in starting.
The size of first, second and third frequency can be configured according to practical application condition, such as system environments.
Time synchronization message can be adjusted flexibly automatically and send frequency for the equipment of the embodiment of the present invention, both ensure that initialization When synchronous rate of convergence and quality, and while degrading improve frequency in time;Meanwhile in normal synchronized work using lower Frequency of giving out a contract for a project, avoid occupying excessive link bandwidth and equipment process resource, it is flexible and efficient.As it can be seen that the embodiment of the present invention can With overcome sync message in the prior art give out a contract for a project the fixed bring synchronizing quality of frequency and it is synchronous occupy that resource can not coordinate ask Topic.
In the embodiment of the present invention, the reporting may be configured as OFFSET, indicate are as follows:
OFFSET=[(t2-t1)+(t3-t4)]/2, the t1 to t4 can be content described above.
In one embodiment, this method further include:
When equipment starts, it is described first that the time synchronization message of the master clock port of the equipment, which is sent set of frequency, Frequency;
It receives and the first notice issued according to downstream from clock sends the time synchronization message of the master clock port Frequency is adjusted to the second frequency;First notice are as follows: the downstream reaches default in determination from the corresponding equipment of clock Time synchronization message issue when sending the regularization condition of frequency;And/or
It receives and the second notice issued according to downstream from clock sends the time synchronization message of the master clock port Frequency is adjusted to the third frequency, second notice are as follows: the downstream is from the corresponding equipment of clock in the determining and master It is issued when the corresponding equipment room synchronous abnormality of clock port.
Wherein, the preset time synchronization message sends the regularization condition of frequency, can are as follows:
The downstream is less than preset threshold from the reporting of clock clock corresponding with the master clock port;Alternatively,
The downstream reaches the time of setting, such as 10 minutes etc. from the corresponding equipment of clock in starting.
In the embodiment of the present invention, the synchronous abnormality of the equipment room can include:
The absolute value of reporting between master-salve clock is greater than preset value or the fluctuation of the absolute value is greater than preset value; And/or
When physical layer frequency is lost or degrades, equipment room needs to carry out Frequency Synchronization based on time synchronization message;And/or
Time delay value between the master-salve clock being calculated is greater than preset value or the fluctuation of time delay value is greater than preset value.
The time delay value may be configured as Delay, indicate are as follows:
Delay=[(t2-t1)+(t4-t3)]/2, the t1 to t4 can be content described above.
In one embodiment, this method further include:
When corresponding with the upstream master clock equipment room synchronous abnormality of the equipment is eliminated, by described from clock port Time synchronization message sends frequency and is reduced to the second frequency, and notify the corresponding adjustment of the upstream master clock to it is described from when The frequency of clock port sending time sync message.
In one embodiment, this method further include:
It receives and the third notice issued according to downstream from clock sends the time synchronization message of the master clock port Frequency is adjusted to the second frequency, the third notice are as follows: the downstream is from the corresponding equipment of clock in the determining and master What clock port corresponding equipment room synchronous abnormality issued when eliminating.
In the embodiment of the present invention, the equipment notifies the corresponding adjustment of the upstream master clock to send to described from clock port The frequency of time synchronization message, comprising:
The equipment sends individual message to the upstream master clock and is notified;Alternatively,
The equipment carries the information of the frequency of the adjustment sending time sync message in original time synchronization message Extended byte or reserve bytes in.
In the embodiment of the present invention, the equipment receives the notice that downstream is issued from clock, comprising:
Receive the notice that downstream issues by way of sending independent message from clock;Alternatively,
The original time for receiving the information for carrying adjustment sending time sync message frequency that downstream is sent from clock is same Message is walked, carries the information in the extended byte or reserve bytes of the time synchronization message.
The embodiment of the invention also provides a kind of time synchronization messages to send frequency self-reacting device, as shown in figure 3, the dress Set includes: setup module 301, judging treatmenting module 302 and sending module 303;Wherein,
The setup module 301 sends out the time synchronization message of the slave clock port of the equipment when for equipment starting Sending set of frequency is first frequency;
The judging treatmenting module 302 for real-time detection and determines that the equipment reaches preset time synchronization message When sending the regularization condition of frequency, set of frequency is sent as second frequency from the time synchronization message of clock port by described;With/ Or,
When for determining corresponding with the upstream master clock equipment room synchronous abnormality of the equipment, improve described from clock The time synchronization message of port sends frequency to the third frequency;
The sending module 303, when for notifying that the upstream is main according to the processing result of the judging treatmenting module 302 Clock is corresponding to be adjusted to the frequency from clock port sending time sync message;
Wherein, the first frequency is greater than the second frequency, and the second frequency is used for the equipment and other equipment It is synchronous to carry out normal time;The third frequency is greater than the second frequency.
Time synchronization message can be adjusted flexibly automatically and send frequency for the equipment of the embodiment of the present invention, both ensure that initialization When synchronous rate of convergence and quality, and while degrading improve frequency in time;Meanwhile in normal synchronized work using lower Frequency of giving out a contract for a project, avoid occupying excessive link bandwidth and equipment process resource, it is flexible and efficient.As it can be seen that the embodiment of the present invention can With overcome sync message in the prior art give out a contract for a project the fixed bring synchronizing quality of frequency and it is synchronous occupy that resource can not coordinate ask Topic.
In the embodiment of the present invention, the sending module 303 notifies the corresponding adjustment of the upstream master clock to described from clock The frequency of port sending time sync message, comprising:
Individual message is sent to the upstream master clock to be notified;Alternatively,
The information of the frequency of the adjustment sending time sync message is carried and is extended in the TLV of original time synchronization message In byte.
In one embodiment, as shown in figure 4, described device further include:
Receiving module 304, the first notice for receiving and being issued from clock according to downstream is by the master clock port Time synchronization message sends frequency and is adjusted to the second frequency, first notice are as follows: the downstream is set from clock is corresponding For what is issued when determining the regularization condition for reaching preset time synchronization message transmission frequency;And/or
The second notice for receiving and being issued from clock according to downstream is by the time synchronization message of the master clock port It sends frequency and is adjusted to the third frequency, second notice are as follows: the downstream is from the corresponding equipment of clock in determining and institute It is issued when stating the corresponding equipment room synchronous abnormality in master clock port;
Correspondingly, the setup module 301, when being also used to equipment starting, by the time of the master clock port of the equipment It is the first frequency that sync message, which sends set of frequency,.
In the embodiment of the present invention, the receiving module 304 receives the notice that downstream is issued from clock, comprising:
Receive the notice that downstream issues by way of sending independent message from clock;Alternatively,
Receive the time synchronization that downstream carries the information of adjustment sending time sync message frequency from clock by sending The notice that the form of message issues carries the information in the TLV extended byte of the time synchronization message.
In one embodiment, the judging treatmenting module 302 is also used to determine the equipment and the upstream master clock When corresponding equipment room synchronous abnormality is eliminated, frequency is sent from the time synchronization message of clock port be reduced to described described the Two frequencies;
Correspondingly, the sending module 303, is also used to notify on described according to the processing result of the judging treatmenting module The corresponding adjustment of master clock is swum to the frequency from clock port sending time sync message.
In one embodiment, the receiving module 304, is also used to receive and the third issued according to downstream from clock is led to Know that the time synchronization message of the master clock port, which is sent frequency, is adjusted to the second frequency, the third notice are as follows: institute State what downstream was issued from the corresponding equipment of clock when determining that equipment room synchronous abnormality corresponding with the master clock port is eliminated.
The embodiment of the invention also provides a kind of time synchronization messages to send the adaptive equipment of frequency, on which includes: Time synchronization message described in text sends frequency self-reacting device.
Below with reference to a concrete application scene, the present invention will be described in detail, and implementation process includes the following steps:
Step 1: before equipment starting starts to synchronize, by the equipment master clock port and from the time of clock port Sync message sends frequency and is disposed as higher frequency F1;
Here, the F1 can be empirically configured according to factors such as system environments, such as: the F1 may be configured as 32Hz is greater than the transmission frequency of synchronous (Sync) message at present.Give out a contract for a project frequently in country's professional standard to 1588 messages default at present Rate is as shown in table 1.
Serial number Message name Default gives out a contract for a project frequency (Hz)
1 Sync 16
2 Delay_Req 1
3 Pdelay_Req 1
4 Announce 8
Table 1
Step 2: the equipment real-time detection is simultaneously being calculated with upstream master clock reporting OFFSET, really When determining OFFSET value and being reduced to threshold value δ or less, frequency is sent from the time synchronization message of clock port be adjusted to described F2;
Wherein, the OFFSET=[(t2-t1)+(t3-t4)]/2.
Here, when OFFSET value is reduced to threshold value δ or less, illustrate substantially synchronous with master clock from clock, tend to be steady Fixed, the time synchronization message that at this moment equipment reduces the slave clock port of the equipment automatically sends frequency and is less than to F2, the F2 The F1, and the F1 need to guarantee that the equipment can the normal time synchronization operation of equipment progress corresponding with master clock.
Step 3: the equipment informs that master clock reduces the transmission for being sent to time synchronization message of the equipment from clock port Frequency;
Specifically, can using from when clockwise master clock send individual message and inform, or taken from clock by the information Band is in the TLV extended byte of original time synchronization message.
Step 4: in the equipment running process, the decline of real-time detection synchronizing quality and abnormal conditions, when synchronizing When quality decline and abnormal conditions, equipment adjusts in real time from the time synchronization message of clock port and sends frequency, it may be assumed that described in raising Time synchronization message sends frequency to the F1, and inform the master clock of the equipment improve be sent to the equipment from clock port when Between sync message transmission frequency;
Specifically, can using from when clockwise master clock send individual message and inform, or taken from clock by the information Band is in the TLV extended byte of original sync message.
Wherein, the synchronizing quality decline and abnormal conditions include at least following situations:
A) the OFFSET absolute value is larger or the fluctuation of OFFSET absolute value is larger;
B) when physical layer frequency is lost or degrades, equipment room needs to carry out Frequency Synchronization based on 1588 messages;
C) it is larger that the Delay value being calculated fluctuates larger or Delay value.
Step 5: when the decline of equipment synchronizing quality or abnormal conditions have been eliminated, equipment adjust automatically reduces the time F2 when transmission frequency to the normal condition of sync message.
Time synchronization message can be adjusted flexibly automatically and send frequency for the equipment of the embodiment of the present invention, both ensure that initialization When synchronous rate of convergence and quality, and while degrading improve frequency in time;Meanwhile in normal synchronized work using lower Frequency of giving out a contract for a project, avoid occupying excessive link bandwidth and equipment process resource, it is flexible and efficient.As it can be seen that the embodiment of the present invention can With overcome sync message in the prior art give out a contract for a project the fixed bring synchronizing quality of frequency and it is synchronous occupy that resource can not coordinate ask Topic.
In addition, the embodiment of the present invention can be directly applied in Time Synchronization Network, and such as: it is each in Time Synchronization Network Class equipment, such as: OTN, PTN etc., transmission device do not need hardware modifications substantially, but can solve that rate is adjusted flexibly asks Topic improves synchronizing quality.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (12)

1. a kind of time synchronization message sends frequency self-adaption method, which is characterized in that this method comprises:
When equipment starts, it is first frequency that the time synchronization message of the slave clock port of the equipment, which is sent set of frequency,;It is real When detecting and determining that the equipment reaches preset time synchronization message and sends the regularization condition of frequency, will be described from clock end Mouthful time synchronization message to send set of frequency be second frequency, and notify the corresponding adjustment of the upstream master clock to it is described from when The frequency of clock port sending time sync message;The preset time synchronization message sends the regularization condition of frequency, are as follows: it is described The clock of equipment and the reporting of upstream master clock are less than preset threshold;Alternatively, the equipment reaches setting in starting Time;
Wherein, the first frequency is greater than the second frequency, and the second frequency is carried out for the equipment and other equipment Normal time is synchronous;The first frequency is greater than the transmission frequency of synchronous Sync message;And/or
When corresponding with the upstream master clock equipment room synchronous abnormality of the equipment, it is same to improve the time from clock port It walks message and sends frequency to third frequency, and notify the corresponding adjustment of the upstream master clock to described from clock port sending time The frequency of sync message;The third frequency is greater than the second frequency.
2. the method according to claim 1, wherein this method further include:
When equipment starts, it is first frequency that the time synchronization message of the master clock port of the equipment, which is sent set of frequency, Rate;
It receives and the time synchronization message of the master clock port is sent frequency by the first notice issued according to downstream from clock It is adjusted to the second frequency;First notice are as follows: the downstream is from the corresponding equipment of clock when determination reaches preset Between sync message issue when sending the regularization condition of frequency;And/or
It receives and the time synchronization message of the master clock port is sent frequency by the second notice issued according to downstream from clock It is adjusted to the third frequency, second notice are as follows: the downstream is from the corresponding equipment of clock in the determining and master clock It is issued when the corresponding equipment room synchronous abnormality in port.
3. method according to claim 1 or 2, which is characterized in that the synchronous abnormality of the equipment room includes:
The absolute value of reporting between master-salve clock is greater than preset value or the fluctuation of the absolute value is greater than preset value;With/ Or,
When physical layer frequency is lost or degrades, equipment room needs to carry out Frequency Synchronization based on time synchronization message;And/or
Time delay value between the master-salve clock being calculated is greater than preset value or the fluctuation of time delay value is greater than preset value.
4. the method according to claim 1, wherein this method further include:
When equipment equipment room synchronous abnormality corresponding with the upstream master clock is eliminated, by the time from clock port Sync message sends frequency and is reduced to the second frequency, and notifies the corresponding adjustment of the upstream master clock to described from clock end The frequency of mouth sending time sync message.
5. according to the method described in claim 2, it is characterized in that, this method further include:
It receives and the time synchronization message of the master clock port is sent frequency by the third notice issued according to downstream from clock It is adjusted to the second frequency, the third notice are as follows: the downstream is from the corresponding equipment of clock in the determining and master clock What the corresponding equipment room synchronous abnormality in port issued when eliminating.
6. the method according to claim 1, wherein the equipment notify the corresponding adjustment of the upstream master clock to The frequency from clock port sending time sync message, comprising:
The equipment sends individual message to the upstream master clock and is notified;Alternatively,
The information of the frequency of the adjustment sending time sync message is carried the expansion in original time synchronization message by the equipment It opens up in byte or reserve bytes.
7. method according to claim 2 or 5, which is characterized in that the equipment receives the notice that downstream is issued from clock, Include:
Receive the notice that downstream issues by way of sending independent message from clock;Alternatively,
Receive the original time synchronization report for the information for carrying adjustment sending time sync message frequency that downstream is sent from clock Text carries the information in the extended byte or reserve bytes of the time synchronization message.
8. a kind of time synchronization message sends frequency self-reacting device, which is characterized in that the device includes: setup module, judgement Processing module and sending module;Wherein,
The time synchronization message of the slave clock port of the equipment is sent frequency when for equipment starting by the setup module It is set as first frequency;The first frequency is greater than the transmission frequency of synchronous Sync message;
The judging treatmenting module for real-time detection and determines that the equipment reaches preset time synchronization message and sends frequency Regularization condition when, by it is described from the time synchronization message of clock port send set of frequency be second frequency;And/or
When for determining corresponding with the upstream master clock equipment room synchronous abnormality of the equipment, improve described from clock port Time synchronization message send frequency to third frequency;
The sending module, for notifying the corresponding adjustment of the upstream master clock according to the processing result of the judging treatmenting module To the frequency from clock port sending time sync message;
Wherein, the first frequency is greater than the second frequency, and the second frequency is carried out for the equipment and other equipment Normal time is synchronous;The third frequency is greater than the second frequency;The preset time synchronization message sends the tune of frequency Shelf-regulating Conditions, are as follows: the clock of the equipment and the reporting of upstream master clock are less than preset threshold;Alternatively, the equipment exists Starting reaches the time of setting.
9. device according to claim 8, which is characterized in that described device further include:
Receiving module, the first notice for receiving and being issued from clock according to downstream is by the time synchronization of the master clock port Message sends frequency and is adjusted to the second frequency, first notice are as follows: the downstream is from the corresponding equipment of clock in determination It is issued when reaching the regularization condition of preset time synchronization message transmission frequency;And/or
For receiving and the second notice issued according to downstream from clock sends the time synchronization message of the master clock port Frequency is adjusted to the third frequency, second notice are as follows: the downstream is from the corresponding equipment of clock in the determining and master It is issued when the corresponding equipment room synchronous abnormality of clock port;
Correspondingly, the setup module, when being also used to equipment starting, by the time synchronization message of the master clock port of the equipment Transmission set of frequency is the first frequency.
10. device according to claim 8, which is characterized in that the judging treatmenting module is also used to determine the equipment When equipment room synchronous abnormality corresponding with the upstream master clock is eliminated, sent described from the time synchronization message of clock port Frequency is reduced to the second frequency;
Correspondingly, the sending module, when being also used to notify that the upstream is main according to the processing result of the judging treatmenting module Clock is corresponding to be adjusted to the frequency from clock port sending time sync message.
11. device according to claim 9, which is characterized in that the receiving module, be also used to receive and according to downstream from The time synchronization message of the master clock port is sent frequency and is adjusted to the second frequency, institute by the third notice that clock issues State third notice are as follows: the downstream is determining equipment room synchronous different corresponding with the master clock port from the corresponding equipment of clock It is issued when often eliminating.
12. a kind of time synchronization message sends the adaptive equipment of frequency, which is characterized in that the equipment includes: claim 8-11 Any one of described in device.
CN201510210491.7A 2015-04-29 2015-04-29 A kind of time synchronization message sends frequency self-adaption method, device and equipment Active CN106209337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510210491.7A CN106209337B (en) 2015-04-29 2015-04-29 A kind of time synchronization message sends frequency self-adaption method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510210491.7A CN106209337B (en) 2015-04-29 2015-04-29 A kind of time synchronization message sends frequency self-adaption method, device and equipment

Publications (2)

Publication Number Publication Date
CN106209337A CN106209337A (en) 2016-12-07
CN106209337B true CN106209337B (en) 2019-10-15

Family

ID=57457521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510210491.7A Active CN106209337B (en) 2015-04-29 2015-04-29 A kind of time synchronization message sends frequency self-adaption method, device and equipment

Country Status (1)

Country Link
CN (1) CN106209337B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110649984B (en) * 2019-09-26 2021-01-22 北京和利时系统工程有限公司 Clock synchronization method and device, computer storage medium and electronic equipment
CN111314008B (en) * 2020-02-11 2022-08-09 中国银联股份有限公司 Clock synchronization method and system
CN114173367B (en) * 2021-12-23 2023-11-03 烽火通信科技股份有限公司 Time synchronization path protection method, device and readable storage medium
CN114615178B (en) * 2022-03-16 2024-02-13 北京轻网科技股份有限公司 Link quality detection method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605027B (en) * 2009-07-13 2011-11-16 杭州华三通信技术有限公司 Method and device for synchronizing packet sending intervals
CN103051406B (en) * 2011-10-17 2017-02-08 中兴通讯股份有限公司 Clock synchronization method and system in 1588-2008 protocol
CN102377673B (en) * 2011-11-04 2014-08-06 华为技术有限公司 Message sending method and sensing equipment
CN103428716B (en) * 2012-05-17 2018-08-03 中兴通讯股份有限公司 Dynamic adjusts the method and device of PTP message rate
CN103546824A (en) * 2013-10-25 2014-01-29 中国科学院声学研究所 Method and device for controlling sending rate of streaming media

Also Published As

Publication number Publication date
CN106209337A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US20210160803A1 (en) Clock Synchronisation Between Devices Using Message Timestamps
CN106209337B (en) A kind of time synchronization message sends frequency self-adaption method, device and equipment
US8817823B2 (en) Method and device for time synchronization
CN103067113B (en) Method and the device of PTP time synchronized is realized based on aggregated links
CN102769504B (en) A kind of 1588 systems and realize synchronous method
WO2017101528A1 (en) Method and device for clock link switching and base station
US20160156427A1 (en) Clock recovery in a packet based network
US8565270B2 (en) Phase and frequency re-lock in synchronous ethernet devices
JPWO2018221238A1 (en) Wireless device and wireless device processing method
CN107579793A (en) The optimization method of time synchronized, device and equipment between a kind of communication network device
JP5656305B1 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
EP3352392B1 (en) Time synchronization packet processing method and device
CN107947888B (en) A kind of task level synchronous method based on network communication
CN101741853A (en) Method for synchronizing clock time, line card veneer and network equipment
CN106130859A (en) A kind of industry internet field layer wideband bus configuration management implementation method
JP2017512406A (en) System and method for time adjustment in a time synchronous channel hopping network
CN104092528A (en) Clock synchronization method and device
CN107959537B (en) State synchronization method and device
US10524069B1 (en) System for configuring distribution of audio data to devices based on connection status
CN103259639B (en) A kind of clock synchronizing method of stack equipment and equipment
CN103441810A (en) Ethernet frequency synchronization method and device for multiple time domains
CN102201910A (en) Method for adjusting frequency based on IEEE1588 (institute of electrical and electronic engineers) protocol and network device
CN106034347B (en) A kind of wireless telecommunications management method and device
JP6566205B2 (en) Communication apparatus and communication system
TWI629911B (en) Synchronous signal transmission path adaptive change system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant