CN105491083B - More WAN mouthfuls of gateways realize the method and system that HTTP is downloaded - Google Patents
More WAN mouthfuls of gateways realize the method and system that HTTP is downloaded Download PDFInfo
- Publication number
- CN105491083B CN105491083B CN201410471943.2A CN201410471943A CN105491083B CN 105491083 B CN105491083 B CN 105491083B CN 201410471943 A CN201410471943 A CN 201410471943A CN 105491083 B CN105491083 B CN 105491083B
- Authority
- CN
- China
- Prior art keywords
- http
- request
- packet
- gateway
- packets
- 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.)
- Active
Links
Abstract
The present invention discloses a kind of more WAN mouthfuls of gateway, realizes the method and system that HTTP is downloaded, and wherein this method includes:The gateway records the Content Length fields and TCP head for the response data packets that the content that the HTTP GET request packets request that Intranet PC is sent is downloaded and external network server are sent;The gateway generates RESET data packets and generates n HTTP GET requests packet and be sent to external network server, and the intersection of n HTTP GET request packet is identical as the content that former request is downloaded;The gateway receives downloading data packet and changes downloading data packet;Modified downloading data packet is sent to Intranet PC.The present invention compensates for the deficiency that HTTP in the prior art downloads the maximum speed of download for being limited to single WAN mouthfuls, substantially increases the speed and bandwidth resources utilization rate of HTTP downloads.
Description
Technical field
The present invention relates to a kind of more WAN mouthfuls of gateways and more WAN mouthfuls of gateways to realize the method and system that HTTP is downloaded.
Background technology
There are WAN mouthfuls more (Wide Area Network interface) gateways physically multiple WAN mouthfuls to be accessed as outer net, and Intranet PC (is calculated
Machine) multiple WAN mouthfuls can be passed through simultaneously using multiple outer net line attachments, network bandwidth greatly improved.
Many download tools all use more sessions and download to make full use of the WAN mouths of more WAN mouthfuls of gateways now
Form is downloaded, i.e. Intranet PC is simultaneously emitted by a plurality of download request, these download requests are assigned to different by more WAN mouthfuls of gateways
WAN mouthfuls are downloaded, and then realize network bandwidth superposition, improve speed of download.But HTTP (hypertext transfer protocol) is downloaded
That single session is downloaded, on existing more WAN mouthfuls of gateways a session can only be sent to external network server by one WAN mouthfuls,
The data that request is downloaded are received by the WAN sent again, speed of download maximum is only this WAN mouthfuls of maximum speed of download,
Other WAN mouthfuls of wastings of resources are caused in this way, cannot achieve bandwidth superposition.
Invention content
The present invention solve can only be showed in the prior art by a WAN cause for gossip HTTP download, speed of download be limited to WAN
Mouthful maximum speed of download defect, provide a kind of can show high speed HTTP download by multiple WAN causes for gossip more WAN mouthfuls
Gateway realizes the method and system that HTTP is downloaded.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A kind of method that more WAN mouthfuls of gateway realizes HTTP downloads, its main feature is that, this method includes:
An a kind of HTTP GET requests packet (data packet meeting http protocol) of Intranet PC is sent to outer by S1, the gateway
Network server, and record content, TCP head (header of transmission control protocol) that HTTP GET request packets request is downloaded
And IP head (header of the agreement interconnected between network), TCP head include the fields such as seq, ack, IP head include interior
Net the IP etc. of the IP and external network server of PC;
S2, the gateway is sent to the one of external network server in response to the response data packets of the HTTP GET request packets
Intranet PC, and record the response data packets (a kind of data packet meeting http protocol) Content-Length fields and
TCP head;
S3, the gateway generate a RESET data packets, and the RESET data packets are sent to external network server;
S4, the gateway is according to S1In HTTP GET request packets request download content, Content-Length fields and should
The quantity of the WAN mouths of gateway, generates n HTTP GET request packet, and each HTTP GET requests packet of generation respectively includes one
Range fields, the sum of the content that the request of all Range fields characterization is downloaded are equal to S1In HTTP GET request packets request
The content and n of download are the integer more than or equal to 2;
S5, the gateway is by S4The HTTP GET requests packet of middle generation is sent to external network server by least two WAN mouthfuls;
S6, the gateway pass through S5The middle WAN mouths for sending HTTP GET request packets receive the download number sent by external network server
According to packet, the downloading data packet is in response to S4The HTTP GET requests packet of middle generation and include actual download data;
S7, according to S1IP head and the TCP head and S of record2The TCP head of record, gateway modification receive
The source IP of the IP head of the downloading data packet received, is especially revised as by IP head and the TCP head of downloading data packet
The IP of the destination interface of the IP head of downloading data packet is revised as the IP of Intranet PC, by downloading data by the IP of external network server
The seq fields of the TCP head of packet and ack fields are modified as and S2The seq fields and ack fields of the TCP head of record is continuous,
And the checksum fields of the checksum fields and IP head of the TCP head of modification downloading data packet;
S8, the gateway modified downloading data packet is sent to Intranet PC.
The technical program is not under the premise of changing the network data exchange between Intranet PC and external network server, by this
Gateway generates multiple HTTP GET requests packets according to the HTTP GET request packets that original Intranet PC is sent, by different WAN mouths
The HTTP GET request packets for distributing gateway generation are realized through multiple WAN mouthfuls progress HTTP downloads, are taken full advantage of more
WAN mouthfuls of gateway is capable of the advantage of Parallel download, improves the speed of download.
Preferably, n is greater than or equal to WAN mouthfuls of quantity;
S4In n HTTP GET request packet of generation be:It is equal to or less than the quantity of the WAN mouths of the gateway by batch generation
HTTP GET request packets, until the content that the request of the Range fields characterization of all HTTP GET request packets of generation is downloaded
The sum of be equal to S1In the content downloaded of HTTP GET request packets request, and with a batch of HTTP GET requests packet in S5In point
External network server is not sent to by different WAN mouths, in this S4In, the quantity for the HTTP GET request packets that each batch generates
Not necessarily identical, if the gateway has 5 WAN mouthfuls, the quantity for the HTTP GET request packets that first batch generates is 5, because often
The deadline of a WAN mouthfuls of reception downloading data packet is different, so the quantity for the HTTP GET request packets that subsequent batch generates
May be 4 or 3 or 2 or 1, the value of n is not preset in the technical scheme, but indicates all HTTP generated
The summation of GET request packet, the control and regulation such as size, WAN mouthfuls downloading rate of resource which downloads according to request generate
The quantity of HTTP GET request packets;
S4In n HTTP GET requests packet of generation or be:Disposably generate n HTTP GET request packet, and S5In it is each
WAN mouthfuls at least send a S4The HTTP GET requests packet of middle generation is to external network server, and the gateway is given birth in the technical scheme
At all HTTP GET request packets be that any one HTTP GET request packet is sent to the previous of external network server wherein
Generation is played, the value of n is calculated according to the size of resource, WAN mouthfuls of the downloading rate etc. of request download.
In the technical scheme, it is obtained for and makes full use of for each WAN mouthfuls, n HTTP GET request packet is distributed to not
Meet load balancing principle with WAN mouthfuls of transmissions.
Preferably, in S4In the gateway by S1In HTTP GET request packets request download content according to each WAN mouthfuls
Bandwidth direct proportion is assigned to each Range fields.This is because each WAN mouthfuls of bandwidth may be different, so each WAN mouthfuls of hairs
The Range words of the HTTP GET request packets sent should be adapted to WAN mouthfuls of bandwidth, and best allocation plan is exactly to roomy
The relatively more download content of WAN mouthfuls of distribution distributes relatively little of download content to the small WAN mouths of bandwidth, in this way could abundant profit
With each WAN mouthfuls of bandwidth.
Preferably, S8Replace with scheme one or scheme two or scheme three:
Modified downloading data packet is sent to Intranet PC by scheme one, the gateway one by one according to the sequence that modification is completed;
The continuous downloading data packet of Range fields one is filtered out in the downloading data packet of scheme two, the gateway after the modification
It is same to be sent to Intranet PC;
Scheme three, the gateway wait for all downloading datas guarantee the repair free of charge change after be sent to Intranet PC together.
Preferably, S1In also record the HTTP head of the HTTP GET request packets;S2In also record response data packets
HTTP head.
A kind of more WAN mouthfuls of gateway, its main feature is that, which includes a sending module, a logging modle, a RESET numbers
According to packet generation module, a HTTP GET request packets generation module, a receiving module and a modified module;
The logging modle is used to call the sending module that a HTTP GET request packets of Intranet PC are sent to outer net clothes
It is engaged in recording content, TCP head and the IP head that HTTP GET request packets request is downloaded when device, is additionally operable to calling the transmission
Module records when being sent to Intranet PC in response to the response data packets of the HTTP GET request packets by the one of external network server
Then the Content-Length fields and TCP head of the response data packets call the RESET data packet generation modules;
Then the RESET data packet generation modules call the sending module should for generating a RESET data packets
RESET data packets are sent to external network server, then call the HTTP GET request packet generation modules;
Under the HTTP GET request packets request that the HTTP GET request packet generation modules are used to be recorded according to the logging modle
The quantity of the WAN mouths of the content of load, Content-Length fields and the gateway generates n HTTP GET request packet, generation
Each HTTP GET request packets respectively include a Range fields, the sum of the content of the request download of all Range fields characterization
Content and n that HTTP GET request packets request equal to logging modle record is downloaded are the integer more than or equal to 2, are then adjusted
It is sent out by least two WAN mouthfuls with the HTTP GET requests packet that the sending module generates the HTTP GET request packet generation modules
It send to external network server, then calls the receiving module;
The receiving module is used to send the HTTP of HTTP GET request packet generation modules generation by the sending module
The WAN mouths of GET request packet receive the downloading data packet sent by external network server, and the downloading data packet is in response to the HTTP GET
Request bag generation module generate HTTP GET requests packet and include actual download data, then call the modified module;
The TCP head of the HTTP GET request packets for the Intranet PC that the modified module is used to record according to the logging modle with
IP head and the TCP head for the downloading data packet that the TCP head modifications of IP head and the response data packets receive,
Then call the sending module that modified downloading data packet is sent to Intranet PC.
Preferably, n is greater than or equal to WAN mouthfuls of quantity;N HTTP is generated in the HTTP GET request packet generation modules
GET request packet is:HTTP GET request packets by batch generation equal to or less than the quantity of the WAN mouths of the gateway, until generation
HTTP GET of the sum of the content that the request of the Range fields characterization of all HTTP GET request packets is downloaded equal to Intranet PC is asked
The content for asking packet request to download, and different WAN mouths are passed through by the sending module respectively with a batch of HTTP GET requests packet
It is sent to external network server;N HTTP GET requests packet of generation in the HTTP GET request packet generation modules is:Disposably
N HTTP GET request packet is generated, and the sending module at least sends a HTTP GET requests Bao Sheng by each WAN mouthfuls
The HTTP GET request packet generated at module is to external network server.
Preferably, the HTTP GET request packet generation modules are additionally operable to the HTTP GET request packets for recording the logging modle
The content that request is downloaded is evenly distributed to each Range fields according to each WAN mouthfuls of bandwidth direct proportion.
Preferably, the sending module called by the modified module after for by modified downloading data packet according to having changed
At sequence be sent to Intranet PC one by one or continuously downloaded for filtering out Range fields in downloading data packet after the modification
Data packet be sent to together Intranet PC or for wait for all downloading datas guarantee the repair free of charge change after be sent to Intranet PC together.
Preferably, the logging modle is additionally operable to that the sending module is being called to be sent to the HTTP GET request packets of Intranet PC
The TCP head that the HTTP GET request packets are recorded when external network server are additionally operable to also the sending module is being called to service outer net
Record response data packets when the response data packets in response to the HTTP GET request packets of device are sent to Intranet PC
TCP head。
Preferably, the logging modle is additionally operable to that the sending module is being called to be sent to the HTTP GET request packets of Intranet PC
The HTTP head that the HTTP GET request packets are recorded when external network server are additionally operable to also the sending module is being called to take outer net
The response data packets in response to the HTTP GET request packets of business device record response data packets when being sent to Intranet PC
HTTP head.
A kind of HTTP download systems, its main feature is that, which includes that above-mentioned a optimum condition arbitrarily combines
Gateway, external network server and Intranet PC.
On the basis of common knowledge of the art, above-mentioned each optimum condition can be combined arbitrarily to get each preferable reality of the present invention
Example.
The positive effect of the present invention is that:More WAN mouthfuls of the gateway of the present invention realizes method and be that HTTP is downloaded
System under the premise of not doing any improved to Intranet PC and external network server so that when more WAN mouthfuls of gateways are downloaded not by
It is limited to single WAN mouthfuls of maximum speed of download, substantially increases the speed and bandwidth resources utilization rate of HTTP downloads.
Description of the drawings
Fig. 1 is that the gateway of the 4WAN mouths of the embodiment of the present invention 1 realizes the method first pass figure that HTTP is downloaded.
Fig. 2 is gateway and the outer net service that the gateway of the 4WAN mouths of the embodiment of the present invention 1 realizes the method that HTTP is downloaded
The flow chart of device interaction.
Fig. 3 is that the gateway of the 4WAN mouths of the embodiment of the present invention 1 realizes that the gateway for the method that HTTP is downloaded is handed over Intranet PC
Mutual flow chart.
Fig. 4 is the schematic diagram of the gateway of the 4WAN mouths of the embodiment of the present invention 1.
Fig. 5 is the schematic diagram of the HTTP download systems of the embodiment of the present invention 1.
Fig. 6 is gateway and the outer net service that the gateway of the 4WAN mouths of the embodiment of the present invention 2 realizes the method that HTTP is downloaded
The flow chart of device interaction.
Fig. 7 is that the gateway of the 4WAN mouths of the embodiment of the present invention 2 realizes that the gateway for the method that HTTP is downloaded is handed over Intranet PC
Mutual flow chart.
Fig. 8 is that the gateway of the 4WAN mouths of the embodiment of the present invention 3 realizes that the gateway for the method that HTTP is downloaded is handed over Intranet PC
Mutual flow chart.
Specific implementation mode
It is further illustrated the present invention below by the mode of embodiment, but does not therefore limit the present invention to the reality
It applies among a range.
Embodiment 1
A kind of method that 4WAN mouthfuls of gateway realizes HTTP downloads, the resource for downloading Intranet PC requests pass through the net
It closes from external network server and is downloaded to Intranet PC, wherein the speed of download of WAN1 and WAN3 is the download speed of 1M/s, WAN2 and WAN4
Degree is 2M/s, and it is 100M to ask the resource downloaded, and this approach includes the following steps, referring to Fig. 1:
Step 101, Intranet PC generate a HTTP GET request packets, and are asked the HTTP GET by the LAN of gateway mouths
Packet is asked to be sent to the gateway.The HTTP GET request packets are that the HTTP GET that Intranet PC downloads resource is generated in the prior art are asked
Packet is sought, the HTTP head of the HTTP GET request packets show the resource that request is downloaded, the IP of the HTTP GET request packets
The outer net clothes that head shows the IP for the Intranet PC for generating the HTTP GET request packets and the HTTP GET request packets to be sent to
The IP of business device.
Step 102, the gateway record HTTP head, the TCP head and IP head of the HTTP GET request packets, especially
The fields such as content, TCP head seq, ack for including that the request for including is downloaded and the IP of Intranet PC that IP head include and
The IP of external network server.
Step 103, the gateway by the HTTP GET requests packet by the WAN1 of the gateway (but also other of the gateway
One WAN mouthfuls) the HTTP GET request packets are sent to external network server.
Step 104, external network server receive the HTTP GET request packets, generate one in response to the HTTP GET request packets
Response data packets be sent to WAN1.The response data packets are the normal responses of external network server in the prior art,
The HTTP head of the response data packets include Content-Length fields, and the value of Content-Length fields is to ask
Seek the size for downloading content.
Step 105, the gateway record HTTP head and the TCP head, especially HTTP of the response data packets
The fields such as the Content-Length fields of head and seq, ack of TCP head.
The response data packets are sent to Intranet PC by step 106, the gateway by the LAN mouths of the gateway.
Step 107, the gateway generate a RESET data packets, and the RESET data packets are sent to outer net clothes by WAN1
Business device, the RESET data packets include the information such as IP head and TCP head.This step is equivalent to notice external network server handle
Download request resetting before.
Then, this method is divided into two independent flows, and one is the gateway and the interaction flow of external network server, another
A is the interaction flow of the gateway and Intranet PC.
Wherein, the gateway and the interaction flow of external network server include the following steps, referring to Fig. 2:
Step 108, the gateway generate 4 HTTP GET request packets, and are sent out respectively by WAN1, WAN2, WAN3 and WAN4
It send to external network server.Wherein, each HTTP GET requests packet generated in this step respectively includes a Range fields, and every
The size of the download range of a Range fields is directly proportional to the downloading rate of the WAN of transmission mouths, specific as follows:
WAN1:Range:Bytes=1-1024;
WAN2:Range:Bytes=1025-3072;
WAN3:Range:Bytes=3073-4096;
WAN4:Range:Bytes=4097-6144.
Step 109, external network server receive step 108 transmission 4 HTTP GET request packets, generate respectively in response to
4 HTTP GET request packet response data packets, and it is respectively sent to the gateway by corresponding WAN mouthfuls.
Step 110, external network server also generate several downloading datas in response to 4 HTTP GET request packets respectively
Packet, and those downloading data packets are sent to gateway by sending the WAN mouths of corresponding HTTP GET requests packet respectively.Wherein,
Each downloading data packet respectively includes the data of the actual download for the resource that corresponding HTTP GET requests packet request is downloaded.
The gateway and external network server repeat step 108- steps 110, until all HTTP GET generated are asked
The HTTP GET request packets request that the sum of the resource that the request that the Range fields of packet characterize is downloaded is equal in step 101 is asked to download
Resource.
The interaction flow of the gateway and inside and outside PC includes the following steps, referring to Fig. 3:
The TCP that IP head and the TCP head and step 105 that step 111, the gateway are recorded according to step 102 are recorded
Head changes IP head and the TCP head of the downloading data packet received, wherein by the IP of the downloading data packet received
The source IP of head is revised as the IP of external network server, and the IP of the destination interface of the IP head of downloading data packet is revised as Intranet
The IP of PC, the seq fields and ack fields that the TCP head of data packet would also be downloaded are modified as the TCP recorded with step 105
The seq fields and ack fields of head is continuous.This step modification seq fields are met in order to which all downloading data packets have
Transmission Control Protocol, can ensure that Intranet PC receives the continuity of those downloading data packets, without referring to by all downloading data Bao Lian
Supervention gives Intranet PC, the length of the data of this packet of the seq+ of this packet of the seq=for next packet that foundation Transmission Control Protocol defines
Degree.The seq for the downloading data packet for issuing Intranet PC by each WAN mouthfuls needs the range downloaded according to itself, relative under request
The response data packets of the position of the range of the resource of load and most start recording are calculated, and in addition also to change down
The checksum fields of the checksum fields and TCP head of the IP head of data packet are carried, specific modification meets TCP associations
View, details are not described herein for concrete modification process.
Modified downloading data packet is passed through LAN by step 112, the gateway by LAN mouthfuls according to the sequence that modification is completed
Mouth is sent to Intranet PC one by one.
Step 113, Intranet PC utilize the out of order arrangement characteristic of Transmission Control Protocol, recombinate the downloading data packet received.
Although step 108- steps 113 use sequence notation, step 108- steps 110 and step 111- steps 113
It executes independently of each other, which plays transfer between external network server and Intranet PC.
In the present embodiment, it is contemplated that network has unstability, therefore the range of the HTTP GET request packets generated
Distribution may need to adjust in real time, and distribute to each WAN mouthful of data length with WAN mouthfuls speed of download correlation,
It is not duplicate to be just allocated to each WAN mouthfuls of data length.It is downloaded according to the distribution of each WAN mouthfuls of speed of download
Data length can be conducive to each WAN mouthfuls of download time approximation, make full use of WAN mouthfuls each.
The gateway 2 of the 4WAN mouths of the present embodiment, referring to Fig. 4, including a sending module 201, a logging modle 202, one
RESET data packets generation module 203, a HTTP GET request packets generation module 204, a receiving module 205 and a modified module
206。
The logging modle 202 is used to call the sending module 201 by WAN1 by a HTTP GET requests of Intranet PC3
Packet records HTTP head, the TCP head and IP head of the HTTP GET request packets when being sent to external network server 4, especially
Including the fields such as request content, TCP head seq, ack for including for downloading and IP head the Intranet PC3 that includes IP and
The IP of external network server 4, be additionally operable to call the sending module 201 by LAN mouthfuls by the one of external network server 4 in response to this
The response data packets of HTTP GET request packets record the HTTP head of the response data packets when being sent to Intranet PC3
With the fields such as seq, ack of the Content-Length fields of TCP head, especially HTTP head and TCP head, then
Call the RESET data packets generation module 203.
Then the RESET data packets generation module 203 calls the sending module 201 logical for generating a RESET data packets
It crosses WAN1 and the RESET data packets is sent to external network server 4, then call the HTTP GET request packets generation module 204.
The HTTP GET request packets generation module 204 is for generating 4 HTTP GET request packets, each HTTP of generation
GET request packet respectively includes a Range fields, and under the size of download range and the WAN mouths of transmission of each Range fields
It is directly proportional to carry rate, the sending module 201 is then called respectively to ask the HTTP GET by WAN1, WAN2, WAN3 and WAN4
It asks the HTTP GET request packets that packet generation module 204 generates to be sent to external network server 4, then calls the receiving module 205.
The receiving module 205 is used to send the HTTP GET request packets generation module 204 by the sending module 201 and generate
The WAN mouths of HTTP GET request packets receive the downloading data packet that is sent by external network server 4, the downloading data packet is in response to this
HTTP GET request packets generation module 204 generate HTTP GET requests packet and include actual download data, so this is called to repair
Change module 206.
The IP of the HTTP GET request packets for the Intranet PC that the modified module 206 is used to be recorded according to the logging modle 202
The TCP head of head and TCP head and response data packets change the IP head and TCP of the downloading data packet received
Head, wherein the source IP of the IP head for the downloading data packet that the receiving module 205 receives is revised as external network server 4
The IP of the destination interface of the IP head of downloading data packet is revised as the IP of Intranet PC3, the TCP of data packet would also be downloaded by IP
The seq fields and ack fields of head is modified as the seq fields of the TCP head recorded with the logging modle 202 and ack fields connect
The checksum fields of the checksum fields and TCP head of continuous and modification downloading data packet IP head, are then called
Modified downloading data packet is sent to Intranet by the sending module 201 one by one according to the sequence that modification is completed by LAN mouthfuls
Then PC3 repeats to call the HTTP GET request packets generation module 204, until all HTTP GET request packets generated
The resource that HTTP GET request packet request of the sum of the resource that the request of Range fields characterization is downloaded equal to Intranet PC3 is downloaded.
The HTTP download systems of the present embodiment, referring to Fig. 5, including the gateway 2, Intranet PC3 and external network server 4, Intranet
The LAN mouth network connections of PC3 and the gateway 2, external network server 4 and WAN1, WAN2, WAN3 and WAN4 network of the gateway 2 connect
It connects.
Embodiment 2
The present embodiment is substantially the same manner as Example 1, the difference is that, referring to Fig. 6 and Fig. 7:
Step 108 replaces with:Step 1081, the gateway disposably generate 15 HTTP GET request packets;Step 1082 is somebody's turn to do
4 HTTP GET requests packet therein is sent to external network server by gateway by WAN1, WAN2, WAN3 and WAN4 respectively.This
The sum of the resource that the request of the Range fields characterization of all HTTP GET request packets generated in step is downloaded is equal to step
The resource that HTTP GET request packets request in 101 is downloaded.
Step 1082- steps 110 are repeated between the gateway and the external network server, until will generate all
HTTP GET requests Bao Jun is sent to external network server.
Step 112 replaces with:Range fields, which are filtered out, in the downloading data packet of the gateway after the modification continuously downloads number
It is sent to Intranet PC together according to packet.
Such as, the downloading data packet 1,3 and 5 that is over is changed, then changes the downloading data packet 2,9 and 10 that is over, then the gateway will
Downloading data packet 1,2,3 is sent to Intranet PC together.The present embodiment and the main distinction of embodiment 1 are:The method of embodiment 1
It is (first to be repaiied by batch generation HTTP GET requests packet and by the sequence transmission that modified downloading data packet is completed according to modification
The first transmission changed), and the method for this implementation is disposably to generate all HTTP GET requests packets and Range fields is continuous
Downloading data packet send together.
The gateway and embodiment 1 of the 4WAN mouths of the present embodiment are essentially identical, the difference is that,
Then the HTTP GET request packets generation module 204 is called for disposably generating 15 HTTP GET request packets
The sending module 201 by WAN1, WAN2, WAN3 and WAN4 by being sent to respectively batch by 4 HTTP GET requests packet therein
External network server, until all HTTP GET requests Bao Jun generated are sent to external network server, wherein what is generated is all
The sum of the resources downloaded of request of Range fields characterization of HTTP GET request packets be equal to the HTTP GET request packets of Intranet PC
The resource downloaded is asked, the receiving module 205 is then called.
The modified module 206, which calls, filters out Range fields company in the downloading data packet of the sending module 201 after the modification
Continuous downloading data packet is sent to Intranet PC together.
Embodiment 3
The gateway of the 4WAN mouths of the present embodiment realizes that the method that HTTP is downloaded is substantially the same manner as Example 1, and difference exists
In referring to Fig. 8:
Step 112 replaces with:Modified downloading data packet is stored in the hardware storage device of the gateway by the gateway,
Wait for all downloading datas guarantee the repair free of charge change after by LAN mouthfuls be sent to Intranet PC together.That is, the gateway of the present embodiment can will be repaiied
Change rear downloading data packet to be stored in the gateway, wait for resource that request is downloaded from external network server all download after again together
Send Intranet PC to.
The gateway and embodiment 1 of the 4WAN mouths of the present embodiment are essentially identical, the difference is that, which calls should
Modified downloading data packet is stored in the hardware storage device by sending module, after waiting for that all downloading datas are guaranteed the repair free of charge and changed
It is sent to Intranet PC together.
Although the gateway of embodiment 1-3 is 4WAN mouthfuls, the invention is not limited in 4WAN mouthfuls of gateways, using it
WAN mouthfuls of its quantity also may be used.The above can be realized using existing program means, and specific programming repeats no more.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that these
It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back
Under the premise of from the principle and substance of the present invention, many changes and modifications may be made, but these are changed
Protection scope of the present invention is each fallen with modification.
Claims (11)
1. a kind of more WAN mouthfuls of gateway realizes the method that HTTP is downloaded, which is characterized in that this method includes:
S1, a HTTP GET request packets of Intranet PC are sent to external network server, and record the HTTP GET request packets by the gateway
Ask the content downloaded, TCP head and IP head;
S2, the gateway be sent to Intranet in response to the response data packets of the HTTP GET request packets by the one of external network server
PC, and record the Content-Length fields and TCP head of the response data packets;
S3, the gateway generate a RESET data packets, and the RESET data packets are sent to external network server;
S4, the gateway is according to S1In HTTP GET request packets request download content, S2In Content-Length fields and
The quantity of the WAN mouths of the gateway, generates n HTTP GET request packet, and each HTTP GET requests packet of generation respectively includes one
Range fields, the sum of the content that the request of all Range fields characterization is downloaded are equal to S1In HTTP GET request packets request
The content and n of download are the integer more than or equal to 2;
S5, the gateway is by S4The HTTP GET requests packet of middle generation is sent to external network server by least two WAN mouthfuls;
S6, the gateway pass through S5The middle WAN mouths for sending HTTP GET request packets receive the downloading data sent by external network server
Packet, the downloading data packet is in response to S4The HTTP GET requests packet of middle generation and include actual download data;
S7, according to S1IP head and the TCP head and S of record2The TCP head of record, the gateway change the download received
The source IP of the IP head of downloading data packet is revised as the IP of external network server by IP head and the TCP head of data packet, will
The IP of the destination interface of the IP head of downloading data packet is revised as the IP of Intranet PC;
S8, the gateway modified downloading data packet is sent to Intranet PC.
2. the method as described in claim 1, which is characterized in that n is greater than or equal to WAN mouthfuls of quantity;
S4In n HTTP GET request packet of generation be:HTTP by batch generation equal to or less than the quantity of the WAN mouths of the gateway
GET request packet, until the sum of content of request download of Range fields characterization of all HTTP GET request packets of generation etc.
In S1In the content downloaded of HTTP GET request packets request, and with a batch of HTTP GET requests packet in S5It is middle to pass through respectively
Different WAN mouths are sent to external network server;
S4In n HTTP GET requests packet of generation or be:Disposably generate n HTTP GET request packet, and S5In each WAN
Mouth at least sends a S4The HTTP GET requests packet of middle generation is to external network server.
3. the method as described in claim 1, which is characterized in that in S4In the gateway by S1In HTTP GET request packets request
The content of download is assigned to each Range fields according to each WAN mouthfuls of bandwidth direct proportion.
4. the method as described in claim 1, which is characterized in that S8Replace with scheme one or scheme two or scheme three:
Modified downloading data packet is sent to Intranet PC by scheme one, the gateway one by one according to the sequence that modification is completed;
The continuous downloading data packet of Range fields is filtered out in the downloading data packet of scheme two, the gateway after the modification to send out together
It send to Intranet PC;
Scheme three, the gateway wait for all downloading datas guarantee the repair free of charge change after be sent to Intranet PC together.
5. the method as described in claim 1, which is characterized in that S1In also record the HTTP head of the HTTP GET request packets;
S2In also record the HTTP head of response data packets.
6. a kind of more WAN mouthfuls of gateway, which is characterized in that the gateway includes a sending module, a logging modle, a RESET numbers
According to packet generation module, a HTTP GET request packets generation module, a receiving module and a modified module;
The logging modle is used to call the sending module that a HTTP GET request packets of Intranet PC are sent to external network server
The content of Shi Jilu HTTP GET request packets request downloads, TCP head and IP head, are additionally operable to calling the sending module
Record should when being sent to Intranet PC in response to the response data packets of the HTTP GET request packets by the one of external network server
Then the Content-Length fields and TCP head of response data packets call the RESET data packet generation modules;
Then the RESET data packet generation modules call the sending module by the RESET numbers for generating a RESET data packets
It is sent to external network server according to packet, then calls the HTTP GET request packet generation modules;
What the HTTP GET request packets request that the HTTP GET request packet generation modules are used to be recorded according to the logging modle was downloaded
The quantity of the WAN mouths of content, the Content-Length fields of response data packets and the gateway generates n HTTP GET
Each HTTP GET requests packet of request bag, generation respectively includes a Range fields, the request of all Range fields characterization
The sum of content of download is equal to the content of the HTTP GET request packets request download of logging modle record and n is greater than or equal to 2,
Then call the HTTP GET request packets that the sending module generates the HTTP GET request packet generation modules by least two
WAN mouthfuls are sent to external network server, then call the receiving module;
The HTTP GET that the receiving module is used to send HTTP GET request packet generation modules generation by the sending module are asked
The WAN mouths of packet are asked to receive the downloading data packet sent by external network server, the downloading data packet is in response to the HTTP GET requests
Packet generation module generate HTTP GET requests packet and include actual download data, then call the modified module;
The TCP head and IP of the HTTP GET request packets for the Intranet PC that the modified module is used to be recorded according to the logging modle
IP head and the TCP head for the downloading data packet that the TCP head modifications of head and the response data packets receive, will
The source IP of the IP head of downloading data packet is revised as the IP of external network server, by the destination interface of the IP head of downloading data packet
IP be revised as the IP of Intranet PC, then call the sending module that modified downloading data packet is sent to Intranet PC.
7. gateway as claimed in claim 6, which is characterized in that n is greater than or equal to WAN mouthfuls of quantity;
N HTTP GET request packet is generated in the HTTP GET request packet generation modules is:It is generated equal to or less than the net by batch
The HTTP GET request packets of the quantity of the WAN mouths of pass, until the Range fields characterization of all HTTP GET request packets of generation
The content downloaded of the HTTP GET request packets request of the sum of content equal to Intranet PC downloaded of request, and with a batch of HTTP
GET request packet is sent to external network server by different WAN mouths respectively by the sending module;
N HTTP GET requests packet of generation in the HTTP GET request packet generation modules is:Disposably generate n HTTP
GET request packet, and the sending module at least sends what the HTTP GET request packet generation module generated by each WAN mouthfuls
HTTP GET requests packet is to external network server.
8. gateway as claimed in claim 6, which is characterized in that the HTTP GET request packet generation modules are additionally operable to the record
The content that the HTTP GET request packets request of module record is downloaded is evenly distributed to each according to each WAN mouthfuls of bandwidth direct proportion
Range fields.
9. gateway as claimed in claim 6, which is characterized in that the sending module is used to change after being called by the modified module
Downloading data packet afterwards is sent to Intranet PC or in downloading data packet after the modification one by one according to the sequence that modification is completed
The continuous downloading data packet of Range fields is filtered out to be sent to Intranet PC together or finish for waiting for that all downloading datas are guaranteed the repair free of charge to change
It is latter to be sent to Intranet PC together.
10. gateway as claimed in claim 6, which is characterized in that the logging modle is additionally operable to calling the sending module interior
The HTTP GET request packets of net PC record the HTTP head of the HTTP GET request packets when being sent to external network server, be additionally operable to
Also the sending module is being called to be sent to the response data packets in response to the HTTP GET request packets of external network server
The HTTP head of response data packets are recorded when Intranet PC.
11. a kind of HTTP download systems, which is characterized in that the HTTP download systems include such as any one of claim 6-10
The gateway further includes external network server and Intranet PC in claim 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410471943.2A CN105491083B (en) | 2014-09-16 | 2014-09-16 | More WAN mouthfuls of gateways realize the method and system that HTTP is downloaded |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410471943.2A CN105491083B (en) | 2014-09-16 | 2014-09-16 | More WAN mouthfuls of gateways realize the method and system that HTTP is downloaded |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105491083A CN105491083A (en) | 2016-04-13 |
CN105491083B true CN105491083B (en) | 2018-07-27 |
Family
ID=55677793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410471943.2A Active CN105491083B (en) | 2014-09-16 | 2014-09-16 | More WAN mouthfuls of gateways realize the method and system that HTTP is downloaded |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105491083B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107026850B (en) * | 2017-03-17 | 2018-07-31 | 中科曙光南京研究院有限公司 | A kind of intranet and extranet document exchange method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2487872A1 (en) * | 2010-12-14 | 2012-08-15 | Huawei Technologies Co., Ltd. | Method, device and system for bandwidth control |
CN103327129A (en) * | 2012-03-21 | 2013-09-25 | 深圳市共进电子股份有限公司 | Domain name analyticmethod for multi-WAN-port gateway device |
JP2014096674A (en) * | 2012-11-08 | 2014-05-22 | Hitachi High-Technologies Corp | Network device, network device control method, and network system |
-
2014
- 2014-09-16 CN CN201410471943.2A patent/CN105491083B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2487872A1 (en) * | 2010-12-14 | 2012-08-15 | Huawei Technologies Co., Ltd. | Method, device and system for bandwidth control |
CN103327129A (en) * | 2012-03-21 | 2013-09-25 | 深圳市共进电子股份有限公司 | Domain name analyticmethod for multi-WAN-port gateway device |
JP2014096674A (en) * | 2012-11-08 | 2014-05-22 | Hitachi High-Technologies Corp | Network device, network device control method, and network system |
Also Published As
Publication number | Publication date |
---|---|
CN105491083A (en) | 2016-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105577549B (en) | A kind of method and system for realizing content distributing network based on software defined network | |
CN103384237B (en) | Method for sharing IaaS cloud account, shared platform and network device | |
CN110198307A (en) | A kind of selection method of mobile edge calculations node, apparatus and system | |
CN102891804B (en) | The method of adjustment and system of control strategy | |
US20030108030A1 (en) | System, method, and data structure for multimedia communications | |
US20050002405A1 (en) | Method system and data structure for multimedia communications | |
CN106464680A (en) | Bandwidth management in a content distribution network | |
JP2015522996A (en) | Connection service coordinator | |
CN106302228B (en) | The transfer control method of task based access control perception in a kind of data center network | |
CN106899503B (en) | A kind of route selection method and network manager of data center network | |
CN106464596B (en) | Open flows communication means, system, controller and Service Gateway | |
CN108702486A (en) | A kind of low delay audio/video transmission method, device and computer readable storage medium | |
CN105763297B (en) | A kind of teledata optimized transmission method and device based on cloud computing system | |
CN101997822A (en) | Streaming media content delivery method, system and equipment | |
CN103906018B (en) | A kind of method and device for being used to send short message | |
CN102917042A (en) | Method and device for realizing internet services based on convergence of CDN (content distribution network) and network | |
CN108234149A (en) | Network request management method and device | |
CN106713283A (en) | Internetwork secure interaction system and method based on PaaS media technology | |
CN102420863A (en) | Rapid file distribution system, method thereof and apparatus thereof | |
US20050002388A1 (en) | Data structure method, and system for multimedia communications | |
CN110445723A (en) | A kind of network data dispatching method and fringe node | |
CN110177056B (en) | Automatic adaptive bandwidth control method | |
CN106789956A (en) | A kind of P2P order methods and system based on HLS | |
CN104461378B (en) | Data object is write to method, the apparatus and system of IP hard disks | |
CN105491083B (en) | More WAN mouthfuls of gateways realize the method and system that HTTP is downloaded |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200520 Address after: 201100 Room 102, building 21, 518 shenzhuan Road, Songjiang hi tech park, Caohejing Development Zone, Songjiang District, Shanghai Patentee after: SHANGHAI UTT NETWORK INFORMATION Co.,Ltd. Address before: 201612 Shanghai City, Songjiang Caohejing Songjiang District hi tech park Xinzhuan Highway No. 518, building 9, Room 301 Patentee before: SHANGHAI UTT TECHNOLOGIES Co.,Ltd. |