CN102196506B - Network resource access control method, system and device - Google Patents

Network resource access control method, system and device Download PDF

Info

Publication number
CN102196506B
CN102196506B CN2010101256784A CN201010125678A CN102196506B CN 102196506 B CN102196506 B CN 102196506B CN 2010101256784 A CN2010101256784 A CN 2010101256784A CN 201010125678 A CN201010125678 A CN 201010125678A CN 102196506 B CN102196506 B CN 102196506B
Authority
CN
China
Prior art keywords
internet resources
connection request
terminal
server
described terminal
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.)
Expired - Fee Related
Application number
CN2010101256784A
Other languages
Chinese (zh)
Other versions
CN102196506A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2010101256784A priority Critical patent/CN102196506B/en
Publication of CN102196506A publication Critical patent/CN102196506A/en
Application granted granted Critical
Publication of CN102196506B publication Critical patent/CN102196506B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network resource access control method, a network resource access control system and a network resource access control device. The method comprises that: a gateway receives a first connection request from a terminal; when the first connection request is judged to carry cache identification information, and the terminal does not request for network resources requested by the first connection request for the first time after login, the gateway transmits a second connection request from which the cache identification information is removed to a server providing the network resources; and the gateway receives the network resources transmitted according to the second connection request from the server, and forwards the received network resources to the terminal. By the method, the system and the device, the frequent transmission of the connection requests from the terminal is avoided, the load of network equipment is reduced, and the network resources are saved.

Description

Network resource access control method, system and device
Technical field
The present invention relates to networking technology area, espespecially a kind of for the network resource access control method between terminal and the webserver, system and device.
Background technology
In the conventional network resources system, terminal is by the server of accesses network resource provider, and obtaining Internet resources is service content.Caching mechanism basic in the network resource accession has been described in the HTTP1.1 agreement.Describe both sides by clear and definite message header identification field between terminal and server and whether support caching function.
Be illustrated in figure 1 in prior art terminal to the flow chart of the server request Internet resources of service provider.Wherein:
When terminal is accessed a certain Internet resources first, comprise the following steps: (1) terminal initiation connection request; (2) WAP (wireless access protocol) (Wireless Access Protocol, WAP) gateway forwards connection request is to server; (3) server issues Internet resources; (4) WAP gateway transmission network resource is to terminal.Wherein, when server issues Internet resources, the descriptor of Internet resources be can carry, recent renewal time (LastModified), valid expiration date (Expires) and other buffer control information (Cache Control) etc. comprised.
When terminal is repeatedly accessed a certain Internet resources, the process of each access comprises the following steps: (11) terminal initiation connection request, owing to not being to access for the first time, therefore in connection request, carries buffer memory sign (IfModified Since) field; (12) WAP gateway forwards connection request to server; (13) server issues response message notification terminal content and does not upgrade; (14) WAP gateway transmitted response message is to terminal.
That is to say, in prior art, terminal identifies by the identification field in the message header of connection request the terminal sent request and whether has caching function, and whether server also can identify this requested content and allow to be buffered.When allowing, the content that server generally will notification terminal be asked allows the term of validity be buffered, and after the term of validity, terminal can be initiated request again, in order to obtain new content.Terminal can be carried the relevant inquiring condition in connection request, whether the content of query caching is updated, and after this partial content of discovering server upgrades, the content after upgrading is offered to terminal, or this partial content of discovering server is not while upgrading, notification terminal does not need to upgrade.The purpose of this caching mechanism is with minimum information interaction amount, realizes effectively and timely the content information of buffer memory in new terminal more.
The implementation of above-mentioned network resource accession, for some terminals, the problem existed in realizing due to its caching mechanism (such as: cache contents destroyed grade or because setting causes its repetitive requests etc. before the deadline), in the time need to again obtaining asked Internet resources, can resend connection request, and owing to carrying the buffer memory identification field in connection request, make the server content of the Internet resources of asking of can having thought in terminal buffer memory, and can not re-issue asked network resource content to terminal.Terminal in the situation that can not regain Internet resources, can frequently send the connection request to the identical network resource.WAP gateway all can directly be transmitted to the server that Internet resources are provided accordingly by connection request at every turn, due to still before the deadline, therefore, server all can issue the unaltered information of network resource content to terminal at every turn, for example: issue code 304 (Not Modified) at every turn, do not change with this network resource content of notification terminal.And the content of asked Internet resources can not sent to user terminal, cause terminal can't normally show this partial content.
Due to terminal frequent behavior that sends connection request in the Internet resources term of validity, cause server to receive a large amount of invalidation request, cause very large service processing pressure to the network equipment.
Especially when having the same Internet resources of a plurality of terminal request of caching function, WAP gateway can send to the request of each terminal ISP's server one by one.When situation about frequently sending request when above-mentioned terminal occurs, because WAP gateway does not possess caching function, but directly carry out the information forwarding, may cause still a large amount of forwardings of the Internet resources connection request in the buffer memory term of validity, cause the waste of Internet resources.
Summary of the invention
The embodiment of the present invention provides a kind of network resource access control method, system and device, for solving the prior art terminal, frequently sends connection request, increases network equipment load, causes the problem of network resources waste.
A kind of network resource access control method comprises:
The first connection request that the gateway receiving terminal sends;
Carry buffer memory identification information and described terminal be not in judging described the first connection request while asking first Internet resources that described the first connection request asks after this is reached the standard grade, described gateway sends the second connection request of removing after described buffer memory identification information to the server that described Internet resources are provided; And
Receive the Internet resources that described server issues according to described the second connection request, and be transmitted to described terminal.
A kind of network resource visit control system comprises: terminal, gateway and the server of Internet resources is provided;
Described gateway, the first connection request sent for receiving described terminal; Carry buffer memory identification information and described terminal be not in judging described the first connection request while asking first Internet resources that described the first connection request asks after this is reached the standard grade, send the second connection request of removing after described buffer memory identification information to the described server that described Internet resources are provided; And receive the Internet resources that described server issues according to described the second connection request, and be transmitted to described terminal;
Described server, issue Internet resources to described terminal for the second connection request according to after the described buffer memory identification information of removal;
Described terminal, for sending Internet resources the first connection request, and receive the Internet resources that described server issues.
A kind of network resource accession control device comprises:
Receiver module, the first connection request sent for receiving terminal;
Whether the first judge module, carry the buffer memory identification information for judging described the first connection request, and judge whether described terminal is to ask first the Internet resources of asking in described the first connection request after this is reached the standard grade;
The first Executive Module, carry buffer memory identification information and described terminal while not being the Internet resources of asking first after this is reached the standard grade to ask in described the first connection request for judge described the first connection request when described the first judge module, send the second connection request after the described buffer memory identification information of removal to the described server that described Internet resources are provided;
Feedback module, the Internet resources that issue according to the second connection request after the described buffer memory identification information of removal for receiving described server, and be transmitted to described terminal.
The network resource access control method that the embodiment of the present invention provides, system and device, the first connection request sent by the gateway receiving terminal; Carry buffer memory identification information and described terminal be not in judging described the first connection request while asking first Internet resources that described the first connection request asks after this is reached the standard grade, described gateway sends the second connection request of removing after described buffer memory identification information to the server that described Internet resources are provided; And receive the Internet resources that described server issues according to described the second connection request, and be transmitted to described terminal.The method is not while accessing first asked Internet resources in terminal, by gateway, amended connection request is transmitted to server, server can directly issue Internet resources, make terminal can get correctly, timely asked Internet resources, avoided terminal frequently to send connection request, alleviate the load of the network equipment, saved Internet resources.
The accompanying drawing explanation
The realization flow figure that Fig. 1 is terminal access network resource in prior art;
The flow chart that Fig. 2 is network resource access control method in the embodiment of the present invention;
The flow chart that Fig. 3 is network resource access control method in the embodiment of the present invention one;
Process chart between the network element that Fig. 4 is network resource access control method in the embodiment of the present invention one;
The flow chart that Fig. 5 is network resource access control method in the embodiment of the present invention two;
Process chart between the network element that Fig. 6 is network resource access control method in the embodiment of the present invention two;
The structural representation that Fig. 7 is network resource visit control system in the embodiment of the present invention;
A kind of structural representation that Fig. 8 is network resource accession control device in the embodiment of the present invention;
The another kind of structural representation that Fig. 9 is network resource accession control device in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of network resource access control method, by gateway, the network resource accession of terminal is controlled, make service content supplier (Service Provider on the terminal access the Internet, during the Internet resources that SP) provide, can arrive needed Internet resources by Obtaining Accurate, and effectively avoid repeated accesses to obtain.
In the network resource access control method that the embodiment of the present invention provides, its flow process as shown in Figure 2, comprises the following steps:
Step S11: the connection request (the first connection request) that the gateway receiving terminal sends.
Preferably, above-mentioned gateway is WAP gateway, can certainly be other gateway.
Step S12: whether the connection request that the gateway judgement receives carries the buffer memory sign.
When described connection request carries the buffer memory sign, execution step S14.When not carrying, execution step S13.
Step S13: the normal flow according to buffer memory Internet resources is not processed connection request.
Step S14: whether this asks the Internet resources of asking in above-mentioned connection request after reaching the standard grade first to judge this terminal.
When determining terminal, not while after this is reached the standard grade, accessing the Internet resources of asking first, execution step S15; Otherwise execution step S17.
Step S15: the connection request (the second connection request) after gateway transmission removal buffer memory identification information is given the server that Internet resources are provided.
Step S16: server issues Internet resources to terminal by gateway.
Server issues Internet resources to terminal according to the connection request after removal buffer memory identification information.Thereby make terminal can get in time required Internet resources, avoid the frequent transmission of connection request.
Preferably, said method also comprises:
Step S17: gateway is according to the whether effective result of determination of the Internet resources of the judgement terminal institute buffer memory got, transmission information, to terminal, comprising: the Internet resources after the renewal that the response message that the network resource content that the transmission sign is asked does not upgrade or forwarding server issue are to terminal.
When determining that terminal is the Internet resources that after this is reached the standard grade, access is asked first, by gateway by the Internet resources of the judgement terminal institute buffer memory that gets whether effectively result of determination send to terminal, and after the renewal when the Internet resources of judging terminal institute buffer memory are invalid, server issued, Internet resources send to terminal.
Above-mentioned by gateway by the Internet resources of the terminal institute buffer memory that gets whether effectively result of determination send to terminal, and Internet resources send to terminal after judging when invalid the renewal that server is issued.Comprise two kinds of situations, a kind of is to judge that by gateway whether the Internet resources of terminal institute buffer memory are effective, and a kind of is to judge that by server whether the Internet resources of terminal institute buffer memory are effective.Describe (gateway all take WAP gateway describe as example) in the following embodiments below by two specific embodiments.
Embodiment mono-:
The network resource access control method that the embodiment of the present invention provides, during the terminal access network resource, if it is the Internet resources of asking first after this is reached the standard grade that WAP gateway is determined terminal, connection request is transmitted to server, judged that by server whether the Internet resources of terminal buffers are effective.The method flow process as shown in Figure 3, performs step as follows:
Step S101: terminal sends connection request to WAP gateway.
When terminal needs the accesses network resource, can send connection request, generally can indicate the address information of the Internet resources that will access in connection request.Generally can pass through URL(uniform resource locator) (Uniform/UniversalResource Locator, URL; Or title web page address) carry out the address information of marked network resource.
The connection request that step S102:WAP gateway receiving terminal sends.
Step S103: in the connection request that judgement receives, whether carry the buffer memory identification information.
After the WAP terminal receives connection request, it is resolved, and whether judgement wherein carries the buffer memory identification information, for example: the If-Modified-Since field, think and carried the buffer memory identification information when this field is arranged, otherwise think and do not carry the buffer memory identification information.
If, execution step S105; Otherwise, execution step S104.
Step S104: the normal flow according to buffer memory Internet resources is not processed connection request, by server, issues Internet resources to terminal.
If do not carry the buffer memory sign, terminal does not possess the buffer memory ability or this Internet resources do not allow to be buffered, according to the normal flow under caching situation not, process, WAP gateway is transmitted to connection request the server that these Internet resources are provided, and server issues Internet resources to terminal by WAP gateway.
Step S105: judge this terminal be whether after this is reached the standard grade first request receiving to connection request in the Internet resources of asking.
WAP gateway is generally according to the address information of the Internet resources of the institute's request access comprised in connection request, URL for example, this reaches the standard grade whether access first this network address afterwards the judgement terminal, determines whether terminal accesses the corresponding Internet resources in this network address first.
If, execution step S108; Otherwise, execution step S106.
Connection request after step S106:WAP gateway transmission removal buffer memory identification information is to corresponding server.
Be WAP gateway when determining this terminal and not being the Internet resources of asking first after this is reached the standard grade, the buffer memory identification information in the connection request received removed, for example: remove the If-Modifled-Since field in connection request.After Reseal, the connection request after removal buffer memory identification information is sent to the server that Internet resources are provided.Thereby can issue smoothly Internet resources to terminal after making server receive connection request, ensure that terminal can get correct network resource content information, reduce follow-up unnecessary repetitive requests.
Simultaneously, WAP gateway records the Internet resources that this connection request relates to and the terminal iidentification of accessing these Internet resources, shows that this terminal asked the Internet resources that relate in connection request.
Step S107: server issues Internet resources to terminal.
Server issues the terminal of Internet resources to the request Internet resources according to the connection request after removal buffer memory identification information.
Step S108:WAP gateway directly sends to connection request the server of the Internet resources that provide asked.
WAP gateway will receive before connection request sends to the server that Internet resources are provided, and record the cache information of the Internet resources that terminal asks.
Step S109: server judges that whether the Internet resources of terminal buffers are effective.
If, execution step S110; Otherwise, execution step S111.
Server, according to the descriptor that receives connection request and these Internet resources, judges that whether the Internet resources of terminal buffers are effective.Update time, valid expiration date and other buffer control information that wherein, in descriptor, can comprise these Internet resources.
Server, according to update time and/or the valid expiration date of the Internet resources of asking that carry in the connection request by receiving, compares with update time and/or valid expiration date in descriptor, determines that whether the Internet resources of terminal buffers are effective.When corresponding identical, confirm that the Internet resources of terminal buffers are effective with update time in descriptor and/or valid expiration date in above-mentioned connection request, otherwise invalid.
Step S110: server returns to the network resource content that the response message notification terminal asks and does not upgrade.
Server returns to response message by WAP gateway to the terminal that sends connection request, carries the state code of content in response message, and the Internet resources of asking in order to marking terminal are effectively, the renewal of not modifying.
Step S111: server issues asked Internet resources to terminal.
When the Internet resources of server judgement terminal buffers are invalid, the Internet resources after upgrading can be handed down to the terminal sent request; Simultaneously, the cache information recorded in WAP gateway delete step S108.
A specific implementation example of the above-mentioned network resource access control method that the embodiment of the present invention one provides as shown in Figure 4.The Internet resources that accesses network address (being URL) is http: // 61.135.154.43/info/disengag.gif of take are example, specifically comprise the following steps:
Step S121: terminal pins is initiated connection request to network address http: // 61.135.154.43/info/disengag.gif.
Carry the buffer memory identification information in connection request, i.e. If-Modified-Since field, this field comprises descriptor: Tue, 04Sep 2007 02:01:22 GMT.
Whether carry the buffer memory identification information in the connection request that the judgement of step S122:WAP gateway receives.
According to the If-Modifled-Since field in connection request, judge whether this terminal is cached with Internet resources corresponding to this network address.
If have, execution step S126; Otherwise, execution step S123, the normal flow during according to buffer memory Internet resources is not processed.
Step S123: connection request is transmitted to the server that these Internet resources are provided.
Step S124: server issues Internet resources to WAP gateway.
Server issues Internet resources that the network address http in connection request: // 61.135.154.43/info/disengag.gif is corresponding to the terminal sent request.
The Internet resources that step S125:WAP gateway issues server are transmitted to the terminal sent request.
Step S126: judge whether this terminal is the network address that after this is reached the standard grade, access is asked first.
If, execution step S130; Otherwise, execution step S127.
Connection request after step S127:WAP gateway transmission removal buffer memory identification information is to server.
Be that WAP gateway removes the If-Modified-Since field in the connection request received, connection request sent to the server that Internet resources are provided.Simultaneously, WAP gateway records the network address that this connection request relates to and the terminal iidentification of accessing this network address, shows that this terminal asked the network address related in connection request.
Preferably, WAP gateway also can not remove the If-Modifled-Since field, and has lost efficacy by the information of revising other field identification terminal buffers, needs server to re-issue Internet resources corresponding to this network address.
Step S128: server issues Internet resources to WAP gateway.
Server issues Internet resources that the network address http in connection request: // 61.135.154.43/info/disengag.gif is corresponding to the terminal sent request.
Carry the descriptor of Internet resources simultaneously, for example: issue time T hu, 17Apr 2008 08:28:11GMT, update time Thu, 17 Apr 2008 06:00:00 GMT, valid expiration date Thu, 17 Apr 200810:00:00 GMT etc.
The Internet resources that step S129:WAP gateway issues terminal are transmitted to the terminal sent request.
WAP gateway is the descriptor of transmission network resource simultaneously.
Step S130:WAP gateway directly sends to connection request the server of the Internet resources that provide asked.
Step S131: server judges that whether the Internet resources of terminal buffers are effective.
If, execution step S132; Otherwise, execution step S134.
Server will receive the valid expiration date Tue in connection request, and the valid expiration date in the descriptor of 04Sep 2007 02:01:22 GMT and local these Internet resources that arrange compares, and determines that whether these Internet resources of terminal buffers are effective.Can certainly be according to update time or the judgement of other buffer control information.
Step S132: server returns to response message to WAP gateway.
The network resource content that step S133:WAP gateway forwards response message notification terminal is asked does not upgrade.
(for example: field 304), the Internet resources that marking terminal is asked do not upgrade to carry not Modified in the response message forwarded.
When term of validity existence is upgraded, can carry in order to inform the new valid expiration date of these Internet resources of terminal simultaneously.
Step S134: server issues Internet resources to WAP gateway.
Server issues Internet resources that the network address http in connection request: // 61.135.154.43/info/disengag.gif is corresponding to the terminal sent request.
Carry the descriptor of Internet resources simultaneously, for example: issue time T hu, 17Apr 2008 08:28:11GMT, update time Thu, 17Apr 2008 06:00:00 GMT, valid expiration date Thu, 17 Apr 200810:00:00 GMT etc.
The Internet resources that step 135:WAP gateway issues terminal are transmitted to the terminal sent request.
WAP gateway is the descriptor of transmission network resource simultaneously.
Embodiment bis-
The network resource access control method that the embodiment of the present invention provides, during the terminal access network resource, if it is the Internet resources of asking first after this is reached the standard grade that WAP gateway is determined terminal, further judges that whether the information of terminal buffers is effective, and carry out subsequent step according to judged result.The method flow process as shown in Figure 4, performs step as follows:
Step S201-S207, with the step S101-S107 in above-mentioned embodiment mono-, repeats no more herein.
Above-mentioned when step S205 is judged as YES, execution step S208.
Step S208:WAP gateway judges that whether the Internet resources of terminal buffers are effective.If, execution step S209; Otherwise, execution step S210.
WAP gateway, according to the descriptor that receives these Internet resources of connection request and local cache, judges that whether the Internet resources of terminal buffers are effective.Update time, valid expiration date and other buffer control information that wherein, in descriptor, can comprise these Internet resources.
WAP gateway specifically, by update time and/or the valid expiration date of the Internet resources of asking that carry in the connection request received, compares with update time and/or valid expiration date in descriptor; Whether the Internet resources of determining terminal buffers are effective.When corresponding identical, confirm that the Internet resources of terminal buffers are effective with update time in descriptor and/or valid expiration date in above-mentioned connection request, otherwise invalid.
The descriptor of each Internet resources in WAP gateway in pre-stored each server that Internet resources are provided, when the valid expiration date of certain Internet resources is expired, terminal can be again to corresponding server request descriptor, in order to upgrade the descriptor of these Internet resources.Update time and/or valid expiration date in the descriptor of these Internet resources of the update time of the Internet resources of asking that WAP gateway returns according to server and/or valid expiration date renewal local cache.When server does not have success response and issues descriptor, delete the descriptor of these Internet resources.
WAP gateway can be set up form, stores the descriptor of each Internet resources, take in the descriptor of storage comprise the time valid expiration date be example, the form of foundation can be as shown in table 1.
Table 1
The network address Valid expiration date
http://219.133.40.48/images/face/online/1-1.gif Fri,18 Apr 200808:27:20 GMT
http://121.14.76.208:8080/qbar/sysmsg.gif Fri,18 Apr 200808:28:02 GMT
...... ......
Step S209:WAP gateway returns to the network resource content that the response message notification terminal asks and does not upgrade.
WAP gateway returns to response message to the terminal that sends connection request, carries the state code of content in response message, and the Internet resources of asking in order to marking terminal are effectively, the renewal of not modifying.
Step S210: the server that connection request is sent to the Internet resources that provide asked.
Now, WAP gateway can directly be transmitted to connection request the server of the Internet resources that provide asked, and more amended connection request is sent to this server after also can removing the buffer memory identification information.
Step S211: server issues asked Internet resources to terminal.
In fact, when the Internet resources of WAP gateway judgement terminal buffers are invalid, the Internet resources that server also can be judged terminal buffers according to the connection request received are invalid, or the WAP webmaster is directly by the judged result announcement server.Server can be handed down to the terminal sent request by the Internet resources after upgrading.
A specific implementation example of the above-mentioned network resource access control method that the embodiment of the present invention two provides as shown in Figure 5.Take accesses network address http: // 121.14.76.208:8080/qbar/online.gif is example, specifically comprises the following steps:
Step S221: terminal pins is initiated connection request to network address http: // 121.14.76.208:8080/qbar/online.gif.
Carry the buffer memory identification information in connection request, i.e. If-Modified-Since field, this field comprises descriptor: Tue, 08 Jan 2008 10:06:30 GMT.
Whether carry the buffer memory identification information in the connection request that the judgement of step S222:WAP gateway receives.
According to the If-Modified-Since field in connection request, judge whether this terminal is cached with Internet resources corresponding to this network address.
If have, execution step S226; Otherwise, execution step S223, the normal flow during according to buffer memory Internet resources is not processed.
Step S223: connection request is transmitted to the server that these Internet resources are provided.
Step S224: server issues Internet resources to WAP gateway.
Server issues Internet resources that the network address http in connection request: // 121.14.76.208:8080/qbar/online.gif is corresponding to the terminal sent request.
The Internet resources that step S225:WAP gateway issues server are transmitted to the terminal sent request.
Step S226: judge whether this terminal is the network address that after this is reached the standard grade, access is asked first.
If, execution step S230; Otherwise, execution step S227.
Connection request after step S227:WAP gateway transmission removal buffer memory identification information is to server.
Be that WAP gateway removes the If-Modified-Since field in the connection request received, connection request sent to the server that Internet resources are provided.Simultaneously, WAP gateway records the network address that this connection request relates to and the terminal iidentification of accessing this network address, shows that this terminal asked the network address related in connection request.
Preferably, WAP gateway equally also can not remove the If-Modified-Since field, and has lost efficacy by the information of revising other field identification terminal buffers, needs server to re-issue Internet resources corresponding to this network address.
Step S228: server issues Internet resources to WAP gateway.
Server issues Internet resources that the network address http in connection request: // 121.14.76.208:8080/qbar/online.gif is corresponding to the terminal sent request.
Carry the descriptor of Internet resources simultaneously, for example: issue time T hu, 17Apr 2008 08:31:56GMT, update time Tue, 08 Jan 2008 10:06:30 GMT, valid expiration date Fri, 18 Apr 20080831:56 GMT etc.
The Internet resources that step S229:WAP gateway issues terminal are transmitted to the terminal sent request.
WAP gateway is the descriptor of transmission network resource simultaneously.
Step S230:WAP gateway judges that whether the Internet resources of terminal buffers are effective.
If, execution step S231; Otherwise, execution step S232.
WAP gateway will receive the valid expiration date Tue in connection request, and the valid expiration date in the descriptor of 08Jan 2008 10:06:30 GMT and local these Internet resources that arrange compares, and determines that whether these Internet resources of terminal buffers are effective.Can certainly be according to update time or the judgement of other buffer control information.
Step S231:WAP gateway returns to the network resource content that the response message notification terminal asks and does not upgrade.
Step S232: will be for network address http: // 121.14.76.208:8080/qbar/online.gif connection request sends to the server of the Internet resources that provide asked
Step S233: server issues Internet resources to WAP gateway.
Server issues Internet resources that the network address http in connection request: // 61.135.154.43/info/disengag.gif is corresponding to the terminal sent request.
Carry the descriptor of Internet resources simultaneously, for example: issue time T hu, 17Apr 2008 08:31:56GMT, update time Tue, 08Jan 2008 10:06:30 GMT, valid expiration date Fri, 18 Apr 20080831:56GMT etc.
The Internet resources that step S234:WAP gateway issues terminal are transmitted to the terminal sent request.
WAP gateway is the descriptor of transmission network resource simultaneously.
In above-described embodiment one and embodiment bis-, judge in connection request whether carry the buffer memory identification information and the judgement terminal is the step of the Internet resources of asking first after this is reached the standard grade, can be in no particular order, when in determining connection request, carrying buffer memory identification information and terminal and not being the Internet resources of asking first after this is reached the standard grade, connection request after WAP gateway transmission removal buffer memory identification information is to the server that Internet resources are provided, can realize reducing the connection request transmission times, thereby reduce the purpose of information interaction.
In above-described embodiment one and embodiment bis-, when a plurality of users' terminal is initiated connection request to the Internet resources of a certain network address simultaneously, its effect that reduces network equipment load is more obvious.Especially in embodiment bis-gateway when the Internet resources of judging terminal buffers are effective, direct notification terminal, further reduced and server between information interaction.
Preferably, in above-described embodiment one and embodiment bis-, all delete the network resource information of buffer memory in terminal rolls off the production line terminal and WAP gateway, thus during effectively avoiding terminal online cache information in terminal destroyed after, the situation that the repetitive requests caused is obtained Internet resources occurs.
Above-described embodiment one and embodiment bis-also can be out of shape and be changed, for example: will judge that whether terminal is to initiate first after this is reached the standard grade the function of the connection request of certain Internet resources is put in terminal, when not being while initiating first, directly the connection request of buffer memory identification information is not carried in transmission, when being sends the connection request that carries the buffer memory identification information while initiating first to get final product.When not being to initiate first and response message that last request is returned while determining that its cache contents is effective, can directly use like this; When the content of buffer memory is destroyed, can directly goes to obtain, thereby make terminal also can avoid repeating to send connection request.
The above-mentioned network resource access control method provided according to the embodiment of the present invention, can build a kind of network resource visit control system.As shown in Figure 6, comprising: terminal 10, gateway 20 are (for example: the WAP (wireless access protocol) WAP gateway) and the server 30 of Internet resources is provided.Wherein, gateway 20 can provide information interaction for a plurality of terminals 10 and a plurality of server 30.
Terminal 10, for sending Internet resources the first connection request, and the Internet resources that issue of reception server 30.
Gateway 20, the first connection request sent for receiving terminal 10; Receive in the first connection request when judging that to carry buffer memory identification information and terminal 10 be not while asking first Internet resources that the first connection request asks after this is reached the standard grade, send the second connection request of removing after the buffer memory identification information to the server 30 that asked Internet resources are provided; And the Internet resources that issue according to the connection request of removing after the buffer memory identification information of reception server 30, and be transmitted to terminal 10.
Server 30, issue Internet resources to terminal 10 for the second connection request according to after removal buffer memory identification information.
Preferably, gateway 20, also, for when determining terminal 10 and be the Internet resources that after this is reached the standard grade, access request the first connection request is asked first, send to described server 30 by the first connection request received; And forward described server judge that the Internet resources of described terminal buffers return when effective, characterize response message that the network resource content of asking do not upgrade to terminal, or described server is judged to the Internet resources of asking that the Internet resources of described terminal buffers issue when invalid are transmitted to described terminal.
Server 30, also, for the descriptor according to receiving the first connection request and these Internet resources, judge that whether the Internet resources of terminal 10 buffer memorys are effective; If return to response message to gateway 20, so that the network resource content that notification terminal 10 is asked does not upgrade; Otherwise, issue asked Internet resources to gateway 20.
Preferably, gateway 20, also for recording the related cache information of the Internet resources that terminal 10 asks; And when knowing that server 30 determines the Internet resources of 10 buffer memorys of terminal when invalid, the cache information of deletion record.
Optionally, gateway 20, also for being while asking first Internet resources that the first connection request asks after this is reached the standard grade when determining terminal 10, the descriptor according to this Internet resources of the first connection request received and local cache, judge that whether the Internet resources of terminal 10 buffer memorys are effective; When the Internet resources of judgement terminal 10 buffer memorys are effective, return to terminal 10 network resource content that response message notification terminal 10 asks and do not upgrade; Otherwise, will receive the first connection request and send to server 30; And the Internet resources that issue according to the first connection request of reception server 30, and be transmitted to terminal 10.
Server 30, also for issuing Internet resources to terminal 10 after the connection request that receives gateway 20 forwardings.
Optionally, gateway 10, update time and/or the valid expiration date of the descriptor of these Internet resources of the update time of the Internet resources of also asking for the terminal 10 of returning according to server 30 and/or valid expiration date renewal local cache.
The above-mentioned network resource access control method provided according to the embodiment of the present invention one, can build a kind of network resource accession control device, and this device is arranged in the gateway of network resource visit control system.As shown in Figure 7, comprising: receiver module 201, the first judge module 202, the first Executive Module 203 and feedback module 204.
Receiver module 201, the first connection request sent for receiving terminal.
The first judge module 202, receive the first connection request and whether carry the buffer memory identification information for judging, and judge this terminal be whether after this is reached the standard grade first request receiving to the first connection request in the Internet resources of asking.
The first Executive Module 203, carry buffer memory identification information and terminal while not being the Internet resources of asking first after this is reached the standard grade to ask in the first connection request for judge the first connection request when the first judge module 201, send the second connection request after removal buffer memory identification information to the server that asked Internet resources are provided.
Feedback module 204, the Internet resources that issue according to the second connection request after removal buffer memory identification information for reception server, and be transmitted to terminal.
Preferably, above-mentioned network resource accession control device, also comprise: the second Executive Module 205, be while asking first Internet resources that the first connection request asks after this is reached the standard grade for determine terminal when the first judge module 202, the first connection request received sent to the server of the Internet resources that provide asked.
Feedback module 204, the response message returned when also effective for the Internet resources that server judged to terminal buffers is transmitted to terminal, and the network resource content that notification terminal is asked does not upgrade; Or server is judged to the Internet resources of asking that the Internet resources of terminal buffers issue when invalid are transmitted to terminal; Wherein server 30, according to the descriptor of the first connection request and these Internet resources, judges that whether the Internet resources of terminal 10 buffer memorys are effective.
Above-mentioned network resource accession control device also comprises: logging modle 206, for recording the related cache information of the Internet resources that terminal asks; And when knowing that server determines the Internet resources of terminal institute buffer memory when invalid, the cache information of deletion record.
The above-mentioned network resource access control method provided according to the embodiment of the present invention two, can build a kind of network resource accession control device, and this device is arranged in the WAP gateway of network resource visit control system.As shown in Figure 8, comprising: receiver module 301, the first judge module 302, the first Executive Module 303 and feedback module 304.
Receiver module 301, the first connection request sent for receiving terminal.
The first judge module 302, receive the first connection request for judgement and whether carry the buffer memory identification information, and judge whether this terminal is the Internet resources of asking in the first connection request of asking first after this is reached the standard grade to receive in the first connection request.
The first Executive Module 303, carry buffer memory identification information and terminal while not being the Internet resources of asking first after this is reached the standard grade to ask in the first connection request for judge the first connection request when the first judge module 301, send the second connection request after removal buffer memory identification information to the server that asked Internet resources are provided.
Feedback module 304, the Internet resources that issue according to the second connection request after removal buffer memory identification information for reception server, and be transmitted to terminal.
Above-mentioned network resource accession control device, also comprise: the second judge module 305, for determine terminal when the first judge module 302, be while asking first Internet resources that the first connection request asks after this is reached the standard grade, descriptor according to this Internet resources of the first connection request received and local cache, judge that whether the Internet resources of terminal buffers are effective.
The second Executive Module 306, judge the Internet resources of terminal 10 buffer memorys when effective for the second judge module 305, returns to terminal the network resource content that the response message notification terminal asks and do not upgrade; Otherwise, the first connection request received is sent to the server of the Internet resources that provide asked.
Feedback module 304, the Internet resources that also issue for receiving connection request that server sends according to the second Executive Module 306, be transmitted to terminal.
Above-mentioned network resource accession control device, also comprise: update module 307, update time and/or the valid expiration date of the descriptor of these Internet resources that upgrade local cache for update time of the Internet resources of asking that send according to server and/or valid expiration date.
Above-mentioned network resource accession control device can also can concentrate on the modules shown in Fig. 7 and Fig. 8 in same device as shown in above-mentioned Fig. 7 and Fig. 8 simultaneously, jointly is arranged in same gateway.Whether this gateway both can select the Internet resources of oneself carrying out terminal buffers effectively to judge, also can select to complete this arbitration functions by server.
The above-mentioned network resource access control method that the embodiment of the present invention provides, system and device, judge that by gateway whether terminal is the Internet resources of asking first after reaching the standard grade, in terminal, not while asking first asked Internet resources, by gateway, amended connection request is transmitted to server, server can directly issue Internet resources, to guarantee that terminal can be correct when inner buffer information is destroyed, get timely asked Internet resources, avoided terminal frequently to send connection request, alleviated the load of the network equipment, Internet resources have been saved.
When gateway is judged after terminal is to reach the standard grade the Internet resources of asking first, connection request can be transmitted to server process, also can first be judged according to the descriptor of this Internet resources of local cache, notification terminal when effective, be transmitted to server process again when judging when invalid.Thereby make gateway needn't possess the Internet resources caching function, only record the descriptor of each Internet resources, just can further reduce the connection request to server.
The above; it is only preferably embodiment of the present invention; but protection scope of the present invention is not limited to this; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily, replace or be applied to other similar devices, within all protection scope of the present invention should being encompassed in.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (14)

1. a network resource access control method, is characterized in that, comprising:
The first connection request that the gateway receiving terminal sends;
Carry buffer memory identification information and described terminal be not in judging described the first connection request while asking first Internet resources that described the first connection request asks after this is reached the standard grade, described gateway sends the second connection request of removing after described buffer memory identification information to the server that described Internet resources are provided; And
Receive the Internet resources that described server issues according to described the second connection request, and be transmitted to described terminal.
2. the method for claim 1, is characterized in that, also comprises:
When determining described terminal, be that while asking first Internet resources that described the first connection request asks after this is reached the standard grade, gateway sends to described server by described the first connection request; And
By described server judge that the Internet resources of described terminal buffers return when effective, characterize the response message that the network resource content of asking do not upgrade and be transmitted to terminal, or described server is judged to the Internet resources of asking that the Internet resources of described terminal buffers issue when invalid are transmitted to described terminal; Wherein said server, according to the descriptor of described the first connection request and these Internet resources, judges that whether the Internet resources of described terminal buffers are effective.
3. method as claimed in claim 2, is characterized in that, gateway sends to described the first connection request before described server and also comprises: the related cache information that records the Internet resources that described terminal asks; And
Determine the Internet resources of described terminal institute buffer memory when invalid, the described cache information of described gateway deletion record when knowing described server.
4. method as claimed in claim 2 or claim 3, it is characterized in that, described server is according to update time and/or the valid expiration date of the Internet resources of asking that carry in described the first connection request, compare with update time and/or valid expiration date in described descriptor, determine that whether the Internet resources of described terminal buffers are effective.
5. the method for claim 1, is characterized in that, also comprises:
When determining described terminal, be while asking first the corresponding Internet resources of described the first connection request after this is reached the standard grade, described gateway, according to the descriptor of these Internet resources of buffer memory on described the first connection request and gateway, judges that whether the Internet resources of described terminal buffers are effective;
When the Internet resources of the described terminal buffers of judgement when effective, return to described terminal the network resource content that response message notifies described terminal to ask and do not upgrade.
6. method as claimed in claim 5, it is characterized in that, described gateway is according to update time and/or the valid expiration date of the Internet resources of asking that carry in described the first connection request, with update time in the described descriptor of local cache and/or valid expiration date relatively, determine that whether the Internet resources of described terminal buffers effective.
7. method as described as claim 5 or 6, is characterized in that, also comprises:
Update time and/or valid expiration date in the descriptor of these Internet resources of the update time of the described Internet resources that described gateway sends according to described server and/or valid expiration date renewal local cache.
8. a network resource visit control system, is characterized in that, comprising: terminal, gateway and the server of Internet resources is provided;
Described gateway, the first connection request sent for receiving described terminal; Carry buffer memory identification information and described terminal be not in judging described the first connection request while asking first Internet resources that described the first connection request asks after this is reached the standard grade, send the second connection request of removing after described buffer memory identification information to the described server that described Internet resources are provided; And receive the Internet resources that described server issues according to described the second connection request, and be transmitted to described terminal;
Described server, issue Internet resources to described terminal for the second connection request according to after the described buffer memory identification information of removal;
Described terminal, for sending Internet resources the first connection request, and receive the Internet resources that described server issues.
9. system as claimed in claim 8, is characterized in that, described gateway, also for being, while asking first Internet resources that described the first connection request asks after this is reached the standard grade, described the first connection request to be sent to described server when determining described terminal; And forward described server judge that the Internet resources of described terminal buffers return when effective, characterize response message that the network resource content of asking do not upgrade to terminal, or described server is judged to the Internet resources of asking that the Internet resources of described terminal buffers issue when invalid are transmitted to described terminal;
Described server, also, for the descriptor according to described the first connection request and these Internet resources, judge that whether the Internet resources of described terminal buffers are effective; If return to described response message to described gateway; Otherwise, issue asked Internet resources to described gateway.
10. system as claimed in claim 8, it is characterized in that, described gateway, also for: when determining described terminal, be while asking first Internet resources that described the first connection request asks after this is reached the standard grade, descriptor according to this Internet resources of described the first connection request and local cache, judge that whether the Internet resources of described terminal buffers are effective;
When the Internet resources of the described terminal buffers of judgement when effective, return to described terminal the network resource content that response message notifies described terminal to ask and do not upgrade; Otherwise, described the first connection request is sent to described server; And receive the Internet resources that described server issues according to the first connection request, and be transmitted to described terminal;
Described server, also for issuing Internet resources to described terminal after the connection request that receives described gateway forwards.
11. a network resource accession control device, is characterized in that, comprising:
Receiver module, the first connection request sent for receiving terminal;
Whether the first judge module, carry the buffer memory identification information for judging described the first connection request, and judge whether described terminal is to ask first the Internet resources of asking in described the first connection request after this is reached the standard grade;
The first Executive Module, carry buffer memory identification information and described terminal while not being the Internet resources of asking first after this is reached the standard grade to ask in described the first connection request for judge described the first connection request when described the first judge module, send the second connection request after the described buffer memory identification information of removal to the server that described Internet resources are provided;
Feedback module, the Internet resources that issue according to the second connection request after the described buffer memory identification information of removal for receiving described server, and be transmitted to described terminal.
12. device as claimed in claim 11, is characterized in that, also comprises:
The second Executive Module is, while asking first Internet resources that described the first connection request asks after this is reached the standard grade, described the first connection request to be sent to described server for determine described terminal when described the first judge module;
Described feedback module, the response message returned when also effective for the Internet resources that described server judged to described terminal buffers is transmitted to terminal, and the network resource content of notifying described terminal to ask does not upgrade; Or described server is judged to the Internet resources of asking that the Internet resources of described terminal buffers issue when invalid are transmitted to described terminal; Wherein said server, according to the descriptor of described the first connection request and these Internet resources, judges that whether the Internet resources of described terminal buffers are effective.
13. device as claimed in claim 12, is characterized in that, also comprises:
Logging modle, for recording the related cache information of the Internet resources that described terminal asks; And when knowing that described server determines the Internet resources of described terminal institute buffer memory when invalid, the described cache information of deletion record.
14. device as claimed in claim 11, is characterized in that, also comprises:
The second judge module, be used for: determining described terminal when described the first judge module is while asking first Internet resources that described the first connection request asks after this is reached the standard grade, descriptor according to this Internet resources of described the first connection request and local cache, judge that whether the Internet resources of described terminal buffers are effective;
The second Executive Module, when the Internet resources of judging described terminal buffers for described the second judge module are effective, return to described terminal the network resource content that response message notifies described terminal to ask and do not upgrade; Otherwise, described the first connection request is sent to described server;
Described feedback module, the Internet resources that also issue for receiving connection request that described server sends according to described the second Executive Module, be transmitted to described terminal.
CN2010101256784A 2010-03-15 2010-03-15 Network resource access control method, system and device Expired - Fee Related CN102196506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101256784A CN102196506B (en) 2010-03-15 2010-03-15 Network resource access control method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101256784A CN102196506B (en) 2010-03-15 2010-03-15 Network resource access control method, system and device

Publications (2)

Publication Number Publication Date
CN102196506A CN102196506A (en) 2011-09-21
CN102196506B true CN102196506B (en) 2013-12-04

Family

ID=44603723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101256784A Expired - Fee Related CN102196506B (en) 2010-03-15 2010-03-15 Network resource access control method, system and device

Country Status (1)

Country Link
CN (1) CN102196506B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013078597A1 (en) * 2011-11-28 2013-06-06 华为技术有限公司 Method, device and system for determining user request
CN108370372B (en) * 2016-02-22 2021-07-09 华为技术有限公司 Data packet transmission method, network side equipment and user equipment
CN106453117A (en) * 2016-11-10 2017-02-22 珠海市魅族科技有限公司 Method and device for processing network resources
CN109964493B (en) * 2017-10-23 2022-05-03 深圳市欢太科技有限公司 Network connection detection method, device, terminal and computer storage medium
CN109947081B (en) * 2019-03-25 2020-12-01 钛马信息网络技术有限公司 Internet vehicle control method and device
CN110839034B (en) * 2019-11-15 2022-05-13 腾讯科技(深圳)有限公司 Communication connection control method and related equipment
CN111190709B (en) * 2019-11-19 2024-04-12 泰康保险集团股份有限公司 Method and device for processing request, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006260A (en) * 1997-06-03 1999-12-21 Keynote Systems, Inc. Method and apparatus for evalutating service to a user over the internet
WO2006026193A2 (en) * 2004-08-25 2006-03-09 Qurio Holdings, Inc. Proxy caching in a photosharing peer-to-peer network to improve guest image viewing performance
CN101178736A (en) * 2007-12-11 2008-05-14 腾讯科技(深圳)有限公司 Web page collecting method and web page collecting server
CN101193113A (en) * 2006-11-29 2008-06-04 国际商业机器公司 Content response and content request method and content responder and content requester
CN101212446A (en) * 2006-12-29 2008-07-02 朗迅科技公司 Mobile multimedia content sharing application system
WO2008112770A2 (en) * 2007-03-12 2008-09-18 Citrix Systems, Inc. Systems and methods for cache operations
CN101572707A (en) * 2009-05-31 2009-11-04 成都市华为赛门铁克科技有限公司 Method, apparatus and system for validating certificate state

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730154B2 (en) * 2001-12-19 2010-06-01 International Business Machines Corporation Method and system for fragment linking and fragment caching
JP4215710B2 (en) * 2004-12-13 2009-01-28 インターナショナル・ビジネス・マシーンズ・コーポレーション Data transmission method to client and update data execution control method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6006260A (en) * 1997-06-03 1999-12-21 Keynote Systems, Inc. Method and apparatus for evalutating service to a user over the internet
WO2006026193A2 (en) * 2004-08-25 2006-03-09 Qurio Holdings, Inc. Proxy caching in a photosharing peer-to-peer network to improve guest image viewing performance
CN101193113A (en) * 2006-11-29 2008-06-04 国际商业机器公司 Content response and content request method and content responder and content requester
CN101212446A (en) * 2006-12-29 2008-07-02 朗迅科技公司 Mobile multimedia content sharing application system
WO2008112770A2 (en) * 2007-03-12 2008-09-18 Citrix Systems, Inc. Systems and methods for cache operations
CN101178736A (en) * 2007-12-11 2008-05-14 腾讯科技(深圳)有限公司 Web page collecting method and web page collecting server
CN101572707A (en) * 2009-05-31 2009-11-04 成都市华为赛门铁克科技有限公司 Method, apparatus and system for validating certificate state

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
D.Wessels等.RFC2187.《RFC2187》.1997, *
J.Mogul等.RFC3229.《RFC3229》.2002, *
R.Fielding等.RFC2616.《RFC2616》.1999, *

Also Published As

Publication number Publication date
CN102196506A (en) 2011-09-21

Similar Documents

Publication Publication Date Title
CN102196506B (en) Network resource access control method, system and device
US6912562B1 (en) Cache invalidation technique with spurious resource change indications
EP1921871B1 (en) A method and download agent for downloading in parallel
US5948066A (en) System and method for delivery of information over narrow-band communications links
US6292835B1 (en) Network bandwidth and object obsolescence sensitive scheduling method and apparatus for objects distributed broadcasting
CN101841577B (en) Method and device for implementing domain name resolution agent function
US10645062B2 (en) System and method for improving proxy server performance using local domain name system (DNS) cache and connectivity monitoring
US20100174861A1 (en) System And Method For Refreshing Cached Data Based On Content Update Frequency
CN107154963B (en) Request processing method and device and electronic equipment
CN101147380B (en) Method and apparatus for efficiently expanding a P2P network
US20150350373A1 (en) Method for Router to Process Web Page Data, and Router
KR20020040794A (en) Distributed cache for a wireless communication system
US20100115346A1 (en) Method for processing content and terminal thereof
CN112650606B (en) Message processing method, device, system, electronic equipment and storage medium
US20120124175A1 (en) Atom-based really simple syndication (rss) content reader system and method, and atom-based rss content providing system and method
US20200106852A1 (en) Cache data control method and device
CN104125559A (en) Data transmission method, device and system
CN104469394A (en) Video resource acquiring method, background server, video client and system
US7925934B2 (en) Information providing system, information providing device, appropriateness judgment information generation method and appropriateness judgment information generation process program
CN110311975B (en) Data request processing method and device
CN106899689B (en) Information pre-issuing method and server
CN106411978B (en) Resource caching method and device
US20090182704A1 (en) Determining data feed usage
CN112069386B (en) Request processing method, device, system, terminal and server
CN108337280B (en) Resource updating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131204

CF01 Termination of patent right due to non-payment of annual fee