The content of the invention
The invention provides a kind of apparatus and method for robbing logical business route, so that at least solve in the prior art can not be automaticBatch quickly robs the problem of logical business route.
According to an aspect of the invention, there is provided a kind of device for robbing logical business route, including detection module, analysis mouldBlock, computing module, issue module, rollback module;The detection module judges chain circuit alarming state, when detecting disconnected fine alarmWhen, the detection module adds disconnected fine link in faulty link list;The analysis module is analyzed in the whole network by disconnected fine linkThe business of influence, and the business is arranged to wait to rob logical business;The computing module for it is described wait to rob logical business open up it is newCan be with robbing path by and waiting to rob the starting point of logical business and destination node is constant described in keeping;It is described issue module by it is described rob it is logicalRoute sending-down, mark issues success if issuing successfully, is identified if failure is issued and issues failure, and waits to rob logical business by describedFormer route save;The rollback module when the disconnected fine alarm disappears, by it is described wait to rob logical business rob the logical way of escape byThe state robbed before leading to is return back to, is identified as and is retracted successfully if retracting successfully, rollback failure is identified as if the failure that retracts.
Further, when the detection module detects the disconnected fine alarm, the disconnected fine link is added to institute automaticallyState in faulty link table;When the detection module detects that the disconnected fine alarm disappears, the disconnected fine link after repairing automaticallyDeleted from the faulty link table.
Further, the analysis module is according to the faulty link listed in the faulty link table, using upwardThe mode of client layer is inquired about, automatically analyzes out and described waits to rob logical business.
Further, the computing module avoids the fine link that breaks, batch between the starting point of the business and destination nodeFor it is described wait to rob logical business calculate one by one it is described rob path by.
Further, the module that issues is further used for the path of robbing by being carried out down from webmaster end-to-end viewHair, and in webmaster is end-to-end for this rob logical generation rob amount to draw.
Alternatively, in addition to a management module, the management module by it is described rob to amount to draw logical process is robbed to thisManagement, the management include the presentation robbed logical route sending-down, lead to the front and rear route after retracting successfully to robbing, key parameterDisplaying, business robs the displaying of logical state.
Further, the rollback module exchanges realization by will rob path by the logical business route of waiting to rob with the preservationThe rollback, and retract successfully after delete described in rob path by.
According to another aspect of the present invention, there is provided a kind of method for robbing logical business route, including system detectio the whole networkWhether the chain circuit alarming is occurred;The disconnected fine link is added in the faulty link list;Analyze impacted in the whole networkDescribed wait to rob logical business;Calculate with the presence or absence of it is available described rob path by;Wait to rob logical business starting point and termination described in holdingPoint is constant, open up it is described rob path by;Issue rob path by and identify and issue and whether succeed, preserve and wait the former road for robbing logical businessBy;It is described to wait that robbing logical business route return back to the state robbed before leading to, and identify whether to retract successfully.
Further, when detecting the disconnected fine alarm, the disconnected fine link is added to the faulty link table automaticallyIn;When detecting that the disconnected fine alarm disappears, the disconnected fine link after reparation is deleted from the faulty link table automatically.
Further, according to the faulty link listed in the faulty link table, using upward inquiry client layerMode, automatically analyze out and described wait to rob logical business.
Further, it is described wait to rob between logical business starting point and destination node avoid break fine link, treated in batches to be describedRob logical business calculate one by one it is described rob path by.
Further, the path of robbing is from webmaster end-to-end view by being issued, in addition to from webmaster it is end-to-end in beThis, which robs to rob described in logical generation, amounts to the step of drawing.
Alternatively, in addition to one by it is described rob to amount to draw the step of logical be managed is robbed to this, the management bagThe presentation robbed logical route sending-down, lead to the front and rear route after retracting successfully to robbing is included, the displaying of key parameter, business is robbed logicalThe displaying of state.
Further, returned by the way that path will be robbed described in the method realization waited to rob logical business route and exchanged with the preservationMove back, and after retracting successfully, robbed described in deletion path by.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflictingIn the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Provide a kind of device for robbing logical business route in the present embodiment, Fig. 1 be it is according to embodiments of the present invention rob it is logicalThe structured flowchart of the device of business route.As shown in figure 1, including:
101 detection modules;102 analysis modules;103 computing modules;104 issue module;106 rollback modules;101 inspectionSurvey module and judge chain circuit alarming state, when detecting disconnected fine alarm, disconnected fine link is added failure chain by 101 detection moduleIn the list of road;102 analysis module analyzes the business influenceed in the whole network by disconnected fine link, and the business is arranged to wait to robLogical business;103 computing module waits to rob logical business and opens up new available path of robbing by and waiting to rob logical industry described in keeping to be describedThe starting point of business and destination node are constant;Described 104 issue module robs logical route sending-down by described, identifies and issues if issuing successfullySuccess, identifies if failure is issued and issues failure, and waits that the former route for robbing logical business saves by described;Described 106 retractModule waits that robbing logical business robs the logical way of escape by returning back to the state robbed before leading to when the disconnected fine alarm disappears, by described, if retractingIt is successful then be identified as retract successfully, if retract failure if be identified as rollback failure.
Further, when 101 detection module detects the disconnected fine alarm, the disconnected fine link is added to automaticallyIn the faulty link table;When 101 detection module detects that the disconnected fine alarm disappears, the disconnected fibre after repairing automaticallyLink is deleted from the faulty link table.
Further, 102 analysis module is according to the faulty link listed in the faulty link table, using toThe mode of upper inquiry client layer, automatically analyze out and described wait to rob logical business.
Further, 103 computing module avoids the fine link that breaks between the starting point of the business and destination node, batchMeasure for it is described wait to rob logical business calculate one by one it is described rob path by.
Further, described 104 issue module be further used for by it is described rob path by from webmaster end-to-end view carry outIssue, and in webmaster is end-to-end for this rob logical generation rob amount to draw.
Alternatively, in addition to 105 management modules, 105 management module by it is described rob to amount to draw this is robbedLogical management of process, the management include the presentation robbed logical route sending-down, lead to the front and rear route after retracting successfully to robbing, closedThe displaying of bond parameter, business rob the displaying of logical state.
Further, 106 rollback module is exchanged by will rob path by the logical business route of waiting to rob with the preservationRealize the rollback, and rob described in deleting path by.
Present embodiments provide a kind of method for robbing logical business route, Fig. 2 be it is according to embodiments of the present invention quickly rob it is logicalThe flow chart that the method for business route is established.As shown in Fig. 2 comprise the following steps:
Whether break fine chain circuit alarming is occurred in step S201 system detectio the whole networks;There is disconnected fine alarm when detecting on linkWhen, then judge the link for the fine link that breaks.
The disconnected fine link is added in faulty link list by step S202.
Further, when detecting the disconnected fine alarm, the disconnected fine link is added to the faulty link table automaticallyIn
Step S203, which is analyzed, impacted in the whole network described to be waited to rob logical business.
Further, analyzed by the way of client layer is searched upwards in the whole network and waited to rob logical industry by what disconnected fine link was influenceedBusiness.
Step S204 is calculated with the presence or absence of available path of robbing by being carried out if available path of robbing be present if in next step;If noIn the presence of available path of robbing by then report can not use route abnormal.
Step S205 keep belonging to wait to rob logical business starting point it is constant with destination node, open up described in rob path by.
Further, it is described wait to rob between logical business starting point and destination node avoid break fine link, treated in batches to be describedRob logical business calculate one by one it is described rob path by.
Step S206 issue rob path by and identify whether to issue success, preserve the former route for waiting to rob logical business.
Further, the path of robbing is by from webmaster end-to-end view be issued in equipment.
Alternatively, after issuing successfully, generation is robbed to amount to and drawn;Further, from webmaster it is end-to-end in rob logical generation for thisIt is described rob amount to draw.
Alternatively, in addition to one by it is described rob to amount to draw the step of logical be managed is robbed to this, the management bagThe presentation robbed logical route sending-down, lead to the front and rear route after retracting successfully to robbing is included, the displaying of key parameter, business is robbed logicalThe displaying of state.
Step S207 fine link repairs of breaking are good, when the disconnected fine alarm disappears, then judge that the disconnected fine link has been repairedIt is good.
Further, when detecting that the disconnected fine alarm disappears, the disconnected fine link is from the failure after repairing automaticallyDeleted in link table.
Step 208 retract it is described rob path by and identify whether to retract successfully.
Further, returned by the way that path will be robbed described in the method realization waited to rob logical business route and exchanged with the preservationMove back.
Step 209 delete it is described rob logical business, after described retracts successfully, be automatically deleted described in rob logical business.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with generalComputing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formedNetwork on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are storedPerformed in the storage device by computing device, and in some cases, can be with different from shown in order execution hereinThe step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them orStep is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are these are only, are not intended to limit the invention, for those skilled in the artFor member, the present invention can have various modifications and variations.Any modification within the spirit and principles of the invention, being made,Equivalent substitution, improvement etc., should be included in the scope of the protection.