Summary of the invention
In view of this, the invention provides the clock synchronizing method in a kind of switchboard stacked system, can effectively realize the clock synchronous of switchboard stacked system inside, meet the demand of mobile retransmission clock synchronous.
The present invention also provides a kind of stacking controller, can effectively realize the clock synchronous of switchboard stacked system inside, meets the demand of mobile retransmission clock synchronous.
In order to achieve the above object, the technical scheme that the present invention proposes is:
A clock synchronizing method in switchboard stacked system, the method comprises:
Be identified for the switch of clock synchronous, using described switch as synchronous clock source;
Take described synchronous clock source as benchmark, configure successively the stacking opening of respective switch, so that the clock synchronous of synchronous clock source is to each switch in pile system;
Synchronous clock source according to the stacking opening of configuration by clock synchronous to each switch in pile system.
The described switch that is identified for clock synchronous, comprises described switch as synchronous clock source:
When pile system has unique external clock reference input, using the switch of described external clock reference access as synchronous clock source;
When pile system has more than two external clock reference input, whether the priority that judges the system safety monitoring SSM message in all external clock references is identical, if so, using the switch that in the switch of external clock reference access, clock interface priority is the highest as synchronous clock source; Otherwise the switch that the highest external clock reference of the priority of SSM message is accessed is as synchronous clock source;
When pile system is inputted without external clock reference, judge that whether the clock accuracy of each switch is identical, if so, using the switch at stacking controller place as synchronous clock source; Otherwise, using the highest switch of clock accuracy as synchronous clock source.
Describedly take described synchronous clock source as benchmark, the stacking opening that configures successively respective switch comprises:
The stacking opening in described clock synchronous source is configured to the main Master port for clock synchronous;
For not as the switch in clock synchronous source,
Whether two stacking opening that judge this switch are consistent apart from the jumping figure in clock synchronous source, if consistent, one of them stacking opening are configured to the port from Slave; If inconsistent, the little stacking opening of jumping figure is configured to Slave port, and whether two stacking opening that judge this switch be greater than 2 apart from the jumping figure in clock synchronous source is poor, if so, the large stacking opening of jumping figure is configured to Master port.
While having switch add or leave in pile system, the method further comprises:
Repeat described definite clock synchronous source, configuration respective switch stacking opening and according to configuration stacking opening by the operation of clock synchronous.
A stacking controller in switchboard stacked system, this stacking controller comprises: clock source determining unit and stacking opening dispensing unit, wherein,
Described clock source determining unit, for being identified for the switch of clock synchronous, using described switch as synchronous clock source;
Described stacking opening dispensing unit, is benchmark for take the definite synchronous clock source of described clock source determining unit, configures successively the stacking opening of respective switch, and the clock synchronous that makes synchronous clock source is to each switch in pile system.
Described clock source determining unit comprises that first determines subelement, second definite subelement and the 3rd definite subelement, wherein,
Described first determines subelement, and when having unique external clock reference input when pile system, the switch that described external clock reference is accessed is as synchronous clock source;
Described second determines subelement, when having more than two external clock reference to input when pile system, whether the priority that judges the system safety monitoring SSM message in all external clock references is identical, if so, using the switch that in the switch of external clock reference access, clock interface priority is the highest as synchronous clock source; Otherwise the switch that the highest external clock reference of the priority of SSM message is accessed is as synchronous clock source;
The described the 3rd determines subelement, for when pile system is inputted without external clock reference, judges that whether the clock accuracy of each switch is identical, if so, and using the switch at stacking controller place as synchronous clock source; Otherwise, using the highest switch of clock accuracy as synchronous clock source.
Described stacking opening dispensing unit comprises the first configuration subelement and the second configuration subelement, wherein,
Described the first configuration subelement, for being configured to the main Master port for clock synchronous by the stacking opening in the definite clock synchronous source of described clock source determining unit;
Described the second configuration subelement, for for not as the switch in clock synchronous source, whether the jumping figure that judges the clock synchronous source that two stacking opening of this switch are determined apart from described clock source determining units is consistent, if consistent, one of them stacking opening is configured to the port from Slave; If inconsistent, the little stacking opening of jumping figure is configured to Slave port, and whether two stacking opening that judge this switch be greater than 2 apart from the jumping figure in clock synchronous source is poor, if so, the large stacking opening of jumping figure is configured to Master port.
In sum, clock synchronizing method in switchboard stacked system of the present invention, by first determining in pile system the synchronous clock source for clock synchronous, and then take the stacking opening that synchronous clock source is baseline configuration respective switch, make synchronous clock source can be according to the stacking opening of configuration by clock synchronous to each switch in pile system.Because the present invention is by selecting after synchronous clock source, again by synchronous clock source by clock synchronous to each switch, thereby can effectively realize the clock synchronous of switchboard stacked system inside, make switchboard stacked system meet the demand of mobile retransmission clock synchronous.
Embodiment
The technical problem proposing in order to solve the present invention, the specific implementation of scheme of the present invention comprises:
Be identified for the switch of clock synchronous, using described switch as synchronous clock source; Take described synchronous clock source as benchmark, configure successively the stacking opening of respective switch, so that the clock synchronous of synchronous clock source is to each switch in pile system; Synchronous clock source according to the stacking opening of configuration by clock synchronous to each switch in pile system.
For making the object, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
Fig. 1 is the workflow diagram of clock synchronizing method of the present invention.As shown in Figure 1, this flow process comprises:
Step 101: be identified for the switch of clock synchronous, using described switch as synchronous clock source.
In this step, for different clock inputs, determine that synchronous clock source can comprise following several situation:
When pile system has unique external clock reference input, using the switch of this external clock reference access as synchronous clock source;
When pile system has more than two external clock reference input, whether the priority that need to judge system safety monitoring (SSM) message in all external clock references is identical, if so, using the switch that in the switch of external clock reference access, clock interface priority is the highest as synchronous clock source; Otherwise the switch that the highest external clock reference of the priority of SSM message is accessed is as synchronous clock source;
When pile system is inputted without external clock reference, judge that whether the clock accuracy of each switch is identical, if so, using the switch at stacking controller place as synchronous clock source; Otherwise, using the highest switch of clock accuracy as synchronous clock source.
It should be noted that, determine that synchronous clock source is to be undertaken by the stacking controller in pile system.
Step 102: take described synchronous clock source as benchmark, configure successively the stacking opening of respective switch.
It should be noted that, each switch in pile system has two stacking opening, and this two stacking opening or for clock synchronous or for non-clock synchronous.
In this step, for the switch as clock synchronous source and non-clock synchronous source in pile system, their stacking opening has different collocation methods, is specially:
For the switch as clock synchronous source, directly its stacking opening is configured to master (Master) port for clock synchronous;
For not as the switch in clock synchronous source,
Judge two stacking opening of this switch apart from the jumping figure in clock synchronous source (jumping figure be switch to synchronous clock source the switch number of process) whether consistent, if consistent, one of them stacking opening is configured to the port from (Slave); If inconsistent, the little stacking opening of jumping figure is configured to Slave port, and whether two stacking opening that judge this switch be greater than 2 apart from the jumping figure in clock synchronous source is poor, if so, the large stacking opening of jumping figure is configured to Master port.
In this step, stacking opening collocation method can be referring to Fig. 2, and as shown in Figure 2, A, B, C, D, these 5 switches of E have formed a chain pile system, A ', B ', C ', D ', these 5 switches of E ' have formed an annular pile system, and each switch has two stacking opening.
For chain pile system, if B is clock synchronous source, the stacking opening on B 1 and 2 is all configured to the Master port for clock synchronous, stacking opening 2 on A is configured to Slave port, stacking opening 1 on C is configured to Slave port, stacking opening 2 is configured to Master port, similarly, the stacking opening 1 on D is configured to Slave port, stacking opening 2 is configured to Master port, and the stacking opening 1 on E is configured to Slave port;
For annular pile system, if B ' is clock synchronous source, the stacking opening on B ' 1 and 2 is all configured to the Master port for clock synchronous, stacking opening 1 on A ' is configured to Slave port, stacking opening 2 is configured to Master port, similarly, stacking opening 2 on C ' is configured to Slave port, stacking opening 1 is configured to Master port, stacking opening 2 on D ' is configured to Slave port, stacking opening 1 is configured to Master port, and the stacking opening 1 on E ' is configured to Slave port, stacking opening 2 is configured to Master port.
When two stacking opening of switch are less than or equal to 1 apart from the jumping figure of synchronous clock source is poor, that stacking opening that is not configured to Slave port does not need to be configured; Similarly, when pile system is chain while connecting, two vacant stacking opening at two ends also make not need to be configured.Also the stacking opening not being configured is as non-clock synchronous port.
Also it should be noted that, in this step, it is to carry out according to certain protocol strategy that one of them stacking opening of the consistent switch of the jumping figure apart from clock synchronous source is configured to slave port, specifically repeats no more.
Step 103: synchronous clock source according to the stacking opening of configuration by clock synchronous to each switch in pile system.
After determining synchronous clock source and having configured the stacking opening of each switch, directly by synchronous clock source according to the stacking opening of configuration by clock synchronous to each switch in pile system.
So far, completed the whole workflow of clock synchronizing method in switchboard stacked system of the present invention.
It should be noted that, in the present embodiment, while having switch add or leave in pile system, need to repeat the operation of step in Fig. 1, that is: repeat described definite clock synchronous source, configuration respective switch stacking opening and according to configuration stacking opening by the operation of clock synchronous.
Based on said method, Fig. 3 has provided the structure of the stacking controller in switchboard stacked system.As shown in Figure 3, this stacking controller comprises clock source determining unit 31 and stacking opening dispensing unit 32.Wherein,
Described clock source determining unit 31, for being identified for the switch of clock synchronous, using described switch as synchronous clock source.
Further, this clock source determining unit 31 can specifically comprise that again first determines subelement 311, second definite subelement 312 and the 3rd definite subelement 313, wherein,
Described first determines subelement 311, and when having unique external clock reference input when pile system, the switch that described external clock reference is accessed is as synchronous clock source;
Described second determines subelement 312, when having more than two external clock reference to input when pile system, whether the priority that judges the SSM message in all external clock references is identical, if so, using the switch that in the switch of external clock reference access, clock interface priority is the highest as synchronous clock source; Otherwise the switch that the highest external clock reference of the priority of SSM message is accessed is as synchronous clock source;
The described the 3rd determines subelement 213, for when pile system is inputted without external clock reference, judges that whether the clock accuracy of each switch is identical, if so, and using the switch at stacking controller place as synchronous clock source; Otherwise, using the highest switch of clock accuracy as synchronous clock source.
Described stacking opening dispensing unit 32, is benchmark for take the definite synchronous clock source of described clock source determining unit 31, configures successively the stacking opening of respective switch, and the clock synchronous that makes synchronous clock source is to each switch in pile system.
Further, stacking opening dispensing unit 32 can specifically comprise again: the first configuration subelement 321 and the second configuration subelement 322, wherein,
Described the first configuration subelement 321, for being configured to the Master port for clock synchronous by the stacking opening in the definite clock synchronous source of described clock source determining unit 31;
Described the second configuration subelement 322, for for not as the switch in clock synchronous source, whether the jumping figure that judges the clock synchronous source that two stacking opening of this switch are determined apart from described clock source determining units 31 is consistent, if consistent, one of them stacking opening is configured to Slave port; If inconsistent, the little stacking opening of jumping figure is configured to Slave port, and whether two stacking opening that judge this switch be greater than 2 apart from the jumping figure in clock synchronous source is poor, if so, the large stacking opening of jumping figure is configured to Master port.
So far, obtained stacking controller of the present invention.Described in Fig. 3, the specific works flow process of stacking controller can, referring to Fig. 1, repeat no more here.
In a word, clock synchronizing method in switchboard stacked system of the present invention, by first determining in pile system the synchronous clock source for clock synchronous, and then take the stacking opening that synchronous clock source is baseline configuration respective switch, make synchronous clock source can be according to the stacking opening of configuration by clock synchronous to each switch in pile system.Because the present invention is by selecting after synchronous clock source, again by synchronous clock source by clock synchronous to each switch, thereby can effectively realize the clock synchronous of switchboard stacked system inside, make switchboard stacked system meet the demand of mobile retransmission clock synchronous.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.