Summary of the invention
In view of above-mentioned one or more problems, the present invention proposes a kind of terminal equipment configuration system and method.
Terminal equipment configuration system according to the present invention comprises: the terminal equipment apparatus for initializing, be used for terminal equipment is carried out initialization, and be the terminal equipment configuration unique identification; The configuration file apparatus for establishing is used to set up and the configuration file that is applicable to terminal equipment that storage is corresponding with unique identification; And the terminal equipment configuration device, be used for obtaining the configuration file corresponding from the configuration file apparatus for establishing, and terminal equipment be configured according to configuration file with unique identification according to unique identification.
Wherein, the configuration file apparatus for establishing comprises: file is set up module, is used to store unique identification, and the foundation configuration file that be applicable to terminal equipment corresponding with unique identification; File storage module is used to store the configuration file that be applicable to terminal equipment corresponding with unique identification.
Wherein, the terminal equipment configuration device comprises: the configuration file acquisition module is used for obtaining the configuration file corresponding with unique identification according to unique identification from the configuration file apparatus for establishing; The configuration file parsing module is used for the configuration file corresponding with unique identification resolved; And the terminal equipment configuration module, be used for instruction according to the configuration file of process parsing, terminal equipment is configured.
Wherein, the terminal equipment configuration device also comprises: the configuration file authentication module is used for the validity of the configuration file that be applicable to terminal equipment corresponding with unique identification is verified.
Wherein, the unique identification of terminal equipment is the MAC Address of terminal equipment.
Wherein, configuration file comprises a kind of in the following content at least: file name information, configuration order and parameter information, and file verification and.
Terminal equipment configuring method according to the present invention may further comprise the steps: S102, before terminal equipment dispatches from the factory, carry out initialization to terminal equipment, for terminal equipment is provided with unique identification; S104 is based on the user's of terminal equipment application, the configuration file that is applicable to terminal equipment that foundation and storage are corresponding with unique identification in network server device; And S106, terminal equipment obtains the configuration file that be applicable to terminal equipment corresponding with unique identification according to unique identification from network server device, and is configured according to configuration file.
Wherein, step S104 further may further comprise the steps: S1042, based on user's application, set up the configuration file that be applicable to terminal equipment corresponding with unique identification in network server device; S1044, the storage configuration file that be applicable to terminal equipment corresponding in network server device with unique identification.
Wherein, step S106 further may further comprise the steps: S1062, terminal equipment obtain the configuration file that be applicable to terminal equipment corresponding with unique identification according to unique identification from network server device; S1064, terminal equipment is verified the validity of the configuration file that is applicable to terminal equipment corresponding with unique identification that obtained; S1066, terminal equipment is to resolving through the configuration file that is applicable to terminal equipment corresponding with unique identification of checking; And S1068, terminal equipment is according to being configured through the instruction in the configuration file of resolving.
Wherein, the unique identification of terminal equipment is the MAC Address of terminal equipment.The configuration file of terminal equipment comprises a kind of in the following content at least: file name information, configuration order and parameter information, and file verification and.
Config update method according to terminal equipment of the present invention may further comprise the steps: S1024, and terminal equipment proposes the config update request to network server device; S1026, network server device generate the more new configuration file of terminal equipment according to the unique identification of terminal equipment, the former configuration of terminal equipment and the update request of terminal equipment; S1028, terminal equipment obtains more new configuration file from network server device, is configured renewal according to new configuration file more.
Wherein, step S1028 may further comprise the steps: S1028-2, and terminal equipment sends the config update file to network server device and obtains request, and wherein, the config update file obtains the unique identification that carries terminal equipment in the request; S1028-4, network server device is verified terminal equipment according to the unique identification of terminal equipment; And S1028-6, obtain more new configuration file according to unique identification from network server device by the terminal equipment of verifying.
By the present invention, can avoid operator to sell preceding allocation problem, thereby make operator can commence business, expand new user rapidly in the face of the network-termination device of a large amount of different vendor's difference in functionalitys.
Embodiment
Below with reference to accompanying drawing, describe the specific embodiment of the present invention in detail.
Referring to figs. 1A to Fig. 1 C, the terminal equipment configuring method according to the embodiment of the invention is described.Shown in Figure 1A, this terminal equipment configuring method may further comprise the steps: S102, before terminal equipment dispatches from the factory, carry out initialization to terminal equipment, for terminal equipment is provided with unique identification; S104 is based on the user's of terminal equipment application, the configuration file that is applicable to terminal equipment that foundation and storage are corresponding with unique identification in network server device; And S106, terminal equipment obtains the configuration file that be applicable to terminal equipment corresponding with unique identification according to unique identification from network server device, and is configured according to configuration file.
Shown in Figure 1B, step S104 further may further comprise the steps: S1042, based on user's application, set up the configuration file that be applicable to terminal equipment corresponding with unique identification in network server device; S1044, the storage configuration file that be applicable to terminal equipment corresponding in network server device with unique identification.
Shown in Fig. 1 C, step S106 further may further comprise the steps: S1062, terminal equipment obtain the configuration file that be applicable to terminal equipment corresponding with unique identification according to unique identification from network server device; S1064, terminal equipment is verified the validity of the configuration file that is applicable to terminal equipment corresponding with unique identification that obtained; S1066, terminal equipment is to resolving through the configuration file that is applicable to terminal equipment corresponding with unique identification of checking; And S1068, terminal equipment is according to being configured through the instruction in the configuration file of resolving.
Wherein, the unique identification of terminal equipment is the MAC Address of terminal equipment.The configuration file of terminal equipment comprises a kind of in the following content at least: file name information, configuration order and parameter information, and file verification and.
Fig. 2 shows general home network networking diagram.As can be seen from Figure 2, the network environment more complicated of home network, the type complexity of the network terminal is various.This just requires the automatic allocation plan of the network terminal can adapt to above-mentioned environment.The intellectuality of the network terminal has changed network management structure, and the configuration of terminal is also inevitable complicated more.But for the user, wish the terminal zero configuration, terminal powers on and just can use, and is simple more good more.Therefore, need a kind of method that can solve problems such as network-termination device disposes automatically, configuration file auto-update, version file auto-update business.
With reference to figure 3, the sequential chart that disposes upgrading according to the network-termination device of the embodiment of the invention automatically is described.As shown in Figure 3, the network-termination device process that disposes upgrading automatically may further comprise the steps:
S302, when network-termination device dispatched from the factory, equipment vendors were kept at lane terminal with the unique identification of terminal, the automatic configuration feature of network-termination device is set for enabling, and network-termination device configuration file example and checking algorithm are offered operator in the lump.
S304, the user is to operator's application business and terminal equipment.
S306, operator provides network-termination device and user account to the user.Before network-termination device is provided to the user, operator needs execution in step S3062, extract the unique identification of network-termination device, and execution in step S3064, according to the business of user applies and the uniquely identified difference of terminal equipment, the network-termination device configuration template that uses equipment vendors to provide generates the configuration file by the network-termination device of the unique identification index of equipment.The user brings back the back execution in step S308 of family with network-termination device.
S308 powers on to terminal.
S310, network-termination device sends DHCP discovery to network, and network-termination device is attached to the unique identification of equipment in the DHCP option field of DHCP message.
S312, the undelegated Dynamic Host Configuration Protocol server of operator be the Discovery message that sends of response to network terminal equipment not; The Dynamic Host Configuration Protocol server that operator is authorized extracts the unique identification that is attached to the network-termination device in the DHCP option field in the DHCP discovery message, and execution in step S3122, initiates authentication request to the network manager that operator is authorized.The network manager execution in step S3124 that operator is authorized, whether inquire about this network-termination device according to the unique identification of network-termination device registered, if registered, execution in step S3126 then returns to Dynamic Host Configuration Protocol server that operator authorizes to show the authentication success with the configuration filename of network-termination device and file server information.If authentication success, then operator's Dynamic Host Configuration Protocol server of authorizing is execution in step S3128, in the additional DHCP option field of the configuration filename of the network-termination device that the network manager that operator is authorized returns and configuration file server information and the DHCP discovery message that sends of response to network terminal equipment.
S314, network-termination device extracts configuration filename and configuration file server IP address or domain name in the DHCP option field of the dhcp server response that operator is authorized, and initiates the request of download configuration file to the TFTP file server that operator is authorized.
S316, the file server that operator is authorized is carried out and is found the configuration file of equipment and send file to network-termination device according to the filename that carries in the configuration file download request.
S318, the network-termination device inspection also receives configuration file and configuration file is resolved execution with the configuration network terminal equipment, makes new configuration take-effective.
S320, behind the new configuration take-effective of network-termination device, the service server registration of authorizing to operator.
S322, the service server that operator is authorized is accepted the service log-on of network-termination device.
S324, network-termination device normally moves, for the user provides relevant business.
With reference to figure 4, illustrate that network-termination device carries out the internal processes of file process/when coming into force.As shown in Figure 4, this process may further comprise the steps: S402, network-termination device begin the processing configuration file; S404, calculate configuration file verification and; Whether S406 judges verification and calculates successful; S408 if verification is not passed through, then makes mistakes and alarming processing; S410 if verification is passed through, then is configured file line and resolves, to generate configuration set; S412 judges that configuration file resolves whether success, fails then execution in step 408 if resolve, make mistakes and alarming processing, if resolve successfully, and execution in step S414 then; S414 carries out the configuration set configurating terminal; S416 judges whether configuration is successful, gets nowhere if carry out, and then execution in step S408 makes mistakes and alarming processing, otherwise carries out step S418; S418, the configuration file processing finishes.
With reference to figure 5, the internal processes when the network-termination device execution is resolved configuration file is described.As shown in Figure 5, this processing procedure may further comprise the steps: S502, network-termination device begin to carry out configuration set; S504, network-termination device read an order; S506, network-termination device judge whether that executed finishes all orders; S508, if all orders all are finished, then the network-termination device configuration set finishes; S510, if be not finished, network-termination device analysis order kind then; S512 judges whether the order kind is the edition upgrading order; S514, if the order kind is the edition upgrading order, then network-termination device is carried out the version file upgrading according to the indication of order; S516 if the order kind is not the edition upgrading order, judges then whether the order kind is configuration upgrading order; S518, if the order kind is configuration upgrading order, then network-termination device is carried out the configuration file upgrading according to the indication of order; S520 if the order kind is not configuration upgrading order, then carries out configuration order, configurating terminal device; If edition upgrading or the failure of configuration file escalation process, then execution in step S522 makes mistakes and alarming processing.Continue to read configuration order afterwards,, then enter step S508, carry out configuration set and finish up to all configuration sets all are finished.
With reference to figure 6, the process of network-termination device according to the upgrading of command execution version file is described.As shown in Figure 6, this process may further comprise the steps: S602, and network-termination device begins update version document; S604, network-termination device judge the current configuration item that whether allows edition upgrading; S606, if currently do not allow, then the version file escalation process finishes; S608, if the upgrading of current permission version file, then network-termination device parses the relevant information of version files such as the version file name in the edition upgrading order, version file server ip address or domain name upgrading; S610, network-termination device sends the version file request to the version file server.S612 if the version file request is accepted by file server, then downloads to network-termination device with version file; After S614, version file download and to finish, the verification of calculated version file and, to carry out integrality and validity check; S616 is if integrality and validity check failure then makes mistakes and alarming processing and finish this edition upgrading; S618 is if success is then carried out edition upgrading and finished this edition upgrading.
With reference to figure 7, the process of network-termination device according to the upgrading of command execution configuration file is described.As shown in Figure 7, this process may further comprise the steps: S702, network-termination device begin to upgrade according to the command execution configuration file; S704, network-termination device judge the current configuration file upgrading that whether allows; S706 if the current configuration file that do not allow is upgraded, then finishes according to command execution configuration file escalation process; S708, if allow, the parametric solution of configuration file upgrading separated out during then network-termination device will be ordered, and comprised configuration filename, configuration file server IP address or domain name; S710, network-termination device is initiated the configuration file download request to configuration file server; S712 if the configuration file download request is accepted by file server, then downloads to network-termination device with configuration file; S714, to the configuration file calculation check and and carry out validity check; S716, if check and not pass through, promptly configuration file is invalid, then make mistakes and warn processings, and the end process of upgrading according to the command execution configuration file; S718, if inspection is passed through, then network-termination device is resolved configuration file, carries out the process of handling and finishing to upgrade according to the command execution configuration file.
The mode of network-termination device processing configuration file is recurrence, increment as can be seen.The network manager can specify network-termination device to go certain file server A to read configuration file A.ini in configuration file, further, in the A.ini configuration file, can also specify network-termination device to go certain file server B to read configuration file B.ini, further, in the B.ini configuration file, can also specify network-termination device to go certain file server C to read configuration file C.ini.So repeatedly, finally make network-termination device obtain to be configured to fully realize corresponding business.
With reference to figure 8, illustrate and make mistakes and the processing procedure of alarming processing.As shown in Figure 8, this process may further comprise the steps: S802, network-termination device begin to handle and make mistakes and alarm; S804, analyzing makes mistakes and alarm reason occurs and writes down alarm log; S806 lights or sends alarm sound with corresponding LED lamp, and prompting subscriber network terminal equipment work is unusual, needs contact operator to obtain help; S808 finishes to make mistakes and the alarming processing process.
With reference to figure 9, the automatic layoutprocedure according to the network-termination device of the embodiment of the invention is described.As shown in Figure 9, this process may further comprise the steps: S902, and layoutprocedure begins automatically; S904 carries out automatic layoutprocedure; S906 judges whether to exist mistake/alarm; S908 if exist, then makes mistakes and alarming processing; S910, user get in touch with operation and go up solution; S912, the automatic layoutprocedure of network-termination device finishes; S914, if there is no mistake/alarm, then network-termination device makes new configuration take-effective; S916, network-termination device arrives service server according to new configuration normal registration; S918, network-termination device normal registration user normally uses, and then finishes automatic layoutprocedure.
With reference to figure 10A, the process according to the configuration change of the network-termination device of the embodiment of the invention is described.Shown in Figure 10 A, this process may further comprise the steps: S1002, user propose the business change application, and the user offers operator with user account information.S1004, operator retrieves unique identification and original business of subscriber network terminal equipment according to user account, and according to user applies new business more.The network manager that S1006, operator authorize after according to the renewal of the unique identification of network-termination device and professional more newly-generated network-termination device correspondence configuration file and be placed into the operating path of the file server that operator authorizes.S1008, the network manager that operator is authorized sends the config update notice to terminal equipment.Because on network manager, registered before the network-termination device, therefore passed through automatic layoutprocedure.Be configured the relevant information of network manager in the terminal equipment.Network-termination device can start corresponding private network crossing process to make network manager config update can be notified successfully to send to network-termination device.After S1010, network-termination device receive the config update notice, initiate DHCP Inform message, the unique identification of carried terminal equipment among the DHCP option of Inform message to network.S1012, after the Dynamic Host Configuration Protocol server that operator is authorized was received DHCP Inform message, with the unique identification extraction of network-termination device, the network manager of authorizing to operator sent authentication request.S1014, the network manager that operator is authorized carries out authentication according to the terminal unique identification.S1016 if authentication is passed through, then sends to the Dynamic Host Configuration Protocol server that operator is authorized with the configuration filename of network-termination device correspondence and file server IP address or domain name.S1018, configuration filename after the Dynamic Host Configuration Protocol server that operator is authorized will upgrade and file server IP address or domain name send to network-termination device by the DHCP option field in the DHCP ACK message.S1020-S1022, the configuration file after network-termination device will upgrade comes into force, so that the corresponding service after the renewal to be provided.
With reference to figure 10B, the flow process of handling according to the config update of the network-termination device of the embodiment of the invention is described.Shown in Figure 10 B, the config update method of this terminal equipment may further comprise the steps: S1024, and terminal equipment proposes the config update request to network server device; S1026, network server device generate the more new configuration file of terminal equipment according to the unique identification of terminal equipment, the former configuration of terminal equipment and the update request of terminal equipment; S1028, terminal equipment obtains more new configuration file from network server device, is configured renewal according to new configuration file more.
Wherein, shown in Figure 10 C, step S1028 may further comprise the steps: S1028-2, and terminal equipment sends the config update file to network server device and obtains request, and wherein, the config update file obtains the unique identification that carries terminal equipment in the request; S1028-4, network server device is verified terminal equipment according to the unique identification of terminal equipment; And S1028-3, obtain more new configuration file according to unique identification from network server device by the terminal equipment of verifying.
In sum, network terminal method of automatic configuration according to the present invention may further comprise the steps: 1) network-termination device dispatches from the factory, store unique identification in advance, the automatic configuration feature of terminal equipment is set for enabling, terminal equipment allows configuration upgrading and edition upgrading, and it is the DHCP mode that terminal is obtained the IP address mode.2) user proposes terminal equipment and professional application to operator.3) network manager will be registered to the network manager that operator is authorized by the unique identification of the network-termination device of its management according to the equipment and the professional application record of operator.4) network manager is with the order line form of network-termination device acceptance, according to the network environment at terminal equipment place and the configuration file that service function requirement is set up and equipment adapts.And configuration file is put into file server, configuration file is with the unique identification index of terminal equipment.5) user takes network-termination device and powers on.6) network terminal is initiated DHCP request, the Dynamic Host Configuration Protocol server request IP address that the operator on network is authorized.7) Dynamic Host Configuration Protocol server of operator's mandate is to network terminal authentication and distributing IP address and other automatic configuration parameter.8) network terminal correctly obtains the IP address, and obtains file server address and the configuration filename that operator is authorized the message of the dhcp server response of authorizing from operator, initiates the configuration file download request with this to this document server.9) file server sends the configuration upgrade file of network-termination device correspondence to terminal equipment.10) validity of network-termination device checking configuration file.11) network-termination device is resolved configuration file, and the configuration order in the configuration file is carried out one by one with configurating terminal device.12) configuration take-effective and operate as normal after network-termination device equipment will upgrade.
Wherein, if have a more than network interface that a plurality of MAC Address are promptly arranged as terminal equipment unique identification and terminal equipment with MAC Address, then terminal needs storage to be used to initiate DHCP (Dynamic Host Configuration Protocol at least, abbreviation DHCP) MAC Address of the network interface of request, and as its unique identification.The message of follow-up automatic configuration all is to transmit through this interface.
The network manager is according to the filename of the configuration file of the unique identification of selling terminal (MAC Address) setting network terminal equipment, as macaddress.ini.Require to set up the configuration file that terminal equipment adapts to according to business and network environment, and all are put into the working directory of the file server of operator's mandate by the configuration file of its office terminal.The configuration file of each terminal equipment is network manager's appointment on the file server, can rewrite by hand according to configuration file example and form that designated equipment manufacturer provides, also can make shell script and generate configuration file in batches.
Configuration file comprises the content of the following aspects: file name information is used for checking the validity of configuration file; Configuration order and parameter information comprise the some or all of of all configuration orders that network-termination device supports, need satisfy the network environment and the business realizing requirement of terminal equipment work; File verification and, its verification that to be network manager calculate according to the checking algorithm identical with the checking algorithm of the pairing terminal equipment of configuration file and, be used to guarantee the real effectiveness of configuration file.Wherein, configuration file safety/complete TFTP that passes through downloads to this locality.
After terminal equipment upgrades configuration, new configuration is used, utilize new configuration parameter to register, provide corresponding business to the user to service server by the method that restarts or other terminal is accepted.
The TFTP file server that Dynamic Host Configuration Protocol server that the network manager that operator is authorized, operator are authorized and operator are authorized is a logic entity, is not must be separate equipment, can be according to the application scenario flexible arrangement.Can on a station server, realize above-mentioned three logic entities fully.
Wherein, file server includes but not limited to use the TFTP agreement, File Transfer Protocol, and http protocol is realized file server.
Figure 11 shows the terminal equipment configuration system according to the embodiment of the invention.As shown in figure 11, this terminal equipment configuration system comprises: terminal equipment apparatus for initializing 1102, be used for terminal equipment is carried out initialization, and be the terminal equipment configuration unique identification; Configuration file apparatus for establishing 1104 is used to set up and the configuration file that is applicable to terminal equipment that storage is corresponding with unique identification; And terminal equipment configuration device 1106, be used for obtaining the configuration file corresponding from the configuration file apparatus for establishing, and terminal equipment be configured according to configuration file with unique identification according to unique identification.
Wherein, configuration file apparatus for establishing 1104 comprises: file is set up module 11042, is used to store unique identification, and the foundation configuration file that be applicable to terminal equipment corresponding with unique identification; File storage module 11044 is used to store the configuration file that be applicable to terminal equipment corresponding with unique identification.
Wherein, terminal equipment configuration device 1106 comprises: configuration file acquisition module 11062 is used for obtaining the configuration file corresponding with unique identification according to unique identification from the configuration file apparatus for establishing; Configuration file parsing module 11066 is used for the configuration file corresponding with unique identification resolved; And terminal equipment configuration module 11068, be used for instruction according to the configuration file of process parsing, terminal equipment is configured.
Wherein, terminal equipment configuration device 1106 also comprises: configuration file authentication module 11064 is used for the validity of the configuration file that be applicable to terminal equipment corresponding with unique identification is verified.
Wherein, the unique identification of terminal equipment is the MAC Address of terminal equipment.The configuration file of terminal equipment comprises a kind of in the following content at least: file name information, configuration order and parameter information, and file verification and.
By the present invention, can dispose flexibly as required, have very big flexibility.In addition, the present invention has perfect authentication verification scheme, thereby the network-termination device of having guaranteed registered mandate is realized correct automatic configuration, and stops the network management system of undelegated network-termination device access carrier effectively.Also remedy the born deficiency of DHCP agreement based on DHCP option and network terminal uniquely identified authentication mechanism in addition, avoided network-termination device unauthorized Dynamic Host Configuration Protocol server from the network to obtain invalid provisioning information and the problem of cisco unity malfunction.The present invention has avoided operator to sell preceding allocation problem in the face of the network-termination device of a large amount of different vendor's difference in functionalitys.Make operator to commence business rapidly, expand new user.Overcome the problem of running in actual use of prior art.Major advantage have following some:
Solved operator in the prior art must be configured (hatching) to the network-termination device that different vendor dispatches from the factory respectively before selling terminal equipment problem.
The network manager revises the configuration file that generates configurating terminal device by the network-termination device configuration template that equipment producer provides, and has solved in the prior art to be familiar with and the capable problem of carrying out configuration of own organizational command the order line of producer.The use of configuration template helps configuration file and generates templating, automation.
Unique identification by network-termination device makes that network-termination device can unique identification in the network manager management domain.And with the configuration file of this unique identification index network-termination device correspondence.Each terminal correspondence independently configuration file, helps operator and carries out different business.
By the uniquely identified method for authenticating of DHCP option carried terminal equipment, remedied the born deficiency of DHCP agreement, avoided undelegated network-termination device to be linked into the network management system of operator.Thereby also avoided network-termination device to obtain the problem that invalid automatic configuration parameter causes network-termination device normally not move from undelegated Dynamic Host Configuration Protocol server.
Network-termination device is carried out the purpose that is configured to reach automatic modification network terminal configuration by authentication, parsing to configuration file.Overcome in the prior art, the one by one problem of configuration network terminal that must disperse, that continue by order line (CLI), the web page, SNMP, TR069 etc.The introducing of configuration file helps to keep the consistency and the integrality of network terminal layoutprocedure.Reduced the network bandwidth is disperseed, lasting the taking of network management.
Network-termination device can be realized automatic layoutprocedure recurrence, increment based on the collocation method of configuration file.Be beneficial to the configuration extraction of Device-General is become general configuration file, equipment characteristic configuration file is arranged separately, helps the configuration file automation and generates, to alleviate the work that administers and maintains of configuration file.
The automatic allocation plan of present networks terminal equipment is flexible arrangement each network element wherein as required.Each server in the scheme all is a logic entity, and operator can take different implementations according to network size.
Ability will readily understand additional advantages and modifications of the present invention in the technical staff.Therefore, the present invention is not limited to the specific detail and the exemplary embodiments that illustrate and describe herein in the aspect widely.Therefore, can under the condition that does not break away from by claim and the spirit or scope of the present invention that equivalent limited thereof, make various modifications.