Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Though shown exemplary embodiment of the present disclosure in the accompanying drawing, yet should be appreciated that and to realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order to understand the disclosure more thoroughly that these embodiment are provided, and can with the scope of the present disclosure complete convey to those skilled in the art.
Fig. 1 shows the flow chart of the method 100 of configuration network resource according to an embodiment of the invention.As shown in Figure 1, this method 100 starts from step S102, and in step S102, terminal equipment obtains the type information of network access device.
Particularly, in step S102, after terminal equipment and network access device connect, terminal equipment send to be used for obtaining the request message of the type information of network access device to network access device, and terminal equipment receives the type information of the network access device that network access device returns based on above-mentioned request message then.
In one embodiment of the invention, the type information of network access device can be used for representing the network access device model, and this network access device can be the various equipment that the communication line in the network is coupled together that are applicable to such as router, switch, repeater and hub.
Be that router is that example is introduced with network access device below, above-mentioned type information can adopt following form to represent: the model of a router of TL-WR841N(Pu Lian company), the model of a router of company of DIR-612(D-link), the model of a router of E521M(Huawei Company), the model of a router of WAP200Wireless-G(Cisco System Co.) etc.What certainly can understand is not limit the form of expression of the type information of router in an embodiment of the present invention.
Be the type information how the example introduction obtains router with model for the router of " TL-WR841N " only below, at first terminal equipment sends the HTTP request of obtaining type information to the router of TL-WR841N, the router of TL-WR841N can return checking request code 401, carries the type information (namely carrying " TL-WR841N ") of router in checking request code 401.Only introduce terminal equipment above and how to obtain model and be the type information of the router of " TL-WR841N ", however obtain other types router type information mode similarly, no longer repeat at this.
According to one embodiment of present invention, be configured in order to be applicable to the network access device to different model, before step S102, can obtain a plurality of configuration parameters with network access device of different model information in advance.When network access device was router, configuration parameter comprised: parameters such as the LAN configuring ports parameter of the configuration parameter of the WAN port of router and/or router generate the configuration file corresponding with type information respectively according to configuration parameter then.
Alternatively, stored data base on terminal equipment records the type information of type information, configuration file and network access device of network access device and the corresponding relation of configuration file in this database.For example, can adopt XML(Extensible Markup Language, extend markup language) data file forms this database, and alternatively, this database is journal file.
For example: it is the routing configuration parameter of the router of Tplink tl-wr840n, DIR-612, E521M and WAP200Wireless-G that terminal equipment has obtained model, generate configuration file respectively according to the routing configuration parameter of obtaining then, namely generate the configuration file that model is the router of TL-WR841N, DIR-612, E521M and WAP200Wireless-G respectively, and in database, record the corresponding relation of each model and each configuration file.The content that records in the database sees table:
Be that example is introduced the first step with the configuration file that generates Tplink tl-wr840n router in advance below: Tplink tl-wr840n router is connected on the terminal equipment (for example computer); Second step: the administration page by terminal equipment login router (http: // 192.168.1.1); The 3rd step: the page that ADSL is set in the entrance management page arranges username and password; The 4th step: by the packet in packet gripping tool (for example wireshark) extracting step 1~step 3, will be default setting except other reference records of ADSL username and password, and generate configuration file.
Continuation is referring to Fig. 1, and subsequently, in step S104, terminal equipment is according to the type information of network access device, and coupling obtains the configuration file corresponding with the type information of network access device.
Alternatively, utilize the type information of the network access device that records in the database and the corresponding relation of configuration file, coupling obtains the configuration file corresponding with the type information that obtains in step S102.
After step S104, can directly carry out step S108, namely be configured according to configuration file.Also can judge whether the user has authority that network access device is configured after step S104, can be introduced into step S106 this moment.In step S106, terminal equipment obtains and verifies the user profile that the user imports.
According to one embodiment of present invention, user profile comprises: information such as subscriber identity information and user account information.
In step S106, terminal equipment at first obtains and identifying user identity information, and subscriber identity information comprises: user name and/or user cipher; If checking is unsuccessful, the prompting user re-enters subscriber identity information; If be proved to be successful, the prompting user imports user account information, and user account information comprises: user account and/or account number cipher; Terminal equipment obtains and verifies user account information then, and this user account information is that Virtual network operator offers the user.
Alternatively, user account information is PPPOE(Point-to-Point Protocol Over Ethernet, the point-to-point protocol of Ethernet) account information.
In method 100, if be proved to be successful among the step S106, then enter step S108.In step S108, terminal equipment is configured network access device according to configuration file, and after configuration was finished, after the network access request that receives terminal equipment, network access device can join terminal equipment in the network to be visited.
For example: according to the configuration parameter of the WAN port of the router that records in the configuration file and/or the parameters such as LAN configuring ports parameter of router router is carried out routing configuration.
After step S108, can directly enter ending step.But whether correct for the configuration operation of the network access device before verifying, can after step S108, enter step S110.
In step S110, terminal equipment is by the network address of network access device access preset, and whether this default network address is used for verification terminal equipment can visit the Internet by network access device.For example the Yu She network address can be set to http://www.360.cn, and what certainly can understand is that this default network address can be adjusted as the case may be.
If the terminal equipment access request is passed through in step S110, then after step S110, enter step S112.In step S112, the configuration successful of prompting user network connection device.If access request is not passed through in step S110, then after step S110, enter step S114.In step S114, the configuration of prompting user network connection device is unsuccessful.
Need to prove, although in Fig. 1, described the operation of this configuration network resource method with particular order, but this is not that requirement or hint must be carried out these operations according to this particular order, or the operation shown in must carrying out all could realize the result of expectation.On the contrary, the step of describing in the flow chart can change execution sequence, and for example step S114 also can carry out before step S112.Additionally or alternatively, can omit some step, a plurality of steps be merged into a step carry out, and/or a step is decomposed into a plurality of steps carries out.
Method and device according to the configuration network resource in the embodiments of the invention, by obtaining the type information of network access device, coupling obtains the configuration file corresponding with the type information that obtains then, the configuration file that recycling obtains is configured network access device, thereby realize automatically network access device being configured, reduce the human configuration operation of the complexity in the layoutprocedure, effectively improved user's experience effect.
Below in conjunction with Fig. 2 explanation according to an embodiment of the invention, thedevice 200 of a kind of configuration network resource of being suitable for addressing the above problem.
As shown in Figure 2, thedevice 200 of the configuration network resource in an alternative embodiment of the invention comprises:type acquisition module 202,matching module 204,authentication module 206 andconfiguration module 208, wherein
Type acquisition module 202 is used for obtaining the type information of network access device.According to one embodiment of present invention, after terminal equipment and network access device connect, request unit in thetype acquisition module 202 sends the request of obtaining type information to network access device, and the receiving element in thetype acquisition module 202 receives the type information that network access device returns then.The type information of network access device is used for the model of expression network access device, and this network access device can be the various equipment that the communication line in the network is coupled together that are applicable to such as router, switch, repeater and hub.
Be that router is that example is introduced with network access device below, above-mentioned type information can adopt following form to represent: the model of a router of TL-WR841N(Pu Lian company), the model of a router of company of DIR-612(D-link), the model of a router of E521M(Huawei Company), the model of a router of WAP200Wireless-G(Cisco System Co.) etc.
The type information that matchingmodule 204 is used for according to network access device, coupling obtains the configuration file corresponding with the type information of network access device;
Configuration module 208 is used for according to configuration file network access device being configured.
According to one embodiment of present invention, thisdevice 200 also comprises:authentication module 206 is used for obtaining and verifying the user profile that the user imports.
Alternatively, user profile comprises: subscriber identity information and user account information.
Authentication module 206 comprises: first authentication unit and second authentication unit, and wherein first authentication unit is used for obtaining and identifying user identity information, and subscriber identity information comprises: user name and/or user cipher; If checking is unsuccessful, the prompting user re-enters subscriber identity information; If be proved to be successful, the user account information that prompting user fan-in network operator provides, user account information comprises: user account and/or account number cipher; Second authentication unit is used for obtaining and verifying user account information.Alternatively, user account information is the account information based on the point-to-point protocol PPPOE of Ethernet.
According to one embodiment of present invention,device 200 also comprises:parameter acquisition module 210, configurationfile generation module 212 andmemory module 214, wherein
Parameter acquisition module 210 is used for obtaining a plurality of configuration parameters with network access device of different model information.
Configurationfile generation module 212 is used for generating the configuration file corresponding with type information respectively according to configuration parameter.
Memory module 214 is used for stored data base, and wherein data-base recording has type information, the configuration file of network access device, and the corresponding relation of the type information of network access device and configuration file.The content that records in the database sees table:
According to another embodiment of the invention,device 200 also comprises:access modules 216 andreminding module 218, wherein
Access modules 216 is by the network address of network access device access preset; Ifaccess modules 216 access request are passed through, the configuration successful ofreminding module 218 prompting network access devices; Ifaccess modules 216 access request are not passed through, then point out the configuration of network access device unsuccessful.
Method and device according to the configuration network resource in the embodiments of the invention, by obtaining the type information of network access device, coupling obtains the configuration file corresponding with the type information that obtains then, the configuration file that recycling obtains is configured network access device, thereby realize automatically network access device being configured, reduce the human configuration operation of the complexity in the layoutprocedure, effectively improved user's experience effect.
In the embodiment of the invention, described device also comprises:
Memory module is used for stored data base, records the type information of network access device and the corresponding relation of configuration file in the described database.
In the embodiment of the invention, described type acquisition module comprises:
Request unit after connecting with described network access device, sends the request of obtaining described type information to described network access device;
Receiving element is used for receiving the described type information that described network access device returns.
In the embodiment of the invention, described device also comprises:
Authentication module for the user profile of obtaining and verify input, after checking is passed through, triggers described configuration module.
In the embodiment of the invention, described user profile comprises: subscriber identity information and user account information, and described authentication module comprises:
First authentication unit is used for obtaining and identifying user identity information, and described subscriber identity information comprises: user name and/or user cipher; If checking is unsuccessful, subscriber identity information is re-entered in prompting; If be proved to be successful, prompting input user account information, described user account information comprises: user account and/or account number cipher;
Second authentication unit is used for obtaining and verifying described user account information, after checking is passed through, triggers described configuration module.
In the embodiment of the invention, described device also comprises:
Access modules is used for the network address by described network access device access preset;
Reminding module if described access modules access request is passed through, is used for the configuration successful of the described network access device of prompting; If described access modules access request is not passed through, the configuration that is used for the described network access device of prompting is unsuccessful.
Intrinsic not relevant with any certain computer, virtual system or miscellaneous equipment with demonstration at this algorithm that provides.Various general-purpose systems also can be with using based on the teaching at this.According to top description, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also at any certain programmed language.Should be understood that and to utilize various programming languages to realize content of the present invention described here, and the top description that language-specific is done is in order to disclose preferred forms of the present invention.
In the specification that provides herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can be put into practice under the situation of these details not having.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the description to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes in the above.Yet the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires the more feature of feature clearly put down in writing than institute in each claim.Or rather, as following claims reflected, inventive aspect was to be less than all features of the disclosed single embodiment in front.Therefore, follow claims of embodiment and incorporate this embodiment thus clearly into, wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can adaptively change and they are arranged in one or more equipment different with this embodiment the module in the equipment among the embodiment.Can become a module or unit or assembly to the module among the embodiment or unit or combination of components, and can be divided into a plurality of submodules or subelement or sub-component to them in addition.In such feature and/or process or unit at least some are mutually repelling, and can adopt any combination to disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and so all processes or the unit of disclosed any method or equipment make up.Unless clearly statement in addition, disclosed each feature can be by providing identical, being equal to or the alternative features of similar purpose replaces in this specification (comprising claim, summary and the accompanying drawing followed).
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included among other embodiment, the combination of features of different embodiment means and is within the scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
Each parts embodiment of the present invention can realize with hardware, perhaps realizes with the software module of moving at one or more processor, and perhaps the combination with them realizes.It will be understood by those of skill in the art that and to use microprocessor or digital signal processor (DSP) to realize according to some or all some or repertoire of parts in the device of the configuration network resource of the embodiment of the invention in practice.The present invention can also be embodied as for part or all equipment or the device program (for example, computer program and computer program) of carrying out method as described herein.Such realization program of the present invention can be stored on the computer-readable medium, perhaps can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, and perhaps provides at carrier signal, perhaps provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment under the situation of the scope that does not break away from claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed in element or step in the claim.Being positioned at word " " before the element or " one " does not get rid of and has a plurality of such elements.The present invention can realize by means of the hardware that includes some different elements and by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to come imbody by same hardware branch.Any order is not represented in the use of word first, second and C grade.Can be title with these word explanations.