CN102946290A - Clock information processing method and device - Google Patents

Clock information processing method and device Download PDF

Info

Publication number
CN102946290A
CN102946290A CN2012104307170A CN201210430717A CN102946290A CN 102946290 A CN102946290 A CN 102946290A CN 2012104307170 A CN2012104307170 A CN 2012104307170A CN 201210430717 A CN201210430717 A CN 201210430717A CN 102946290 A CN102946290 A CN 102946290A
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.)
Granted
Application number
CN2012104307170A
Other languages
Chinese (zh)
Other versions
CN102946290B (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

Images

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 invention relates to the communication technology, relates in particular to clock information processing method and device.
Background technology
Fast development along with the communication technology, it is the trend of mobile packet data net future development that all-IP (Internet Protocol procotol) is changed, in order to satisfy the synchronisation requirement of mobile packet data net, G.8261, the concept of synchronous ether has been proposed, to solve in the Packet Data Network problem of clock synchronous between each node in the synchronous ethernet standard.
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 current device is sent a plurality of upstream equipments compares, if the class letter that carries in the clock information that wherein trip equipment is sent on the way is higher than the class letter that carries in the clock information that other upstream equipment sends, current device is chosen the high clock information of class letter as the target clock information so, adopts target clock information calibration local clock; If the class letter that carries in the clock information that a plurality of upstream equipments are sent is identical, the clock information that current device is then selected to receive on the highest interface of its priority is calibrated local clock as the target clock information, and wherein interface priority is pre-configured.
In the prior art, adopt above-mentioned clock information processing method, may cause current device in fact to choose the relatively poor clock information of clock quality and calibrate local clock.
Summary of the invention
The embodiment of the invention provides a kind of clock information processing method and device, and current device is actual has chosen the problem that the relatively poor clock information of clock quality is calibrated local clock to solve in the prior art.
Embodiment of the invention first aspect provides a kind of clock information processing method, comprising:
Current device receives at least one clock information that sends from upstream equipment, and described clock information comprises: class letter, modified logo and path cost sign;
When the class letter of the clock information that receives was identical, described current device selected the minimum clock information of path cost sign as the target clock information, adopts described target clock information calibration local clock;
Described current device calculates new path cost sign, described new path cost be designated described target clock message the path cost sign numerical value with one greater than zero the path cost value sum of presetting;
Described current device determine the default modification scope corresponding with the path cost sign of described new target clock information and and the corresponding modified logo of described default modification scope;
When the modified logo that the modified logo of determining when described current device and described target clock information carry is identical, described current device is described new path cost sign with the path cost identification renewal of described target clock information, and equipment sends the described target clock information that upgrades the path cost sign downstream;
The modified logo that the modified logo of determining when described current device and described target clock information carry is not simultaneously, described current device is described new path cost sign with 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 default fixed value, and equipment sends the target clock information that has upgraded path cost sign, modified logo and class letter downstream.
In the possible implementation of the first of first aspect, identify corresponding default modification scope with described new path cost and reach the modified logo corresponding with described default modification scope, comprising:
Described default modification scope is that a numerical value is interval;
Described modified logo is any in numerical value or the identifier;
Arbitrary described default modification scope has a unique with it corresponding modified logo.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second of first aspect, described class letter with described target clock information reduces a default fixed value, comprising:
The class letter of described target clock information is reduced one-level.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the third possible implementation of first aspect, also comprise:
When the modified logo that the modified logo of determining when described current device and described target clock information carry was identical, described current device sent the described target clock information that path cost identifies that upgraded to the upstream equipment that sends described target clock information; The modified logo that the modified logo of determining when described current device and described target clock information carry not simultaneously, described current device has upgraded the target clock information of path cost sign, modified logo and class letter to the upstream equipment transmission that sends described target clock information.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the 4th kind of possible implementation of first aspect,
When described current device was router, described default path cost value was the first value;
When described current device was packet microwave equipment, described default path cost value was the second value;
During miscellaneous equipment beyond described current device is router and packet microwave equipment, described default path cost value is the 3rd value.
Embodiment of the invention second aspect provides a kind of clock information treatment facility, comprising:
Receiving element is used for receiving at least one clock information that sends from upstream equipment, and described clock information comprises: class letter, modified logo and path cost sign;
Comparing unit is used for class letter when the clock information that receives when identical, selects a path cost to identify the clock information of minimum as the target clock information;
Clock unit is used for adopting described target clock information calibration local clock;
Control unit is used for calculating new path cost sign, described new path cost be designated described target clock information the path cost sign numerical value with one greater than zero the path cost value sum of presetting;
Determine the default modification scope corresponding with the path cost sign of described new target clock information and and the corresponding modified logo of described default modification scope;
When the modified logo that carries when described definite modified logo and described target clock information is identical, be described new path cost sign with the path cost identification renewal of described target clock information;
The modified logo that carries when described definite modified logo and described target clock information is not simultaneously, upgrade described target clock information, be described new path cost sign with 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 default fixed value;
Transmitting element is used for the modified logo that carries when described definite modified logo and described target clock information when identical, and downstream equipment transmission is described has upgraded the target clock message that path cost identifies; The modified logo that carries when described definite modified logo and described target clock information not simultaneously, equipment sends the described target clock information that upgrades path cost sign, modified logo and class letter downstream.
In the possible implementation of the first of second aspect, identify corresponding default modification scope with described new path cost and reach the modified logo corresponding with described default modification scope, comprising:
Described default modification scope is that a numerical value is interval;
Described modified logo is any in numerical value or the identifier;
Arbitrary described default modification scope has a unique with it corresponding modified logo.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second of second aspect, described control unit comprises and falls the one-level subelement, is used for the class letter of described target clock information is reduced one-level.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the third possible implementation of second aspect,
Described transmitting element also is used for the modified logo that carries when described definite modified logo and described target clock information when identical, has upgraded the target clock information that path cost identifies to the upstream equipment transmission that sends described target clock information is described; The modified logo that carries when described definite modified logo and described target clock information sends the target clock information that has upgraded path cost sign, modified logo and class letter not simultaneously to the upstream equipment that sends described target clock information.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the 4th kind of possible implementation of second aspect,
When described clock information treatment facility was router, described default path cost value was the first value;
When described clock information treatment facility was packet microwave equipment, described default path cost value was the second value;
During miscellaneous equipment beyond described clock information treatment facility is router and packet microwave equipment, described default path cost value is the 3rd value.
Clock information processing method and device that the embodiment of the invention provides, current device is according to class letter and the path cost sign select target clock information of clock information, when the class letter of the clock information that receives is all identical, select the clock information of a path cost sign minimum as the target clock information, the path cost value addition that the numerical value of the path cost of target clock message sign and current device is default obtains new path cost and identifies, more the path cost in the fresh target clock message identifies, and according to new path cost sign, default modification scope and the modified logo corresponding with presetting the modification scope, determine whether to need to reduce the class letter that carries in the target clock message, clock information after will upgrading afterwards sends to upstream device, having realized can be in the situation that change the original topological structure of network and host-host protocol, choose from the clock information on the optimal path as target clock information calibration local clock so that the current device actual selection the high clock information of clock quality calibrate local clock.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do one to the accompanying drawing of required use in embodiment or the description of the Prior Art and introduce simply, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of clock information processing method that Fig. 1 provides for the embodiment of the invention;
Fig. 2 is clock signal transport network topology structural representation;
The flow chart of another clock information processing method that Fig. 3 provides for the embodiment of the invention;
The structural representation of a kind of clock information treatment facility that Fig. 4 provides for the embodiment of the invention;
The structural representation of a kind of clock information treatment facility that Fig. 5 provides for the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawing among the present invention, the technical scheme among the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The flow chart of a kind of clock information processing method that Fig. 1 provides for the embodiment of the invention one.Fig. 2 is clock signal transport network topology structural representation of the present invention.In the embodiment of the invention one and following each embodiment, current device can be other intermediary device in router, switch, packet microwave or the network.As shown in Figure 1, the method comprises following process:
101, current device receives at least one clock information that sends from upstream equipment.
In 101, current device can receive the upstream equipment of one or more this current equipment to the clock information of its transmission, and this clock information can comprise: class letter, modified logo and path cost sign.
Current device for example can be AN5 as shown in Figure 2, and AN5 reception upstream equipment AN4 and upstream equipment AN6 are to the clock information of its transmission.
In the present embodiment and following each embodiment, alternatively,
Class letter can be used for the clock source credit rating of this clock information of sign, the synchronization layer function standard I TU-T that can select International Telecommunications Union G.781-2008 in the clock source credit rating of definition.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 grade sign is the highest, when clock source quality class letter is SSU-A, the clock source credit rating of the clock information corresponding with this grade sign is taken second place, when clock source quality class letter is SEC/EEC, the clock source of the clock information corresponding with this grade sign is unavailable clock, namely can not be as the local clock of target clock alignment current device.
The path cost sign is used for according to the transmission path of this clock information at network, identifies the path cost value of this clock information.
Path cost sign and modified logo can be included in the extended field of this clock information.Table 1 is path cost sign and the form of modified logo in extended field.Referring to table 1, wherein, modified logo takies 2 numerical value that can be used for the sign modified logo, and the path cost sign takies 6 numerical value that can be used for sign path cost sign.
Table 1. path cost sign and the form of modified logo in extended field
1 byte Type: 0x 05
2 bytes Length: 00-04
2 Modified logo
6 The path cost sign
102, when the class letter of the clock information that receives is identical, described current device selects the minimum clock information of path cost sign as the target clock information, adopts described target clock information calibration local clock.
In 102, current device selects a clock information as the target clock according to class letter and the path cost sign of described at least one clock information, adopts described target clock information calibration local clock.
For example, AN5 can select a clock information as the target clock information of AN5 to class letter and the path cost sign of the clock information of its transmission from the clock information of AN4 and AN6 transmission according to AN4 and AN6, adopts the local clock of this target clock information calibration AN5.When the class letter that carries in the clock information that AN4 and AN6 send to AN5 is identical, AN5 compares the path cost sign of carrying in the clock information of AN4 and AN6 transmission, the path cost of the path cost sign numerical value minimum of carrying in the clock information of selecting AN4 and AN6 to send identifies corresponding clock information as the target clock information of AN5, is used for calibrating the local clock of AN5.
103, current device calculates new path cost sign, described new path cost be designated described target clock information the path cost sign numerical value with one greater than zero the path cost value sum of presetting.
Current device calculates new path cost sign, and the basis of the path cost sign that the target clock information of namely selecting in above-mentioned 102 is entrained adds one greater than zero default path cost value, the path cost value after obtaining calculating.
Further, on the basis of technique scheme, described default path cost value greater than zero is specifically as follows:
When current device was router, default path cost value can be for one greater than the first value of zero;
When current device was packet microwave equipment, default path cost value can be for one greater than the second value of zero;
When current device was miscellaneous equipment beyond router and the packet microwave equipment, default path cost value can be for one greater than zero the 3rd value.
In the present embodiment, preferably:
The first value can be 1;
The second value can be 2;
The 3rd value can be 4.
104, described current device determines that identifying corresponding default modification scope with described new path cost reaches the modified logo corresponding with described default modification scope.
In 104, described current device is compared described new path cost sign with the default modification scope of current device, determine modification scope corresponding with this new path cost sign in the default modification scope of current device, and the modified logo corresponding with being somebody's turn to do default modification scope, in the present embodiment, the default modification scope of current device and the modified logo corresponding with this modification scope, default value for equipment self, current device also can be known by alternate manner the occurrence of described default modification scope and the modified logo corresponding with described default modification scope in other embodiments, is not construed as limiting herein.
For instance, described default modification scope can be interval for a numerical value, described modified logo can be in numerical value or the identifier any one, but arbitrary described default modification scope has a unique corresponding modified logo with it, in the present embodiment for example: the default modification scope of current device is 0-10,11-15,16-20, greater than 20, the modified logo corresponding with the scope of modification 0-10 is symbol A, the modified logo corresponding with the scope of modification 11-15 is symbol B, the modified logo corresponding with the scope of modification 16-20 is symbol C, be symbol D with the modification scope greater than 20 corresponding modified logos, if the value of the new path cost sign that calculates in above-mentioned 103 is 8, current device can determine that the modification scope corresponding with 8 is 0-10 in the default modification scope of current device, and the modified logo corresponding with being somebody's turn to do default modification scope 0-10 is A.
When the modified logo that the modified logo of 105, determining when described current device and described target clock information carry is identical, described current device is described new path cost sign with the path cost identification renewal of described target clock information, and equipment sends the described target clock information that upgrades the path cost sign downstream.
In 105, if the modified logo that current device is determined is identical with the modified logo that described target clock information carries, current device is the new path cost sign that calculates in above-mentioned 103 with the path cost identification renewal of described target clock information, and the target clock information that will upgrade the path cost sign sends to the upstream device of this current equipment.
For instance, if the new path cost that calculates in above-mentioned 103 is designated 8, the modified logo of determining in above-mentioned 104 is A, the entrained modified logo of target clock information also is A, then current device is updated to 8 with the value of the sign of the path cost in the target clock message, and this target clock information that upgraded the path cost sign is sent to the upstream device of this current equipment.
Further, current device can also send to the upstream equipment that sends this target clock information to this current equipment with the described described target clock information that upgraded the path cost sign, to prevent into ring, prevent that namely this upstream equipment from choosing this upstream device and forming loop to the clock information of its transmission as the target clock information.
106, the modified logo that the modified logo of determining when described current device and described target clock information carry is not simultaneously, described current device upgrades described target clock information, be described new path cost sign with 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 default fixed value, and equipment sends the target clock information that has upgraded path cost sign, modified logo and class letter downstream.
For instance, if the new path cost that calculates in above-mentioned 103 is designated 11, current device is that 11 modified logos of determining are B according to the value of path cost sign in above-mentioned 104, the entrained modified logo of target clock information is A, then current device is 11 with the path cost identification renewal of target clock information, the modified logo of target clock information is updated to B, the class letter of target clock information is reduced a default fixed value, and this was upgraded the path cost sign, the upstream device of equipment sent before clockwise was deserved during the target of modified logo and class letter.
Further, current device can also send to the upstream equipment that sends this target clock information to this current equipment with the described described target clock information that upgraded path cost sign, modified logo and class letter, to prevent into ring, prevent that namely this upstream equipment from choosing this upstream device and forming loop to the clock information of its transmission as the target clock information.
Need to prove, the order of writing of each step does not represent sequencing in its implementation inevitably in above-described embodiment, other embodiment also can carry out first write the order after step, the preceding step of order is write in rear execution, and each step execution sequence of above-described embodiment is not write the restriction of order.For example, above-mentioned 102 can be in above-mentioned 103 rear execution, also can be in above-mentioned 104 rear execution.
In the present embodiment, current device is according to class letter and the path cost sign select target clock information of clock information, when the class letter of the clock information that receives is all identical, select the clock information of a path cost sign minimum as the target clock information, the path cost value addition that the numerical value of the path cost of target clock message sign and current device is default obtains new path cost and identifies, more the path cost in the fresh target clock message identifies, and according to new path cost sign, default modification scope and the modified logo corresponding with presetting the modification scope, determine whether to need to reduce the class letter that carries in the target clock message, clock information after will upgrading afterwards sends to upstream device, having realized can be in the situation that change the original topological structure of network and host-host protocol, choose from the clock information on the optimal path as target clock information calibration local clock so that the current device actual selection the high clock information of clock quality calibrate local clock.
The flow chart of the clock information processing method that Fig. 3 provides for the embodiment of the invention two, the below describes the clock information processing method of current device in detail as an example of Fig. 3 example, please also refer to Fig. 3 and Fig. 2.
In the present embodiment two, the clock signal transmission network can be packet network, this packet network satisfies the clock synchronous demand of this packet network by synchronous ether technology, particularly, the clock information that upstream equipment in this packet network sends to upstream device can be ether synchronization message passage (Ethernet Synchronization Messaging Channel, ESMC).The below is that AN4 describes the clock information processing method in detail with current device:
301, receive the clock information that upstream equipment sends.
Current device AN4 receives the clock information that upstream equipment AN3 and AN5 send to AN4 each second, in other embodiments, AN4 can also receive from 3,4 even the more upstream equipments clock information to its transmission, and the clock information that receives of AN4 for example can be ESMC in the present embodiment.
302, determine whether to carry in the described clock information path cost sign and modified logo.If carry, carry out 304; Otherwise, carry out 303.
For instance, whether AN4 can carry the type-length-value (Type-Length-Value that type is 0x05 by judging AN3 or AN5 in the ESMC of its transmission, TLV) determine whether to carry among the ESMC path cost sign, also can determine by judging whether the TLV that carries other type in other embodiments, not do restriction herein.For making things convenient for subsequent descriptions, be that the TLV of 0x05 is called mass shift TLV(Quality Offset Type Length Value, QO TLV with type).
303, current device increases QO TLV and initial value is set in this clock information.
For example, when this clock information is ESMC, can in its reserved place, insert expansion TLV so that carry more information, in the present embodiment, AN4 is inserting QO TLV in the ESMC that does not carry QO TLV sign of its transmission, this QO TLV takies 4 bytes in ESMC, the form of this TLV please refer to table 1.
In the present embodiment, low 6 the initial value that delegated path expense sign for example can partly be set at the Value of QO TLV is 000000, and it is 01 that high 2 initial value that represents modified logo is set.Even this QOTLV that inserts in the reserved place of this ESMC can not lose through third party's network yet.
304, choose target clock information calibration local clock.
If the class letter of the clock information that receives in above-mentioned 301 is different, AN4 selects a highest target clock information of class letter to calibrate local clock as the target clock information; If the class letter of the clock information that receives in above-mentioned 301 is identical, AN4 selects a minimum clock information of path cost sign to calibrate local clock as the target clock information; If the class letter of the clock information that receives in above-mentioned 301 is identical and the path cost sign is also identical, the clock information that AN4 then selects to receive on the highest interface of its equipment interface medium priority is the target clock information.
For example, if the ESMC middle grade that AN3 sends sign is higher than the class letter among the ESMC that AN5 sends, AN4 selects ESMC that AN3 sends as the target clock information of AN4, and adopts the local clock of this target clock information calibration AN4.
If it is identical to the class letter of the clock information of its transmission with AN5 that AN4 receives AN3, the path cost sign is different, and the AN4 clock information that then selecting paths expense sign is little is as the target clock information.For example, with reference to figure 2, if interruption has occured to the link of AG1 tranmitting data register signal owing to fault in AGG1, cause AN3 that AN4 receives to the ESMC of its transmission the Actual path of process be BITS-PRC-AGG2-AG8-AG7-AG6-AG5-AG4-AG3-AG2-AG1-AN1-AN2-AN 3-AN4, BITS is counted from the reference clock source, this clock signal is delivered to AN4 and has passed through altogether 14 equipment and namely passed through 14 and jump, and the AN5 that AN4 receives to the ESMC of its transmission the Actual path of process be BITS-PRC-AGG2-AG8-AG7-AN8-AN7-AN6-AN5-AN4, BITS is counted from the reference clock source, this clock signal is delivered to AN4 and has passed through altogether 9 equipment and namely passed through 9 and jump, if the default path cost value of each equipment is 1, the path cost that carries among the ESMC of AN3 so is designated 14, the path cost that carries among the ESMC of AN5 is designated 9, the ESMC of the AN5 that AN4 selecting paths expense sign is little is as the target clock information of AN4, the local clock that is used for calibration AN4 can be so that AN4 can select to calibrate local clock from the clock information that transmit in the path of optimum after the path changes.
If it is all identical with the path cost sign to the class letter of the clock information of its transmission with AN5 that AN4 receives AN3, if the priority of the interface of the priority ratio AN4 connection AN5 of the interface of AN4 connection AN3 is high, then AN4 selects ESMC that AN3 sends as the target clock information of AN4, and adopts the local clock of this target clock information calibration AN4.
305, calculate new path cost sign.
The path cost value N default 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) the N value be 1, the N value of microwave equipment is 2, the N value of miscellaneous equipment is 4, be that the target clock information is every through an equipment, current device is with the type increase corresponding value of its path cost ident value according to current device, in case the path cost ident value reaches certain numerical value, the class letter that then carries in this target clock information of associated modification.
In the present embodiment, if AN4 selects ESMC that AN5 sends as the target clock information in above-mentioned 304, the value of the path cost sign of carrying among the ESMC that AN5 sends is 9, and the N value of suppose AN4 is 1, then obtains new path cost after the AN4 calculating and is designated 1+9=10; The N value of supposing AN4 is 4, and the new path cost that then obtains after the AN4 calculating is designated 4+9=13.
306, current device determines that identifying corresponding default modification scope with described new path cost reaches the modified logo corresponding with described default modification scope.
Default modification scope can be interval for a numerical value, modified logo can be in numerical value or the identifier any one, but arbitrary described default modification scope has a unique corresponding modified logo with it, in the present embodiment for example: the default modification scope of current device AN4 is: first revises scope 0-10, second revises scope 11-15, the 3rd modification scope 16-20 and the 4th modification scope are greater than 20, the default modification scope known of current device AN4 can be other default modification scope in other embodiments, be not construed as limiting herein, in the default modification scope that AN4 is known, the modified logo corresponding with the scope of modification 0-10 is numerical value 1, the modified logo corresponding with the scope of modification 11-15 is numerical value 2, the modified logo corresponding with the scope of modification 16-20 is numerical value 3, be numerical value 4 with the modification scope greater than 20 corresponding modified logos.Suppose in above-mentioned 305, calculate new path cost and be designated 10, current device is compared with the default modification scope that current device is known 10, can know in the default modification scope of current device that identifying 10 corresponding modification scopes with new path cost that this calculates is the first modification scope (being 0-10), and the modified logo corresponding with the first modification scope 0-10 is 1; Suppose in above-mentioned 305, calculate new path cost and be designated 13, current device is compared with the default modification scope that current device is known 13, can know in the default modification scope of current device that identifying 13 corresponding modification scopes with the path cost of this new target clock information that calculates is the second modification scope (being 11-15), and the modified logo corresponding with the second modification scope is 2.
307, current device judges whether described definite modified logo is identical with the modified logo that the target clock information carries.If identical, carry out 308, otherwise, carry out 309.
In the present embodiment, AN4 judges whether the modified logo that carries among the ESMC of modified logo that AN4 in above-mentioned 306 determines and AN5 is identical.For example, if the modified logo that carries among the ESMC of AN5 is 1, the modified logo that AN4 determines in above-mentioned 306 also is 1, then carries out 308; If the modified logo that carries among the ESMC of AN5 is 1, the modified logo that AN4 determines in above-mentioned 306 is 2, then carries out 309.
308, current device is described new path cost sign with the path cost identification renewal of described target clock information, and equipment sends the target clock information that has upgraded the path cost sign downstream.
AN4 is the new path cost sign that calculates in above-mentioned 305 with the path cost identification renewal in the target clock information, and device A M1 sends the target clock information that has upgraded the path cost sign downstream.
309, current device is described new path cost sign with 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 default fixed value, and equipment sends the target clock information that has upgraded path cost sign, modified logo and class letter downstream.
AN4 is the new path cost sign that calculates in above-mentioned 305 with the path cost identification renewal in the target clock information, modified logo in the target clock information is updated to the modified logo of determining in above-mentioned 306, with in the target clock information grade reduce a default fixed value, for example reduce one-level, device A M1 sends the target clock information that has upgraded path cost sign, modified logo and class letter downstream.
Optionally, if the class letter that carries in the target clock information after reducing be 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 the EEC class letter is unavailable clock), come class letter in the fresh target clock information more with class letter corresponding to lowermost level.
In the present embodiment, current device is according to class letter and the path cost sign select target clock information of clock information, when receiving clock information grade that upstream equipment sends not simultaneously, select the high clock information of grade as the target clock information, when the clock message level that receives the upstream equipment transmission is identical, calibrate local clock according to the clock information that the path cost sign of clock information is little as the target clock information, the path cost value addition that the numerical value of the path cost of target clock message sign and current device is default obtains new path cost and identifies, more the path cost in the fresh target clock message identifies, and according to new path cost sign, default modification scope and the modified logo corresponding with presetting the modification scope, determine whether to need to reduce the class letter that carries in the target clock message, clock information after will upgrading afterwards sends to upstream device, having realized can be in the situation that change the original topological structure of network and host-host protocol, choose from the clock information on the optimal path as target clock information calibration local clock so that the current device actual selection the high clock information of clock quality calibrate local clock.
Need to prove, clock information processing method in above-described embodiment can be used for packet network, in other embodiments, this method can also be in the network of using other clock synchronization protocol such as 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 that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The embodiment of the invention provides 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 is used for receiving at least one clock information that sends from upstream equipment, and described clock information comprises: class letter, modified logo and path cost sign;
Comparing unit 402 is used for class letter when the clock information that receives when identical, selects a path cost to identify the clock information of minimum as the target clock information;
Clock unit 403 is used for adopting described target clock information calibration local clock;
Control unit 404 is used for calculating new path cost sign, described new path cost be designated described target clock information the path cost sign numerical value with one greater than zero the path cost value sum of presetting;
Determine the default modification scope corresponding with the path cost sign of described new target clock information and and the corresponding modified logo of described default modification scope;
When the modified logo that carries when described definite modified logo and described target clock information is identical, be described new path cost sign with the path cost identification renewal of described target clock information;
The modified logo that carries when described definite modified logo and described target clock information is not simultaneously, upgrade described target clock information, be described new path cost sign with 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 default fixed value;
Transmitting element 405 is used for the modified logo that carries when described definite modified logo and described target clock information when identical, and downstream equipment transmission is described has upgraded the target clock message that path cost identifies; The modified logo that carries when described definite modified logo and described target clock information not simultaneously, equipment sends the described target clock information that upgrades path cost sign, modified logo and class letter downstream.
Optionally, identify corresponding default modification scope with described new path cost and reach the modified logo corresponding with described default modification scope, comprising:
Described default modification scope is that a numerical value is interval;
Described modified logo is any in numerical value or the identifier;
Arbitrary described default modification scope has a unique with it corresponding modified logo.
Optionally, described control unit 404 comprises and falls the one-level subelement, is used for the class letter of described target clock information is reduced one-level.
Optionally, described transmitting element 405, can also be used for the modified logo that carries when described definite modified logo and described target clock information when identical, upgrade the target clock information that path cost identifies to the upstream equipment transmission that sends described target clock information is described; The modified logo that carries when described definite modified logo and described target clock information sends the target clock information that has upgraded path cost sign, modified logo and class letter not simultaneously to the upstream equipment that sends described target clock information.
The clock information treatment facility of the present embodiment can be used for be carried out embodiment one and embodiment two described clock information processing methods, and its specific implementation process and technique effect can reference method embodiment one and embodiment two, repeat no more herein.
The embodiment of the invention provides a kind of clock information treatment facility 500, and Fig. 5 is the structural representation of clock information treatment facility embodiment one of the present invention, and as shown in Figure 5, this clock information treatment facility 500 comprises: bus 540; And the processor 510 that is connected to bus 540, memory 520 and network interface 530, wherein this network interface 530 is used for receiving at least one clock information that upstream equipment sends, and described clock information comprises: class letter, modified logo and path cost sign; This memory 520 is used for the storage instruction, this processor 510 is used for carrying out this instruction and is used for class letter when the clock information of reception when identical, select the clock information of a path cost sign minimum as the target clock information, adopt described target clock information calibration local clock; Calculate new path cost sign, described new path cost be designated described target clock information the path cost sign numerical value with one greater than zero the path cost value sum of presetting; Determine that identifying corresponding default modification scope with described new path cost reaches the modified logo corresponding with described default modification scope; When the modified logo that carries when described definite modified logo and described target clock information is identical, be described new path cost sign with the path cost identification renewal of described target clock information; The modified logo that carries when described definite modified logo and described target clock information is not simultaneously, be described new path cost sign with 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 default fixed value; When the modified logo that carries when described definite modified logo and described target clock information is identical, by network interface 530 downstream equipment send the described target clock information that has upgraded the path cost sign; The modified logo that carries when described definite modified logo and described target clock information not simultaneously, by network interface 530 downstream equipment send the described target clock information that upgrades path cost sign, modified logo and class letter.
Optionally, this processor 510 is used for carrying out this instruction for the class letter reduction one-level with described target clock information.
Optionally, this processor 510 is used for carrying out this instruction and also is used for the modified logo that carries when described definite modified logo and described target clock information when identical, has upgraded the target clock information that path cost identifies by network interface 530 to the upstream equipment transmission that sends described target clock information is described; When the modified logo that carries when described definite modified logo and described target clock information not simultaneously, by network interface 530 to the described target clock information that upgrades path cost sign, modified logo and class letter of upstream equipment transmission that sends described target clock information.
The clock information treatment facility of the present embodiment can be used for be carried out embodiment one and embodiment two described clock information processing methods, and its specific implementation process and technique effect can reference method embodiment one and embodiment two, repeat no more herein.
It should be noted that at last: above each embodiment is not intended to limit only in order to technical scheme of the present invention to be described; Although with reference to aforementioned each embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away 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 that sends from upstream equipment, and described clock information comprises: class letter, modified logo and path cost sign;
When the class letter of the clock information that receives was identical, described current device selected the minimum clock information of path cost sign as the target clock information, adopts described target clock information calibration local clock;
Described current device calculates new path cost sign, described new path cost be designated described target clock message the path cost sign numerical value with one greater than zero the path cost value sum of presetting;
Described current device determines that identifying corresponding default modification scope with described new path cost reaches the modified logo corresponding with described default modification scope;
When the modified logo that the modified logo of determining when described current device and described target clock information carry is identical, described current device is described new path cost sign with the path cost identification renewal of described target clock information, and equipment sends the described target clock information that upgrades the path cost sign downstream;
The modified logo that the modified logo of determining when described current device and described target clock information carry is not simultaneously, described current device is described new path cost sign with 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 default fixed value, and equipment sends the target clock information that has upgraded path cost sign, modified logo and class letter downstream.
2. method according to claim 1 is characterized in that, identifies corresponding default modification scope with described new path cost and reaches the modified logo corresponding with described default modification scope, comprising:
Described default modification scope is that a numerical value is interval;
Described modified logo is any in numerical value or the identifier;
Arbitrary described default modification scope has a unique with it corresponding modified logo.
3. method according to claim 1 and 2 is characterized in that, described class letter with described target clock information reduces a default fixed value, 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 the modified logo of determining when described current device and described target clock information carry was identical, described current device sent the described target clock information that path cost identifies that upgraded to the upstream equipment that sends described target clock information;
The modified logo that the modified logo of determining when described current device and described target clock information carry not simultaneously, described current device has upgraded the target clock information of path cost sign, modified logo and class letter to the upstream equipment transmission that sends described target clock information.
5. method according to claim 1 and 2 is characterized in that,
When described current device was router, described default path cost value was the first value;
When described current device was packet microwave equipment, described default path cost value was the second value;
During miscellaneous equipment beyond described current device is 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 is used for receiving at least one clock information that sends from upstream equipment, and described clock information comprises: class letter, modified logo and path cost sign;
Comparing unit is used for class letter when the clock information that receives when identical, selects a path cost to identify the clock information of minimum as the target clock information;
Clock unit is used for adopting described target clock information calibration local clock;
Control unit is used for calculating new path cost sign, described new path cost be designated described target clock information the path cost sign numerical value with one greater than zero the path cost value sum of presetting;
Determine the default modification scope corresponding with the path cost sign of described new target clock information and and the corresponding modified logo of described default modification scope;
When the modified logo that carries when described definite modified logo and described target clock information is identical, be described new path cost sign with the path cost identification renewal of described target clock information;
The modified logo that carries when described definite modified logo and described target clock information is not simultaneously, upgrade described target clock information, be described new path cost sign with 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 default fixed value;
Transmitting element is used for the modified logo that carries when described definite modified logo and described target clock information when identical, and downstream equipment transmission is described has upgraded the target clock message that path cost identifies; The modified logo that carries when described definite modified logo and described target clock information not simultaneously, equipment sends the described target clock information that upgrades path cost sign, modified logo and class letter downstream.
7. clock information treatment facility according to claim 6 is characterized in that, identifies corresponding default modification scope with described new path cost and reaches the modified logo corresponding with described default modification scope, comprising:
Described default modification scope is that a numerical value is interval;
Described modified logo is any in numerical value or the identifier;
Arbitrary described default modification scope has a unique with it corresponding modified logo.
8. according to claim 6 or 7 described clock information treatment facilities, it is characterized in that, described control unit comprises and falls the one-level subelement, is used for the class letter of described target clock information is reduced one-level.
9. according to claim 6 or 7 described clock information treatment facilities, it is characterized in that,
Described transmitting element also is used for the modified logo that carries when described definite modified logo and described target clock information when identical, has upgraded the target clock information that path cost identifies to the upstream equipment transmission that sends described target clock information is described; The modified logo that carries when described definite modified logo and described target clock information sends the target clock information that has upgraded path cost sign, modified logo and class letter not simultaneously to the upstream equipment that sends described target clock information.
10. according to claim 6 or 7 described clock information treatment facilities, it is characterized in that,
When described clock information treatment facility was router, described default path cost value was the first value;
When described clock information treatment facility was packet microwave equipment, described default path cost value was the second value;
During miscellaneous equipment beyond described clock information treatment facility is 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 true CN102946290A (en) 2013-02-27
CN102946290B 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)

Cited By (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 (7)

* 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
US20100329284A1 (en) * 2009-06-26 2010-12-30 Alcatel-Lucent Canada Inc. Centralized node clock auto reconfiguration
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

Patent Citations (7)

* 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
US20100329284A1 (en) * 2009-06-26 2010-12-30 Alcatel-Lucent Canada Inc. Centralized node clock auto reconfiguration
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

Cited By (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

Also Published As

Publication number Publication date
CN102946290B (en) 2015-05-27

Similar Documents

Publication Publication Date Title
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
US20150172220A1 (en) Ethercat packet forwarding with distributed clocking
CN102035638A (en) Clock source selection processing method, device and system
CN103514016A (en) Method and device for upgrading system version and base station controller
US7639603B2 (en) Method and apparatus for setting up backup path
CN113269542A (en) Consensus method, device and storage medium for block chain system
CN113194037A (en) Traffic scheduling method and device
EP4329248A1 (en) Packet forwarding method and apparatus, network device, and storage medium
CN101330343A (en) Synchronization method for rearrange state of net element internal cross unit
CN102404152B (en) Method and equipment for identifying response messages
US8972608B2 (en) User-selectable IEEE 1588 clock class and quality level mapping
CN102946290B (en) Clock information processing method and device
CN109327273B (en) Synchronization information transmission method, synchronization method, network node and storage medium
KR20030023638A (en) Method and device for the time-synchronised relaying of signals
CN107005433A (en) A kind of Timing Processing method and device of flow table item
EP3963762B1 (en) Method and apparatus for switching clock sources
CN113141620B (en) Flexe service processing method and device
CN112152975B (en) Audio data processing method and device
CN116405431A (en) Data processing method, network node and computer readable storage medium
CN108712470B (en) Routing data synchronization method and device, computer device and storage medium
KR102180041B1 (en) Apparatus and method for controlling time synchronization of node
CN102821033B (en) Message transmission method and device
US6574245B1 (en) Enhanced synchronization status messaging
CN104025483A (en) Services, systems and methods for precisely estimating a delay within a network

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

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.

TR01 Transfer of patent right