Cable modem is emergent method of reaching the standard grade when the tftp server fault
Technical field
The present invention relates to the method for network connection, be specifically related to cable modem emergent method of reaching the standard grade when the tftp server fault.
Background technology
Cable modem (Cable Modem, CM) is connected to cable television network with data terminal equipment, realizes network operation.When each unlatching CM reaches the standard grade, CM can be from TFTP (the Trivial File Transfer Protocol of local side, TFTP) server is downloaded legal configuration file, wherein comprised the essential parameters of network connection such as bandwidth that operator distributes to this terminal equipment, capacity, the grade of service, lacking this configuration file CM can't successfully reach the standard grade.
Usually, when tftp server breaks down when causing CM can't download this legal configuration file, the CM download that can make repeated attempts.If still can not obtain this document 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, client's terminal equipment can't be surfed the Net, and that is to say, because the fault of local side apparatus, operator can't according to the contract realize the service to the client.
Summary of the invention
The object of the invention is to solve the prior art defective that CM can't surf the Net when tftp server breaks down, a kind of CM method of emergent online is provided, it is a kind of compensation scheme when local side tftp server fault, can reduce the inconvenience that the user is caused, promote the service quality of Virtual network operator.
For achieving the above object, technical scheme provided by the invention is: a kind of method that cable modem is met an urgent need and reached the standard grade when tftp server breaks down, the emergent configuration file of built-in or Dynamic Generation in advance in cable modem, this emergent configuration file can make cable modem reach the standard grade;
The emergent method of reaching the standard grade of this cable modem is further comprising the steps of:
Emergent reaching 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 sends the request of downloading legal configuration file to described tftp server when reaching the standard grade;
Again reach the standard grade, if obtain described legal configuration file, described cable modem uses this legal configuration file again to reach the standard grade.
Preferably, in this cable modem, realize timeout mechanism, cable modem is used the setup times restriction of reaching the standard grade of emergent configuration file, and begin timing when reaching the standard grade success emergent.
Preferably, in the step of again reaching the standard grade, exceed the time restriction that timeout mechanism arranges after, if do not obtain yet legal configuration file, adopt following steps:
Cable modem disconnects LAN end network connection, and continues to send the request of downloading legal configuration file to tftp server, until obtain this legal configuration file;
Cable modem uses legal configuration file again to reach the standard grade.
Preferably, again reach the standard grade when successful when cable modem uses legal configuration file, timing is made zero.Like this, when running into tftp server and break down, can again start the emergent method of reaching the standard grade of cable modem of the present invention.
Preferably, cable modem does not use legal configuration file again to reach the standard grade when successful, restarts timing is made zero.Its objective is and prevent that the client who does not register at the operator place from utilizing the provisional configuration file of CM to reach the standard grade indefinite duration.
The present invention is a kind of compensation scheme when local side tftp server fault, and the emergency network service of user's a period of time is provided, and can promote the service quality of Virtual network operator, reduces customer complaint and discontented.Simultaneously, the present invention has also realized emergent timeout mechanism of reaching the standard grade, and can stop the disabled user and utilize this emergent method of reaching the standard grade to reach the standard grade indefinite duration.
Description of drawings
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, thereby so that advantages and features of the invention can be easier to be it will be appreciated by those skilled in the art that protection scope of the present invention is made more explicit defining.
Purpose 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 channel connected network during this period.So both make things convenient for the user, also given simultaneously the buffer time of operator's maintenance local side tftp server, reduced the customer complaint that causes because network is obstructed and discontented to network quality, the environment of optimized network operation.
The present invention is the emergent configuration file of built-in or dynamic generation in CM in advance, and this document is stored among the CM Nonvol (Non-volatile memory, Nonvolatile memory).Should emergent configuration file comprise the essential parameters of network connection such as bandwidth that operator distributes to this terminal equipment temporarily, capacity, the grade of service, CM can realize network connection by this configuration.
Simultaneously, in CM, realize timeout mechanism, CM is used the setup times restriction of reaching the standard grade of emergent configuration file.Under this mechanism, CM is from using the beginning timing of successfully reaching the standard grade of emergent configuration file, and after the overtime restriction, if do not obtain legal configuration file, CM automatic disconnection LAN holds network connection.Even restart CM, this time restriction still comes into force, and timing can not zero clearing, unless CM uses legal configuration file and again reaches the standard grade successfully.
Concrete, see also Fig. 1.Time restriction default in this example is 30 minutes, also can be other times length, and the present invention does not do restriction to this.
Step S101, when tftp server breaks down, in the time of can not obtaining legal configuration file, parameter with emergent configuration file configures 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 standard) requires.
Step S102, CM successfully reaches the standard grade.
Step S103, timeout mechanism starts, and CM begins timing, and this timing number is saved among the CM Nonvol.Simultaneously, CM periodically sends the request of downloading legal configuration file to the local side tftp server.
If in 30 minutes time restriction, obtained legal configuration file, adopt step S104, CM restarts, and uses legal configuration file secundum legem Docsis flow process to reach the standard grade.Timing this moment number makes zero, and emergent flow process of reaching the standard grade finishes.When running into tftp server and break down, can again start the emergent method of reaching the standard grade of CM of the present invention.
Wondertek did not obtain legal configuration file in 30 minutes yet on the emergent configuration file if use, and adopted step S105, and CM closes LAN end network connection, stops to provide services on the Internet for the client.CM continues periodically to send the request of downloading legal configuration file to the local side tftp server.
If in ensuing 60 minutes, obtain legal configuration file, adopt step S104, CM restarts, and uses legal configuration file to reach the standard grade, and the timing number makes zero.Can be other times length herein in 60 minutes, the present invention does not do restriction to this yet.
If in 60 minutes, do not obtain yet legal configuration file, the processing mode when CM will take conventional tftp server to break down.Specific as follows:
Step S106, the downstream frequency that CM scanning is available.
Step S107, the frequency locking success also obtains legal configuration file.
Step S108 uses legal configuration file to reach the standard grade successfully.
Step S109 empties the timing number, and opens the LAN port.Emergent flow process of reaching the standard grade finishes.When running into tftp server and break down, can again start the emergent method of reaching the standard grade of CM of the present invention.
The above; it only is the specific embodiment of the present invention; but protection scope of the present invention is not limited to this; any those of ordinary skill in the art are in the disclosed technical scope of the present invention; variation or the replacement that can expect without creative work all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range that claims were limited.