Summary of the invention
The one provided in the embodiment of the present invention connects automatic recovery method, Apparatus and system, improves equipment ease for maintenance, solves the failure problems because configuration error brings, reduce the cost of plant maintenance.
The object of the embodiment of the present invention is achieved through the following technical solutions:
A kind of connection automatic recovery method, comprising:
The first notice message is sent to Automatic Configuration Server
Judge whether to receive the first response message from Automatic Configuration Server in the given time;
If do not receive described first response message, then illustrate and occurred connection error, preserve current configuration, recover to dispatch from the factory configuration;
Connect with described Automatic Configuration Server;
When connecting successfully, notifying message to described Automatic Configuration Server second, carrying error event information in described second notice message, to make Automatic Configuration Server, process being reconfigured to user side equipment.
A kind of connection automatic recovery device, comprising:
First sending module, for sending the first notice message to Automatic Configuration Server
Receiver module, receives the first response message from Automatic Configuration Server in the given time for judging whether;
Configuration module, if do not receive described first response message for described receiver module, then illustrates and has occurred connection error, preserve current configuration, recover to dispatch from the factory configuration;
Connection establishment module, for connecting with described Automatic Configuration Server;
Second sending module, for connecting successfully when described connection establishment module, notify message to described Automatic Configuration Server second, carry error event information in described second notice message, to make Automatic Configuration Server, process is reconfigured to user side equipment.
A kind of connection automatic recovery system, comprising: CPE user side equipment and Automatic Configuration Server,
Wherein, described cpe device, for sending the first notice message to Automatic Configuration Server; Judge no the first response message received in the given time from Automatic Configuration Server; If do not receive described first response message, then illustrate and occurred connection error, preserve current configuration, recover to dispatch from the factory configuration; Connect with described Automatic Configuration Server; When connecting successfully, notifying message to described Automatic Configuration Server second, carrying error event information in described second notice message, to make Automatic Configuration Server, process being reconfigured to user side equipment;
Described Automatic Configuration Server, for receiving described first notice message; When receiving described first notice message, send described first response message; Receive the connection request from described cpe device, to connect; Receive described second notice message, according to the error event information of carrying in described second notice message, process is reconfigured to user side equipment.
Connect automatic recovery method, Apparatus and system by the one provided in the embodiment of the present invention, send the first notice message to Automatic Configuration Server and judge whether to receive the first response message from Automatic Configuration Server in the given time; If do not receive described first response message, preserve current configuration, recover to dispatch from the factory configuration; Connect with described Automatic Configuration Server; When connecting successfully, message is notified to described Automatic Configuration Server second, error event information is carried in described second notice message, to make Automatic Configuration Server, process is reconfigured to user side equipment, improve equipment ease for maintenance, solve the failure problems because configuration error brings, reduce the cost of plant maintenance.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
As shown in Figure 1, for a kind of applied field of the embodiment of the present invention, comprise: user side equipment 101 (Customer premises equipment, and Automatic Configuration Server 102 (Auto-Configuration Server CPE), ACS), wherein, Automatic Configuration Server 102 is managed for configuration cpe device 101 by CWMP agreement.
There is provided a kind of in the embodiment of the present invention and connect automatic recovery method, occurred configuration error below with cpe device 101, causing connecting fault is example, and introduce technical scheme of the present invention, as shown in Figure 2, the operation of cpe device is as follows, and the method comprises:
Step 201, to Automatic Configuration Server send first notice message;
Step 202, judge whether to receive the first response message from Automatic Configuration Server in the given time;
If step 203 does not receive described first response message, preserve current configuration, recover to dispatch from the factory configuration;
Step 204, to connect with described Automatic Configuration Server;
Step 205, when connecting successfully, notifying message to described Automatic Configuration Server second, to make Automatic Configuration Server, process being reconfigured to user side equipment.
Wherein, carry error event information in described second notice message, this error event information is used to indicate between cpe device with Automatic Configuration Server and cannot communicates, and has occurred the mistake of communication failure.
Connect automatic recovery method, Apparatus and system by the one provided in the embodiment of the present invention, send the first notice message to Automatic Configuration Server and judge whether to receive the first response message from Automatic Configuration Server in the given time; If do not receive described first response message, preserve current configuration, recover to dispatch from the factory configuration; Connect with described Automatic Configuration Server; When connecting successfully, message is notified to described Automatic Configuration Server second, error event information is carried in described second notice message, to make Automatic Configuration Server, process is reconfigured to user side equipment, improve equipment ease for maintenance, solve the failure problems because configuration error brings, reduce the cost of plant maintenance.
Wherein, in step 201, the first notice message is the Inform message defined in CWMP wide area network management agreement.
Wherein, in step 205, carry error event information in described second notice message, comprising:
Described second notice message carries described error event information by the RPC Methods field in CWMP agreement, and described error event information comprises Boot event and Automatic Recover event.Such as: define " 1 " in message and represent that Boot event " 11 " represents Automatic Recover event, support that the Automatic Configuration Server of Automatic Recover event can do respective handling, do not support that the Automatic Configuration Server of Automatic Recover event can this Inform as Boot event handling.
In above-described embodiment, can also comprise: when user side equipment and Automatic Configuration Server connect unsuccessful, recover the described current configuration of preserving.In step 203, before configuration is dispatched from the factory in recovery, configuration information when buffer memory fault occurs, here when connecting unsuccessful with Automatic Configuration Server, recover the configuration information of buffer memory, this step belongs to optional step.
Step 205, described Automatic Configuration Server reconfigure process to user side equipment, can comprise:
Described Automatic Configuration Server actuating equipment register flow path, reconfigures equipment;
Described Automatic Configuration Server carries out remote detection process; Or described Automatic Configuration Server shortens the equipment heartbeat detection time, to the monitoring that equipment carries out frequently.
Wherein, described Automatic Configuration Server actuating equipment register flow path, reconfigures equipment, can re-establish the connection with user side equipment.And Automatic Configuration Server carries out remote detection process is to detect concrete fault, comprising: config failure, software fault or hardware fault etc.It is to frequently monitor equipment that Automatic Configuration Server shortens the equipment heartbeat detection time, prevents from connecting again interrupting.
Provide a kind of connection automatic recovery device in the embodiment of the present invention, as shown in Figure 3, this device comprises:
First sending module 310, for sending the first notice message to Automatic Configuration Server;
Receiver module 320, receives the first response message from Automatic Configuration Server in the given time for judging whether;
Configuration module 330, if do not receive described first response message for described receiver module 320, preserves current configuration, recovers to dispatch from the factory configuration;
Connection establishment module 340, for connecting with described Automatic Configuration Server;
Second sending module 350, for connecting successfully when described connection establishment module 340, notify message to described Automatic Configuration Server second, carry error event information in described second notice message, to make Automatic Configuration Server, process is reconfigured to user side equipment.
Wherein, the described second notice message that described second sending module sends carries described error event information by the RPC Methods field in CWMP wide area network management agreement, and described error event information comprises Boot event and Automatic Recover event.
Described configuration module 330, time also for connecting unsuccessful with described Automatic Configuration Server, recovers the described current configuration of preserving.Described configuration module 330 belongs to optional module.
Additionally provide a kind of connection automatic recovery system in the embodiment of the present invention, this system comprises: CPE user side equipment and Automatic Configuration Server,
Wherein, described cpe device, for sending the first notice message to Automatic Configuration Server; Judge no the first response message received in the given time from Automatic Configuration Server; If do not receive described first response message, preserve current configuration, recover to dispatch from the factory configuration; Connect with described Automatic Configuration Server; When connecting successfully, notifying message to described Automatic Configuration Server second, carrying error event information in described second notice message, to make Automatic Configuration Server, process being reconfigured to user side equipment;
Described Automatic Configuration Server, for receiving described first notice message; When receiving described first notice message, send described first response message; Receive the connection request from described cpe device, to connect; Receive described second notice message, according to the error event information of carrying in described second notice message, process is reconfigured to user side equipment.
Wherein, when described cpe device and described Automatic Configuration Server connect unsuccessful, recover the described current configuration of preserving.
Wherein, the described error event information according to carrying in described second notice message, reconfigures process to user side equipment, comprising:
Described Automatic Configuration Server actuating equipment register flow path, reconfigures described cpe device;
Described Automatic Configuration Server carries out remote detection process to described cpe device; Or described Automatic Configuration Server shortens the equipment heartbeat detection time, to carry out monitoring frequently to described cpe device.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by software and realize, can certainly all be implemented by hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Above to invention has been detailed introduction, applying specific case herein and setting forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.