CN103618743B - Operational Visit method, client of accelerating, acceleration service end and system - Google Patents

Operational Visit method, client of accelerating, acceleration service end and system Download PDF

Info

Publication number
CN103618743B
CN103618743B CN201310664889.9A CN201310664889A CN103618743B CN 103618743 B CN103618743 B CN 103618743B CN 201310664889 A CN201310664889 A CN 201310664889A CN 103618743 B CN103618743 B CN 103618743B
Authority
CN
China
Prior art keywords
service end
link
message
client
data block
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
CN201310664889.9A
Other languages
Chinese (zh)
Other versions
CN103618743A (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN201310664889.9A priority Critical patent/CN103618743B/en
Publication of CN103618743A publication Critical patent/CN103618743A/en
Application granted granted Critical
Publication of CN103618743B publication Critical patent/CN103618743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of Operational Visit method, accelerate client, acceleration service end and system, the method includes: described acceleration client is transmitted to described acceleration service end after receiving the first access request message that described terminal sends;Receiving the first data message of described acceleration service end transmission successively until determining the first link extremely, sending redirection message to described terminal;It is transmitted to described acceleration service end after receiving the second access request message that described terminal sends;Again the data block size of single transmission data is consulted with described acceleration service end;Receive the second data message that described acceleration service end sends successively;It is sent to described terminal after described info web after described second data message received is spliced into compression.The program ensure that user carries out speed and the treatment effeciency of Operational Visit.

Description

Operational Visit method, client of accelerating, acceleration service end and system
Technical field
The present invention relates to communication technical field, espespecially a kind of Operational Visit method, client of accelerating, acceleration clothes Business end and system.
Background technology
In recent years, wireless communication technology experienced by and develops rapidly, from 2 generations (Generation, G) in early days 3G till now and Wireless Fidelity (wireless Fidelity, WIFI) universal, or even the rising abruptly of 4G Rising, increasing enterprise customer selects the service server using wireless network to access enterprise.
For ease for use consider, a lot of enterprise customers use terminal (Browser, B)/server (Server, S) framework.When enterprise customer to process certain business, need to use terminal by wireless network access industry Business server, in order to meet the demand of variation business, a lot of B/S pages no longer use simple static page Face, but use dynamic page to respond terminal.Dynamic page needs to remove service server by wireless network Called data, owing to the transmission speed of wireless network is easily affected by factors such as environment, on wireless network Time delay, packet loss etc. cannot be predicted, it occur frequently that the phenomenon that dynamic page feedback is slow, affect Operational Visit speed With Business Processing efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of Operational Visit method, accelerates client, acceleration service end and system, In order to solve to affect present in existing Operational Visit method Operational Visit speed and Business Processing efficiency Problem.
Therefore, according to embodiments of the present invention, it is provided that a kind of Operational Visit method, it is applied to include terminal, add In the Operational Visit system of speed client, acceleration service end and service server, described acceleration client and institute Stating and communicated by network between acceleration service end, the method includes:
Described acceleration client is transmitted to described after receiving the first access request message that described terminal sends Accelerating service end, described first access request message is used for asking to access described service server;
With the data block size that described acceleration service end consults single transmission data;
Receive the first data message of described acceleration service end transmission successively until determining the first link extremely, Sending redirection message to described terminal, described first data message is that described acceleration service end is by described business The info web carried in the first access response message that server sends splits with the data block size consulted After obtain, described first link is the link between described terminal and described service server;
It is transmitted to described acceleration service end after receiving the second access request message that described terminal sends, described Second access request message is to send after described terminal receives described redirection message, is used for asking to access Described acceleration service end;
Again the data block size of single transmission data is consulted with described acceleration service end;
Receiving the second data message that described acceleration service end sends successively, described second data message is described Accelerate to obtain after the described info web after compression is split by service end with the data block size that renegotiates;
It is sent to institute after described info web after described second data message received is spliced into compression State terminal.
Concrete, with the data block size of described acceleration service end negotiation single transmission data, specifically include:
Receiving the negotiation packet that described acceleration service end sends, described negotiation packet is that described acceleration service end will Described first access request message is transmitted to described service server and receives described first access response report Send after literary composition;
The preset data block size corresponding with described first link is carried as the data block size consulted Response message is sent to described acceleration service end.
Optionally, before receiving the first data message that described acceleration service end sends successively, also include:
Receiving the benchmark two-way time that described acceleration service end sends, described benchmark two-way time is described acceleration Service end sends described negotiation packet to the duration received between described response message;
Receive the first data message of described acceleration service end transmission successively until determining the first link extremely, Specifically include:
After receiving described first data message, calculate the average deviation of transmission time every time;
The mass change trend of the first link is judged according to described benchmark two-way time and described average deviation;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size, if the preset data block size after Geng Xining is less than threshold value, then determines described first link Abnormal.
Concrete, the mass change of the first link is judged according to described benchmark two-way time and described average deviation Trend, specifically includes:
If described average deviation is more than the described benchmark two-way time of the first setting multiple, it is determined that described first The quality of link has the trend of variation;
If described average deviation is less than or equal to the described benchmark two-way time of the 4th setting multiple, it is determined that described The quality of the first link has the trend improved, and the described 4th sets multiple sets again less than or equal to described first Number;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size, specifically includes:
If the quality of the first link has the trend improved, by big for the preset data block corresponding with described first link Little increase by second sets multiple;
If the quality of the first link has the trend of variation, by big for the preset data block corresponding with described first link Little divided by the 3rd setting multiple.
Optionally, after receiving the second data message that described acceleration service end sends successively, also include:
After receiving the second data message that described acceleration service end sends, rejudge described first chain every time The mass change trend on road;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size.
Also provide for a kind of Operational Visit method, be applied to include terminal, accelerate client, accelerate service end and In the Operational Visit system of service server, between described acceleration client and described acceleration service end, pass through net Network communicates, and the method includes:
Described acceleration service end receives the first access that described acceleration client forwards, from described terminal Described service server it is transmitted to after request message;
After receiving the first access response message that described service server sends, assist with described acceleration client The data block size of business's single transmission data;
The first data message is sent successively until receiving described acceleration client and turning to described acceleration client Second access request message that send out, from described terminal, described first data message is that described acceleration services Hold and obtain after the info web carried in described first access response message is split with the data block size consulted Arriving, described second access request message is the redirection that described terminal receives from described acceleration client Sending after message, be used for asking to access described acceleration service end, described redirection message is described acceleration visitor Family end sends after determining the first link exception between described terminal and described service server;
Again the data block size of single transmission data is consulted with described acceleration client;
Sending the second data message to described acceleration client successively, described second data message is described acceleration Service end obtains after being split with the data block size renegotiated by the described info web after compression.
Concrete, with the data block size of described acceleration client negotiation single transmission data, specifically include:
Negotiation packet is sent to described acceleration client;
Receive that described acceleration client sends to carry the preset data block corresponding with described first link big The little response message as the data block size consulted.
Optionally, successively before described acceleration client sends the first data message, also include:
Calculate and send described negotiation packet to the duration received between described response message, obtain benchmark round Time;
Described benchmark is sent to described acceleration client two-way time.
Also provide for a kind of acceleration client, including:
First Transmit-Receive Unit, is transmitted to accelerate clothes after receiving the first access request message that terminal sends Business end, described first access request message is used for asking access service server;
First negotiation element, for consulting the data block size of single transmission data with described acceleration service end;
Second Transmit-Receive Unit, for receiving the first data message of described acceleration service end transmission successively until sentencing Make the first link abnormal, send redirection message to described terminal, described first data message be described in add The info web carried in the first access response message that described service server is sent by speed service end is with association The first data block size of business obtains after splitting, and described first link is described terminal and described business service Link between device;
3rd Transmit-Receive Unit, is transmitted to institute after receiving the second access request message that described terminal sends Stating acceleration service end, described second access request message is to send out after described terminal receives described redirection message Send, be used for asking to access described acceleration service end;
Second negotiation element is big for again consulting the data block of single transmission data with described acceleration service end Little;
4th Transmit-Receive Unit, for receiving the second data message that described acceleration service end sends successively, described Second data message is that the described info web after described acceleration service end will be compressed is with the data renegotiated Block size obtains after splitting;Described second data message received is spliced into the described webpage after compression Described terminal it is sent to after information.
Concrete, described first negotiation element, specifically for:
Receiving the negotiation packet that described acceleration service end sends, described negotiation packet is that described acceleration service end will Described first access request message is transmitted to described service server and receives described first access response report Send after literary composition;
The preset data block size corresponding with described first link is carried as the data block size consulted Response message is sent to described acceleration service end.
Optionally, described second Transmit-Receive Unit, it is additionally operable to receive that described acceleration service end sends successively the Before one data message, receive the benchmark two-way time that described acceleration service end sends, when described benchmark comes and goes Between be that described acceleration service end sends described negotiation packet to the duration received between described response message;
Described second Transmit-Receive Unit is straight for receiving the first data message of described acceleration service end transmission successively Abnormal to determining the first link, specifically for:
After receiving described first data message, calculate the average deviation of transmission time every time;
The mass change trend of the first link is judged according to described benchmark two-way time and described average deviation;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size, if the preset data block size after Geng Xining is less than threshold value, then determines described first link Abnormal.
Concrete, described second Transmit-Receive Unit, for according to described benchmark two-way time and described average deviation Judge the mass change trend of the first link, specifically for:
If described average deviation is more than the described benchmark two-way time of the first setting multiple, it is determined that described first The quality of link has the trend of variation;
If described average deviation is less than or equal to the described benchmark two-way time of the 4th setting multiple, it is determined that described The quality of the first link has the trend improved, and the described 4th sets multiple sets again less than or equal to described first Number;
Described second Transmit-Receive Unit, updates and institute for the mass change trend according to the first link judged State the preset data block size that the first link is corresponding, specifically for:
If the quality of the first link has the trend improved, by big for the preset data block corresponding with described first link Little increase by second sets multiple;
If the quality of the first link has the trend of variation, by big for the preset data block corresponding with described first link Little divided by the 3rd setting multiple.
Optionally, the described 4th receives unit, is additionally operable to receive that described acceleration service end sends the every time After two data messages, rejudge the mass change trend of described first link;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size.
Also provide for a kind of acceleration service end, including:
First Transmit-Receive Unit, accelerates the first access request that client forwards, that carry out self terminal for receiving Service server it is transmitted to after message;
First negotiation element, after receiving the first access response message that described service server sends, With the data block size that described acceleration client consults single transmission data;
Second Transmit-Receive Unit, for sending the first data message to described acceleration client until receiving successively Second access request message that described acceleration client forwards, from described terminal, described first datagram Literary composition be the acceleration service end at self place by the info web that carries in described first access response message with association The first data block size of business obtains after splitting, and described second access request message is that described terminal receives Send after the redirection message that described acceleration client sends, be used for asking to access described acceleration and service End, described redirection message is that described acceleration client determines between described terminal and described service server First link abnormal after send;
Second negotiation element is big for again consulting the data block of single transmission data with described acceleration client Little;
3rd Transmit-Receive Unit, for sending the second data message to described acceleration client successively, described second Data message is that described acceleration service end is by big with the data block renegotiated for the described info web after compression Obtain after little fractionation.
Concrete, described first negotiation element, for consulting single transmission data with described acceleration client Data block size, specifically for:
Negotiation packet is sent to described acceleration client;
Receive that described acceleration client sends to carry the preset data block corresponding with described first link big The little response message as the data block size consulted.
Optionally, described second Transmit-Receive Unit, it is additionally operable to sending the first number to described acceleration client successively Before message, calculate and send described negotiation packet to the duration received between described response message, obtain Benchmark two-way time;
Described benchmark is sent to described acceleration client two-way time.
Also provide for a kind of Operational Visit system, including terminal, above-mentioned acceleration client, above-mentioned acceleration service end And service server.
Operational Visit method, acceleration client, acceleration service end and the system that the embodiment of the present invention provides, eventually End is during carrying out Operational Visit, and accelerating client can be with the between monitor terminal and service server The quality of one link, after determining the first link exception, accelerating client can send redirection to terminal Message, terminal is according to redirection message, and request accesses accelerates service end, and then accelerating service end can be to adding The info web of speed client push compression, obtains owing to the info web of compression is less than original info web Many, so terminal can quickly receive, it is ensured that user carries out speed and the treatment effeciency of Operational Visit.
Accompanying drawing explanation
Fig. 1 is the structural representation of Operational Visit system in the embodiment of the present invention;
Fig. 2 a is the flow chart of Operational Visit method in the embodiment of the present invention;
Fig. 2 b is the form of DATA_STREAM in the embodiment of the present invention;
Fig. 2 c is the form of SYN_STREAM in the embodiment of the present invention;
Fig. 2 d is the form of SYN_REPLY in the embodiment of the present invention;
Fig. 3 is the structure chart accelerating client in the embodiment of the present invention;
Fig. 4 is the structural representation accelerating service end in the embodiment of the present invention.
Detailed description of the invention
Affect present in access method for existing service server at Operational Visit speed and business The problem of reason efficiency, the embodiment of the present invention provides a kind of Operational Visit method, and the method can be applied at such as figure In operation system shown in 1, this operation system includes terminal 10, accelerates client 11, acceleration service end 12 and service server 13, accelerate client 11 and accelerate to be communicated by network between service end 12.
The flow process of above-mentioned Operational Visit method as shown in Figure 2 a, specifically includes:
S20: terminal sends the first access request message to accelerating client, and the first access request message is used for Request access service server.
When user's Operational Visit to be carried out, web page address to be accessed can be inputted in the terminal, in terminal The first access request message can be generated, the IP of service server can be carried in the first access request message Address identifies and conducts interviews service server.
First access request message can be HTML (Hypertext Markup Language) (Hyper Text Transport Protocol, HTTP) message etc..
S21: accelerate to be transmitted to accelerate service after client receives the first access request message that terminal sends End.
S22: accelerate to be transmitted to service server after service end receives the first access request message.
After S23: service server receives the first access request, carry webpage letter to accelerating service end transmission First access response message of breath.
First access response message can also be HTTP message etc..
S24: after acceleration service end receives the first access response message, consults single biography with accelerating client The data block size of transmission of data.
Accelerate after server receives the first access response message, in order to ensure under current ink quality Good laser propagation effect, first with the data block size accelerating client negotiation single transmission data.
S25: accelerating service end and send the first data message to acceleration client successively, the first data message is The info web accelerating to carry in the first access response message that service server is sent by service end is to consult Data block size split after obtain.
S26: accelerate client and receive successively and accelerate the first data message that service end sends until determining the One link is abnormal, sends redirection message to terminal, and the first link is the chain between terminal and service server Road.
After accelerating the first data message that client receives acceleration service end transmission every time, will judge Link-quality, if link is abnormal it is necessary to send redirection message to terminal, instruction terminal again accesses and adds Speed service end carries out Operational Visit.
S27: after terminal receives redirection message, sends the second access request message to accelerating client, Second access request message is used for asking to access accelerating service end.
S28: accelerate to be transmitted to accelerate service end after client receives the second access request message.
S29: after acceleration service end receives the second access request message, consults single with acceleration client again The data block size of secondary transmission data.
Owing to the first link is abnormal, need again to consult single transmission with acceleration client so accelerating service end The data block size of data.
S30: accelerating service end and send the second data message to acceleration client successively, the second data message is Accelerate to obtain after the info web after compression is split by service end with the data block size that renegotiates.
Accelerate service end and can preserve the info web of compression, the first link exception when, it is possible to subtract Data transfer size that is little and that accelerate between client, it is ensured that quickly return info web to terminal. The info web of compression only retains content of text, after former webpage is modified, deletes or shields, adds Speed service end can regenerate the info web of compression according to the renewal time of info web.
It is concrete it may be that accelerate after service end receives the first access response message that service server returns, Whether webpage is judged according to the last modification time field (Last-Modified) in the first access response message There is renewal, if it has, then need to update the info web of the compression of local preservation, the webpage that scanning receives The html code of information, extraction hyperlink URL (Uniform Resource Location, URL) with concrete web object file storing.
When need to accelerate client send compression info web time, it is possible to by compression info web with The data block size renegotiated splits, and is then encapsulated in the second data message, is sent to accelerate visitor Family end.
S31: accelerate client and receive the second data message accelerating service end transmission successively, by receive Second data message be spliced into compression after info web after be sent to terminal.
In the program, terminal is during carrying out Operational Visit, and accelerating client can be with monitor terminal and industry The quality of the first link between business server, after determining the first link exception, accelerates client permissible Sending redirection message to terminal, terminal is according to redirection message, and request accesses accelerates service end, then adds Speed service end can be to accelerating the info web that client push is compressed, owing to the info web ratio of compression is original Info web much smaller, so terminal can quickly receive, it is ensured that user carries out the speed of Operational Visit Degree and treatment effeciency.
Specifically introduce above-mentioned steps from accelerating client-side below:
Concrete, the acceleration client in above-mentioned S24 and the data accelerating service end negotiation single transmission data Block size, specifically includes:
Receiving and accelerate the negotiation packet that service end sends, negotiation packet is to accelerate service end by the first access request Message sends after being transmitted to service server and receiving the first access response message;
The preset data block size corresponding with the first link is carried in response as the data block size consulted Message is sent to accelerate service end.
Accelerate client and be connected adaptation stream (Link Adaptation with accelerating can use between service end Stream, LAS) host-host protocol, receive and accelerate the negotiation packet that service end sends, be specifically as follows LAS Control frame (SYN_STREAM), by LAS control frame and the number accelerating client negotiation transmission data According to block size.
Accelerating client can be with maintenance link status information table, when accelerating the multiple link of client maintenance, and can To determine the preset data block size corresponding with each link according to the information of record in link-state information table, Link-state information tableau format is as follows:
Link identification: by the Internet protocol (Internet Protocol, IP) of terminal and service server Location identifies link.
Preset data block size: default value is 64KB, according to the change of link-quality in transmission data procedures Change trend updates.
Accelerating client can be according to the preset data block corresponding with link of record in link-state information table Size is sent to accelerate service end by response message, and response message can be LAS control frame (SYN_REPLY)。
Above-mentioned first data message and the second data message can be LAS Frames (DATA_STREAM)。
Concrete, before receiving successively in above-mentioned S26 accelerates the first data message that service end sends, also Including:
Receiving and accelerate the benchmark two-way time that service end sends, benchmark is to accelerate service end to send association two-way time Business's literary composition is to the duration received between response message.
Assume that accelerating service end to the moment of acceleration client transmission negotiation packet is T0, accelerates service termination The moment receiving response message is T1, then this duration of T1-T0 can serve as benchmark two-way time, It is designated as RTT.
Receiving successively in above-mentioned S26 accelerates the first data message of service end transmission until determining the first chain Road is abnormal, specifically includes:
After receiving the first data message, calculate the average deviation of transmission time every time;
According to the mass change trend judging benchmark two-way time and average deviation the first link;
Mass change trend according to the first link judged updates the preset data corresponding with the first link Block size, if the preset data block size after Geng Xining is less than threshold value, then determines the first link abnormal.
After acceleration client receives the first data message every time, it is also possible to calculate and transmit the flat of time All deviations MD,Wherein Tn is the n-th the first data messages received Time, T (n-1) is the time of (n-1) individual first data message received.
It is assured that out the mass change trend of the first link according to the relation between MD and RTT, enters one Step can update the preset data block size corresponding with the first link, and big according to the preset data block after updating The quality of little judgement the first link.
Wherein, threshold value namely triggers the minimum data block size of the info web sending compression, Ke Yishe It is set to 1Kbyte, it is meant that if the preset data block size after Geng Xining is less than or equal to 1Kbyte, then touch Sending the info web of compression, certain threshold value can also be set to other numerical value according to practical situation.
Accelerate client and can safeguard flow state information table, when accelerating the multiple link of client maintenance, permissible The benchmark two-way time of each link recorded in flow state information table and average deviation, flow state information table Form as follows:
Stream identifies: according to source IP, source port, purpose IP, the unique TCP flow of destination interface identification.
Benchmark two-way time: benchmark two-way time of every stream is in the data block size consulting single transmission data Time calculate, record in stream mode table.
Average deviation: every time after transmission data block, the average deviation of the transmission time of calculating.
Concrete, above-mentioned according to judging benchmark two-way time and average deviation that the mass change of the first link becomes Gesture, specifically includes:
If average deviation is more than the benchmark two-way time of the first setting multiple, it is determined that the quality of the first link has The trend being deteriorated;
If average deviation is less than or equal to the benchmark two-way time of the 4th setting multiple, it is determined that the matter of the first link Amount has the trend improved, and the 4th sets multiple less than or equal to the first setting multiple.
Mass change trend according to the first link judged updates the preset data corresponding with the first link Block size, specifically includes:
If the quality of the first link has the trend improved, the preset data block size corresponding with the first link is increased Add the second setting multiple;
If the quality of the first link has the trend of variation, the preset data block size corresponding with the first link is removed Multiple is set with the 3rd.
When the quality of the first link has the trend improved, this means that the network bandwidth is sufficient, can increase The preset data block size corresponding with terminal, say, that the data block that can increase transmission data every time is big Little;Otherwise, in order to avoid network congestion, the preset data block size corresponding with the first link can be reduced, That is the data block size every time transmitting data can be reduced.Citing below illustrates:
Start---> Stream_size=8Kbyte;
After 1 RTT---> Stream_size=2*8Kbyte;
After 2 RTT---> Stream_size=3*8Kbyte;
After 3 RTT---> Stream_size=4*8Kbyte;
Assume that n-th link quality has the trend of variation---> Stream_size= (n-1)*8Kbyte/2。
Wherein, first set multiple, second set multiple, the 3rd set multiple, the 4th set multiple permissible It is set according to actual needs.Such as: 1,2,3 etc..
Optionally, after receiving successively in above-mentioned S31 accelerates the second data message that service end sends, also Including:
Receive after accelerating the second data message that service end sends every time, rejudge the quality of the first link Variation tendency;
Mass change trend according to the first link judged updates the preset data corresponding with the first link Block size.
Accelerate client after receiving the second data message accelerating service end transmission, it is also possible to again every time Judge the mass change trend of the first link, and according to the variation tendency of the quality of the first link judged more The size of the new preset data block corresponding with the first link, thus consult single biography follow-up with acceleration service end During the data block size of transmission of data, can be more accurate.
Specifically introduce above-mentioned steps from accelerating service end side below:
Concrete, in above-mentioned S24 with accelerate client and consult the data block size of single transmission data, tool Body includes: send negotiation packet to accelerating client;Receive and accelerate carrying and the first chain of client transmission Preset data block size corresponding to road is as the response message of the data block size consulted.
Optionally, in above-mentioned S25 successively to accelerating before client sends the first data message, also include: Calculate and send negotiation packet to the duration receiving between response message, obtain benchmark two-way time;By benchmark It is sent to two-way time accelerate client.
Service end also maintenance link status information table can accelerated, when safeguarding multiple link, can basis In link-state information table, the information of record determines the preset data block size corresponding with each first link, comes Determining the first data message and the size of the second data message, link-state information tableau format is as follows:
Introducing above-mentioned LAS host-host protocol in detail below, this host-host protocol is based on transmission control protocol Application layer traffic is transmitted the protocol technology being optimized by (Transfer Control Protocol, TCP), In application layer, add a fragment (Session) layer (as shown in the table), thus connect at a TCP On the basis of connecing, it is achieved that link-quality detection and stream control.
1. type of message, including Frame and control frame, wherein:
LAS Frame, is used for transmitting data, including DATA_STREAM;LAS control frame, is used for Transmission controls signaling, including SYN_STREAM and SYN_REPLY.
2. message packet form:
As shown in Figure 2 b, wherein " C " is 0 to the form of DATA_STREAM, represents Frame.
As shown in Figure 2 c, wherein " C " is 1 to the form of SYN_STREAM, represents control frame. The form of SYN_REPLY is as shown in Figure 2 d.
3. each parameter declaration in message:
In SYN_STREAM:
": stream_id ", the value of a 31bit identifies this stream;
": target:d_port ", destination address+destination interface that request accesses;
": host:s_port ", initiate the device address+source port of request;
": Timestamp ", timestamp when recorded message sends;
": Stream_size ", need the data segment size of transmission;
": Req_Data_size ", the data block size of request data transfer.
In SYN_REPLY:
": stream_id ", the value of a 31bit identifies this stream;
": target:d_port ", destination address+destination interface that request accesses;
": host:s_port ", initiate the device address+source port of request;
": Timestamp ", timestamp when sending for message;
": Stream_size ", need the data segment size of transmission;
": Rep_Data_size ", confirm the data block size of transmission data.
In DATA_STREAM:
": stream_id ", the value of a 31bit identifies this stream;
": flag ", flag bit is 1, and acceleration service end or acceleration client, will not when receiving TCP message Pending buffer district is full, is delivered to related process module immediately;Flag bit is 0, does not do special handling;
": Lenth ", the size of data message is equal to the data block size accelerating the transmission data that client confirms;
": Body ", for the data message of encapsulation.
Based on same inventive concept, the embodiment of the present invention provides one to accelerate client, and this acceleration client can With arrange in the terminal, it is also possible to be provided separately within the network equipments such as router, structure as it is shown on figure 3, Including:
First transmitting-receiving single 30, is transmitted to accelerate clothes after receiving the first access request message that terminal sends Business end, the first access request message is used for asking access service server.
First negotiation element 31, for consulting the data block size of single transmission data with acceleration service end.
Second Transmit-Receive Unit 32, for receiving the first data message accelerating service end transmission successively until judging Going out the first link abnormal, send redirection message to terminal, the first data message is to accelerate service end by business The info web carried in the first access response message that server sends splits with the data block size consulted After obtain, the first link is the link between terminal and service server.
3rd Transmit-Receive Unit 33, is transmitted to accelerate after receiving the second access request message that terminal sends Service end, the second access request message is to send after terminal receives redirection message, is used for asking to access Accelerate service end.
Second negotiation element 34, for again big with the data block accelerating service end negotiation single transmission data Little.
4th Transmit-Receive Unit 35, accelerates, for receiving successively, the second data message that service end sends, the second number It is to accelerate to obtain after the info web after compression is split by service end with the data block size renegotiated according to message Arrive;It is sent to terminal after info web after the second data message received is spliced into compression.
Concrete, above-mentioned first negotiation element 31, specifically for:
Receiving and accelerate the negotiation packet that service end sends, negotiation packet is to accelerate service end by the first access request Message sends after being transmitted to service server and receiving the first access response message;
The preset data block size corresponding with the first link is carried in response as the data block size consulted Message is sent to accelerate service end.
Optionally, above-mentioned second Transmit-Receive Unit 32, it is additionally operable to receiving the first of acceleration service end transmission successively Before data message, receiving and accelerate the benchmark two-way time that service end sends, benchmark is to accelerate clothes two-way time Business end sends negotiation packet to the duration receiving between response message.
Second Transmit-Receive Unit 32, for receiving the first data message accelerating service end transmission successively until judging Go out the first link abnormal, specifically for:
After receiving the first data message, calculate the average deviation of transmission time every time;
According to the mass change trend judging benchmark two-way time and average deviation the first link;
Mass change trend according to the first link judged updates the preset data corresponding with the first link Block size, if the preset data block size after Geng Xining is less than threshold value, then determines the first link abnormal.
Concrete, above-mentioned second Transmit-Receive Unit 32, for according to benchmark two-way time and average deviation judging chain Road mass change trend, specifically for:
If average deviation is more than the benchmark two-way time of the first setting multiple, it is determined that the quality of the first link has The trend being deteriorated;
If average deviation is less than or equal to the benchmark two-way time of the 4th setting multiple, the matter of the first link will be determined Amount has the trend improved, and the 4th sets multiple less than or equal to the first setting multiple.
Second Transmit-Receive Unit 32, updates and first for the mass change trend according to the first link judged The preset data block size that link is corresponding, specifically for:
If the quality of the first link has the trend improved, the preset data block size corresponding with the first link is increased Add the second setting multiple;
If the quality of the first link has the trend of variation, then corresponding with the first link preset data block size to remove Multiple is set with the 3rd.
Optionally, above-mentioned 4th Transmit-Receive Unit 35, it is additionally operable to receiving the second of acceleration service end transmission every time After data message, rejudge the mass change trend of the first link;
Mass change trend according to the first link judged updates the preset data corresponding with the first link Block size.
Based on same inventive concept, the embodiment of the present invention provides one to accelerate service end, and this acceleration service end can To be arranged in the network equipments such as router, structure as shown in Figure 4, including:
First Transmit-Receive Unit 40, please for receiving the first access that accelerate client forwarding, that carry out self terminal It is transmitted to service server after seeking message.
First negotiation element 41, after receiving the first access response message that service server sends, with Accelerate client and consult the data block size of single transmission data.
Second Transmit-Receive Unit 42, for sending the first data message to acceleration client until receiving and adding successively Second access request message that speed client forwards, that carry out self terminal, the first data message is self place Accelerate service end to be split with the data block size consulted by the info web carried in the first access response message After obtain, the second access request message is the redirection message that terminal receives that autoacceleration client sends Rear transmission, be used for asking accessing and accelerate service end, redirection message be accelerate client determine terminal with Send after the first link exception between service server.
Second negotiation element 43, for again big with the data block accelerating client negotiation single transmission data Little.
3rd Transmit-Receive Unit 44, for sending the second data message, the second datagram to acceleration client successively Literary composition is to accelerate to obtain after the info web after compression is split by service end with the data block size renegotiated.
Concrete, above-mentioned first negotiation element 41, for consulting the number of single transmission data with acceleration client According to block size, specifically for:
Negotiation packet is sent to accelerating client;
Receive acceleration client transmission carries the preset data block size corresponding with the first link as association The response message of the data block size of business.
Optionally, above-mentioned second Transmit-Receive Unit 42, it is additionally operable to sending the first data to acceleration client successively Before message, calculate and send negotiation packet to the duration receiving between response message, obtain benchmark when coming and going Between;
It is sent to accelerate client two-way time by benchmark.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although having been described for the alternative embodiment of the present invention, but those skilled in the art once knowing base This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted Ask and be intended to be construed to include alternative embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not take off Spirit and scope from the embodiment of the present invention.So, if these amendments of the embodiment of the present invention and modification belong to Within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention be also intended to comprise these change and Including modification.

Claims (17)

1. an Operational Visit method, it is characterised in that be applied to include terminal, acceleration client, add In the Operational Visit system of speed service end and service server, described acceleration client and described acceleration service end Between communicated by network, the method includes:
Described acceleration client is transmitted to described after receiving the first access request message that described terminal sends Accelerating service end, described first access request message is used for asking to access described service server;
With the data block size that described acceleration service end consults single transmission data;
Receive the first data message of described acceleration service end transmission successively until determining the first link extremely, Sending redirection message to described terminal, described first data message is that described acceleration service end is by described business The info web carried in the first access response message that server sends splits with the data block size consulted After obtain, described first link is the link between described terminal and described service server;
It is transmitted to described acceleration service end after receiving the second access request message that described terminal sends, described Second access request message is to send after described terminal receives described redirection message, is used for asking to access Described acceleration service end;
Again the data block size of single transmission data is consulted with described acceleration service end;
Receiving the second data message that described acceleration service end sends successively, described second data message is described Accelerate to obtain after the described info web after compression is split by service end with the data block size that renegotiates;
It is sent to institute after described info web after described second data message received is spliced into compression State terminal.
2. the method for claim 1, it is characterised in that consult single with described acceleration service end The data block size of transmission data, specifically includes:
Receiving the negotiation packet that described acceleration service end sends, described negotiation packet is that described acceleration service end will Described first access request message is transmitted to described service server and receives described first access response report Send after literary composition;
The preset data block size corresponding with described first link is carried as the data block size consulted Response message is sent to described acceleration service end.
3. method as claimed in claim 2, it is characterised in that receive described acceleration service end successively and send out Before the first data message sent, also include:
Receiving the benchmark two-way time that described acceleration service end sends, described benchmark two-way time is described acceleration Service end sends described negotiation packet to the duration received between described response message;
Receive the first data message of described acceleration service end transmission successively until determining the first link extremely, Specifically include:
After receiving described first data message, calculate the average deviation of transmission time every time;
The mass change trend of the first link is judged according to described benchmark two-way time and described average deviation;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size, if the preset data block size after Geng Xining is less than threshold value, then determines described first link Abnormal.
4. method as claimed in claim 3, it is characterised in that according to described benchmark two-way time and institute State average deviation and judge the mass change trend of the first link, specifically include:
If described average deviation is more than the described benchmark two-way time of the first setting multiple, it is determined that described first The quality of link has the trend of variation;
If described average deviation is less than or equal to the described benchmark two-way time of the 4th setting multiple, it is determined that described The quality of the first link has the trend improved, and the described 4th sets multiple sets again less than or equal to described first Number;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size, specifically includes:
If the quality of the first link has the trend improved, by big for the preset data block corresponding with described first link Little increase by second sets multiple;
If the quality of the first link has the trend of variation, by big for the preset data block corresponding with described first link Little divided by the 3rd setting multiple.
5. method as claimed in claim 3, it is characterised in that receive described acceleration service end successively and send out After the second data message sent, also include:
After receiving the second data message that described acceleration service end sends, rejudge described first chain every time The mass change trend on road;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size.
6. an Operational Visit method, it is characterised in that be applied to include terminal, acceleration client, add In the Operational Visit system of speed service end and service server, described acceleration client and described acceleration service end Between communicated by network, the method includes:
Described acceleration service end receives the first access that described acceleration client forwards, from described terminal Described service server it is transmitted to after request message;
After receiving the first access response message that described service server sends, assist with described acceleration client The data block size of business's single transmission data;
The first data message is sent successively until receiving described acceleration client and turning to described acceleration client Second access request message that send out, from described terminal, described first data message is that described acceleration services Hold and obtain after the info web carried in described first access response message is split with the data block size consulted Arriving, described second access request message is the redirection that described terminal receives from described acceleration client Sending after message, be used for asking to access described acceleration service end, described redirection message is described acceleration visitor Family end sends after determining the first link exception between described terminal and described service server;
Again the data block size of single transmission data is consulted with described acceleration client;
Sending the second data message to described acceleration client successively, described second data message is described acceleration Service end obtains after being split with the data block size renegotiated by the described info web after compression.
7. method as claimed in claim 6, it is characterised in that consult single with described acceleration client The data block size of transmission data, specifically includes:
Negotiation packet is sent to described acceleration client;
Receive that described acceleration client sends to carry the preset data block corresponding with described first link big The little response message as the data block size consulted.
8. method as claimed in claim 7, it is characterised in that send to described acceleration client successively Before first data message, also include:
Calculate and send described negotiation packet to the duration received between described response message, obtain benchmark round Time;
Described benchmark is sent to described acceleration client two-way time.
9. one kind is accelerated client, it is characterised in that including:
First Transmit-Receive Unit, is transmitted to accelerate clothes after receiving the first access request message that terminal sends Business end, described first access request message is used for asking access service server;
First negotiation element, for consulting the data block size of single transmission data with described acceleration service end;
Second Transmit-Receive Unit, for receiving the first data message of described acceleration service end transmission successively until sentencing Make the first link abnormal, send redirection message to described terminal, described first data message be described in add The info web carried in the first access response message that described service server is sent by speed service end is with association The data block size of business obtains after splitting, described first link be described terminal and described service server it Between link;
3rd Transmit-Receive Unit, is transmitted to institute after receiving the second access request message that described terminal sends Stating acceleration service end, described second access request message is to send out after described terminal receives described redirection message Send, be used for asking to access described acceleration service end;
Second negotiation element is big for again consulting the data block of single transmission data with described acceleration service end Little;
4th Transmit-Receive Unit, for receiving the second data message that described acceleration service end sends successively, described Second data message is that the described info web after described acceleration service end will be compressed is with the data renegotiated Block size obtains after splitting;Described second data message received is spliced into the described webpage after compression Described terminal it is sent to after information.
Accelerate client the most as claimed in claim 9, it is characterised in that described first negotiation element, Specifically for:
Receiving the negotiation packet that described acceleration service end sends, described negotiation packet is that described acceleration service end will Described first access request message is transmitted to described service server and receives described first access response report Send after literary composition;
The preset data block size corresponding with described first link is carried as the data block size consulted Response message is sent to described acceleration service end.
11. accelerate client as claimed in claim 10, it is characterised in that described second Transmit-Receive Unit, It is additionally operable to before receiving the first data message that described acceleration service end sends successively, receives described acceleration and take The benchmark two-way time that business end sends, described benchmark two-way time is that described acceleration service end sends described negotiation Message is to the duration received between described response message;
Described second Transmit-Receive Unit is straight for receiving the first data message of described acceleration service end transmission successively Abnormal to determining the first link, specifically for:
After receiving described first data message, calculate the average deviation of transmission time every time;
The mass change trend of the first link is judged according to described benchmark two-way time and described average deviation;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size, if the preset data block size after Geng Xining is less than threshold value, then determines described first link Abnormal.
12. accelerate client as claimed in claim 11, it is characterised in that described second Transmit-Receive Unit, For judging the mass change trend of the first link according to described benchmark two-way time and described average deviation, tool Body is used for:
If described average deviation is more than the described benchmark two-way time of the first setting multiple, it is determined that described first The quality of link has the trend of variation;
If described average deviation is less than or equal to the described benchmark two-way time of the 4th setting multiple, it is determined that described The quality of the first link has the trend improved, and the described 4th sets multiple sets again less than or equal to described first Number;
Described second Transmit-Receive Unit, updates and institute for the mass change trend according to the first link judged State the preset data block size that the first link is corresponding, specifically for:
If the quality of the first link has the trend improved, by big for the preset data block corresponding with described first link Little increase by second sets multiple;
If the quality of the first link has the trend of variation, by big for the preset data block corresponding with described first link Little divided by the 3rd setting multiple.
13. accelerate client as claimed in claim 11, it is characterised in that described 4th Transmit-Receive Unit, It is additionally operable to after every time receiving the second data message that described acceleration service end sends, rejudges described the The mass change trend of one link;
Mass change trend according to the first link judged updates preset corresponding with described first link Data block size.
14. 1 kinds are accelerated service end, it is characterised in that including:
First Transmit-Receive Unit, accelerates the first access request that client forwards, that carry out self terminal for receiving Service server it is transmitted to after message;
First negotiation element, after receiving the first access response message that described service server sends, With the data block size that described acceleration client consults single transmission data;
Second Transmit-Receive Unit, for sending the first data message to described acceleration client until receiving successively Second access request message that described acceleration client forwards, from described terminal, described first datagram Literary composition be the acceleration service end at self place by the info web that carries in described first access response message with association The data block size of business obtains after splitting, described second access request message be described terminal receive from Send after the redirection message that described acceleration client sends, be used for asking to access described acceleration service end, Described redirection message is that described acceleration client determines between described terminal and described service server Send after first link is abnormal;
Second negotiation element is big for again consulting the data block of single transmission data with described acceleration client Little;
3rd Transmit-Receive Unit, for sending the second data message to described acceleration client successively, described second Data message is that described acceleration service end is by big with the data block renegotiated for the described info web after compression Obtain after little fractionation.
15. accelerate service end as claimed in claim 14, it is characterised in that described first negotiation element, For consulting the data block size of single transmission data with described acceleration client, specifically for:
Negotiation packet is sent to described acceleration client;
Receive that described acceleration client sends to carry the preset data block corresponding with described first link big The little response message as the data block size consulted.
16. accelerate service end as claimed in claim 15, it is characterised in that described second Transmit-Receive Unit, It is additionally operable to, successively before described acceleration client sends the first data message, calculate and send described negotiation report Literary composition, to the duration received between described response message, obtains benchmark two-way time;
Described benchmark is sent to described acceleration client two-way time.
17. 1 kinds of Operational Visit systems, it is characterised in that include terminal, add as claimed in claim 9 Speed client, acceleration service end as claimed in claim 14 and service server.
CN201310664889.9A 2013-12-09 Operational Visit method, client of accelerating, acceleration service end and system Active CN103618743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310664889.9A CN103618743B (en) 2013-12-09 Operational Visit method, client of accelerating, acceleration service end and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310664889.9A CN103618743B (en) 2013-12-09 Operational Visit method, client of accelerating, acceleration service end and system

Publications (2)

Publication Number Publication Date
CN103618743A CN103618743A (en) 2014-03-05
CN103618743B true CN103618743B (en) 2016-11-30

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7249196B1 (en) * 2000-10-06 2007-07-24 Juniper Networks, Inc. Web page source file transfer system and method
CN103384181A (en) * 2012-05-04 2013-11-06 华为技术有限公司 Data packet transmission method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7249196B1 (en) * 2000-10-06 2007-07-24 Juniper Networks, Inc. Web page source file transfer system and method
CN103384181A (en) * 2012-05-04 2013-11-06 华为技术有限公司 Data packet transmission method and device

Similar Documents

Publication Publication Date Title
US8892768B2 (en) Load balancing apparatus and load balancing method
KR20210094077A (en) Methods, devices and systems for selecting mobile edge computing nodes
CN104009938A (en) Method and system for long connections based on router level
US10129722B2 (en) Service processing method and network device
US20140025800A1 (en) Systems and methods for multi-blade load balancing
EP3142306B1 (en) Openflow communication method, system, controller, and service gateway
US20080082674A1 (en) Method, Network and Network Proxy for Transmitting Information
CN106470136B (en) Platform test method and platform test system
US10084862B2 (en) Session control method and computer-readable storage medium storing computer program
CN106385354B (en) Message forwarding method and device
CN106686033A (en) Method, device and system for cache and service content
US10616321B2 (en) Distributed stateful load balancer
CN112104744A (en) Traffic proxy method, server and storage medium
CN105554125B (en) A kind of method and its system for realizing webpage fit using CDN
JP6693925B2 (en) Server, communication control system, and communication control method
CN106911732A (en) A kind of website visiting accelerating method and device
US20150350115A1 (en) Enhanced acknowledgement handling in communication packet transfer
EP3186959B1 (en) Enrichment of upper layer protocol content in tcp based session
CN107347085A (en) A kind of information acquisition method and device
CN107409047A (en) Encrypt the coordinate packet delivering of session
CN107995199A (en) The port speed constraint method and device of the network equipment
CN103618743B (en) Operational Visit method, client of accelerating, acceleration service end and system
CN103916489A (en) Method and system for resolving single-domain-name multi-IP domain name
JP6181577B2 (en) Policy control system and policy control program
JP2014222455A (en) Communication system, proxy server, communication method, and program

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant