CN101986648A - Negotiation method, device and network device of TCP option - Google Patents

Negotiation method, device and network device of TCP option Download PDF

Info

Publication number
CN101986648A
CN101986648A CN2010105592727A CN201010559272A CN101986648A CN 101986648 A CN101986648 A CN 101986648A CN 2010105592727 A CN2010105592727 A CN 2010105592727A CN 201010559272 A CN201010559272 A CN 201010559272A CN 101986648 A CN101986648 A CN 101986648A
Authority
CN
China
Prior art keywords
option
tcp
parameter value
negotiation
capability
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.)
Granted
Application number
CN2010105592727A
Other languages
Chinese (zh)
Other versions
CN101986648B (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
Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN 201010559272 priority Critical patent/CN101986648B/en
Publication of CN101986648A publication Critical patent/CN101986648A/en
Application granted granted Critical
Publication of CN101986648B publication Critical patent/CN101986648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a negotiation method, device and network switching device of TCP option. The method comprises the following steps: a TCP handshake message is created and sent to a network device on the opposite terminal, wherein the TCP AD option of the message contains a first Flag field and a negotiation option parameter value and/or optimized capability option parameter value supported by a local network device; the TCP handshake response message sent by the network device on the opposite terminal is received; according to the value of a second Flag field in the AD option of the message and a negotiation option parameter value and/or optimized capability option parameter value supported by the network device on the opposite terminal, the negotiation option and optimized capability option supported by the network device on the opposite terminal are obtained; and the intersection operation of the obtained optimized capability option and the optimized capability option supported by the local network device is performed, and the optimization to be performed is determined. The method of the invention solves the problem that the existing network device is difficult to perform optimized capability negotiation when the TCP handshake message contains a private option.

Description

A kind of machinery of consultation of tcp option, device and the network equipment
Technical field
The present invention relates to the data communication field, relate in particular to a kind of transmission control protocol (TransmissionControl Protocol, TCP) machinery of consultation of option, device and the network equipment.
Background technology
At present, the wide area network transmission problem of enterprise-class tools is mainly from two aspects, i.e. link and application.Link problem comprises limited bandwidth, network delay is big, packet loss is serious etc.; The problem of using then concentrates on the transmission of big data quantity, and uses from the low transmission efficient under wan environment.In order to realize Network Transmission and use mutual optimization that the network equipment for example wide area network acceleration equipment provides a whole set of optimisation technique.
The wide area network speed technology that the network equipment is commonly used mainly comprises following several: data de-duplication, data compression, TCP optimization and optimizing application (the TCP optimisation technique comprises: selective acknowledgment, window expansion, senior congestion management mechanism, TCP agency etc.) and bandwidth control.Current, each wide area network quickens the mainstream vendor and only quickens at transmission control protocol data stream, data transfer optimization between two network equipments mainly is to finish by the TCP proxy module on the network equipment at present, the network equipment is intercepted and captured the message of TCP earlier, give the TCP proxy module of self to handle, carry out optimizing application then, carry out data de-duplication and data compression behind the optimizing application again, last TCP agency sends the data to the receiving terminal of data again.
For data de-duplication and data compression technique, because the network equipment of transmitting terminal has changed original data, the network equipment of receiving terminal must restore initial data, so must all support these two kinds of technology just can guarantee the correctness of transfer of data by two network equipments.But the ability of two network equipment supports of transmitting-receiving two-end may be different, for example, support data de-duplication and data compression, only support data compression technique for other one for one, then need in this case acceleration capacity is held consultation, get a common factor of two equipment acceleration capacities.Present most of manufacturer utilizes the automatic discovery technique of TCP to carry out the negotiation of wide area network acceleration capacity.
Privately owned option of adding carries acceleration capacity information to the automatic discovery technique of TCP in the three-way handshake message by connecting at TCP, and the KIND of privately owned option (types value) can be a present untapped value, as 33.The length of privately owned option is generally 12 bytes, be defined as TCP find automatically option (TCP AutoDiscovery Option, TCPAD), TCP AD option comprises following information usually:
1, whether other network equipment present networks equipment of instruction announcement are want this connection is optimized (taking 2 bytes).
2, the ID of the MAC Address of acceleration equipment main interface as equipment used in the device identification of present networks equipment (taking 6 bytes), can guarantee global uniqueness like this.
3, optimize ability information (taking 2 bytes).Definition present networks equipment is want to use which optimization in this TCP connection, such as can only using data compression, perhaps only uses TCP to optimize, and perhaps three (data compression, data de-duplication, TCP optimize) uses simultaneously, or what does not use.
The form of TCP AD option as shown in Figure 1, wherein KIND and LENGTH field take 1 byte respectively.
In the SYN that TCP AD option only is applied in TCP and the SYN/ACK message and be connected in the ACK message (being the three-way handshake message) in the process of foundation.TCP agency's automatic discovery procedure is as shown in Figure 2:
In Fig. 2, A is a client (PC), B and C represent the network equipment respectively, D is a station server, set up connecting that TCP is connected for A and D through being broken down into 3 TCP behind the network equipment, after equipment B intercepted the SYN message that A sends, its TCP proxy module added the TCPAD option in message, this message is forwarded again.Equipment C resolves this TCP AD option after receiving the SYN message of band TCP AD option, preserves the device id of B and the optimization ability of support, again original message is sent to D; D receives the message of band TCP AD option, because TCP AD is privately owned option, D can't resolve, so directly ignore this option, only parses non-privately owned option, responds the SYN+ACK message then and gives A.Equipment C intercepts the SYN+ACK message that D sends, add TCP AD option and send to A, an and common factor of the optimization ability of the optimization ability of calculating oneself and B, thereby draw the optimization that this connection need be carried out, equipment B intercepts the message of the band TCP AD option that C sends, and resolves the SYN+ACK message of band TCP AD option, calculates a common factor of self optimization ability and the optimization ability of C, the result who draws is issued C by the ACK message, simultaneously the SYN+ACK message is transmitted to A.Connect the three-way handshake process of setting up by above-mentioned TCP, is connected for all TCP of A and D, B and C will negotiate the optimization ability, and the message of follow-up reception will be optimized processing according to these abilities, reach the purpose to TCP stream acceleration on the wide area network.
There is following problems in the wide area network speed technology of conventional network equipment:
Because the head length of the message of Transmission Control Protocol regulation can reach 60 bytes (comprising TCP head and tcp option length) at most, wherein variety of option length summation is 40 bytes to the maximum, Transmission Control Protocol is in communication process, some non-privately owned tcp options of portability in the SYN message, as maximum message segment segment length (Maximum Segment Size, MSS) option, window expansion (Window scaling, WS) option, timestamp (Time Stamp, TS) option and selective acknowledgment (Selective Acknowledgment, SACK) allow option, under the situation of considering 4 byte-aligned, wherein mss option length need take 4 bytes (4 bytes of option actual size), window spreading factor option need take 4 bytes (3 bytes of option actual size), the timestamp option need take 12 bytes (10 bytes of option actual size), SACK allows option need take 4 bytes (2 bytes of option actual size), if add the 5th edition (Message Digest Algorithm of message digest algorithm, MD5) option (length of this option need take 20 bytes), the Total Options total length of adding up has surpassed 40 bytes so, in order to solve the problem that tcp option length surpasses the agreement regulation, usually tcp protocol stack can allow SACK option and timestamp option to put together, can make Total Options length summation reach 40 bytes just like this, even so also can't add other option again, the network equipment faces to be difficult to carry in the TCP handshake message indicates the privately owned option of optimizing ability information to be optimized the problem of the negotiation of ability.
Summary of the invention
The embodiment of the invention provides a kind of machinery of consultation, device and network equipment of tcp option, is difficult to carry the problem that the privately owned option of indicating the optimization ability information is optimized capability negotiation in order to solve conventional network equipment in the TCP handshake message.
The embodiment of the invention provides the machinery of consultation of transmission control protocol tcp option, comprising:
Structure TCP handshake message is sent to the opposite end network equipment, and the TCP of described TCP handshake message finds that automatically the AD option comprises the negotiation option parameter value of the first sign Flag field and local network device support and/or optimizes the capability option parameter value; Each bit order by appointment identifies negotiation option or the optimization capability option whether local network device supports this bit correspondence successively in the described Flag field;
Receive TCP that the opposite end network equipment the sends back message using of shaking hands; According to described TCP shake hands the second sign Flag field in the TCP AD option of back message using value and negotiation option parameter value that the opposite end network equipment is supported and/or optimize the capability option parameter value, obtain the negotiation option that the opposite end network equipment supported and optimize capability option; Each bit order by appointment identifies negotiation option or the optimization the capability option whether described opposite end network equipment supports this bit correspondence successively in described the 2nd Flag field;
Optimization capability option of obtaining and the optimization capability option of self supporting are sought common ground, determine TCP between the local network device and the opposite end network equipment is connected the required optimization of carrying out.
The consulting device of a kind of transmission control protocol tcp option that the embodiment of the invention provides comprises:
TCP handshake message structural unit is used to construct transmission control protocol TCP handshake message; The shake hands TCP of back message using of described TCP finds that automatically the AD option comprises the negotiation option parameter value that the first sign Flag field and local network device support and/or optimizes the capability option parameter value; Each bit order by appointment identifies negotiation option or the optimization capability option whether local network device supports this bit correspondence successively in the described Flag field;
The packet sending and receiving unit is used to send the TCP handshake message of TCP handshake message structural unit structure, and receives TCP that the opposite end network equipment the sends back message using of shaking hands;
Resolution unit, be used for according to described TCP shake hands back message using TCPAD option second sign Flag field value and negotiation option parameter value that the opposite end network equipment is supported and/or optimize the capability option parameter value, obtain the negotiation option that the opposite end network equipment supported and optimize capability option; Each bit order by appointment identifies negotiation option or the optimization the capability option whether described opposite end network equipment supports this bit correspondence successively in described the 2nd Flag field;
Optimization capability negotiation unit is used for the optimization capability option that will obtain and the optimization capability option of self supporting seeks common ground, and determines this TCP is connected the required optimization of carrying out.
The embodiment of the invention also provides a kind of network equipment, comprises the consulting device of the above-mentioned transmission control protocol option that the embodiment of the invention provides.
The beneficial effect of the embodiment of the invention comprises:
The machinery of consultation of the tcp option that the embodiment of the invention provides, device and the network equipment, structure comprises the TCP handshake message of the TCP AD option after the improvement to the opposite end network equipment, comprises negotiation option parameter value and/or optimization capability option parameter value that a Flag field and local network device are supported in the TCP AD option of this TCP handshake message; Whether each bit of the one Flag field sequence identification local network device is by appointment supported the negotiation option of this bit correspondence or is optimized capability option, the opposite end network equipment receives that the TCP handshake message can be by the parsing to the TCPAD option, obtain various negotiation option and optimization capability option that local network device is supported, this opposite end network equipment also returns the back message using of shaking hands of the TCP with same format simultaneously, in the TCPAD of this back message using option, comprised and indicated this opposite end network equipment negotiation option of supporting and the 2nd Flag field of optimizing capability option, the local terminal network equipment can be according to this back message using of shaking hands, obtain various negotiation option and optimization capability option that the opposite end network equipment is supported, thereby finish the negotiations process of each tcp option.The non-privately owned option that the embodiment of the invention can be supported conventional network equipment and the relevant information of privately owned option are included among the TCP AD option, simplified the form of tcp option in original TCP handshake message, greatly compress tcp option shared space in the TCP handshake message, made the TCP handshake message become feasible carrying the relevant option of optimization ability that carries calcaneus rete network equipment on the basis of original option simultaneously.
Description of drawings
Fig. 1 is the form schematic diagram of TCP AD option in the prior art;
Fig. 2 is existing TCP agency's automatic discovery procedure flow chart;
The flow chart of the negotiation of the tcp option that Fig. 3 provides for the embodiment of the invention;
The flow chart of TCP AD option in the generation TCP message that Fig. 4 provides for the embodiment of the invention;
The schematic diagram of the form of the TCP AD option that Fig. 5 provides for the embodiment of the invention;
The structural representation of the consulting device of the tcp option that Fig. 6 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of machinery of consultation, device and the network equipment of a kind of tcp option that the embodiment of the invention is provided is described in detail.
The machinery of consultation of the tcp option that the embodiment of the invention provides as shown in Figure 3, comprises the steps:
S301, structure TCP handshake message are sent to the opposite end network equipment, and the TCPAD option of this TCP handshake message comprises the negotiation option parameter value of the first sign Flag field and local network device support and/or optimizes the capability option parameter value; Each bit order by appointment identifies negotiation option or the optimization capability option whether local network device supports this bit correspondence successively in the one Flag field;
S302, receive TCP that the opposite end network equipment the sends back message using of shaking hands;
S303, according to the TCP that receives shake hands the 2nd Flag field in the TCP AD option of back message using value and negotiation option parameter value that the opposite end network equipment is supported and/or optimize the capability option parameter value, obtain the negotiation option that the opposite end network equipment supported and optimize capability option; Each bit order by appointment identifies negotiation option or the optimization the capability option whether described opposite end network equipment supports this bit correspondence successively in the 2nd Flag field;
S304, the optimization capability option that will obtain and the optimization capability option of self supporting seek common ground, and determine TCP between the local network device and the opposite end network equipment is connected the required optimization of carrying out.
In the machinery of consultation of the tcp option that the embodiment of the invention provides, tcp option in the TCP handshake message mutual between the network equipment is partly improved, changed the form that original tcp option is made up of non-privately owned option and privately owned option, redefined the form of TCPAD option, cancel in the original TCPAD option " whether needing to optimize " and " optimization ability " two fields, with (the mss option for example of the most non-privately owned option in the existing tcp option, SACK allows option, the window scaling option, the timestamp option) and the relevant information of existing privately owned option (for example repeating to delete option and data compression option) all carry by the TCPAD option that redefines.
The TCP AD option that redefines comprises following several sections: negotiation option parameter value field that type (KIND) field, length (LENGTH) field, sign (FLAG) field and local WAN equipment MAC Address field and local network device are supported and/or optimization ability parameter value field.
In embodiments of the present invention, consult option and include but not limited to following option: mss option, timestamp option, window scaling option and selective acknowledgment allow option; Optimize capability option and include but not limited to following option: data de-duplication option and data compression option.
In embodiments of the present invention, only distinguish for convenience, be called " a Flag field " with carrying local network device negotiation option of supporting and the Flag field of optimizing capability option, be called " the 2nd Flag field " carrying the opposite end network equipment negotiation option of being supported and the Flag field of optimizing capability option.
Among the above-mentioned steps S301, each bit order by appointment in the one Flag field identifies negotiation option or the optimization ability whether local network device supports this bit correspondence successively, therefore receive after this handshake message, the opposite end network equipment can obtain local network device and support which TCP to consult option and optimization capability option according to the value of a Flag field;
Among the above-mentioned steps S303, each bit order by appointment in the 2nd Flag field identifies negotiation option or the optimization ability whether the opposite end network equipment supports this bit correspondence successively, therefore according to the value of the 2nd Flag field, local network device can obtain the opposite end network equipment and support which TCP to consult option and optimization capability option.
The length of the one Flag field or the 2nd Flag field can be according to the quantity decision of the actual negotiation option that will support and optimization capability option, if attribute field accounts for 1 byte, mean the maximum relevant information of supporting to carry 8 kinds of TCP negotiation options and optimizing capability option of this TCPAD option so.
Because the method how the opposite end network equipment constructs the back message using of shaking hands is similar with the step of step S301, to how constructing the TCP message among the step S301 be described in detail below therefore.
At first, need to generate negotiation option parameter value that comprises a Flag field and local network device support and/or the TCP AD option of optimizing the capability option parameter value;
According to the form of TCP handshake message, the TCP AD option with TCP header and generation is configured to the TCP handshake message then.
Particularly, in embodiments of the present invention, generate the process of TCP AD option in the TCP message, as shown in Figure 4, may further comprise the steps:
S401, generate the type field and the length field of TCP AD option successively;
S402, after length field, generate a Flag field;
S403, after a Flag field, fill in the negotiation option parameter value that local network device supports successively and/or optimize the capability option parameter value;
S404, the medium access control MAC Address of after consulting option parameter value and/or optimization capability option parameter value, filling in local network device;
The total length of S405, compute type field, length field, a Flag field and MAC Address field and negotiation option parameter value field and/or optimization capability option parameter value field; The total length that the calculates value as length field is written in the length field.
In above-mentioned steps S402 step, if if a Flag field represents that with a byte Flag field can be defined as follows:
#define TCP_AD_MSS_FLAG 0x01/* represent TCP AD option comprise mss option */
#define TCP_AD_WS_FLAG 0x02/* represent the TCPAD option comprise window scaling option */
#define TCP_AD_TS_FLAG 0x04/* represent the TCPAD option comprise timestamp option */
#define TCP_AD_SACK_PERM_FLAG 0x08/* represent TCP AD option comprise SACK allow option */
#define TCP_AD_DRE_FLAG 0x10/* represent TCP AD option comprise data de-duplication option */
#define TCP_AD_LZ_FLAG 0x20/* represent TCP AD option comprise data compression option */
Among the above-mentioned steps S403, the negotiation option that need support according to the network equipment and the concrete needs of optimizing capability option, after a flag field, fill in the relevant parameters value, this parameter value can only comprise consults option relevant parameters value, perhaps only comprise the parameter value of optimizing capability option, perhaps comprise the parameter value of consulting option and the parameter value of optimizing capability option simultaneously.
Because SACK allows option to be used for just illustrating whether local network device needs to support the SACK function, and do not need to indicate further the value of this option correspondence, if, need in the TCPAD option, further not fill in this option corresponding parameters value so a FLAG field has comprised when whether supporting the bit of TCP_AD_SACK_PERM_FLAG option.
In like manner, these two of data de-duplication and data compressions are optimized capability option and are illustrated just also whether local network device supports this two functions, so also need further not fill in this option corresponding parameters value in TCP AD option.
When a flag field mark local network device when for example supporting mss option, window scaling option, timestamp option, then need fill in the relevant parameter value of these options in a Flag field back, value as the MSS of mss option correspondence, timestamp option time corresponding stamp value, the window spreading factor of window scaling option correspondence etc.
The opposite end network equipment obtains the option parameter value rapidly and accurately and/or optimizes the ability parameter value for convenience, preferably, in above-mentioned steps S403, consult the option parameter value in the TCP AD option and/or optimize the ability parameter value according to the sequence arrangement of respectively consulting option and the ability of optimization corresponding identification position in the Flag field, just will with a Flag field in respectively consult option and optimize the sequencing of ability corresponding identification position consistent, suppose that the 3rd bit expresses support for mss option in the identification section, the 5th bit expresses support for the window scaling option, so after a Flag field, be arranged in order the value of the window spreading factor of the value of MSS of mss option correspondence and window scaling option correspondence.
One of providing of the embodiment of the invention that shown in Figure 5 is comprises the expression local network device and supports mss option, SACK to allow the instantiation of form of the new TCPAD option of option, window scaling option, timestamp option, data de-duplication option and data compression option simultaneously, in this instantiation:
The value of KIND field is same as the prior art, can the choosing value be 33.The KIND fields account is with 1 byte, the LENGTH fields account is with 1 byte, the one FLAG fields account is with 1 byte, the MSS value field takies 2 bytes, window spreading factor (WS) fields account takies 8 bytes with 1 byte, timestamp (TS) value field, and the MAC Address value field takies 6 bytes, each field is added up and is come to 20 bytes, so the value of LENGTH field is 20.The value of the one Flag field is for (TCP_AD_MSS_FLAG|TCP_AD_WS_FLAG|TCP_AD_TS_FLAG|TCP_AD_DRE _ FLAG|TCP_AD_LZ_FLAG) is 0x37.
If the total length of above-mentioned each field is not 4 multiple in the whole TCP AD option, according to the principle of 4 byte-aligned, also need to utilize nothing operation (NOP) option of TCP to fill remaining field, the total length of the option of the TCP AD after feasible the filling is 4 multiple.
In this example, removed mss option in the existing non-privately owned option, SACK allows option, KIND and LENGTH field in window scaling option and each option of timestamp option, with mss option, SACK allows option, window scaling option and timestamp option and privately owned option are that the relevant information of data de-duplication option and data compression option merges in the same TCP AD option, do not need to consider respectively again the rule of field 4 byte-aligned of above-mentioned each option, adopt 1 byte promptly to identify all negotiation options and optimization capability option and relevant parameter value that local WAN equipment can be supported, greatly reduced the shared space of original tcp option.
Because this example is to carry mss option simultaneously at TCP AD option, SACK allows option, the window scaling option, the timestamp option, under the situation of data de-duplication option and data compression option, the TCPAD option can reach maximum length, in such cases, this TCP AD choice format length is 20 bytes, maximum length much smaller than the tcp option of Transmission Control Protocol regulation, even add for example MD5 option etc. of other options, the total length that also still can satisfy each option is no more than the total length of Transmission Control Protocol regulation, has realized carrying in the TCP three-way handshake message data de-duplication option and the data compression option that carry indication optimization ability on the basis of original option simultaneously.
Need to prove, the machinery of consultation of the tcp option that the embodiment of the invention provides in the specific implementation, there is not strict sequencing between step S301 and the step S302~S304, with network topology shown in Figure 2 is example, for network equipment B, equipment B is at first constructed SYN message (handshake message), and to be sent to the opposite end network equipment be equipment C, and this SYN message comprises the TCPAD option of embodiment of the invention improved; The SYN ACK message that returns of equipment B receiving equipment C then, resolve the FLAG field in the TCP AD option of this message, know which equipment C supports consult option and optimization capability option and relevant parameters value, and support to optimize capability option according to self, try to achieve the common factor of optimizing capability option.Equipment B among Fig. 2 is finished the negotiation of tcp option according to the order of S301~S304.
For network equipment C, equipment C at first receives the SYN message that equipment B sends, the TCP AD option of resolving in this SYN message obtains negotiation option and the optimization capability option that equipment B is supported, the optimization capability option of equipment B support and the optimization capability option of self supporting are tried to achieve common factor.Structure comprises the SYN ACK message of the TCP AD option of embodiment of the invention improved then, and is back to equipment B.Equipment C among Fig. 2 finishes the negotiation of tcp option according to the order of S302~S304, S301.
The machinery of consultation of the above-mentioned tcp option that the embodiment of the invention provides, be not only applicable to have now the network equipment that this needs of wide area network acceleration equipment are optimized capability negotiation, have the network equipment of same requirements to be suitable for too for other, the embodiment of the invention is not done qualification to this.
Based on same inventive concept, the embodiment of the invention also provides a kind of consulting device and network equipment of tcp option, because the principle that this device and equipment are dealt with problems is similar to the machinery of consultation of aforementioned a kind of tcp option, therefore the enforcement of this device and equipment can repeat part and repeat no more referring to the enforcement of method.
The consulting device of the tcp option that the embodiment of the invention provides as shown in Figure 6, comprising:
TCP handshake message structural unit 601 is used to construct transmission control protocol TCP handshake message; The shake hands TCP of back message using of described TCP finds that automatically the AD option comprises the negotiation option parameter value that the first sign Flag field and local network device support and/or optimizes the capability option parameter value; Each bit order by appointment identifies negotiation option or the optimization capability option whether local network device supports this bit correspondence successively in the described Flag field;
Packet sending and receiving unit 602 is used to send the TCP handshake message of TCP handshake message structural unit 601 structures, and receives TCP that the opposite end network equipment the sends back message using of shaking hands;
Resolution unit 603, be used for according to described TCP shake hands back message using TCPAD option second sign Flag field value and negotiation option parameter value that the opposite end network equipment is supported and/or optimize the capability option parameter value, obtain the negotiation option that the opposite end network equipment supported and optimize capability option; Each bit order by appointment identifies negotiation option or the optimization the capability option whether described opposite end network equipment supports this bit correspondence successively in described the 2nd Flag field;
Optimization capability negotiation unit 604 is used for the optimization capability option that will obtain and the optimization capability option of self supporting seeks common ground, and determines this TCP is connected the required optimization of carrying out.
Further, TCP handshake message structural unit 601 is used to generate negotiation option parameter value that comprises a described Flag field and local network device support and/or the TCPAD option of optimizing the capability option parameter value; Form according to the TCP handshake message of setting is configured to the TCP handshake message with TCP header and described TCP AD option.
Further, TCP handshake message structural unit 601 also is used for generating TCP AD option according to following step: the type field and the length field that generate TCP AD option successively; After described length field, generate a Flag field; After a Flag field, fill in negotiation option parameter value and/or optimization capability option parameter value that local network device is supported successively; The medium access control MAC Address of after described negotiation option parameter value and/or optimization capability option parameter value, filling in local network device; The total length of compute type field, length field, a Flag field and MAC Address field and negotiation option parameter value and/or optimization capability option parameter value field; The value of described total length as length field is written in the length field.
Further, TCP handshake message structural unit 601, also be used for negotiation option of supporting according to a Flag field local network device and the sequencing of optimizing the bit of capability option correspondence, fill in negotiation option parameter value and/or optimization capability option parameter value that local network device is supported successively.
The network equipment that the embodiment of the invention provides comprises the consulting device of the above-mentioned tcp option that the embodiment of the invention provides.
The network equipment that the embodiment of the invention provides, can be existing be existing wide area network acceleration equipment, perhaps other have the network equipment of the demand that is optimized capability negotiation, the embodiment of the invention is not done qualification to this.
The machinery of consultation of the tcp option that the embodiment of the invention provides, device and the network equipment, structure comprises the TCP handshake message of the TCP AD option after the improvement to the opposite end network equipment, comprises negotiation option parameter value and/or optimization capability option parameter value that a Flag field and local network device are supported in the TCP AD option of this TCP handshake message; Whether each bit of the one Flag field sequence identification local network device is by appointment supported the negotiation option of this bit correspondence or is optimized capability option, the opposite end network equipment receives that the TCP handshake message can be by the parsing to the TCPAD option, obtain various negotiation option and optimization capability option that local network device is supported, this opposite end network equipment also returns the back message using of shaking hands of the TCP with same format simultaneously, in the TCPAD of this back message using option, comprised and indicated this opposite end network equipment negotiation option of supporting and the 2nd Flag field of optimizing capability option, the local terminal network equipment can be according to this back message using of shaking hands, obtain various negotiation option and optimization capability option that the opposite end network equipment is supported, thereby finish the negotiations process of each tcp option.The non-privately owned option that the embodiment of the invention can be supported conventional network equipment and the relevant information of privately owned option are included among the TCP AD option, simplified the form of tcp option in original TCP handshake message, greatly compress tcp option shared space in the TCP handshake message, made the TCP handshake message become feasible carrying the relevant option of optimization ability that carries calcaneus rete network equipment on the basis of original option simultaneously.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (11)

1. the machinery of consultation of a transmission control protocol tcp option is characterized in that, comprising:
Structure TCP handshake message is sent to the opposite end network equipment, and the TCP of described TCP handshake message finds that automatically the AD option comprises the negotiation option parameter value of the first sign Flag field and local network device support and/or optimizes the capability option parameter value; Each bit order by appointment identifies negotiation option or the optimization capability option whether local network device supports this bit correspondence successively in the described Flag field;
Receive TCP that the opposite end network equipment the sends back message using of shaking hands; According to described TCP shake hands the second sign Flag field in the TCP AD option of back message using value and negotiation option parameter value that the opposite end network equipment is supported and/or optimize the capability option parameter value, obtain the negotiation option that the opposite end network equipment supported and optimize capability option; Each bit order by appointment identifies negotiation option or the optimization the capability option whether described opposite end network equipment supports this bit correspondence successively in described the 2nd Flag field;
Optimization capability option of obtaining and the optimization capability option of self supporting are sought common ground, determine TCP between the local network device and the opposite end network equipment is connected the required optimization of carrying out.
2. the method for claim 1 is characterized in that, structure TCP handshake message comprises:
Generation comprises the negotiation option parameter value of a described Flag field and local network device support and/or optimizes the TCPAD option of capability option parameter value;
Form according to the TCP handshake message of setting with TCP header and described TCP AD option, is configured to the TCP handshake message.
3. method as claimed in claim 2 is characterized in that, generates negotiation option parameter value that comprises a described Flag field and local network device support and/or the TCPAD option of optimizing the capability option parameter value, comprising:
Generate the type field and the length field of TCPAD option successively;
After described length field, generate a Flag field;
After a Flag field, fill in negotiation option parameter value and/or optimization capability option parameter value that local network device is supported successively;
The medium access control MAC Address of after described negotiation option parameter value and/or optimization capability option parameter value, filling in local network device;
The total length of compute type field, length field, a Flag field and MAC Address field and negotiation option parameter value and/or optimization capability option parameter value field;
The value of described total length as length field is written in the length field.
4. method as claimed in claim 3, it is characterized in that, according to the sequencing of local network device in the Flag field negotiation option of supporting and the bit of optimizing the capability option correspondence, fill in negotiation option parameter value and/or optimization capability option parameter value that local network device is supported successively.
5. as each described method of claim 1~4, it is characterized in that described negotiation option is an one of the following: maximum message segment segment length mss option, time stamp T S option, window expansion WS option and selective acknowledgment SACK allow option.
6. as each described method of claim 1~4, it is characterized in that described optimization capability option is an one of the following: data de-duplication option and data compression option.
7. the consulting device of a transmission control protocol tcp option is characterized in that, comprising:
TCP handshake message structural unit is used to construct transmission control protocol TCP handshake message; The shake hands TCP of back message using of described TCP finds that automatically the AD option comprises the negotiation option parameter value that the first sign Flag field and present networks equipment supports and/or optimizes the capability option parameter value; Each bit order by appointment identifies negotiation option or the optimization capability option whether local network device supports this bit correspondence successively in the described Flag field;
The packet sending and receiving unit is used to send the TCP handshake message of TCP handshake message structural unit structure, and receives TCP that the opposite end network equipment the sends back message using of shaking hands;
Resolution unit, be used for according to described TCP shake hands back message using TCPAD option second sign Flag field value and negotiation option parameter value that the opposite end network equipment is supported and/or optimize the capability option parameter value, obtain the negotiation option that the opposite end network equipment supported and optimize capability option; Each bit order by appointment identifies negotiation option or the optimization the capability option whether described opposite end network equipment supports this bit correspondence successively in described the 2nd Flag field;
Optimization capability negotiation unit is used for the optimization capability option that will obtain and the optimization capability option of self supporting seeks common ground, and determines this TCP is connected the required optimization of carrying out.
8. the device shown in claim 7, it is characterized in that, described TCP handshake message structural unit is further used for generating negotiation option parameter value that comprises a described Flag field and local network device support and/or the TCP AD option of optimizing the capability option parameter value; Form according to the TCP handshake message of setting with TCP header and described TCPAD option, is configured to the TCP handshake message.
9. device as claimed in claim 8 is characterized in that, TCP handshake message structural unit is further used for generating the TCPAD option according to following step: the type field and the length field that generate the TCPAD option successively; After described length field, generate a Flag field; After a Flag field, fill in negotiation option parameter value and/or optimization capability option parameter value that local network device is supported successively; The medium access control MAC Address of after described negotiation option parameter value and/or optimization capability option parameter value, filling in local network device; The total length of compute type field, length field, a Flag field and MAC Address field and negotiation option parameter value and/or optimization capability option parameter value field; The value of described total length as length field is written in the length field.
10. device as claimed in claim 9, it is characterized in that, TCP handshake message structural unit, be further used for negotiation option of supporting according to local network device in the Flag field and the sequencing of optimizing the bit of capability option correspondence, fill in negotiation option parameter value and/or optimization capability option parameter value that local network device is supported successively.
11. a network equipment is characterized in that the described network equipment comprises the consulting device as each described tcp option of claim 7-10.
CN 201010559272 2010-11-24 2010-11-24 Negotiation method, device and network device of TCP option Active CN101986648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010559272 CN101986648B (en) 2010-11-24 2010-11-24 Negotiation method, device and network device of TCP option

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010559272 CN101986648B (en) 2010-11-24 2010-11-24 Negotiation method, device and network device of TCP option

Publications (2)

Publication Number Publication Date
CN101986648A true CN101986648A (en) 2011-03-16
CN101986648B CN101986648B (en) 2012-12-12

Family

ID=43710951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010559272 Active CN101986648B (en) 2010-11-24 2010-11-24 Negotiation method, device and network device of TCP option

Country Status (1)

Country Link
CN (1) CN101986648B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833783A (en) * 2012-07-02 2012-12-19 北京邮电大学 Method for optimizing terminal control protocol (TCP) under wireless environment
WO2013026186A1 (en) * 2011-08-19 2013-02-28 华为技术有限公司 Method and apparatus for transmitting handshake information
CN103297430A (en) * 2013-05-24 2013-09-11 华为技术有限公司 Data transmission equipment and data transmission method
CN104104597A (en) * 2014-08-06 2014-10-15 腾讯科技(深圳)有限公司 Data transmission method, device and system
CN105207846A (en) * 2015-09-17 2015-12-30 新浪网技术(中国)有限公司 TCP stack delay statistical method, device and system
CN105939325A (en) * 2016-01-12 2016-09-14 杭州迪普科技有限公司 TCP (Transmission Control Protocol) bypass blocking method and device
WO2017067224A1 (en) * 2015-10-23 2017-04-27 中兴通讯股份有限公司 Packet processing method and apparatus
CN106685930A (en) * 2016-12-06 2017-05-17 深圳市深信服电子科技有限公司 Transmission control protocol option processing method and apparatus
CN106936875A (en) * 2015-12-30 2017-07-07 南京理工大学 Improvement TCP agent method based on wide area network data compression
CN107634915A (en) * 2017-08-25 2018-01-26 中国科学院计算机网络信息中心 Data transmission method, device and storage medium
CN107995037A (en) * 2017-12-04 2018-05-04 锐捷网络股份有限公司 The pre-judging method and device of a kind of wan optimization
CN109729047A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 A kind of message processing method and device
CN110098981A (en) * 2019-04-29 2019-08-06 厦门网宿有限公司 TCP connection method, network delay determine method, apparatus and server
WO2019196853A1 (en) * 2018-04-12 2019-10-17 华为技术有限公司 Tcp acceleration method and apparatus
CN112311870A (en) * 2020-10-28 2021-02-02 杭州安恒信息技术股份有限公司 TCP connection establishing method, device, equipment and system
CN114500626A (en) * 2020-11-12 2022-05-13 华为技术有限公司 Method, device and equipment for transmitting data and computer readable storage medium
CN114827098A (en) * 2021-01-28 2022-07-29 华为技术有限公司 Method and device for close shooting, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809070A (en) * 2006-01-26 2006-07-26 华为技术有限公司 Method of implementing resource control on access layer per VC in L2VPN
CN101150580A (en) * 2007-10-19 2008-03-26 中兴通讯股份有限公司 A number receiving method in session initialization protocol
US20090125629A1 (en) * 2004-04-30 2009-05-14 Jennings Iii Raymond B Method and apparatus for transparent negotiations

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090125629A1 (en) * 2004-04-30 2009-05-14 Jennings Iii Raymond B Method and apparatus for transparent negotiations
CN1809070A (en) * 2006-01-26 2006-07-26 华为技术有限公司 Method of implementing resource control on access layer per VC in L2VPN
CN101150580A (en) * 2007-10-19 2008-03-26 中兴通讯股份有限公司 A number receiving method in session initialization protocol

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103535002B (en) * 2011-08-19 2016-10-05 华为技术有限公司 The transmission method of handshaking information and equipment
CN103535002A (en) * 2011-08-19 2014-01-22 华为技术有限公司 Method and apparatus for transmitting handshake information
WO2013026186A1 (en) * 2011-08-19 2013-02-28 华为技术有限公司 Method and apparatus for transmitting handshake information
CN102833783A (en) * 2012-07-02 2012-12-19 北京邮电大学 Method for optimizing terminal control protocol (TCP) under wireless environment
CN102833783B (en) * 2012-07-02 2015-04-08 北京邮电大学 Method for optimizing terminal control protocol (TCP) under wireless environment
CN103297430B (en) * 2013-05-24 2017-04-26 华为技术有限公司 Data transmission equipment and data transmission method
CN103297430A (en) * 2013-05-24 2013-09-11 华为技术有限公司 Data transmission equipment and data transmission method
CN104104597B (en) * 2014-08-06 2015-08-12 腾讯科技(深圳)有限公司 A kind of data transmission method, Apparatus and system
CN104104597A (en) * 2014-08-06 2014-10-15 腾讯科技(深圳)有限公司 Data transmission method, device and system
CN105207846A (en) * 2015-09-17 2015-12-30 新浪网技术(中国)有限公司 TCP stack delay statistical method, device and system
CN105207846B (en) * 2015-09-17 2018-11-27 新浪网技术(中国)有限公司 A kind of statistical method of TCP protocol stack delay, apparatus and system
WO2017067224A1 (en) * 2015-10-23 2017-04-27 中兴通讯股份有限公司 Packet processing method and apparatus
CN106936875B (en) * 2015-12-30 2019-11-15 南京理工大学 Improvement TCP agent method based on wide area network data compression
CN106936875A (en) * 2015-12-30 2017-07-07 南京理工大学 Improvement TCP agent method based on wide area network data compression
US10348750B2 (en) 2016-01-12 2019-07-09 Hangzhou Dptech Technologies Co., Ltd. TCP bypass interdiction method and device
CN105939325A (en) * 2016-01-12 2016-09-14 杭州迪普科技有限公司 TCP (Transmission Control Protocol) bypass blocking method and device
CN106685930A (en) * 2016-12-06 2017-05-17 深圳市深信服电子科技有限公司 Transmission control protocol option processing method and apparatus
CN107634915A (en) * 2017-08-25 2018-01-26 中国科学院计算机网络信息中心 Data transmission method, device and storage medium
CN109729047A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 A kind of message processing method and device
CN107995037A (en) * 2017-12-04 2018-05-04 锐捷网络股份有限公司 The pre-judging method and device of a kind of wan optimization
WO2019196853A1 (en) * 2018-04-12 2019-10-17 华为技术有限公司 Tcp acceleration method and apparatus
CN110381007A (en) * 2018-04-12 2019-10-25 华为技术有限公司 TCP accelerating method and device
CN110098981A (en) * 2019-04-29 2019-08-06 厦门网宿有限公司 TCP connection method, network delay determine method, apparatus and server
CN112311870A (en) * 2020-10-28 2021-02-02 杭州安恒信息技术股份有限公司 TCP connection establishing method, device, equipment and system
CN114500626A (en) * 2020-11-12 2022-05-13 华为技术有限公司 Method, device and equipment for transmitting data and computer readable storage medium
WO2022100442A1 (en) * 2020-11-12 2022-05-19 华为技术有限公司 Data transmission method and apparatus, device, and computer readable storage medium
CN114827098A (en) * 2021-01-28 2022-07-29 华为技术有限公司 Method and device for close shooting, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN101986648B (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN101986648B (en) Negotiation method, device and network device of TCP option
Colitti et al. Integrating wireless sensor networks with the web
CN104580192B (en) The treating method and apparatus of the network access request of application program
CN102546800B (en) Handshake and communication methods for gateway, gateway and Web communication system
CN108200165B (en) Request Transmission system, method, apparatus and storage medium
WO2018165113A1 (en) Dynamic header compression for constrained networks
CN108200158B (en) Request Transmission system, method, apparatus and storage medium
CN103491172A (en) Method and system for sharing cloud file
EP2560337A1 (en) Method and system for realizing wireless usb flash disk
CN102546319A (en) Method and system for interworking between terminals of Internet of things
KR20170124187A (en) Iot platform having a funtion automatically compatible with the communication protocol
Karamitsios et al. Efficient IoT data aggregation for connected health applications
Hoebeke et al. A cloud-based virtual network operator for managing multimodal LPWA networks and devices
CN107368334A (en) A kind of business plug-in unit interactive system and method
WO2012173853A1 (en) Real-time data monitoring based on data push
KR20160103110A (en) Network element data access method and apparatus, and network management system
CN109587028A (en) A kind of method and apparatus controlling client traffic
EP4030725A1 (en) Data subscription method, apparatus and system
CN105577546A (en) Method for actively requesting access based on QoS
JP6393475B2 (en) Communication adapter device, communication system, tunnel communication method, and program
CN102845042B (en) The aggregation of bandwidth system and method for the multiple movable physical interface of a kind of application layer
CN110771117B (en) Session layer communication using ID-oriented network
KR101645251B1 (en) Protocol dynamic configuration system for reflecting network characteristics in service oriented architecture and Method thereof
TW200807988A (en) Configuring a host device by way of MMP
JP2018528641A (en) Communication policy control in machine-to-machine communication system

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