CN104933045A - Network information browsing method and network information browsing device - Google Patents

Network information browsing method and network information browsing device Download PDF

Info

Publication number
CN104933045A
CN104933045A CN201410098238.2A CN201410098238A CN104933045A CN 104933045 A CN104933045 A CN 104933045A CN 201410098238 A CN201410098238 A CN 201410098238A CN 104933045 A CN104933045 A CN 104933045A
Authority
CN
China
Prior art keywords
domain name
address
internal storage
information browsing
network information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410098238.2A
Other languages
Chinese (zh)
Other versions
CN104933045B (en
Inventor
黄坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Wuhan Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410098238.2A priority Critical patent/CN104933045B/en
Publication of CN104933045A publication Critical patent/CN104933045A/en
Application granted granted Critical
Publication of CN104933045B publication Critical patent/CN104933045B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a network information browsing method and device. The network information browsing method comprises that a DNS database is created in a local external memory; after the network information browsing device is started, data in the DNS database is introduced into a local internal memory; after a webpage request is received, the local internal memory is queried according to the domain name in the webpage request, if the local internal memory stores the domain name, the corresponding IP address is read, and the read IP address is accessed; otherwise, the IP address corresponding to the domain name is obtained by querying from the DNS server, the queried IP address is accessed, and the domain name and the IP address corresponding to the domain name are stored in the local DNS database. According to the invention, the query requests on the DNS server can be reduced, DNS processing consumption and network flow consumption are reduced, and the page browsing speed of the network information browsing device is increased.

Description

Network information browsing method and network information browsing apparatus
Technical field
The present invention relates to internet information treatment technology, particularly relate to a kind of network information browsing method and network information browsing apparatus.
Background technology
In current work and life, the portable intelligent device with data-handling capacity such as mobile phone, personal digital aid (PDA) (PDA, Personal Digital Assistant), handheld computer (Pocket PC), panel computer etc. have become the requisite instrument that people carry with.
Along with the fast development of development of Mobile Internet technology, portable intelligent device occurs can the network information browsing apparatus of browsing network information.Network information browsing apparatus is the Client browse program that WWW (Web) is served.Network information browsing apparatus can send various request to Web server, and the hypertext information sent from server and various multimedia data format are made an explanation, show and play, in the industry cycle, network information browsing apparatus is also referred to as network information browsing apparatus.Network information browsing apparatus can be special netpage network information browsing device, also can be the client software with web page browsing function and other function.
When there is browsing event in network information browsing apparatus, trigger the current web page address browsed and URL(uniform resource locator) (URL by network information browsing apparatus kernel, Uniform/Universal ResourceLocator) corresponding server initiates HTML (Hypertext Markup Language) (HTTP, HyperText TransferProtocol HTTP) request.Described HTTP request refers to the data that network information browsing apparatus is sent to the web page server that described URL is corresponding by http protocol.After web page server receives HTTP request, generate http response according to the information of carrying in the HTTP request of correspondence, and return to network information browsing apparatus kernel, network information browsing apparatus kernel renders webpage according to this http response.
Fig. 1 is a kind of composition schematic diagram specifically of the network information browsing apparatus of a kind of portable intelligent device of the prior art.See Fig. 1, described network information browsing apparatus mainly comprises:
Event processing module 101, input the instruction of portable intelligent device as instructions such as the click slip convergent-divergent clicks to screen for accepting user, and import relevant event (such as opening page request and the network load events of www.qq.com) into network information browsing apparatus kernel.Above-mentioned event is thrown network load-on module 102 and initiates network HTTP request by network information browsing apparatus kernel again.
Network load-on module 102, for loading given page request.
When usual user initiates web page browsing request, the information of input portable intelligent device is domain name, as www.qq.com.
Each smart machine connected on the internet has a unique address, is called " IP address " (i.e. Internet protocol address).Because IP address is string number, be inconvenient to remember, therefore there is domain name analysis system (DNS, Domain Name System) in industry, and DNS allows user to use a string common letter (i.e. " domain name ") to replace IP address.
Domain name in this page request, after receiving page request event, is sent to the effective IP address that dns server goes to inquire about the current correspondence of this domain name by described network load-on module, and dns server is returning to corresponding IP address after resolving inquiry computing.Such as, domain name character string such for www.qq.com can be converted to the such IP address of similar 123.157.58.118.IP address through dns resolution sends to resource to resolve type-setting module 103 by network load-on module 102.
Resource resolves type-setting module 103, the IP address that the dns resolution for receiving automatic network load-on module 102 is correct, and the IP address subsequently through resource obtains the primary resource that obtains from network and child resource; The raw network data received is resolved according to html web page text specification, the page structure that final acquisition can identify and process, simultaneously according to layout and the structure of the definition of HTML/CSS specification, calculate the length and width of page all elements and position etc. and comprise complexity and play up relevant data and be saved in internal storage; The upper panel module 104 of drafting can be called after detecting.
Panel module 104 in drafting, for resolving the data that type-setting module 103 obtains according to described resource, the element comprised inside the relevant page and placement position are finally plotted to the desired location of portable intelligent device screen, the text in the page, image, flash etc. are presented on screen according to standards and norms.
In the prior art, the network information browsing apparatus of described portable intelligent device is in order to accelerate and save DNS query repeatedly, can IP address result corresponding for the above-mentioned domain name inquired be kept in the middle of the internal storage buffer memory of portable intelligent device, make network information browsing apparatus not having to close, IP address corresponding to domain name do not change and expired and access the identical page time can avoid again carrying out the inquiry of DNS, directly obtain the such IP address of 123.157.58.118 and promote the speed that the access of network information browsing apparatus loads.
But there is following technical matters in above-mentioned prior art:
Existing handheld device networks information browsing device after the page needed for loading, the expired time of the IP address after dns resolution general longer (empirical value at 1 day ~ 7 days not etc.), but portable set opening and closing network information browsing apparatus is shorter for averaging time, time owing to again opening the network information browsing apparatus of closing last time, the removing of the IP address that last closedown causes the domain name in internal storage corresponding, retain and be buffered in the loss of effective data in internal storage, need again to initiate inquiry request to dns server in the loading of the page and the process of request, resolve and obtain the IP address of corresponding domain name, cause the initiation of repetitive requests, extra DNS data processing, and the consumption of network traffics, the more important thing is the page browsing speed having had a strong impact on handheld device networks information browsing device.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of network information browsing method and network information browsing apparatus, to reduce the inquiry request to dns server, save consumption and the network flow consumption of DNS process, improve the page browsing speed of network information browsing apparatus.
Technical scheme of the present invention is achieved in that
A kind of network information browsing method, comprising:
External storage in this locality creates DNS database;
After network information browsing apparatus starts, by the data importing in described DNS database in local internal storage;
After receiving web-page requests, according to the local internal storage of the inquiry of the domain name in this web-page requests, if inquire local internal storage to have this domain name, read corresponding IP address, access the IP address read; Otherwise obtain IP address corresponding to this domain name from dns server inquiry, access the IP address inquired, the IP address of this domain name and correspondence thereof is stored in local dns database.
A kind of network information browsing apparatus, comprising:
DNS database initialize module, for creating DNS database in this locality;
DNS data importing module, for after network information browsing apparatus starts, by the data importing in described DNS database in local internal storage;
DNS query module, for after network information browsing apparatus receives web-page requests, according to the local internal storage of the inquiry of the domain name in this web-page requests, if inquire local internal storage to have this domain name, read corresponding IP address, trigger network information browsing device accesses the IP address read; Otherwise obtain IP address corresponding to this domain name from dns server inquiry, trigger network information browsing device accesses the IP address inquired, and the IP address of this domain name and correspondence thereof is stored in local dns database by triggering.
Compared with prior art, because the present invention creates DNS database in this locality, after obtaining IP address corresponding to domain name from dns server inquiry, the IP address of domain name and correspondence thereof is stored in local dns database, after network information browsing apparatus starts, the IP address of the domain name in described DNS database and correspondence thereof is imported in local internal storage, after receiving web-page requests, according to the local internal storage of the inquiry of the domain name in this web-page requests, if inquire local internal storage to have this domain name, read corresponding IP address, access the IP address read, otherwise obtain IP address corresponding to this domain name from dns server inquiry, access the IP address inquired, the IP address of this domain name and correspondence thereof is stored in local dns database.Adopt this technical scheme, due to IP address corresponding for the domain name of inquiring about acquisition is stored in the DNS database of external storage, after network information browsing apparatus starts, the domain name in external storage and corresponding IP address thereof are imported in internal storage, after receiving web-page requests, first the IP address that this web-page requests domain name is corresponding whether is had in audit memory reservoir, if had, directly access this IP address, if do not had, then inquire about corresponding IP address from the dns server network.By this process, greatly can reduce the number of times of initiating inquiry request to the dns server on network, save the resource consumption of dns server, also save corresponding network traffics resource, the more important thing is that the speed owing to inquiring about at internal storage far away faster than the speed of network inquiry, therefore will significantly can improve the page browsing speed of network information browsing apparatus.
Accompanying drawing explanation
Fig. 1 is a kind of composition schematic diagram specifically of the network information browsing apparatus of a kind of portable intelligent device of the prior art;
Fig. 2 is a kind of process flow diagram of network information browsing method of the present invention;
Fig. 3 is the one composition schematic diagram of network information browsing apparatus of the present invention.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Network information browsing method of the present invention can be applied on the network information browsing apparatus of all smart machines, especially can be applied on the network information browsing apparatus of portable intelligent device.Described portable intelligent device is as mobile phone, personal digital aid (PDA) (PDA, Personal Digital Assistant), handheld computer (Pocket PC), panel computer etc.These portable intelligent device are all provided with operating system, include but not limited to: Android operation system, Symbian operating system, Windows mobile operating system and apple iPhone OS operating system etc.Described network information browsing apparatus refers to based on described operating system, the software service for browsing webpage that can run in described Portable intelligent terminal, can be special web browser, also can be the client software with web page browsing function and other function.
Fig. 2 is a kind of process flow diagram of network information browsing method of the present invention.The method is performed by described network information browsing apparatus.See Fig. 2, the method mainly comprises:
Step 201, external storage in this locality create DNS database.
Described this locality refers to the local intelligent equipment installing network information browsing apparatus.Described external storage is corresponding with internal storage.The effect of internal storage is the operational data for temporarily depositing in CPU, and the data exchanged with external storage.As long as equipment is in operation, CPU will carry out computing needing the data of computing to be transferred in internal storage, and after computing completes, result sends out by CPU again, and the operation of internal storage also determines the stable operation of smart machine.External storage refers to the reservoir except internal storage and cpu cache, still can preserve data after the general power-off of this type of reservoir, and memory space is large compared with internal storage, but arithmetic speed comparatively internal storage is slow.
This step 201 can perform after network information browsing apparatus is installed for the first time and started, and when creating DNS database, then need not repeat to create DNS database after network information browsing apparatus starts again.
Step 202, network information browsing apparatus start after, by the data importing in described DNS database in local internal storage.In the present invention, described local internal storage refers to the local internal storage of the portable set at network information browsing apparatus place, more specifically: with the memory block of the internal storage of the process context of present networks information browsing device.
Network information browsing apparatus described in this step typically refers to after starting after network information browsing apparatus installs startup, again start and start later, the IP address of the domain name in described DNS database and correspondence thereof can be imported in local internal storage, be specially: the IP address of the domain name in described DNS database and correspondence thereof is imported in the internal storage memory block with the process context of present networks information browsing device.
Step 203, after receiving web-page requests, according to the local internal storage of the inquiry of the domain name in this web-page requests, if inquire local internal storage to have this domain name, read corresponding IP address, access the IP address read; Otherwise obtain IP address corresponding to this domain name from dns server inquiry, access the IP address inquired, the IP address of this domain name and correspondence thereof is stored in local dns database.
Described web-page requests triggers for web-page requests event, described web-page requests event can be such as user in network information browsing apparatus address field, have input the domain name of institute's accessed web page and trigger accessing operation, user clicks certain web page interlinkage etc., described web-page requests comprises the domain-name information of the webpage that will access.
In the present invention, after receiving web-page requests, need the local internal storage of the inquiry of the domain name of the webpage that will access comprised according to this network request, i.e. described in inquiry and the internal storage memory block of the process context of present networks information browsing device, inquire about the IP address whether being cached with this domain name and correspondence thereof in this local internal storage, if had, directly use this IP address to access the webpage that will access, if, do not need the dns server to network side to initiate inquiry request, this inquiry request also can be called dns resolution request, this inquiry request comprises the domain name of the webpage that will access, after described dns server receives this inquiry request, parsing inquiry computing can be carried out to the domain name in this inquiry request, obtain corresponding and in current effective IP address, and the IP address obtained is returned to the initiator of inquiry request, i.e. network information browsing apparatus of the present invention, after this network information browsing apparatus obtains IP address corresponding to domain name, this IP address can be accessed, obtain info web, and carry out resource parsing typesetting, drafting is shielded, the element that comprises inside this webpage and placement position is made finally to be plotted to the desired location of portable intelligent device screen, by the text in the page, image, flash etc. are presented on screen according to standards and norms.And, also to the IP address of this domain name and correspondence thereof be stored in local dns database, so after starting the network information browsing apparatus next time, domain name in this DNS database and corresponding IP address thereof can import in local internal storage, thus improve the probability that network information browsing apparatus inquires the IP address of accessed domain name in local internal storage, reduce the number of times of initiating inquiry request to the dns server on network, save the resource consumption of dns server, also save corresponding network traffics resource, the more important thing is that the speed owing to inquiring about at internal storage will far away faster than the speed of network inquiry, therefore the page browsing speed of network information browsing apparatus can significantly be improved.
Certainly, if do not receive web-page requests, but obtain IP address corresponding to domain name by network information browsing apparatus active triggering from dns server inquiry according to appointment logic, then in this case, also to the IP address of this domain name and correspondence thereof be stored in local dns database, as long as namely network information browsing apparatus obtains IP address corresponding to domain name from dns server, then the IP address of this domain name and correspondence thereof is stored in local dns database.
In one preferred embodiment of the invention, in step 203, described from dns server inquiry obtain IP address corresponding to this domain name after, while the IP address of this domain name and correspondence thereof is stored in local dns database, can further include: the IP address of this domain name and correspondence thereof is imported to local internal storage, is specially: the IP address of this domain name and correspondence thereof is imported in the internal storage memory block with the process context of present networks information browsing device.Like this, if when network information browsing apparatus does not restart, the web-page requests initiated to same domain name is received again in the process that this starts, then can inquire IP address corresponding to this domain name in local internal storage, thus reduce the number of times of initiating inquiry request to the dns server on network further in time, save the resource consumption of dns server, also save corresponding network traffics resource, and the page browsing speed of the network information browsing apparatus that this starts can be improved further.
In another preferred embodiment of the present invention, in step 202, it is described after network information browsing apparatus starts, before the IP address information of the domain name in described DNS database and correspondence thereof is imported in local internal storage, can further include: the IP address corresponding to each domain name in described DNS database travels through, judge whether IP address corresponding to each domain name be current effective, if effectively, retain the IP address of this domain name and correspondence thereof, if invalid, delete the IP address of this domain name and correspondence thereof, after Ergodic judgement terminates, the IP address of the effective domain name in described DNS database and correspondence thereof is imported in local internal storage.
Wherein, describedly judge that whether IP address corresponding to each domain name be current effective, specifically comprises:
For each domain name, determine the time of this domain name stored in DNS database and the mistiming of current time, judge whether this mistiming exceeds time-to-live corresponding to this default domain name/IP address, if exceeded, judge that IP address corresponding to this domain name is at current invalid, otherwise judge that IP address corresponding to this domain name is effectively current.Time-to-live corresponding to domain name IP address is generally determine based on experience value, and it is pre-set, such as the domain name/IP address corresponding time-to-live is 1 day to 7 days usually, if the IP address that the domain name of large-scale website is corresponding, its time-to-live can lengthen greatly.
By the process of above-described embodiment, can reject and leave out invalid, expired domain name and IP address date thereof in time, retain effective domain name and IP address corresponding relation thereof, improve the speed that DNS database imports local internal storage, also reduce the error rate of carrying out IP address lookup in this locality, improve the access speed to target web further.
In another preferred embodiment of the present invention, in step 202., it is described after network information browsing apparatus starts, the IP address information of the domain name in described DNS database and correspondence thereof is imported in local internal storage, be specially: adopt asynchronous system, after fixed time after network information browsing apparatus starts, import to asynchronous for the IP address information of the domain name in described DNS database and correspondence thereof in local internal storage.
After adopting asynchronous system, due to network information browsing apparatus receive enabled instruction start after, need to load relevant resource, just the IP address information of the domain name in described DNS database and correspondence thereof is imported to local internal storage if therefore started, toggle speed can be made to slow down, affect network information browsing apparatus performance, therefore in the present embodiment, adopt asynchronous system, after fixed time after network information browsing apparatus starts, import in local internal storage by asynchronous for the IP address information of the domain name in described DNS database and correspondence thereof again, can avoid so mutually conflicting with the related resource loaded when starting, reduce the impact on network information browsing apparatus performance.The described fixed time can preset according to the toggle speed of network information browsing apparatus.
Corresponding with said method of the present invention, the invention also discloses a kind of network information browsing apparatus.For performing said method.Fig. 3 is the one composition schematic diagram of network information browsing apparatus of the present invention.See Fig. 3, this device 300 is except the existing basic module of network information browsing apparatus, and event processing module as shown in Figure 1, network load-on module, resource are resolved type-setting module and drawn upper panel module etc., also mainly comprise:
DNS database initialize module 301, for creating DNS database in this locality.
DNS data importing module 302, for after network information browsing apparatus starts, imports to the IP address of the domain name in described DNS database and correspondence thereof in local internal storage.
DNS query module 303, for after network information browsing apparatus receives web-page requests, according to the local internal storage of the inquiry of the domain name in this web-page requests, if inquire local internal storage to have this domain name, read corresponding IP address, trigger network information browsing device accesses the IP address read; Otherwise obtain IP address corresponding to this domain name from dns server inquiry, trigger network information browsing device accesses the IP address inquired, and is stored in local dns database the IP address of this domain name and correspondence thereof.
Certainly, if do not receive web-page requests, but obtain IP address corresponding to domain name by network information browsing apparatus active triggering from dns server inquiry according to appointment logic, then in this case, also the IP address of this domain name and correspondence thereof to be stored in local dns database.
In a kind of preferred embodiment of network information browsing apparatus of the present invention, described DNS data importing module 302 specifically for: adopt asynchronous system, after fixed time after network information browsing apparatus starts, import to asynchronous for the IP address information of the domain name in described DNS database and correspondence thereof in local internal storage.
In another preferred embodiment of network information browsing apparatus of the present invention, described DNS data importing module 302 is further used for: by before in the data importing in described DNS database to local internal storage, IP address corresponding to each domain name in described DNS database further travels through, judge whether IP address corresponding to each domain name be current effective, if effectively, retain the IP address of this domain name and correspondence thereof, if invalid, delete the IP address of this domain name and correspondence thereof, after Ergodic judgement terminates, the IP address of the effective domain name in described DNS database and correspondence thereof is imported in local internal storage.
In another preferred embodiment of network information browsing apparatus of the present invention, described DNS query module 303 is further used for: after obtaining IP address corresponding to this domain name from dns server inquiry, while being stored in local dns database by the IP address of this domain name and correspondence thereof, further the IP address of this domain name and correspondence thereof is imported to local internal storage.
In any embodiment of above-mentioned network information browsing apparatus, described local internal storage is the internal storage memory block with the process context of present networks information browsing device.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of modules exists, also can two or more module integrations in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.The functional module of described each embodiment can be positioned at a terminal or network node, or also can be distributed on multiple terminal or network node.
In addition, each embodiment of the present invention can be realized by the data processor performed as computing machine by data processing equipment.Obviously, data processor constitutes the present invention.In addition, program is read out storage medium or memory device (as hard disk and or internal storage) the middle execution by program being installed or copied to data processing equipment by direct by the data processor be usually stored in a storage medium.Therefore, such storage medium also constitutes the present invention.Storage medium can use the recording mode of any type, such as paper storage medium (as paper tape etc.), magnetic storage medium (as floppy disk, hard disk, flash memory etc.), optical storage media (as CD-ROM etc.), magnetic-optical storage medium (as MO etc.) etc.
Therefore the invention also discloses a kind of storage medium, wherein store data processor, this data processor is for performing any one embodiment of said method of the present invention.
The present invention especially goes for the network information browsing apparatus on portable intelligent device, below for the browser on mobile phone, does more specific detail to flow process of the present invention.
Step 1: user starts mobile phone browser, if first time installs and starts this browser, performs step 1.1, otherwise performs step 1.2.
Step 1.1: create a DNS database at mobile phone external storage, after this DNS database, storage is resolved from dns server the IP address date checked out by extended meeting.Owing to being start first time and install browser, this DNS lane database does not also increase any effective domain name and IP address date.The establishment of the DNS database described in step 1.1, from Project Realization angle, needs inside software program, arrange the database file that needs generate title and store path.
Step 1.2: because browser is in initial start-up flow process, create DNS database, and can the IP address of domain name and correspondence thereof be stored in local dns database after obtaining IP address corresponding to domain name from dns server inquiry, therefore the effective DNS information in DNS database can import and copy in DNS internal storage buffer memory by this startup browser.
Described effective DNS information refers to effective domain name and corresponding IP address information thereof, and described DNS internal storage buffer memory refers to above-mentioned local internal storage, namely with the memory block of the internal storage of the process context of present networks information browsing device.
Described effective DNS information refers in DNS system analysis system definition, meet dns resolution specification and there is no expired data, data inside guarantee DNS Database Systems are not expired and effective is quite necessary in Project Realization, the time read-write constantly increase of a DNS database owing to continuing can be prevented like this, therefore after browser starts, before by the data importing of DNS database to DNS internal storage buffer memory, need to travel through DNS database and inquire about, timely rejecting and leave out invalid, expired data, retain the IP address after effective dns resolution, from Project Realization angle, the expired time of the IP address after dns resolution general longer (empirical value at 1 day ~ 7 days not etc.).
Step 2: user inputs the network address of certain website by click browser address field, such as domain name www.qq.com, then navigation confirming button is clicked, the event processing module of mobile phone can accept user and click logic redirect corresponding to the instructions such as slip convergent-divergent click, and imports relevant event (such as opening page request and the network load events of domain name www.qq.com) into browser kernel engine.
Above-mentioned event is thrown network load-on module and initiates network HTTP request by step 3. browser kernel engine, now can inquire about in DNS internal storage buffer memory, and whether inquiry has the character string of domain name www.qq.com;
If inquired the IP address of domain name and correspondence thereof in DNS internal storage buffer memory, then perform step 3.1, if do not inquire the IP address of domain name and correspondence thereof in DNS internal storage, then perform step 3.2.
Step 3.1: directly obtain IP address corresponding to domain name from DNS internal storage buffer memory; Turn to step 4.
The probability P 1 having inquired the IP address of domain name and correspondence thereof described in step 3.1 in DNS internal storage buffer memory wants large compared with the probability of prior art, and the mean consumption time, t1 was less, its reason is that the information of the DNS database of persistence is imported to internal storage DNS cache by step 1.2, browser has been loaded with due to user's history hobby inside initial start stage DNS internal storage buffer memory, browses use habit and frequently access site is corresponding for the previous period domain name and IP address data information thereof.
Step 3.2: due to inquiry DNS internal storage cache failure, now needs to initiate query task by the dns server to network side, obtains from dns server the data message that domain name is mapped to IP address; This is stored in DNS internal storage buffer memory by the result of Domain Name System query simultaneously, and the Information encapsulation that domain name is relevant with IP address is got up, be stored in DNS database, when convenient access same page next time, again need not initiate request; Turn to step 4;
Carried out time (t2) step 3.1 (t2>t1) more consuming time relatively of inquiring about in step 3.2 by network DNS server, but once inquire, DNS database and DNS internal storage buffer memory will be write immediately; Owing to performing the probability P 2=1-P1 of step 3.2, the probability of event consuming time diminishes, by causing T=t1*P1+t2* average consuming time (1-P1)=(t1-t2) P1+t2 of overall DNS query statistical phenomeon the increase along with P1 to be reduced, reach the object of saving DNS retrieval and inquiry.
Step 4: resource is resolved type-setting module and constantly received from the correct IP address of dns resolution in DNS query module, and the IP address subsequently through resource obtains the primary resource that obtains from network and child resource; The raw network data received is resolved according to html web page text specification, the page structure that final acquisition can identify and process, simultaneously according to layout and the structure of the definition of HTML/CSS specification, calculate the length and width of page all elements and position etc. and comprise complexity and play up relevant data and be saved in internal storage; The upper panel module of drafting can be called after detecting.In drafting, panel module resolves the data of type-setting module 103 acquisition according to described resource, the element comprised inside the relevant page and placement position are finally plotted to the desired location of portable intelligent device screen, the text in the page, image, flash etc. are presented on screen according to standards and norms.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (11)

1. a network information browsing method, is characterized in that, comprising:
External storage in this locality creates DNS database;
After network information browsing apparatus starts, by the data importing in described DNS database in local internal storage;
After receiving web-page requests, according to the local internal storage of the inquiry of the domain name in this web-page requests, if inquire local internal storage to have this domain name, read corresponding IP address, access the IP address read; Otherwise obtain IP address corresponding to this domain name from dns server inquiry, access the IP address inquired, the IP address of this domain name and correspondence thereof is stored in local dns database.
2. method according to claim 1, is characterized in that, described after network information browsing apparatus starts, and before in the data importing in described DNS database to local internal storage, comprises further:
The IP address corresponding to each domain name in described DNS database travels through, judge whether IP address corresponding to each domain name be current effective, if effectively, retain the IP address of this domain name and correspondence thereof, if invalid, delete the IP address of this domain name and correspondence thereof, after Ergodic judgement terminates, the IP address of the effective domain name in described DNS database and correspondence thereof is imported in local internal storage.
3. method according to claim 2, is characterized in that, describedly judges that whether IP address corresponding to each domain name be current effective, specifically comprises:
For each domain name, determine the time of this domain name stored in DNS database and the mistiming of current time, judge whether this mistiming exceeds time-to-live corresponding to this default domain name/IP address, if exceeded, judge that IP address corresponding to this domain name is at current invalid, otherwise judge that IP address corresponding to this domain name is effectively current.
4. method according to claim 1, it is characterized in that, it is described after network information browsing apparatus starts, by the data importing in described DNS database in local internal storage, be specially: adopt asynchronous system, after fixed time after network information browsing apparatus starts, import to asynchronous for the IP address information of the domain name in described DNS database and correspondence thereof in local internal storage.
5. method according to claim 1, it is characterized in that, described from dns server inquiry obtain IP address corresponding to this domain name after, while the IP address of this domain name and correspondence thereof is stored in local dns database, comprise further: the IP address of this domain name and correspondence thereof is imported to local internal storage.
6. the method according to any one of claim 1 to 5, it is characterized in that, the described IP address by domain name and correspondence thereof imports in local internal storage, is specially: imported in the internal storage memory block with the process context of present networks information browsing device the IP address of domain name and correspondence thereof.
7. a network information browsing apparatus, is characterized in that, comprising:
DNS database initialize module, for creating DNS database in this locality;
DNS data importing module, for after network information browsing apparatus starts, by the data importing in described DNS database in local internal storage;
DNS query module, for after network information browsing apparatus receives web-page requests, according to the local internal storage of the inquiry of the domain name in this web-page requests, if inquire local internal storage to have this domain name, read corresponding IP address, trigger network information browsing device accesses the IP address read; Otherwise obtain IP address corresponding to this domain name from dns server inquiry, trigger network information browsing device accesses the IP address inquired, and the IP address of this domain name and correspondence thereof is stored in local dns database by triggering.
8. device according to claim 7, it is characterized in that, described DNS data importing module is further used for: by before in the data importing in described DNS database to local internal storage, IP address corresponding to each domain name in described DNS database further travels through, judge whether IP address corresponding to each domain name be current effective, if effectively, retain the IP address of this domain name and correspondence thereof, if invalid, delete the IP address of this domain name and correspondence thereof, after Ergodic judgement terminates, the IP address of the effective domain name in described DNS database and correspondence thereof is imported in local internal storage.
9. device according to claim 7, it is characterized in that, described DNS data importing module specifically for: adopt asynchronous system, after fixed time after network information browsing apparatus starts, import to asynchronous for the IP address information of the domain name in described DNS database and correspondence thereof in local internal storage.
10. device according to claim 7, it is characterized in that, described DNS query module is further used for: after obtaining IP address corresponding to this domain name from dns server inquiry, while being stored in local dns database by the IP address of this domain name and correspondence thereof, further the IP address of this domain name and correspondence thereof is imported to local internal storage.
11. devices according to any one of claim 7 to 10, it is characterized in that, described local internal storage is: with the internal storage memory block of the process context of present networks information browsing device.
CN201410098238.2A 2014-03-17 2014-03-17 Network information browsing method and network information browsing apparatus Active CN104933045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410098238.2A CN104933045B (en) 2014-03-17 2014-03-17 Network information browsing method and network information browsing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410098238.2A CN104933045B (en) 2014-03-17 2014-03-17 Network information browsing method and network information browsing apparatus

Publications (2)

Publication Number Publication Date
CN104933045A true CN104933045A (en) 2015-09-23
CN104933045B CN104933045B (en) 2019-08-09

Family

ID=54120214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410098238.2A Active CN104933045B (en) 2014-03-17 2014-03-17 Network information browsing method and network information browsing apparatus

Country Status (1)

Country Link
CN (1) CN104933045B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921699A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 A kind of Network Access Method, device and system
CN108052569A (en) * 2017-12-07 2018-05-18 深圳市康必达控制技术有限公司 Data bank access method, device, computer readable storage medium and computing device
CN109379438A (en) * 2018-11-29 2019-02-22 西安四叶草信息技术有限公司 Agent relation's configuration method and device
CN110224996A (en) * 2019-05-20 2019-09-10 深圳壹账通智能科技有限公司 Network Access Method, device, computer equipment and the storage medium of application program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN102572011A (en) * 2012-02-02 2012-07-11 中国科学院计算机网络信息中心 Method, device and system for processing data
CN102647482A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Method and system for accessing website
CN102783119A (en) * 2012-05-25 2012-11-14 华为终端有限公司 Access control method and system, and access terminal
CN102882791A (en) * 2012-10-30 2013-01-16 杭州迪普科技有限公司 Method and device for processing DNS (Domain Name Server) business

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN102572011A (en) * 2012-02-02 2012-07-11 中国科学院计算机网络信息中心 Method, device and system for processing data
CN102647482A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Method and system for accessing website
CN102783119A (en) * 2012-05-25 2012-11-14 华为终端有限公司 Access control method and system, and access terminal
CN102882791A (en) * 2012-10-30 2013-01-16 杭州迪普科技有限公司 Method and device for processing DNS (Domain Name Server) business

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921699A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 A kind of Network Access Method, device and system
CN108052569A (en) * 2017-12-07 2018-05-18 深圳市康必达控制技术有限公司 Data bank access method, device, computer readable storage medium and computing device
CN109379438A (en) * 2018-11-29 2019-02-22 西安四叶草信息技术有限公司 Agent relation's configuration method and device
CN110224996A (en) * 2019-05-20 2019-09-10 深圳壹账通智能科技有限公司 Network Access Method, device, computer equipment and the storage medium of application program

Also Published As

Publication number Publication date
CN104933045B (en) 2019-08-09

Similar Documents

Publication Publication Date Title
RU2673403C2 (en) Website access method, device and website system
RU2615057C2 (en) Method and device for access to web-page and router
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US8438474B1 (en) Speculative rendering during cache revalidation
US9077681B2 (en) Page loading optimization using page-maintained cache
US9292467B2 (en) Mobile resource accelerator
US9798827B2 (en) Methods and devices for preloading webpages
WO2017167050A1 (en) Configuration information generation and transmission method, and resource loading method, apparatus and system
WO2013097667A1 (en) Web page content loading control method and device
WO2017202255A1 (en) Page display method and apparatus, and client device
US20120233199A1 (en) Intelligent Web Caching
WO2014134934A1 (en) Method and system for displaying customized webpage on double webview
CN103810176A (en) Pre-fetching accessing method and device of webpage information
CN103152367A (en) Cache dynamic maintenance updating method and system
WO2012075961A1 (en) Method, device, and system for acquiring start page
US11477158B2 (en) Method and apparatus for advertisement anti-blocking
JP2019526125A (en) Method and apparatus for updating a search cache
CN104933045A (en) Network information browsing method and network information browsing device
CN105279156B (en) Network information communication means and network information browsing apparatus
CN113330432A (en) Asynchronous predictive caching of content listed in search results
Chen et al. Optimization research and application of enterprise website based on web service
CN104704495B (en) The method and device of a kind of information search
WO2012159360A1 (en) Method and apparatus for web page prefetching
CN104980311A (en) Method, device and system for predicting network access
WO2020124720A1 (en) Determining method for a common component of pages, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221020

Address after: 430000, No.1, Yangguang fifth road, Miaoshan, Jiangxia Economic Development Zone, Wuhan City, Hubei Province

Patentee after: Tencent Technology (Wuhan) Co.,Ltd.

Address before: 2, 518044, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right