CN102244573B - clock reporting method and device - Google Patents

clock reporting method and device Download PDF

Info

Publication number
CN102244573B
CN102244573B CN201110200873.3A CN201110200873A CN102244573B CN 102244573 B CN102244573 B CN 102244573B CN 201110200873 A CN201110200873 A CN 201110200873A CN 102244573 B CN102244573 B CN 102244573B
Authority
CN
China
Prior art keywords
tlv
equipment
upstream
active
standby switch
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
CN201110200873.3A
Other languages
Chinese (zh)
Other versions
CN102244573A (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 CN201110200873.3A priority Critical patent/CN102244573B/en
Publication of CN102244573A publication Critical patent/CN102244573A/en
Application granted granted Critical
Publication of CN102244573B publication Critical patent/CN102244573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a clock reporting method and device. The method comprises the following steps: upstream equipment transmits a notification message to downstream equipment when undergoing main-standby switching occurs; and the downstream equipment receives the notification message and keeps locking a current clock source. Through adoption of the technical scheme disclosed by the invention, the problem of network oscillation caused because the upstream equipment undergoes the main-standby switching in the prior art is solved so that the effect of maintaining frequency synchronization stability in a network is realized.

Description

Clock reporting method and device
Technical field
The present invention relates to the communications field, in particular to a kind of clock reporting method and device.
Background technology
In communication network PTN (Packet Transfer Network, Packet Transport Network) equipment, clock rate synchronization SSM (Synchronization Status Message, clock synchronous state signal) technology is adopted typically.SSM synchronizing frequencies When, according to its clock source credit rating and priority, the optimum circuit of credit rating signal is selected as synchronous clock source, most gone up Trip equipment going down clock quality grade step by step.When there is concussion in upstream equipment, and clock source switching occurs, upstream device meeting It is affected step by step, generally requires longer time and could select again clock source and stablize.When the locked circuit of upstream equipment Clock source, but primary master control breaks down, and when being surprisingly switched to standby master control, before slave board enters working condition, needs experience One of short duration initialization procedure, now procotol short interruption, is sent to upstream device clock quality grade and can also interrupt, Upstream device is detected and does not continue to credit rating this period, then can tranmitting data register source switching, lock other clocks Source, and when the standby master control of upstream equipment is completely in normal operating conditions, upstream device can continue to quality etc. again The circuit locked before level, therefore meeting and switchback.It is such it is unstable transmit step by step, whole network occur concussion, need one section Time regains stable.For this problem, effective solution is not yet proposed at present.
The content of the invention
Present invention is primarily targeted at a kind of clock reporting method and device are provided, to solve the above problems.
According to an aspect of the invention, there is provided a kind of clock reporting method, including:There is active and standby cutting in upstream equipment When changing, downstream equipment dispatch order message;Upstream device receives the notification message, keeps locking present clock source.
Upstream equipment when there is active-standby switch, using SSM messages downstream equipment dispatch order message.
Upstream equipment sends logical using SSM messages by channel downstream equipment of quickly giving out a contract for a project when there is active-standby switch Know message.
SSM messages are included for representing that upstream equipment there occurs the extension tlv of active-standby switch.
After extension tlv is located at s1 bytes tlv.
According to a further aspect in the invention, there is provided a kind of clock reporting device, including:Judge module, for judgement Whether trip equipment there occurs active-standby switch;Put module on record, for when upstream equipment occurs active-standby switch, downstream equipment sends Notification message, notifies that upstream device keeps locking present clock source.
Put module on record, for when there is active-standby switch, downstream equipment sends logical using number SSM messages in upstream equipment Know message.
Put module on record, for upstream equipment occur active-standby switch when, using SSM messages by quickly give out a contract for a project passage to Upstream device sends a notification message.
SSM messages are included for representing that upstream equipment there occurs the extension tlv of active-standby switch.
After extension tlv is located at s1 bytes tlv.
By the present invention, using when upstream equipment occurs active-standby switch, notify upstream device keep locking it is current when The scheme of Zhong Yuan, solves the problems, such as that prior art middle and upper reaches equipment occurs active-standby switch and network can be caused concussion occur, and then The effect for maintaining the network medium frequency stability of synchronization is reached.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of clock reporting method according to embodiments of the present invention;
Fig. 2 is the SSM message structure schematic diagrams according to present example;
Fig. 3 is the tlv structural representations according to present example;
Fig. 4 is the structural representation of the distributed system according to present example;
Fig. 5 is the flow chart of giving out a contract for a project of the equipment of the generation masterslave switchover according to present example;
Fig. 6 is the packet receiving flow chart of the upstream device of the generation masterslave switchover equipment according to present example;
Fig. 7 is the structured flowchart of clock reporting device according to embodiments of the present invention.
Specific embodiment
Below with reference to accompanying drawing and in conjunction with the embodiments describing the present invention in detail.It should be noted that not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Fig. 1 is the flow chart of clock reporting method according to embodiments of the present invention.As shown in figure 1, according to present invention enforcement The clock reporting method of example includes:
Step S102, upstream equipment when there is active-standby switch, downstream equipment dispatch order message;
Step S104, upstream device receive the notification message, keep locking present clock source.
The method provided by the present embodiment, when active-standby switch occurs in upstream equipment, upstream device can be feeling in time Know and keep the locking to clock source, so as to overcome in prior art when upstream equipment active-standby switch can cause upstream device same The problem of Shi Fasheng concussions, maintains the network medium frequency stability of synchronization.
Upstream equipment notifies upstream device, and which there occurs that the mode of active-standby switch is provided in having many kinds, this preferred embodiment A kind of preferred mode.Preferably, when there is active-standby switch in upstream equipment, it is possible to use downstream equipment sends SSM messages Notification message.
Due to the SSM technologies that clock is synchronously inherently adopted, therefore advice method the simplest is implemented, be exactly Directly sent a notification message using SSM messages.
Preferably, when there is active-standby switch, during use, SSM messages are set upstream equipment by channel downstream of quickly giving out a contract for a project It is standby to send a notification message.
In order to ensure the transmission for carrying the SSM messages of notification message is not affected by active-standby switch, it is preferred to use fast bag is sent out Interface is sent to send the SSM messages of the carrying notification message by channel downstream equipment of quickly giving out a contract for a project.
Notification message is carried using SSM messages and notifies that upstream device upstream equipment there occurs active-standby switch many kinds realization side Method.This preferred embodiment provides one kind and is preferably carried out mode.Preferably, SSM messages can be included for representing upstream equipment There occurs the extension tlv of active-standby switch.
Tlv is the abbreviation of tlv structures, and tlv is made up of three fields, respectively tag (label), length (length), Value (is worth), and all tlv structures being added on after source messages are expansion structure.In order to change premise as little as possible Under, notify that upstream device upstream equipment there occurs active-standby switch, one can be added on the basis of original SSM message structures Extension tlv is called masterslave switchover mark tlv, shows whether upstream equipment there occurs active-standby switch by its value.
Preferably, after extension tlv is located at s1 bytes tlv.
S1 bytes are the tlv structure that must be carried in source messages, represent the credit rating of ssm messages transmission, from SSM From the point of view of current structure, it is the most suitable that extension tlv is arranged on behind s1 bytes tlv, implements and facilitates the most.
Above preferred embodiment is described in detail with reference to example.
Firstly, it is necessary to carry out to the possible equipment that active-standby switch occurs arranged below:
1st, during active-standby switch, start passage of quickly giving out a contract for a project, after s1 bytes tlv of message, increase tlv_hold and (use The extension tlv/ masterslave switchovers mark tlv of active-standby switch be there occurs in expression upstream equipment), arranging its mark place value (bTag) is 3, and the effect that tlv length is that 4, tlv values (bValue) represent a tlv for 1, bTag is set, it is that the 2 expressions tlv is extension Byte tlv, is that the 3 expressions tlv identifies tlv for masterslave switchover.
If what is the 2, enabled is expansion algorithm, increase extended byte tlv_exts1, its flag bit after s1 bytes tlv It is worth for 2, is further added by tlv_hold after extended byte tlv_exts1, tlv_exts1 is extended byte tlv, in source messages S1 bytes tlv cannot release the loop in network, and extended byte tlv is used for solving loop problem.
3rd, it is non-it is active and standby in the case of, normally give out a contract for a project, after s1 bytes, if extended byte, then directly fill out after the s1 Extended byte tlv is filled, if extended byte tlv, then tlv_hold is filled after extended byte tlv, otherwise tlv_hold After being filled in s1 bytes tlv.
Specifically SSM message structures and tlv structures be as shown in Figure 2 and Figure 3.
The structure of the distributed system in this example is as shown in figure 4, when optimal clock source occurs active-standby switch, now receive Give out a contract for a project and be not normally functioning, so credit rating not by send and receive packets flow process, is directly encapsulated by fast bag transmission interface by equipment Framing, downstream transmission carry the SSM messages of tlv_hold information, the SSM letters of accepted downstream to this carrying tlv_hold field Breath, judges that upstream equipment is occurring active-standby switch, so as within the of short duration time, not obtain circuit s1 bytes, keeps locking Circuit, when tlv_hold is no longer received, then by normal algorithm flow, obtains circuit s1 information, and performs algorithm determination locking Clock source.
Specifically, there is the flow process of giving out a contract for a project of equipment of masterslave switchover as shown in figure 5, comprising the following steps:
Step S502,1s timers triggers are given out a contract for a project;
Step S504, fills ssm message elementary fields;
Step S506, fills ssm message s1 bytes;
Step S508, determines whether extended byte, if it has, step S510 is gone to, if not, going to step S512;
Step S510, filling ssm message extension s1;
Step S512, judges whether just in masterslave switchover, if it is, step S516 is gone to, if not, going to step S514;
Step S514, sends message by protocol encapsulation flow process;
Step S516, fills ssm message tlv_hold;
Step S518, by quickly giving out a contract for a project, passage sends message.
After receiving terminal receives SSM messages, need to judge whether the extension tlv mark place values after s1 bytes tlv are 3, And whether value is 1, upstream equipment is if it is represented just during masterslave switchover, this equipment does not temporarily receive s1 bytes With extension s1 bytes;If extension tlv flag bits and value are unsatisfactory for, for normal SSM messages, s1 bytes and extension is taken S1 bytes.Specifically, there is the packet receiving flow process of upstream device of masterslave switchover equipment as shown in fig. 6, comprising the following steps:
Step S602, receives ssm messages;
Step S604, reads the next tlv of s1 bytes;
Step S606, judges whether the bTag of the tlv is 3, if it is not, then step S608 is gone to, if it is, going to step Rapid S614;
Step S608, judges whether the bTag of the tlv is 2, if it is not, then step S618 is gone to, if it is, going to step Rapid S610;
Step S610, reads extended byte;
Step S612, reads the next tlv of extended byte, goes to step S606;
Step S614, judges whether bValue is 1, if it is not, then step S618 is gone to, if it is, going to step S616;
Step S616, upstream equipment wouldn't process s1 bytes just in masterslave switchover, keep the current locked clock of locking Source;
Step S618, performs normal packet receiving flow process, processes s1 byte informations, and performs algorithm.
Fig. 7 is the structured flowchart of clock reporting device according to embodiments of the present invention.As shown in fig. 7, according to of the invention real The clock reporting device for applying example includes:
Judge module 72, for judging whether upstream equipment there occurs active-standby switch;
Put module 74 on record, be connected to judge module 72, for when upstream equipment occurs active-standby switch, downstream equipment is sent out Notification message is sent, notifies that upstream device keeps locking present clock source.
The device that the present embodiment is provided allows upstream device to perceive in time simultaneously when active-standby switch occurs in upstream equipment The locking to clock source is kept, so as to overcome in prior art when upstream equipment active-standby switch can cause upstream device while sending out The problem of raw concussion, maintains the network medium frequency stability of synchronization.
Preferably, put module 74 on record, can be used in upstream equipment when active-standby switch occurs, it is downward using SSM messages Trip equipment dispatch order message.
Due to the SSM technologies that clock is synchronously inherently adopted, therefore advice method the simplest is implemented, be exactly Directly sent a notification message using SSM messages.
Preferably, putting module 74 on record, can be used in upstream equipment, when there is active-standby switch, passing through using SSM messages Channel downstream of quickly giving out a contract for a project equipment dispatch order message.
In order to ensure the transmission for carrying the SSM messages of notification message is not affected by active-standby switch, it is preferred to use fast bag is sent out Interface is sent to send the SSM messages of the carrying notification message by channel downstream equipment of quickly giving out a contract for a project.
Preferably, SSM messages can be included for representing that upstream equipment there occurs the extension tlv of active-standby switch.
In order to, on the premise of change is as little as possible, notify that upstream device upstream equipment there occurs active-standby switch, Ke Yi On the basis of original SSM message structures, add an extension tlv or be called masterslave switchover mark tlv, by its value table Whether bright upstream equipment there occurs active-standby switch.
Preferably, after extension tlv is located at s1 bytes tlv.
S1 bytes are the tlv structure that must be carried in source messages, represent the credit rating of ssm messages transmission, from SSM From the point of view of current structure, it is the most suitable that extension tlv is arranged on behind s1 bytes tlv, implements and facilitates the most.
As can be seen from the above description, when the technical scheme that the present invention is provided makes upstream equipment that active-standby switch to occur, Upstream device can keep locking, not affect credit rating to transmit to other equipment.There is that of active-standby switch in upstream equipment In the section time, enable upstream device to perceive upstream equipment and active-standby switch is occurring, so as to keep locking present clock source, dimension The synchronous stability of network medium frequency is held.
Obviously, those skilled in the art should be understood that each module or each step of the above-mentioned present invention can be with general Computing device realizing, they can be concentrated on single computing device, or are distributed in multiple computing devices and are constituted Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to they are stored In the storage device by computing device performing, and in some cases, can be with shown in performing different from order herein The step of going out or describe, or they are fabricated to each integrated circuit modules respectively, or by the multiple modules in them or Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (10)

1. a kind of clock reporting method, it is characterised in that include:
Upstream equipment when there is active-standby switch, downstream equipment dispatch order message;
Upstream device receives the notification message, keeps locking present clock source.
2. method according to claim 1, it is characterised in that upstream equipment is when there is active-standby switch, same using clock Walk status signal SSM messages downstream equipment dispatch order message.
3. method according to claim 2, it is characterised in that upstream equipment when there is active-standby switch, using SSM messages By channel downstream equipment dispatch order message of quickly giving out a contract for a project.
4. method according to claim 3, it is characterised in that the SSM messages are included for representing the upstream equipment There occurs the extension tlv of active-standby switch.
5. method according to claim 4, it is characterised in that after the extension tlv is located at s1 bytes tlv.
6. a kind of clock reporting device, it is characterised in that include:
Judge module, for judging whether upstream equipment there occurs active-standby switch;
Put module on record, for when upstream equipment occurs active-standby switch, downstream equipment dispatch order message, notifies upstream device Keep locking present clock source.
7. device according to claim 6, it is characterised in that described to put module on record, for leading in upstream equipment During standby switching, using clock synchronous state signal SSM messages downstream equipment dispatch order message.
8. device according to claim 7, it is characterised in that described to put module on record, for leading in upstream equipment During standby switching, using SSM messages by channel downstream equipment dispatch order message of quickly giving out a contract for a project.
9. device according to claim 8, it is characterised in that the SSM messages are included for representing the upstream equipment There occurs the extension tlv of active-standby switch.
10. device according to claim 9, it is characterised in that after the extension tlv is located at s1 bytes tlv.
CN201110200873.3A 2011-07-18 2011-07-18 clock reporting method and device Active CN102244573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110200873.3A CN102244573B (en) 2011-07-18 2011-07-18 clock reporting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110200873.3A CN102244573B (en) 2011-07-18 2011-07-18 clock reporting method and device

Publications (2)

Publication Number Publication Date
CN102244573A CN102244573A (en) 2011-11-16
CN102244573B true CN102244573B (en) 2017-03-22

Family

ID=44962433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110200873.3A Active CN102244573B (en) 2011-07-18 2011-07-18 clock reporting method and device

Country Status (1)

Country Link
CN (1) CN102244573B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904661B (en) * 2011-07-27 2017-07-14 中兴通讯股份有限公司 PTP equipment realizes the method and PTP equipment of smooth restarting
CN103051404B (en) * 2011-10-12 2017-02-01 中兴通讯股份有限公司 Method of preventing synchronizing network topology from generating shaking, and clock synchronizer
CN102594481B (en) * 2012-03-08 2017-05-10 中兴通讯股份有限公司 Clock oscillation generating method, device and system
CN102946291A (en) * 2012-11-12 2013-02-27 华为技术有限公司 Clock maintaining method and clock equipment
CN104410975B (en) 2014-11-06 2018-06-15 东莞宇龙通信科技有限公司 Resource allocation method, system, the equipment and terminal with base station functions

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324148A (en) * 2000-07-11 2001-11-28 深圳市中兴通讯股份有限公司 Jitter-free change-over method and device for main and stand-by units capable of being hot plugged and unplugged in digital communication system
CN101141240A (en) * 2007-04-18 2008-03-12 中兴通讯股份有限公司 SDH clock automatically networking method
CN101895361A (en) * 2010-07-12 2010-11-24 中兴通讯股份有限公司 Method, system and clock board for transmitting synchronous status message
CN102123046A (en) * 2011-01-21 2011-07-13 烽火通信科技股份有限公司 Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6194969B1 (en) * 1999-05-19 2001-02-27 Sun Microsystems, Inc. System and method for providing master and slave phase-aligned clocks
TWI424731B (en) * 2008-12-03 2014-01-21 Realtek Semiconductor Corp Master device for an ethernet system and related clock synchronization method
CN102013969B (en) * 2010-12-02 2015-06-03 中兴通讯股份有限公司 Method and device for realizing time synchronization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324148A (en) * 2000-07-11 2001-11-28 深圳市中兴通讯股份有限公司 Jitter-free change-over method and device for main and stand-by units capable of being hot plugged and unplugged in digital communication system
CN101141240A (en) * 2007-04-18 2008-03-12 中兴通讯股份有限公司 SDH clock automatically networking method
CN101895361A (en) * 2010-07-12 2010-11-24 中兴通讯股份有限公司 Method, system and clock board for transmitting synchronous status message
CN102123046A (en) * 2011-01-21 2011-07-13 烽火通信科技股份有限公司 Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PTN时钟同步技术及应用;李勤;《中兴通讯技术》;20100630;第16卷(第3期);第28-30页 *

Also Published As

Publication number Publication date
CN102244573A (en) 2011-11-16

Similar Documents

Publication Publication Date Title
CN112688754B (en) Method and device for transmitting service flow based on flexible Ethernet Flexe
CN102244573B (en) clock reporting method and device
CN101299749B (en) Method and apparatus for transferring clock between networks
CN102130766B (en) Method, equipment and system for synchronizing Ethernet clock tracking
CN103107876B (en) A kind of method and system and device of multi-clock simultaneous techniques mixed networking
CN103916950A (en) Time synchronization method and system
CN105450321B (en) A kind of network data transmission method and device
US8194704B2 (en) Network equipment
US9215092B2 (en) Clock selection for synchronous Ethernet
CN101895361B (en) Method, system and clock board for transmitting synchronous status message
US20060039347A1 (en) Synchronous transmission network system
CN111970759B (en) Delay adjustment method and device for end-to-end service, storage medium and electronic device
CN102208958A (en) Clock synchronization method for synchronous Ethernets, as well as synchronous information sending/receiving method, device and apparatus
CN108631899A (en) It is forwarded and fault-tolerance approach and device based on the data packet in time triggered Ethernet
CN105024798A (en) Method and device for time synchronization
JP5266705B2 (en) Communications system
CN109245842A (en) Method, equipment and the computer readable storage medium of synchronizing clock time
CN108011682A (en) Determine the method and the network equipment of time source
CN102447611B (en) Method and system for establishing bidirectional point-to-multipoint label switched path as well as method and system for removing bidirectional point-to-multipoint label switched path
CN107959537B (en) State synchronization method and device
CN103428009A (en) Method and device for achieving OAM of grouped synchronous networks
US9264212B2 (en) Method for distributing time within synchronous ethernet and SONET/SDH domains
CN102170398B (en) The reverse method of external time port and device
CN102158412B (en) Transmission method and system of synchronous state information in Ethernet synchronization
EP1583266A2 (en) Synchronisation for TDM services in packet networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant