Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Embodiment one
Fig. 1 is the flow chart according to the clock source selecting method of the microwave network element of the embodiment of the invention, and is as shown in Figure 1, and this method mainly may further comprise the steps S102-step S104:
Step S102; Current microwave network element receives upper level microwave network element through defeated Synchronization Status Message (the Synchronization Status Message of output terminal of clock oral instructions through the input end of clock mouth; Abbreviate SSM as); Wherein, carry the credit rating in said upper level microwave network element present clock source in the said Synchronization Status Message;
Owing to pass through SSM transmit clock source grade in the present embodiment between the two-stage microwave network element, therefore, can support polytype clock interface.In a preferred implementation of present embodiment, the input end of clock mouth of microwave network element includes but not limited to: microwave eat dishes without rice or wine clock port, data sync system (SDH) clock port, and Ethernet (ETH) clock port.The output terminal of clock mouth of microwave network element includes but not limited to: microwave eat dishes without rice or wine clock port, data sync system (SDH) clock port, and Ethernet (ETH) clock port.
The credit rating of carrying in the Synchronization Status Message that step S104, current microwave network element receive according to its each input end of clock mouth, operation clock source selection algorithm is selected the clock source of said current microwave network element.
In embodiments of the present invention, clock source selection algorithm (also can be called the clock switch algorithm) can periodic duty, selects the clock source (also can be called timing reference input) of current microwave network element.
The said method that provides through the embodiment of the invention is realized the protection of microwave network clock based on the mode of SSM, and the microwave network element is selected the clock source according to clock source quality grade; Therefore, the clock source can be configured to two-way, and; Possess simultaneously at the microwave network element under the situation of polytype clock source input; Can adopt unified clock selecting mode, realize that clock selecting and input clock type are irrelevant, improve the flexibility of clock path planning.And, be standard SSM information because microwave eats dishes without rice or wine to transmit, to eating dishes without rice or wine the service bandwidth influence less, thereby can realize the clock protection with less cost.
In the preferred implementation of present embodiment; Upper level microwave network element can adopt 6 kinds of clock source class of SSM standard agreement definition other through the credit rating of carrying among the defeated SSM of output terminal of clock oral instructions; Wherein, these 6 kinds of clock source class do not sort as shown in table 1 from high to low.
Table 1.
In a preferred implementation of present embodiment; Know the credit rating of the active clock source that current microwave network element is selected for the next stage microwave network element that makes current microwave network element; After said current microwave network element is selected the active clock source of said current microwave network element; Current microwave network element can also wherein, carry the credit rating in the clock source of current microwave network element through the output terminal of clock mouth to next stage microwave network element transmission SSM among this SSM.
In this preferred implementation; Under the mode based on SSM; The microwave network element is selected the clock source according to clock source quality grade, and the microwave network element is known the credit rating information in each input clock source, and through SSM with the clock quality class information of this microwave network element to the next stage transmission; Therefore, can solve the problem of clock source auto switching.
When each clock source of the input of microwave network element changed, this microwave network element can carry out the clock protection to be switched, and reselects the clock source.In a preferred implementation of present embodiment; After current microwave network element was selected the clock source of current microwave network element, if current microwave network element receives the Synchronization Status Message of said upper level microwave network element transmission, the credit rating of carrying in this Synchronization Status Message reduced; Perhaps; Current microwave network element and the chain rupture of upper level microwave network element, then current microwave network element are reselected the clock source of current microwave network element through the clock source selection algorithm; And pass through the output terminal of clock mouth to next stage microwave network element transmitting synchronous status message, the credit rating in the clock source that the current microwave network element that carries in this Synchronization Status Message is reselected.
In embodiments of the present invention, the mode of the superior and the subordinate's microwave network element transmitting synchronous status message (SSM) includes but not limited to: the transmission and the reserved bandwidth transmission dual mode of eating dishes without rice or wine in the ether guipure.
Wherein, If adopt transmission in the ether guipure; Then current microwave network element comprises to next stage microwave network element transmitting synchronous status message through the output terminal of clock mouth: current microwave network element is encapsulated in the form of Synchronization Status Message with the Ethernet protocol bag in the Ethernet message; Utilize the Ethernet transmission bandwidth, through the output terminal of clock mouth to next stage microwave network element transmitting synchronous status message.In this case, preferably, in order to guarantee the transmission of Synchronization Status Message, the Ethernet message of encapsulation Synchronization Status Message has high-transmission priority.
If adopt the reserved bandwidth transmission means of eating dishes without rice or wine; Then current microwave network element comprises to next stage microwave network element transmitting synchronous status message through the output terminal of clock mouth: the utilization of current microwave network element eat dishes without rice or wine designated lane through the output terminal of clock mouth to next stage microwave network element transmitting synchronous status message; Wherein, The credit rating that Synchronization Status Message carries is carried in the frame of eating dishes without rice or wine, and takies the reserved bandwidth of eating dishes without rice or wine.
Need to prove, though above-mentioned be example with current microwave network element to next stage microwave network element transmitting synchronous status message, upper level microwave network element also can adopt one of above-mentioned dual mode to current microwave network element transmitting synchronous status message.
In above-mentioned preferred embodiment, the support of SSM information eats dishes without rice or wine to transmit dual mode in reserved bandwidth and the ether guipure, and therefore, the microwave network element can be selected according to self needs, thereby has increased the flexibility of SSM message transmission.
In practical application; Different microwave network elements possibly have different demands, therefore, and in a preferred embodiment of the invention; Different microwave network elements in the system can dispose different clock source selection strategies as required, thereby can improve the clock configuration flexibility.And the microwave network element can when selecting the clock source, according to the clock source selection strategy of this microwave network element configuration, be selected the clock source with the clock source that can select as the set of clock reference candidate source from the timing reference input candidate collection when selecting the clock source.Therefore; In the preferred embodiment; Current microwave network element operation clock source selection algorithm; Select the clock source of current microwave network element to comprise: current microwave network element is according to the clock source selection strategy of current microwave network element configuration, and operation corresponding clock source selection algorithm is selected the clock source from the timing reference input candidate collection.
Wherein, the clock source selection strategy in the preferred embodiment includes but not limited to: only use, automatically switch and preferred the switching with main.
In order to make the clock source in the timing reference input candidate collection keep up-to-date; In a preferred implementation of the embodiment of the invention; Before from said timing reference input candidate collection, selecting the clock source, the credit rating of carrying in the Synchronization Status Message that current microwave network element receives according to its each input end of clock mouth judges whether the credit rating of each input end of clock mouth input changes; If, then according to the credit rating refresh clock reference source candidate collection after changing.Perhaps; If the alarm sign is arranged in the physical layer clock signal in the clock source that current microwave network element receives, perhaps the physical layer clock signal is lost, and perhaps can't receive the SSM information in this clock source; Perhaps; Receive and carry this clock source of indication in the SSM information in this clock source and can then not comprise said clock source in the timing reference input candidate collection as synchronous sign, remove from the timing reference input candidate collection in this clock source of being about to.
Embodiment two
Fig. 2 is the flow chart of the clock source selecting method of microwave network element in accordance with a preferred embodiment of the present invention, and is as shown in Figure 2, and the clock source selecting method in the preferred embodiment mainly may further comprise the steps:
Step S201, upper level input clock credit rating is extracted.
The input end of clock mouth receives the SSM information that the upper level network element sends to this network element, and from SSM information, extracts the credit rating information of upper level clock, and wherein, credit rating information is used for the maintenance of system-timing reference source subsequent set;
Step S202, maintenance system timing reference input candidate collection.
Gather in clock to be selected source when system-timing reference source candidate collection is the system clock source selection, has determined the range of choice in clock source.When physical layer clock signal or SSM information quality change of rank, system-timing reference source candidate collection need be upgraded.Whether the clock source can be in the candidate collection of system-timing reference source, can be according to judging according to standards:
(1) if clock source physical layer clock signal has alarm sign, like the signal alarm that degrades, then this clock source does not get into system-timing reference source candidate collection;
(2) if the physical layer clock signal is a lost condition, then this clock source does not get into system-timing reference source candidate collection;
(3) if certain clock source can't receive SSM information, then this clock source does not get into system-timing reference source candidate collection;
(4) if receiving SSM information is 0xF, expression should be as not synchronously, and then this clock source does not get into system-timing reference source candidate collection.
Step S203: system clock source is selected.
Algorithm periodic duty is switched in clock selecting or protection, from the candidate collection of system-timing reference source, selects current system-timing reference source.Wherein, clock selecting or protection are switched algorithm and are supported three kinds of clock source selection strategies:
(1) only uses with main
The priority that active clock source is defined as configuration is the clock source of 1 (limit priority); Active clock source is as the synchronised clock source under this mode of operation; When active clock source broke down or loses, clock got into the maintenance stage, and the present clock frequency is kept certain time length; Above clock freedom of entry oscillatory regime after the retention time, system clock is selected internal clock.
(2) automatic switchover (non real-time switching)
Under this mode of operation,, and there is the standby clock source, then switches to the standby clock source and carry out synchronously, after the active clock source recovery, do not switch back active clock source if active clock source breaks down or when losing.
(3) the preferred switching (switching in real time)
Under this mode of operation,, and there is the standby clock source, then switches to the standby clock source and carry out synchronously, after the active clock source recovery, switch back active clock source if active clock breaks down or when losing.
Step S204: local output clock quality grade is sent to next stage.
The output terminal of clock mouth sends SSM information with transfer clock credit rating information to the next stage network element, and the output terminal of clock mouth of supporting SSM to send includes but not limited to: microwave eat dishes without rice or wine clock port, SDH clock port and all types of ports of ethernet clock port;
SSM information output treatment principle includes but not limited in this step:
(1) network element present clock source is an external clock: to all direction broadcast synchronization credit ratings, the synchronizing quality grade of broadcasting is the credit rating of external clock;
(2) network element present clock source is an internal clock: if the node network element, to all direction broadcast synchronization credit ratings, the synchronizing quality grade of broadcasting is the credit rating of internal clock; If non-node network element does not externally send the synchronizing quality grade; Usually external clock input node configuration is the node network element, and when external clock lost efficacy, the node network element became whole network clock and follows the tracks of benchmark.Node network element clock source selection strategy is recommended to use and is only used the master with strategy, and under the situation that external clock lost efficacy, node network element use internal clock is followed the tracks of non-node network element clock to prevent the node network element, causes clock tracing Cheng Huan;
(3) current network clock source is for eating dishes without rice or wine clock, SDH clock or synchronous Ethernet clock: to the upper reaches passback synchronizing quality grade DNU (0x0F) that extracts direction, expression should be as not synchronously.To all direction broadcast synchronization credit ratings, the synchronizing quality grade of broadcasting is the clock source quality grade of being extracted;
In step 204, when microwave was eated dishes without rice or wine the SSM message transmission, SSM can be positioned at two positions in microwave is eated dishes without rice or wine frame format, respectively with utilize microwave eat dishes without rice or wine reserved bandwidth with utilize Ethernet bandwidth for transmission mode corresponding.
Mode one: Ethernet in-band channel
As shown in Figure 3, SSM is encapsulated in the Ethernet message with the form of Ethernet protocol bag, meets Ethernet SSM transmission standard.Because hybrid radio will preferentially guarantee the bandwidth that TDM is professional usually, therefore, adopts fixedly SSM Ethernet transmission bandwidth of this mode, guarantee the SSM transmission.In addition; Because the propagation delay time of SSM has certain influence to the protection switch time of clock; Need guarantee that Ethernet wraps in the priority of transmission of microwave network element internal or exchange, therefore, preferably; The microwave network element is supported the high-transmission priority feature of SSM message, to guarantee the protection switch time of the whole network.The ether encapsulation also belongs to the packet encapsulation form, therefore if microwave transmission evolves to full transmitted in packets, and can first-selected this SSM transmission means.
Mode two: the proprietary passage of eating dishes without rice or wine
Shown in accompanying drawing 4, utilize the proprietary channel transfer SSM that eats dishes without rice or wine, the credit rating information of SSM directly is inserted in the frame of eating dishes without rice or wine, and takies the reserved bandwidth of eating dishes without rice or wine.Adopt this mode, the transmission of SSM does not receive service impact, can guarantee the reliability transmitted, and SSM information is directly inserted the frame of eating dishes without rice or wine in addition, can guarantee the real-time of SSM transmission.This mode relatively is fit to present hybrid radio transmission mode.
Embodiment three
The scheme that adopts the embodiment of the invention to provide, the clock protection is switched and is comprised two processes, and the one, the selection course in clock source under the microwave network element normal operation, the one, clock switch process under the microwave network element generation abnormal conditions.In the present embodiment, respectively these two processes are described.
(1) under the network element normal operation
In the present embodiment, under the network element normal operation, the clock source selection process mainly may further comprise the steps:
(1) upper level microwave network element sends SSM information through clock port, and wherein, the clock grade that the SSM that upper level microwave network element sends carries is the credit rating of the current extraction clock of this microwave network element;
(2) a plurality of microwave network elements that receive of a plurality of input ports of the current microwave network element clock SSM information of sending, current microwave network element are selected active clock source through the clock selecting algorithm after extracting the credit rating in the SSM information that each microwave network element sends;
(3) after current microwave network element was confirmed active clock source, to next stage microwave network element transmission SSM information, the credit rating of carrying in this SSM information was the credit rating of the current extraction clock of current microwave network element.
(2) take place under the abnormal conditions
In the present embodiment, taking place under the abnormal conditions, clock protection reversed process mainly may further comprise the steps:
(1) upper level microwave network element clock quality grade reduces, the credit rating information degradation that the SSM information that it issues is carried, and perhaps upper level network element and current network chain rupture causes the current microwave network element clock port of eating dishes without rice or wine can't receive SSM information;
(2) current microwave network element selects other clocks as the system-timing reference source through the clock source selection algorithm, and the credit rating in the SSM information of next stage network element transmission is the credit rating information in new clock source;
(3) credit rating in the SSM information of the current reception of next stage microwave network element of current microwave network element changes, and triggers the clock source selection algorithm and selects the source again.
Embodiment four
In order better to describe technical scheme that the embodiment of the invention the provides application mode at microwave network, present embodiment is described the microwave clock protection process based on SSM of the embodiment of the invention through an instance.
The clock allocation list of each NE that planning forms according to the clock tracing topology is as shown in table 2.
Table 2.
Fig. 5 is according to the clock tracing path sketch map of above-mentioned clock configuration mode under PRC1 and the equal normal condition of PRC2; As shown in Figure 5, under PRC1 and the equal normal condition of PRC2, NE1 follows the tracks of the NE1-1 port and imports outside BITS clock; The SSM clock quality grade of broadcasting is clock G.812; Follow the tracks of the NE2-1 port when NE2 is initial and import outside BITS clock, the SSM clock quality grade of broadcasting is clock G.812, NE4 tracking NE2 clock.The clock quality grade of the NE3-1 of NE3 and the input of NE3-2 port is G.812 clock; Select to follow the tracks of the NE1 clock according to the configuration preference level; And the SSM clock quality grade of externally sending broadcasting is 0x8 (G.812 clock), and the SSM clock quality grade of the NE2-1 of NE2 and NE2-2 port input at this moment is G.812 clock, selects tracking NE3 clock according to the configuration preference level; Therefore final clock tracing path is PRC1>NE1>NE3>NE2>NE4, PRC1>NE1>NE3>NE5.
Fig. 6 is the clock tracing path sketch map under the PRC1 failure conditions.As shown in Figure 6, under the situation that PRC1 lost efficacy, switch in the clock tracing path, and the clock tracing path after switching is PRC2>NE2>NE3>NE5, PRC2>NE2>NE3>NE1, PRC2>NE2>NE4.Concrete reversed process is following: during the PRC1 fault, the NE1-3 port input clock DNU that is superior to NE1 is unavailable, and NE1 at first switches to the use internal clock; The SSM credit rating of overseas broadcast is the SEC clock, and the clock of NE3 broadcasting also is the SEC clock, and NE2 receives that the clock quality grade of NE2-2 port is the SEC clock; Credit rating is lower than the BITS clock quality grade of NE2-1 port input, and NE2 follows the tracks of the BITS clock of NE2-1 port input, and the credit rating information of broadcasting is clock G.812; The NE3 tranmitting data register is switched; Follow the tracks of the NE2 clock, and broadcast quality grade is clock G.812, the NE1-3 port input clock of NE1 is clock G.812; Select to follow the tracks of the NE3 clock, form and switch clock tracing path, back.
Fig. 7 is the clock tracing path sketch map under the situation that PRC2 also lost efficacy.Under the situation that PRC1 lost efficacy is PRC2>NE2>NE3>NE5, PRC2>NE2>NE3>NE1, PRC2>NE2>NE4.Whole network clock grade is reduced to 0xB (G.813 clock).
Embodiment five
According to the embodiment of the invention, a kind of clock source selection device of microwave network element also is provided, this device can be used to realize the foregoing description one to embodiment four described clock source selecting method.
Fig. 8 is the structural representation according to the clock source selection device of the microwave network element of the embodiment of the invention; As shown in Figure 8; This device mainly comprises: receiver module 10; Be used for receiving upper level microwave network element through the defeated Synchronization Status Message of output terminal of clock oral instructions, wherein, carry the credit rating in said upper level microwave network element present clock source in this Synchronization Status Message through the input end of clock mouth; Select module 20, is connected, be used for the credit rating of carrying, move the clock source selection algorithm, select the clock source of said current microwave network element according to the Synchronization Status Message that its each input end of clock mouth receives with receiver module 10.
Through the said apparatus that the embodiment of the invention provides, the SSM Information Selection clock source that the microwave network element can receive according to each input end of clock mouth, thus make that the clock synchronization path planning is more flexible.
In a preferred implementation of the embodiment of the invention; As shown in Figure 9; This device can also comprise: output module 30, be connected with selecting module 20, and be used for through the output terminal of clock mouth to next stage microwave network element transmitting synchronous status message; Wherein, carry the credit rating in the clock source of said current microwave network element in this Synchronization Status Message.Through the preferred embodiment, make the next stage network element of current microwave network element can learn the SSM information of current microwave network element, thereby with reference to the SSM Information Selection clock source of current microwave network element.
Wherein, Above-mentioned selection module 20 in the present embodiment can be selected the clock source according to the foregoing description one to embodiment four described mode; And output module 30 also can transmit SSM information according to the foregoing description one to embodiment four described mode; And having identical effect, concrete present embodiment repeats no more.
In a preferred implementation of the embodiment of the invention, said apparatus can be arranged in the microwave network element, for the microwave network element is selected the clock source.
Embodiment six
The another kind of device of supporting the protection of microwave network clock is provided in the present embodiment; This device is changed on the device of embodiment five; Figure 10 is the structural representation of the device of the support microwave network clock protection in the present embodiment, and shown in figure 10, this device comprises:
Clock port processing unit 100 is mainly realized the extraction of physical layer clock signal and SSM information, and port type comprises: SDH clock port, ETH clock port and the microwave clock port of eating dishes without rice or wine.
The detection of input clock source physical layer signal is mainly realized in physical layer clock detection unit 102, the physical layer clock source signals lose or the situation that degrades under, this clock source does not get into system-timing reference source candidate collection.
SSM receives processing unit 104, and main realization receives the SSM information processing, gives system-timing reference source maintenance unit 102 after the extraction clock source quality grade, with update system timing reference input candidate collection.
Wherein, above-mentioned clock port processing unit 100, physical layer signal detecting unit 102 and SSM receive processing unit 104 and are equivalent to receiver module 10 in the foregoing description five.
System-timing reference source maintenance unit 106; The main maintenance that realizes system-timing reference source candidate collection; This set is less than or equal to the set of configurable clock generator source; The renewal and the periodic duty system clock source selection algorithm of system-timing reference source candidate collection is responsible in this unit, by selecting current system clock source in the candidate collection of system-timing reference source.
Clock source maintenance unit 108, the set of main maintain configuration clock source, external interface is user's configuration interface, the user can set of configurable clock generator source and clock port through this configuration interface.
Wherein, said system timing reference input maintenance unit 106 is equivalent to select in the foregoing description five module 20 with clock source maintenance unit 108.
System clock unit 110, system clock are controlled by current system clock source, for the clock port processing unit provides output physical layer clock.
SSM sends processing unit 112 (being equivalent to the output module 30 in the foregoing description five), and main processing SSM sends, and it is relevant with the system clock source of current selection that transmission SSM carries credit rating information.
At work; The workflow of said apparatus is: SSM receives processing unit 104 and receives upper level microwave network element transmission SSM information and extract clock source quality grade through eat dishes without rice or wine clock port, ETH clock port or SDH clock port of microwave; Give system-timing reference source maintenance unit 106 with clock port configuration index number and credit rating then; System-timing reference source maintenance unit 106 combine SSM reception conditions, credit rating situation and physical layer clock status (as lose or exists, the clock source degrades etc.) whether definite jointly this clock source get into system-timing reference source candidate collection; Wherein, SSM reception condition and credit rating situation derive from SSM and receive processing unit 104 and physical layer clock detection unit 102, and the physical layer clock status derives from the testing result of physical layer clock detection unit 102.Maintenance unit 106 periodic duty system clock source selection algorithms in system-timing reference source are selected current system clock source, control system clock unit 110, and notice SSM sends processing unit 112.SSM sends the SSM information that processing unit 112 safeguards that this network element sends, and the clock port interface through the clock port processing unit sends to the next stage network element.
From above description, can find out that above-mentioned one or more embodiment have following beneficial effect: (1) can solve the clock protection problem under the complicated networking topology situation such as ring shape microwave network, and the clock source can be configured to two-way; (2) cost of realization clock protection is little.The microwave transmission standard SSM information of eating dishes without rice or wine, to eating dishes without rice or wine the service bandwidth influence little, and transmit dual mode in support to eat dishes without rice or wine reserved bandwidth and the ether guipure, can select as required; (3) support multiple clock source selection strategy, different network elements can be configured to different clock source selection strategies as required in the clock net, makes that the clock configuration is more flexible; (4) support the polymorphic type clock interface.Wherein the compatible SSM standard agreement of SDH and Ethernet interface can be realized docking with the TDM network element of supporting standard protocol interface and synchronous ethernet network element; Algorithm is switched in clock selecting and protection and the input clock type is irrelevant, and the microwave network element possesses under the situation of polytype clock source input simultaneously, and clock selecting and protection are switched and adopted harmonized programme to handle.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.