Cable modem is met an urgent need when tftp server fault the method for reaching the standard grade
Technical field
The present invention relates to the method that network connects, be specifically related to cable modem and meet an urgent need when tftp server fault the method for reaching the standard grade.
Background technology
Data terminal equipment is connected to cable television network by cable modem (Cable Modem, CM), realizes network operation.When each unlatching CM reaches the standard grade, CM can from the TFTP of local side (Trivial File Transfer Protocol, TFTP) server downloads legal configuration file, wherein contain the network such as bandwidth, capacity, the grade of service that operator distributes to this terminal equipment and connect required parameter, lacking this configuration file CM cannot successfully reach the standard grade.
Usually, when tftp server break down cause CM cannot download this legal configuration file time, CM can make repeated attempts download.If still can not obtain this file after attempting for several times, CM can replacement frequency attempt downloading again.CM so constantly replacement frequency makes repeated attempts, until obtain legal configuration file, successfully reaches the standard grade.During this period, the terminal equipment of client cannot be surfed the Net, and that is, due to the fault of local side apparatus, operator cannot by the service of contract realization to client.
Summary of the invention
The object of the invention is to solve the prior art defect that CM cannot surf the Net when tftp server breaks down, a kind of method that CM meets an urgent need online is provided, it is a kind of compensation scheme when local side tftp server fault, the inconvenience that user is caused can be reduced, promote the service quality of Virtual network operator.
For achieving the above object, technical scheme provided by the invention is: a kind of when tftp server breaks down cable modem to meet an urgent need the method for reaching the standard grade, built-in emergent configuration file in advance in cable modem, emergent configuration file comprises the network temporarily distributing to cable modem and connects required parameter, and this emergent configuration file can make cable modem reach the standard grade;
This cable modem method of reaching the standard grade of meeting an urgent need is further comprising the steps of:
Meet an urgent need and reach the standard grade, described emergent configuration file configures described cable modem, and described cable modem is successfully reached the standard grade;
Legal configuration file is downloaded in request, and described cable modem, while reaching the standard grade, sends the request of downloading legal configuration file to described tftp server;
Again reach the standard grade, if obtain described legal configuration file, the configuration file that described cable modem uses this legal is reached the standard grade again.
Preferably, in this cable modem, realize timeout mechanism, use emergent configuration file to reach the standard grade setup times restriction to cable modem, and emergent reach the standard grade success time start timing.
Preferably, in the step of again reaching the standard grade, after exceeding the time restriction of timeout mechanism setting, if do not obtain legal configuration file yet, adopt following steps:
Cable modem disconnects LAN and holds network to connect, and continues to send the request of downloading legal configuration file, until obtain this legal configuration file to tftp server;
Cable modem uses legal configuration file again to reach the standard grade.
Preferably, when cable modem uses legal configuration file again to reach the standard grade successful, timing is made zero.Like this, when running into tftp server and breaking down, again can start cable modem of the present invention and to meet an urgent need the method for reaching the standard grade.
Preferably, when cable modem does not use legal configuration file again to reach the standard grade successful, restart and timing can not be made to make zero.Its objective is and prevent from not utilizing the provisional configuration file of CM to reach the standard grade indefinite duration the client of operator's place's registration.
The present invention is a kind of compensation scheme when local side tftp server fault, provides the emergency network service of user's a period of time, can promote the service quality of Virtual network operator, reduces customer complaint and is discontented with.Meanwhile, The invention also achieves emergent timeout mechanism of reaching the standard grade, disabled user can be stopped and utilize this emergent method of reaching the standard grade to reach the standard grade indefinite duration.
Accompanying drawing explanation
Fig. 1 is the flow chart of an embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, preferred embodiment of the present invention is described in detail, can be easier to make advantages and features of the invention be readily appreciated by one skilled in the art, thus more explicit defining is made to protection scope of the present invention.
Object of the present invention, is when tftp server breaks down, and provides the emergency network of user's certain hour to connect, and constantly attempts by normal channels connected network during this period.Both facilitate user like this, also give the buffer time of operator's maintenance local side tftp server simultaneously, reduce the customer complaint and being discontented with network quality that cause because network is obstructed, the environment of optimized network operation.
The present invention's built-in in CM or dynamic generation is in advance met an urgent need configuration file, and this file is stored in CMNonvol (Non-volatile memory, Nonvolatile memory).This emergent configuration file comprises the network such as bandwidth, capacity, the grade of service that operator distributes to this terminal equipment temporarily and connects required parameter, and CM can realize network by this configuration and connect.
Meanwhile, in CM, realize timeout mechanism, use emergent configuration file to reach the standard grade setup times restriction to CM.Under this mechanism, CM timing from the emergent configuration file of use is successfully reached the standard grade, after overtime restriction, if do not obtain legal configuration file, CM automatically disconnects LAN and holds network to connect.Even if restart CM, this time restriction still comes into force, and timing can not reset, unless CM uses legal configuration file and again reaches the standard grade successfully.
Concrete, refer to Fig. 1.The time restriction preset in this example is 30 minutes, and also can be other times length, the present invention does not limit this.
Step S101, when tftp server breaks down, when can not obtain legal configuration file, use the parameter of emergent configuration file to configure CM, and carry out the follow-up action of reaching the standard grade that Docsis (Data Over Cable Service Interface Specification, cable data System-Interface-Specification) requires.
Step S102, CM successfully reach the standard grade.
Step S103, timeout mechanism starts, and CM starts timing, and this timing number is saved in CM Nonvol.Meanwhile, CM periodically sends the request of downloading legal configuration file to local side tftp server.
If in the time restriction of 30 minutes, obtain legal configuration file, adopt step S104, CM to restart, use legal configuration file to reach the standard grade according to standard Docsi s flow process.Now timing number zero, emergent flow process of reaching the standard grade terminates.When running into tftp server and breaking down, again can start CM of the present invention and to meet an urgent need the method for reaching the standard grade.
If use Wondertek on emergent configuration file not obtain legal configuration file yet in 30 minutes, adopt step S105, CM to close LAN and hold network to connect, stop as client provides services on the Internet.CM continues periodically to send the request of downloading legal configuration file to local side tftp server.
If obtained legal configuration file in ensuing 60 minutes, adopt step S104, CM to restart, use legal configuration file to reach the standard grade, timing number makes zero.Within 60 minutes, also can be other times length herein, the present invention does not limit this.
If do not obtain legal configuration file yet in 60 minutes, CM is by processing mode when taking conventional tftp server to break down.Specific as follows:
Step S106, CM scan available downstream frequency.
Step S107, frequency locking success also obtains legal configuration file.
Step S108, uses legal configuration file to reach the standard grade successfully.
Step S109, empties timing number, and opens LAN port.Emergent flow process of reaching the standard grade terminates.When running into tftp server and breaking down, again can start CM of the present invention and to meet an urgent need the method for reaching the standard grade.
The above; be only the specific embodiment of the present invention; but protection scope of the present invention is not limited thereto; any those of ordinary skill in the art are in the technical scope disclosed by the present invention; the change can expected without creative work or replacement, all should be encompassed within protection scope of the present invention.Therefore, the protection range that protection scope of the present invention should limit with claims is as the criterion.