CN102835075A - Method and apparatus for accessing resources - Google Patents
Method and apparatus for accessing resources Download PDFInfo
- Publication number
- CN102835075A CN102835075A CN2011800003485A CN201180000348A CN102835075A CN 102835075 A CN102835075 A CN 102835075A CN 2011800003485 A CN2011800003485 A CN 2011800003485A CN 201180000348 A CN201180000348 A CN 201180000348A CN 102835075 A CN102835075 A CN 102835075A
- Authority
- CN
- China
- Prior art keywords
- address
- resource
- server
- tcp
- response message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
Abstract
The present invention discloses a method and an apparatus for accessing resources. The method includes: obtaining the IP address of the server corresponding to the resources (S110); according to the IP address, establishing a TCP connection with the server, so as to obtain the resources from the server through the TCP connection after receiving the resource request message, sent from a terminal, for requesting the resources (S120).; The apparatus includes an obtaining module and a connection module, wherein the obtaining module is used for obtaining the IP address of the server corresponding to the resources, and the connection module is used for establishing a TCP connection with the server according to the IP address, so as to obtain the resources from the server through the TCP connection after receiving the resource request message, sent from a terminal, for requesting the resources. The method and apparatus of the present invention, establish the TCP connection with the server in advance, before the terminal requests the resources and after the IP address of the server corresponding to the resources is obtained, thus decreasing the network delay and enhancing the user experience.
Description
Method and apparatus for accessing resource
Background technology
With the increasingly deficiency of enriching constantly for Network, and the network bandwidth and capacity, increasing gateway device deploys webpage Slow and deposited (i.e. Web Cache).Due to Web Cache generally existing, most client can obtain asked content from the Web Cache of gateway device, so as to reduce the access to public network, the network bandwidth be saved, while can strengthen Consumer's Experience.
Most Web Cache are all based on HTTP in existing network(HyperText Transfer Protocol, cylinder is referred to as " HTTP ") agency realizes, including Web Cache are realized based on HTTP Transparent Proxies and Web Cache are realized based on the nontransparent agencies of HTTP.Because HTTP Transparent Proxies have the advantages that without client configuration, transparent to user, thus based on HTTP Transparent Proxies realize that Web Cache are more and more universal.
But for realizing Web Cache scheme in correlation technique by HTTP Transparent Proxy modes, http proxy server is after the HTTP request that client is sent is received, if not finding the resource of client request, then now http proxy server just starts to set up with Web Server and is connected.Due to setting up transmission control protocol (Transmission Control Protocol, cylinder is referred to as " TCP ") connection is one than relatively time-consuming process, therefore there is larger network delay to the HTTP request of client in correlation technique, Consumer's Experience is not good enough.The content of the invention
For this, the embodiments of the invention provide a kind of method and apparatus for accessing resource, by agent apparatus after the IP address of acquisition server corresponding with resource, and before the terminal-pair resource makes requests on, TCP is set up with server in advance to be connected, so as to reduce network delay, strengthen Consumer's Experience.
On the one hand, the embodiments of the invention provide a kind of method for accessing resource, this method includes the IP address for obtaining server corresponding with the resource;TCP is set up according to the IP address with the server to be connected, in order to after the resource request message for making requests on the resource of terminal transmission is received, pass through
The TCP connections obtain the resource from the server.
On the other hand, the embodiments of the invention provide a kind of device for being used to access resource, the device includes acquisition module and link block, and the acquisition module is used for the IP address for obtaining server corresponding with the resource;The link block is connected for setting up TCP with the server according to the IP address, in order to which after the resource request message made requests on to the resource of terminal transmission is received, the resource is obtained from the server by the TCP connections.
Based on above-mentioned technical proposal, the method and apparatus for accessing resource of the embodiment of the present invention, by agent apparatus after the IP address of acquisition server corresponding with resource, and before the terminal-pair resource makes requests on, TCP is set up with server in advance to be connected, so as to reduce network delay, strengthen Consumer's Experience.Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, cylinder will be made to the required accompanying drawing used in the embodiment of the present invention below singly to introduce, apparently, drawings described below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram for being used to access the method for resource according to embodiments of the present invention.
Fig. 2 is the schematic diagram according to another embodiment of the present invention for being used to access the method for resource.
Fig. 3 is the schematic diagram of the method according to embodiments of the present invention that resource is obtained by HTTP request.Fig. 4 is the schematic diagram for being used to access the method for resource according to yet another embodiment of the invention.
Fig. 5 is the schematic diagram of the method according to another embodiment of the present invention that resource is obtained by HTTP request.
Fig. 6 is the schematic diagram for being used to access the device of resource according to embodiments of the present invention.
Fig. 7 A and 7B are the schematic diagrames according to another embodiment of the present invention for being used to access the device of resource.Fig. 8 A and 8B are the schematic diagrames for being used to access the device of resource according to yet another embodiment of the invention.Fig. 9 is the schematic diagram for being used to access the device of resource according to yet another embodiment of the invention.Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making wound
The every other embodiment that the property made is obtained on the premise of working, should all belong to the scope of protection of the invention.Shown in Fig. 1, this method 100 includes:
S 110, obtains the IP address of server corresponding with resource;
S 120, according to the IP address, sets up TCP with the server and is connected, in order to which after the resource request message made requests on to the resource that the agent apparatus receives terminal transmission, the resource is obtained from the server by the TCP connections.
S 110 and S120 can be performed by agent apparatus, the agent apparatus can be Web Cache, can also include Web Cache or equipment entity or functional module with Web Cache functions, it can also be the equipment entity or functional module that business is realized based on agency, such as agent apparatus can be gateway device or http proxy server with Web Cache.The server can also be web page server(That is Web Server).
The resource request message is sent by terminal, for asking the resource to server.Difference based on application scenarios, the resource request message can be the HTTP request based on HTTP, can also be in real time streaming transport protocol(Real Time Streaming Protocol, cylinder is referred to as " RTSP ") RTSP request, can also be the request based on other agreements, the embodiment of the present invention is mainly illustrated by taking the resource request message based on HTTP as an example.It should be understood that in embodiments of the present invention, being illustrated with HTTP request just for the sake of example, any restriction is constituted without tackling the embodiment of the present invention, the embodiment of the present invention also should not necessarily be limited by this.
In Web Cache flow is realized based on HTTP Transparent Proxies, client is first to name server(Domain Name Server, cylinder is referred to as " DNS ") the corresponding Web Server of inquiry IP addresses;Then client initiates TCP connections, http proxy server to Web Server(That is Web Cache) the Web Server that disguise oneself as set up TCP with client and are connected.Then, http proxy server is after the HTTP requests that client is sent are received, according to URL(Uniform I Universal Resource Locator, cylinder is referred to as " URL ") capable lookup is deposited into local Slow.
If http proxy server finds the content that client is asked, corresponding content is directly returned into client;If do not found, http proxy server is searched local with the presence or absence of the connection set up with Web Server according to true Web Server IP address.If locally there is the connection set up with Web Server, http proxy server selects a connection from the connection set up, and the URL of user's request is asked to Web Server.If local be not present the connection set up with Web Server, then the connection of newly-built one of http proxy server and Web server, and to
The URL that Web Server request users are asked.Finally, http proxy server is received after the content of Web Server returns, and the content is returned into client.
Be one due to setting up TCP connections has larger network delay than relatively time-consuming process, therefore in correlation technique to the HTTP request of client, and Consumer's Experience is not good enough.And during the terminal access resource of the embodiment of the present invention, agent apparatus is Yi Dan obtaining after the IP address of server corresponding with the resource, agent apparatus is just set up TCP with the server according to the IP address first and is connected.Therefore set up in terminal and agent apparatus before or while TCP is connected, agent apparatus, which just has begun to set up TCP with server, to be connected, so it is easy to agent apparatus after the resource request message of terminal transmission is received, the resource is just obtained from the server by the TCP connections, so as to reduce network delay, strengthen Consumer's Experience.
The method for accessing resource of the embodiment of the present invention, by agent apparatus after the IP address of acquisition server corresponding with resource, and before the terminal-pair resource makes requests on, set up TCP with server in advance and be connected, so as to reduce network delay, strengthen Consumer's Experience.
Fig. 2 shows the schematic diagram according to another embodiment of the present invention for being used to access the method 200 of resource, and this method 200 can be performed by agent apparatus.As shown in Fig. 2 this method 200 includes:
S210, the TCP that receiving terminal is sent is synchronous(Synchronize, cylinder is referred to as " SYN ") message, the TCP SYN messages, which are used for terminal to server, asks to set up TCP connections, and wherein the TCP SYN messages include the IP address of server corresponding with the resource of request;
S220, according to the TCP SYN messages of reception, obtains the IP address of the server;
S250, sets up TCP with the server according to the IP address and is connected, in order to which after the resource request message made requests on to the resource of terminal transmission is received, the resource is obtained from the server by the TCP connections.
Alternatively, after agent apparatus obtains IP address, and set up in the agent apparatus and server before TCP is connected, this method 200 also includes:
S230, is searched the IP address list locally kept according to the IP address, it is determined that not having the IP address in the IP address list locally preserved;
S240, when not finding the IP address in the IP address list, is further searched the TCP connections between agent apparatus and server, it is determined that the local TCP set up with the server that is not present is connected.For example, agent apparatus is according to source IP (i.e. the IP address of agent apparatus), purpose IP (the i.e. IP address of server)And destination slogan(The port numbers that i.e. server is used), it is determined that the locally TCP connections with the presence or absence of agent apparatus and server.
Alternatively, set up in the agent apparatus and server after TCP is connected, this method 200 also includes:
S260, receives the resource response message responded to the request of the resource of server transmission, the resource response message 7Carry the resource;
S270, preserves the resource, and the IP address list is updated.
The method for accessing resource of the embodiment of the present invention, by agent apparatus after the IP address of acquisition server corresponding with resource, and before the terminal-pair resource makes requests on, set up TCP with server in advance and be connected, so as to reduce network delay, strengthen Consumer's Experience.On the other hand, agent apparatus is by setting up and safeguarding IP address list, and the IP address is searched with the presence or absence of in the IP address list, and local whether there is of lookup is connected with the TCP that server has been set up, so as to reduce the probability for setting up useless connection being likely to result in greatest extent, and thus it is capable of expense and the load of agent apparatus of effective control system.
Exemplified by webpage will be accessed by way of HTTP request by terminal below, the embodiment of the present invention is described.It should be understood that the resource in the embodiment of the present invention is not limited to web page resources, audio resource, video resource, blog resource etc. can also be included.
As shown in figure 3, showing the schematic diagram of the method 300 according to embodiments of the present invention that web page resources are obtained by HTTP request.This method 300 includes:
In S301, terminal sends DNS query to name server by client and asked, and for the IP address to the domain name server query Web Server related to the webpage accessed, wherein DNS query request carries the host name of the Web Server.
In S302, name server returns to the DNS response messages responded to DNS query request to client, and the DNS response messages 7 carry the IP address of the Web server.
In S303, client initiates TCP SYN messages to Web server, begins setting up TCP connections.
In S304, Web Cache are obtained after the TCP SYN messages, obtain Web Server corresponding with the webpage that terminal expectation is accessed IP address, and the Web server that disguises oneself as is set up with client and is connected.
Alternatively, Web Cache are searched the IP address list locally preserved according to the IP address of the Web server, to determine whether the IP address list includes the IP address.If finding the IP address in the IP address list, then show that client requested resource may be deposited in local Slow, therefore delay is set up Web Cache and is connected with Web Server TCP, and flow proceeds to S306.
If not finding the IP address in the IP address list, Web Cache search local whether there is and are connected with the Web Server TCP having built up, if it is present, flow proceeds to S306, otherwise flow proceeds to S305.
In S305, the newly-built TCP with Web Server of Web Cache are connected, that is Web Cache are not it is determined that have the IP address in the IP address list locally preserved, and determine locally in the absence of when being connected with the Web Server TCP set up, be connected with the newly-built TCP of Web Server.
In S306, Web Cache disguise oneself as Web Server to client transmission TCP SYN ACK messages, and the TCP SYN ACK messages are used to confirm TCP SYN messages.
In S307, client sends TCP ACK messages to Web Cache, for showing that completion is set up in the TCP connections between client and Web Cache.Constraint is limited, and for example in embodiments of the present invention, S305 can be carried out before S306 or S307, can also simultaneously be carried out with S306 or S307.
In S308, client sends HTTP request message to Web Server, and just blunt text is equally obtained the HTTP request by Web Cache.
If in S304, determining that IP address is present in the IP address list locally preserved, or determine that locally presence is connected with the Web Server TCP having built up, then after Web Cache obtain the HTTP request, flow proceeds to S309;If in S304, it is determined that there is no the IP address in the IP address lists locally preserved, and determine local in the absence of when being connected with the Web Server TCP set up, then after Web Cache obtain the HTTP request, flow proceeds to S310.
In S309, Web Cache check locally whether have the web page resources that client is asked according to URL, if locally there is the web page resources, then flow proceeds to S313;Otherwise, Web Cache continue to search for local whether there is and are connected with the TCP that Web server has built up, if there is no the TCP connections having built up, then the newly-built TCP with Web Server of Web Cache are connected, and flow proceeds to S310, and if there is the TCP connections having built up, then flow is directly to S310.
In S310, Web Cache send the HTTP request message to Web Server to client and modified, and amended HTTP request message is sent into Web Server by the TCP connections.For example, the source IP address of the HTTP request message is Web Cache by terminal modifications by Web Cache.
In S311, Web Server send http response message to Web Cache, and the HTTP response messages are used for what the amended HTTP request message was responded, the http response message
The web page resources that carrying terminal is asked.
In S312, Web Cache decide whether that carrying out Slow to the web page resources deposits after the http response message is received according to local policy.If the web page resources need Slow to deposit, so Web Cache are while the web page resources are preserved, Web Server IP address is added in the IP address list, or the reference count of the IP address of the Web Server in the IP address list is updated.
The local policy can be the default policy of the strategy that operator configures on Web Cache or the setting of Web Cache manufacturers.For example, local policy configuration can be that a Slow deposits text and picture by operator, Slow does not deposit video;The default policy of Web Cache manufacturers is probably that a Slow deposits static Web page, and Slow does not deposit dynamic page etc..
In S313, Web Cache are created and are carried the HTTP response messages of the web page resources to what client was sent, and the http response message is returned into client.
In S314, client obtain after the web page resources with Web Cache disconnect TCP be connected.In S315, after connection time-out, Web Cache disconnect to be connected with Web Server TCP.Fig. 4 shows the schematic diagram for being used to access the method 400 of resource according to yet another embodiment of the invention, and this method 400 can be performed by agent apparatus.As shown in figure 4, this method 400 includes:
S410, receives the IP address response message responded to the IP address query messages that terminal is sent from name server, and the IP address response message 7 carries the IP address of server corresponding with the resource of terminal expectation access;
S420, the IP address is obtained according to the IP address response message;
S450, sets up TCP with the server according to the IP address and is connected, in order to which after the resource request message made requests on to the resource of terminal transmission is received, the resource is obtained from the server by the TCP connections.
Alternatively, after agent apparatus obtains IP address, and set up in the agent apparatus and server before TCP is connected, this method 400 also includes:
S430, it is determined that not having the IP address in the IP address list locally preserved;
S440, it is determined that the local TCP set up with the server that is not present is connected.
Alternatively, set up in terminal and agent apparatus before TCP is connected, this method 400 also includes:
S460, the IP address response message is sent to the terminal, the IP address response message 7 carries the IP addresses so that the terminal obtains the IP address according to the IP address response message, so as to which terminal can be set up TCP with agent apparatus and be connected to ask resource according to the IP address.
It should be understood that S460 can be carried out after S420, can also simultaneously it be carried out with S420, and
S460 and S430, S440, S450 sequencing do not have any restriction.
Alternatively, set up in the agent apparatus and server after TCP is connected, this method 400 also includes:
S470, receives the resource response message responded to the request of the resource of server transmission, the resource response message 7Carry the resource;
S480, preserves the resource, and the IP address list is updated.
Exemplified by webpage will be accessed by way of HTTP request by terminal below, the embodiment of the present invention is described.
As shown in figure 5, showing the schematic diagram of the method 500 according to another embodiment of the present invention that web page resources are obtained by HTTP request.This method 500 includes:
In S501, terminal by IP address from client to domain name server query Web Server.In S502, name server returns to the DNS response messages responded to the IP address query messages that terminal is sent, DNS response messages carrying Web Server IP address to client.
In S503, Web Cache obtain the DNS response messages, parse the IP address of the Web Server.
Alternatively, Web Cache are searched the IP address list locally preserved according to the IP address, to determine whether the IP address list includes the IP address.If finding the IP address in the IP address list, then show that client requested resource may be deposited in local Slow, therefore delay is set up Web Cache and is connected with Web Server TCP, and flow proceeds to S505.If not finding the IP address in the IP address list, Web Cache search local whether there is and are connected with the Web Server TCP having built up, if it is present, flow proceeds to S505, otherwise flow proceeds to S504.
In S504, the newly-built TCP with Web Server of Web Cache are connected, that is Web Cache are not it is determined that have the IP address in the IP address list locally preserved, and determine locally in the absence of when being connected with the Web Server TCP set up, be connected with the newly-built TCP of Web Server.
In S505, the DNS response messages are transmitted to client by Web Cache, and subsequently setting up TCP with Web Cache in order to client is connected.
In S506, client initiates TCP connections to Web Server, and the Web Server that disguise oneself as of the Web Cache based on Transparent Proxy set up TCP with client and are connected.Constraint is limited, and for example in embodiments of the present invention, S504 can be carried out before S505 or S506,
Can also simultaneously it be carried out with S505 or S506.
In S507, client sends HTTP request message to Web Server, and just blunt text is equally obtained the HTTP request by Web Cache.
If in S503, determining that IP address is present in the IP address list locally preserved, or determine that locally presence is connected with the Web Server TCP having built up, then after Web Cache obtain the HTTP request, flow proceeds to S508;If in S503, it is determined that there is no the IP address in the IP address lists locally preserved, and determine local in the absence of when being connected with the Web Server TCP set up, then after Web Cache obtain the HTTP request, flow proceeds to S509.
In S508, Web Cache check locally whether have the web page resources that client is asked according to URL, if locally there is the web page resources, then flow proceeds to S512;Otherwise, Web Cache continue to search for local whether there is and are connected with the TCP that Web server has built up, if there is no the TCP connections having built up, then the newly-built TCP with Web Server of Web Cache are connected, and flow proceeds to S509, and if there is the TCP connections having built up, then flow is directly to S509.
In S509, Web Cache send the HTTP request message to Web Server to client and modified, and amended HTTP request message is sent into Web Server by the TCP connections.
In S510, Web Server send http response message to Web Cache, and the HTTP response messages are used for what the amended HTTP request message was responded, the web page resources that the http response message bearing terminal is asked.
In S511, Web Cache decide whether that carrying out Slow to the web page resources deposits after the http response message is received according to local policy.If the web page resources need Slow to deposit, so Web Cache are while the web page resources are preserved, Web Server IP address is added in the IP address list, or the reference count of the IP address of the Web Server in the IP address list is updated.
In S512, Web Cache are created and are carried the HTTP response messages of the web page resources to what client was sent, and the http response message is returned into client.
In S513, client obtain after the web page resources with Web Cache disconnect TCP be connected.In S514, after connection time-out, Web Cache disconnect to be connected with Web Server TCP.The method for accessing resource of the embodiment of the present invention, by agent apparatus after the IP address of acquisition server corresponding with resource, and before the terminal-pair resource makes requests on, set up TCP with server in advance and be connected, so as to reduce network delay, strengthen Consumer's Experience.On the other hand, agent apparatus whether there is in IP address row by setting up and safeguarding IP address list, and search the IP address
Table, and search it is local with the presence or absence of being connected with the TCP that server has been set up, so as to reduce the probability for setting up useless connection being likely to result in greatest extent, and thus be capable of expense and the load of agent apparatus of effective control system.Fig. 6 shows the schematic diagram for being used to access the device 600 of resource according to embodiments of the present invention.As shown in fig. 6, the device 600 includes:
Acquisition module 610, the IP address for obtaining server corresponding with the resource;
Link block 620, is connected for setting up TCP with the server according to the IP address, in order to which after the resource request message made requests on to the resource of terminal transmission is received, the resource is obtained from the server by the TCP connections.
The device for being used to access resource of the embodiment of the present invention, by agent apparatus after the IP address of acquisition server corresponding with resource, and before the terminal-pair resource makes requests on, set up TCP with server in advance and be connected, so as to reduce network delay, strengthen Consumer's Experience.
Alternatively, as shown in Figure 7 A, the device 600 also includes:
First receiving module 630, the TCP SYN messages for receiving terminal transmission,
Wherein, the acquisition module 610 is additionally operable to obtain the IP address of server corresponding with the resource according to the TCP SYN messages.
Alternatively, as shown in Figure 8 A, the device 600 also includes:
Second receiving module 640, for receiving the IP address response message responded to the IP address query messages that the terminal is sent from name server, the IP address response message 7 carries the IP address of server corresponding with the resource,
Wherein, the acquisition module 610 is additionally operable to obtain the IP address according to the IP address response message.Alternatively, as shown in Figure 8 A, the device 600 also includes:
Sending module 650, for sending the IP address response message to the terminal.
Alternatively, as shown in figures 7 b and 8 b., the device 600 also includes:
First determining module 660, for being set up in the link block 620 and the server before TCP is connected, it is determined that not having the IP address in the IP address list locally preserved;
Second determining module 670, for being set up in the link block 620 and the server before TCP is connected, it is determined that the local TCP set up with the server that is not present is connected.
Alternatively, as shown in figure 9, the device 600 also includes:
3rd receiving module 680, the resource response message for receiving server transmission, resource is rung
Message ^^ is answered to carry the resource;
Update module 690, is updated for preserving the resource, and to the IP address list.
It should be understood that, the agent apparatus that device 600 according to embodiments of the present invention can correspond in method according to embodiments of the present invention, and above and other operation and/or function of the modules of device 600 is respectively in order to realize the corresponding flow in each method 100,200,300,400 and 500 of Fig. 1 into Fig. 5, in order to which cylinder is clean, it will not be repeated here.
The device for being used to access resource of the embodiment of the present invention, by agent apparatus after the IP address of acquisition server corresponding with resource, and before the terminal-pair resource makes requests on, set up TCP with server in advance and be connected, so as to reduce network delay, strengthen Consumer's Experience.
It should be understood that, the application of the present invention is not limited solely to Web Cache, all business realized based on agency can apply the technical scheme of the present invention, the method such as based on HTTP Proxy, based on RTSP agencies all can be using the present invention, so as to realize the reduction of network delay and the enhancing of Consumer's Experience;In addition, when gateway device and Web Cache are not to be deployed in same equipment, technical scheme, different communication modes simply between gateway device and Web Cache still can be applicable;Additionally, this invention is not limited to mobile network, fixed network and mobile network can also be applied to simultaneously.
Those of ordinary skill in the art can be appreciated that, various method steps and unit with reference to described in the embodiments described herein, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate the interchangeability of hardware and software, the step of generally describing each embodiment according to function in the above description and composition.These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Those of ordinary skill in the art can realize described function to each specific application using distinct methods, but this realization is it is not considered that beyond the scope of this invention.
The method or step described with reference to the embodiments described herein can be implemented with hardware, the software program of computing device, or the combination of the two.Software program can be placed in random access memory(RAM), internal memory, read-only storage(ROM), in electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, any other form of storage medium well known in CD-ROM, or technical field.But the present invention is not limited thereto.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can carry out various equivalent modifications or substitutions to embodiments of the invention, and these modifications or substitutions all should be in the covering scope of the present invention.
Claims (12)
- Claim1st, a kind of method for accessing resource, it is characterised in that including:Obtain the IP address of server corresponding with the resource;Transmission control protocol TCP is set up according to the IP address with the server to be connected, in order to which after the resource request message for making requests on the resource of terminal transmission is received, the resource is obtained from the server by the TCP connections.2nd, according to the method described in claim 1, it is characterised in that methods described also includes:The TCP synchronization SYN messages that the terminal is sent are received,Wherein, the IP address for obtaining server corresponding with the resource, including:According to the TCP SYN messages, the IP address of server corresponding with the resource is obtained.3rd, according to the method described in claim 1, it is characterised in that methods described also includes:Receive what the IP address query messages to terminal transmission from name server were respondedIP address response message, the IP address response message carries the IP addresses of server corresponding with the resource,Wherein, the IP address for obtaining server corresponding with the resource, including:According to the IP address response message, the IP address of server corresponding with the resource is obtained.4th, method according to claim 3, it is characterised in that methods described also includes:The IP address response message is sent to the terminal, to cause the terminal to obtain the IP address according to the IP address response message.5th, method according to any one of claim 1 to 4, it is characterised in that set up according to the IP address and the server before TCP is connected, methods described also includes:It is determined that there is no the IP address in the IP address list locally preserved;It is determined that the local TCP set up with the server that is not present is connected.6th, method according to claim 5, it is characterised in that methods described also includes:State resource response message and carry the resource;The resource is preserved, and the IP address list is updated.7th, a kind of device for being used to access resource, it is characterised in that including:Acquisition module, the IP address for obtaining server corresponding with the resource;Link block, is connected for setting up transmission control protocol TCP with the server according to the IP address, in order to receive terminal transmission the resource request message made requests on to the resource after, The resource is obtained from the server by the TCP connections.8th, device according to claim 7, it is characterised in that described device also includes:First receiving module, for receiving the TCP SYN messages that the terminal is sent,Wherein, the acquisition module is additionally operable to obtain the IP address of server corresponding with the resource according to the TCP SYN messages.9th, device according to claim 7, it is characterised in that described device also includes:Second receiving module, for receiving the IP address response message responded to the IP address query messages that the terminal is sent from name server, the IP address response message 7 carries the IP address of server corresponding with the resource,Wherein, the acquisition module is additionally operable to obtain the IP address according to the IP address response message.10th, device according to claim 9, it is characterised in that described device also includes:Sending module, for sending the IP address response message to the terminal, to cause the terminal just to obtain the IP address according to the IP address response message.11st, the device according to any one of claim 7 to 10, it is characterised in that described device also includes:First determining module, for being set up in the link block and the server before TCP is connected, it is determined that not having the IP address in the IP address list locally preserved;Second determining module, for being set up in the link block and the server before TCP is connected, it is determined that the local TCP set up with the server that is not present is connected.12nd, device according to claim 11, it is characterised in that described device also includes:3rd receiving module, for receiving the resource response message responded to the request of the resource that the server is sent, the resource response message carries the resource;Update module, is updated for preserving the resource, and to the IP address list.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/072689 WO2011100913A2 (en) | 2011-04-12 | 2011-04-12 | Method and apparatus for accessing resources |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102835075A true CN102835075A (en) | 2012-12-19 |
Family
ID=44483383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011800003485A Pending CN102835075A (en) | 2011-04-12 | 2011-04-12 | Method and apparatus for accessing resources |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102835075A (en) |
WO (1) | WO2011100913A2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106537864A (en) * | 2014-10-24 | 2017-03-22 | 华为技术有限公司 | Resource access method and apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1538677A (en) * | 2003-04-14 | 2004-10-20 | 华为技术有限公司 | Method of realizing quick five seven layer exchange |
CN101124736A (en) * | 2004-09-14 | 2008-02-13 | 摩托罗拉公司 | System and method for network-assisted connection in a wireless environment |
CN101287013A (en) * | 2008-05-30 | 2008-10-15 | 杭州华三通信技术有限公司 | Method for updating Webpage and Web proxy device |
-
2011
- 2011-04-12 WO PCT/CN2011/072689 patent/WO2011100913A2/en active Application Filing
- 2011-04-12 CN CN2011800003485A patent/CN102835075A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1538677A (en) * | 2003-04-14 | 2004-10-20 | 华为技术有限公司 | Method of realizing quick five seven layer exchange |
CN101124736A (en) * | 2004-09-14 | 2008-02-13 | 摩托罗拉公司 | System and method for network-assisted connection in a wireless environment |
CN101287013A (en) * | 2008-05-30 | 2008-10-15 | 杭州华三通信技术有限公司 | Method for updating Webpage and Web proxy device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106537864A (en) * | 2014-10-24 | 2017-03-22 | 华为技术有限公司 | Resource access method and apparatus |
CN106537864B (en) * | 2014-10-24 | 2019-11-22 | 华为技术有限公司 | A kind of method and device accessing resource |
US10587531B2 (en) | 2014-10-24 | 2020-03-10 | Huawei Technologies Co., Ltd. | Resources access method and apparatus |
US11082848B2 (en) | 2014-10-24 | 2021-08-03 | Huawei Technologies Co., Ltd. | Resource access method and apparatus |
US11812264B2 (en) | 2014-10-24 | 2023-11-07 | Huawei Cloud Computing Technologies Co., Ltd. | Resource access method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
WO2011100913A2 (en) | 2011-08-25 |
WO2011100913A3 (en) | 2012-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9608957B2 (en) | Request routing using network computing components | |
CN102651861B (en) | Download method for mobile terminal, mobile terminal and proxy download server | |
JP6008467B2 (en) | Session migration on content-centric network | |
CN111314499B (en) | Domain name proxy method, device, equipment and readable storage medium | |
CN104519036B (en) | A kind of method and device for sending business request information | |
US20130204978A1 (en) | Data Sharing Method for Recursive DNS Servers | |
CN103338279A (en) | Optimal sorting method and system based on domain name resolution | |
CN102611763A (en) | DNS (Domain Name Server) inquiring method and equipment | |
CN102780711A (en) | Method, device and system for accessing application data of SNS (Social Network Site) | |
WO2017107795A1 (en) | Method and device for accelerating access to website | |
CN102752411A (en) | Redirection method and device | |
CN102547553B (en) | Method, system and device for accessing service based on wireless application protocol (WAP) | |
CN109067936A (en) | A kind of method and device of domain name mapping | |
CN110830601A (en) | Distributed system NAT (network Address translation) penetration method, device, equipment and storage medium | |
CN102970387A (en) | Domain name resolution method, device and system | |
US20120198079A1 (en) | Parallel transmissions over http connections | |
CN103812868A (en) | Method and system for realizing free Internet access based on IPv4/IPv6 conversion | |
CN102835075A (en) | Method and apparatus for accessing resources | |
WO2022002069A1 (en) | Method for accessing network, media gateway, electronic device, and storage medium | |
CN112866113B (en) | Method, system, computer device and storage medium for ARP proxy in routing packet forwarding | |
CN103973751A (en) | Method for improving resource downloading quality | |
CN107360095A (en) | The implementation method of port forwarding in the router based on client host title | |
JP2014049807A (en) | Communication packet processing device | |
CN207234829U (en) | Low discharge Web page accessing system | |
JP2004266325A5 (en) |
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 |
Application publication date: 20121219 |