CN101179395A - Method and system for providing network resource information in Web accelerating system - Google Patents

Method and system for providing network resource information in Web accelerating system Download PDF

Info

Publication number
CN101179395A
CN101179395A CNA2006101703141A CN200610170314A CN101179395A CN 101179395 A CN101179395 A CN 101179395A CN A2006101703141 A CNA2006101703141 A CN A2006101703141A CN 200610170314 A CN200610170314 A CN 200610170314A CN 101179395 A CN101179395 A CN 101179395A
Authority
CN
China
Prior art keywords
client
hash
information
network resource
clock
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
Application number
CNA2006101703141A
Other languages
Chinese (zh)
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 Shenzhen 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 CNA2006101703141A priority Critical patent/CN101179395A/en
Publication of CN101179395A publication Critical patent/CN101179395A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method to keep time synchronization in a Web acceleration system, the method described as follows: when logging on a hash segmentation server of the Web acceleration system, a client obtains the local clock information of the hash segmentation server and maintains a synchronous clock based on the clock information; after receiving a request of acquiring a network resource information, the client compares the clock information of the synchronous clock with the period of validity of the network resource information, and after confirming the network resource information is not expired, sends the network resource information to the requester. Thus, after receiving the request of acquiring the network resource information, the client can correctly judge whether the corresponding network resource information is expired, thereby can provide the correct network resource information for the requester and further can improve experience of user in using. The invention simultaneously discloses a client and a Web acceleration system.

Description

The method and system of network resource information are provided in the Web accelerating system
Technical field
The present invention relates to the communications field, the method and system of network resource information particularly are provided in the Web accelerating system.
Background technology
At present, large-scale portal website all adopts Website server (Web Server) and website caching server (Cache Server) to provide corresponding network service for client.The framework of supposing the A website as shown in Figure 1, wherein, use HTML (Hypertext Markup Language) (http protocol) to carry out information interaction between Web Server and the Cache Server, HTTP1.1 agreement (RFC2616) has following regulation: use the main frame of http protocol, particularly original Web Server and Cache Server should be with clock synchronization to the full time standards of self.
Client when visit sina website, if require to browse certain webpage ( Http:// image2.AA.com.cn/dy/FocusPic/U48P1T124D1F2633DT200610151 43502 .jpg), client sends a request message to Web Server server earlier so, and Web Server is forwarded to corresponding C ache Server with this request message, if preserve relative recording on the Cache Server, this Cache Server directly sends the unified resource positioning address (URL address) of described certain webpage to client so; If there is not to preserve relevant record on the Cache Server, this Cache Server sends relevant request message to WebServer so.After Web Server receives described request message, return the URL address of corresponding message header and described certain webpage, the theing contents are as follows of this message header to CacheServer:
HTTP/1.0?200?OK
Date:Sun,15?Oct?2006?06:35:47?GMT
Server:Apache/2.0.5?8(Unix)
Last-Modified:Sun,15?Oct?2006?06:35:03?GMT
ETag:″bbd0ca-6b9d-b8a193c0″
Content-Length:27549
Content-Type:image/jpeg
Cache-control:max-age=300
Cache Server preserves this message header and message content (being the URL address of webpage), and is Sun according to the expired time that the regulation of HTML (Hypertext Markup Language) (http protocol) calculates this information, 15Oct2006 06:40:47 GMT.And client is because not success of request for the first time, send same request message to WebServer once more after 60 seconds, Web Server is after Cache Server transmits this request message, Cache Server finds the URL address of described certain webpage, and after definite this information is not out of date, this URL address is sent to corresponding client.
Have following shortcoming when using as shown in Figure 1 the network architecture that corresponding network service is provided as the user: when concurrent client terminal quantity increased severely, Web Server in the system and the disposal ability of Cache Server and bandwidth ability can meet with bottleneck effect.
In view of this, the Web accelerating system adopts point-to-point protocol technology (P2P technology) to provide corresponding network service for each client, and so-called P2P technology is exactly that each client of visiting web content is used as Cache Server.In the Web accelerating system, when a certain client during to Web Server acquisition request network resource information, the address that will have another client of this network resource information by corresponding P2P Server sends to described certain client, and this client is obtained required network resource information from described another client.Like this, just, can in the Web accelerating system, fully realize resource-sharing; Simultaneously since with client as Cache Server, the quantity of therefore concurrent client is many more, the disposal ability of system is just high more, the speed of return information is just fast more, this has also strengthened the extensibility of system.
But, also there is weak point in above-mentioned Web accelerating system: in existing Web accelerating system, the employed clock of client is local user clock (being the visible clock of user), clock on user clock on each client and the Web Server is all inconsistent, therefore, when certain client provides network resource information as Cache Server for other clients, can't judge accurately whether corresponding network resource information is expired, this will make troubles to the use of other clients.For example, when described as the user clock on the client of Cache Server during early than the clock on the Web Server, this client can be judged as outdated information to also not out of date network resource information, thereby this network resource information is not sent to corresponding client; Perhaps, when described when being later than clock on the Web Server as the user clock on the client of Cache Server, this client can be judged as network resource information out of date not out of date information, and this information (as expired topical news) is sent to corresponding client.
Like this, under described two kinds of situations, the Web accelerating system all can't be for the user provides gratifying network service, thereby has influenced user's experience.
Summary of the invention
The invention provides the method and system that network resource information is provided in the Web accelerating system, in order to solve in the existing Web accelerating system, thereby client be because of can't can't judging accurately whether corresponding network resource information is expired synchronously with the Web server retention time, and then can't provide the problem of network resource information accurately to other clients.
Concrete technical scheme of the present invention is as follows:
The method of resource information is provided in the Web accelerating system, comprises:
Client obtains the local clock information of this Hash staging server in the Hash staging server process of login Web accelerating system, and is benchmark maintain synchronization clock with this clock information;
Described client compares the clock information of described synchronised clock and the term of validity of described network resource information when receiving the request of obtaining network resource information, and sends it to the requesting party when definite this network resource information is not out of date.
According to said method:
Described client initiatively to this its local clock information of Hash staging server request, perhaps initiatively is handed down to this client with local clock information by described Hash staging server in the Hash staging server process of login Web accelerating system.
Described client is in the process of benchmark maintain synchronization clock with the local clock information of Hash staging server, regularly obtains up-to-date clock information from described Hash staging server.
A kind of client comprises:
Receiving element is used to receive the local clock information that the Hash staging server sends, and the request of obtaining network resource information of other clients transmissions;
Processing unit, the local clock information that is used for described Hash staging server is a benchmark maintain synchronization clock, and judges according to the clock information of described synchronised clock whether network resource information is expired;
Transmitting element is used for described network resource information is sent to described other clients.
Described processing unit also is used for regularly obtaining up-to-date local clock information with the maintain synchronization clock from described Hash staging server.
A kind of Web accelerating system comprises:
Client is used for obtaining in the Hash staging server process of login Web accelerating system the local clock information of this Hash staging server, and is benchmark maintain synchronization clock with this clock information; And when receiving the request of obtaining network resource information, the clock information of described synchronised clock and the term of validity of described network resource information are compared, and when definite this network resource information is not out of date, send it to the requesting party;
The Hash staging server is used for when described client-access Web accelerating system the clock information of this locality is sent to this client;
Web server is used to provide the user required network resource information;
Described client initiatively to this its local clock information of Hash staging server request, perhaps initiatively is handed down to this client with local clock information by described Hash staging server in the Hash staging server process of login Web accelerating system.
Described client is in the process of benchmark maintain synchronization clock with the local clock information of Hash staging server, regularly obtains up-to-date clock information from described Hash staging server.
Beneficial effect of the present invention is as follows:
Among the present invention, client obtains the local clock information of this Hash staging server in the Hash staging server process of login Web accelerating system, and is benchmark maintain synchronization clock with this clock information.Like this, described client is when receiving the request of obtaining network resource information, just can judge accurately whether corresponding network resource information is expired according to described synchronised clock, thereby for the requesting party provides correct network resource information, and then improved user's experience.
Description of drawings
Fig. 1 is a Web accelerating system system assumption diagram in the prior art;
Fig. 2 A is a Web accelerating system system assumption diagram in the embodiment of the invention;
Fig. 2 B is a client functionality structure chart in the embodiment of the invention;
Fig. 3 A is that client is obtained Web page flow chart from Web server in the embodiment of the invention;
Fig. 3 B is a P2P Server A segmentation schematic diagram in the embodiment of the invention;
Fig. 4 obtains Web page flow chart for client in the embodiment of the invention from other clients;
Embodiment
In the present embodiment, client obtains the local clock information of this Hash staging server in the Hash staging server process of login Web accelerating system, and is benchmark maintain synchronization clock with this clock information; Like this, this client just can accurately judge whether corresponding network resource information is expired according to the clock information of described synchronised clock when receiving the request of obtaining network resource information.
Below in conjunction with accompanying drawing the preferential execution mode in the present embodiment is elaborated.
Consult shown in Fig. 2 A, the Web accelerating system also comprises client 20, Hash staging server (Hash segmentation Server) 21 and point-to-point protocol server (P2P Server) 22 except comprising the Web server (Web Server) that is used to provide network resource information.Described client 20 is used to visit the Web accelerating system to obtain the required network resource information of user, perhaps provides corresponding network resource information as Cache Server for other clients 20; Shown in Fig. 2 A, in the present embodiment, client 20A and client 20B both can be used as normal client end 20, also can be used as Cache Server and provided corresponding network resource information for other clients 20.Described Hash segmentation Server 21 is used for when client 20 visit Web accelerating systems, clock information of this locality and the segmentation table of P2P Serverr are sent to client 20, because Hash segmentation Server also is the server that adopts HTML (Hypertext Markup Language) (http protocol) to communicate, so the clock on its clock and the Web Server is synchronous.Described P2P Server is used for reaching with keyword form storage networking resource information (KEYURL) device identification of the client 20 of downloading this information recently.
Consult shown in the table 1, in the present embodiment, the network resource information tabulation on the described P2P Server comprises:
Table 1
Figure A20061017031400091
Consult shown in Fig. 2 B, described client 20 comprises receiving element 200, processing unit 201 and transmitting element 202.Described receiving element 200 is used to receive the local clock information that Hash staging server 21 sends, and the request of obtaining network resource information of other clients transmissions; The local clock information that described processing unit 201 is used for described Hash staging server 21 is a benchmark maintain synchronization clock, and judges according to the clock information of described synchronised clock whether network resource information is expired; Described transmitting element 202 is used for described network resource information is sent to described other clients 20.
Based on the above-mentioned network architecture, client 20 is when visit Web accelerating system, login Hash segmentation Server21 earlier, and ask its local clock information, perhaps initiatively the clock information of this locality is sent to this client 20 by this Hash segmentation Server21 to Hash segmentation Server21.After client 20 receives the local clock information of Hash segmentation Server21, with this clock information is that benchmark is safeguarded local synchronised clock, this synchronised clock is the sightless clock of user, and it and local user clock do not conflict, and can not influence the operation of local user's clock yet.Hash segmentation Server21 also can send to the segmentation table of P2P Server this client 20 simultaneously, client 20 obtains the device identification of another client 20 at self required network resource information place from corresponding P2P Server according to this segmentation table, and, then obtain required network resource information from described another client 20 according to the described network address according to the network address that described another client 20 is obtained in this device identification.
Consult shown in Fig. 3 A, in the present embodiment, client 20A is as follows as the detailed process of normal client end 20 visit Web accelerating systems:
Step 300: client 20A login Hash segmentation Server21.
Step 301:Hash segmentation Server21 sends to client 20A with clock information of this locality and the segmentation table of P2P Server, also sends other operational factor (as issuing and inquiring about time interval of URL address or the like) simultaneously to client 20A.
In the Web accelerating system, the number of the unified resource positioning address of webpage (URL address) is that unit calculates with hundred million, and all URL addresses of client 20 visit recently are kept in the KEYURL tabulation of P2P Server with the form of KEYURL, and the number of KEYURL is also very huge, a P2P Server does not handle all KEYURL, solves this problem so introduce Hash segmentation Server21.
Each URL comprises a host name, for example, Http:// www.AA.com/ad.swfIn, Www.AA.comBe host name, Hash segmentation Server21 calculates the hash value of second level domain AA.com wherein according to hash algorithm, and will according to this hash value Http:// www.AA.com/ad.swfBeing mapped to corresponding space, is the URL address of BB.com and CC.com for second level domain, and Hash segmentation Serverc21 also does identical processing; Then, Hash segmentation Serverc21 does a segmentation to the space that each hash value shone upon, preservation and the inquiry of the KEYURL on every P2P Server only is responsible for certain section.For example, consult shown in Fig. 2 A, Hash segmentation Server21 is divided into three sections with the hash value space, corresponds respectively to three P2P Server:P2P ServerA (AA.com), P2P Server B (BB.com) and P2PServer C (CC.com); If it is too huge to be mapped to the number of the KEYURL on the P2P Server A, then can also further segmentation be done in the space of hash value correspondence according to the number of KEYURL, for example, consult shown in Fig. 3 B P2P Server A is further divided into following four P2P Server:P2P Server 1[0-10 hundred million), P2P Server 2,[10 hundred million-2,000,000,000), P2P Server 3,[20 hundred million-3,000,000,000) and P2P Server 4,[30 hundred million-4,000,000,000); Like this, when the hash value of calculating according to AA.com drop on [1,000,000,000-2,000,000,000) the space in, client 20A is that the issue request of URL address of AA.com and query requests all can send on the P2P Server 2 and handle for second level domain so.
Step 302: client 20A safeguards local synchronous clock according to the clock information that obtains, and client 20A is according to the P2P Server segmentation table that obtains, calculate the Web page of self acquisition request the URL address ( Http:// www.AA.com/ad.swf) hash value drop in (AA.com) corresponding space.
Step 303: client 20A sends solicited message to Web Server and P2P Server A simultaneously, to obtain the relevant Web page, comprises the URL address of this Web page in the described request information.
The KEYURL tabulation that step 304:P2P Server A inquiry is local finds no other clients 20 and once downloaded this Web page, and then client 20A obtains the required Web page from Web server.
Step 305: client 20A calculates the term of validity of this Web page according to http protocol, then, the URL address of this Web page and the device identification of self is published on the P2P Server A, uses for other clients 20 inquiries.
In the foregoing description, after client 20A obtains clock information from Hash segmentation Server21, with this clock information is that benchmark is safeguarded local synchronised clock, and described synchronised clock is after operation a period of time, may owing to the GetTickCount clock of client 20A inaccurate and no longer with Web Server on clock keep synchronously, therefore, client 20A will obtain up-to-date clock information again every the regular hour from Hash segmentation Server21, in order to safeguard local synchronised clock.
Like this, client 20B is when visit Web accelerating system, if also acquisition request Http:// www.AA.com/ad.swfThe pairing Web page, client 20B can be with client 20A as Cache Server so, thereby obtains this Web page on client 20A.
Consult shown in Figure 4ly, in the present embodiment, client 20B is as follows from the detailed process that client 20A obtains the Web page:
Step 400: client 20B login Hash segmentation Server21.
Step 401:Hash segmentation Server21 sends to client 20B with the clock information of this locality, segmentation table and other operational factors of P2P Server.
Step 402: client 20B is according to the P2P Server segmentation table that obtains, calculate the Web page of self acquisition request the URL address ( Http:// www.AA.com/ad.swf) hash value drop in (AA.com) corresponding space.
Step 403: client 20B sends solicited message to Web Server and P2P Server A simultaneously, to obtain the relevant Web page, comprises the URL address of this Web page in the described request information.
The KEYURL tabulation that step 404:P2P Server A inquiry is local obtains the device identification of client 20A, and this device identification is sent to client 20B.
Step 405: client 20B obtains the network address of client 20A according to described device identification, and sends solicited message to client 20A, comprise in this solicited message the URL address ( Http:// www.AA.com/ad.swf).
After step 406: client 20A receives the solicited message that client 20B sends, with the clock information of local synchronous clock and this URL address ( Http:// www.AA.com/ad.swf) term of validity of the pairing Web page compares, and sends it to client 20B after definite this Web page is not out of date.
After step 407: client 20B received the described Web page, disconnection and Web Server were connected.
In the foregoing description, if the Web page on the client 20A is out of date, then the P2P Server A device identification that again other had a client 20 of this Web page sends to client 20B successively.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (9)

1. the method that network resource information is provided in the Web accelerating system is characterized in that, comprises step:
Client obtains the local clock information of this Hash staging server in the Hash staging server process of login Web accelerating system, and is benchmark maintain synchronization clock with this clock information;
Described client compares the clock information of described synchronised clock and the term of validity of described network resource information when receiving the request of obtaining network resource information, and sends it to the requesting party when definite this network resource information is not out of date.
2. the method for claim 1, it is characterized in that, described client initiatively to this its local clock information of Hash staging server request, perhaps initiatively is handed down to this client with local clock information by described Hash staging server in the Hash staging server process of login Web accelerating system.
3. method as claimed in claim 1 or 2 is characterized in that, described client is in the process of benchmark maintain synchronization clock with the local clock information of Hash staging server, regularly obtains up-to-date clock information from described Hash staging server.
4. a client is characterized in that, comprising:
Receiving element is used to receive the local clock information that the Hash staging server sends, and the request of obtaining network resource information of other clients transmissions;
Processing unit, the local clock information that is used for described Hash staging server is a benchmark maintain synchronization clock, and judges according to the clock information of described synchronised clock whether network resource information is expired;
Transmitting element is used for described network resource information is sent to described other clients.
5. client as claimed in claim 4 is characterized in that, described processing unit also is used for regularly obtaining up-to-date local clock information with the maintain synchronization clock from described Hash staging server.
6. a Web accelerating system is characterized in that, comprising:
Client is used for obtaining in the Hash staging server process of login Web accelerating system the local clock information of this Hash staging server, and is benchmark maintain synchronization clock with this clock information; And when receiving the request of obtaining network resource information, the clock information of described synchronised clock and the term of validity of described network resource information are compared, and when definite this network resource information is not out of date, send it to the requesting party;
The Hash staging server is used for when described client-access Web accelerating system the clock information of this locality is sent to this client;
Web server is used to provide the user required network resource information.
7. Web accelerating system as claimed in claim 6, it is characterized in that, described client initiatively to this its local clock information of Hash staging server request, perhaps initiatively is handed down to this client with local clock information by described Hash staging server in the Hash staging server process of login Web accelerating system.
8. Web accelerating system as claimed in claim 6 is characterized in that, described client is in the process of benchmark maintain synchronization clock with the local clock information of Hash staging server, regularly obtains up-to-date clock information from described Hash staging server.
9. as claim 6,7 or 8 described Web accelerating systems, it is characterized in that described client comprises:
Receiving element is used to receive the local clock information that the Hash staging server sends, and the request of obtaining network resource information of other clients transmissions;
Processing unit, the local clock information that is used for described Hash staging server is a benchmark maintain synchronization clock, and judges according to the clock information of described synchronised clock whether network resource information is expired;
Transmitting element is used for described network resource information is sent to described other clients.
CNA2006101703141A 2006-12-28 2006-12-28 Method and system for providing network resource information in Web accelerating system Pending CN101179395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101703141A CN101179395A (en) 2006-12-28 2006-12-28 Method and system for providing network resource information in Web accelerating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101703141A CN101179395A (en) 2006-12-28 2006-12-28 Method and system for providing network resource information in Web accelerating system

Publications (1)

Publication Number Publication Date
CN101179395A true CN101179395A (en) 2008-05-14

Family

ID=39405495

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101703141A Pending CN101179395A (en) 2006-12-28 2006-12-28 Method and system for providing network resource information in Web accelerating system

Country Status (1)

Country Link
CN (1) CN101179395A (en)

Similar Documents

Publication Publication Date Title
US8856279B2 (en) Method and system for object prediction
US6917960B1 (en) Intelligent content precaching
US6868453B1 (en) Internet home page data acquisition method
US8463915B1 (en) Method for reducing DNS resolution delay
CN101894136B (en) Based on page refreshing processing method and the system thereof of mobile terminal
US20080235326A1 (en) Methods and Apparatus for Accelerating Web Browser Caching
WO2008077328A1 (en) System, method and apparatus that can access a web page element in a web page
CN100563214C (en) A kind of method and system that improve accesses network resource speed
US20130246504A1 (en) Method for subscribing to notification, apparatus and system
US20100115613A1 (en) Cacheable Mesh Browsers
CN102882974B (en) Method for saving website access resource by website identification version number
CN101600000A (en) The data communications method and the system of IPv6 user capture IPv4 website
CN103001964B (en) Buffer memory accelerated method under a kind of LAN environment
CN102638580A (en) Webpage information processing method and webpage information processing device
CN105930528A (en) Webpage cache method and server
CN103220371A (en) Method and system for conducting content adaptation
CN108401012A (en) A kind of document breakpoint transmission method
US10404774B2 (en) Mobile device and method for controlling transmission to web server in mobile device
CN103401946A (en) HTTP (hyper text transfer protocol) uploading acceleration method and system
WO2015196442A1 (en) Webpage optimization device and method
CN101895550B (en) Cache accelerating method for compatibility of dynamic and static contents of internet website
WO2019052299A1 (en) Sdn switch, and application and management method for sdn switch
CN115883657A (en) Cloud disk service accelerated scheduling method and system
CN101179395A (en) Method and system for providing network resource information in Web accelerating system
US20060069790A1 (en) Content presentation adaptation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080514