CN100488070C - Link switching device and its method in communication system - Google Patents

Link switching device and its method in communication system Download PDF

Info

Publication number
CN100488070C
CN100488070C CNB2005100288503A CN200510028850A CN100488070C CN 100488070 C CN100488070 C CN 100488070C CN B2005100288503 A CNB2005100288503 A CN B2005100288503A CN 200510028850 A CN200510028850 A CN 200510028850A CN 100488070 C CN100488070 C CN 100488070C
Authority
CN
China
Prior art keywords
link
switch
signal
makeing mistakes
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2005100288503A
Other languages
Chinese (zh)
Other versions
CN1859020A (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.)
Huawei Technologies Co Ltd
Shanghai Huawei Technologies Co Ltd
Original Assignee
Shanghai 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 Shanghai Huawei Technologies Co Ltd filed Critical Shanghai Huawei Technologies Co Ltd
Priority to CNB2005100288503A priority Critical patent/CN100488070C/en
Publication of CN1859020A publication Critical patent/CN1859020A/en
Application granted granted Critical
Publication of CN100488070C publication Critical patent/CN100488070C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention discloses a link switch device and a method in the communication system, which applies an error test and counting method to monitor the state of links automatically, then compares the preset error threshold to judge if it should be started and switched to realize link switch automatically and monitors links by testing verified errors and interface lockless and the error counting in the unit time to get the working state of the link accurately and guarantee to switch the links when they are faulty, the switch time delay is designed to ensure that the switch will not happen in a certain time delay after a switch so as to avoid frequent switch of the links, the states of master and backup links are monitored at the same time to decide how to switch them to realize mutual switch between them.

Description

Communication system medium chain circuit switching device and method thereof
Technical field
The present invention relates to link backup and control in the communication system, particularly communication system medium chain circuit switching device and method thereof.
Background technology
Current communication network just develops towards intelligent, broadband, personalized direction, basic telecommunications service can't satisfy people's demand, various users become to the demand of telecommunication service and become increasingly complex, this can provide all telecommunication services to the user rapidly and neatly with regard to requiring telecommunications network, and can guarantee higher reliability.Simultaneously, sharp increase along with social progress and mobile communication subscriber quantity, the frequency resource growing tension, require mobile communication system that bigger power system capacity can be provided, higher communication quality, and the data service of two-forty can be provided, to satisfy people to the requirement of multimedia communication and adapt to the personalized developing direction of communication.
3G (Third Generation) Moblie (3rd Generation wherein, be called for short " 3G ") be one of the most popular current communication technology, it requires to have good network compatibility, can realize the roaming between a plurality of different systems in the global range, not only will be for the mobile subscriber provide speech and low-rate data business, and multimedia service widely will be provided.In addition, traditional public switched telephone network based on circuit switching carries out the transition to gradually based on packet switching, next generation network (Next Generation Network, abbreviation " NGN ") network architecture that has adopted transmission to separate with control, be the product that packet network merges, it makes that integrated services such as voice, video, data become possibility on new generation network.
Along with technological progress and demand improve, communication system and network requirement can provide reliable continual service for its user, especially in the application of some important service, as electronic money, order processing, customer service, stock control, Email and Internet access etc., professional survivability becomes than more important in the past, and its availability requirement can reach 99.999% even higher.Therefore, the network survivability ability becomes the key factor that influences network design and structure, and the equipment that uses in communication system also needs very high reliability accordingly.Particularly under wireless communications environment, the communication link environment is more abominable, requires higher to system reliability.
In communication system, redundancy backup is the method for the enhancing equipment dependability used always.Redundancy backup is meant and adopts the equipment of a plurality of identical functions to carry out replacement work that particularly under breaking down the situation that maybe needs to safeguard when host apparatus, stand-by equipment is taken over host apparatus and proceeded communication, guarantees the not interrupt run of communication system.Load sharing adopts identical principle, utilizes the alternation or the collaborative work of a plurality of equipment, increases the reliability of system.Certainly exist the mechanism of redundancy backup to protect the reliability of link too for communication link.Such as when active link breaks down, the cut-in stand-by link continues to keep communication.
For the communication link that adopts redundancy backup, the mechanism that link switchover must be provided is to realize the demand of reliability and maintainability.Usually, the communication system of a complexity comprises a plurality of processing unit collaborative works.In order to guarantee that under the link failure condition communication keeps continuous ability, guarantees the integrality of data and keep service quality that link switchover must be carried out timely, finish fast, recovers professional as early as possible, makes communication system influence minimum.The performance of therefore, link switchover mechanism all has great influence for the reliability of system and even the survival ability of whole network.
Link switchover can have passive switching and automatic switchover by the control mode difference in the communication system.Wherein, passive CPU (Central Process Unit is called for short " CPU ") the transmission switching command that is meant by equipment of switching comes trigger link to switch; Automatically switch, be meant, detect active link and break down by the system failure detection module, and by system's link switchover of triggering automatically.Obviously it is more efficient than passive switching to automatically switch.
At present the modes of passive switching that adopt realize link switchover more in the communication system, promptly by controller or CPU according to reporting or detected link-state information judges whether link normal.If the work at present link is undesired, and reserve link is normal, just starts link switchover.
In actual applications, there is following problem in such scheme: the mode of passive switching needs the controller scheduling, handoff procedure is time-consuming, switch speed is slow, slow in reacting, under many circumstances, particularly in the communication of mobile communication or high-quality real time business, be easy to cause professional chain rupture, and then reduce system reliability.
Cause the main cause of this situation to be, the link switchover mode of passive switching must have the scheduling intervention of controller or processor, has prolonged handoff procedure, can't in time react to link condition, can not carry out link switchover fast.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of communication system medium chain circuit switching device and method thereof, makes communication equipment in time fast and effeciently to carry out link switchover according to link circuit condition, guarantees that the communication service continuity is unaffected.
For achieving the above object, the invention provides a kind of communication system medium chain circuit switching device, comprise error detector, error counter, comparator, switch controller, wherein,
Described error detector is used to detect the error situation of to be switched link, generates the error message of described to be switched link, and exports to described error counter;
Described error counter is used for the error message according to the to be switched link of described error detector input, calculates and export to described comparator the number of times of makeing mistakes of this to be switched link;
Described comparator is used for make mistakes number of times and default the make mistakes thresholding of comparison from described error counter, if the number of times of makeing mistakes surpasses this thresholding then to the switch controller output signal that transfinites of effectively makeing mistakes of makeing mistakes;
Described switch controller is used for judging whether to switch and exporting corresponding switch-over control signal according to judged result according to switching condition with from makeing mistakes of the described comparator signal that transfinites.
Wherein, the error situation of the described to be switched link that error detector detects comprises check errors situation and interface losing lock situation.
In addition, described error detector periodic triggers detects, and is in check errors or interface out-of-lock condition if detect described to be switched link, and then this error counter counting once.
In addition, also comprise
The handoff delay device, be used for producing time-delay in the back that switches, import described switch-over control signal, when switching, export invalid handoff delay signal to described switch controller, behind the duration of described time-delay, export effective handoff delay signal to described switch controller, only when described handoff delay signal was effective, described switching condition could satisfy.
In addition, switch the purpose link-state information and be input to described switch controller, only work as described switching purpose Link State just often, described switching condition could satisfy.
In addition, be provided with and switch enable signal and import described switch controller, only when described switching enable signal was effective, described switching condition could satisfy.
In addition, also comprise second described error counter and second described comparator at described switching purpose link, the makeing mistakes of second the described comparator output signal that transfinites outputs to described switch controller;
Described switch controller produces switch-over control signal according to described switching condition, at the described signal and at second described signal that transfinites of makeing mistakes of described switching purpose link of transfiniting of makeing mistakes of first of described to be switched link by following criterion:
If first described effective and second described invalidating signal that transfinites of makeing mistakes of signal that transfinite of makeing mistakes produces switch-over control signal, notify from described to be switched link switchover to described switching purpose link;
If second described effective and first described invalidating signal that transfinites of makeing mistakes of signal that transfinites of makeing mistakes produces switch-over control signal, notify from the link switchover of described switching purpose to described to be switched link;
Otherwise, produce switch-over control signal, veto any switching.
In addition, zero clearing is once in the cycle in each error count with described errors number for described error counter.
In addition, described comparator surpasses described makeing mistakes during thresholding at the described number of times of makeing mistakes, and exporting described makeing mistakes transfinites signal and keep a compare cycle.
The present invention also provides link switch-over method in a kind of communication system, comprises following steps,
Error detector detects the error situation of to be switched link, generates the error message of described to be switched link, and exports to error counter;
Error counter calculates and exports the number of times of makeing mistakes of this to be switched link according to the error message of the to be switched link of input;
The comparator comparison is from the make mistakes number of times and the default thresholding of makeing mistakes of described error counter, if the number of times of makeing mistakes surpasses this thresholding then export the signal that transfinites of effectively makeing mistakes of makeing mistakes;
Switch controller transfinites according to switching condition with from makeing mistakes of described comparator, and signal judges whether to switch and export corresponding switch-over control signal to carry out link switchover according to judged result.
Wherein, the error situation of the described to be switched link that error detector detects comprises check errors situation and interface losing lock situation.
In this external described method, also comprise step,
The handoff delay device is according to the described switch-over control signal of input, and judgement is also exported invalid handoff delay signal to described switch controller when switching, behind the duration of handoff delay, export effective handoff delay signal to described switch controller;
Wherein, only when described handoff delay signal was effective, described switching condition could satisfy.
In this external described method, also comprise step,
Second described error counter and second described comparator at described switching purpose link, carry out error count and relatively output, and the makeing mistakes of second the described comparator output simultaneously signal that transfinites also outputs to described switch controller;
Described switch controller produces switch-over control signal according to described switching condition, at the described signal and at second described signal that transfinites of makeing mistakes of described switching purpose link of transfiniting of makeing mistakes of first of described to be switched link by following criterion:
If first described effective and second described invalidating signal that transfinites of makeing mistakes of signal that transfinite of makeing mistakes produces switch-over control signal, notify from described to be switched link switchover to described switching purpose link;
If second described effective and first described invalidating signal that transfinites of makeing mistakes of signal that transfinites of makeing mistakes produces switch-over control signal, notify from the link switchover of described switching purpose to described to be switched link;
Otherwise, produce switch-over control signal, veto any switching.
In this external described method, also comprise step,
Described error counter each error count in the cycle with described errors number zero clearing once.
By relatively finding, the main distinction of technical scheme of the present invention and prior art is, adopt error detection and counter mechanism to monitor Link State automatically, then default error thresholds is relatively judged whether to start and switch, can realize link switchover automatically, fast reaction speed and switch speed;
By link is monitored in the detection of check errors and interface losing lock and the error count in the unit interval, can know link working state accurately, in time switched when guaranteeing link failure;
Handover delay is set, no longer switches in the fixed response time after once switching before the assurance, avoid link frequently to switch;
Monitor by the state to main/slave link simultaneously, and how decision-making switches thus, has realized the mutual handover mechanism between the main/slave link.
Difference on this technical scheme has brought comparatively significantly beneficial effect, and promptly monitoring and handover decisions mechanism have realized the link automatic switchover automatically, contrast existing passive switching, obviously fast reaction speed and switch speed, thereby raising system reliability;
Failure condition counting monitoring by check errors in the unit interval and interface losing lock provides accurate Link State reaction, has guaranteed validity and the promptness switched, thereby has guaranteed the continuous of service link;
Being provided with of handoff delay effectively avoided the frequent switching that causes unusually because of the system failure or link, improved the stability of link switchover mechanism;
The mutual handover mechanism of main/slave link has improved switching efficiency, has simplified switching device shifter, reduces system complexity.
Description of drawings
Fig. 1 is a communication system medium chain circuit switching device composition frame chart according to an embodiment of the invention;
Fig. 2 is a link switch-over method flow chart in the communication system according to an embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
In view of time-consuming, the reaction of passive switching in the present communication system waits shortcoming slowly, the present invention controls by link state monitoring and handover decisions and realizes automaticallying switch, accurately obtain the real-time working condition information of link by link monitoring, come according to judging that switching condition implements to switch by the handover decisions controlling mechanism.The mode that automaticallyes switch has reacts in time, switches advantage rapidly.
The present invention also is provided with the link error monitoring mechanism, be by the counting of check errors in the unit interval in the link communication and the judgement of interface losing lock are described the link working condition, can accurate reaction be arranged to the link communication quality, the efficient that helps to automatically switch improves.
The present invention has also added handoff delay assurance mechanism in handover decisions control in addition, promptly do not carry out any switching within the certain time-delay after preceding once switching, can effectively avoid like this because the frequent and invalid switching that communication failure or link cause unusually, thereby avoid the latent instability that brings because of link switchover.
Consider the special circumstances that main/slave link backs up mutually, introduce active and standby switching judging mechanism of switching mutually in switching controls, making main/slave link switch mutually can realize simply.
Fig. 1 shows the communication system medium chain circuit switching device composition frame chart of the first embodiment of the present invention.At first comprising three modules the most basic is: error counter, comparator and switch controller.
Wherein error counter is used to calculate the number of times of makeing mistakes of to be switched link, receives the error message of the to be switched link of input, and the number of times of makeing mistakes is given comparator; Whether the number of times of makeing mistakes that comparator is used to judge described to be switched link, receives and imports the number of times of makeing mistakes if produce the signal that transfinites of effectively makeing mistakes above the default thresholding of makeing mistakes, and makeing mistakes transfinites signal to switch controller; Switch controller is used for transfiniting according to switching condition and described makeing mistakes that signal judges whether to switch and the output switch-over control signal, receives the described signal that transfinites of makeing mistakes of input, the output switch-over control signal.
As seen whether this basic comprising has been realized making a strategic decision and switching according to the link-state information of input, and produces switch-over control signal and implement link switchover, can finish the basic function of automatic switchover.And can be provided with according to system and carry out handover decisions and judge.
Makeing mistakes the setting of thresholding can be by system's setting, and such as being set by CPU, the meaning of this parameter is to allow to select more suitably link, if the link error degree less than thresholding, then can not switched when extent of error during greater than this thresholding.
According to the link-state information that reports, in the unit interval, detect and add up, this statistics compares by the thresholding that comparator and CPU set, and comparator output useful signal such as high level, otherwise is a low level during greater than thresholding.This comparative result signal that transfinites of promptly makeing mistakes, the indication link breaks down.
Notice because error statistics were undertaken by the unit interval, therefore error counter will carry out the cycle zero clearing in the second embodiment of the present invention, as shown in FIG., by the input of one-period signal, zero clearing is once in the cycle in each error count with errors number for error counter.
Consider in third embodiment of the invention that in addition other switching condition may cause and miss switching time in situations such as current time can't satisfy, keep at the make mistakes signal that transfinites of comparator, being comparator surpasses when makeing mistakes thresholding at the number of times of makeing mistakes, makeing mistakes transfinites signal and keeps a compare cycle, just can cause switching in case switching condition is satisfied in this compare cycle like this.Comparative result also refreshes once in a compare cycle.Can be by triggering latch realization output maintenance and upgrading, as shown in the figure at comparator input one-period refresh signal.
In the fourth embodiment of the present invention,, error detector was set before error counter promptly, is specifically designed to according to link information and detects the link error situation at the device front end.Error detector is used to detect the error situation of to be switched link, comprises two kinds of check errors situation and interface losing lock situations, generates the error message of to be switched link, and exports to error counter and carry out error statistics by it.Here check errors can be the parity check, cyclic redundancy check (CRC) (Cyclic Redundancy Check is called for short " CRC ") etc. in the link communication; The interface losing lock is promptly such as some high-speed interface device operation irregularity indication.
As seen the setting of error detector can be good at detecting basic mistake in verification mistake and unusual these the two kinds of link communications of interface, accurately reacts the link communication quality, effectively monitors the link abnormal conditions, and the link after giving automaticallyes switch effective information is provided.
But because two kinds of situation metering method differences of error detection, such as check errors is to calculate according to the number of times of makeing mistakes, the interface losing lock does not then have the notion of number of times, in case losing lock is exactly abnormal conditions generally speaking, how organically integrating two kinds of error messages is one of key issues of the present invention.In the fifth embodiment of the present invention, check errors is counting number in due order, and the interface losing lock so just can be unifiedly calculated the number of times of makeing mistakes by the time counting.When described error detector detected a check errors situation, error counter was counted once; And when error detector detected interface losing lock situation and keeps the duration of a losing lock count cycle, error counter was counted once.
As shown in the figure, adopt check errors detector and interface out-of-lock detector to detect two kinds of abnormal conditions respectively.Wherein to detect implementation method as follows in the even parity check of link, and the data in the basic frame are carried out even parity check judge, if the verification mistake, the pulse signal of output unit clock cycle then, otherwise be constant low level; And the interface out-of-lock detector is when high-speed receiver part losing lock, and the output index signal is a high level, is low level during locking.It should be noted that verification deterministic process here and out-of-lock detection all are by same clock-driven, so carry out a verification in each clock cycle and judge, should the clock cycle export high level if verification makes mistakes, otherwise low level; If same interface losing lock then export high level continuously.These two signals through or door synthesize a signal, push away to such an extent that this signal should be the high level of output one-period when verification makes mistakes easily, and output high level continuously during losing lock.Or the door output signal after error counter be counted, this method of counting is exactly in each same cycle inside counting, if this cycle is high level then counts and increase one, visible count results promptly is equivalent to: verification make mistakes number of times or interface losing lock duration (is unit with the clock cycle).These ins and outs have specifically provided a kind of method of efficient realization combined count.
In fact also have a problem in application: communication system is finished the work by various functional module integration and cooperations, in case wherein certain module breaks down and will be referred to other module, so the unusual situation of link also might be an other problem.Similar this situation just might cause link can't to solve by switching unusually, so will cause main/slave link not stop back and forth to switch.Other also has the network traffics vibrations all can cause link frequently to switch.The frequent switching of link is the phenomenon that avoid, and it can cause communication system performance to reduce.
In order to address this problem, introduce handoff delay in the fifth embodiment of the present invention as one of switching condition, must keep allowing to switch after certain handoff delay just once switch promptly next time.The handoff delay device, be used for producing time-delay in the back that switches, import described switch-over control signal, when switching, trigger and pick up counting, timing produces effective handoff delay signal behind the duration of time-delay, output to switch controller, only when described handoff delay signal was effective, switching condition could satisfy.
The handoff delay device is triggered by the output signal of switch controller as shown in the figure, in case switch beginning, then trigger delayer picks up counting simultaneously, and as switching condition input switch controller, this signal enables switch controller to the signal of output simultaneously before timing is finished.Only finishing in timing is that time delay could continue to switch after overtime.System sets handover delay length earlier, utilizes the switching enabling signal of switch controller output to generate a pulse signal, and this pulse signal triggers the handoff delay device unit timing pulse signal is counted.(time delay of setting) illustrates a preceding switching time of an over and done with fixed response time when counting reaches some values, allows to switch generation this moment next time.Such as, when getting the unit interval when being 10ms, can get 100 digits as the interval of i.e. twice switching of time delay 1s at least at interval.
In the sixth embodiment of the present invention, to switch the purpose link normally as two of switching condition.As shown in the figure, switch the purpose link-state information and be input to switch controller, only when switching the purpose Link State just often, switching condition could satisfy.During specific implementation, can set the indication information that active and standby part of veneer can be used situation, this information is disposed to single board chip by CPU.If active and standby part of veneer all is available, so just might carry out optimum fast the switching to the link on the veneer, otherwise, only select the link on the available veneer.At work, but only could switch, even otherwise switched also and can't work in the switching purpose link time spent.
In the sixth embodiment of the present invention, to switch enable signal as three of switching condition.As shown in the figure, be provided with and switch enable signal and import switch controller, only when the switching enable signal was effective, switching condition could satisfy.This signal is generated by CPU, under normal mode of operation, is autonomous switch mode such as switch mode only, just allows the upstream veneer is independently switched.The highest control of Qie Huaning still in system's hand, can guarantee system safety like this.
In actual applications, using maximum is that the mutual switching of active and standby two links is to guarantee that link is unimpeded.Two links are good for use at the beginning, by wherein link work, become active link, the idle reserve link that is called.When main with breaking down, then switch to standby on, both sides relation is put upside down.The attendant safeguards reserve link afterwards, standby normal after, promptly can continue as backup.Such two links just switch possibly mutually.
Given this, in the sixth embodiment of the present invention, provided the particular arrangement that main/slave link switches mutually especially.This need be provided with second error counter and second comparator to switching purpose link (also being the second link), also needs other to be provided with certainly, promptly two links is provided with same link circuit condition statistics and compare facilities.The make mistakes signal that transfinites of signal and first that transfinites of makeing mistakes of second comparator output outputs in the switch controller simultaneously then.At this moment need switch controller to make the judgement of mutual switching according to both signals.
Switch controller produces switch-over control signal according to switching condition, at first signal and second signal that transfinites of makeing mistakes of transfiniting of makeing mistakes by following criterion:
Transfinite signal effectively and second invalidating signal that transfinites of makeing mistakes if first is made mistakes, article one link failure be described and the second link is normal, then produce switch-over control signal, notify from article one link switchover to the second link.
Article one link is normal if second effective and first invalidating signal that transfinites of makeing mistakes of signal that transfinites of makeing mistakes illustrates the second link failure, then produces switch-over control signal, and notice is from article one link switchover to the second link;
Otherwise, produce switch-over control signal, veto any switching.Other situation comprises all faults normally or all of two links, and such situation need not switch.
Concrete ins and outs are as described below:
The comparative result of relatively exporting a result and an other link of current link and the enable signal that allows switching time signal, CPU to dispose are made up judgement, can whether be allowed the enable signal that switches:
If when using the relatively output result of link to be low level at present, then no matter other conditions how, all can not switch.Promptly the link in current use is under the situation well, no matter other Link States how, all can not switch;
If the comparative result of the comparative result of current use link and an other link is high level, then can not switch.Promptly be under the bad situation, keep current state, and can not switch at two links;
If the current comparative result of link that uses is high level, the comparative result of an other link is a low level, and Link State is mode of operation and is in autonomous switching, simultaneously apart from the switching time of last time every a fixed response time, then allow to switch.
By the description of the link switchover device that provides above, sum up and provide in detail the process step of this device operating process below.The flow process of the link switch-over method of corresponding above-mentioned link switchover device as shown in Figure 2.
At first in step 201, error detector detects the error situation of to be switched link, generates error message and exports to error counter.Here error situation is exactly foregoing check errors situation and interface losing lock situation.
Then in step 202, error counter is added up its number of times of makeing mistakes according to the error message of the to be switched link of input.The front is mentioned, because therefore two kinds of error situation form differences should adopt a kind of method of unifying to count, the error detector periodic triggers detects here, be in check errors or interface out-of-lock condition if detect to be switched link, then this error counter counting once.
Then in step 203, the comparator comparison is from the thresholding of makeing mistakes of the make mistakes number of times and the systemic presupposition of error counter, number of times surpasses this thresholding then export the signal that transfinites of effectively makeing mistakes of makeing mistakes if make mistakes, and indicating to be switched link to make mistakes transfinites, and informs that switch controller can trigger to have switched.
In following step, switch controller is received to make mistakes to transfinite behind the signal, will judge whether switching condition satisfies, if three switching conditions all satisfy, then judged result is exported corresponding switch-over control signal to carry out link switchover.About the generation of these three switching conditions with judge as described below.
In step 204, switch controller judges whether the handoff delay signal is effective, if effectively then enter step 205 and continue to judge second switching condition, otherwise switching condition can not satisfy, and rejection is immediately switched.
The handoff delay signal here is to produce like this: the switch-over control signal of handoff delay device input, when switching, export invalid handoff delay signal to switch controller, trigger simultaneously and pick up counting, timing is just exported effective handoff delay signal to switch controller behind the duration of handoff delay.So just, guaranteed no longer to switch in the fixed response time of switch controller after switching, effectively avoided vibration.
In step 205, switch controller judges according to the switching purpose link-state information of input whether described switching purpose Link State is normal, if normally then enter step 206 and continue to judge the 3rd switching condition, otherwise the illustration purpose link also can't be worked, switching condition can not satisfy, and rejection is immediately switched.
In step 206, switch controller judges according to the switching enable signal of input whether switching condition satisfies at last again, if then transmit control signal to start in step 207 and switch, otherwise rejection is switched.
In addition, the particular arrangement situation for main/slave link switches mutually at first has more a series of step at another link in its method of operation:
Second error counter and second comparator carry out error count and relatively output at the second link, and the makeing mistakes of second the comparator output simultaneously signal that transfinites also outputs to same switch controller;
Judge that by switch controller is unified the state and the switching condition of two links produce switching signal then, switching signal produces concrete criterion front and addresses.
Those of ordinary skill in the art are appreciated that, the Cycle Length that the foregoing description is adopted in describing, signal form etc. are used to illustrate the ins and outs that invention realizes can be realized by other similar fashion, also can realize goal of the invention and does not influence the spirit and scope of the invention.
In sum, the present invention has realized following standard: in case the fastest switching---go wrong, whole device is promptly finished the process that detects judgement in the unit interval, can start switching, so switch the reaction time smaller or equal to the unit interval; Behind link of minimum switching---initial selected,, another link can be switched to, behind the link failure recovery that uses previously, the link of front can be do not switched back again if this link goes wrong in the course of the work; The frequent switching suppresses---and can frequently not switch, more than design control can be avoided the link instability greater than the time delay of setting switching time; The fixing use---if two links all are normal, and default meeting is operated on the fixing link.
Though by with reference to some preferred embodiment of the present invention, the present invention is illustrated and describes, those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (14)

1. a communication system medium chain circuit switching device is characterized in that, comprises error detector, error counter, and comparator, switch controller, wherein,
Described error detector is used to detect the error situation of to be switched link, generates the error message of described to be switched link, and exports to described error counter;
Described error counter is used for the error message according to the to be switched link of described error detector input, calculates the number of times of makeing mistakes of this to be switched link, and the number of times of makeing mistakes that will this to be switched link outputs to described comparator;
Described comparator is used for make mistakes number of times and default the make mistakes thresholding of comparison from described error counter, if the number of times of makeing mistakes surpasses this thresholding then to the described switch controller output signal that transfinites of effectively makeing mistakes of makeing mistakes;
Described switch controller is used for judging whether to switch and exporting corresponding switch-over control signal according to judged result according to switching condition with from makeing mistakes of the described comparator signal that transfinites.
2. communication system medium chain circuit switching device according to claim 1 is characterized in that, the error situation of the described to be switched link that described error detector detects comprises check errors situation and interface losing lock situation.
3. communication system medium chain circuit switching device according to claim 2 is characterized in that, described error detector periodic triggers detects, and is in check errors or interface out-of-lock condition if detect described to be switched link, and then this error counter counting once.
4. communication system medium chain circuit switching device according to claim 1 is characterized in that, also comprises
The handoff delay device, be used for producing time-delay in the back that switches, import described switch-over control signal, when switching, export invalid handoff delay signal to described switch controller, behind the duration of described time-delay, export effective handoff delay signal to described switch controller, only when described handoff delay signal was effective, described switching condition could satisfy.
5. communication system medium chain circuit switching device according to claim 4 is characterized in that, switches the purpose link-state information and is input to described switch controller, only works as described switching purpose Link State just often, and described switching condition could satisfy.
6. communication system medium chain circuit switching device according to claim 5 is characterized in that, is provided with to switch enable signal and import described switch controller, and only when described switching enable signal was effective, described switching condition could satisfy.
7. according to claim 3 or 4 described communication system medium chain circuit switching devices, it is characterized in that, also comprise second described error counter and second described comparator at described switching purpose link, the makeing mistakes of second the described comparator output signal that transfinites outputs to described switch controller;
Described switch controller produces switch-over control signal according to described switching condition, at the described signal and at second described signal that transfinites of makeing mistakes of described switching purpose link of transfiniting of makeing mistakes of first of described to be switched link by following criterion:
If first described effective and second described invalidating signal that transfinites of makeing mistakes of signal that transfinite of makeing mistakes produces switch-over control signal, notify from described to be switched link switchover to described switching purpose link;
If second described effective and first described invalidating signal that transfinites of makeing mistakes of signal that transfinites of makeing mistakes produces switch-over control signal, notify from the link switchover of described switching purpose to described to be switched link;
Otherwise, produce switch-over control signal, veto any switching.
8. according to any described communication system medium chain of claim circuit switching device among the claim 1-6, it is characterized in that zero clearing is once in the cycle in each error count with described errors number for described error counter.
9. according to any described communication system medium chain of claim circuit switching device among the claim 1-6, it is characterized in that described comparator surpasses described makeing mistakes during thresholding at the described number of times of makeing mistakes, exporting described makeing mistakes transfinites signal and keeps a compare cycle.
10. link switch-over method in the communication system is characterized in that, comprises following steps,
Error detector detects the error situation of to be switched link, generates the error message of described to be switched link, and exports to error counter;
Error counter calculates and exports the number of times of makeing mistakes of this to be switched link according to the error message of the to be switched link of input;
The comparator comparison is from the make mistakes number of times and the default thresholding of makeing mistakes of described error counter, if the number of times of makeing mistakes surpasses this thresholding then export the signal that transfinites of effectively makeing mistakes of makeing mistakes;
Switch controller transfinites according to switching condition with from makeing mistakes of described comparator, and signal judges whether to switch and export corresponding switch-over control signal to carry out link switchover according to judged result.
11. link switch-over method in the communication system according to claim 10 is characterized in that,
The error situation of the described to be switched link that described error detector detects comprises check errors situation and interface losing lock situation.
12. link switch-over method in the communication system according to claim 10 is characterized in that, also comprises step,
The handoff delay device is according to the described switch-over control signal of input, and judgement is also exported invalid handoff delay signal to described switch controller when switching, behind the duration of handoff delay, export effective handoff delay signal to described switch controller;
Wherein, only when described handoff delay signal was effective, described switching condition could satisfy.
13. link switch-over method in the communication system according to claim 12 is characterized in that, also comprises step,
Second described error counter and second described comparator at described switching purpose link, carry out error count and relatively output, and the makeing mistakes of second the described comparator output simultaneously signal that transfinites also outputs to described switch controller;
Described switch controller produces switch-over control signal according to described switching condition, at the described signal and at second described signal that transfinites of makeing mistakes of described switching purpose link of transfiniting of makeing mistakes of first of described to be switched link by following criterion:
If first described effective and second described invalidating signal that transfinites of makeing mistakes of signal that transfinite of makeing mistakes produces switch-over control signal, notify from described to be switched link switchover to described switching purpose link;
If second described effective and first described invalidating signal that transfinites of makeing mistakes of signal that transfinites of makeing mistakes produces switch-over control signal, notify from the link switchover of described switching purpose to described to be switched link;
Otherwise, produce switch-over control signal, veto any switching.
14., it is characterized in that according to link switch-over method in each described communication system in the claim 10 to 13, also comprise step,
Described error counter each error count in the cycle with described errors number zero clearing once.
CNB2005100288503A 2005-08-17 2005-08-17 Link switching device and its method in communication system Active CN100488070C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100288503A CN100488070C (en) 2005-08-17 2005-08-17 Link switching device and its method in communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100288503A CN100488070C (en) 2005-08-17 2005-08-17 Link switching device and its method in communication system

Publications (2)

Publication Number Publication Date
CN1859020A CN1859020A (en) 2006-11-08
CN100488070C true CN100488070C (en) 2009-05-13

Family

ID=37297887

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100288503A Active CN100488070C (en) 2005-08-17 2005-08-17 Link switching device and its method in communication system

Country Status (1)

Country Link
CN (1) CN100488070C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100551104C (en) * 2007-03-12 2009-10-14 华为技术有限公司 Iub interface business transmitting method and device based on the IP transmission
CN101437175B (en) * 2007-11-15 2010-09-15 华为技术有限公司 Method, apparatus and system for processing disaster-tolerating switch
CN101309213B (en) * 2008-06-24 2012-05-23 中国科学院计算技术研究所 Path switching method and system
CN101729360B (en) * 2008-10-22 2012-01-04 华为技术有限公司 Method and device for setting path state
CN101938660B (en) * 2009-06-30 2014-06-18 中兴通讯股份有限公司南京分公司 Service quality detection-based hot backup multiplexing method and system
CN109428742B (en) 2017-08-22 2020-12-15 华为技术有限公司 Delay transmission path control method, network controller and system
CN114205876B (en) * 2020-09-02 2023-11-10 中国移动通信集团安徽有限公司 Frequency point measuring method and device
CN115134220B (en) * 2022-06-29 2023-11-10 北京飞讯数码科技有限公司 Master-slave server switching method and device, computing equipment and storage medium
CN114979780B (en) * 2022-07-27 2022-11-11 成都卓元科技有限公司 Video and audio signal anomaly detection and quality comparison method for digital television broadcasting system

Also Published As

Publication number Publication date
CN1859020A (en) 2006-11-08

Similar Documents

Publication Publication Date Title
CN100488070C (en) Link switching device and its method in communication system
CN102160252B (en) Method and apparatus for increasing the number of powered devices supported by power over Ethernet system
CN100571173C (en) A kind of detection method of network node abnormality
CN101729303A (en) Method and device for measuring network performance parameter
US6426962B1 (en) Token ring jitter generator/detector
CN111654435B (en) Link protection fault processing system and method based on LACP
CN103001799A (en) Method and node for achieving redundancy on basis of chain network
CN101316197A (en) Detection method and apparatus for Ethernet port loop of MSTP equipment
CN101378577A (en) Method and system for detecting link failure
CN102075390A (en) Transmission state detection method and related device thereof
CN101640818A (en) Protection device and protection method of optical network
CN100563201C (en) A kind of method for detecting route unit fault and device
CN104243199A (en) Data transmission method and protection device of packet transport network
CN102025437B (en) Method, system and device for protection switching
CN100397829C (en) Warning method for frequent discrete event fault
CN101237355B (en) Service monitoring method, and network monitoring device
CN102571384A (en) Switching method, system and packet transmission network device for multiplex section protection
CN1983841B (en) Method for realizing backup in level connecting system
US7046693B1 (en) Method and system for determining availability in networks
US8917609B2 (en) Line monitoring apparatus and line monitoring method
CN111866827A (en) Bluetooth device state detection method and device, electronic device and medium
CN101478448B (en) Control method and apparatus for Ethernet switching equipment
CN116800632A (en) Method, apparatus and computer readable medium for measuring flow break time during path switching
JP3631606B2 (en) Clock switching circuit for communication equipment
CN101159678A (en) Method and system for detecting default gateway state

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