Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of method of transfer of data, and HTTP Proxy and system by HTTP Proxy is set, receive the main frame packet that the WEB server sends, and obtain embedded object information; According to the embedded object information of obtaining, structure GET request also sends to the WEB server, receives the also packet of the embedded object of cacheing WEB server transmission; Send the embedded object packet that receives from the WEB server to UE.By the method that the embodiment of the invention provides, HTTP Proxy and system have strengthened the web data transmission performance, have promoted the impression of user's browsing page.
Below in the mode of specific embodiment, the technical scheme that the embodiment of the invention is provided is described in detail.
Embodiment one:
The embodiment of the invention one provides a kind of method of transfer of data, and as shown in Figure 1, this method comprises the steps:
Step 101: receive the main frame packet that the WEB server sends;
Before the main frame packet that receives the transmission of WEB server, can send the GET request of HTTP webpage main frame to the WEB server by UE.Owing to increased HTTP Proxy, the GET request of this main frame can pass through the WEB server by HTTP Proxy.The WEB server will send the main frame packet to UE according to the TCP principle mechanisms after receiving this GET request, and like this, HTTP Proxy just can receive the main frame packet that the WEB server sends to UE.
Step 102: resolve described main frame packet, obtain embedded object information;
HTTP Proxy is resolved the main frame packet, obtains the information of embedded object with this.The embedded object information that described parsing main frame packet obtains comprises the title of embedded object and form etc., and as for embedded object about.GIF, what obtain is this name of about, and its picture format gif etc.
Step 103: according to described embedded object information, the GET request of structure embedded object also sends to the WEB server;
Because HTTP is a kind of agreement of interaction mechanism, after the WEB server all needs to receive the GET request of embedded object, just can issue its corresponding data, so, by initiatively being the GET request of embedded object structure by HTTP Proxy and sending to the WEB server, the GET that can send embedded object in advance asks to the WEB server and obtains the embedded object packet, and then be transmitted to UE, it is long to solve the GET request time that UE that the WEB server receives sends, and causes the problem of bigger propagation time delay.
Step 104: receive the embedded object packet that described WEB server sends;
After the WEB server receives that HTTP Proxy is the GET request of embedded object structure, will issue the packet of embedded object, receive embedded object packet that WEB server send by HTTP Proxy this moment, and can carry out buffer memory to described packet;
Step 105: the embedded object packet that sends described reception to UE;
Method by the embodiment of the invention one, initiatively be the GET request of embedded object structure and send to the WEB server by HTTP Proxy, the GET that can send embedded object in advance asks to the WEB server and obtains the embedded object packet, and then be transmitted to UE, it is long to solve the GET request time that UE that the WEB server receives sends, and causes the problem of bigger propagation time delay.
Embodiment two:
Data transmit-receive mechanism according to TCP, need receive at after the ACK message that sends the object data bag, just can continue to issue data, therefore, in order to guarantee the continuous transmission of embedded object data, HTTP Proxy is after receiving the embedded object packet, can initiatively construct ACK message, send to the WEB server, the WEB server continues to send the embedded object packet to HTTP Proxy after receiving ACK message.
Therefore, in the step 104, HTTP Proxy is initiatively constructed the ACK information and sending and is given the WEB server behind the embedded object packet that receives the transmission of WEB server in front, after the WEB server receives the ACK message of front embedded object packet, continue to send follow-up embedded object packet.
By the method for the embodiment of the invention two, initiatively construct ACK message and send to the WEB server, thereby guaranteed the continuous reception of embedded object packet.Thereby it is long further to have solved the GET request time that UE that the WEB server receives sends, and causes the problem of bigger propagation time delay.
Embodiment three:
For the scheme that makes the embodiment of the invention is clearer, the embodiment of the invention three is in the mode of specific embodiment, HTTP Proxy among the embodiment one sent to UE receive the embedded data bag and be described in detail.
By the description of the step 102 in the previous embodiment one as can be known, the main frame packet that HTTP Proxy is received by parsing, obtain embedded object information, in present embodiment three, after HTTP Proxy obtains embedded object information, this embedded object information can also be sent to UE, also send to HTTP Proxy so that UE, constructs the GET request according to the embedded object information of receiving.HTTP Proxy can also be asked according to the GET that UE sends after receiving the embedded object packet that also the cacheing WEB server sends, and corresponding embedded data bag is sent to UE.With reference to the accompanying drawings 2, concrete steps are as follows:
Step 201: receive the main frame packet that the WEB server sends;
This step is identical substantially with step 101, does not repeat them here.
Step 202: resolve described main frame packet, obtain embedded object information, and described embedded object information is handed down to UE;
The difference of this step and step 102 is, after receiving embedded object information, also needs this embedded object information is handed down to UE, also sends to HTTP Proxy so that UE, constructs the GET request according to embedded object information, obtains the embedded object packet.
Step 203: according to described embedded object information, structure GET request also sends to the WEB server;
This step is identical substantially with step 103, does not repeat them here.
Be understandable that, HTTP Proxy is handed down to embedded object information in UE and this step the GET request of HTTP Proxy structure and sends to the WEB server in the step 202, do not have strict sequential relationship between the two, can be before embedded object information be handed down to UE, afterwards or simultaneously, structure GET request also sends to the WEB server.
Step 204: receive the embedded object packet that described WEB server sends, initiatively construct the ACK information and sending and give the WEB server;
This step is identical substantially with the corresponding description among the embodiment two, does not repeat them here.
Step 205: the GET request according to UE sends sends the embedded object packet that receives to UE;
By abovementioned steps 202 as can be known, UE still can receive embedded object information, therefore, still can send the GET request of embedded object to HTTP Proxy, after HTTP Proxy receives that the GET of the embedded object that UE sends asks, it is tackled, and no longer sends to the WEB server.
For the different editions of http protocol, the downloading mode of packet is slightly different, among the HTTP1.0, is after main frame has been downloaded, and serial is each embedded object structure TCP connection download embedded object again, and the same moment has only a TCP connection.And for HTTP1.1, in the TCP of main frame connection procedure, that can utilize simultaneously that the TCP of this main frame connects serial asks and sends to the WEB server for embedded object structure GET, also can set up a new TCP in addition and connect (being that common HTTP1.1 can set up two parallel TCP connections) download embedded object packet, the TCP connection of main frame is connected all with newly-established TCP can download the embedded object packet, therefore HTTP Proxy also has some differences according to the GET request that UE sends to the mode that UE sends the embedded data bag that receives, and is specific as follows:
For the HTTP1.0 version, HTTP Proxy can be resolved receiving the main frame packet, obtain embedded object information, after having downloaded Deng the main frame packet, by serial for GET request of each embedded object structure and send to the WEB server, each embedded object is all set up a new TCP the connecting and download of serial.Because having only a TCP to connect, synchronization downloads the embedded object packet, so the tcp port number of the GET request of the tcp port number of embedded object packet and UE transmission is consistent.
For the HTTP1.1 version, HTTP Proxy can be resolved receiving the main frame packet, obtain embedded object information, simultaneously in the TCP of main frame connection procedure, that can utilize simultaneously that the TCP of this main frame connects serial asks and sends to the WEB server for each embedded object structure GET, also can set up a new TCP in addition and connect (being that common HTTP1.1 can set up two parallel TCP connections) download embedded object packet, the TCP connection of main frame is connected all with newly-established TCP can download the embedded object packet.
Situation for HTTP1.1, owing to exist two parallel TCP to connect the embedded object information of downloading simultaneously simultaneously, therefore may there be the inconsistent situation of tcp port number in the GET request that sends of the embedded object packet that obtains of HTTP Proxy and UE, if port numbers is inconsistent, can cause UE can not receive corresponding embedded object packet, for this situation, HTTP Proxy can be handled accordingly, concrete: the parsing in the TCP packet header that the GET that HTTP Proxy passes through that UE is sent asks, obtain the tcp port number of this GET request, when the tcp port number that the GET that sends at the tcp port number and the UE of embedded object packet asks is inconsistent, HTTP Proxy changes to the tcp port number of the GET request package that UE sends over the tcp port number of embedded object packet, and then the embedded object bag of correspondence is handed down to UE; If the tcp port number of aforementioned embedded object packet is consistent with the tcp port number of the GET request that UE sends, then direct embedded object packet with correspondence is handed down to UE.
Method by the embodiment of the invention three, the embedded object information that parsing is obtained is handed down to UE, initiatively ask and send to the WEB server by HTTP Proxy for each embedded object structure GET, and at the embedded data object data bag that receives, initiatively construct ACK message and send to the WEB server, the GET request that sends according to UE then, send the embedded object packet that receives to UE, guaranteed the continuity that the embedded object packet receives, the GET request time that the UE that solution WEB server is received sends is long, causes the problem of bigger propagation time delay.
Embodiment four:
The method of the embodiment of the invention four, the description among preceding step and the embodiment three in the step 201,202,203,204 is identical substantially, and difference is, when present embodiment sends the embedded object packet of receiving to UE, can issue according to the receiving ability of UE.
Concrete: UE according to TCP mechanism, can return ACK message after receiving the embedded object packet, HTTP Proxy no longer mails to the WEB server with this ACK message block at this moment; In addition, HTTP Proxy can be received window size according to the UE side joint that carry in the TCP ACK packet header that UE returns, and obtains the receiving ability information of UE.
Under the normal condition, receiving terminal UE generally sends ACK message under following two kinds of situations: 1, UE receives two packets; 2, UE receives a packet, and (normally 200ms) also do not receive other packet after certain hour.Aforesaid way is not considered the size of UE receiving ability.And in the embodiment of the invention four, HTTP Proxy can be according to the receiving ability of UE, when the UE receive window is very big, the a plurality of packets of disposable transmission (can greater than 2) are given UE, thereby do not need UE could continue to receive data after just returning ACK message after being less than or equal to 2 packets receiving at every turn, by this method, can save several round-trip delays.
Illustrate as follows: suppose that embedded object has 5 packets, according to the TCP principle mechanisms, the WEB server has just begun to send out 2 packets, UE receives the TCPACK that sends out these 2 packets behind these 2 packets, after the WEB server is received TCP ACK, calculate according to the TCP principle mechanisms, can send out 3 packets and go down, so just need two round-trip delays.And according to the embodiment of the invention, because HTTP Proxy can initiatively be constructed TCP ACK, 5 packets of embedded object all can send to the HTTP Proxy place in advance, after receiving the GET request that UE comes, judge under the situation of UE receiving ability permission, the disposable UE that issues of these 5 packets so just only can be needed a round-trip delay.
Embodiment of the invention four-way is crossed according to the UE ability and is issued data to UE, can be when the UE ability be permitted, and a plurality of packets of disposable transmission are to UE, thereby have improved data transmission efficiency, have reduced propagation delay time.
Embodiment five:
The embodiment of the invention five provides a kind of HTTP Proxy, and as shown in Figure 3, described HTTP Proxy comprises:
Resolution unit 301 is used to receive and resolve the main frame packet that the WEB server sends, and obtains embedded object information;
Request structural unit 302 is used for the embedded object information according to resolution unit 301 acquisitions, and GET asks and send to the WEB server for the embedded object structure;
Embedded object acquiring unit 303 is used to receive the embedded object packet that the WEB server sends; For the embedded object packet that receives, can carry out buffer memory;
Data forwarding unit 304 is used for the embedded object packet that described embedded object acquiring unit 303 receives is transmitted to user equipment (UE);
In addition, described HTTP Proxy can also comprise:
Acknowledge message structural unit 305 is used for after described embedded object acquiring unit 303 receives the embedded object packet, and structure ACK information and sending is given the WEB server;
Embedded object information issues unit 306, is used for the embedded object information that described resolution unit obtains is handed down to UE; When HTTP Proxy comprises embedded object information and issues unit 306, because after UE receives embedded object information, can send the GET request to HTTP Proxy, this moment, described data forwarding unit 304 sent to UE the GET request interception of http server, no longer mail to the WEB server, and the GET that sends over according to UE request, the embedded data object data bag of correspondence is handed down to UE according to the ability of UE.And data forwarding unit 304 generally is that ability sends to UE with the embedded object packet of the correspondence of buffer memory after the GET of UE request arrives HTTP Proxy.
Acknowledge message interception unit 307 is used for UE is sent to the ACK message block of WEB server, does not re-send to the WEB server;
UE ability acquiring unit 308 is used for the UE receiving ability parameter information of the ACK message returned according to UE, the UE receiving ability is reported to data forwarding unit 304, thereby data forwarding unit 304 can issue data according to the receiving ability of UE.
Described HTTP Proxy logically is positioned at transmission control protocol (TCP, Transmit ControlProtocol) on the agency, because the tcp port number that http protocol takies is 80 or 8080, can learn by the function of TCP proxy resolution packet whether data packets for transmission is the packet of http protocol; Because the TCP agency goes for the diverse location in the network, as is deployed in the Internet, in the wireless core network, perhaps, therefore, corresponding in the wireless access network side, described HTTP Proxy also can be deployed in the Internet accordingly, wireless core network or wireless access network position.HTTP Proxy can be deployed in network node as described, in radio network controller (RNC).
By the HTTP Proxy that provides in the embodiment of the invention five, solved GET request time that UE directly sends for the WEB server when long, the problem that efficiency of transmission is low, thus promoted the web data transmission performance, promoted the impression of user's browsing page.
Embodiment six:
The embodiment of the invention six provides a kind of system of transfer of data, and as shown in Figure 4, described system comprises WEB server 401, and HTTP Proxy 402, user equipment (UE) 403, described HTTP Proxy 402 generally are positioned on the TCP agency 400.Described UE403 sends webpage main frame GET request to WEB server 401, after WEB server 401 is received the GET request of UE403, by HTTP Proxy 402, send packet according to the TCP principle mechanisms to UE, described HTTP Proxy 402 receives and transmits the web data that WEB server 401 sends to UE403.The concrete function of described HTTP Proxy 402 is realized being described in detail in the aforementioned embodiment, does not repeat them here.
The system that the embodiment of the invention six provides is by being provided with HTTP Proxy between WEB server and UE, receive and transmit the web data that the WEB server sends to UE, solved GET request time that UE directly sends for the WEB server when long, the problem that efficiency of transmission is low, thereby promoted the web data transmission performance, promoted the impression of user's browsing page.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises the steps: when carrying out
Receive the main frame packet that the WEB server sends;
Resolve described main frame packet, obtain embedded object information;
According to described embedded object information, structure embedded object GET asks, and described GET request is sent to described WEB server;
Receive the embedded object packet that described WEB server sends;
Send the embedded object packet of described reception to UE.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.