CN103501343A - Method for accelerating web page opening speed and interposing cache page content in web page - Google Patents
Method for accelerating web page opening speed and interposing cache page content in web page Download PDFInfo
- Publication number
- CN103501343A CN103501343A CN201310469573.4A CN201310469573A CN103501343A CN 103501343 A CN103501343 A CN 103501343A CN 201310469573 A CN201310469573 A CN 201310469573A CN 103501343 A CN103501343 A CN 103501343A
- Authority
- CN
- China
- Prior art keywords
- webpage
- user
- pages
- web
- buffer memory
- 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.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method for accelerating web page opening speed and interposing cache page contents in a web page. The method comprises the steps of statistically collecting and marking web pages accessed by a user, saving the routing information of the web pages and periodically caching the header information of the web pages; viewing the web pages accessed by the user through network equipment, and before the user receives a response from a web server, forwarding the cache web page contents stored in local equipment in the web pages accessed by the user. The method provided by the invention has the advantages that the opening speed of marked web pages can be accelerated, the utilization ratio of network bandwidth is improved, relevant information such as notices and advertisements can be added by using the existing idle resources and the added value of the equipment is increased.
Description
Technical field
The present invention relates to network communications technology field, especially a kind of method of accelerating that webpage is opened and insert the buffer memory content of pages in webpage.
Background technology
HTTP (Hyper Text Transfer Protocol) is the rule that a set of computer communicates by network.The computer elite designs HTTP, make HTTP client's (as Web browser) can be from http server (Web server) solicited message and service, the version of the current agreement of HTTP is that 1.1.HTTP is a kind of stateless agreement, stateless refers between Web browser and Web server does not need to set up lasting connection, this means that working as a user end to server end sends request, then Web server returns to response (response), connect and just be closed, the .HTTP for information about that does not retain connection at server end follows request (Request)/reply (Response) model.Web browser sends request to Web server, and Web server is processed and asked and return suitable replying.All HTTP connections all are configured to a set of request and reply.
HTTP is used content type, refers to that the file that Web server returns to Web browser has associated type.All these types are modelling on MIME Internet mail protocol, and Web server is told the kind that Web browser this document has, and is html document, GIF format-pattern, audio files or application program independently.Most of Web browsers all have a series of configurable HELPER APPLICATIONS, and they tell how browser should process the various content types that Web server sends over.
Http communication mechanism is in once complete http communication process, will complete following 7 steps between Web browser and Web server:
(1) setting up TCP connects
Before HTTP work starts, at first Web browser will connect by network and Web server, and this connection completes by TCP, and this agreement and IP agreement build Internet jointly, be famous TCP/IP protocol suite, so Internet b referred to as again the TCP/IP network.HTTP is the application layer protocol more higher level than TCP, according to rule, only has lower layer protocol to set up ability afterwards, just can carry out the more connection of layer protocol, therefore, at first will set up TCP and connect, and the port numbers that general TCP connects is 80.
(2) Web browser sends request order to Web server
Once set up the TCP connection, Web browser will send request order to Web server, for example: GET/sample/hello.jsp HTTP/1.1.
(3) Web browser sends request header
After browser sends its request command, also will send some other information to Web server with the form of header, browser has sent a blank line and has carried out announcement server afterwards, its be through with transmission of this header.
(4) Web server is replied
After client computer is sent request to server, server meeting client computer return response, for example: HTTP/1.1200OK.The first of replying is version number and the response status code of agreement.
(5) Web server sends response header information
As client, can send about the information of self in company with request, server also can send data and the requested document about it in company with replying to the user.
(6) Web server sends data to browser
Web server is after browser delivery header information, and what it can send that a blank line means header sends to this for finishing, and then, it is just with the described form transmission of the Content-Type response header information real data that the user was asked.
(7) Web server cuts out the TCP connection
Generally, once Web server has sent request msg to browser, it will be closed TCP and connect, if then browser or server have added this line code at its header
Connection:keep-alive
TCP will still stay open state after being connected to transmission, so browser can continue to send request by identical connection.Keep connecting having saved as each request and set up the new required time that connects, also saved the network bandwidth.
The current network user (comprising computer, mobile phone and pad user), the destination of most of user access be webpage and, mail, chat, video (comprising film and television) and play etc., and webpage and the mail access that is absolutely necessary.
Present domestic consumer is mainly by optical fiber, wired and wireless Internet access, relates to unified light cat, ADSL and the network equipments such as wireless aps, CPE of installing of operator, and go back general employing wireless router in user family, is connected.Due to the development rapidly of integrated circuit technique, these equipment all leave enough idling-resources.At present, due to manufacturer or traditional location, these equipment all are positioned as the network equipment of special purpose, and its idling-resource does not obtain effective exploitation.
Summary of the invention
For the weak point existed in the problems referred to above, the invention provides a kind of webpage opening speed of accelerating, the utilization of raising to the network bandwidth, the method for simultaneously utilizing existing idling-resource to add the quickening webpage of notice, advertisement to open and insert the buffer memory content of pages in webpage.
For achieving the above object, the invention provides a kind of method that webpage is opened and insert the buffer memory content of pages in webpage of accelerating, comprise the following steps:
S100, the webpage that the user is accessed are added up and mark, preserve the routing iinformation of this webpage, and the header of periodicity cache web pages;
S200, the webpage of the user being accessed by the network equipment are checked, and, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device.
The method that above-mentioned quickening webpage is opened and insert the buffer memory content of pages in webpage, wherein, in step S100, the info web in the webpage that the user is often accessed is placed in a marking of web pages Hash table, and the list item of Hash table links header and the cache web pages of this webpage.
The method that above-mentioned quickening webpage is opened and insert the buffer memory content of pages in webpage, wherein, the DNS that described info web is webpage or IP address.
The method that above-mentioned quickening webpage is opened and insert the buffer memory content of pages in webpage, wherein, in step S200, by the network equipment, the webpage of user's access is checked, take and judge that whether this webpage is the webpage of mark, if the webpage of user's access is the marking of web pages in the Hash table, in the Hash table, recall the header of this webpage, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device, sends to together the user;
If the webpage of user's access is not the marking of web pages in the Hash table, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device.
The method that above-mentioned quickening webpage is opened and insert the buffer memory content of pages in webpage, wherein, the user is after the buffer memory content of pages that receives the local device forwarding, the time of buffering timer arranged simultaneously, the response time of WEB server and the time of buffering timer are compared, to determine the display mode of cache contents in the webpage that the user was accessed;
When the response time of WEB server is greater than the time of buffering timer, extends local device and send the time of cache web pages information or send the access error message to the user;
When the response time of WEB server is less than the time of buffering timer, local device stops sending cache web pages information to the user, and the mode of user's accessed web page is served as reasons and sent cache web pages and change to the direct accessed web page of user.
The method that above-mentioned quickening webpage is opened and insert the buffer memory content of pages in webpage, wherein, the buffer memory content of pages be stored in local device is announcement information and advertisement.
Compared with prior art, the present invention has the following advantages:
1, the present invention can effectively utilize network equipment idling-resource, the accelerating network access, and do not need to add extra equipment; Because the info web in the webpage that the user is often accessed is placed in a marking of web pages Hash table, therefore, when the user next time in Hash table marking of web pages conducts interviews the time, can directly call by DNS or the IP address of this webpage, to accelerate the opening speed of webpage.
2, the present invention can be before receiving replying that the WEB server sends, the buffer memory content of pages be stored in local device is forwarded in the webpage of accessing the user, in realizing that advertisement and announcement information are inserted to the webpage of not opening, can be equipment vendors and the operator adds the surcharge channels such as advertisement.
3, the present invention can improve the utilization to the network bandwidth, utilizes existing idling-resource to add the information such as notice, advertisement simultaneously, improves the added value of equipment.
The accompanying drawing explanation
Fig. 1 is flow chart of the present invention.
Embodiment
As shown in Figure 1, the invention provides a kind of method that webpage is opened and insert the buffer memory content of pages in webpage of accelerating, comprise the following steps:
S100, the webpage that the user is accessed are added up and mark, preserve the routing iinformation of this webpage, and the header of periodicity cache web pages.
Concrete, the info web in the webpage that the user is often accessed is placed in a marking of web pages Hash table, and the list item of Hash table links header and the cache web pages of this webpage.The DNS that info web is webpage or IP address.
Because the info web in the webpage that the user is often accessed is placed in a marking of web pages Hash table, therefore, when the user next time in Hash table marking of web pages conducts interviews the time, can directly call by DNS or the IP address of this webpage, to accelerate the opening speed of webpage.
S200, the webpage of the user being accessed by the network equipment are checked, and, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device.
Concrete, by the network equipment, the webpage of user's access is checked, take and judge that whether this webpage is the webpage of mark, if the webpage of user's access is the marking of web pages in the Hash table, in the Hash table, recall the header of this webpage, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device, sends to together the user;
If the webpage of user's access is not the marking of web pages in the Hash table, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device.
S300, user are after the buffer memory content of pages that receives the local device forwarding, the time of buffering timer arranged simultaneously, the response time of WEB server and the time of buffering timer are compared, to determine the display mode of cache contents in the webpage that the user was accessed;
When the response time of WEB server is greater than the time of buffering timer, extends local device and send the time of cache web pages information or send the access error message to the user;
When the response time of WEB server is less than the time of buffering timer, local device stops sending cache web pages information to the user, and the mode of user's accessed web page is served as reasons and sent cache web pages and change to the direct accessed web page of user.
In above-mentioned S100~S300, the buffer memory content of pages be stored in local device is announcement information and advertisement.
The buffer memory content of pages adds from network layer, when the network equipment listens to user's access, adopts relevant strategy to generate the buffer memory content of pages that comprises advertisement or notice, and is forwarded to the network interface card driving with the insertion program, by network interface card, directly sends to user computer.
In addition, when the user has the new site connection request, repeat the content in above-mentioned steps S100~S300.
In the present invention, improved the WEB access mode of traditional HTTP by network equipment redirect speed technology, bridge in the middle of utilizing or the idling-resource of routing device, user to access pages is added up and the technology such as buffer memory acceleration improves access speed, simultaneously user etc., during space to be visited, insert other information such as interchangeable notice or advertisement.Wherein, the information such as this part notice, advertisement can utilize the remote network management system to be replaced.
Only as described above, be only preferred embodiment of the present invention, professional who are familiar with this art such as. after understanding technological means of the present invention, natural energy, according to actual needs, is changed under instruction of the present invention.Therefore all equal variation and modifications of doing according to the present patent application the scope of the claims, once should still remain within the scope of the patent.
Claims (6)
1. accelerate the method that webpage is opened and insert the buffer memory content of pages in webpage for one kind, comprise the following steps:
S100, the webpage that the user is accessed are added up and mark, preserve the routing iinformation of this webpage, and the header of periodicity cache web pages;
S200, the webpage of the user being accessed by the network equipment are checked, and, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device.
2. the method that quickening webpage according to claim 1 is opened and insert the buffer memory content of pages in webpage, it is characterized in that, in step S100, info web in the webpage that the user is often accessed is placed in a marking of web pages Hash table, and the list item of Hash table links header and the cache web pages of this webpage.
3. the method that quickening webpage according to claim 2 is opened and insert the buffer memory content of pages in webpage, is characterized in that the DNS that described info web is webpage or IP address.
4. the method that quickening webpage according to claim 1 is opened and insert the buffer memory content of pages in webpage, it is characterized in that, in step S200, by the network equipment, the webpage of user's access is checked, take and judge that whether this webpage is the webpage of mark, if the webpage of user's access is the marking of web pages in the Hash table, in the Hash table, recall the header of this webpage, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device, sends to together the user;
If the webpage of user's access is not the marking of web pages in the Hash table, before the user receives replying of WEB server, the webpage repeating of accessing the user is stored in the buffer memory content of pages in local device.
5. the method that quickening webpage according to claim 1 is opened and insert the buffer memory content of pages in webpage, it is characterized in that, the user is after the buffer memory content of pages that receives the local device forwarding, the time of buffering timer arranged simultaneously, the response time of WEB server and the time of buffering timer are compared, to determine the display mode of cache contents in the webpage that the user was accessed;
When the response time of WEB server is greater than the time of buffering timer, extends local device and send the time of cache web pages information or send the access error message to the user;
When the response time of WEB server is less than the time of buffering timer, local device stops sending cache web pages information to the user, and the mode of user's accessed web page is served as reasons and sent cache web pages and change to the direct accessed web page of user.
6. the method for opening according to arbitrary described quickening webpage in claim 1 to 5 and insert the buffer memory content of pages in webpage is characterized in that the buffer memory content of pages be stored in local device is announcement information and advertisement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310469573.4A CN103501343A (en) | 2013-10-10 | 2013-10-10 | Method for accelerating web page opening speed and interposing cache page content in web page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310469573.4A CN103501343A (en) | 2013-10-10 | 2013-10-10 | Method for accelerating web page opening speed and interposing cache page content in web page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103501343A true CN103501343A (en) | 2014-01-08 |
Family
ID=49866513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310469573.4A Pending CN103501343A (en) | 2013-10-10 | 2013-10-10 | Method for accelerating web page opening speed and interposing cache page content in web page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103501343A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104994058A (en) * | 2015-05-15 | 2015-10-21 | 北京京东尚科信息技术有限公司 | Method, device, and system for achieving accelerated access for a router |
WO2017005080A1 (en) * | 2015-07-09 | 2017-01-12 | 腾讯科技(深圳)有限公司 | Webpage display method, terminal device and storage medium |
CN109672736A (en) * | 2018-12-24 | 2019-04-23 | 无锡华云数据技术服务有限公司 | Data load method based on client request |
CN110020270A (en) * | 2017-08-01 | 2019-07-16 | 上海福网信息科技有限公司 | A kind of method that webpage quickly accesses |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102206A (en) * | 2007-08-02 | 2008-01-09 | 徐蔚 | Method for improving the effect of advertisement distribution |
CN102713909A (en) * | 2010-01-24 | 2012-10-03 | 微软公司 | Dynamic community-based cache for mobile search |
CN102843445A (en) * | 2012-09-29 | 2012-12-26 | 北京奇虎科技有限公司 | Browser and domain name resolution method thereof |
-
2013
- 2013-10-10 CN CN201310469573.4A patent/CN103501343A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102206A (en) * | 2007-08-02 | 2008-01-09 | 徐蔚 | Method for improving the effect of advertisement distribution |
CN102713909A (en) * | 2010-01-24 | 2012-10-03 | 微软公司 | Dynamic community-based cache for mobile search |
CN102843445A (en) * | 2012-09-29 | 2012-12-26 | 北京奇虎科技有限公司 | Browser and domain name resolution method thereof |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104994058A (en) * | 2015-05-15 | 2015-10-21 | 北京京东尚科信息技术有限公司 | Method, device, and system for achieving accelerated access for a router |
WO2017005080A1 (en) * | 2015-07-09 | 2017-01-12 | 腾讯科技(深圳)有限公司 | Webpage display method, terminal device and storage medium |
US10713414B2 (en) | 2015-07-09 | 2020-07-14 | Tencent Technology (Shenzhen) Company Limited | Web page display method, terminal, and storage medium |
CN110020270A (en) * | 2017-08-01 | 2019-07-16 | 上海福网信息科技有限公司 | A kind of method that webpage quickly accesses |
CN109672736A (en) * | 2018-12-24 | 2019-04-23 | 无锡华云数据技术服务有限公司 | Data load method based on client request |
CN109672736B (en) * | 2018-12-24 | 2020-03-31 | 无锡华云数据技术服务有限公司 | Data loading method based on client request |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580192B (en) | The treating method and apparatus of the network access request of application program | |
CN101141420B (en) | Method and system for performing data communication between private network and public network | |
CN102790798B (en) | Transparent proxy implementation, equipment and system in a kind of content distributing network | |
DE602004006308D1 (en) | METHOD FOR CLAIMING CLIENT REQUIREMENTS FOR WEB SERVICES | |
CN102625287A (en) | Method for downloading mobile phone application software | |
CN101232468A (en) | Request-answering system and method | |
RU2012152098A (en) | METHOD, DEVICE AND SYSTEM FOR MAKING ACCESS TO THE MOBILE STATION SERVICE | |
CN102571941B (en) | Cloud point-to-point data transmission method and system | |
US20130035079A1 (en) | Method and system for establishing data commuication channels | |
CN103581248A (en) | Method and device for providing content distribution network CDN service | |
CN102638789B (en) | Method for establishing point-to-point transmission and mobile communication system | |
CN103501343A (en) | Method for accelerating web page opening speed and interposing cache page content in web page | |
CN109302437A (en) | A kind of method and apparatus redirecting website | |
CN102348198A (en) | Wireless terminal and remote parameter setting method thereof | |
CN1487706B (en) | Method, system and control process for enterprise to communicate timely | |
CN1602612A (en) | System for transferring information in a wireless data communication network | |
CN101557354A (en) | Method for sending picture by client service personnel on line | |
US6965765B2 (en) | Transactional message-queue communication for wirelessly networked devices system and method | |
CN102938782B (en) | A kind of message processing method, device and system | |
KR20130017264A (en) | System and method for providing web service for smart objects | |
WO2017097092A1 (en) | Method and system for processing cache cluster service | |
CN110601989A (en) | Network traffic balancing method and device | |
CN202043130U (en) | Remote control system for power station | |
CN103533001B (en) | Communication means and system, intermediate proxy server based on HTTP multiple delegates | |
CN104980456B (en) | Method, intermediate node, the terminal and server of transmission services |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140108 |