CN106612256A - Message processing method and message processing device - Google Patents

Message processing method and message processing device Download PDF

Info

Publication number
CN106612256A
CN106612256A CN201510697647.9A CN201510697647A CN106612256A CN 106612256 A CN106612256 A CN 106612256A CN 201510697647 A CN201510697647 A CN 201510697647A CN 106612256 A CN106612256 A CN 106612256A
Authority
CN
China
Prior art keywords
tcp
message
information
timestamp information
option
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.)
Pending
Application number
CN201510697647.9A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510697647.9A priority Critical patent/CN106612256A/en
Priority to PCT/CN2016/088431 priority patent/WO2017067224A1/en
Publication of CN106612256A publication Critical patent/CN106612256A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/166IP fragmentation; TCP segmentation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a message processing method and a message processing device, and relates to the technical field of wireless communication. Air interface resources can be saved. The message processing method comprises the following steps: receiving a transmission control protocol TCP message sent by first equipment; determining whether the TCP message includes timestamp information; if the TCP message includes timestamp information, reassembling the TCP message, wherein the TCP message after reassembly does not include timestamp information; and sending the TCP message after reassembly to second equipment. The method and the device are mainly used in TCP message transmission.

Description

A kind of message processing method and device
Technical field
The present invention relates to wireless communication technology field, more particularly to a kind of message processing method and device.
Background technology
With the continuous development of data service, demand more and more higher of the user to quality of service.For wireless neck For the block domain data in domain, typically using TCP (Transmission Control Protocol, transmission control Agreement) agreement is transmitted, therefore lifting performance of the Transmission Control Protocol in radio bearer becomes more and more important.
In Transmission Control Protocol, ensure the reliability of transmission data mainly adopting by way of confirming Property.The first equipment of TCP can start retransmission timer after message is sent.If in retransmission timer RTO (Retransmission Time Out, retransmission time out time) does not receive the second equipment before reaching Response, the first equipment of TCP then need retransmit the message.Wherein, the size of RTO is with TCP links RTT (Round Trip Time, loopback delay) is relevant.
In order to accurately calculate the loopback delay of TCP links, Transmission Control Protocol provides timestamp option.Specifically , the first equipment of TCP and the second equipment bracelet section that is in one's hands consults whether both sides support timestamp option.Such as Fruit both sides support that timestamp option, the first equipment of TCP carry the timestamp of local terminal in which sends message, The second equipment of TCP carries the timestamp of reception in its response message and is sent to the first equipment of TCP.This Sample, the first equipment of TCP is according to the time for sending timestamp with receive response message, you can obtain RTT.
For wireless network, interface-free resources are extremely limited.If each TCP message carries the time Stamp option, for the smaller TCP message of length, this be probably than larger expense, The waste of interface-free resources is in turn resulted in.
The content of the invention
In view of this, the present invention provides a kind of message processing method and device, can save interface-free resources.
To solve above-mentioned technical problem, the present invention provides a kind of message processing method, including:
Receive the transmission control protocol TCP message of the first equipment transmission;
Determine whether the TCP message includes timestamp information;
If the TCP message includes timestamp information, the TCP message is re-assemblied, wherein again TCP message after assembling does not include timestamp information;
TCP message to after re-assemblying described in the transmission of the second equipment.
Preferably, it is described to determine whether the TCP message includes including timestamp information:
Determine whether the TCP message is TCP handshake message;
If the message is TCP handshake message, it is determined that whether the TCP handshake message includes timestamp Information;If the TCP handshake message includes timestamp information, it is determined that the TCP message includes the time Stamp information.
Preferably, it is described to determine whether the TCP message is that TCP handshake message includes:
Obtain the information of the synchronous mark field of the TCP message;If according to the synchronous mark field Information determines that the synchronous mark field is identified as effective status, determines that the TCP message is that TCP holds Handss message;
It is described to determine whether the TCP handshake message includes including timestamp information:
Obtain the information of the Option Field of the TCP handshake message;If according to the information of the Option Field Determine that the Option Field includes timestamp option, it is determined that the TCP handshake message includes timestamp Information.
Preferably, if the TCP message includes timestamp information, the TCP reports are re-assemblied Text, wherein the TCP message after re-assemblying does not include including timestamp information:
Delete the timestamp option of the TCP message.
Preferably, if the TCP message includes timestamp information, the TCP reports are re-assemblied Text, wherein the TCP message after re-assemblying also does not include including timestamp information:
TCP message to deleting timestamp option is circulated redundancy check code CRC check;
TCP message after being re-assemblied according to CRC check result.
Preferably, the TCP handshake message includes:TCP connects message and/or TCP connection confirmation messages.
Second aspect, a kind of message processing method of the present invention, including:
Receive the TCP message that message process device sends;
Determine whether the TCP message includes timestamp information;
When it is determined that the TCP message does not include timestamp information, send for the TCP message TCP response messages, the timestamp information in the TCP response messages not including local terminal.
Preferably, it is described to determine whether the TCP message includes including timestamp information:
Determine whether the TCP message is TCP handshake message;
If the TCP message is TCP handshake message, the Option Field of the TCP handshake message is obtained Information;If determining that the Option Field includes timestamp option according to the information of the Option Field, it is determined that The TCP message includes timestamp information.
Preferably, when the TCP handshake message is TCP connection messages, the TCP response messages are TCP connects confirmation message;When the TCP handshake message is TCP connection confirmation messages, the TCP Response message is ACK messages.
The third aspect, a kind of message process device of the present invention, including:
Receiving unit, for receiving the transmission control protocol TCP message that the first equipment sends;
Determining unit, for determining whether the TCP message includes timestamp information;
Processing unit, if including timestamp information for the TCP message, re-assemblies the TCP Message, wherein the TCP message after re-assemblying does not include timestamp information;
Transmitting element, for the TCP message to after re-assemblying described in the transmission of the second equipment.
Preferably, the determining unit includes:
First determining module, for determining whether the TCP message is TCP handshake message;
Second determining module, for when the TCP message is TCP handshake message, it is determined that the TCP Whether handshake message includes timestamp information;If the TCP handshake message includes timestamp information, really The fixed TCP message includes timestamp information.
Preferably, first determining module, including:
Acquisition submodule, for obtaining the information of the synchronous mark field of the TCP message;
Determination sub-module, for determining the synchronous mark field according to the information of the synchronous mark field When being identified as effective status, determine that the TCP message is TCP handshake message;
The acquisition submodule is additionally operable to, and obtains the information of the Option Field of the TCP handshake message;
The determination sub-module is additionally operable to, and is determining the Option Field bag according to the information of the Option Field When including timestamp option, it is determined that the TCP handshake message includes timestamp information.
Preferably, the processing unit specifically for:
Delete the timestamp option of the TCP message.
Preferably, the processing unit is additionally operable to,
TCP message to deleting timestamp option is circulated redundancy check code CRC check;According to CRC check result re-assemblied after TCP message.
Fourth aspect, a kind of message process device of the present invention, including:
Receiving unit, for receiving the TCP message of message process device transmission;
Determining unit, for determining whether the TCP message includes timestamp information;
Transmitting element, for, when it is determined that the TCP message does not include timestamp information, sending for institute The TCP response messages of TCP message are stated, the timestamp not including local terminal in the TCP response messages is believed Breath.
Preferably, the determining unit includes:
Acquisition module, for obtaining the information of the synchronous mark field of the TCP message and obtaining described The information of the Option Field of TCP handshake message;
Determining module, for determining the synchronous mark field quilt according to the information of the synchronous mark field When being designated effective status, determine that the TCP message is TCP handshake message;It is TCP in the message During handshake message, if determining that the Option Field includes timestamp option according to the information of the Option Field, Then determine that the TCP handshake message includes timestamp information.
Preferably, when the TCP handshake message is TCP connection messages, the TCP response messages are TCP connects confirmation message;When the TCP handshake message is TCP connection confirmation messages, the TCP Response message is ACK messages.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In embodiments of the present invention, when the TCP message for receiving the first equipment and determine whether the message includes Timestamp information.If the TCP message includes timestamp information, the TCP message is re-assemblied, TCP message after wherein re-assemblying include timestamp information, and to the second equipment send described in again TCP message after assembling.Therefore, can be true after the second equipment receives TCP message after this re-assemblies Fixed first equipment does not support timestamp option, therefore, using second equipment of scheme of the embodiment of the present invention rear It is continuous be sent to the message of the first equipment in may not include timestamp option, so as to avoid in prior art The defect of timestamp option must be included in each TCP message, thus it is of the invention compared with prior art The scheme of embodiment has saved interface-free resources.
Description of the drawings
Flow charts of the Fig. 1 for the message processing method of the embodiment of the present invention one;
Fig. 2 is the schematic diagram of TCP message form in prior art;
Flow charts of the Fig. 3 for the message processing method of the embodiment of the present invention two;
Flow charts of the Fig. 4 for the message processing method of the embodiment of the present invention three;
Flow charts of the Fig. 5 for the message processing method of the embodiment of the present invention four;
Schematic diagrams of the Fig. 6 for the message process device of the embodiment of the present invention five;
Schematic diagrams of the Fig. 7 for the message process device of the embodiment of the present invention six.
Specific embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail. Following examples are used to illustrate the present invention, but are not limited to the scope of the present invention.
As shown in figure 1, the message processing method of the embodiment of the present invention one can be performed by message process device.Its Described in message process device can be RNC (Radio Network Controller, radio network controller), The network equipments such as UE (User Equipment, user equipment).Methods described includes:
Step 11, the TCP message for receiving the transmission of the first equipment.
According to the description of prior art, Transmission Control Protocol is connection-oriented reliable transport protocol, two equipment or Process needs to set up connection before mutually sending out data.Here, TCP will be based between the first equipment and the second equipment The message that agreement sends is referred to as TCP message.Wherein, first equipment and the second equipment can be clients End or server.
Step 12, determine that whether the TCP message includes timestamp information.
According to the regulation of Transmission Control Protocol, TCP message form as shown in Fig. 2 including:Source port number, mesh Port numbers, sequence number, acknowledged sequence number, skew, reservation, control bit, window, verification, urgent pointer, The fields such as option, filling.In control bit field, (mark is confirmed including URG (emergency sign), ACK Will), PSH (pushing away mark), RST (reseting mark), SYN (synchronous mark), FIN (end mark) Deng mark.In option (Option) field, including the option such as timestamp option (timestamps).
Wherein, setting up connection between the first equipment and the second equipment needs through three-way handshake:First, first Equipment sends TCP connections message (SYN messages) to the second equipment, and the second equipment receives backward first equipment TCP connections confirmation message (SYN ACK messages) is sent, last first equipment sends TCP to the second equipment Confirmation message (ACK messages).Wherein, in the TCP connections message, according to the message format of TCP, SYN (synchronous mark) field labeled 1 in attribute field, represents that the field is effective;The TCP In connection confirmation message, according to the message format of TCP, SYN (synchronous mark) field labeled 1, table Show that the field effectively, while ACK (acknowledgement indicator) field is also indicated as 1, represents that the field is effective; In the TCP acknowledgment message, attribute field is not configured.
According to the content of prior art, wherein TCP connects message and TCP connection confirmation messages have carrying The ability of timestamp information, therefore, can enter mainly for the message of both types in embodiments of the present invention Row is processed.As the two messages are that occur during two equipment set up connection, therefore, at this In bright embodiment, TCP is connected into message and TCP connection confirmation messages are referred to as TCP handshake message.
Therefore, can first determine that whether the TCP message is TCP handshake message in this step.According to Above as can be seen that in connection procedure is set up, connecting in message and TCP connection confirmation messages in TCP SYN fields be all marked as 1, therefore, by judging SYN fields can be in embodiments of the present invention It is no effectively determining whether the message transmitted between the first equipment and the second equipment is TCP handshake message.Tool Body, the information of the SYN fields of the TCP message is obtained first, if according to the synchronous mark field Information determine that the SYN fields are identified as effective status and are labeled as 1, determine the TCP message It is TCP handshake message.
In Option (option) field, TCP message form with reference to shown in Fig. 2, includes that timestamp is selected Item (timestamps).According to the description of prior art, if the first equipment or the second equipment support timestamp Option, it will the timestamp option of the TCP message of itself transmission is set.Therefore, in this step, may be used The information of the Option Field of the TCP handshake message is obtained, if determining according to the information of the Option Field The Option Field includes timestamp option, it is determined that the TCP handshake message includes timestamp information, Timestamp information is not included in otherwise determining the TCP handshake message.
Description according to more than can be seen that wherein the first equipment can also be used as reception as transmitting terminal End, the second equipment is also same.For example, when TCP handshake message is TCP connection messages, first sets Standby is transmitting terminal, and the second equipment is receiving terminal;When TCP handshake message is TCP connection confirmation messages, Second equipment is transmitting terminal, and the first equipment is receiving terminal.
If step 13, the TCP message include timestamp information, the TCP message is re-assemblied, TCP message after wherein re-assemblying does not include timestamp information.
After determining the TCP message and including timestamp information, by delete the TCP message when Between stab option re-assembly the TCP message.Specifically, when it is determined that having timestamp in TCP handshake message After information, namely including timestamp option after, the timestamp option in the TCP handshake message can be deleted Remove, so that not including timestamp information in the TCP handshake message after re-assemblying.
Step 14, the TCP message to after re-assemblying described in the transmission of the second equipment.
After TCP message after being re-assemblied, you can send the second equipment after re-assemblying TCP message so that the second equipment TCP message that supervention send behind does not include timestamp information.
As seen from the above, in embodiments of the present invention, when the TCP message for receiving the first equipment and determine Whether the message includes timestamp information.If the TCP message includes timestamp information, re-assembly The TCP message, wherein the TCP message after re-assemblying does not include timestamp information, and sets to second Preparation send the TCP message after re-assemblying.Therefore, when the second equipment is received after this re-assemblies Can determine that after TCP message that the first equipment does not support timestamp option, therefore, using the side of the embodiment of the present invention The second equipment of case it is follow-up be sent to the message of the first equipment in may not include timestamp option, so as to keep away Exempted to include the defect of timestamp option in prior art in each TCP message, thus with it is existing Technology is compared the scheme of the embodiment of the present invention and has saved interface-free resources.
As shown in figure 3, the message processing method of the embodiment of the present invention two, is performed by client or server, Including:
Step 21, the TCP message for receiving message process device transmission.
Wherein, the message process device can be the network equipments such as RNC or UE, the TCP reports The implication of text can refer to the description of previous embodiment.
Step 22, determine that whether the TCP message includes timestamp information.
Equally, in this step, can first determine that whether the TCP message is TCP handshake message.If The TCP message is TCP handshake message, obtains the information of the Option Field of the TCP handshake message; If determining that the Option Field includes timestamp option according to the information of the Option Field, it is determined that described TCP message includes timestamp information.Specifically determine that whether the TCP message is the side of TCP handshake message Formula can refer to the description of embodiment of the method one.
Step 23, when it is determined that the TCP message does not include timestamp information, send for the TCP The TCP response messages of message, the timestamp information in the TCP response messages not including local terminal.
As it was previously stated, the process of TCP handshake message is primarily directed in embodiments of the present invention, and TCP Handshake message can include SYN messages or SYN ACK messages.So, in this embodiment, when When the TCP handshake message is TCP connection messages, the TCP response messages are that TCP connections confirm Message;When the TCP handshake message is TCP connection confirmation messages, the TCP response messages are ACK messages.
As seen from the above, in embodiments of the present invention, when the TCP message for receiving the first equipment and determine Whether the message includes timestamp information.If the TCP message includes timestamp information, re-assembly The TCP message, wherein the TCP message after re-assemblying does not include timestamp information, and sets to second Preparation send the TCP message after re-assemblying.Therefore, when the second equipment is received after this re-assemblies Can determine that after TCP message that the first equipment does not support timestamp option, therefore, using the side of the embodiment of the present invention The second equipment of case it is follow-up be sent to the message of the first equipment in may not include timestamp option, so as to keep away Exempted to include the defect of timestamp option in prior art in each TCP message, thus with it is existing Technology is compared the scheme of the embodiment of the present invention and has saved interface-free resources.
As shown in figure 4, the message processing method of the embodiment of the present invention three, is performed by RNC, including:
Step 31, when setting up wireless network and connecting, RNC receives up TCP message.
Step 32, RNC are parsed to the TCP message head form.Jing is parsed, if the TCP message SYN messages or SYN ACK messages, then execution step 33;Otherwise execution step 36.
In embodiments of the present invention, the header information of the TCP message is parsed, in the banner word of its head Only judge that the TCP message is SYN messages when SYN fields are 1 in section;In the mark of its head In field when it is 1 that SYN fields are 1, ACK fields, judge that the TCP message is SYN ACK reports Text.
Step 33, judge whether the SYN messages or SYN ACK messages carry timestamp information. If so, then execution step 34, otherwise execution step 36.
According to the description of previous embodiment, the Option Field in SYN messages is read, if the Option Field bag Timestamp option is included, then judges that the SYN messages carry timestamp information.Likewise, or reading SYN The Option Field of ACK messages, if the Option Field includes timestamp option, judges the SYN ACK Message carries timestamp information.
Step 34, re-assembly the SYN messages or SYN ACK messages.Specifically, it is somebody's turn to do including deleting The content in timestamp option in SYN messages, re-starts CRC schools to the head of the SYN messages Test;The content in the timestamp option in the SYN ACK messages is deleted, to the SYN ACK messages Head re-start CRC check etc..
Step 35, will re-assembly after SYN messages or SYN ACK messages be sent to core net.
So, receiving device receive RNC transmission re-assembly after SYN messages or SYN ACK After message, will in the response message for SYN messages or SYN ACK messages that receiving device sends Timestamp information will not be included.
Step 36, the TCP message is sent to into core net.
As seen from the above, using the scheme of the embodiment of the present invention, money of eating dishes without rice or wine has been saved compared with prior art Source, improves the performance being wirelessly transferred.
As shown in figure 5, the message processing method of the embodiment of the present invention four, is performed by UE, including:
Step 41, set up wireless network connect when, UE receives up TCP message.
Step 42, UE are parsed to the TCP message head form.Jing is parsed, if the TCP message is SYN messages or SYN ACK messages, then execution step 43;Otherwise execution step 46.
In embodiments of the present invention, the header information of the TCP message is parsed, in the banner word of its head Only judge that the TCP message is SYN messages when SYN fields are 1 in section;In the mark of its head In field when it is 1 that SYN fields are 1, ACK fields, judge that the TCP message is SYN ACK reports Text.
Step 43, judge whether the SYN messages or SYN ACK messages carry timestamp information. If so, then execution step 44, otherwise execution step 46.
According to the description of previous embodiment, the Option Field in SYN messages is read, if the Option Field bag Timestamp option is included, then judges that the SYN messages carry timestamp information.Likewise, or reading SYN The Option Field of ACK messages, if the Option Field includes timestamp option, judges the SYN ACK Message carries timestamp information.
Step 44, re-assembly the SYN messages or SYN ACK messages.Specifically, it is somebody's turn to do including deleting The content in timestamp option in SYN messages, re-starts CRC schools to the head of the SYN messages Test;The content in the timestamp option in the SYN ACK messages is deleted, to the SYN ACK messages Head re-start CRC check etc..
Step 45, will re-assembly after SYN messages or SYN ACK be sent to network from interface of eating dishes without rice or wine Side.
So, after receiving device receives the SYN messages after re-assemblying or SYN ACK messages, When will not include in the response message for SYN messages or SYN ACK messages that receiving device sends Between stab information.
Step 46, the TCP message is sent to into network side.
As seen from the above, using the scheme of the embodiment of the present invention, money of eating dishes without rice or wine has been saved compared with prior art Source, improves the performance being wirelessly transferred.
As shown in fig. 6, the message process device of the embodiment of the present invention five, including:
Receiving unit 61, for receiving the transmission control protocol TCP message that the first equipment sends;It is determined that single Unit 62, for determining whether the TCP message includes timestamp information;Processing unit 63, if for institute Stating TCP message includes timestamp information, then re-assembly the TCP message, wherein after re-assemblying TCP message does not include timestamp information;Transmitting element 64, for group again described in sending to the second equipment TCP message after dress.
Wherein, the determining unit 62 includes:First determining module, for determining that the TCP message is It is no for TCP handshake message;Second determining module, for when the TCP message is TCP handshake message, Then determine whether the TCP handshake message includes timestamp information;If the TCP handshake message includes Between stab information, it is determined that the TCP message includes timestamp information.
Specifically, first determining module, including:Acquisition submodule, for obtaining the TCP reports The information of the synchronous mark field of text;Determination sub-module, in the information according to the synchronous mark field When determining that the synchronous mark field is identified as effective status, determine that the TCP message is that TCP shakes hands Message;The acquisition submodule is additionally operable to, and obtains the information of the Option Field of the TCP handshake message; The determination sub-module is additionally operable to, when determining that the Option Field includes according to the information of the Option Field Between stab option when, it is determined that the TCP handshake message includes timestamp information.
Wherein, the processing unit 63 specifically for:Delete the timestamp option of the TCP message. It is to delete the timestamp option in the TCP handshake message in embodiments of the present invention.Further, In order to improve the safety of TCP message, the processing unit 63 is additionally operable to, to deleting timestamp option TCP message be circulated redundancy check code CRC check;Again group is obtained according to CRC check result TCP message after dress.Namely be that the TCP for deleting timestamp option is shaken hands in embodiments of the present invention Message is circulated redundancy check code CRC check, after then being re-assemblied according to CRC check result TCP handshake message.
As it was previously stated, in embodiments of the present invention, the TCP handshake message includes:TCP connects message And/or TCP connection confirmation messages.
Wherein, the operation principle of embodiment of the present invention device can refer to the description of preceding method embodiment, the dress Put and can be located in the network equipments such as RNC or UE.
As seen from the above, in embodiments of the present invention, when the TCP message for receiving the first equipment and determine Whether the message includes timestamp information.If the TCP message includes timestamp information, re-assembly The TCP message, wherein the TCP message after re-assemblying does not include timestamp information, and sets to second Preparation send the TCP message after re-assemblying.Therefore, when the second equipment is received after this re-assemblies Can determine that after TCP message that the first equipment does not support timestamp option, therefore, using the side of the embodiment of the present invention The second equipment of case it is follow-up be sent to the message of the first equipment in may not include timestamp option, so as to keep away Exempted to include the defect of timestamp option in prior art in each TCP message, thus with it is existing Technology is compared the scheme of the embodiment of the present invention and has saved interface-free resources.
As shown in fig. 7, the message process device of the embodiment of the present invention six, including:
Receiving unit 71, for receiving the TCP message of message process device transmission;Determining unit 72, uses In it is determined that whether the TCP message includes timestamp information;Transmitting element 73, for as the determination TCP When message does not include timestamp information, the TCP response messages for the TCP message are sent, described Timestamp information in TCP response messages not including local terminal.
Wherein, the determining unit 72 includes:Acquisition module, for obtaining the synchronization of the TCP message The information of the Option Field of the information and the acquisition TCP handshake message of attribute field;Determining module, For determining that the synchronous mark field is identified as effective shape according to the information of the synchronous mark field During state, determine that the TCP message is TCP handshake message;When the message is TCP handshake message, If determining that the Option Field includes timestamp option according to the information of the Option Field, it is determined that described TCP handshake message includes timestamp information.
As it was previously stated, when the TCP handshake message is TCP connection messages, the TCP response messages It is TCP connection confirmation messages;It is when the TCP handshake message is TCP connection confirmation messages, described TCP response messages are ACK messages.
Wherein, the operation principle of embodiment of the present invention device can refer to the description of preceding method embodiment, the dress Put and can be located in client or server.
As seen from the above, in embodiments of the present invention, when the TCP message for receiving the first equipment and determine Whether the message includes timestamp information.If the TCP message includes timestamp information, re-assembly The TCP message, wherein the TCP message after re-assemblying does not include timestamp information, and sets to second Preparation send the TCP message after re-assemblying.Therefore, when the second equipment is received after this re-assemblies Can determine that after TCP message that the first equipment does not support timestamp option, therefore, using the side of the embodiment of the present invention The second equipment of case it is follow-up be sent to the message of the first equipment in may not include timestamp option, so as to keep away Exempted to include the defect of timestamp option in prior art in each TCP message, thus with it is existing Technology is compared the scheme of the embodiment of the present invention and has saved interface-free resources.
The above is the preferred embodiment of the present invention, it is noted that for the common skill of the art For art personnel, on the premise of without departing from principle of the present invention, some improvements and modifications can also be made, These improvements and modifications also should be regarded as protection scope of the present invention.

Claims (17)

1. a kind of message processing method, it is characterised in that include:
Receive the transmission control protocol TCP message of the first equipment transmission;
Determine whether the TCP message includes timestamp information;
If the TCP message includes timestamp information, the TCP message is re-assemblied, wherein again TCP message after assembling does not include timestamp information;
TCP message to after re-assemblying described in the transmission of the second equipment.
2. method according to claim 1, it is characterised in that the determination TCP message is It is no to include including timestamp information:
Determine whether the TCP message is TCP handshake message;
If the TCP message is TCP handshake message, it is determined that when whether the TCP handshake message includes Between stab information;If the TCP handshake message includes timestamp information, it is determined that the TCP message includes Timestamp information.
3. method according to claim 2, it is characterised in that the determination TCP message is It is no to include for TCP handshake message:
Obtain the information of the synchronous mark field of the TCP message;If according to the synchronous mark field Information determines that the synchronous mark field is identified as effective status, determines that the TCP message is that TCP holds Handss message;
It is described to determine whether the TCP handshake message includes including timestamp information:
Obtain the information of the Option Field of the TCP handshake message;If according to the information of the Option Field Determine that the Option Field includes timestamp option, it is determined that the TCP handshake message includes timestamp Information.
4. method according to claim 1 and 2, it is characterised in that if the TCP message Including timestamp information, then the TCP message is re-assemblied, wherein the TCP message after re-assemblying is not Include including timestamp information:
Delete the timestamp option of the TCP message.
5. method according to claim 4, it is characterised in that if the TCP message includes Timestamp information, then re-assembly the TCP message, wherein the TCP message after re-assemblying does not include Timestamp information also includes:
TCP message to deleting timestamp option is circulated redundancy check code CRC check;
TCP message after being re-assemblied according to CRC check result.
6. according to the method in claim 2 or 3, it is characterised in that the TCP handshake message bag Include:TCP connects message and/or TCP connection confirmation messages.
7. a kind of message processing method, it is characterised in that include:
Receive the TCP message that message process device sends;
Determine whether the TCP message includes timestamp information;
When it is determined that the TCP message does not include timestamp information, send for the TCP message TCP response messages, the timestamp information in the TCP response messages not including local terminal.
8. method according to claim 7, it is characterised in that the determination TCP message is It is no to include including timestamp information:
Determine whether the TCP message is TCP handshake message;
If the TCP message is TCP handshake message, the Option Field of the TCP handshake message is obtained Information;If determining that the Option Field includes timestamp option according to the information of the Option Field, it is determined that The TCP message includes timestamp information.
9. method according to claim 8, it is characterised in that when the TCP handshake message is During TCP connection messages, the TCP response messages are TCP connection confirmation messages;When the TCP shakes hands When message is TCP connection confirmation messages, the TCP response messages are ACK messages.
10. a kind of message process device, it is characterised in that include:
Receiving unit, for receiving the transmission control protocol TCP message that the first equipment sends;
Determining unit, for determining whether the TCP message includes timestamp information;
Processing unit, if including timestamp information for the TCP message, re-assemblies the TCP Message, wherein the TCP message after re-assemblying does not include timestamp information;
Transmitting element, for the TCP message to after re-assemblying described in the transmission of the second equipment.
11. devices according to claim 10, it is characterised in that the determining unit includes:
First determining module, for determining whether the TCP message is TCP handshake message;
Second determining module, for when the TCP message is TCP handshake message, it is determined that the TCP Whether handshake message includes timestamp information;If the TCP handshake message includes timestamp information, really The fixed TCP message includes timestamp information.
12. devices according to claim 11, it is characterised in that first determining module, bag Include:
Acquisition submodule, for obtaining the information of the synchronous mark field of the TCP message;
Determination sub-module, for determining the synchronous mark field according to the information of the synchronous mark field When being identified as effective status, determine that the TCP message is TCP handshake message;
The acquisition submodule is additionally operable to, and obtains the information of the Option Field of the TCP handshake message;
The determination sub-module is additionally operable to, and is determining the Option Field bag according to the information of the Option Field When including timestamp option, it is determined that the TCP handshake message includes timestamp information.
13. devices according to claim 10 or 11, it is characterised in that the processing unit is concrete For:
Delete the timestamp option of the TCP message.
14. devices according to claim 13, it is characterised in that the processing unit is additionally operable to,
TCP message to deleting timestamp option is circulated redundancy check code CRC check;According to CRC check result re-assemblied after TCP message.
15. a kind of message process devices, it is characterised in that include:
Receiving unit, for receiving the TCP message of message process device transmission;
Determining unit, for determining whether the TCP message includes timestamp information;
Transmitting element, for, when it is determined that the TCP message does not include timestamp information, sending for institute The TCP response messages of TCP message are stated, the timestamp not including local terminal in the TCP response messages is believed Breath.
16. devices according to claim 15, it is characterised in that the determining unit includes:
Acquisition module, for obtaining the information of the synchronous mark field of the TCP message and obtaining described The information of the Option Field of TCP handshake message;
Determining module, for determining the synchronous mark field quilt according to the information of the synchronous mark field When being designated effective status, determine that the TCP message is TCP handshake message;It is TCP in the message During handshake message, if determining that the Option Field includes timestamp option according to the information of the Option Field, Then determine that the TCP handshake message includes timestamp information.
17. devices according to claim 16, it is characterised in that when the TCP handshake message is During TCP connection messages, the TCP response messages are TCP connection confirmation messages;When the TCP shakes hands When message is TCP connection confirmation messages, the TCP response messages are ACK messages.
CN201510697647.9A 2015-10-23 2015-10-23 Message processing method and message processing device Pending CN106612256A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510697647.9A CN106612256A (en) 2015-10-23 2015-10-23 Message processing method and message processing device
PCT/CN2016/088431 WO2017067224A1 (en) 2015-10-23 2016-07-04 Packet processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510697647.9A CN106612256A (en) 2015-10-23 2015-10-23 Message processing method and message processing device

Publications (1)

Publication Number Publication Date
CN106612256A true CN106612256A (en) 2017-05-03

Family

ID=58556712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510697647.9A Pending CN106612256A (en) 2015-10-23 2015-10-23 Message processing method and message processing device

Country Status (2)

Country Link
CN (1) CN106612256A (en)
WO (1) WO2017067224A1 (en)

Cited By (2)

* 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
CN110381071A (en) * 2019-07-24 2019-10-25 新华三技术有限公司合肥分公司 A kind of message transmitting method, device and send method, apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8069352B2 (en) * 2007-02-28 2011-11-29 Sourcefire, Inc. Device, system and method for timestamp analysis of segments in a transmission control protocol (TCP) session
CN101383818B (en) * 2007-09-05 2013-01-30 华为技术有限公司 Processing method and device for access network
CN101217429B (en) * 2008-01-18 2010-09-29 清华大学 A determination method of the initiation relationship within TCP messages based on TCP timestamp options
CN101986648B (en) * 2010-11-24 2012-12-12 北京星网锐捷网络技术有限公司 Negotiation method, device and network device of TCP option
US9229823B2 (en) * 2011-08-17 2016-01-05 International Business Machines Corporation Storage and retrieval of dispersed storage network access information
CN103746768B (en) * 2013-10-08 2017-06-23 北京神州绿盟信息安全科技股份有限公司 A kind of recognition methods of packet and equipment

Cited By (3)

* 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
CN110381071A (en) * 2019-07-24 2019-10-25 新华三技术有限公司合肥分公司 A kind of message transmitting method, device and send method, apparatus
CN110381071B (en) * 2019-07-24 2021-05-28 新华三技术有限公司合肥分公司 Message transmission method and device and sender equipment

Also Published As

Publication number Publication date
WO2017067224A1 (en) 2017-04-27

Similar Documents

Publication Publication Date Title
USRE48291E1 (en) Method of delivering a PDCP data unit to an upper layer
RU2289204C2 (en) Method and system for mobile communications
US6987981B2 (en) Robust RLC reset procedure in a wireless communication system
EP1871055A2 (en) Method and apparatus for uplink data handling upon handover in a wireless communications system
US8588784B2 (en) Mobile communication system, wireless base station and hand over reconnection method for use therewith including an accumulation portion for holding data
EP2144391B1 (en) Method for transmitting retransmission request and receiving side device
US8169905B2 (en) Packet communication method and receiving-side apparatus
EP2541827A1 (en) Apparatus and method for adaptive TSP setting to minimize duplicate packet transmissions
US20100110984A1 (en) Retransmission request transmission method, transmitting- side apparatus and receiving-side apparatus
WO2009051386A2 (en) Method of performing arq procedure for transmitting high rate data
CN109076475B (en) Method and system for maintaining synchronization in connectionless transmission
EP2696621A1 (en) Message processing method, device and system
JP2008259037A (en) Window control and retransmission control method, and transmission-side unit
CN105934907A (en) Radio resource scheduling method and apparatus
CN104618007B (en) A kind of synchronous satellite Transmission Control Protocol segmentation connection optimization method
KR101532222B1 (en) Communication system and method for connecting of rrc therein
CN102769520A (en) Wireless network congestion control method based on stream control transmission protocol (SCTP)
CN102299777B (en) Data repeating method and device
US20100144364A1 (en) Retransmission control method and transmitting-side apparatus
CN106612256A (en) Message processing method and message processing device
TW201019645A (en) System and method for data transmission
US9510242B2 (en) Reducing superfluous traffic in a network
CN107046452A (en) A kind of data high bandwidth high reliability transport method
GB2462699A (en) Delivering PDCP SDUs to an upper layer within a receiving side entity of an E-UMTS
KR101376583B1 (en) Apparatus and method for nack configuration in mobile communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170503