Embodiment
The embodiment of the present invention provides a kind of generation method of Web side navigation, under can making user's what online condition in office, can use the Web side navigation that user commonly uses network address.The embodiment of the present invention additionally provides corresponding wireless router terminal and system.Below be described in detail respectively.
Wireless router terminal in the embodiment of the present invention comprises wireless router, wireless data card, mobile wifi and has the mobile phone of mobile wifi function.
Consult Fig. 1, an embodiment of the generation method of the Web side navigation that the embodiment of the present invention provides comprises:
101, wireless router terminal receives the network access request that user side is initiated, and carries the network address that user will access in described network access request.
In the embodiment of the present invention, user side and wireless router terminal side form local area network (LAN) (LAN, LocalAreaNetwork), wireless router terminal and the Internet (Internet) side form wide area network (WAN, WideAreaNetwork).
When user wants accessed web page, user side initiates Internet network access request, and described Internet network access request could arrive Internet through wireless router terminal.
102, wireless router terminal parses the network address that user will access from described network access request.
After wireless router terminal receives network access request, by domain name system (DNS, DomainNameSystem) resolve, parse network address that user will access and IP address corresponding to this network address, if the IP address parsed is the IP address of outer net, then network access request is sent to Internet by WAN mouth through radio protocol stack (WirelessProtocolStack), IP address as parsed is the IP address of LAN, then network access request is sent to web page server (WebServer).
103, wireless router terminal stores the network address that described user will access.
After step 102 parses the network address that user will access, store the network address that described user will access, the network address that the described user of described storage will access, comprise: when the network address parsed exists in wireless router terminal, the counting of described network address is added up, when the network address parsed is not deposited in wireless router terminal, store described network address, and counting is started to described network address.That is, when the network address parsed exists, so 1 is added to the counting of this network address, if the network address parsed does not exist, so store this network address, and this network address is counted from 1.
104, wireless router terminal receives the Web side navigation homepage access request that user side is initiated.
Here user side can be the user side in step 101, also can be other user side, the wireless router terminal that the embodiment of the present invention provides can connect from different user sides and uses, no matter be which user side, as long as be connected with described wireless router terminal, Web side navigation homepage access request can be initiated to wireless router terminal, make wireless router terminal also can provide conventional Web side navigation.
105, wireless router terminal is in the network address stored, according to presetting rule pick URL generate Web side navigation issue user side for user.
For the webpage that user often browses, the counting of this webpage network address is necessarily higher, to pick URL generation Web side navigation, comprising according to presetting rule: choose the network address that counting exceedes preset quantity and generate Web side navigation.Or the counting according to the network address stored sorts; After choosing sequence, the network address of the preset number that counting is maximum generates Web side navigation.
Such as, the network address that certain user often accesses has
http:// news.baidu.com/; Http:// www.sina.com.cn/; Http:// www.google.com.hk/; The result of wireless router terminal counting is, the counting that network address http://news.baidu.com/ adds up is 115 times, the counting that network address http://www.sina.com.cn/ adds up is 89 times, the counting that network address http://www.google.com.hk/ adds up is 65 times, and the order so generating Web side navigation is exactly
http:// news.baidu.com/; Http:// www.sina.com.cn/; Http:// www.google.com.hk/.When user will browse these webpages, the website links that will browse just directly can be selected on Web side navigation, just can fast browsing webpage.Especially the Web side navigation that user commonly uses webpage is kept in wireless router terminal, is namely convenient for carrying, can uses under any online condition, again can not by the impact changing computer.
Embodiment provided by the invention, receives the network access request that user side is initiated, carries the network address that user will access in described network access request; The network address that user will access is parsed from described network access request; Store the network address that described user will access; Receive the Web side navigation homepage access request that user side is initiated; In the network address stored, according to presetting rule pick URL generate Web side navigation issue user side for user.Compared with prior art, the generation method of the Web side navigation that the embodiment of the present invention provides, wireless router terminal can obtain and store the network address that user will access, and the Web side navigation generated, because wireless router terminal can be carried with, so user is when different user sides is surfed the Net, as long as make computer or mobile phone etc. the terminal of browsing page be connected with wireless router terminal, user just can use the Web side navigation of conventional network address.
For ease of understanding, below for several application scenarios, the generation method of Web side navigation of the present invention is described:
Consult Fig. 2, in this application scene, for wireless router, PC and wireless router set up VLAN LAN, user initiates network access request, the network address that user will access is carried in described network access request, IP address corresponding to network address that described user will access is searched by the DNSRelay in wireless router, and store the network address that described user will access, the network address that the described user of described storage will access, comprise: when the network address parsed exists, the counting of described network address is added up, when the network address parsed does not exist, store described network address, and counting is started to described network address.That is, when the network address parsed exists, so 1 is added to the counting of this network address, if the network address parsed does not exist, so store this network address, and this network address is counted from 1.After PC obtains IP address, send POST/GET request, after IP address arrives IP layer, if IP address is outer net, will from Wan mouth through radio protocol stack (WirelessProtocolStack) to Internet; If IP address is LAN IP, request is sent to WebServer.
When user side initiates Web side navigation homepage access request, wireless router carries out rank according to the counting of the network address stored, (n can be preset any number to obtain the most front n of rank, as 5) individual network address, generate Web side navigation, also can be the network address generation Web side navigation counting and exceed preset quantity that picks URL, as when preset quantity is 90, chooses all network address of counting more than 90 and generate Web side navigations.
In this application scene, wireless router receives the network access request that user side is initiated, and carries the network address that user will access in described network access request; The network address that user will access is parsed from described network access request; Store the network address that described user will access; Receive the wireless router terminal homepage access request that user side is initiated; In the network address stored, pick URL according to presetting rule and generate Web side navigation for user.Compared with prior art, the generation method of the Web side navigation that the embodiment of the present invention provides, wireless router terminal can obtain and store the network address that user will access, and the Web side navigation generated, because wireless router terminal can be carried with, so user is under any online condition, as long as make computer or mobile phone etc. the terminal of browsing page be connected with wireless router terminal, user just can use the Web side navigation of conventional network address.
Consult Fig. 3, the wireless data card for USB interface in this application scene is described: the wireless data card that the embodiment of the present invention provides have described in embodiment corresponding to Fig. 1 of the present invention wireless routing function.
During use, the wireless data card (USBWirelessdatacard) of USB interface is inserted in PC, just give PC herein, in fact also can be that other have the terminal equipment of web page browsing function, after wireless data card inserts PC, PC and wireless data card set up VLAN LAN, user initiates network access request, IP address corresponding to network address that described user will access is searched by the DNSRelay in wireless router, and store the network address that described user will access, the network address that the described user of described storage will access, comprise: when the network address parsed exists, the counting of described network address is added up, when the network address parsed does not exist, store described network address, and counting is started to described network address.That is, when the network address parsed exists, so 1 is added to the counting of this network address, if the network address parsed does not exist, so store this network address, and this network address is counted from 1.After PC obtains IP address, send POST/GET request, after IP arrives IP layer, if IP address is outer net, will from Wan mouth through radio protocol stack (WirelessProtocolStack) to Internet; If IP address is LAN IP, request is sent WebServer.
When user side initiates Web side navigation homepage access request, wireless data card carries out rank according to the counting of the network address stored, (n can be preset any number to obtain the most front n of rank, as 5) individual record, generate Web side navigation, also can be the network address generation Web side navigation counting and exceed preset quantity that picks URL, as when preset quantity is 90, chooses all network address of counting more than 90 and generate Web side navigations.
Consult Fig. 4, be described for mobilewifi in this application scene: the mobilewifi that the embodiment of the present invention provides have described in embodiment corresponding to Fig. 1 of the present invention wireless routing function.
During use, mobilewifi and PC connects VLAN, user side initiates network access request, the network address that user will access is carried in described network access request, IP address corresponding to network address that described user will access is searched by the DNSRelay in wireless router, and store the network address that described user will access, the network address that the described user of described storage will access, comprise: when the network address parsed exists, the counting of described network address is added up, when the network address parsed does not exist, store described network address, and counting is started to described network address.That is, when the network address parsed exists, so 1 is added to the counting of this network address, if the network address parsed does not exist, so store this network address, and this network address is counted from 1.After PC obtains IP address, send POST/GET request, after IP arrives IP layer, if IP address is outer net, will from Wan mouth through radio protocol stack (WirelessProtocolStack) to Internet; If IP address is LAN IP, request is sent WebServer.
When user side initiates Web side navigation homepage access request, wireless router carries out rank according to the counting of the network address stored, (n can be preset any number to obtain the most front n of rank, as 5) individual record, generate Web side navigation, also can be the network address generation Web side navigation counting and exceed preset quantity that picks URL, as when preset quantity is 90, chooses all network address of counting more than 90 and generate Web side navigations.
Consult Fig. 5, an embodiment of the wireless router terminal that the embodiment of the present invention provides comprises:
Receiving element 201, for receiving the network access request that user side is initiated, carries the network address that user will access in described network access request;
Resolution unit 202, for parsing the network address that user will access in the network access request that receives from described receiving element 201;
Memory cell 203, the network address that the user parsed for storing described resolution unit 202 will access;
Described receiving element 201, for receiving the Web side navigation homepage access request that user side is initiated;
Web side navigation generation unit 204, for receive at described receiving element 201 family initiate Web side navigation homepage access request after, in the network address that described memory cell 203 has stored, according to presetting rule pick URL generate Web side navigation issue user side for user.
In the embodiment of the present invention, receiving element 201 receives the network access request that user side is initiated, and carries the network address that user will access in described network access request; Resolution unit 202 parses the network address that user will access from the network access request that described receiving element 201 receives; Memory cell 203 stores the network address that user that described resolution unit 202 parses will access; Described receiving element 201 receives the Web side navigation homepage access request that user side is initiated; Web side navigation generation unit 204 described receiving element 201 receive family initiate Web side navigation homepage access request after, in the network address that described memory cell 203 has stored, according to presetting rule pick URL generate Web side navigation issue user side for user.The wireless router terminal that the embodiment of the present invention provides, can obtain and store the network address that user will access, and the Web side navigation generated, because wireless router terminal can be carried with, so user is under any online condition, as long as make computer or mobile phone etc. the terminal of browsing page be connected with wireless router terminal, user just can use the Web side navigation of conventional network address.
Consult Fig. 6, on the basis of embodiment corresponding to above-mentioned Fig. 5, the memory cell 203 of the wireless router terminal that the embodiment of the present invention provides comprises:
Counting module 2031, for when the network address that described resolution unit 202 parses exists, adds up to the counting of described network address;
Memory module 2032, for when the network address that described resolution unit 202 parses does not exist, stores described network address;
Described counting module 2031, also for after described memory module 2032 stores described network address, starts counting to described network address.
Consult Fig. 7, on the basis of embodiment corresponding to above-mentioned Fig. 5, Fig. 6, the Web side navigation generation unit 204 of the wireless router terminal that the embodiment of the present invention provides comprises:
Order module 2041, for sorting according to the counting of the network address stored;
Second chooses module 2042, generates Web side navigation for choosing the network address counting maximum preset number after described order module 2041 sorts.
Alternatively, Web side navigation generation unit 204 comprises: first chooses module, and the network address exceeding preset quantity for choosing counting generates Web side navigation.
Consult Fig. 8, on the basis of above-described embodiment, another embodiment of the wireless router terminal that the embodiment of the present invention provides also comprises:
Judging unit 205, for judging whether the network address that described resolution unit 202 parses exists.
The wireless router terminal that the embodiment of the present invention provides, can obtain and the network address that will access of the user stored, and the Web side navigation generated, because wireless router terminal can be carried with, so user is under any online condition, as long as make computer or mobile phone etc. the terminal of browsing page be connected with wireless router terminal, user just can use the Web side navigation of conventional network address.
Consult Fig. 9, an embodiment of the Web side navigation generation system that the embodiment of the present invention provides comprises: user side 10 and wireless router terminal 20;
Described user side 10, for initiating network access request or Web side navigation homepage access request.
Described wireless router terminal 20, for receiving the network access request that user side is initiated, carries the network address that user will access in described network access request; The network address that user will access is parsed from described network access request; Store the network address that described user will access; Receive the Web side navigation homepage access request that user side is initiated; In the network address stored, according to presetting rule pick URL generate Web side navigation send to user side for user.
The system that the embodiment of the present invention provides, wireless router terminal can obtain and the network address that will access of the user stored, and the Web side navigation generated, because wireless router terminal can be carried with, so user is under any online condition, as long as make computer or mobile phone etc. the terminal of browsing page be connected with wireless router terminal, user just can use the Web side navigation of conventional network address.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
Above the generation method of the Web side navigation that the embodiment of the present invention provides, wireless router terminal and system are described in detail, apply specific case herein to set 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.