CN101986648B - 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
CN101986648B
CN101986648B CN 201010559272 CN201010559272A CN101986648B CN 101986648 B CN101986648 B CN 101986648B CN 201010559272 CN201010559272 CN 201010559272 CN 201010559272 A CN201010559272 A CN 201010559272A CN 101986648 B CN101986648 B CN 101986648B
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.)
Active
Application number
CN 201010559272
Other languages
Chinese (zh)
Other versions
CN101986648A (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
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

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

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 (Transmission Control 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 kinds: 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 mainstream vendor and only quickens to transmission control protocol data stream, and the data transfer optimization between two network equipments mainly is to accomplish through the TCP proxy module on the network equipment at present, and 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 possibly be different; For example, support data de-duplication and data compression, only support data compression technique for other one for one; Then need hold consultation in this case, get a common factor of two equipment acceleration capacities acceleration capacity.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 through 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 (TCPAuto Discovery Option, TCPAD), the TCPAD 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).Which optimization is definition present networks devices want use in this TCP connection, such as can only using data compression, perhaps only use 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 is as shown in Figure 1, and 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), and B and C represent the network equipment respectively, and 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 was intercepted and captured 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 and captures the SYN+ACK message that D sends, and add TCP AD option and send to A, and a 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 is intercepted and captured the message of the band TCP AD option that C sends, and resolves the SYN+ACK message of band TCP AD option, calculates the common factor of optimization ability of self optimization ability and C; The result who draws is issued C through the ACK message, simultaneously the SYN+ACK message is transmitted to A.Connect the three-way handshake process of setting up through 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 that TCP on the wide area network is flowed acceleration.
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; Like 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; Considering under the situation of 4 byte-aligned that wherein mss option length need take 4 bytes (4 bytes of option actual size), window spreading factor option and need take that 4 bytes (3 bytes of option actual size), 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 message digest algorithm the 5th edition (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, tcp protocol stack can allow option and timestamp option to put together SACK usually, 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 in the TCP handshake message, carry 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 in the TCP handshake message, 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.
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 said 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 that this bit is corresponding successively in the said Flag field;
Receive TCP that the opposite end network equipment the sends back message using of shaking hands; According to said 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 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 said opposite end network equipment supports that this bit is corresponding successively in said the 2nd Flag field;
The optimization capability option of the optimization capability option of obtaining and self support is sought common ground, confirm 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 TCP of said 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 that this bit is corresponding successively in the said 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 said 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 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 said opposite end network equipment supports that this bit is corresponding successively in said the 2nd Flag field;
Optimize the capability negotiation unit, be used for the optimization capability option of the optimization capability option of obtaining and self support is sought common ground, confirm 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 TCP handshake message to the opposite end network equipment of the TCP AD option after the improvement, 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 that this bit is corresponding or is optimized capability option; The opposite end network equipment receives that the TCP handshake message can be through 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 TCP of this back message using AD 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 accomplish 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 sketch map 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 sketch map 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 at length explained.
The machinery of consultation of the tcp option that the embodiment of the invention provides, as shown in Figure 3, comprise 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 that this bit is corresponding 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 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 said opposite end network equipment supports that this bit is corresponding 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 confirm 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; Again defined the form of TCP AD option; Whether " need optimize " and " optimization ability " two fields, the most non-privately owned option in the existing tcp option (for example mss option, SACK allow option, window scaling option, timestamp option) and the relevant information of existing privately owned option (for example repeating to delete option and data compression option) are all carried through the TCP AD option of definition again if canceling in the original TCP AD option.
Again the TCP AD option of definition 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; Be merely and made things convenient for differentiation; 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 that this bit is corresponding 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 that this bit is corresponding 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 determine according to actual institute the negotiation option that will support and the quantity of optimizing 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 optimization 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, therefore followingly carry out detailed explanation to how constructing the TCP message among the step S301.
At first, need to generate negotiation option parameter value that comprises a Flag field and local network device support and/or the TCPAD 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 TCPAD 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, after consulting the option parameter value and/or optimizing the capability option parameter value, fill in the medium access control MAC Address of 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 value of the total length that calculates as length field is written in the length field.
In above-mentioned steps S402 step, if if a Flag field representes that with a byte Flag field can define as follows:
#define TCP_AD_MSS_FLAG 0x01/* represent TCP AD option comprise mss option */
#define TCP_AD_WS_FLAG 0x02/* represent TCP AD option comprise window scaling option */
#define TCP_AD_TS_FLAG 0x04/* represent TCP AD 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 comprises the parameter value of optimizing capability option, perhaps comprises the parameter value of consulting option and the parameter value of optimizing capability option simultaneously.
Because SACK allows option to be used for just explaining whether local network device need support the SACK function; And do not need to indicate further the corresponding value of this option; 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 explained just also whether local network device supports this two functions, so also need in TCP AD option, further not fill in this option corresponding parameters value.
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 at the back in a Flag field; Value like the corresponding MSS of mss option; Timestamp option time corresponding stamp value, the window spreading factor that the window scaling option is corresponding etc.
The opposite end network equipment obtains the option parameter value rapidly and accurately and/or optimizes the ability parameter value for ease; 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 respectively consulting the sequence arrangement of option in the Flag field with the ability of optimization corresponding identification position; Just will with a Flag field in respectively to consult option consistent with the sequencing of optimizing ability corresponding identification position; Suppose in the identification section that the 3rd bit expresses support for mss option, the 5th bit expresses support for the window scaling option, so after a Flag field, be arranged in order the value of the corresponding window spreading factor of value and the window scaling option of the corresponding MSS of mss option.
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 identical with prior art, can the choosing value be 33.The KIND fields account is with 1 byte, and the LENGTH fields account is with 1 byte, and a FLAG fields account is with 1 byte; The MSS value field takies 2 bytes; Window spreading factor (WS) fields account is with 1 byte, and timestamp (TS) value field takies 8 bytes, 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 for (TCP_AD_MSS_FLAG|TCP_AD_WS_FLAG | TCP_AD_TS_FLAG | TCP_AD_DRE_FLAG | TCP_AD_LZ_FLAG) be 0x37.
If the total length of above-mentioned each field is not 4 multiple in the whole TCP AD option; Principle according to 4 byte-aligned; Also need 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; KIND and LENGTH field in mss option in the existing non-privately owned option, SACK permission option, window scaling option and each option of timestamp option have been removed; It is that the relevant information of data de-duplication option and data compression option merges in the same TCP AD option that mss option, SACK are allowed option, window scaling option and timestamp option and privately owned 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 instance is to carry simultaneously under the situation of mss option, SACK permission option, window scaling option, timestamp option, data de-duplication option and data compression option at TCP AD 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 in the TCP three-way handshake message, carrying the 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; Not having strict sequencing between step S301 and the step S302 ~ S304, is example with network topology shown in Figure 2, 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 TCP AD 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 according to self support to optimize capability option, try to achieve the common factor of optimizing capability option.Equipment B among Fig. 2 is accomplished 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 is sent; The TCP AD option of resolving in this SYN message obtains the negotiation option and optimization capability option that equipment B is supported, the optimization capability option and the optimization capability option of self supporting of equipment B support 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 accomplishes 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 with 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 TCP of said 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 that this bit is corresponding successively in the said 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 said TCP shake hands back message using TCP AD 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 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 said opposite end network equipment supports that this bit is corresponding successively in said the 2nd Flag field;
Optimize capability negotiation unit 604, be used for the optimization capability option of the optimization capability option of obtaining and self support is sought common ground, confirm 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 said 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 said 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 said 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; Fill in the medium access control MAC Address of local network device in said negotiation option parameter value and/or after optimizing the capability option parameter value; 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 said total length as length field is written in the length field.
Further; TCP handshake message structural unit 601; The sequencing that also is used for negotiation option of supporting according to a Flag field local network device and the bit of optimizing the capability option correspondence is filled in the negotiation option parameter value of local network device support successively and/or is optimized the capability option parameter value.
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 TCP handshake message to the opposite end network equipment of the TCP AD option after the improvement, 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 that this bit is corresponding or is optimized capability option; The opposite end network equipment receives that the TCP handshake message can be through the parsing to TCP AD 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 TCP of this back message using AD 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 accomplish 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, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, 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 said 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 that this bit is corresponding successively in the said Flag field;
Receive TCP that the opposite end network equipment the sends back message using of shaking hands; According to said 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 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 said opposite end network equipment supports that this bit is corresponding successively in said the 2nd Flag field;
The optimization capability option of the optimization capability option of obtaining and self support is sought common ground, confirm 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 said Flag field and local network device support and/or optimizes the TCP AD option of capability option parameter value;
Form according to the TCP handshake message of setting with TCP header and said 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 said 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 TCP AD option successively;
After said 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;
Fill in the medium access control MAC Address of local network device in said negotiation option parameter value and/or after optimizing the capability option parameter value;
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 said total length as length field is written in the length field.
4. method as claimed in claim 3; It is characterized in that; The sequencing of the bit that the negotiation option of supporting according to local network device in the Flag field is corresponding with optimizing capability option is filled in the negotiation option parameter value of local network device support successively and/or is optimized the capability option parameter value.
5. like each described method of claim 1 ~ 4, it is characterized in that said negotiation option is one of following: maximum message segment segment length mss option, time stamp T S option, window expansion WS option and selective acknowledgment SACK allow option.
6. like each described method of claim 1 ~ 4, it is characterized in that said optimization capability option is one of 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 TCP of said TCP handshake message finds that automatically the AD option comprises the negotiation option parameter value of the first sign Flag field and the support of present networks equipment 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 that this bit is corresponding successively in the said 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 said TCP shake hands back message using TCP AD 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 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 said opposite end network equipment supports that this bit is corresponding successively in said the 2nd Flag field;
Optimize the capability negotiation unit, be used for the optimization capability option of the optimization capability option of obtaining and self support is sought common ground, confirm this TCP is connected the required optimization of carrying out.
8. the device shown in claim 7; It is characterized in that; Said TCP handshake message structural unit is further used for generating negotiation option parameter value that comprises a said 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 said TCP AD 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 TCP AD option according to following step: the type field and the length field that generate TCP AD option successively; After said 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; Fill in the medium access control MAC Address of local network device in said negotiation option parameter value and/or after optimizing the capability option parameter value; 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 said 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 the sequencing of negotiation option of supporting according to local network device in the Flag field and the bit of optimizing the capability option correspondence, fill in the negotiation option parameter value of local network device support successively and/or optimize the capability option parameter value.
11. a network equipment is characterized in that the said network equipment comprises the consulting device like 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 CN101986648A (en) 2011-03-16
CN101986648B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729047A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 A kind of message processing method and device

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013026186A1 (en) * 2011-08-19 2013-02-28 华为技术有限公司 Method and apparatus for transmitting handshake information
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
CN104104597B (en) * 2014-08-06 2015-08-12 腾讯科技(深圳)有限公司 A kind of data transmission method, Apparatus and system
CN105207846B (en) * 2015-09-17 2018-11-27 新浪网技术(中国)有限公司 A kind of statistical method of TCP protocol stack delay, apparatus and system
CN106612256A (en) * 2015-10-23 2017-05-03 中兴通讯股份有限公司 Message processing method and message processing device
CN106936875B (en) * 2015-12-30 2019-11-15 南京理工大学 Improvement TCP agent method based on wide area network data compression
CN105939325A (en) * 2016-01-12 2016-09-14 杭州迪普科技有限公司 TCP (Transmission Control Protocol) bypass blocking method and device
CN106685930B (en) * 2016-12-06 2020-03-31 深信服科技股份有限公司 Method and device for processing transmission control protocol options
CN107634915A (en) * 2017-08-25 2018-01-26 中国科学院计算机网络信息中心 Data transmission method, device and storage medium
CN107995037B (en) * 2017-12-04 2021-06-18 锐捷网络股份有限公司 Pre-judging method and device for wide area network optimization
CN110381007B (en) * 2018-04-12 2021-01-08 华为技术有限公司 TCP acceleration 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
CN114827098A (en) * 2021-01-28 2022-07-29 华为技术有限公司 Method and device for close shooting, electronic equipment and readable storage medium

Citations (2)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7478160B2 (en) * 2004-04-30 2009-01-13 International Business Machines Corporation Method and apparatus for transparent negotiations

Patent Citations (2)

* 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729047A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 A kind of message processing method and device

Also Published As

Publication number Publication date
CN101986648A (en) 2011-03-16

Similar Documents

Publication Publication Date Title
CN101986648B (en) Negotiation method, device and network device of TCP option
US11032739B2 (en) Dynamic header compression for constrained networks
Colitti et al. Integrating wireless sensor networks with the web
CN102546319B (en) The method and system of interworking between terminals of Internet of things
CN103339901A (en) Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
CN101262478A (en) Method and device for penetrating NAT
CN108200158B (en) Request Transmission system, method, apparatus and storage medium
EP2560337A1 (en) Method and system for realizing wireless usb flash disk
CN102547474B (en) Extension XMPP protocol fusion RMTP realizes video monitoring system and method
KR20170124187A (en) Iot platform having a funtion automatically compatible with the communication protocol
US20150127837A1 (en) Relay apparatus and data transfer method
Karamitsios et al. Efficient IoT data aggregation for connected health applications
CN105262836A (en) Information push method of server and push information reception method of client
Hoebeke et al. A cloud-based virtual network operator for managing multimodal LPWA networks and devices
CN106161130A (en) The performance monitoring device of sing on web Socket agreement, system and method
Baumgärtner et al. B-dtn7: Browser-based disruption-tolerant networking via bundle protocol 7
CN103379182A (en) Data transmission method and client sides
CN107623752A (en) Network management and device based on link layer
CN110771117B (en) Session layer communication using ID-oriented network
KR20160103110A (en) Network element data access method and apparatus, and network management system
JP6393475B2 (en) Communication adapter device, communication system, tunnel communication method, and program
TW200807988A (en) Configuring a host device by way of MMP
CN102845042A (en) System and method for aggregating bandwidth of multiple active physical interfaces on application layer
Seoane et al. Performance evaluation of the CoAP protocol with security support for IoT environments
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