CN102946290B - Clock information processing method and device - Google Patents

Clock information processing method and device Download PDF

Info

Publication number
CN102946290B
CN102946290B CN201210430717.0A CN201210430717A CN102946290B CN 102946290 B CN102946290 B CN 102946290B CN 201210430717 A CN201210430717 A CN 201210430717A CN 102946290 B CN102946290 B CN 102946290B
Authority
CN
China
Prior art keywords
clock information
path cost
modified logo
target clock
current device
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
CN201210430717.0A
Other languages
Chinese (zh)
Other versions
CN102946290A (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.)
Guangdong Gaohang Intellectual Property Operation Co ltd
Taizhou Haitong Asset Management Co ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210430717.0A priority Critical patent/CN102946290B/en
Publication of CN102946290A publication Critical patent/CN102946290A/en
Application granted granted Critical
Publication of CN102946290B publication Critical patent/CN102946290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The embodiment of the invention provides a clock information processing method and device. The clock information processing method comprises the steps that the current equipment receives at least one clock information from upstream equipment; the clock information comprises a grade identification, a modification identification and a path cost identification; when the grade identifications of the received clock information are the same, the current equipment selects the clock information with the minimum path cost identification as target clock information; the target clock information is adopted to calibrate a local clock; the path cost identification, the modification identification and the grade identification in the target clock information are updated; and the updated target clock information is sent to downstream equipment. With the adoption of the technical scheme, the clock information from an optimal path can be selected to serve as the target information to calibrate the local clock on the condition that the original network topological structure and the transport protocols are not changed, so that the current equipment actually selects the clock information with high clock quality to calibrate the local clock.

Description

Clock information processing method and device
Technical field
The embodiment of the present invention relates to the communication technology, particularly relates to clock information processing method and device.
Background technology
Along with the fast development of the communication technology, all-IP (Internet Protocol procotol) change is the trend of mobile packet data net future development, in order to meet the synchronisation requirement of mobile packet data net, G.8261 the concept of synchronous ether is proposed in synchronous ethernet standard, to solve the problem of clock synchronous between each node in Packet Data Network.
In order to choose clock signal calibration local clock from upstream equipment, at present, the clock information processing method that prior art adopts, the clock information that multiple upstream equipment is sent compares by current device, the class letter carried in the clock information that the class letter carried in the clock information sent of equipment if wherein swim on the way is sent higher than other upstream equipment, so current device chooses the high clock information of class letter as target clock information, adopts target clock information calibration local clock; If the class letter carried in the clock information that multiple upstream equipment is sent is identical, current device then selects clock information that the highest interface of its priority receives as target clock information to calibrate local clock, and wherein interface priority is pre-configured.
In the prior art, adopt above-mentioned clock information processing method, current device may be caused in fact to have chosen the poor clock information of clock quality to calibrate local clock.
Summary of the invention
The embodiment of the present invention provides a kind of clock information processing method and device, to solve the actual poor clock information of clock quality that have chosen of current device in prior art to calibrate the problem of local clock.
Embodiment of the present invention first aspect provides a kind of clock information processing method, comprising:
Current device receives at least one clock information sent from upstream equipment, and described clock information comprises: class letter, modified logo and path cost identify;
When the class letter of the clock information received is identical, described current device selects a path cost to identify minimum clock information as target clock information, adopts described target clock information to calibrate local clock;
Described current device calculates new path cost mark, the path cost value sum preset that the numerical value and one that described new path cost is designated the path cost mark of described target clock message is greater than zero;
Described current device is determined to identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with the path cost of described new target clock information;
When the modified logo that described current device is determined is identical with the modified logo that described target clock information is carried, the path cost identification renewal of described target clock information is described new path cost mark by described current device, have updated the target clock information of path cost mark to upstream device described in sending;
When the modified logo that described current device is determined is different from the modified logo that described target clock information is carried, the path cost identification renewal of described target clock information is described new path cost mark by described current device, the modified logo of described target clock information is updated to the modified logo that described current device is determined, the class letter of described target clock information is reduced a fixed value preset, send the target clock information that have updated path cost mark, modified logo and class letter to upstream device.
In the first possible implementation of first aspect, identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with described new path cost, comprising:
Described default amendment scope is a numerical intervals;
Described modified logo is any one in numerical value or identifier;
The modified logo that arbitrary described default amendment scope has one uniquely to correspond.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second of first aspect is possible, described the class letter of described target clock information is reduced a fixed value preset, comprising:
The class letter of described target clock information is reduced one-level.
In conjunction with the first possible implementation of first aspect or first aspect, in the third possible implementation of first aspect, also comprise:
When the modified logo that described current device is determined is identical with the modified logo that described target clock information is carried, described in described current device sends to the upstream equipment sending described target clock information, have updated the target clock information of path cost mark; When the modified logo that described current device is determined is different from the modified logo that described target clock information is carried, described current device sends the target clock information that have updated path cost mark, modified logo and class letter to the upstream equipment sending described target clock information.
In conjunction with the first possible implementation of first aspect or first aspect, in the 4th kind of possible implementation of first aspect,
When described current device is router, described default path cost value is the first value;
When described current device is packet microwave equipment, described default path cost value is the second value;
When described current device is the miscellaneous equipment beyond router and packet microwave equipment, described default path cost value is the 3rd value.
Embodiment of the present invention second aspect provides a kind of clock information treatment facility, comprising:
Receiving element, for receiving at least one clock information sent from upstream equipment, described clock information comprises: class letter, modified logo and path cost identify;
Comparing unit, for when the class letter of the clock information received is identical, selects a path cost to identify minimum clock information as target clock information;
Clock unit, calibrates local clock for adopting described target clock information;
Control unit, for calculating new path cost mark, the path cost value sum preset that the numerical value and one that described new path cost is designated the path cost mark of described target clock information is greater than zero;
Determine to identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with the path cost of described new target clock information;
When the described modified logo determined is identical with the modified logo that described target clock information is carried, be described new path cost mark by the path cost identification renewal of described target clock information;
When the described modified logo determined is different from the modified logo that described target clock information is carried, upgrade described target clock information, it is described new path cost mark by the path cost identification renewal of described target clock information, the modified logo of described target clock information is updated to the modified logo that described current device is determined, the class letter of described target clock information is reduced a fixed value preset;
Transmitting element, for when the described modified logo determined is identical with the modified logo that described target clock information is carried, have updated the target clock message of path cost mark to upstream device described in sending; When the described modified logo determined is different from the modified logo that described target clock information is carried, described in sending to upstream device, have updated the target clock information of path cost mark, modified logo and class letter.
In the first possible implementation of second aspect, identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with described new path cost, comprising:
Described default amendment scope is a numerical intervals;
Described modified logo is any one in numerical value or identifier;
The modified logo that arbitrary described default amendment scope has one uniquely to correspond.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second of second aspect is possible, described control unit comprises and falls one-level subelement, for the class letter of described target clock information is reduced one-level.
In conjunction with the first possible implementation of second aspect or second aspect, in the third possible implementation of second aspect,
Described transmitting element, also for when the described modified logo determined is identical with the modified logo that described target clock information is carried, have updated the target clock information of path cost mark to the upstream equipment sending described target clock information described in sending; When the described modified logo determined is different from the modified logo that described target clock information is carried, send the target clock information that have updated path cost mark, modified logo and class letter to the upstream equipment sending described target clock information.
In conjunction with the first possible implementation of second aspect or second aspect, in the 4th kind of possible implementation of second aspect,
When described clock information treatment facility is router, described default path cost value is the first value;
When described clock information treatment facility is packet microwave equipment, described default path cost value is the second value;
When described clock information treatment facility is the miscellaneous equipment beyond router and packet microwave equipment, described default path cost value is the 3rd value.
The clock information processing method that the embodiment of the present invention provides and device, current device is according to the class letter of clock information and path cost mark select target clock information, when the class letter of the clock information received is all identical, a path cost is selected to identify minimum clock information as target clock information, the numerical value that the path cost of target clock message identifies is added with the path cost value that current device is preset and obtains new path cost and identify, upgrade the path cost mark in target clock message, and identify according to new path cost, the amendment scope preset and the modified logo corresponding with default amendment scope, determine whether to need to reduce the class letter carried in target clock message, afterwards the clock information after renewal is sent to upstream device, achieving can when changing the original topological structure of network and host-host protocol, choose from the clock information on optimal path as target clock information calibration local clock, make clock information that current device actual selection clock quality is high to calibrate local clock.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of a kind of clock information processing method that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is clock signal transmission network topology structure schematic diagram;
The flow chart of another clock information processing method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of clock information treatment facility that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of clock information treatment facility that Fig. 5 provides for the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with the accompanying drawing in the present invention, the technical scheme in the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The flow chart of a kind of clock information processing method that Fig. 1 provides for the embodiment of the present invention one.Fig. 2 is clock signal transmission network topology structure schematic diagram of the present invention.In the embodiment of the present invention one and each following embodiment, current device can be other intermediary device in router, switch, packet microwave or network.As shown in Figure 1, the method comprises following process:
101, current device receives at least one clock information sent from upstream equipment.
In 101, the clock information that the upstream equipment that current device can receive one or more this current device sends to it, this clock information can comprise: class letter, modified logo and path cost identify.
Current device can be such as the clock information that AN5 as shown in Figure 2, AN5 reception upstream equipment AN4 and upstream equipment AN6 sends to it.
In the present embodiment and each following embodiment, alternatively,
Class letter may be used for the clock source credit rating identifying this clock information, the clock source credit rating defined in can selecting the synchronization layer function standard I TU-T of International Telecommunication Union G.781-2008.According to ITU-T regulation G.781-2008, when clock source quality class letter is PRC, the clock source credit rating of the clock information corresponding with this class letter is the highest, when clock source quality class letter is SSU-A, the clock source credit rating of the clock information corresponding with this class letter is taken second place, when clock source quality class letter is SEC/EEC, the clock source of the clock information corresponding with this class letter is unavailable clock, namely can not be used as the local clock of target clock calibration current device.
Path cost mark is used for according to this clock information transmission path in a network, identifies the path cost value of this clock information.
Path cost mark and modified logo can be included in the extended field of this clock information.Table 1 is path cost mark and the form of modified logo in extended field.See table 1, wherein, modified logo takies the numerical value that 2 may be used for identifying modified logo, and path cost mark takies the numerical value that 6 may be used for identification path expense mark.
Table 1. path cost mark and the form of modified logo in extended field
1 byte Type: 0x 05
2 bytes Length: 00-04
2 Modified logo
6 Path cost identifies
102, when the class letter of the clock information received is identical, described current device selects a path cost to identify minimum clock information as target clock information, adopts described target clock information to calibrate local clock.
In 102, current device identifies selection clock information as target clock according to the class letter of at least one clock information described and path cost, adopts described target clock information to calibrate local clock.
Such as, the class letter of the clock information that AN5 can send to it according to AN4 and AN6 and path cost mark select a clock information as the target clock information of AN5 from the clock information that AN4 and AN6 sends, and adopt this target clock information to calibrate the local clock of AN5.When the class letter carried in the clock information that AN4 with AN6 sends to AN5 is identical, AN5 compares the path cost mark of carrying in the clock information of AN4 and AN6 transmission, the clock information corresponding to path cost mark that in the clock information selecting AN4 and AN6 to send, the path cost identification value that carries is minimum, as the target clock information of AN5, is used for calibrating the local clock of AN5.
103, current device calculates new path cost mark, the path cost value sum preset that the numerical value and one that described new path cost is designated the path cost mark of described target clock information is greater than zero.
Current device calculates new path cost mark, the basis of the path cost entrained by target clock information namely selected in above-mentioned 102 mark adds a path cost value preset being greater than zero, obtains the path cost value after calculating.
Further, on the basis of technique scheme, described in be greater than zero preset path cost value be specifically as follows:
When current device is router, default path cost value can be first value being greater than zero;
When current device is packet microwave equipment, default path cost value can be second value being greater than zero;
When current device is the miscellaneous equipment beyond router and packet microwave equipment, default path cost value can be the 3rd value being greater than zero.
In the present embodiment, preferably:
First value can be 1;
Second value can be 2;
3rd value can be 4.
104, described current device is determined to identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with described new path cost.
In 104, described new path cost identifies compared with the default amendment scope of current device by described current device, determine that in the default amendment scope of current device, the path cost new with this identifies corresponding amendment scope, and the modified logo corresponding with this default amendment scope, in the present embodiment, the default amendment scope of current device and the modified logo corresponding with this amendment scope, for the default value of equipment self, current device also can know the occurrence of described default amendment scope and the modified logo corresponding with described default amendment scope by alternate manner in other embodiments, be not construed as limiting herein.
For example, described default amendment scope can be a numerical intervals, described modified logo can be any one in numerical value or identifier, but arbitrary described default amendment scope has a unique modified logo corresponded, in the present embodiment such as: the default amendment scope of current device is 0-10, 11-15, 16-20, be greater than 20, the modified logo corresponding with amendment scope 0-10 is symbol A, the modified logo corresponding with amendment scope 11-15 is symbol B, the modified logo corresponding with amendment scope 16-20 is symbol C, being greater than 20 corresponding modified logos with amendment scope is symbol D, if the value of the new path cost mark calculated in above-mentioned 103 is 8, current device can determine that in the amendment scope that current device is preset, the amendment scope corresponding with 8 is 0-10, and the modified logo corresponding with this default amendment scope 0-10 is A.
105, when the modified logo that described current device is determined is identical with the modified logo that described target clock information is carried, the path cost identification renewal of described target clock information is described new path cost mark by described current device, have updated the target clock information of path cost mark to upstream device described in sending.
In 105, if the modified logo that current device is determined is identical with the modified logo that described target clock information is carried, the path cost identification renewal of described target clock information is the new path cost mark calculated in above-mentioned 103 by current device, and the target clock information identified by updated path cost sends to the upstream device of this current device.
For example, if the new path cost calculated in above-mentioned 103 is designated 8, the modified logo determined in above-mentioned 104 is A, modified logo entrained by target clock information is also A, then the value of the path cost mark in target clock message is updated to 8 by current device, and the target clock information of this updated path cost mark is sent to the upstream device of this current device.
Further, the described target clock information of described updated path cost mark can also be sent to the upstream equipment sending this target clock information to this current device by current device, to prevent into ring, namely prevent this upstream equipment from choosing this upstream device and form loop to its clock information sent as target clock information.
106, when the modified logo that described current device is determined is different from the modified logo that described target clock information is carried, described current device upgrades described target clock information, it is described new path cost mark by the path cost identification renewal of described target clock information, the modified logo of described target clock information is updated to the modified logo that described current device is determined, the class letter of described target clock information is reduced a fixed value preset, send the target clock information that have updated path cost mark, modified logo and class letter to upstream device.
For example, if the new path cost calculated in above-mentioned 103 is designated 11, in above-mentioned 104, current device is 11 modified logos determined according to the value that path cost identifies is B, modified logo entrained by target clock information is A, then the path cost identification renewal of target clock information is 11 by current device, the modified logo of target clock information is updated to B, the class letter of target clock information is reduced a fixed value preset, and by this updated path cost mark, the target clock of modified logo and class letter sends to the upstream device of this current device.
Further, the described target clock information of described updated path cost mark, modified logo and class letter can also be sent to the upstream equipment sending this target clock information to this current device by current device, to prevent into ring, namely prevent this upstream equipment from choosing this upstream device and form loop to its clock information sent as target clock information.
It should be noted that, in above-described embodiment, each step writes order and not necessarily represents the sequencing in its implementation, also first can perform in other embodiment and write the posterior step of order, the preceding step of order is write in rear execution, and each step execution sequence of above-described embodiment is not by the restriction of writing order.Such as, above-mentioned 102 can perform after above-mentioned 103, also can perform after above-mentioned 104.
In the present embodiment, current device is according to the class letter of clock information and path cost mark select target clock information, when the class letter of the clock information received is all identical, a path cost is selected to identify minimum clock information as target clock information, the numerical value that the path cost of target clock message identifies is added with the path cost value that current device is preset and obtains new path cost and identify, upgrade the path cost mark in target clock message, and identify according to new path cost, the amendment scope preset and the modified logo corresponding with default amendment scope, determine whether to need to reduce the class letter carried in target clock message, afterwards the clock information after renewal is sent to upstream device, achieving can when changing the original topological structure of network and host-host protocol, choose from the clock information on optimal path as target clock information calibration local clock, make clock information that current device actual selection clock quality is high to calibrate local clock.
The flow chart of the clock information processing method that Fig. 3 provides for the embodiment of the present invention two, describes the clock information processing method of current device below in detail, please also refer to Fig. 3 and Fig. 2 for Fig. 3.
In the present embodiment two, clock signal transmission network can be packet network, this packet network meets the clock synchronous demand of this packet network by synchronous ether technology, particularly, upstream equipment in this packet network sends to the clock information of upstream device can be ether synchronization message passage (EthernetSynchronization Messaging Channel, ESMC).Below with current device be AN4 to describe clock information processing method in detail:
301, the clock information that upstream equipment sends is received.
Current device AN4 receives the clock information that upstream equipment AN3 and AN5 sends to AN4 each second, in other embodiments, AN4 can also receive from 3, the clock information that sends to it of 4 even more upstream equipments, and the clock information that AN4 receives in the present embodiment can be such as ESMC.
302, determine in described clock information, whether to carry path cost mark and modified logo.If carried, perform 304; Otherwise, perform 303.
For example, AN4 can by judging whether AN3 or AN5 carries the type-length-value (Type-Length-Value that type is 0x05 in its ESMC sent, TLV) determine in ESMC, whether to carry path cost mark, also by judging whether that the TLV carrying other type determines, can not limit in other embodiments herein.For convenience of subsequent descriptions, be that the TLV of 0x05 is called mass shift TLV(Quality Offset Type Length Value, QO TLV by type).
303, current device increases QO TLV and arranges initial value in this clock information.
Such as, when this clock information is ESMC, expansion TLV can be inserted so that carry more information in its reserved place, in the present embodiment, AN4 inserts QO TLV in not carrying in the ESMC of QO TLV mark of sending to it, this QO TLV takies 4 bytes in ESMC, and the form of this TLV please refer to table 1.
In the present embodiment, such as can QO TLV Value part arrange delegated path expense mark the initial value of low 6 be 000000, the initial value arranging high 2 that represent modified logo is 01.Even if this QOTLV inserted in the reserved place of this ESMC also can not lose through third party's network.
304, target clock information calibration local clock is chosen.
If the class letter of the clock information received in above-mentioned 301 is different, the target clock information that AN4 selects class letter the highest is as target clock information calibration local clock; If the class letter of the clock information received in above-mentioned 301 is identical, AN4 selects a path cost to identify minimum clock information as target clock information calibration local clock; If the class letter of the clock information received in above-mentioned 301 is identical and path cost mark is also identical, AN4 then selects the clock information that the highest interface of its equipment interface medium priority receives to be target clock information.
Such as, if the ESMC middle grade that AN3 sends identifies the class letter in the ESMC sent higher than AN5, the ESMC that AN4 selects AN3 to send as the target clock information of AN4, and adopts this target clock information to calibrate the local clock of AN4.
If the class letter that AN4 receives the clock information that AN3 with AN5 sends to it is identical, path cost mark is different, and AN4 then selecting paths expense identifies little clock information as target clock information.Such as, with reference to figure 2, if AGG1 there occurs interruption to the link of AG1 tranmitting data register signal due to fault, the ESMC that the AN3 causing AN4 to receive sends to it the Actual path of process be BITS-PRC-AGG2-AG8-AG7-AG6-AG5-AG4-AG3-AG2-AG1-AN1-AN2-AN 3-AN4, count from reference clock source BITS, this clock signal is delivered to AN4 and have passed through altogether 14 equipment and namely have passed through 14 jumpings, and the ESMC that sends to it of AN5 that AN4 receives the Actual path of process be BITS-PRC-AGG2-AG8-AG7-AN8-AN7-AN6-AN5-AN4, count from reference clock source BITS, this clock signal is delivered to AN4 and have passed through altogether 9 equipment and namely have passed through 9 jumpings, if the path cost value preset of each equipment is 1, the path cost carried in the ESMC of so AN3 is designated 14, the path cost carried in the ESMC of AN5 is designated 9, AN4 selecting paths expense identifies the target clock information of ESMC as AN4 of little AN5, for calibrating the local clock of AN4, can make AN4 that the clock information transmitted from the path of optimum can be selected to calibrate local clock after path changes.
If the class letter that AN4 receives the clock information that AN3 with AN5 sends to it is all identical with path cost mark, if the priority that AN4 connects the interface of the priority ratio AN4 connection AN5 of the interface of AN3 is high, then AN4 selects the ESMC that sends of AN3 as the target clock information of AN4, and adopts this target clock information to calibrate the local clock of AN4.
305, new path cost mark is calculated.
The path cost value N preset for dissimilar current device can be different, in the present embodiment preferably, the English full name of router/switch/DWDM(is Dense Wavelength DivisionMultiplexing, referred to as DWDM) N value be 1, the N value of microwave equipment is 2, the N value of miscellaneous equipment is 4, namely target clock information is often through an equipment, current device is by the type increase corresponding value of its path cost ident value according to current device, once path cost ident value reaches certain numerical value, the class letter then carried in this target clock information of associated modification.
In the present embodiment, if the ESMC that in above-mentioned 304, AN4 selects AN5 to send is as target clock information, the value of the path cost mark of carrying in the ESMC that AN5 sends is 9, and suppose that the N value of AN4 is 1, then AN4 obtains new path cost after calculating and is designated 1+9=10; Suppose that the N value of AN4 is 4, then the new path cost that AN4 obtains after calculating is designated 4+9=13.
306, current device is determined to identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with described new path cost.
Presetting amendment scope can be a numerical intervals, modified logo can be any one in numerical value or identifier, but arbitrary described default amendment scope has a unique modified logo corresponded, in the present embodiment such as: the default amendment scope of current device AN4 is: the first amendment scope 0-10, second amendment scope 11-15, 3rd amendment scope 16-20 and the 4th amendment scope are greater than 20, the default amendment scope that current device AN4 is known in other embodiments can be other default amendment scope, be not construed as limiting herein, in the default amendment scope that AN4 is known, the modified logo corresponding with amendment scope 0-10 is numerical value 1, the modified logo corresponding with amendment scope 11-15 is numerical value 2, the modified logo corresponding with amendment scope 16-20 is numerical value 3, being greater than 20 corresponding modified logos with amendment scope is numerical value 4.Suppose in above-mentioned 305, calculate new path cost and be designated 10, current device by 10 with current device know preset amendment scope compared with, can know in the default amendment scope of current device that identifying 10 corresponding amendment scopes with the new path cost that this calculates is the first amendment scope (i.e. 0-10), and with first to revise the corresponding modified logo of scope 0-10 be 1; Suppose in above-mentioned 305, calculate new path cost and be designated 13, current device by 13 with current device know preset amendment scope compared with, can know that the path cost of the new target clock information calculated with this in the default amendment scope of current device identifies 13 corresponding amendment scopes is the second amendment scope (i.e. 11-15), and the modified logo corresponding with the second amendment scope is 2.
307, current device judges that whether the described modified logo determined is identical with the modified logo that target clock information is carried.If identical, perform 308, otherwise, perform 309.
In the present embodiment, AN4 judges that whether the modified logo that in above-mentioned 306, AN4 determines is identical with the modified logo carried in the ESMC of AN5.Such as, if the modified logo carried in the ESMC of AN5 is 1, the modified logo that in above-mentioned 306, AN4 determines is also 1, then perform 308; If the modified logo carried in the ESMC of AN5 is 1, the modified logo that in above-mentioned 306, AN4 determines is 2, then perform 309.
308, the path cost identification renewal of described target clock information is described new path cost mark by current device, sends the target clock information that have updated path cost mark to upstream device.
Path cost identification renewal in target clock information is the new path cost mark calculated in above-mentioned 305 by AN4, sends the target clock information that have updated path cost mark to downstream device A M1.
309, the path cost identification renewal of described target clock information is described new path cost mark by current device, the modified logo of described target clock information is updated to the modified logo that described current device is determined, the class letter of described target clock information is reduced a fixed value preset, send the target clock information that have updated path cost mark, modified logo and class letter to upstream device.
Path cost identification renewal in target clock information is the new path cost mark calculated in above-mentioned 305 by AN4, modified logo in target clock information is updated to the modified logo determined in above-mentioned 306, by in target clock information grade reduce by one preset fixed value, such as reduce one-level, send the target clock information that have updated path cost mark, modified logo and class letter to downstream device A M1.
Optionally, if in the target clock information after reducing the class letter that carries lower than lowermost level (as ITU-T G.781-2008 in the EEC of definition be lowermost level, the clock source of the clock information corresponding with EEC class letter is unavailable clock), upgrade the class letter in target clock information with the class letter that lowermost level is corresponding.
In the present embodiment, current device is according to the class letter of clock information and path cost mark select target clock information, when receiving the clock information grade difference that upstream equipment sends, select the high clock information of grade as target clock information, when the clock message level receiving upstream equipment transmission is identical, little clock information is identified as target clock information calibration local clock according to the path cost of clock information, the numerical value that the path cost of target clock message identifies is added with the path cost value that current device is preset and obtains new path cost and identify, upgrade the path cost mark in target clock message, and identify according to new path cost, the amendment scope preset and the modified logo corresponding with default amendment scope, determine whether to need to reduce the class letter carried in target clock message, afterwards the clock information after renewal is sent to upstream device, achieving can when changing the original topological structure of network and host-host protocol, choose from the clock information on optimal path as target clock information calibration local clock, make clock information that current device actual selection clock quality is high to calibrate local clock.
It should be noted that, clock information processing method in above-described embodiment may be used for packet network, in other embodiments, this method can also at other clock synchronization protocol of application as in the network of 1588v2, and the implementation procedure of its implementation procedure and above-described embodiment is similar.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Embodiments provide a kind of clock information treatment facility 400, Fig. 4 is the structural representation of clock information treatment facility embodiment one of the present invention, as shown in Figure 4, this clock information treatment facility 400 comprises: receiving element 401, comparing unit 402, clock unit 403, control unit 404 and transmitting element 405, wherein:
Receiving element 401, for receiving at least one clock information sent from upstream equipment, described clock information comprises: class letter, modified logo and path cost identify;
Comparing unit 402, for when the class letter of the clock information received is identical, selects a path cost to identify minimum clock information as target clock information;
Clock unit 403, calibrates local clock for adopting described target clock information;
Control unit 404, for calculating new path cost mark, the path cost value sum preset that the numerical value and one that described new path cost is designated the path cost mark of described target clock information is greater than zero;
Determine to identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with the path cost of described new target clock information;
When the described modified logo determined is identical with the modified logo that described target clock information is carried, be described new path cost mark by the path cost identification renewal of described target clock information;
When the described modified logo determined is different from the modified logo that described target clock information is carried, upgrade described target clock information, it is described new path cost mark by the path cost identification renewal of described target clock information, the modified logo of described target clock information is updated to the modified logo that described current device is determined, the class letter of described target clock information is reduced a fixed value preset;
Transmitting element 405, for when the described modified logo determined is identical with the modified logo that described target clock information is carried, have updated the target clock message of path cost mark to upstream device described in sending; When the described modified logo determined is different from the modified logo that described target clock information is carried, described in sending to upstream device, have updated the target clock information of path cost mark, modified logo and class letter.
Optionally, identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with described new path cost, comprising:
Described default amendment scope is a numerical intervals;
Described modified logo is any one in numerical value or identifier;
The modified logo that arbitrary described default amendment scope has one uniquely to correspond.
Optionally, described control unit 404 comprises and falls one-level subelement, for the class letter of described target clock information is reduced one-level.
Optionally, described transmitting element 405, can also be used for when the described modified logo determined is identical with the modified logo that described target clock information is carried, described in sending to the upstream equipment sending described target clock information, have updated the target clock information of path cost mark; When the described modified logo determined is different from the modified logo that described target clock information is carried, send the target clock information that have updated path cost mark, modified logo and class letter to the upstream equipment sending described target clock information.
The clock information treatment facility of the present embodiment may be used for performing embodiment one and the clock information processing method described in embodiment two, and its specific implementation process and technique effect can reference method embodiment one and embodiments two, repeat no more herein.
Embodiments provide the structural representation that a kind of clock information treatment facility 500, Fig. 5 is clock information treatment facility embodiment one of the present invention, as shown in Figure 5, this clock information treatment facility 500 comprises: bus 540; And be connected to the processor 510 of bus 540, memory 520 and network interface 530, wherein this network interface 530 is for receiving at least one clock information of upstream equipment transmission, and described clock information comprises: class letter, modified logo and path cost identify; This memory 520 is for storing instruction, this processor 510 is for performing this instruction for when the class letter of the clock information received is identical, select a path cost to identify minimum clock information as target clock information, adopt described target clock information to calibrate local clock; Calculate new path cost mark, the path cost value sum preset that the numerical value and one that described new path cost is designated the path cost mark of described target clock information is greater than zero; Determine to identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with described new path cost; When the described modified logo determined is identical with the modified logo that described target clock information is carried, be described new path cost mark by the path cost identification renewal of described target clock information; When the described modified logo determined is different from the modified logo that described target clock information is carried, it is described new path cost mark by the path cost identification renewal of described target clock information, the modified logo of described target clock information is updated to the modified logo that described current device is determined, the class letter of described target clock information is reduced a fixed value preset; When the described modified logo determined is identical with the modified logo that described target clock information is carried, by network interface 530 to the target clock information that have updated path cost mark described in upstream device transmission; When the described modified logo determined is different from the modified logo that described target clock information is carried, by network interface 530 to the target clock information that have updated path cost mark, modified logo and class letter described in upstream device transmission.
Optionally, this processor 510 is for performing this instruction for the class letter of described target clock information is reduced one-level.
Optionally; this processor 510 for performing this instruction also for when the described modified logo determined is identical with the modified logo that described target clock information is carried, by network interface 530 to send described target clock information upstream equipment send described in have updated path cost mark target clock information; When the described modified logo determined is different from the modified logo that described target clock information is carried, described in being sent to the upstream equipment sending described target clock information by network interface 530, have updated the target clock information of path cost mark, modified logo and class letter.
The clock information treatment facility of the present embodiment may be used for performing embodiment one and the clock information processing method described in embodiment two, and its specific implementation process and technique effect can reference method embodiment one and embodiments two, repeat no more herein.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a clock information processing method, is characterized in that, comprising:
Current device receives at least one clock information sent from upstream equipment, and described clock information comprises: class letter, modified logo and path cost identify;
When the class letter of the clock information received is identical, described current device selects a path cost to identify minimum clock information as target clock information, adopts described target clock information to calibrate local clock;
Described current device calculates new path cost mark, the path cost value sum preset that the numerical value and one that described new path cost is designated the path cost mark of described target clock message is greater than zero;
Described current device is determined to identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with described new path cost;
When the modified logo that described current device is determined is identical with the modified logo that described target clock information is carried, the path cost identification renewal of described target clock information is described new path cost mark by described current device, have updated the target clock information of path cost mark to upstream device described in sending;
When the modified logo that described current device is determined is different from the modified logo that described target clock information is carried, the path cost identification renewal of described target clock information is described new path cost mark by described current device, the modified logo of described target clock information is updated to the modified logo that described current device is determined, the class letter of described target clock information is reduced a fixed value preset, send the target clock information that have updated path cost mark, modified logo and class letter to upstream device.
2. method according to claim 1, is characterized in that, identifies corresponding default amendment scope and the modified logo corresponding with described default amendment scope, comprising with described new path cost:
Described default amendment scope is a numerical intervals;
Described modified logo is any one in numerical value or identifier;
The modified logo that arbitrary described default amendment scope has one uniquely to correspond.
3. method according to claim 1 and 2, is characterized in that, the described fixed value class letter of described target clock information reduction by preset, comprising:
The class letter of described target clock information is reduced one-level.
4. method according to claim 1 and 2, is characterized in that, also comprises:
When the modified logo that described current device is determined is identical with the modified logo that described target clock information is carried, described in described current device sends to the upstream equipment sending described target clock information, have updated the target clock information of path cost mark;
When the modified logo that described current device is determined is different from the modified logo that described target clock information is carried, described current device sends the target clock information that have updated path cost mark, modified logo and class letter to the upstream equipment sending described target clock information.
5. method according to claim 1 and 2, is characterized in that,
When described current device is router, described default path cost value is the first value;
When described current device is packet microwave equipment, described default path cost value is the second value;
When described current device is the miscellaneous equipment beyond router and packet microwave equipment, described default path cost value is the 3rd value.
6. a clock information treatment facility, is characterized in that, comprising:
Receiving element, for receiving at least one clock information sent from upstream equipment, described clock information comprises: class letter, modified logo and path cost identify;
Comparing unit, for when the class letter of the clock information received is identical, selects a path cost to identify minimum clock information as target clock information;
Clock unit, calibrates local clock for adopting described target clock information;
Control unit, for calculating new path cost mark, the path cost value sum preset that the numerical value and one that described new path cost is designated the path cost mark of described target clock information is greater than zero;
Determine to identify corresponding default amendment scope and the modified logo corresponding with described default amendment scope with the path cost of described new target clock information;
When the described modified logo determined is identical with the modified logo that described target clock information is carried, be described new path cost mark by the path cost identification renewal of described target clock information;
When the described modified logo determined is different from the modified logo that described target clock information is carried, upgrade described target clock information, it is described new path cost mark by the path cost identification renewal of described target clock information, the modified logo of described target clock information is updated to the described modified logo determined, the class letter of described target clock information is reduced a fixed value preset;
Transmitting element, for when the described modified logo determined is identical with the modified logo that described target clock information is carried, have updated the target clock message of path cost mark to upstream device described in sending; When the described modified logo determined is different from the modified logo that described target clock information is carried, described in sending to upstream device, have updated the target clock information of path cost mark, modified logo and class letter.
7. clock information treatment facility according to claim 6, is characterized in that, identifies corresponding default amendment scope and the modified logo corresponding with described default amendment scope, comprising with described new path cost:
Described default amendment scope is a numerical intervals;
Described modified logo is any one in numerical value or identifier;
The modified logo that arbitrary described default amendment scope has one uniquely to correspond.
8. the clock information treatment facility according to claim 6 or 7, is characterized in that, described control unit comprises and falls one-level subelement, for the class letter of described target clock information is reduced one-level.
9. the clock information treatment facility according to claim 6 or 7, is characterized in that,
Described transmitting element, also for when the described modified logo determined is identical with the modified logo that described target clock information is carried, have updated the target clock information of path cost mark to the upstream equipment sending described target clock information described in sending; When the described modified logo determined is different from the modified logo that described target clock information is carried, send the target clock information that have updated path cost mark, modified logo and class letter to the upstream equipment sending described target clock information.
10. the clock information treatment facility according to claim 6 or 7, is characterized in that,
When described clock information treatment facility is router, described default path cost value is the first value;
When described clock information treatment facility is packet microwave equipment, described default path cost value is the second value;
When described clock information treatment facility is the miscellaneous equipment beyond router and packet microwave equipment, described default path cost value is the 3rd value.
CN201210430717.0A 2012-11-01 2012-11-01 Clock information processing method and device Active CN102946290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210430717.0A CN102946290B (en) 2012-11-01 2012-11-01 Clock information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210430717.0A CN102946290B (en) 2012-11-01 2012-11-01 Clock information processing method and device

Publications (2)

Publication Number Publication Date
CN102946290A CN102946290A (en) 2013-02-27
CN102946290B true CN102946290B (en) 2015-05-27

Family

ID=47729202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210430717.0A Active CN102946290B (en) 2012-11-01 2012-11-01 Clock information processing method and device

Country Status (1)

Country Link
CN (1) CN102946290B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556221A (en) * 2020-04-23 2021-10-26 西门子股份公司 Method and device for timing in redundant network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6185247B1 (en) * 1998-02-27 2001-02-06 Nortel Networks Limited Method of reducing synchronization rearrangements in synchronous transmission systems
CN101043316A (en) * 2006-05-24 2007-09-26 华为技术有限公司 Synchronous method and system
CN101159533A (en) * 2007-11-06 2008-04-09 中兴通讯股份有限公司 Clock chain circuit automatic protection method in packet transmission network
CN101286835A (en) * 2007-04-11 2008-10-15 华为技术有限公司 Clock tracing method, device and network element device
US7613212B1 (en) * 2003-06-10 2009-11-03 Atrica Israel Ltd. Centralized clock synchronization for time division multiplexed traffic transported over Ethernet networks
CN102208958A (en) * 2011-07-04 2011-10-05 瑞斯康达科技发展股份有限公司 Clock synchronization method for synchronous Ethernets, as well as synchronous information sending/receiving method, device and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8149881B2 (en) * 2009-06-26 2012-04-03 Alcatel Lucent Centralized node clock auto reconfiguration

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6185247B1 (en) * 1998-02-27 2001-02-06 Nortel Networks Limited Method of reducing synchronization rearrangements in synchronous transmission systems
US7613212B1 (en) * 2003-06-10 2009-11-03 Atrica Israel Ltd. Centralized clock synchronization for time division multiplexed traffic transported over Ethernet networks
CN101043316A (en) * 2006-05-24 2007-09-26 华为技术有限公司 Synchronous method and system
CN101286835A (en) * 2007-04-11 2008-10-15 华为技术有限公司 Clock tracing method, device and network element device
CN101159533A (en) * 2007-11-06 2008-04-09 中兴通讯股份有限公司 Clock chain circuit automatic protection method in packet transmission network
CN102208958A (en) * 2011-07-04 2011-10-05 瑞斯康达科技发展股份有限公司 Clock synchronization method for synchronous Ethernets, as well as synchronous information sending/receiving method, device and apparatus

Also Published As

Publication number Publication date
CN102946290A (en) 2013-02-27

Similar Documents

Publication Publication Date Title
US8160053B2 (en) Method, apparatus and network element for clock tracing
CN102208958B (en) Clock synchronization method for synchronous Ethernets, as well as synchronous information sending/receiving method, device and apparatus
CN102026364B (en) Precise time protocol message processing method and clock equipment
US20100271936A1 (en) Pre-Computing Alternate Forwarding State in a Routed Ethernet Mesh Network
CN104541465A (en) Synchronization in computer network
CN102006135A (en) Method and device for selecting synchronous clock source
CN102035638A (en) Clock source selection processing method, device and system
US20050207337A1 (en) Method and apparatus for setting up backup path
WO2009011740A2 (en) Method and apparatus for distributing synchronization status messages over a resilient packet ring (rpr)
CN102946290B (en) Clock information processing method and device
CN102916885B (en) MSTP-based (Multiple Spanning Tree Protocol) network topology convergence method, equipment and system
CN102724096B (en) Mixed ring network protection method and network equipment
CN102404152B (en) Method and equipment for identifying response messages
CN116405431A (en) Data processing method, network node and computer readable storage medium
CN109327273B (en) Synchronization information transmission method, synchronization method, network node and storage medium
CN105681229A (en) Method for extending port serial numbers and switch
WO2009000211A1 (en) Method, network device and network system for network clock tracing
CN115152192B (en) PCE controlled network reliability
CN112968725B (en) Satellite link switching method and device
KR102180041B1 (en) Apparatus and method for controlling time synchronization of node
CN101350767B (en) Method for transmitting parallel link packet as well as routing device
CN103051568B (en) File transmitting method, device and switch
CN102821033B (en) Message transmission method and device
CN102970219B (en) The method and apparatus of binding guard ring
CN101753413B (en) Identification method, recognition method and equipment for link types

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201201

Address after: Building 2, No. 3, Fuqian Road, Hailing District, Taizhou City, Jiangsu Province

Patentee after: Taizhou Haitong Asset Management Co.,Ltd.

Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20201201

Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.