CN107566069B - Processing method for declaration message, obtaining method for clock source and transmission equipment - Google Patents

Processing method for declaration message, obtaining method for clock source and transmission equipment Download PDF

Info

Publication number
CN107566069B
CN107566069B CN201610505913.8A CN201610505913A CN107566069B CN 107566069 B CN107566069 B CN 107566069B CN 201610505913 A CN201610505913 A CN 201610505913A CN 107566069 B CN107566069 B CN 107566069B
Authority
CN
China
Prior art keywords
source
clock
frequency
grade
field
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
CN201610505913.8A
Other languages
Chinese (zh)
Other versions
CN107566069A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610505913.8A priority Critical patent/CN107566069B/en
Publication of CN107566069A publication Critical patent/CN107566069A/en
Application granted granted Critical
Publication of CN107566069B publication Critical patent/CN107566069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a processing method for declaring a message, an acquisition method for a clock source and transmission equipment, wherein the acquisition method for the clock source comprises the following steps: receiving an announcement message, and acquiring the level information of a frequency source level field and a time source level field in the announcement message; and obtaining the grade of a network element clock according to the grade information, and obtaining a clock source according to the grade of the network element clock. The scheme provided by the invention obtains the frequency source grade and the time source grade from the declaration message, obtains the grade number (network element clock grade) for selecting the optimal main clock, and obtains the clock source according to the grade number, wherein the clock source is not only the frequency optimal source but also the time optimal source, and can be the frequency source of the network element and also the time source of the network element.

Description

Processing method for declaration message, obtaining method for clock source and transmission equipment
Technical Field
The present invention relates to the technical field of 1588 frequency synchronization and phase synchronization, and in particular, to a method for processing an announcement message, a method for acquiring a clock source, and a transmission device.
Background
The 1588 protocol (a precision clock synchronization protocol standard of a network measurement and control system) supports three synchronization modes: only frequency synchronization, only time synchronization and time frequency synchronization, wherein 1588 is only in a time synchronization mode, and means that other physical clocks are used for frequency synchronization, and a 1588 protocol is used for realizing time synchronization. The 1588 protocol Master-slave link establishment is based on a clock quality field in an Announce (Announce) message, and in the application of a telecommunication network 1588, only frequency synchronization is defined, only a time synchronization announcing Announce message clock quality filling mode and a Master clock Master mode are selected, but only the frequency synchronization and only the time synchronization can be used independently, and conflicts exist during time and frequency synchronization. A method of compatible time frequency synchronization is described.
According to the telecommunication summarization G.8265.1 of the frequency-synchronous precision time protocol, clock quality grade ClockClass fields in an Announce message are respectively set to be 80,82,84 and 86 when clock sources with the locking grades of 2,4,8 and 11 are locked; when a plurality of frequency sources exist, an optimal frequency and an optimal time source are selected according to the clock quality level.
According to g.8275.1, clock qualities in an Announce message only with frequency synchronization and an Announce message only with time synchronization are incompatible, so that when an upstream time source is locked and the frequency is locked, the clock quality class ClockClass is set to 6, and at this time, it is not distinguished which class of clock source is the frequency source, then a downstream network element wants to use the 1588 message for both frequency modulation and phase modulation, there is no way to distinguish how many clock (Master clock) classes of the Master are, so that the network element cannot select the 1588 source as the frequency source, only one other physical clock can be selected as the frequency source, and the 1588 source is the time source, if the frequency class of the 1588 source is very high, the network element does not select the source with the highest class of time frequency because the network element is unknown to the information, further resulting in that the frequency index of the network element cannot meet the requirement.
Disclosure of Invention
The invention aims to provide a processing method for declaring a message, an acquisition method for a clock source and transmission equipment, which solve the problem that a 1588 source cannot be used as a frequency source and a time source at the same time in a telecommunication network in the prior art.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a method for processing an announcement packet, including:
acquiring a current frequency source and a current time source;
and respectively filling a frequency source grade field and a time source grade field in an announcement message according to the current frequency source and the current time source, and issuing the announcement message.
Optionally, the step of acquiring the current frequency source and the current time source includes:
and acquiring the current frequency source from the alternative frequency source according to the frequency quality.
Optionally, the step of obtaining the current frequency source from the alternative frequency source according to the frequency quality includes:
arranging the alternative frequency sources according to the sequence of the frequency quality from small to large;
acquiring the alternative frequency source ranked first as the current frequency source.
Optionally, the step of filling in the announcement message respectively the frequency source level field and the time source level field according to the current frequency source and the current time source includes:
and adding and filling the frequency source grade field in the tail part or the reserved field of the announcement message according to the frequency quality of the current frequency source.
The present invention also provides a transmission device, comprising:
the acquisition module is used for acquiring a current frequency source and a current time source;
and the first processing module is used for respectively filling a frequency source grade field and a time source grade field in an announcement message according to the current frequency source and the current time source and issuing the announcement message.
Optionally, the first processing module includes:
and the filling submodule is used for adding and filling the frequency source grade field in the tail part or the reserved field of the announcement message according to the frequency quality of the current frequency source.
The invention also provides a method for acquiring the clock source, which comprises the following steps:
receiving an announcement message, and acquiring the level information of a frequency source level field and a time source level field in the announcement message;
and obtaining the grade of a network element clock according to the grade information, and obtaining a clock source according to the grade of the network element clock.
Optionally, the step of obtaining the network element clock level according to the level information includes:
and matching preset data information by using the grade information to obtain the clock grade of the network element.
Optionally, the step of obtaining a clock source according to the network element clock level includes:
arranging the network element clock grades according to the grade sequence from high grade to low grade;
and acquiring the network element clock grade ranked at the first position, wherein the corresponding network element clock is used as the clock source.
Optionally, the step of obtaining a clock source according to the network element clock level further includes:
and when the network element clock levels ranked at the first place and the corresponding network element clocks are multiple, acquiring the clock source according to the priority of each network element clock.
Optionally, the method further includes:
updating the network element clock grade to an announcement message data set of a main clock port maintained by the transmission equipment;
and constructing and issuing a message according to the announcement message data set and the frequency source level field.
Optionally, the step of receiving the announcement message and obtaining the level information of the frequency source level field and the time source level field in the announcement message includes:
receiving synchronous mode configuration information;
configuring the transmission equipment into a time frequency synchronization mode according to the synchronization mode configuration information;
receiving an announcement message, and acquiring the level information of a frequency source level field and a time source level field in the announcement message.
The present invention also provides a transmission device, comprising:
the second processing module is used for receiving the declaration message and acquiring the grade information of the frequency source grade field and the time source grade field in the declaration message;
and the third processing module is used for obtaining the grade of the network element clock according to the grade information and obtaining a clock source according to the grade of the network element clock.
Optionally, the third processing module includes:
and the first processing submodule is used for matching preset data information by utilizing the grade information to obtain the network element clock grade.
Optionally, the method further includes:
the updating module is used for updating the network element clock grade to the declaration message data set of the main clock port maintained by the transmission equipment;
and the fourth processing module is used for constructing and issuing the message according to the declaration message data set and the frequency source grade field.
The technical scheme of the invention has the following beneficial effects:
in the above scheme, the method for obtaining a clock source obtains the frequency source level and the time source level from the announcement message, obtains the number of levels (network element clock level) for selecting the optimal master clock, and obtains the clock source according to the number of levels, where the clock source is both a frequency-optimal source and a time-optimal source, and may be both a frequency source and a time source of the network element.
Drawings
Fig. 1 is a flowchart illustrating a processing method of an announcement message according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of a clock source obtaining method according to a second embodiment of the present invention;
FIG. 3 is a diagram illustrating a source selection of a frequency source-less rank field in the prior art;
FIG. 4 is a schematic diagram of a source selection having a frequency source rank field according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a transmission device according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a transmission device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The invention provides various solutions for solving the problem that the 1588 source can not be used as a frequency source and a time source simultaneously in the prior art in a telecommunication network, and the method comprises the following specific steps:
example one
As shown in fig. 1, a method for processing an announcement packet according to an embodiment of the present invention includes:
step 11: acquiring a current frequency source and a current time source;
step 12: and respectively filling a frequency source grade field and a time source grade field in an announcement message according to the current frequency source and the current time source, and issuing the announcement message.
In the method for processing the announcement message provided in the embodiment of the present invention, the frequency source level field and the time source level field are filled in the announcement message, so that a network element receiving the message can know the frequency source level while knowing the time source level, and further select a source with the highest time frequency level.
Specifically, the step of acquiring the current frequency source and the current time source includes: and acquiring the current frequency source from the alternative frequency source according to the frequency quality.
More specifically, the step of obtaining the current frequency source from the alternative frequency source according to the frequency quality includes: arranging the alternative frequency sources according to the sequence of the frequency quality from small to large; acquiring the alternative frequency source ranked first as the current frequency source.
Preferably, the step of filling in the announcement message the frequency source ranking field and the time source ranking field according to the current frequency source and the current time source respectively includes: and adding and filling the frequency source grade field in the tail part or the reserved field of the announcement message according to the frequency quality of the current frequency source.
The frequency source class may be obtained according to the frequency quality matching of the current frequency source, and the frequency source class is filled in the frequency source class field.
The method for processing the announcement message according to the embodiment of the present invention is further described below, taking an execution subject as an optimal clock GrandMaster network element (GM network element, transmission device) as an example.
Firstly, the optimal clock GrandMaster network element selects one frequency source according to the SSM quality (frequency quality) among all the alternative frequency sources, that is, if the network element has two physical frequency sources Ref1, Ref2, the quality is QL1, QL2, wherein QL1< QL2, the GrandMaster selects Ref1 as the current frequency source (the value is small and represents high quality).
Then, after selecting a frequency source, the GrandMaster network element adds a field frequency clock class (frequency clock quality class/frequency source class) to the tail of the Announce message (Announce message) or the reserved field (reserved field) to indicate the frequency clock class QL1 of the network element. The GrandMaster network element fills ClockClass in the Annouce message and marks the time source level (the source level and the field filling have a corresponding relationship, which is consistent with the prior art and is not described herein again).
Wherein, the tail part or the reserve field of the Announce message is two positions in the Announce message, and any one position can be selected.
The setting rule of the frequencycockclass class (according to the preset corresponding relationship) is as follows:
Figure BDA0001037053090000051
Figure BDA0001037053090000061
example two
As shown in fig. 2, the method for obtaining a clock source provided by the second embodiment of the present invention includes:
step 21: receiving an announcement message, and acquiring the level information of a frequency source level field and a time source level field in the announcement message;
step 22: and obtaining the grade of a network element clock according to the grade information, and obtaining a clock source according to the grade of the network element clock.
The method for acquiring a clock source according to the second embodiment of the present invention acquires the frequency source level and the time source level from the announcement message, acquires the number of levels (network element clock level) for selecting the optimal master clock, and acquires the clock source according to the number of levels, where the clock source is both the frequency-optimal source and the time-optimal source, and may be both the frequency source and the time source of the network element.
Wherein the step of obtaining the level information of the frequency source level field and the time source level field in the announcement message comprises: analyzing a frequency source grade field and a time source grade field in the announcement message; and acquiring the grade information.
Specifically, the step of obtaining the network element clock level according to the level information includes: and matching preset data information by using the grade information to obtain the clock grade of the network element.
The preset data information is obtained by utilizing the corresponding relation between the grade information and the grade of the network element clock, and the corresponding relation is correspondingly set according to the grade.
Preferably, the step of obtaining a clock source according to the network element clock level includes: arranging the network element clock grades according to the grade sequence from high grade to low grade; and acquiring the network element clock grade ranked at the first position, wherein the corresponding network element clock is used as the clock source.
It can also be said that the network element clock with the smaller value of the network element clock level is selected as the clock source.
Further, the step of obtaining a clock source according to the network element clock level further includes: and when the network element clock levels ranked at the first place and the corresponding network element clocks are multiple, acquiring the clock source according to the priority of each network element clock.
That is, when the network element clocks are in the same level, the clock source is selected according to the priority of each network element clock. And in consideration of actual conditions, acquiring a network element clock with high priority as the clock source.
In the embodiment of the present invention, the obtaining method further includes: updating the network element clock grade to an announcement message data set of a main clock port maintained by the transmission equipment (network element); and constructing and issuing a message according to the announcement message data set and the frequency source level field.
The step of receiving the announcement message and acquiring the level information of the frequency source level field and the time source level field in the announcement message includes: receiving synchronous mode configuration information; configuring the transmission equipment (network element) into a time frequency synchronization mode according to the synchronization mode configuration information; receiving an announcement message, and acquiring the level information of a frequency source level field and a time source level field in the announcement message.
In fact, in the time frequency synchronization mode, an announcement message having a frequency source level field and a time source level field is received.
In practical applications, the step of obtaining the level information of the frequency source level field and the time source level field in the announcement message includes: distributing the declaration message to a corresponding port of the transmission equipment (network element) according to a source port field in the declaration message; and analyzing the declaration message by using the port, and extracting frequency source grade information, time source grade information and network element clock priority information.
Correspondingly, the step of obtaining a clock source according to the network element clock level includes: comparing the network element clock grades of the same category by using the ports to obtain preliminary network element clock grades of each category; comparing the preliminary network element clock grades of all categories to obtain a target network element clock grade; and obtaining the clock source according to the target network element clock grade.
The following further describes the method for obtaining the clock source provided in the second embodiment of the present invention, taking the execution subject as a downstream boundary clock BC network element (transmission device) as an example.
Firstly, a downstream boundary clock BC network element receives a synchronization mode configuration, wherein the synchronization mode includes: frequency synchronization, time frequency synchronization. It may be a user configuration, and this BC device receives the configuration.
And then, after receiving the Announce message, the BC network element in the downstream time frequency synchronization mode analyzes a frequency source level frequency ClockClass field and a clock level ClockClass field.
Where the clock level is here actually the level of the time source. To be compatible with the existing standard, the CLockClass field in the existing standard is used.
Then, the BC generates, according to the obtained frequency class and time class fields and according to the rules in the following table, a clock class for selecting a clock source, which is denoted as necockclass (the optimal source is selected according to the clock class, the smaller the clock class is, the better the clock class is), and the specific method (obtaining the network element clock class according to the frequency class and the clock class) is as shown in the following table (correspondingly set according to the size relationship):
FrequencyClockClass ClockClass NeClockClass
84 6 2
90 6 3
96 6 4
104 6 5
110 165 165
84 7 7
90 7 7
96 7
104
110
the NeClockClass updates to a Master data set parentDS, grandmaster _ clockQuality (declaration message data set) maintained by the network element, and the Master (any Master port of the BC) is a sender sending an Annouce message.
Then, the downstream BC network element executes the existing 1588BMC algorithm, and whether frequency synchronization, time synchronization or time frequency synchronization is performed, the best 1588Master is selected according to the grade of the data set parentDS, grandmaster _ clockQuality, if the grades are the same, the optimal clock is determined according to the priority of each source, and the selected 1588Master is the 1588 source with the optimal frequency and the optimal time source.
The above mentioned clockQuality is a data set, which includes ClockClass, and the ClockClass is superior when it is small.
When the BC network element sends an Announce message to the downstream, the grandmaster ClockQuality.ClockClass carried in the message is the grandmaster ClockQuality.ClockClass and Frequency ClockClass in the Announce message of the 1588 source selected in the above steps. Carrying clock source and frequency source information.
The scheme provided by the embodiment of the present invention is further described below with reference to two parties (a GM network element and a BC network element).
In summary, in the embodiment of the present invention, fields are added to a message sent by a 1588Master side (Master clock side, GM network element) to indicate quality of a frequency source and quality of a time source, and a level number for selecting an optimal Master clock is combined on the 1588Slave side (Slave clock side, BC network element) according to the fields, where a source selected from all 1588 masters is a Master with both an optimal frequency (best clock quality) and an optimal time (best clock quality), and the Master may be both a frequency source of a network element and a time source of the network element.
Taking PTP (precision time protocol) master clock selection as an example, the scheme provided by the present invention is as follows:
(1) and selecting a frequency source with high quality (QL value is small and represents high quality) by the GrandMaster according to the quality QL of the SSM.
(2) And the GrandMaster sets a frequency ClockClass and a ClockClass of the Annouce message respectively according to the frequency source level and the time source level and sends the Annouce message to the downstream (connected BC network element).
(3) The BC network element receives the Annouce message and distributes the message to each 1588 port example (including Master port and Slave port):
matching according to a source port field in the message and target ports of all PTP ports on the BC network element, and if the source port in the message is consistent with the target port of a certain PTP port, sending the message to the PTP port for processing;
the PTP port, among others, is logical and not actual physical. There may be multiple PTP instances, i.e. logical ports, on one physical port.
(4) The Annuuce message is analyzed by the 1588 port example of the BC network element, and some data (including information such as clock quality, priority, clock movement and the like) required for selecting a clock source are extracted.
(5) The Slave port example performs data comparison (processing and comparing field information which indicates clock quality and is carried in the Announce message) according to information in the Announce message sent by each Master, and selects the optimal Master (selecting the optimal Master in the same category and then selecting the optimal Master in multiple categories).
The Slave here is a state. Each PTP port has a status, which may be configured by a user or calculated by the BC network element according to the BMC algorithm.
(6) And the Master port instance on the BC constructs a message according to the information in the selected optimal Master message and sends the message to the downstream (connected network element).
From the above, the BC Slave instance can select the optimal PTP Master source whether frequency synchronization, time synchronization, or time and frequency synchronization is performed through the PTP protocol.
The following description is continued by way of example.
As shown in fig. 3 and 4, the BC network element is a frequency time synchronization network element, and when a plurality of frequency sources (including building integrated timing source BITS frequency source, 1588 source frequency source and synchronous ethernet SyncE frequency source) are received, as shown in fig. 3, the BC cannot select the best frequency time source without the frequencycockclass field (in the prior art). After the scheme provided by the invention is adopted (the frequency ClockClass field is added), the optimal frequency time source can be selected, as shown in FIG. 4; the specific selection process is as follows:
(1) the grandMaster network element has a frequency source with QL2, and selects this source as the network element frequency source, at this time, the downstream sends a frequency ClockClass field with frequency 84 in the Announce message, the QL representing its frequency source is 2, the ClockClass is 6, and the GPS (high quality clock source) is tracked.
(2) The BC network element is a frequency time synchronization network element and is provided with 3 1588 port instances, wherein the port instance 1 receives an Announce message from a GrandMaster, extracts frequency ClockClass 80 and ClockClass 6 in the message, and then integrates the frequency ClockClass 84 and ClockClass 6 to calculate NeClockClass 2.
(3) In port instance 3, messages of frequencycockclass ═ 90 and ClockClass ═ 6 are received, and after extracting the corresponding fields, frequencycockclass ═ 84 and ClockClass ═ 6 are integrated to calculate necockclass ═ 3.
(6) Setting any port example, comparing NeClockClass corresponding to each port example, selecting PTP Master corresponding to port example 1 as best Master, and recording QL of the best Master as 2.
(7) The optimal Master can be used as a system clock of the BC network element, and when Announce is sent downstream, frequency ClockClass is 84 and 6 are brought to the downstream.
In summary, the scheme provided by the embodiment of the present invention can implement that the 1588 source simultaneously serves as a frequency source and a time source in the telecommunication network, and solve the problem that the frequency index of the network element in the prior art cannot meet the requirement.
EXAMPLE III
As shown in fig. 5, a transmission device provided in the third embodiment of the present invention includes:
an obtaining module 51, configured to obtain a current frequency source and a current time source;
the first processing module 52 is configured to fill a frequency source class field and a time source class field in an announcement message according to the current frequency source and the current time source, and issue the announcement message.
The transmission device provided by the third embodiment of the present invention enables the network element receiving the packet to know the frequency source level while knowing the time source level by filling the frequency source level field and the time source level field in the announcement packet, and further selects the source with the highest time frequency level.
Specifically, the obtaining module includes: and the first acquisition submodule is used for acquiring the current frequency source from the alternative frequency source according to the frequency quality.
More specifically, the first obtaining sub-module includes: the arranging unit is used for arranging the alternative frequency sources according to the sequence of the frequency quality from small to large; an obtaining unit, configured to obtain the candidate frequency source ranked first as the current frequency source.
Preferably, the first processing module includes: and the filling submodule is used for adding and filling the frequency source grade field in the tail part or the reserved field of the announcement message according to the frequency quality of the current frequency source.
The filling sub-module may be configured to obtain a frequency source class according to the frequency quality matching of the current frequency source, and fill the frequency source class in the frequency source class field.
The implementation embodiments of the method for processing the announcement message are all applicable to the embodiment of the transmission device, and the same technical effect can be achieved.
Example four
As shown in fig. 6, a transmission device provided in the fourth embodiment of the present invention includes:
the second processing module 61 is configured to receive the announcement message, and obtain level information of a frequency source level field and a time source level field in the announcement message;
and a third processing module 62, configured to obtain a network element clock level according to the level information, and obtain a clock source according to the network element clock level.
The transmission device provided in the fourth embodiment of the present invention obtains the frequency source level and the time source level from the announcement message, obtains the number of levels (network element clock level) for selecting the optimal master clock, and obtains the clock source according to the number of levels, where the clock source is both the frequency-optimal source and the time-optimal source, and may be both the frequency source and the time source of the network element.
Wherein the third processing module comprises: and the first processing submodule is used for matching preset data information by utilizing the grade information to obtain the network element clock grade.
The preset data information is obtained by utilizing the corresponding relation between the grade information and the grade of the network element clock, and the corresponding relation is correspondingly set according to the grade.
Specifically, the third processing module includes: the arrangement submodule is used for arranging the network element clock grades according to the order of the grades from high to low; and the second obtaining submodule is used for obtaining the network element clock grade ranked at the first position, and the corresponding network element clock is used as the clock source.
The third processing module is specifically configured to select a network element clock with a smaller value of the network element clock level as the clock source.
Further, the third processing module further comprises: and the third obtaining submodule is used for obtaining the clock source according to the priority of each network element clock when the network element clock ranked at the first place has a plurality of corresponding network element clocks.
That is to say, the third processing module is specifically configured to select the clock source according to the priority of each network element clock when the network element clocks are of the same rank. And in consideration of actual conditions, acquiring a network element clock with high priority as the clock source.
In this embodiment of the present invention, the transmission device further includes: the updating module is used for updating the network element clock grade to an announcement message data set of a main clock port maintained by the transmission equipment (network element); and the fourth processing module is used for constructing and issuing the message according to the declaration message data set and the frequency source grade field.
Wherein the second processing module comprises: the receiving submodule is used for receiving the configuration information of the synchronous mode; a configuration submodule, configured to configure the transmission device (network element) into a time-frequency synchronization mode according to the synchronization mode configuration information; and the second processing submodule is used for receiving the declaration message and acquiring the grade information of the frequency source grade field and the time source grade field in the declaration message.
In fact, the second processing module is specifically configured to receive, in the time-frequency synchronization mode, an announcement packet having a frequency source level field and a time source level field.
The implementation embodiments of the above-mentioned clock source obtaining method are all applicable to the embodiment of the transmission device, and can achieve the same technical effect.
The transmission device mentioned in the embodiment of the present invention may be any device supporting the PTP protocol, such as a switch, a router, or other similar devices, which is not limited herein.
It should be noted that many of the functional components described in this specification are referred to as modules/sub-modules in order to more particularly emphasize their implementation independence.
In embodiments of the invention, the modules/sub-modules may be implemented in software for execution by various types of processors. An identified module of executable code may, for instance, comprise one or more physical or logical blocks of computer instructions which may, for instance, be constructed as an object, procedure, or function. Nevertheless, the executables of an identified module need not be physically located together, but may comprise disparate instructions stored in different bits which, when joined logically together, comprise the module and achieve the stated purpose for the module.
Indeed, a module of executable code may be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs, and across several memory devices. Likewise, operational data may be identified within the modules and may be embodied in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations including over different storage devices, and may exist, at least partially, merely as electronic signals on a system or network.
When a module can be implemented by software, considering the level of existing hardware technology, a module implemented by software may build a corresponding hardware circuit to implement a corresponding function, without considering cost, and the hardware circuit may include a conventional Very Large Scale Integration (VLSI) circuit or a gate array and an existing semiconductor such as a logic chip, a transistor, or other discrete components. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices or the like.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (13)

1. A method for processing an announcement message, comprising:
the clock source obtains a current frequency source from an announcement message from an upstream clock source so as to perform frequency synchronization with the upstream clock source by using the current frequency source, and obtains a current time source from the announcement message from the upstream clock source so as to perform time synchronization with the upstream clock source by using the current time source;
the clock source fills frequency source grade fields in the declaration message to be sent according to the frequency quality of the current frequency source;
the clock source fills a clock grade field in the declaration message to be sent according to the current time source;
the clock source sends the announcement message to be sent with the filled frequency source level field and the filled clock level field to downstream transmission equipment, so that the downstream transmission equipment performs time synchronization with the clock source according to the clock level field in the announcement message and performs frequency synchronization with the clock source according to the frequency source level field in the announcement message when determining that the clock source is the clock source with the optimal time and the optimal frequency according to the clock level field and the frequency source level field in the announcement message.
2. The processing method according to claim 1, wherein the step of filling a frequency source class field in the announcement message to be sent according to the frequency quality of the current frequency source comprises:
and adding and filling the frequency source grade field in the tail part or the reserved field of the announcement message according to the frequency quality of the current frequency source.
3. A transmission device, characterized in that the transmission device, as a clock source, comprises:
an obtaining module, configured to obtain a current frequency source from an announcement message from an upstream clock source, so as to perform frequency synchronization between the clock source and the upstream clock source when the current frequency source is used, and obtain a current time source from the announcement message from the upstream clock source, so as to perform time synchronization between the clock source and the upstream clock source by using the current time source;
the first processing module is configured to fill a frequency source level field in an announcement message to be sent according to the frequency quality of the current frequency source, fill a clock level field in the announcement message to be sent according to the current time source, send the announcement message to be sent with the frequency source level field and the clock level field filled in to downstream transmission equipment, so that the downstream transmission equipment performs time synchronization with the clock source according to the received clock level field in the announcement message and performs frequency synchronization with the clock source according to the received clock level field in the announcement message when it is determined that the clock source is a time-optimal and frequency-optimal clock source according to the received clock level field and frequency source level field in the announcement message.
4. The transmission device of claim 3, wherein the first processing module comprises:
and the filling submodule is used for adding and filling the frequency source grade field in the tail part or the reserved field of the announcement message according to the frequency quality of the current frequency source.
5. A method for acquiring a clock source, comprising:
receiving announcement messages of filled frequency source grade fields and clock grade fields sent by each clock source, and acquiring grade information of the frequency source grade fields and the grade information of the clock grade fields in the announcement messages sent by each clock source;
obtaining a network element clock grade of each clock source according to the grade information of the frequency source grade field and the grade information of the clock grade field in the declaration message sent by each clock source, so as to obtain a clock source with optimal time and optimal frequency according to the network element clock grade of each clock source;
wherein, each clock source sends the announcement message of the filled frequency source grade field and the clock grade field, and the announcement message comprises the following steps: each clock source acquires a current frequency source from an announcement message from an upstream clock source so as to perform frequency synchronization with the upstream clock source by using the current frequency source, and acquires a current time source from the announcement message from the upstream clock source so as to perform time synchronization with the upstream clock source by using the current time source; filling frequency source grade fields in the declaration message to be sent according to the frequency quality of the current frequency source; filling a clock grade field in the declaration message to be sent according to the current time source; and sending the announcement message to be sent with the filled frequency source grade field and the filled clock grade field to downstream transmission equipment, so that the downstream transmission equipment performs time synchronization with the clock source according to the received clock grade field in the announcement message and performs frequency synchronization with the clock source according to the received frequency source grade field in the announcement message when determining that the clock source is the clock source with the optimal time and the optimal frequency according to the clock grade field and the frequency source grade field in the announcement message.
6. The method according to claim 5, wherein the step of obtaining the network element clock level of each clock source according to the level information of the frequency source level field and the level information of the clock level field in the announcement message sent by each clock source comprises:
and matching preset data information by using the grade information of the frequency source grade field and the grade information of the clock grade field to acquire the network element clock grade.
7. The method according to claim 5, wherein the step of obtaining a time-optimal and frequency-optimal clock source according to the network element clock level of each clock source comprises:
arranging the network element clock grades according to the grade sequence from high grade to low grade;
and acquiring the network element clock grade ranked at the first position, wherein the corresponding network element clock is used as the clock source.
8. The method according to claim 7, wherein the step of obtaining a time-optimal and frequency-optimal clock source according to the network element clock level of each clock source further comprises:
and when the network element clock levels ranked at the first place and the corresponding network element clocks are multiple, acquiring the clock source according to the priority of each network element clock.
9. The acquisition method of claim 5, further comprising:
updating the network element clock grade to an announcement message data set of a main clock port maintained by the transmission equipment;
and constructing and issuing a message according to the announcement message data set and the frequency source level field.
10. The method as claimed in claim 5, wherein the step of receiving the announcement message sent by each clock source and having filled in the frequency source level field and the clock level field, and obtaining the level information of the frequency source level field and the level information of the clock level field in the announcement message sent by each clock source comprises:
receiving synchronous mode configuration information;
configuring the transmission equipment into a time frequency synchronization mode according to the synchronization mode configuration information;
receiving an announcement message filled with a frequency source grade field and a clock grade field, and acquiring grade information of the frequency source grade field and the clock grade field in the announcement message.
11. A transmission apparatus, comprising:
the second processing module is used for receiving announcement messages of filled frequency source grade fields and clock grade fields sent by each clock source and acquiring grade information of the frequency source grade fields and the grade information of the clock grade fields in the announcement messages sent by each clock source;
a third processing module, configured to obtain a network element clock level of each clock source according to the level information of the frequency source level field and the level information of the clock level field in the announcement message sent by each clock source, so as to obtain a time-optimal and frequency-optimal clock source according to the network element clock level of each clock source;
wherein, each clock source sends the announcement message of the filled frequency source grade field and the clock grade field, and the announcement message comprises the following steps: each clock source acquires a current frequency source from an announcement message from an upstream clock source so as to perform frequency synchronization with the upstream clock source by using the current frequency source, and acquires a current time source from the announcement message from the upstream clock source so as to perform time synchronization with the upstream clock source by using the current time source; filling frequency source grade fields in the declaration message to be sent according to the frequency quality of the current frequency source; filling a clock grade field in the declaration message to be sent according to the current time source; and sending the announcement message to be sent with the filled frequency source grade field and the filled clock grade field to downstream transmission equipment, so that the downstream transmission equipment performs time synchronization with the clock source according to the received clock grade field in the announcement message and performs frequency synchronization with the clock source according to the received frequency source grade field in the announcement message when determining that the clock source is the clock source with the optimal time and the optimal frequency according to the clock grade field and the frequency source grade field in the announcement message.
12. The transmission device of claim 11, wherein the third processing module comprises:
and the first processing submodule is used for matching preset data information by utilizing the grade information of the frequency source grade field and the grade information of the clock grade field to acquire the clock grade of the network element.
13. The transmission device of claim 11, further comprising:
the updating module is used for updating the network element clock grade to the declaration message data set of the main clock port maintained by the transmission equipment;
and the fourth processing module is used for constructing and issuing the message according to the declaration message data set and the frequency source grade field.
CN201610505913.8A 2016-06-30 2016-06-30 Processing method for declaration message, obtaining method for clock source and transmission equipment Active CN107566069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610505913.8A CN107566069B (en) 2016-06-30 2016-06-30 Processing method for declaration message, obtaining method for clock source and transmission equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610505913.8A CN107566069B (en) 2016-06-30 2016-06-30 Processing method for declaration message, obtaining method for clock source and transmission equipment

Publications (2)

Publication Number Publication Date
CN107566069A CN107566069A (en) 2018-01-09
CN107566069B true CN107566069B (en) 2022-03-29

Family

ID=60968885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610505913.8A Active CN107566069B (en) 2016-06-30 2016-06-30 Processing method for declaration message, obtaining method for clock source and transmission equipment

Country Status (1)

Country Link
CN (1) CN107566069B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511255B (en) * 2020-11-23 2022-09-09 中国联合网络通信集团有限公司 Time synchronization method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0944964A2 (en) * 1996-12-12 1999-09-29 Nokia Telecommunications Oy Reception method and receiver
CN103037073A (en) * 2011-10-10 2013-04-10 Lg电子株式会社 Mobile terminal and controlling method thereof
WO2013082812A1 (en) * 2011-12-09 2013-06-13 华为技术有限公司 Method and device for determining master clock device, and other method, device, and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006140809A (en) * 2004-11-12 2006-06-01 Matsushita Electric Ind Co Ltd Digital receiver and multimode receiver
CN101882953B (en) * 2010-07-19 2013-03-20 京信通信系统(中国)有限公司 Baseband signal processing device and method of multiple-mold communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0944964A2 (en) * 1996-12-12 1999-09-29 Nokia Telecommunications Oy Reception method and receiver
CN103037073A (en) * 2011-10-10 2013-04-10 Lg电子株式会社 Mobile terminal and controlling method thereof
WO2013082812A1 (en) * 2011-12-09 2013-06-13 华为技术有限公司 Method and device for determining master clock device, and other method, device, and system

Also Published As

Publication number Publication date
CN107566069A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
EP2515501B1 (en) Media clock negotiation
CN102036361B (en) Processing method, device and system for clock source selection
US11287843B2 (en) Synchronisation of hardware clock using software clock synchronisation error
EP2182670B1 (en) A method and apparatus for tracking clock source
WO2015170201A1 (en) A method for robust ptp synchronization with default 1588v2 profile
EP2738971B1 (en) Method and device for clock synchronization
CN103634092A (en) High precision timer in CPU cluster
US9363206B2 (en) Method and apparatus for selecting passive port of transparent clock node based on PTP
WO2020135279A1 (en) Clock synchronization method and apparatus and storage medium
JP7401656B2 (en) METHODS, APPARATUS AND SYSTEM AND STORAGE MEDIA FOR SELECTING CLOCK SOURCES
US11394480B2 (en) Systems and methods for synchronizing device clocks
CN101641889A (en) Synchronous network device
CN101848193B (en) Method, system and network node for network synchronization
US9521635B1 (en) Methods and apparatus for selecting a device to perform shared functionality in a deterministic and fair manner in a wireless data communication system
US11868175B2 (en) Heterogeneous computing systems and methods for clock synchronization
CN106717079A (en) Clock synchronization using WIFI beacons
CN107566069B (en) Processing method for declaration message, obtaining method for clock source and transmission equipment
US7958281B2 (en) Method and apparatus for transmitting data in a flexray node
CN110730496B (en) Synchronization method and terminal equipment
CN112511253A (en) Synchronization method, device, equipment and storage medium
CN107888315B (en) A kind of method for synchronizing time
US20210091869A1 (en) Synchronization information transmission method, synchronization method, network node and storage medium
CN112511255B (en) Time synchronization method and device
US20220263593A1 (en) Time sync device, time sync method, and program
CN109274451B (en) Time acquisition method, device and equipment

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
GR01 Patent grant
GR01 Patent grant