CN102629944B - Method and device as well as system for network acceleration - Google Patents

Method and device as well as system for network acceleration Download PDF

Info

Publication number
CN102629944B
CN102629944B CN201210100938.1A CN201210100938A CN102629944B CN 102629944 B CN102629944 B CN 102629944B CN 201210100938 A CN201210100938 A CN 201210100938A CN 102629944 B CN102629944 B CN 102629944B
Authority
CN
China
Prior art keywords
tcp data
data bag
identification information
acceleration
network
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
Application number
CN201210100938.1A
Other languages
Chinese (zh)
Other versions
CN102629944A (en
Inventor
魏明昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210100938.1A priority Critical patent/CN102629944B/en
Publication of CN102629944A publication Critical patent/CN102629944A/en
Application granted granted Critical
Publication of CN102629944B publication Critical patent/CN102629944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a method and device as well as system for network acceleration. The method for network acceleration comprises the following steps of: capturing a second transmission control protocol (TCP) data packet, judging whether the second TCP data packet contains identification information supporting acceptation, obtaining and recording a first judgment result; and capturing a first TCP data packet, judging by inquiring the first judgment result whether the recorded second TCP data packet contains identification information supporting acceptation, if yes, carrying out bilateral acceleration on the first TCP data packet, and then transmitting the first TCP data packet to a target terminal to which the first TCP data packet corresponds, and if not, carrying out unilateral acceleration on the first TCP data packet, and then sending the first TCP data packet to a target terminal to which the first TCP data packet corresponds. The method has the advantages of realizing the automatic transparent switching of unilateral acceleration and bilateral acceleration and greatly increasing the transmission performance of network.

Description

Network accelerating method, Apparatus and system
Technical field
The embodiment of the present invention relates to the communication technology, particularly relates to a kind of network accelerating method, Apparatus and system.
Background technology
In prior art, client is connected by transmission control protocol (Transmission ControlProtocol is called for short TCP) proxy server and service end usually, realizes the data interaction between client and service end.TCP agent server can realize the raising of data transmission performance by monolateral acceleration or bilateral acceleration.
But in above-mentioned implementation procedure, TCP agent server needs to set up TCP with client and service end respectively and is connected, client sends to the packet of service end to be forwarded by TCP agent server, TCP agent server also needs to carry out network address translation to the packet received, and TCP agent server can not realize the automatic switchover of monolateral acceleration and bilateral acceleration.
Summary of the invention
The embodiment of the present invention provides a kind of network accelerating method, Apparatus and system, and the repeatedly TCP carried out to avoid arranging TCP agent server connects, and the automatic transparent realizing monolateral acceleration and bilateral acceleration switches.
The embodiment of the present invention provides a kind of network accelerating method, comprising:
Intercept and capture the second transmission control protocol TCP packet, judge whether to comprise in described second tcp data bag the identification information of supporting to accelerate, obtain the first judged result, and record described first judged result;
Intercept and capture the first tcp data bag, judge in the described second tcp data bag recorded, whether to comprise the identification information of supporting to accelerate by inquiring about described first judged result, if so, then bilateral acceleration is carried out to described first tcp data bag, then mail to the destination that described first tcp data bag is corresponding; If not, then monolateral acceleration is carried out to described first tcp data bag, then mail to the destination that described first tcp data bag is corresponding;
Wherein, the source direction that described second tcp data bag is corresponding is the destination direction that described first tcp data bag is corresponding.
The embodiment of the present invention also provides a kind of network accelerating method, comprising:
When first time intercepts and captures tcp data bag, add in tcp data bag and represent the local identification information supporting to accelerate, and the destination that the tcp data bag tcp data bag adding described identification information being mail to described intercepting and capturing is corresponding;
When intercepting and capturing tcp data bag, judge whether tcp data bag comprises the identification information of supporting to accelerate, and judged result is carried out record.
The embodiment of the present invention provides a kind of network acceleration device, comprising:
First judge module, for intercepting and capturing the second transmission control protocol TCP packet, judging whether to comprise in described second tcp data bag the identification information of supporting to accelerate, obtaining the first judged result, and record described first judged result;
First processing module, for intercepting and capturing the first tcp data bag, judge in the described second tcp data bag recorded, whether to comprise the identification information of supporting to accelerate by inquiring about described first judged result, if, then bilateral acceleration process is carried out to described first tcp data bag, then mail to the destination that described first tcp data bag is corresponding; If not, then monolateral acceleration process is carried out to described first tcp data bag, then mail to the destination that described first tcp data bag is corresponding;
Wherein, the source direction that described second tcp data bag is corresponding is the destination direction that described first tcp data bag is corresponding.
The embodiment of the present invention provides a kind of network acceleration device, comprising:
Mark adds module, in intercepting and capturing tcp data bag in first time, adds and represent the local identification information supporting to accelerate in tcp data bag, and the destination that the tcp data bag tcp data bag adding described identification information being mail to described intercepting and capturing is corresponding;
Logging modle, during for intercepting and capturing tcp data bag, judges whether tcp data bag comprises the identification information of supporting to accelerate, and judged result is carried out record.
The embodiment of the present invention provides a kind of network acceleration system, comprises client and service end, also comprises:
The network acceleration device that the embodiment of the present invention provides;
Described client sends the first transmission control protocol TCP packet to described service end;
Described service end sends the second tcp data bag to described client.
As shown from the above technical solution, the network accelerating method that the embodiment of the present invention provides, Apparatus and system, network acceleration device passes through whether to comprise the mark supporting to accelerate in the tcp data bag judging to receive, can judge between the destination and present networks accelerator of received TCP bag, whether there is other network acceleration devices, and according to judged result, packet is processed.Achieve and support situation according to the network acceleration of destination corresponding to the first tcp data bag, select bilateral acceleration or monolateral acceleration, the automatic transparent achieving monolateral acceleration and bilateral acceleration switches, avoid arranging TCP agent server and needing the repeatedly TCP carried out to connect the complexity brought, also without the need to carrying out network address translation to tcp data bag, improve network transmission performance.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of network accelerating method flow chart that Fig. 1 provides for the embodiment of the present invention;
The another kind of network accelerating method flow chart that Fig. 2 provides for the embodiment of the present invention;
A kind of network acceleration apparatus structure schematic diagram that Fig. 3 provides for the embodiment of the present invention;
The another kind of network acceleration apparatus structure schematic diagram that Fig. 4 provides for the embodiment of the present invention;
The network acceleration system structural representation that Fig. 5 provides for the embodiment of the present invention five.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
A kind of network accelerating method flow chart that Fig. 1 provides for the embodiment of the present invention.As shown in Figure 1, the network accelerating method that the present embodiment provides specifically can be applied to process source and the mutual data of destination being accelerated to transmission, can be performed by network acceleration device, this network acceleration device can be independent, also can be arranged on the network element device being arranged in source and destination transmission path, this network element device is such as router, switch or bridge equipment etc.
The network accelerating method that the present embodiment provides specifically comprises:
Step 10, intercept and capture the second transmission control protocol TCP packet, judge whether to comprise in the second tcp data bag the identification information of supporting to accelerate, obtain the first judged result, and the first judged result is carried out record;
Step 20, intercept and capture the first tcp data bag, judge in the second tcp data bag recorded, whether to comprise the identification information of supporting to accelerate by inquiring about the first judged result, if so, then bilateral acceleration is carried out to the first tcp data bag, then mail to the destination that the first tcp data bag is corresponding; If not, then monolateral acceleration is carried out to the first tcp data bag, then mail to the destination that described first tcp data bag is corresponding;
Wherein, the source direction that the second tcp data bag is corresponding is the destination direction that the first tcp data bag is corresponding.
It should be noted that, in the embodiment of the present invention, source direction and destination direction, only refer to the message be processed from the direction mail to, do not relate to the source of message self and the particular location relation had of destination.In other words, the source that second tcp data bag is corresponding is exactly not necessarily destination corresponding to the first tcp data bag, in the present embodiment, the source direction that second tcp data bag is corresponding is the destination direction that the first tcp data bag is corresponding, only emphasize for a network acceleration device, the direction send by the second tcp data bag of intercepting and capturing with by the first tcp data bag intercepted and captured, received is contrary; There is same situation in other device embodiments of the present invention and embodiment of the method, repeat no more for the purpose of brief introduction.
Optionally, described first tcp data bag is carried out bilateral or monolateral acceleration after mail to destination corresponding to described first tcp data bag before, be also included in described first tcp data bag, add and represent the local identification information supporting to accelerate.
Particularly, two opposite ends of carrying out data interaction can be respectively source and destination, as client and service end, according to the actual conditions of information interaction, also can using client as being destination, server end is as being source, the present embodiment, be only source with client, for the purpose of server end, end is example.Client needs and service end sets up TCP when being connected, and client and service end are repeatedly shaken hands to realize TCP and be connected, and after TCP connection establishment, client and service end just can communicate.No matter set up packet mutual in TCP connection procedure in client and service end, still mutual in normal communication process upon establishment of a connection packet can be all this tcp data bag.
Network acceleration device intercepts and captures the tcp data bag transmitted in client and service end communication process.First tcp data bag can be the packet that client sends to service end, then the source that this first tcp data bag is corresponding is client, and the destination that this first tcp data bag is corresponding is service end.Second tcp data bag is specifically as follows the packet that service end sends to client, the source that then this second tcp data bag is corresponding is service end, the destination that this second tcp data bag is corresponding is client, and the source that this second tcp data bag is corresponding is the destination that the first tcp data bag is corresponding.Below for convenience, this network accelerating method of execution is called network acceleration device A.
Network acceleration device A intercepts and captures this second tcp data bag, judges whether to comprise in the second tcp data bag the identification information of supporting to accelerate, obtains the first judged result, and the first judged result is carried out record.If comprise the identification information of supporting to accelerate in the second packet intercepted and captured, then can judge that this second tcp data wraps in transmitting procedure to be accelerated to identify described previous device support by the mark that previous one with the addition of support acceleration through previous device, also just can know that the second tcp data bag of intercepting and capturing forwards through other network acceleration devices, namely also there is other network acceleration devices between this network acceleration device A and service end.If comprise the identification information that this support is accelerated in the second tcp data bag, then this first judged result just represents: in the source direction of the second tcp data bag, device network enabled before network acceleration device A is accelerated, that is, first judged result can comprise the identification information that the indication information that there are other network acceleration devices between indication network accelerator A and source (server end namely in the present embodiment) and this support are accelerated, the agreement support information of network acceleration device supporting the identification information accelerated to comprise to add the identification information that this support is accelerated and algorithm support information etc.If do not comprise the identification information that this support is accelerated in the second tcp data bag, then in like manner, this first judged result can comprise the indication information that there are not other network acceleration devices between indication network accelerator A and service end.
Network acceleration device A intercepts and captures the first tcp data bag, in the first tcp data bag, adds and represents the local identification information supporting to accelerate, and this expression this locality supports that the identification information accelerated specifically can comprise native protocol support information and algorithm support information.When also there are other network acceleration devices between network acceleration device A and service end, other network acceleration devices can obtain the identification information that this support is accelerated from the first tcp data bag intercepted, to know that the agreement of network acceleration device A supports that situation and algorithm support situation.
By the first judged result of query note, network acceleration device A judges whether opposite end is supported to accelerate, particularly, if the first judged result comprises the identification information that the indication information that there are other network acceleration devices between indication network accelerator A and service end and this support are accelerated, then illustrate also there is other network acceleration devices between network acceleration device A and service end, can coordinate with network acceleration device A and realize bilateral acceleration, then be transmitted to destination corresponding to the first tcp data bag after can carrying out bilateral acceleration process to the first tcp data bag.If the first judged result comprises the indication information that there are not other network acceleration devices between indication network accelerator A and service end, then illustrate there is not other network acceleration devices between network acceleration device A and service end, can not coordinate with network acceleration device A and realize bilateral acceleration, monolateral acceleration can only be realized, be then transmitted to destination corresponding to the first tcp data bag to adding after the first tcp data bag after identifying carries out monolateral acceleration process.
In the communication process of client and service end, client and service end do not need the existence knowing this network acceleration device, and namely this network acceleration device is transparent relative to the two.Client does not need elder generation to set up TCP with network acceleration device to be connected, and network acceleration device is set up TCP with service end again and is connected.Can comprise source address and destination address in the packet header of the tcp data bag that client sends to service end, source address is the address of client, and destination address is the address of service end.Network acceleration device can realize forwarding this tcp data bag according to the destination address in the tcp data bag intercepted.The network accelerating method that the present embodiment provides, network acceleration device passes through whether to comprise the mark supporting to accelerate in the tcp data bag judging to receive, can judge between the destination and present networks accelerator of received TCP bag, whether there is other network acceleration devices, and according to judged result, packet is processed.Achieve and support situation according to the network acceleration of destination corresponding to tcp data bag, select bilateral acceleration or monolateral acceleration, the automatic transparent achieving monolateral acceleration and bilateral acceleration switches, avoid arranging TCP agent server and needing the repeatedly TCP carried out to connect the complexity brought, also without the need to carrying out network address translation to tcp data bag, improve network transmission performance.
Certainly, for realizing goal of the invention, network acceleration device when first time intercepts and captures tcp data bag, can add and represents the local identification information supporting to accelerate in tcp data bag, and the destination that the tcp data bag tcp data bag adding described identification information being mail to described intercepting and capturing is corresponding; During any once intercepting and capturing tcp data bag, can judge whether tcp data bag comprises the identification information of supporting to accelerate, and support that the identification information accelerated carries out record by whether including in intercepted and captured tcp data bag.
Therefore, the present invention also provides a kind of network accelerating method, comprising:
When first time intercepts and captures tcp data bag, add in tcp data bag and represent the local identification information supporting to accelerate, and the destination that the tcp data bag tcp data bag adding identification information being mail to intercepting and capturing is corresponding;
When intercepting and capturing tcp data bag, judge whether tcp data bag comprises the identification information of supporting to accelerate, and judged result is carried out record.Wherein, the record mentioned can comprise and upgrading original judged result.
The another kind of network accelerating method flow chart that Fig. 2 provides for the embodiment of the present invention.As shown in Figure 2, in the present embodiment, in step 20, mail to destination corresponding to the first tcp data bag after the first tcp data bag is carried out bilateral or monolateral acceleration before, also be included in the first tcp data bag, add and represent the local identification information supporting to accelerate.
In the present embodiment, in step 20, in the first tcp data bag, add and represent the local identification information supporting to accelerate, specifically can comprise the steps:
If the identification information containing and support acceleration is known in the first tcp data bag in judgement, then the identification information that local for expression support is accelerated is replaced the identification information of the support acceleration comprised in the first tcp data bag; Know in the first tcp data bag the identification information not containing and support to accelerate if judge, then in the first tcp data bag, then directly increase the identification information that this expression this locality is supported to accelerate.
The identification information accelerated is supported if contained in the first tcp data bag, then the identification information that this support is accelerated is replaced to and represent the local identification information supporting to accelerate, when the identification information that the support that different network acceleration devices adds is accelerated can be distinguished, also can support that the identification information accelerated directly is increased to the first tcp data bag by representing local.Support the identification information accelerated if do not contain in the first tcp data bag, then directly increase the identification information that this expression this locality is supported to accelerate.
Further, in the present embodiment, in step 20, after intercepting and capturing the first tcp data bag, can also comprise the steps:
Step 30, judge whether to comprise in the first tcp data bag the identification information of supporting to accelerate, obtain the second judged result, and the second judged result is carried out record;
Step 40, in the second tcp data bag, add and represent the local identification information supporting to accelerate, by the second judged result of query note judge opposite end whether support accelerate, if so, then destination corresponding to the second tcp data bag is transmitted to adding after the second tcp data bag after identifying carries out bilateral acceleration process; If not, then destination corresponding to the second tcp data bag is transmitted to adding after the second tcp data bag after identifying carries out monolateral acceleration process.
Network acceleration device A judges whether to comprise in the first tcp data bag the identification information of supporting to accelerate, and obtains the second judged result, and the second judged result is carried out record.Support that the identification information accelerated specifically forwards through other network acceleration devices in order to indicate this first tcp data to wrap in transmitting procedure, namely also there is other network acceleration devices between this network acceleration device A and client's device.If comprise the identification information that this support is accelerated in the first tcp data bag, then this second judged result can comprise the identification information that the indication information that there are other network acceleration devices between indication network accelerator A and client and this support are accelerated, and supports that the identification information accelerated can comprise the agreement support information of the network acceleration device adding the identification information that this support is accelerated and algorithm support information etc.If do not comprise the identification information that this support is accelerated in the first tcp data bag, then this second judged result can comprise the indication information that there are not other network acceleration devices between indication network accelerator A and client.
Network acceleration device A, in the second tcp data bag, adds and represents the local identification information supporting to accelerate, and this expression this locality supports that the identification information accelerated specifically can comprise native protocol support information and algorithm support information.When also there are other network acceleration devices between network acceleration device A and client, other network acceleration devices can obtain the identification information that this support is accelerated from the second tcp data bag intercepted, to know that the agreement of network acceleration device A supports that situation and algorithm support situation.
By the second judged result of query note, network acceleration device A judges whether opposite end is supported to accelerate, particularly, if the second judged result comprises the identification information that the indication information that there are other network acceleration devices between indication network accelerator A and client and this support are accelerated, then illustrate also there is other network acceleration devices between network acceleration device A and client, can coordinate with network acceleration device A and realize bilateral acceleration, the identification information that then can accelerate according to the support in this second judged result is then transmitted to destination corresponding to the second tcp data bag to adding after the second tcp data bag after identifying carries out bilateral acceleration process.If the second judged result comprises the indication information that there are not other network acceleration devices between indication network accelerator A and client, then illustrate there is not other network acceleration devices between network acceleration device A and client, can not coordinate with network acceleration device A and realize bilateral acceleration, monolateral acceleration can only be realized, be then transmitted to destination corresponding to the second tcp data bag to adding after the second tcp data bag after identifying carries out monolateral acceleration process.
Preferably, in the present embodiment, in step 20, bilateral acceleration is carried out to the first tcp data bag, then mails to the destination that the first tcp data bag is corresponding, specifically can comprise the steps:
Agreement is carried out to the first tcp data bag and coordinates process and/or compression process, according to TCP congestion avoidance algorithm, the first tcp data bag after process is sent to the destination that the first tcp data bag is corresponding;
Particularly, network acceleration device A can know the identification information of supporting to accelerate by inquiry first judged result, the identification information that this support is accelerated can comprise the information such as the agreement support information of network acceleration device and algorithm support information, then can carry out corresponding agreement to the first tcp data bag after interpolation mark coordinate process and/or compression to process, and sends to according to the first tcp data bag after agreement is coordinated process and/or compression process by TCP congestion avoidance algorithm the destination that the first tcp data bag is corresponding.
In step 20, monolateral acceleration is carried out to the first tcp data bag, then mails to the destination that the first tcp data bag is corresponding, specifically can comprise the steps:
According to TCP congestion avoidance algorithm, the first tcp data bag is sent to the destination that the first tcp data bag is corresponding.
Particularly, compression process is carried out to the first tcp data bag, taking up room of the first tcp data bag can be reduced, bandwidth resources shared in transmitting procedure can be reduced.Congestion handling algorithms can realize based on tcp window expansion and slow turn-on.
In the present embodiment, be transmitted to destination corresponding to the second tcp data bag after carrying out bilateral acceleration process to the second tcp data bag and also can adopt same way to realize, this repeats no more.
Present embodiments provide the specific implementation of a kind of bilateral acceleration and monolateral acceleration, should be understood that, those skilled in the art can also be realized by the method for other existing bilateral acceleration and monolateral acceleration.
In the present embodiment, in step 20, in the first tcp data bag, add and represent the local identification information supporting to accelerate, specifically can comprise the steps:
Support that the identification information accelerated adds in the packet header of the first tcp data bag by representing local.
Further, in the present embodiment, in step 20, after intercepting and capturing the first tcp data bag, in the first tcp data bag, before adding the identification information representing that local support is accelerated, specifically can also comprise the steps:
Judge whether the first tcp data bag forwards through network acceleration device by the second judged result of query note, if, know that if then judge the identification information of the support acceleration comprised in the first tcp data bag is in order to indicate the first tcp data bag overcompression process, then carry out decompression to the first tcp data bag;
If network acceleration device A knows the identification information of supporting to accelerate by the second judged result of query note, support that the identification information accelerated comprises compression algorithm support information, illustrate that the first tcp data wraps in first to have carried out compressing process when network acceleration device before forwards, then correspondingly network acceleration device A carries out decompression to the first tcp data bag.
After intercepting and capturing the second transmission control protocol TCP packet, in the second tcp data bag, before adding the identification information representing that local support is accelerated, also comprise:
Judge whether the second tcp data bag forwards through network acceleration device by the first judged result of query note, if, know that if then judge the identification information of the support acceleration comprised in the second tcp data bag is in order to indicate the second tcp data bag overcompression process, then carry out decompression to the second tcp data bag.
If network acceleration device A knows the identification information of supporting to accelerate by the of query note with judged result, support that the identification information accelerated comprises compression algorithm support information, illustrate that the second tcp data wraps in first to have carried out compressing process when network acceleration device before forwards, then correspondingly network acceleration device A carries out decompression to the second tcp data bag.
Further, in the present embodiment, this network accelerating method can also comprise the steps:
Judge whether the first tcp data bag forwards through network acceleration device by the second judged result of query note, if, know that if then judge the identification information of the support acceleration comprised in the first tcp data bag is in order to indicate the host-host protocol of the network acceleration device of forwarding first tcp data bag, agreement cooperation is carried out, other tcp data bags that the network acceleration device intercepting and capturing to forward the first tcp data bag forwards according to host-host protocol;
Judge whether the second tcp data bag forwards through network acceleration device by the first judged result of query note, if, know that if then judge the identification information of the support acceleration comprised in the second tcp data bag is in order to indicate the host-host protocol of the network acceleration device of forwarding second tcp data bag, agreement cooperation is carried out, other tcp data bags that the network acceleration device intercepting and capturing to forward the second tcp data bag forwards according to host-host protocol.
By the second judged result of query note, network acceleration device A judges whether the first tcp data bag forwards through network acceleration device, know that if judge the identification information of the support acceleration comprised in the first tcp data bag is in order to indicate the host-host protocol of the network acceleration device of forwarding first tcp data bag, then network acceleration device A carries out agreement cooperation according to host-host protocol, other tcp data bags that the network acceleration device intercepting and capturing to forward the first tcp data bag forwards.
By the first judged result of query note, network acceleration device A judges whether the second tcp data bag forwards through network acceleration device, know that if judge the identification information of the support acceleration comprised in the second tcp data bag is in order to indicate the host-host protocol of the network acceleration device of forwarding second tcp data bag, then network acceleration device A carries out agreement cooperation according to host-host protocol, other tcp data bags that the network acceleration device intercepting and capturing to forward the second tcp data bag forwards.
It should be noted that network acceleration device does not have inevitable sequential relationship to the expedited forwarding processing procedure of the first tcp data bag intercepted with to the expedited forwarding processing procedure of the second tcp data bag intercepted, can carry out simultaneously.
A kind of network acceleration apparatus structure schematic diagram that Fig. 3 provides for the embodiment of the present invention.As shown in Figure 3, the network acceleration device that the present embodiment provides specifically can realize each step of the network accelerating method that any embodiment of the present invention provides, and this repeats no more.
The network acceleration device that the present embodiment provides specifically comprises the first judge module 11 and the first processing module 12.First judge module 11, for intercepting and capturing the second transmission control protocol TCP packet, judges whether to comprise in the second tcp data bag the identification information of supporting to accelerate, obtains the first judged result, and record the first judged result.First processing module 12 is for intercepting and capturing the first tcp data bag, by whether comprising the identification information of supporting to accelerate in the second tcp data bag of inquiry judging record, if, then bilateral acceleration process is carried out to the first tcp data bag, then mail to the destination that the first tcp data bag is corresponding; If not, then monolateral acceleration process is carried out to the first tcp data bag, then mail to the destination that the first tcp data bag is corresponding.Wherein, the source direction that the second tcp data bag is corresponding is the destination direction that the first tcp data bag is corresponding.
The network acceleration device that the present embodiment provides, network acceleration device passes through whether to comprise the mark supporting to accelerate in the tcp data bag judging to receive, can judge between the destination and present networks accelerator of received TCP bag, whether there is other network acceleration devices, and according to judged result, packet is processed.Achieve and support situation according to the network acceleration of destination corresponding to tcp data bag, select bilateral acceleration or monolateral acceleration, the automatic transparent achieving monolateral acceleration and bilateral acceleration switches, avoid arranging TCP agent server and needing the repeatedly TCP carried out to connect the complexity brought, also without the need to carrying out network address translation to tcp data bag, improve network transmission performance.
The another kind of network acceleration apparatus structure schematic diagram that Fig. 4 provides for the embodiment of the present invention.As shown in Figure 4, in the present embodiment, this network acceleration device can also comprise the first interpolation module 13, before mailing to destination corresponding to the first tcp data bag after first tcp data bag is carried out bilateral or monolateral acceleration for the first processing module by the first interpolation module 13, in the first tcp data bag, add and represent the local identification information supporting to accelerate.
In the present embodiment, first interpolation module 13 specifically may be used for judging to know in the first tcp data bag the identification information containing and support acceleration, then the identification information that local for expression support is accelerated is replaced the identification information of the support acceleration comprised in the first tcp data bag; Know in the first tcp data bag the identification information not containing and support to accelerate if judge, then, in the first tcp data bag, directly increase and represent the local identification information supporting to accelerate.
Further, network acceleration device also comprises the second judge module 14, second processing module 15 and the second interpolation module 16 in the present embodiment.Second judge module 14, for judging whether to comprise in the first tcp data bag the identification information of supporting to accelerate, obtains the second judged result, and the second judged result is carried out record.Second processing module 15 for judged by the second judged result of query note opposite end whether support accelerate, if so, then to add mark after the second tcp data bag carry out bilateral acceleration process after be transmitted to destination corresponding to the second tcp data bag; If not, then destination corresponding to the second tcp data bag is transmitted to adding after the second tcp data bag after identifying carries out monolateral acceleration process.Second adds module 16 in the second tcp data bag, adds and represents the local identification information supporting to accelerate.
In the present embodiment, the first interpolation module 13 specifically may be used for supporting that the identification information accelerated adds in the packet header of the first tcp data bag by representing local.Second adds module 16 specifically may be used for supporting that the identification information accelerated adds in the packet header of the first tcp data bag by representing local.
The embodiment of the present invention provides a kind of network acceleration device, and this network acceleration device comprises mark and adds module and logging modle.Mark adds module.In intercepting and capturing tcp data bag in first time, add in tcp data bag and represent the local identification information supporting to accelerate, and the destination that the tcp data bag tcp data bag adding described identification information being mail to described intercepting and capturing is corresponding.When logging modle is for intercepting and capturing tcp data bag, judge whether tcp data bag comprises the identification information of supporting to accelerate, and judged result is carried out record.
The network acceleration system structural representation that Fig. 5 provides for the embodiment of the present invention five.As shown in Figure 5, the network acceleration system that the present embodiment provides comprises client 21 and service end 22, also comprises the network acceleration device that at least one any embodiment of the present invention provides.Client 21 sends the first transmission control protocol TCP packet to service end 22, and service end 22 sends the second tcp data bag to client 21.This network acceleration device, for intercepting and capturing the second transmission control protocol TCP packet, judges whether to comprise in the second tcp data bag the identification information of supporting to accelerate, obtains the first judged result, and the first judged result is carried out record; Intercepting and capturing the first tcp data bag, judge whether opposite end is supported to accelerate by the first judged result of query note, being if so, then transmitted to destination corresponding to the first tcp data bag to adding after the first tcp data bag after identifying carries out bilateral acceleration process; If not, then destination corresponding to the first tcp data bag is transmitted to adding after the first tcp data bag after identifying carries out monolateral acceleration process; In the first tcp data bag, add and represent the local identification information supporting to accelerate; Wherein, the source that the second tcp data bag is corresponding is the destination that the first tcp data bag is corresponding.
Below client 21 and service end 22 are provided with three network acceleration devices, the workflow of the network acceleration system that the present embodiment provides is elaborated.
These three network acceleration devices are respectively first network accelerator 231, second network accelerator 232 and the 3rd network acceleration device 233, and first network accelerator 231, second network accelerator 232 and the 3rd network acceleration device 233 intercept and capture the tcp data bag transmitted in client 21 and service end 22 reciprocal process respectively.Packet mutual in TCP connection procedure is set up for client 21 and service end 22, first network accelerator 231, second network accelerator 232 and the 3rd network acceleration device 233 only can add the identification information that the local support of expression is accelerated in the packet header of tcp data bag that there is not the identification information that support is accelerated, and do not carry out the rear directly forwarding of acceleration process.Set up TCP for client 21 and service end 22 and be connected packet mutual in rear normal communication process, first network accelerator 231, second network accelerator 232 and the 3rd network acceleration device 233 carry out following process respectively:
First network accelerator 231 intercepts and captures the first tcp data bag and the second tcp data bag respectively, respectively the packet header of the first tcp data bag and the second tcp data bag is resolved, there is not the identification information of supporting to accelerate in the packet header of the first tcp data bag, in the packet header of the second tcp data bag, there is the identification information of supporting to accelerate.First network accelerator 231 adds the identification information representing that local support is accelerated in the packet header of this first tcp data bag, and the first tcp data bag after adding mark is carried out bilateral expedited forwarding.First network accelerator 231 correspondingly processes the second tcp data bag, support that the identification information accelerated replaces the existing identification information supporting to accelerate in the packet header of the second tcp data bag by representing local, the second tcp data bag after adding mark is carried out monolateral expedited forwarding.
Second network accelerator 232 intercepts and captures the first tcp data bag and the second tcp data bag respectively, resolving the packet header of the first tcp data bag and the second tcp data bag respectively, all there is the identification information of supporting to accelerate in the packet header of the first tcp data bag and the second tcp data bag.Second network accelerator 232 correspondingly processes the first tcp data bag, support that the identification information accelerated replaces the existing identification information supporting to accelerate in the packet header of the first tcp data bag by representing local, the first tcp data bag after adding mark is carried out bilateral expedited forwarding.Second network accelerator 232 correspondingly processes the second tcp data bag, support that the identification information accelerated replaces the existing identification information supporting to accelerate in the packet header of the second tcp data bag by representing local, the second tcp data bag after adding mark is carried out monolateral expedited forwarding.
3rd network acceleration device 233 intercepts and captures the first tcp data bag and the second tcp data bag respectively, respectively the packet header of the first tcp data bag and the second tcp data bag is resolved, there is the identification information of supporting to accelerate in the packet header of the first tcp data bag, in the packet header of the second tcp data bag, there is not the identification information of supporting to accelerate.First tcp data bag correspondingly processes by the 3rd network acceleration device 233, support that the identification information accelerated replaces the existing identification information supporting to accelerate in the packet header of the first tcp data bag by representing local, the first tcp data bag after adding mark is carried out monolateral expedited forwarding.3rd network acceleration device 233 adds the identification information representing that local support is accelerated in the packet header of this second tcp data bag, and the second tcp data bag after adding mark is carried out bilateral expedited forwarding.
The network acceleration system that the present embodiment provides, by the setting of network acceleration device, network acceleration device by adding the mark supporting to accelerate in tcp data bag, make the subsequently received network acceleration device adding the packet after identifying, can judge between the destination and present networks accelerator of received TCP bag, whether there is other network acceleration devices, and according to judged result, packet is processed.Achieve and support situation according to the network acceleration of destination corresponding to tcp data bag, select bilateral acceleration or monolateral acceleration, the automatic transparent achieving monolateral acceleration and bilateral acceleration switches, avoid arranging TCP agent server and needing the repeatedly TCP carried out to connect the complexity brought, also without the need to carrying out network address translation to tcp data bag, improve network transmission performance.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a network accelerating method, is characterized in that, comprising:
Network acceleration device intercepts and captures the second transmission control protocol TCP packet, judges whether to comprise in described second tcp data bag the identification information of supporting to accelerate, obtains the first judged result, and record described first judged result;
Described network acceleration device intercepts and captures the first tcp data bag, judge in the described second tcp data bag recorded, whether to comprise the identification information of supporting to accelerate by inquiring about described first judged result, if, then bilateral acceleration is carried out to described first tcp data bag, then mail to the destination that described first tcp data bag is corresponding; If not, then monolateral acceleration is carried out to described first tcp data bag, then mail to the destination that described first tcp data bag is corresponding;
Wherein, the source direction that described second tcp data bag is corresponding is the destination direction that described first tcp data bag is corresponding; Described bilateral acceleration refers to that there are other network acceleration devices matched with described network acceleration device accelerates described first tcp data bag; Described monolateral acceleration refers to that there are not other network acceleration devices described matched with described network acceleration device accelerates described first tcp data bag.
2. network accelerating method according to claim 1, it is characterized in that, mail to destination corresponding to described first tcp data bag after described first tcp data bag is carried out bilateral or monolateral acceleration before, also comprise: described network acceleration device, in described first tcp data bag, adds and represents the local identification information supporting to accelerate.
3. network accelerating method according to claim 2, is characterized in that, described network acceleration device, in described first tcp data bag, adds and represents the local identification information supporting to accelerate, comprising:
If described network acceleration device judges to know in described first tcp data bag the identification information containing and support to accelerate, then local for the expression identification information supporting to accelerate is replaced the identification information of the support acceleration comprised in described first tcp data bag;
If described network acceleration device judges to know in described first tcp data bag the identification information not containing and support to accelerate, then in described first tcp data bag, directly increase and represent the local identification information supporting to accelerate.
4., according to the arbitrary described network accelerating method of claims 1 to 3, it is characterized in that, described network acceleration device also comprises after intercepting and capturing the first tcp data bag:
Described network acceleration device judges whether to comprise in described first tcp data bag the identification information of supporting to accelerate, and obtains the second judged result, and described second judged result is carried out record;
Described network acceleration device is in described second tcp data bag, add and represent the local identification information supporting to accelerate, by second judged result of inquiring about described record judge opposite end whether support accelerate, if so, then destination corresponding to described second tcp data bag is transmitted to adding after the second tcp data bag after identifying carries out bilateral acceleration process; If not, then destination corresponding to described second tcp data bag is transmitted to adding after the second tcp data bag after identifying carries out monolateral acceleration process.
5., according to the arbitrary described network accelerating method of claims 1 to 3, it is characterized in that:
Described network acceleration device carries out bilateral acceleration to described first tcp data bag, then mails to the destination that described first tcp data bag is corresponding, comprising:
Described network acceleration device carries out agreement to described first tcp data bag and coordinates process and/or compression process, according to TCP congestion avoidance algorithm, the first tcp data bag after process is sent to the destination that described first tcp data bag is corresponding;
Described network acceleration device carries out monolateral acceleration to described first tcp data bag, then mails to the destination that described first tcp data bag is corresponding, comprising:
Described first tcp data bag is sent to the destination that described first tcp data bag is corresponding according to TCP congestion avoidance algorithm by described network acceleration device.
6. a network acceleration device, is characterized in that, comprising:
First judge module, for intercepting and capturing the second transmission control protocol TCP packet, judging whether to comprise in described second tcp data bag the identification information of supporting to accelerate, obtaining the first judged result, and record described first judged result;
First processing module, for intercepting and capturing the first tcp data bag, by inquiring about the described identification information judging whether to comprise in the described second tcp data bag recorded support acceleration, if, then bilateral acceleration process is carried out to described first tcp data bag, then mail to the destination that described first tcp data bag is corresponding; If not, then monolateral acceleration process is carried out to described first tcp data bag, then mail to the destination that described first tcp data bag is corresponding;
Wherein, the source direction that described second tcp data bag is corresponding is the destination direction that described first tcp data bag is corresponding; Described bilateral acceleration refers to that there are other network acceleration devices matched with described network acceleration device accelerates described first tcp data bag; Described monolateral acceleration refers to that there are not other network acceleration devices described matched with described network acceleration device accelerates described first tcp data bag.
7. a kind of network acceleration device according to claim 6, is characterized in that, also comprise:
First adds module, for mail to destination corresponding to described first tcp data bag after described first tcp data bag is carried out bilateral or monolateral acceleration by described first processing module before, in described first tcp data bag, add and represent the local identification information supporting to accelerate.
8. a kind of network acceleration device according to claim 7, it is characterized in that: described first adds module, specifically for judging to know in described first tcp data bag the identification information containing and support to accelerate, then local for the expression identification information supporting to accelerate is replaced the identification information of the support acceleration comprised in described first tcp data bag; Know in described first tcp data bag the identification information not containing and support to accelerate if judge, then, in described first tcp data bag, directly increase and represent the local identification information supporting to accelerate.
9., according to the arbitrary described a kind of network acceleration device of claim 6 to 8, it is characterized in that, also comprise:
Second judge module, for judging whether to comprise in described first tcp data bag the identification information of supporting to accelerate, obtaining the second judged result, and described second judged result is carried out record;
Second processing module, for by inquiry described record the second judged result judge opposite end whether support accelerate, if so, then to add identify after the second tcp data bag carry out bilateral acceleration process after be transmitted to destination corresponding to described second tcp data bag; If not, then destination corresponding to described second tcp data bag is transmitted to adding after the second tcp data bag after identifying carries out monolateral acceleration process;
Second adds module, in described second tcp data bag, adds and represents the local identification information supporting to accelerate.
10. a network acceleration system, comprises client and service end, it is characterized in that, also comprise:
Network acceleration device as described at least one is as arbitrary in claim 6 to 9;
Described client sends the first transmission control protocol TCP packet to described service end;
Described service end sends the second tcp data bag to described client.
CN201210100938.1A 2012-04-09 2012-04-09 Method and device as well as system for network acceleration Active CN102629944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210100938.1A CN102629944B (en) 2012-04-09 2012-04-09 Method and device as well as system for network acceleration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210100938.1A CN102629944B (en) 2012-04-09 2012-04-09 Method and device as well as system for network acceleration

Publications (2)

Publication Number Publication Date
CN102629944A CN102629944A (en) 2012-08-08
CN102629944B true CN102629944B (en) 2015-03-18

Family

ID=46588103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210100938.1A Active CN102629944B (en) 2012-04-09 2012-04-09 Method and device as well as system for network acceleration

Country Status (1)

Country Link
CN (1) CN102629944B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9936404B2 (en) 2013-01-06 2018-04-03 Mediatek Singapore Pte. Ltd. Methods and apparatuses for fast recovery
CN104717700B (en) * 2013-12-12 2018-09-21 中国移动通信集团上海有限公司 A kind of network accelerating method and device based on wireless area
CN105072057B (en) * 2015-07-09 2019-02-01 中国科学院计算技术研究所 A kind of intermediate switching equipment and its method and system for network data transmission
CN110381007B (en) * 2018-04-12 2021-01-08 华为技术有限公司 TCP acceleration method and device
CN108683529A (en) * 2018-04-26 2018-10-19 昆明俊云科技有限公司 Data accelerate transmission method and device
CN109495388B (en) * 2018-11-30 2021-04-27 四川安迪科技实业有限公司 TCP acceleration method based on satellite communication

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132355A (en) * 2006-08-21 2008-02-27 北京锐科天智科技有限责任公司 Network accelerating method, software and hardware device
CN102035724A (en) * 2009-09-30 2011-04-27 华为技术有限公司 Method, device and system for realizing message forwarding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7873060B2 (en) * 2008-10-18 2011-01-18 Fortinet, Inc. Accelerating data communication using tunnels

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132355A (en) * 2006-08-21 2008-02-27 北京锐科天智科技有限责任公司 Network accelerating method, software and hardware device
CN102035724A (en) * 2009-09-30 2011-04-27 华为技术有限公司 Method, device and system for realizing message forwarding

Also Published As

Publication number Publication date
CN102629944A (en) 2012-08-08

Similar Documents

Publication Publication Date Title
US11082281B2 (en) Relay communication method and relay communication device
CN102629944B (en) Method and device as well as system for network acceleration
CN106330414B (en) Message transmission method and device
US8493871B2 (en) End-to end analysis of transactions in networks with traffic-altering devices
CN112738791B (en) User information correlation backfill method, device, equipment and medium based on 5G core network
CN106576108B (en) Communication method, equipment and system in communication system
CN106470136B (en) Platform test method and platform test system
CN114828140B (en) Service flow message forwarding method and device, storage medium and electronic equipment
CN113364660A (en) Data packet processing method and device in LVS load balancing
CN110545230B (en) Method and device for forwarding VXLAN message
CN104852988A (en) A message forwarding method and device
CN107483369B (en) Message processing method and virtual switch
CN117395195A (en) Communication method, device, equipment and storage medium
CN112910774B (en) Communication method, system and network forwarding equipment
CN116389191A (en) Data transmission system, method, device and storage medium thereof
CN114301993B (en) Data transmission method, device, terminal equipment and storage medium
CN114666846A (en) Communication method and gateway equipment
CN103368841A (en) Message forwarding method and device thereof
CN110830477B (en) Service identification method, device, gateway, system and storage medium
CN113630298A (en) Intelligent control system, method and device
CN106095559A (en) Based on mobile terminal data proxy data acclerating section streaming system and method
JP2017147601A (en) Communication device and communication method
US20190205189A1 (en) Communication system, terminal, and server
TW202103480A (en) Method for providing network service through edge computing
CN114978643B (en) Communication method, network equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211224

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.