A kind of configuration recovery method of user side equipment and device
Technical field
The application relates to network device management technical field, and particularly the configuration of a kind of user side equipment (CPE) is extensiveMultiple method and apparatus.
Background technology
Along with the develop rapidly of information industry, the class of business of carrying on wide area network and portfolio are in continuous increase, scaleAlso constantly expanding, a large amount of terminal access devices are widely used, and need to enter these user side equipments (CPE)The effective remote centralized management of row. The CPE general position of wide area network relatively disperses, existing to the management of these CPETraditional telemanagement modes such as Telnet, SSH, Simple Network Management Protocol (SNMP), long-range Web login,Also there is improved subscriber terminal equipment wide area network management agreement (CWMP, CPEWANManagementProtocol)Telemanagement mode.
Fig. 1 is the basic frame structure figure of existing CWMP network, as shown in Figure 1, and at this management mould of CWMPIn type, network management server is Automatic Configuration Server (ACS), has been responsible for tri-layers of above complexity to CPEBusiness configuration.
The core concept of CWMP is by defining the auto negotiation interaction protocol between a set of ACS and CPE, with realityThe automatic layoutprocedure of existing CPE. But, realize auto negotiation between ACS and CPE mutual, need CPEWith ACS network interworking (can set up TCP is between the two connected), if due to the configuration error of CPE,CPE just cannot connect with ACS, and then ACS also just cannot manage CPE, thereby causes CPEUnder network unavailable. Similarly, for traditional long-range such as Telnet, SSH, SNMP, long-range Web loginWay to manage, for network management server can be managed CPE, also needs CPE and networkBetween management server, can keep intercommunication. For convenience follow-up, by traditional network management server andACS in CWMP is referred to as configuration management server (CMS).
At present, when between CPE and CMS when not intercommunication, on the one hand, can carry out initially CPE in CPE this localityConfiguration, although can solve like this problem of CPE and not intercommunication of CMS, but the poor operability of this mode,Not only labor intensive material resources, and maintenance cost are higher, consuming time longer; On the other hand, can be to the direct power-off of CPE,After powering on, recover default configuration, so just need to carry out power-off and intervention in CPE this locality, cannot to unmanned pointAccomplish, and default configuration may also cannot intercommunication with CMS, also needs to be again configured, also wasteManpower and materials.
Summary of the invention
In view of this, the invention provides the configuration recovery method of a kind of CPE, can cannot at CPE and CMSIn the situation of intercommunication, CPE automatically restores to the configuration status of energy and CMS intercommunication.
The present invention also provides the configuration of recovery device of a kind of CPE, feelings that can cannot intercommunication at CPE and CMSUnder condition, CPE automatically restores to the configuration status of energy and CMS intercommunication.
In order to achieve the above object, the technical scheme that the present invention proposes is:
A configuration recovery method of user side equipment CPE, the method comprises:
A, CPE judge whether to connect with configuration management server CMS, if can not, execution step B;If can, perform step D;
B, judge current configuration with current can wildcard put whether consistent, if inconsistent, execution step C;
C, select current can wildcard putting to recover the configuration of CPE;
D, judge current configuration with current can wildcard put whether consistent, if inconsistent, execution step E;
E, current configuration can be put by wildcard as current.
Described steps A comprises:
F, CPE judge that whether the physical state of connection CMS interface is normal, if undesired, perform step B;If normal, perform step G;
G, judge that whether the address of the CMS of current configuration can reach, if unreachable, performs step B; If canReach, perform step H;
H, judge whether can with CMS set up management be connected, if can not, perform step B; If can,Execution step D.
When being judged as in described step B when consistent, and when being judged as in described step D when consistent, the method alsoComprise: after the timing of the intercommunication timer for detection of CPE and CMS intercommunication is overtime, return to execution stepA;
When in described step C, select current can wildcard put the configuration of CPE is recovered after, and when described step eMiddle using current configuration as current can wildcard postpone, the method also comprises: when for detection of CPE and CMS intercommunicationAfter the timing of intercommunication timer is overtime, return to execution step A;
Wherein, the periodically timing of intercommunication timer of described detection CPE and CMS intercommunication.
When being judged as in described step B when consistent, and when being judged as in described step D when consistent, the method alsoComprise: after the timing of the intercommunication timer for detection of CPE and CMS intercommunication is overtime, return to execution stepA;
When in described step C, select current can wildcard put the configuration of CPE is recovered after, and when described step eMiddle using current configuration as current can wildcard postpone, the method also comprises: when for detection of CPE and CMS intercommunicationAfter the timing of intercommunication timer is overtime, return to execution step A;
Wherein, the intercommunication timer of described detection CPE and CMS intercommunication starts timing in the time of CPE configuration variation.
Before carrying out described steps A, the method also comprises:
After CPE electrifying startup, connect to keep intercommunication with CMS, the configuration during using maintenance intercommunication is as initially joiningPut, the time of described maintenance intercommunication is not less than the timing of the intercommunication timer of CPE and CMS intercommunication;
Or CPE is using the default configuration after electrifying startup as initial configuration.
A configuration of recovery device of user side equipment CPE, this device comprises: connection judgment unit, the first uniformityJudging unit, configuration restore unit, the second uniformity judging unit and heavy setting unit, wherein,
Described connection judgment unit, can connect with configuration management server CMS for judging whether;
Described the first uniformity judging unit, for working as described connection judgment unit judges for not connecting with CMSTime, judge whether consistent current configuration can put by wildcard with current;
Described configuration restore unit, when inconsistent for being judged as when described the first uniformity judging unit, selects currentCan wildcard put the configuration of CPE is recovered;
Described the second uniformity judging unit, for working as described connection judgment unit judges for connecting with CMSTime, judge whether consistent current configuration can put by wildcard with current;
Described heavy setting unit, for when described the second uniformity judging unit be judged as current configuration and current can wildcardPut when inconsistent, current configuration can be put by wildcard as current.
Described connection judgment unit comprises that Interface status judgment sub-unit, address can reach judgment sub-unit, management connection is sentencedDisconnected subelement, wherein,
Whether described Interface status judgment sub-unit is normal for judging the physical state of connection CMS interface;
Described address can reach judgment sub-unit, when normal for being judged as when described Interface status judgment sub-unit, and judgementWhether the address of the CMS of current configuration can reach;
Described management connection judgment subelement, is judged as can reach time judgement for can reach judgment sub-unit when described addressWhether can set up management with CMS is connected;
, described the first uniformity judging unit, undesired for being judged as when described Interface status judgment sub-unit,Or described address can reach judgment sub-unit and is judged as unreachable or described management connection judgment subelement and is judged as and can not buildsWhen standpipe reason connects, judge whether consistent current configuration can put by wildcard with current;
Described the second uniformity judging unit, for being judged as and can setting up management when described management connection judgment subelementWhen connection, judge whether consistent current configuration can put by wildcard with current.
This device also comprises timing unit, for periodicity timing;
, described connection judgment unit, also, for exceeding after timing when timing unit timing, judging whether canConnect with CMS.
This device also comprises timing unit,, during for CPE configuration variation, start timing;
, described connection judgment unit, also, for exceeding after timing when timing unit timing, judging whether canConnect with CMS.
This device also comprises setting unit, for connecting to keep intercommunication with CMS, and the configuration during by maintenance intercommunicationAs initial configuration, the time of described maintenance intercommunication is not less than the timing with the intercommunication timer of CMS intercommunication;Or using default configuration as initial configuration.
In sum, the configuration recovery method of CPE of the present invention, first judge CPE whether can with CMSConnect, if can not, and when further judging current configuration and current can wildcard putting when inconsistent, select to work asBefore can wildcard put the configuration of CPE recovered; If can connect, and judge current configuration and current leading toConfigure when inconsistent, current configuration can be put by wildcard as current. Because the inventive method is to go out by judging CPENow extremely, can not connect with CMS time, can put there is joining of abnormal CPE by wildcard according to currentPut and recover, so recover the CPE that can wildcard puts can with CMS intercommunication, CMS can be entered CPELine pipe reason. Therefore, the inventive method is without expending a lot of manpower and materials, can realize CPE and CMS withoutIn the situation of method intercommunication, CPE automatically restore to can and the configuration status of CMS intercommunication, thereby ensured CPE canBy property and controllability.
Brief description of the drawings
Fig. 1 is the basic frame structure schematic diagram of existing CWMP network;
The workflow diagram of the configuration recovery method of the CPE that Fig. 2 adopts for the embodiment of the present invention;
Fig. 3 is the structural representation of the configuration of recovery device of embodiment of the present invention CPE.
Detailed description of the invention
The technical problem proposing in order to solve the present invention, the specific implementation of scheme comprises described in the embodiment of the present invention:
A, CPE judge whether to connect with configuration management server CMS, if can not, execution step B;If can, perform step D;
B, judge current configuration with current can wildcard put whether consistent, if inconsistent, execution step C;
C, select current can wildcard putting to recover the configuration of CPE;
D, judge current configuration with current can wildcard put whether consistent, if inconsistent, execution step E;
E, current configuration can be put by wildcard as current.
For making the object, technical solutions and advantages of the present invention clearer, right below in conjunction with the accompanying drawings and the specific embodimentsThe present invention is described in further detail.
The workflow diagram of the configuration recovery method of the CPE that Fig. 2 adopts for the embodiment of the present invention, as shown in Figure 2,This flow process comprises:
Step 201:CPE can put by wildcard as current with the configuration of CMS intercommunication.
It should be noted that, in this step, described CPE can lead to as current with the configuration of CMS intercommunicationConfiguration comprises: after CPE electrifying startup, connect to keep intercommunication with CMS, using keep configuration when intercommunication asInitial configuration (current can wildcard putting) here, is not less than that CPE periodically detects the time of described maintenance intercommunicationThe timing of intercommunication timer; Or CPE using the default configuration after electrifying startup as initial configuration (hereCurrent can wildcard putting).
Step 202:CPE judges that whether the physical state of connection CMS interface is normal, if so, and execution step 203;Otherwise, execution step 205.
Step 203:CPE judges whether the address of the CMS of current configuration can reach, if so, and execution step 204;Otherwise, execution step 205.
In this step, in the time that described CMS is ACS, CPE judgement be whether the URL address of ACS can reach.
Step 204:CPE judges whether that can set up management with CMS is connected, if so, and execution step 207; No, execution step 205.
In the time that described CMS is ACS, CPE is connected with the CWMP that ACS sets up.
It should be noted that, the operation of step 202-204 is actually CPE and judges whether to take with configuration managementBusiness device CMS connects, if can not, need execution step 205; If can, perform step 207.
Step 205: judge current configuration with current can wildcard put whether consistent, if so, execution step 209; No, execution step 206.
When address that CPE judges the CMS that connects the undesired or current configuration of the physical state of CMS interface notCan reach or can not set up management while being connected with CMS, also need further to judge CPE current configuration and current canWhether wildcard is put consistent.
Step 206: select current can wildcard put the configuration of CPE is recovered after, execution step 209.
When address that CPE judges the CMS that connects the undesired or current configuration of the physical state of CMS interface notCan reach or can not set up management with CMS and be connected, and the current configuration of CPE and current can wildcard putting when inconsistent,Select current can wildcard putting to recover the configuration of CPE.
Step 207: judge current configuration with current can wildcard put whether consistent, if so, execution step 209; No, execution step 208.
Step 208: current configuration can be put by wildcard as current.
When can setting up management with CMS, CPE be connected, and current configuration and current can wildcard putting when inconsistent, needsCurrent configuration can be put by wildcard as current.
Step 209: while waiting to be detected and intercommunication timer CMS intercommunication to exceed timing, return to execution step202。
When judging current configuration and current while leading to configuration consistency or select current can wildcard putting the configuration of CPE to enterIf after row recovers or can set up that management be connected with CMS and current configuration and current while leading to configuration consistency,Or described using current configuration as current can wildcard postpone, wait for that intercommunication timer exceedes timing, when intercommunication fixedTime device while exceeding timing, can periodically return on the one hand the operation of execution step 202-208, periodicallyReturn successively to carry out to detect and connect whether the physical state of CMS interface normal, the address of the CMS of current configurationWhether can reach, whether can set up the step that management be connected with CMS, the described cycle for be used for detecting CPE andThe timing of the intercommunication timer of CMS intercommunication, i.e. the intercommunication of the detection CPE here and CMS intercommunication timingPeriodically timing of device; On the other hand, can in the time of CPE configuration variation, return execution step 202-208 operation,Return successively to carry out to detect and connect whether the physical state of CMS interface is normal, the address of the CMS of current configurationWhether can reach, whether can set up the step that management be connected with CMS, detection CPE and CMS is here mutualLogical intercommunication timer starts timing in the time of CPE configuration variation.
It should be noted that, in the time only need once judging the intercommunity of CPE and CMS, this stepOperation is omissible.
So far, completed the whole workflow of the configuration recovery method of the CPE that the embodiment of the present invention adopts.
Based on said method, Fig. 3 has provided the structural representation of the configuration of recovery device of embodiment of the present invention CPE. AsShown in Fig. 3, this device comprises: connection judgment unit 31, the first uniformity judging unit 32, configuration restore unit33, the second uniformity judging unit 34 and heavy setting unit 35, wherein,
Described connection judgment unit 31, can connect with CMS for judging whether.
Described the first uniformity judging unit 32, for being judged as and can not building with CMS when described connection judgment unit 31When vertical connection, judge whether consistent current configuration can put by wildcard with current.
Described configuration restore unit 33, when inconsistent for being judged as when described the first uniformity judging unit 32, choosingSelecting current can wildcard putting recovers the configuration of CPE.
Described the second uniformity judging unit 34, for being judged as and can building with CMS when described connection judgment unit 31When vertical connection, judge whether consistent current configuration can put by wildcard with current.
Described heavy setting unit 35, for being judged as current configuration and current when described the second uniformity judging unit 34Can wildcard put when inconsistent, current configuration can be put by wildcard as current.
Further, described connection judgment unit 31 comprises that Interface status judgment sub-unit 311, address can reach judgementUnit 312, management connection judgment subelement 313, wherein,
Whether described Interface status judgment sub-unit 311 is normal for judging the physical state of connection CMS interface;
Described address can reach judgment sub-unit 312, for being judged as normally when described Interface status judgment sub-unit 311Time, judge whether the address of the CMS of current configuration can reach;
Described management connection judgment subelement 313, is judged as and can reaches for reaching judgment sub-unit 312 when described addressTime, judge whether that can set up management with CMS is connected;
, described the first uniformity judging unit 32, for being judged as not when described Interface status judgment sub-unit 311Normally or described address can reach judgment sub-unit 312 and be judged as unreachable or described management connection judgment subelement 313Be judged as can not set up management connection time, judge whether consistent current configuration can put by wildcard with current;
Described the second uniformity judging unit 34, for being judged as and can building when described management connection judgment subelement 313When standpipe reason connects, judge whether consistent current configuration can put by wildcard with current.
This device also comprises timing unit 36, for periodicity timing;
, described connection judgment unit 31, also, for exceeding after timing when timing unit 36 timing, judgement isNo can connecting with CMS.
Or this device also comprises timing unit 36, during for CPE configuration variation, start timing;
, described connection judgment unit 31, also, for exceeding after timing when timing unit 36 timing, judgement isNo can connecting with CMS.
Further, this device also comprises setting unit 37, for connecting to keep intercommunication with CMS, and willConfiguration while keeping intercommunication is as initial configuration, and it is fixed that the time of described maintenance intercommunication is not less than with the intercommunication of CMS intercommunicationTime device timing; Or using default configuration as initial configuration, the initial configuration is here the current of CPE and leads toConfiguration.
So far, obtained the configuration of recovery device of the CPE that the embodiment of the present invention adopts. The work of installing described in Fig. 3Making flow process specifically can, referring to the workflow of method described in Fig. 2, repeat no more here.
In a word, the configuration recovery method of CPE of the present invention, first judge CPE whether can with CMSConnect, if can not, and when further judging current configuration and current can wildcard putting when inconsistent, choosingSelecting current can wildcard putting recovers the configuration of CPE; If can connect, and judge current configuration withCurrent can wildcard putting when inconsistent, current configuration can be put by wildcard as current. Because the inventive method is to pass throughJudging CPE occurs extremely, can not connect with CMS time, can put occurring by wildcard according to currentThe configuration of abnormal CPE recovers, so recover the CPE that can wildcard puts can with CMS intercommunication, makeCMS can manage CPE. Therefore, the inventive method, without expending a lot of manpower and materials, canRealize in the situation that CPE and CMS cannot intercommunications, CPE automatically restore to can and the configuration shape of CMS intercommunicationState, thus availability and the controllability of CPE ensured.
Further, the inventive method can also periodically judge the state of CPE, thereby to a greater degreeAvailability and the controllability of CPE are ensured.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all in essence of the present inventionWithin god and principle, any amendment of making, be equal to replacement, improvement etc., all should be included in the scope of protection of the inventionWithin.