CN104933045B - Network information browsing method and network information browsing apparatus - Google Patents

Network information browsing method and network information browsing apparatus Download PDF

Info

Publication number
CN104933045B
CN104933045B CN201410098238.2A CN201410098238A CN104933045B CN 104933045 B CN104933045 B CN 104933045B CN 201410098238 A CN201410098238 A CN 201410098238A CN 104933045 B CN104933045 B CN 104933045B
Authority
CN
China
Prior art keywords
address
domain name
dns
network information
information browsing
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.)
Active
Application number
CN201410098238.2A
Other languages
Chinese (zh)
Other versions
CN104933045A (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

Abstract

The invention discloses a kind of network information browsing method and devices, comprising: creates DNS database in local external memory;After the starting of network information browsing apparatus, the data in the DNS database are imported into local memory reservoir;After receiving web-page requests, according to the inquiry of the domain name local memory reservoir in the web-page requests, corresponding IP address is read if inquiring local memory reservoir and having this domain name, accesses read IP address;Otherwise the corresponding IP address of the domain name is obtained from dns server inquiry, accesses inquired IP address, the domain name and its corresponding IP address is stored in local dns database.Utilize the present invention, it is possible to reduce to the inquiry request of dns server, save the consumption and network flow consumption of DNS processing, improve the page browsing speed of network information browsing apparatus.

Description

Network information browsing method and network information browsing apparatus
Technical field
The present invention relates to internet information processing technique more particularly to a kind of network information browsing method and the network information are clear Look at device.
Background technique
In current work and life, portable intelligent device such as mobile phone, individual digital with data-handling capacity Assistant (PDA, Personal Digital Assistant), handheld computer (Pocket PC), tablet computer etc. at For the portable essential tool of people.
With the fast development of development of Mobile Internet technology, occur can browse through the network information on portable intelligent device Network information browsing apparatus.Network information browsing apparatus is the Client browse program of WWW (Web) service.The network information Browsing apparatus can send various requests to Web server, and to the hypertext information and various multimedia numbers sent from server It explains, show and plays according to format, in the industry cycle, network information browsing apparatus is also referred to as network information browsing apparatus.Net Network information browsing device can be dedicated netpage network information browsing device, be also possible to web page browsing function and other The client software of function.
Network information browsing apparatus is when occurring browsing event, by the triggering of network information browsing apparatus kernel to current browsing The corresponding service of web page address, that is, uniform resource locator (URL, Uniform/Universal Resource Locator) Device initiates hypertext transfer protocol (HTTP, HyperText Transfer Protocol HTTP) request.The HTTP request Refer to the data that network information browsing apparatus is sent by http protocol to the corresponding web page server of the URL.Web service After device receives HTTP request, http response is generated according to the information carried in corresponding HTTP request, and return to net Network information browsing device kernel, network information browsing apparatus kernel render webpage according to the http response.
Fig. 1 is a kind of specific composition of one kind of network information browsing apparatus of portable intelligent device in the prior art Schematic diagram.Referring to Fig. 1, the network information browsing apparatus is specifically included that
Event processing module 101, the instruction that portable intelligent device is inputted for receiving user such as slide the click of screen The instructions such as dynamic scaling click, and relevant event (such as the page request and network load events for opening www.qq.com) is passed Enter network information browsing device kernel.Above-mentioned event is thrown network loading module 102 again by network information browsing apparatus kernel Initiate network HTTP request.
Network loading module 102, for loading given page request.
When usual user initiates web page browsing request, the information for inputting portable intelligent device is domain name, such as www.qq.com。
Each smart machine of connection on the internet is owned by a unique address, referred to as " IP address " (i.e. mutually Networking protocol address).Due to IP address be string number, it has not been convenient to remember, thus industry occur domain name analysis system (DNS, Domain Name System), DNS allows user to replace IP address using a string of common letters (i.e. " domain name ").
The network loading module is sent to DNS clothes after receiving page request event, by the domain name in the page request Business device goes to inquire the current corresponding effective IP address of the domain name, and dns server is corresponded to returning after operation is inquired in parsing IP address.For example, domain name character string as www.qq.com can be converted into as similar 123.157.58.118 IP address.IP address Jing Guo dns resolution is sent to resource resolution type-setting module 103 by network loading module 102.
Resource resolution type-setting module 103, for receiving the correct IP address of dns resolution for carrying out automatic network loading module 102, The primary resource obtained from network and child resource are obtained subsequently through the IP address of resource;The raw network data received according to Html web page text specification is parsed, and finally obtains the page structure that can be identified and handle, while advising according to HTML/CSS The layout and structure that model defines, calculating length and width and position of page all elements etc. includes that the relevant data of complicated rendering save Into built-in storage;By the way that the upper panel module 104 of drafting can be called after detection.
Panel module 104 in drafting, the data for being obtained according to the resource resolution type-setting module 103, by relevant page The element and placement position for including inside face are finally plotted to the desired location of portable intelligent device screen, by the text in the page Sheet, image, flash etc. are presented on the screen according to standards and specifications.
In the prior art, the network information browsing apparatus of the portable intelligent device is in order to accelerate and save repeatedly DNS query, the built-in storage that the corresponding IP address result of the above-mentioned domain name inquired can be stored in portable intelligent device delay In depositing so that network information browsing apparatus be not turned off, the corresponding IP address of domain name does not change and expired and access It can be avoided the inquiry for carrying out DNS again when the identical page, directly acquire IP address as 123.157.58.118 Promote the speed of network information browsing apparatus access load.
But the above-mentioned prior art has the following technical problems:
After the page of the existing handheld device networks information browsing device needed for load, IP after dns resolution The expired time of location is generally longer (empirical value was differed at 1 day~7 days);However the portable device opening and closing network information is clear It is shorter to look at device average time, when network information browsing apparatus due to being again turned on last time closing, last closing Lead to the removing of the corresponding IP address of the domain name in built-in storage, retain the loss of effective data being buffered in built-in storage, It needs to initiate inquiry request to dns server again during the load of the page and request, to parse and obtain corresponding domain The IP address of name causes initiation, additional the DNS data processing and the consumption of network flow of repetitive requests, it is often more important that The page browsing speed of handheld device networks information browsing device is seriously affected.
Summary of the invention
In view of this, the main purpose of the present invention is to provide a kind of network information browsing method and network information browsing dresses It sets, to reduce the inquiry request to dns server, saves the consumption and network flow consumption of DNS processing, it is clear to improve the network information Look at the page browsing speed of device.
The technical scheme of the present invention is realized as follows:
A kind of network information browsing method, comprising:
DNS database is created in local external memory;
After the starting of network information browsing apparatus, the data in the DNS database are imported into local memory reservoir;
After receiving web-page requests, according to the inquiry of the domain name local memory reservoir in the web-page requests, if inquiring this Ground built-in storage has this domain name and then reads corresponding IP address, accesses read IP address;Otherwise it is looked into from dns server It askes and obtains the corresponding IP address of the domain name, access inquired IP address, the domain name and its corresponding IP address are stored in In local dns database.
A kind of network information browsing apparatus, comprising:
DNS database creation module, for localling create DNS database;
DNS data import modul is used for after the starting of network information browsing apparatus, by the data in the DNS database It imported into local memory reservoir;
DNS query module, for after network information browsing apparatus receives web-page requests, according to the domain in the web-page requests Name inquiry local memory reservoir, corresponding IP address is read if inquiring local memory reservoir and having this domain name, triggers net Network information browsing device accesses read IP address;Otherwise the corresponding IP address of the domain name is obtained from dns server inquiry, It triggers network information browsing apparatus and accesses inquired IP address, and trigger and be stored in the domain name and its corresponding IP address In local dns database.
Compared with prior art, since the present invention is localling create DNS database, domain is being obtained from dns server inquiry After the corresponding IP address of name, domain name and its corresponding IP address are stored in local dns database, browses and fills in the network information After setting starting, by the DNS database domain name and its corresponding IP address imported into local memory reservoir, receiving net After page request, according to the inquiry of the domain name local memory reservoir in the web-page requests, if inquiring local memory reservoir has this Domain name then reads corresponding IP address, accesses read IP address;Otherwise it is corresponding the domain name to be obtained from dns server inquiry IP address, access inquired IP address, the domain name and its corresponding IP address be stored in local dns database. Using this technical solution, since the corresponding IP address of the domain name for having inquired acquisition to be stored in the DNS data of external memory In library, after the starting of network information browsing apparatus by external memory domain name and its corresponding IP address imported into built-in storage In, after receiving web-page requests, whether there is the corresponding IP address of web-page requests domain name in audit memory reservoir first, if there is The IP address is then directly accessed, inquires corresponding IP address from the dns server on network again if not.Pass through this place Reason, can greatly reduce the number that the dns server on network initiates inquiry request, and the resource for saving dns server disappears Consumption, also saves corresponding network flow resource, it is often more important that since the speed in interior memory query will be significantly faster than net The speed of network inquiry, therefore the page browsing speed of network information browsing apparatus can be greatly improved.
Detailed description of the invention
Fig. 1 is a kind of specific composition of one kind of network information browsing apparatus of portable intelligent device in the prior art Schematic diagram;
Fig. 2 is a kind of flow chart of network information browsing method of the present invention;
Fig. 3 is a kind of composition schematic diagram of network information browsing apparatus of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is further described in more detail.
Network information browsing method of the present invention can apply the network information browsing apparatus in all smart machines On, it can especially apply on the network information browsing apparatus of portable intelligent device.The portable intelligent device such as hand Machine, personal digital aid (PDA) (PDA, Personal Digital Assistant), handheld computer (Pocket PC), plate Computer etc..Operating system is fitted on these portable intelligent devices, including but not limited to: Android operation system, Symbian operating system, Windows mobile operating system and apple iPhone OS operating system etc..The net Network information browsing device refers to that based on the operating system, what can be run in the Portable intelligent terminal is used to browse net The software service of page, can be dedicated web browser, is also possible to the client with web page browsing function and other functions Hold software.
Fig. 2 is a kind of flow chart of network information browsing method of the present invention.This method is browsed by the network information Device executes.Referring to fig. 2, this method specifically includes that
Step 201 creates DNS database in local external memory.
The local refers to the local intelligent equipment of installation network information browsing apparatus.The external memory is and memory Reservoir is corresponding.The effect of built-in storage and is exchanged with external memory for temporarily storing the operational data in CPU Data.As long as equipment is in operation, CPU will be transferred to the data for needing operation in built-in storage and carry out operation, when operation is complete Result is sent out again at rear CPU, the operation of built-in storage also determines the stable operation of smart machine.External memory refers to Reservoir in addition to built-in storage and cpu cache, such reservoir still can save data after generally powering off, amount of storage will be compared with Built-in storage is big, but arithmetic speed is slow compared with built-in storage.
This step 201 can execute after network information browsing apparatus is installed and started for the first time, when creating DNS data Library, network information browsing apparatus need not then repeat creation DNS database after being again started up.
Step 202, the network information browsing apparatus starting after, the data in the DNS database are imported into local In memory.In the present invention, the local memory reservoir refers to the local of the portable device where network information browsing apparatus Built-in storage, more specifically: the memory block with the built-in storage of the process context of present networks information browsing device.
It is typically referred to after network information browsing apparatus installs starting after the starting of network information browsing apparatus described in this step, Be again started up and start later, can by the DNS database domain name and its corresponding IP address imported into local memory In reservoir, specifically: by the DNS database domain name and its corresponding IP address imported into and present networks information browse fill In the built-in storage memory block for the process context set.
Step 203, after receiving web-page requests, according to the inquiry of the domain name local memory reservoir in the web-page requests, if It inquires local memory reservoir and has this domain name and then read corresponding IP address, access read IP address;Otherwise from DNS Server inquiry obtains the corresponding IP address of the domain name, accesses inquired IP address, by the domain name and its corresponding IP Location is stored in local dns database.
The web-page requests are triggered by web-page requests event, and the web-page requests event for example can be user and exist The domain name of accessed webpage is had input in network information browsing apparatus address field and triggers access operation, user clicks some Web page interlinkage etc. includes the domain-name information for the webpage to be accessed in the web-page requests.
In the present invention, after receiving web-page requests, need according to the webpage to be accessed for including in the network request Inquiry of the domain name local memory reservoir, i.e. the inquiry built-in storage with the process context of present networks information browsing device store Area inquires in the local memory reservoir and whether is cached with the domain name and its corresponding IP address, if there is the IP that then be used directly The address webpage to be accessed;It needs to initiate inquiry request to the dns server of network side if not, which asks It asks and is referred to as dns resolution request, include the domain name for the webpage to be accessed in the inquiry request, the dns server is received To after the inquiry request, parsing inquiry operation can be carried out to the domain name in the inquiry request, is obtained corresponding and the currently active IP address, and obtained IP address is returned to the initiator of inquiry request, i.e., network information browsing dress of the present invention It sets, after which obtains the corresponding IP address of domain name, the IP address can be accessed, obtain webpage information, And carry out resource resolution typesetting, shield in drafting so that the webpage inside include element and placement position be finally plotted to it is portable Text, image, flash etc. in the page is presented on screen according to standards and specifications by the desired location of formula screen of intelligent device On.Also, also the domain name and its corresponding IP address are stored in local dns database, then starting network in next time After information browsing device, domain name and its corresponding IP address in the DNS database can be imported into local memory reservoir, to mention High network information browsing apparatus inquires the probability of the IP address of accessed domain name in local memory reservoir, reduces on network Dns server initiate inquiry request number, save the resource consumption of dns server, also save corresponding network flow Measure resource, it is often more important that, can be big since the speed in interior memory query will be significantly faster than the speed of network inquiry The page browsing speed of width raising network information browsing apparatus.
Certainly, it if not receiving web-page requests, but is actively triggered according to specified logic by network information browsing apparatus The corresponding IP address of domain name is obtained from dns server inquiry, then in this case, also by the domain name and its corresponding IP Location is stored in local dns database, as long as that is, network information browsing apparatus obtains the corresponding IP of domain name from dns server The domain name and its corresponding IP address are then stored in local dns database by address.
In one preferred embodiment of the invention, described to obtain the domain name pair from dns server inquiry in step 203 It, can also be into one while the domain name and its corresponding IP address are stored in local dns database after the IP address answered Step includes: that the domain name and its corresponding IP address are imported into local memory reservoir, specifically: by the domain name and its corresponding IP Address is imported into the built-in storage memory block with the process context of present networks information browsing device.In this way, if the network information In the case that browsing apparatus does not restart, receives in the process of this starting and asked to the webpage that same domain name is initiated again It asks, then can inquire the corresponding IP address of the domain name in local memory reservoir, to further reduce in time to network On dns server initiate inquiry request number, save the resource consumption of dns server, also save corresponding network Floating resources, and can be further improved the page browsing speed of the network information browsing apparatus of this starting.
It is described after the starting of network information browsing apparatus in step 202 in another preferred embodiment of the invention, It, can also be by the domain name in the DNS database and its before corresponding IP address information imported into local memory reservoir One step includes: to traverse to the corresponding IP address of each domain name in the DNS database, judges the corresponding IP of each domain name Effectively whether address, retain the domain name and its corresponding IP address if effectively, delete the domain name if invalid currently And its corresponding IP address, by the effective domain name and its corresponding IP address in the DNS database after Ergodic judgement It imported into local memory reservoir.
Wherein, described to judge that whether effectively the corresponding IP address of each domain name, specifically includes currently:
For each domain name, the time of domain name deposit DNS database and the time difference of current time are determined, when judging this Between difference whether exceed the preset domain name/IP address corresponding time-to-live, if exceed if determine the corresponding IP address of the domain name In current invalid, otherwise determine the corresponding IP address of the domain name the currently active.The domain name IP address corresponding time-to-live Usually determine based on experience value, and pre-set, for example, usual domain name/IP address correspond to the time-to-live be 1 day to 7 days, If it is the corresponding IP address of domain name of large-scale website, the time-to-live can lengthen significantly.
Invalid, expired domain name and its IP address number can be rejected in time and be left out to processing through the foregoing embodiment According to, retain effective domain name and its IP address corresponding relationship, improve the speed that DNS database imports local memory reservoir, It reduces in the error rate for locally carrying out IP address inquiry, further increases the access speed to target webpage.
It is in step 202, described to start in network information browsing apparatus in another preferred embodiment of the invention Afterwards, by the DNS database domain name and its corresponding IP address information imported into local memory reservoir, specifically: adopt With asynchronous system, after the specified time after the starting of network information browsing apparatus, by the DNS database domain name and its Corresponding IP address information is asynchronous to be imported into local memory reservoir.
After asynchronous system, after receiving enabled instruction starting due to network information browsing apparatus, need to load correlation Resource, so if having been turned on just by the DNS database domain name and its corresponding IP address information imported into local Built-in storage can be such that starting speed slows down, network information browsing apparatus performance be influenced, therefore in the present embodiment, using asynchronous side Formula, specified time after the starting of network information browsing apparatus and then by domain name in the DNS database and its corresponding IP address information is asynchronous to be imported into local memory reservoir, can mutually be rushed to avoid with the related resource loaded when starting in this way It is prominent, reduce the influence to network information browsing apparatus performance.The specified time can opening according to network information browsing apparatus Dynamic speed is preset.
Corresponding with the above method of the invention, the invention also discloses a kind of network information browsing apparatus.For executing State method.Fig. 3 is a kind of composition schematic diagram of network information browsing apparatus of the present invention.Referring to Fig. 3, the device 300 in addition to The existing basic module of network information browsing apparatus, event processing module as shown in Figure 1, network loading module, resource resolution Type-setting module and the upper panel module of drafting etc., also specifically include that
DNS database creation module 301, for localling create DNS database.
DNS data import modul 302 is used for after the starting of network information browsing apparatus, by the domain in the DNS database Name and its corresponding IP address are imported into local memory reservoir.
DNS query module 303, for after network information browsing apparatus receives web-page requests, according in the web-page requests Inquiry of the domain name local memory reservoir, corresponding IP address is read if inquiring local memory reservoir and having this domain name, touch Hairnet network information browsing device accesses read IP address;Otherwise the corresponding IP of the domain name is obtained from dns server inquiry Address, triggering network information browsing apparatus accesses inquired IP address, and the domain name and its corresponding IP address are stored In local dns database.
Certainly, it if not receiving web-page requests, but is actively triggered according to specified logic by network information browsing apparatus The corresponding IP address of domain name is obtained from dns server inquiry, then in this case, also by the domain name and its corresponding IP Location is stored in local dns database.
In a kind of preferred embodiment of network information browsing apparatus of the present invention, the DNS data import modul 302 It is specifically used for: using asynchronous system, after the specified time after the starting of network information browsing apparatus, by the DNS database In domain name and its corresponding IP address information asynchronous imported into local memory reservoir.
In another preferred embodiment of network information browsing apparatus of the present invention, the DNS data import modul 302 are further used for: before the data in the DNS database are imported into local memory reservoir, further to described The corresponding IP address of each domain name in DNS database is traversed, judge the corresponding IP address of each domain name currently whether Effectively, retain the domain name and its corresponding IP address if effectively, if invalid with deleting the domain name and its corresponding IP Location, after Ergodic judgement by the DNS database effective domain name and its corresponding IP address imported into local memory In reservoir.
In another preferred embodiment of network information browsing apparatus of the present invention, the DNS query module 303 into One step is used for: after obtaining the corresponding IP address of the domain name from dns server inquiry, by the domain name and its corresponding IP address While being stored in local dns database, the domain name and its corresponding IP address are further imported into local memory reservoir.
In any embodiment of above-mentioned network information browsing apparatus, the local memory reservoir is clear with present networks information Look at device process context built-in storage memory block.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.The function of each embodiment Energy module can be located at a terminal or network node, or may be distributed on multiple terminals or network node.
In addition, each embodiment of the invention can pass through the data processing by data processing equipment such as computer execution Program is realized.Obviously, data processor constitutes the present invention.In addition, being commonly stored data in one storage medium Processing routine is by directly reading out storage medium for program or by installing or copying to data processing equipment for program It stores in equipment (such as hard disk and/or built-in storage) and executes.Therefore, such storage medium also constitutes the present invention.Storage medium Can be used any kind of recording mode, for example, paper storage medium (such as paper tape), magnetic storage medium (such as floppy disk, hard disk, Flash memory etc.), optical storage media (such as CD-ROM), magnetic-optical storage medium (such as MO) etc..
Therefore the invention also discloses a kind of storage mediums, wherein it is stored with data processor, the data processor For executing any embodiment of the above method of the present invention.
The present invention can be specifically adapted to the network information browsing apparatus on portable intelligent device, below on mobile phone For browser, more specific detail is done to process of the present invention.
Step 1: user starts mobile phone browser, if it is installing and starting the browser for the first time, executes step 1.1, It is no to then follow the steps 1.2.
Step 1.1: creating a DNS database in mobile phone external memory, extended meeting will be stored from DNS after the DNS database Server parses the IP address data checked out.Due to being to start and install browser for the first time, in the DNS database also not Increase any effective domain name and IP address data.The creation of DNS database described in step 1.1 comes from Project Realization angle It says, needs that the title and store path for needing the database file generated are arranged inside software program.
Step 1.2: since browser is in initial start-up process, creating DNS database, and look into from dns server Asking can be stored in domain name and its corresponding IP address in local dns database after obtaining the corresponding IP address of domain name, therefore this Effective DNS information in DNS database can be imported and be copied in DNS built-in storage caching by secondary starting browser.
The effective DNS information refers to effective domain name and its corresponding IP address information, the DNS built-in storage caching Refer to above-mentioned local memory reservoir, the i.e. memory block with the built-in storage of the process context of present networks information browsing device.
What the effective DNS information referred to defining in DNS system analysis system, meet dns resolution specification and does not have Expired data guarantee that the data inside DNS database system are not expired and it is reasonably necessary to be effectively in Project Realization, Can prevent in this way a DNS database due to duration read and write constantly increase, browser starting after, will The data of DNS database are imported into before DNS built-in storage caching, are needed to traverse DNS database and inquired, be picked in time Remove and leave out invalid, expired data, the IP address after retaining effective dns resolution, from Project Realization angle, dns resolution The expired time of IP address afterwards is generally longer (empirical value was differed at 1 day~7 days).
Step 2: user inputs the network address of some website, such as domain name www.qq.com by clicking browser address bar, Then click navigation confirming button, it is corresponding that the event processing module of mobile phone can receive the instructions such as user's click sliding scaling click Logic jumps, and the relevant event page request and network load events of domain name www.qq.com (such as open) is passed to clear Look at device core engine.
Above-mentioned event is thrown network loading module and initiates network HTTP request by step 3. browser kernel engine, at this time It can be inquired in DNS built-in storage caching, whether inquiry has the character string of domain name www.qq.com;
If having inquired domain name and its corresponding IP address in DNS built-in storage caching, then follow the steps 3.1, if not inquiring domain name and its corresponding IP address in DNS built-in storage, then follow the steps 3.2.
Step 3.1: the corresponding IP address of domain name is directly obtained from DNS built-in storage caching;Turn to step 4.
The probability of domain name and its corresponding IP address has been inquired described in step 3.1 in DNS built-in storage caching P1 is big compared with the probability of the prior art, and mean consumption time t1 is smaller, and reason is step 1.2 by persistence The information of DNS database imported into built-in storage DNS cache, browser inside initial start stage DNS built-in storage caching It is loaded with since user's history is liked, with browsing use habit and for the previous period corresponding domain name of frequent access website and its IP Location data information.
Step 3.2: due to inquiring DNS built-in storage cache failure, needed at this time by being sent out to the dns server of network side Query task is played, obtains the data information that domain name is mapped to IP address from dns server;This is looked by domain name system simultaneously The result storage of inquiry gets up domain name and the relevant Information encapsulation of IP address into DNS built-in storage caching, and DNS is arrived in storage In database, it need not initiate to request again when facilitating access same page next time;Turn to step 4;
The time (t2) inquired in step 3.2 by network DNS server it is more time-consuming with respect to step 3.1 (t2 > T1), but once inquire, DNS database and DNS built-in storage caching will be written immediately;Due to executing the general of step 3.2 Rate P2=1-P1, the probability of time-consuming event become smaller, and will lead to average time-consuming T=t1*P1+t2* of whole DNS query statistical phenomeon (1-P1)=(t1-t2) P1+t2 will reduce with the increase of P1, achieve the purpose that save DNS retrieval and inquiry.
Step 4: resource resolution type-setting module constantly receives the correct IP address of dns resolution in DNS query module, The primary resource obtained from network and child resource are obtained subsequently through the IP address of resource;The raw network data received according to Html web page text specification is parsed, and finally obtains the page structure that can be identified and handle, while advising according to HTML/CSS The layout and structure that model defines, calculating length and width and position of page all elements etc. includes that the relevant data of complicated rendering save Into built-in storage;By the way that the upper panel module of drafting can be called after detection.Panel module is according to the resource resolution typesetting mould in drafting The element for including inside the relevant page and placement position are finally plotted to portable intelligent device by the data that block 103 obtains The desired location of screen is presented text, image, the flash etc. in the page on the screen according to standards and specifications.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of network information browsing method, which is characterized in that executed by subscriber terminal equipment, comprising:
External memory in the subscriber terminal equipment local creates DNS database;
The corresponding IP address of each domain name in the DNS database is traversed, judges the corresponding IP address of each domain name Whether effectively, retain the domain name and its corresponding IP address if effectively currently, deleted if invalid the domain name and its Corresponding IP address, by the effective domain name and its importing of corresponding IP address in the DNS database after Ergodic judgement Into local memory reservoir;
After the network information browsing apparatus starting of the subscriber terminal equipment, by domain name in the DNS database and its right The IP address answered is imported into local memory reservoir;
After receiving a web-page requests every time, according to the inquiry of the domain name local memory reservoir in the web-page requests, if inquiry There is this domain name to local memory reservoir and then reads corresponding IP address, accesses read IP address;Otherwise from DNS service Device inquiry obtains the corresponding IP address of the domain name, accesses inquired IP address, the domain name and its corresponding IP address are deposited Storage is in local dns database.
2. the method according to claim 1, wherein the corresponding IP address of each domain name of judgement is currently It is no effective, it specifically includes:
For each domain name, determines the time of domain name deposit DNS database and the time difference of current time, judge the time difference Whether exceed the preset domain name/IP address corresponding time-to-live, determines that the corresponding IP address of the domain name is being worked as if exceeding It is preceding invalid, otherwise determine the corresponding IP address of the domain name the currently active.
3., will be described the method according to claim 1, wherein described after the starting of network information browsing apparatus Data in DNS database are imported into local memory reservoir, specifically: asynchronous system is used, in network information browsing apparatus After specified time after starting, by the DNS database domain name and its corresponding IP address information is asynchronous imported into this In ground built-in storage.
4. the method according to claim 1, wherein described, from dns server inquiry, to obtain the domain name corresponding After IP address, while the domain name and its corresponding IP address are stored in local dns database, further comprise: will The domain name and its corresponding IP address imported into local memory reservoir.
5. method according to any one of claims 1 to 4, which is characterized in that described by domain name and its corresponding IP address It imported into local memory reservoir, specifically: domain name and its corresponding IP address are imported into and present networks information browsing device Process context built-in storage memory block in.
6. a kind of network information browsing apparatus characterized by comprising
DNS database creation module, for creating DNS database in subscriber terminal equipment;
DNS data import modul judges for traversing to the corresponding IP address of each domain name in the DNS database Whether effectively the corresponding IP address of each domain name, retains the domain name and its corresponding IP address if effectively currently, if It is invalid then delete the domain name and its corresponding IP address, by the effective domain name in the DNS database after Ergodic judgement And its corresponding IP address is imported into local memory reservoir;Using asynchronous system, believe in the network of the subscriber terminal equipment Cease browsing apparatus starting after specified time after, by the DNS database domain name and its corresponding IP address information lead Enter into local memory reservoir;
DNS query module, for being looked into according to the domain name in the web-page requests after network information browsing apparatus receives web-page requests Local memory reservoir is ask, corresponding IP address, triggering network letter are read if inquiring local memory reservoir and having this domain name It ceases browsing apparatus and accesses read IP address;Otherwise the corresponding IP address of the domain name is obtained from dns server inquiry, triggered Network information browsing apparatus accesses inquired IP address, and triggers the domain name and its corresponding IP address being stored in local In DNS database.
7. device according to claim 6, which is characterized in that the DNS data import modul is specifically used for: using asynchronous Mode, after the specified time after the starting of network information browsing apparatus, by domain name in the DNS database and its corresponding IP address information is asynchronous to be imported into local memory reservoir.
8. device according to claim 6, which is characterized in that the DNS query module is further used for: taking from DNS After business device inquiry obtains the corresponding IP address of the domain name, the domain name and its corresponding IP address are stored in local dns data While in library, the domain name and its corresponding IP address are further imported into local memory reservoir.
9. according to the described in any item devices of claim 6 to 8, which is characterized in that the local memory reservoir are as follows: with present networks The built-in storage memory block of the process context of information browsing device.
10. a kind of storage medium, has processor-executable instruction, described instruction is executed by one or more processors When, realize network information browsing method as described in any one in claim 1-5.
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 CN104933045A (en) 2015-09-23
CN104933045B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN104933045A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
RU2615057C2 (en) Method and device for access to web-page and router
US8595847B2 (en) Systems and methods to control web scraping
WO2017167050A1 (en) Configuration information generation and transmission method, and resource loading method, apparatus and system
US10489476B2 (en) Methods and devices for preloading webpages
CN104182408B (en) A kind of webpage offline access method and device
CN109684575A (en) Processing method and processing device, storage medium, the computer equipment of web data
CN103810176B (en) A kind of info web prefetches access method and device
CA2836151C (en) Local networked storage linked to remote networked storage system
CN106528659B (en) Control method and device for browser to jump to application program
EP2024866A2 (en) Synchronizing structured web site contents
WO2013097667A1 (en) Web page content loading control method and device
WO2010096211A1 (en) Method and system of processing cookies across domains
CN103152367A (en) Cache dynamic maintenance updating method and system
CN102663062A (en) Method and device for processing invalid links in search result
CN104933045B (en) Network information browsing method and network information browsing apparatus
WO2021007752A1 (en) Return-to-source method and related device in content delivery network
CN103207882A (en) Shop visiting data processing method and system
CN110191168A (en) Processing method, device, computer equipment and the storage medium of online business datum
CN105279156B (en) Network information communication means and network information browsing apparatus
CN110990365A (en) Data synchronization method, device, server and storage medium
CN114553960A (en) Data caching method, device, equipment and storage medium
CN105653724A (en) Page exposure monitoring method and device
US11481302B2 (en) Processing data object modifications in a networked storage system
JP6568985B2 (en) Batch optimized rendering and fetch architecture
CN104980311B (en) Predict the method, apparatus and system of network access

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