CN106657078A - TCP (Transmission Control Protocol) transmission method and device - Google Patents

TCP (Transmission Control Protocol) transmission method and device Download PDF

Info

Publication number
CN106657078A
CN106657078A CN201611226108.8A CN201611226108A CN106657078A CN 106657078 A CN106657078 A CN 106657078A CN 201611226108 A CN201611226108 A CN 201611226108A CN 106657078 A CN106657078 A CN 106657078A
Authority
CN
China
Prior art keywords
tcp
message
data message
server
response messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611226108.8A
Other languages
Chinese (zh)
Other versions
CN106657078B (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Technology Guangzhou 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 Comba Telecom Technology Guangzhou Ltd filed Critical Comba Telecom Technology Guangzhou Ltd
Priority to CN201611226108.8A priority Critical patent/CN106657078B/en
Publication of CN106657078A publication Critical patent/CN106657078A/en
Application granted granted Critical
Publication of CN106657078B publication Critical patent/CN106657078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/1874Buffer management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/19Flow control; Congestion control at layers above the network layer
    • H04L47/193Flow control; Congestion control at layers above the network layer at the transport layer, e.g. TCP related
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2458Modification of priorities while in transit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0205Traffic management, e.g. flow control or congestion control at the air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0273Traffic management, e.g. flow control or congestion control adapting protocols for flow control or congestion control to wireless environment, e.g. adapting transmission control protocol [TCP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention provides a TCP (Transmission Control Protocol) transmission method and device. A message acknowledgement number of a TCP response message received by a network side and a newest acknowledgement number of a server are obtained; a relation between the message acknowledgement number of the TCP response message and the newest acknowledgement number of the server are judged; if the message acknowledgement number is equal to the newest acknowledgement number of the server, a repeat response count value of the TCP response message is increased; if the repeat response count value is equal to a preset threshold value, a sending priority of a TCP data message corresponding to the TCP response message in a local cache is improved; it indicates that the TCP data message corresponding to the TCP response message is urgent data needing to be uploaded to the network side again; the sending priority of the urgent data is improved through a base station; and the TCP data message is transmitted preferentially, so the TCP data message is transmitted timely.

Description

TCP transmission method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of TCP transmission method and device.
Background technology
With developing rapidly for communication technology, requirement of the user to data transfer promptness is day by day improved, and the biography of data The TCP (Transmission Control Protocol, transmission control protocol) of the defeated transport layer be unableing to do without in communication protocol Agreement.
Current communication base station is more weak for transmission process of the Transmission Control Protocol to data, in data transmission procedure, has When one group of tcp data message duplicate answer repeatedly, and communication base station not deep analysis when by Transmission Control Protocol transmission data The multiple emergency data of the duplicate answer so that data are in transmitting procedure, because the tight of the emergency data cannot be judged Anxious transmission degree, still first transmits other data according to normal transmit queue, then transmits the emergency data, and causes the emergency data Propagation delay time, affects communication base station that the timely upload of multiple emergency data is have answered to repetition.
The content of the invention
The present invention proposes a kind of TCP transmission method and device, can need to upload tcp data report in time according to actual transmissions Text, possesses motility.
A kind of TCP transmission method, comprises the following steps:
Obtain the message confirmation number of the TCP response messages received by network side;
Obtain the newest confirmation number of server;
If the message confirms number newest confirmation number for being equal to the server, increase the repetition of the TCP response messages Response count value;
If the duplicate answer count value is equal to predetermined threshold value, TCP response messages described in local cache are improved corresponding The transmission priority of tcp data message.
A kind of TCP transmission device, including:
Message confirmation acquisition module, for obtaining the message confirmation number of the TCP response messages received by network side;
Newest confirmation acquisition module, for obtaining the newest confirmation number of server;
Duplicate answer count value accumulator module, if confirming number newest confirmation for being equal to the server for the message Number, increase the duplicate answer count value of the TCP response messages;
Priority improves module, if being equal to predetermined threshold value for the duplicate answer count value, improves institute in local cache State the transmission priority of the corresponding tcp data message of TCP response messages.
Above-mentioned TCP transmission method and device, can be applicable to mobile communication technology field, be received by network side by obtaining TCP response messages message confirm number and obtain server newest confirmation number, judge TCP response messages message confirmation Number and server newest confirmation number relation, if the message confirm number be equal to the server a newest confirmation number, Increase the duplicate answer count value of the TCP response messages, if the duplicate answer count value is equal to predetermined threshold value, improve this The transmission priority of the corresponding tcp data message of TCP response messages described in ground caching, illustrates the TCP response messages correspondence Tcp data message be the emergency data that need to be again uploaded to network side, the transmission for improving the emergency data by base station is preferential Level, the prioritised transmission tcp data message so that the tcp data message is timely transmitted.In data transmission procedure, due to Environment of eating dishes without rice or wine is complicated and changeable, situations such as channel bit error rate is high and shakes big, easily affects data to retransmit, therefore, how to reduce Data retransmission delay time under environment of eating dishes without rice or wine is particularly important.The TCP transmission method and device is by using base station TCP agreement pair Emergency data in local cache carries out retransmission process, can carry out deep analysis to TCP response messages, and according to actual transmissions Timely transmission data is needed, more urgent data transfer demands are disclosure satisfy that, the data biography that mobile communication connection networks is lifted Defeated performance, possesses motility and adaptability.Avoid in TCP processing datas, strictly sequentially transmission data, affect to retransmit timely Rate.The TCP transmission method and device, combines mobile communication technology internal agreement so that the service quality of base station by Transmission Control Protocol Improve so that data transfer also can obtain transmitting in time and accurately under severe environment of eating dishes without rice or wine, and improve Consumer's Experience And operation economic benefit.
Description of the drawings
Fig. 1 is the schematic flow sheet of the TCP transmission method in one embodiment;
Fig. 2 is the schematic flow sheet of the TCP transmission method in one embodiment;
Fig. 3 is the schematic flow sheet of the TCP transmission method in another embodiment;
Fig. 4 is the schematic flow sheet of the TCP transmission method in another embodiment;
Fig. 5 is the schematic flow sheet of the TCP transmission method in further embodiment;
Fig. 6 is the schematic flow sheet of the tcp data transmission method in further embodiment;
Fig. 7 is the schematic flow sheet of the tcp data transmission method in further embodiment;
Fig. 8 is the applied environment schematic diagram of the TCP transmission in one embodiment;
Fig. 9 is the structural representation of the TCP transmission device in one embodiment;
Figure 10 is the structural representation of the first identification module in one embodiment;
Figure 11 is the structural representation of the TCP transmission device in another embodiment;
Figure 12 is the structural representation of the TCP transmission device in further embodiment;
Figure 13 is the structural representation of the TCP transmission device in further embodiment;
Figure 14 is the structural representation of the TCP transmission device in another embodiment;
Figure 15 is the structural representation of the data message memory module in one embodiment.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and It is not used in the restriction present invention.
Such as the schematic flow sheet that Fig. 1 is the TCP transmission method in one embodiment, the TCP transmission method of figure, including following Step:
S11:Obtain the message confirmation number of the TCP response messages received by network side;
S12:Obtain the newest confirmation number of server;
S13:If the message confirms number newest confirmation number for being equal to the server, increase the TCP response messages Duplicate answer count value;
S14:If the duplicate answer count value is equal to predetermined threshold value, TCP response messages pair described in local cache are improved The transmission priority of the tcp data message answered.
If identification field ACK (Acknowledgment Number) value in the header of tcp data message is 1, it is determined that The tcp data message is TCP response messages, and the message of TCP response messages confirms number serial number for being corresponding tcp data message Plus tcp data message data length.The Serial No. 2001 of such as tcp data message, data length is 1000, then for The tcp data message, the identification field ACK value in the header of tcp data message is 1, and the tcp data message is TCP response reports Text, and the message confirmation number of the TCP response messages is 3001.In the present embodiment, server is base station TCP server, for protecting The newest confirmation number of TCP response messages is deposited, the newest confirmation number of server is the newest confirmation of TCP response messages in server Number.If the message confirms number newest confirmation number for being equal to server, illustrate that the corresponding tcp data message of TCP response messages is needed Retransmit, then base station increases the duplicate answer count value of the TCP response messages, TCP connections each time have a repetition Response count value, for representing in a TCP connection, the repetition of the TCP message transmission received in a stage should Number of times is answered, the size of duplicate answer count value decides whether that trigger data message retransmission is processed, and the duplicate answer count value is Base station is arranged, and for the number of times that monitoring base station receives same TCP response messages, if such as base station have received message, confirmation number is 1001 TCP response messages 1 time, then be set to 1 by duplicate answer count value, if base station have received message confirmation number for 1001 TCP response messages 2 times, then be set to 2 by duplicate answer count value.
If the duplicate answer count value is equal to predetermined threshold value, illustrate that the TCP response messages duplicate answer repeatedly (can Can exceed that twice), then the transmission priority of the corresponding tcp data message of TCP response messages described in local cache is improved in base station. Such as predetermined threshold value is 4 times, if the multiple response count value of the TCP response messages is 4 times, equal to predetermined threshold value, then shows institute TCP response message duplicate answers 4 times are stated, is a urgent tcp data message, in the local cache of base station, have its normal Transmission priority, the normal priority that sends usually first uploads the less tcp data message of serial number, then uploads sequence successively The larger tcp data message of row number.For the TCP response messages that duplicate answer count value is equal to predetermined threshold value, base station will The transmission priority of the corresponding tcp data message of the TCP response messages is improved, for example, can be by TCP response messages correspondence The priority of tcp data message arrange higher than the priority for sending other packets in buffer queue, with it is preferential upload it is described The corresponding tcp data message of TCP response messages.Or the transmission priority of the current tcp data message is improved into a deciding grade and level Not, one-level is for example improved, to shorten the times waiting for transmission such as the corresponding tcp data message of the TCP response messages.If base station from The response message that network side is received is not TCP response messages, then do not do above-mentioned process, is sent directly to lateral terminal of eating dishes without rice or wine.
Such as Fig. 2, in one embodiment, if the message confirms number newest confirmation number for being equal to the server, increase It is further comprising the steps of after the duplicate answer count value of the TCP response messages:
S131:Detect that the corresponding tcp data message of the TCP response messages whether there is in local cache;
S132:If so, will be present in the corresponding TCP for successfully having uploaded of the TCP response messages of local cache Data message is discharged.
If the message of the TCP response messages confirms that a number corresponding packet is present in local cache, show the TCP Response message is the message of duplicate answer, will need to upload successful packet and discharge from local cache, while abandoning The TCP response messages, without the need for being sent to side of eating dishes without rice or wine.So with the load pressure of alleviation local cache, it is to avoid excessive to take locally The internal memory of caching, is conducive to the quick transmission of other tcp data messages, has saved network bandwidth resources, reduces unnecessary sky Port transmission.
Such as Fig. 3, in one embodiment, the newest confirmation number of server is obtained afterwards, it is further comprising the steps of:
S23:If the message of the TCP response messages confirms number newest confirmation number for being more than the server, detection is described The corresponding tcp data message of newest confirmation number of server whether there is in local cache;
S24:If so, then by the newest confirmation number of the server be set to TCP response messages message confirm number, and will The corresponding tcp data message for successfully having uploaded of newest confirmation number for being present in the server of local cache is released Put.
For example, the sequence number range for being currently available for the tcp data message of re-transmission is 1001~3001, then server is most It is new to confirm number to be 1001, if the message of the TCP response messages that base station receives from network side confirms number to be 2001, then illustrate The message of the TCP response messages confirms number newest confirmation number for being more than server, illustrates the newest confirmation correspondence of server Tcp data message be successfully uploaded to network side.Then the newest confirmation number renewal of the server is adjusted to TCP and is answered by base station The message for answering message confirms number, and will be present in that the newest confirmation number of the server of local cache is corresponding successfully to be uploaded Tcp data message discharged.If the message of the TCP response messages that base station receives from network side confirm number for 1 or 501, then illustrate that the TCP response messages belong to late response message, without the need for carrying out retransmission process by base station, it is forwarded directly to sky Mouth side, it is ensured that normal TCP connections interaction.Base station discharges the tcp data message of transmission success from local cache, delays The load pressure of solution local cache, improves the utilization rate of Internet resources, is conducive to the quick transmission of follow-up tcp data message.
Such as Fig. 4, further, the newest confirmation number of the server is set to into the message confirmation number of TCP response messages, And will be present in the corresponding tcp data message for successfully having uploaded of the newest confirmation number of the server of local cache and released It is further comprising the steps of after putting:
S241:By the duplicate answer count value zero setting of the TCP response messages;
S242:The corresponding tcp data message of the TCP response messages is sent to terminal.
The message for judging the TCP response messages confirms number newest confirmation number for being more than the server afterwards, illustrates institute State that the corresponding tcp data message of TCP response messages is only requested to be transmitted once, be not emergency data, then by the TCP responses The duplicate answer count value zero setting of message, then sends the corresponding tcp data message of the TCP response messages to terminal.For example, The newest confirmation number of server is 1001, when the message confirmation number of TCP response messages is 2001, it is seen that the newest confirmation of server Number corresponding tcp data message is successfully uploaded, base station will the corresponding tcp data message of TCP response messages send to terminal. The tcp data message replied first is sent directly to terminal by base station, has saved Internet resources, improves data transmission efficiency, is had Beneficial to the transmission of follow-up tcp data message, it is beneficial to improve operation benefits and Consumer's Experience.
Such as Fig. 5, in one embodiment, the newest confirmation number of server is obtained afterwards, comprise the following steps:
S33:If the message of the TCP response messages confirms number newest confirmation number for being less than the server, send described The corresponding tcp data message of TCP response messages is to terminal.
After obtaining the message confirmation number and the newest confirmation number of the server of TCP response messages, if the TCP responses The message of message confirms number newest confirmation number for being less than the server, at this moment directly by the corresponding TCP of the TCP response messages Data message is sent to terminal, without the need for carrying out retransmission process by base station.The message of such as TCP response messages confirms 2001, the newest confirmation number of server lags behind server most for the corresponding tcp data message of 3001, TCP response messages It is new to confirm number corresponding tcp data message, belong to late response, the transmission method for the tcp data message of late response, Without the need for the additional treatments retransmitted by base station, directly the tcp data message transmissions of late response net is saved into terminal Network resource, improves the efficiency of transmission of backward packet, is conducive to the transmission of follow-up data bag.
Such as Fig. 6, in one embodiment, the message confirmation number of the TCP response messages received by network side is obtained before, bag Include following steps:
S111:Receive the tcp data message of side upload of eating dishes without rice or wine;
S112:Obtain the serial number of the tcp data message, and according to the order of serial number by the tcp data message Insertion local cache, for network side Fast retransmission;
S113:The tcp data message is sequentially transferred to into normal priority transmit queue.
Eat dishes without rice or wine side upload tcp data message to base station, base station by eat dishes without rice or wine side upload tcp data message insert in order In entering local cache, tcp data message is pressed into serial number and data length arrangement, form orderly data message, can be improved Side of eating dishes without rice or wine uploads the efficiency that tcp data message and base station receive tcp data message.
Such as Fig. 7, in one embodiment, the serial number of the tcp data message is obtained, and according to the order of serial number by institute It is further comprising the steps of after stating the packet insertion local cache of tcp data message:
S1121:Obtain each tcp data sequence of message number of the tcp data message data stream in local cache;
S1122:If there is out of order, the out of order tcp data message data stream of acquisition in the serial number of tcp data message data stream Each tcp data sequence of message number;
S1123:The out of order tcp data message data stream is adjusted according to the tcp data header information It is whole.
Tcp data message data stream includes several tcp data messages, and in local cache, base station is by tcp data message Packet press serial number order arrangement after, obtain again in order arrangement after, according to each tcp data sequence of message number judge Tcp data message data stream with the presence or absence of out of order, if there is each tcp data of out of order, out of order tcp data message data stream Sequence of message number, they are arranged in order again.Again in order arrangement can follow following rule:Second tcp data report Literary serial number is equal to the length of first tcp data sequence of message number plus first tcp data sequence of message number, the 3rd The serial number of tcp data sequence of message number is equal to the serial number of second tcp data sequence of message number and adds second tcp data The length of sequence of message number, by that analogy, does not repeat.
Illustrate below by an instantiation.
For example, each tcp data sequence of message number of out of order section of tcp data message data stream is 1001 (data lengths 1000), 3001 (data lengths 2000), 2001 (data lengths 1000), according to serial number and data length these are rearranged Tcp data message, the tcp data message sequence after arrangement is:... 1001 (data lengths 1000), 2001 (data lengths 1000), 3001 (data lengths 2000), 5001 ..., tcp data message data stream is stored in order after local cache, first Obtain high priority and send data queue's number of data packets, it is preferential to send current in high priority packets toward network side server The most front tcp data message of order.Just can by transmit queue of the tcp data transmission method in the local cache of base station Ensure the order of tcp data message as far as possible so that the tcp data of base station strictly can in the correct order be uploaded to service Device, reduces number of retransmissions, is conducive to improving the efficiency of transmission of server.
The TCP transmission method of the present invention describes base station and receives TCP response messages and the method for being processed from network side, Fig. 8 is the applied environment figure of TCP transmission, including side of eating dishes without rice or wine, network side and base station, when side of eating dishes without rice or wine uploads tcp data message to net During network side, base station is first put into tcp data message in local cache, and then base station is sent to network side according to normal priority, Base station decides whether to retransmit the corresponding tcp data message of TCP response messages according to the TCP response messages received from network side.Institute It can be network side server to state server, and the terminal can be lateral terminal of eating dishes without rice or wine, and side of eating dishes without rice or wine is by the Transmission Control Protocol of base station to network Side transmission data, using Transmission Control Protocol for the transmission process of data is applicable to each standard base station such as 2G, 3G or 4G, especially fits For LTE (Long Term Evolution, Long Term Evolution) base station.Above-mentioned TCP transmission method, simple structure is flexible, the suitability By force, local cache be used for ensure data according to priority order send and data retransmit, it is possible to decrease the read-write pressure of base station and Offered load pressure, to reduce be responsible for the time delay brought of re-transmission tcp data message by side of eating dishes without rice or wine under general scene, can improve Communication efficiency, and compatibility data transfer end to end, even if burst empties local cache, also will not cause negatively to data transfer Affect, be particularly suited for the transport layer data interactive system of LTE base station, maintenance cost is low, algorithm benefit big, highly versatile.
Above-mentioned TCP transmission method, can be applicable to mobile communication technology field, by obtaining the TCP received by network side The message of response message confirms number and obtains the newest confirmation number of server, judge the message confirmation number of TCP response messages with And the relation of the newest confirmation number of server, if the message confirms number newest confirmation number for being equal to the server, increase The duplicate answer count value of the TCP response messages, if the duplicate answer count value is equal to predetermined threshold value, improves local slow The transmission priority of the corresponding tcp data messages of TCP response messages described in depositing, illustrates the corresponding TCP of the TCP response messages Data message is the emergency data that need to be again uploaded to network side, and by base station the transmission priority of the emergency data is improved, excellent First transmit the tcp data message so that the tcp data message is timely transmitted.In data transmission procedure, due to ring of eating dishes without rice or wine Border is complicated and changeable, situations such as channel bit error rate is high and shakes big, easily affects data to retransmit, therefore, how to reduce ring of eating dishes without rice or wine Data retransmission delay time is particularly important under border.The TCP transmission method is by adopting base station TCP agreement in local cache Emergency data carries out retransmission process, and deep analysis can be carried out to TCP response messages, and needs transmission in time according to actual transmissions Data, disclosure satisfy that more urgent data transfer demands, lift the data transmission performance that mobile communication connection networks, and possess spirit Activity and adaptability.Avoid in TCP processing datas, strictly sequentially transmission data, affect to retransmit promptness rate.The TCP transmission Method, by Transmission Control Protocol mobile communication technology internal agreement is combined so that the service quality of base station is improved so that data transfer exists Can also obtain transmitting in time and accurately under severe environment of eating dishes without rice or wine, improve Consumer's Experience and operation economic benefit.
If Fig. 9 is the structure schematic diagram that the TCP transmission device in one embodiment is tied, the TCP transmission device of Fig. 9 includes:
Message confirmation acquisition module 100, the message for obtaining the TCP response messages received by network side is confirmed Number;
Newest confirmation acquisition module 200, for obtaining the newest confirmation number of server;
First identification module 300, if confirming number newest confirmation number for being equal to the server for the message, increases institute State the duplicate answer count value of TCP response messages;
Priority improves module 400, if being equal to predetermined threshold value for the duplicate answer count value, in improving local cache The transmission priority of the corresponding tcp data message of the TCP response messages.
Figure 10 be one embodiment in the first identification module 300 structural representation, first identification module 300 of Figure 10 Including:
Detection module 301, for detecting that the corresponding tcp data message of the TCP response messages whether there is in local slow Deposit;
Release module 302, if for being present in local cache, will be present in the TCP response messages of local cache The corresponding tcp data message for successfully having uploaded is discharged.
Figure 11 is the structural representation of the TCP transmission device in one embodiment, and the TCP transmission device of Figure 11 also includes:
Second identification module 310, if the message confirmation number for the TCP response messages is newest more than the server Confirmation number, the corresponding tcp data message of newest confirmation number for detecting the server whether there is in local cache;
Newest confirmation setup module 410, if being present in local cache, the newest confirmation number of the server is arranged Message for TCP response messages confirms number that and it is corresponding to will be present in the newest confirmation number of the server of local cache The tcp data message for successfully uploading is discharged.
In one embodiment, Figure 12 is referred to, the TCP transmission device of Figure 12 also includes:
Duplicate answer count value zero setting module 411, for by the duplicate answer count value zero setting of the TCP response messages;
Sending module 412, for sending the corresponding tcp data message of the TCP response messages to terminal.
Figure 13 is the structural representation of the TCP transmission device in one embodiment, and the TCP transmission device of Figure 13 includes:
3rd identification module 320, if the message confirmation number for the TCP response messages is newest less than the server Confirmation number, sends the corresponding tcp data message of the TCP response messages to terminal.
Figure 14 is the structural representation of the TCP transmission device in one embodiment, and the TCP transmission device of Figure 14 also includes:
Tcp data Receive message module 500, for receiving the tcp data message of side upload of eating dishes without rice or wine;
Tcp data packet storage module 600, for obtaining the serial number of the tcp data message, and according to serial number The tcp data message is inserted local cache by order, for network side Fast retransmission;
Tcp data message sending module 700, sends for the tcp data message to be sequentially transferred to into normal priority Queue.
Figure 15 be one embodiment in tcp data packet storage module 600 schematic diagram, tcp data message in Figure 15 Memory module 600 includes:
Serial number acquisition module 601, for obtaining local cache in tcp data message data stream each tcp data report Literary serial number;
Out of order processing module 602, if the serial number for tcp data message data stream has out of order, the out of order TCP of acquisition Each tcp data sequence of message number of data message data flow;
Adjusting module 603, for according to the tcp data header information by the out of order tcp data message number It is adjusted according to stream.
The TCP transmission device of the present invention is corresponded with the TCP transmission method of the present invention, in above-mentioned TCP transmission method The technical characteristic and its advantage of embodiment elaboration hereby give notice that suitable for the embodiment of TCP transmission device.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply each technical characteristic in example be possible to combination be all described, as long as but there is no lance in the combination of these technical characteristics Shield, all should be the scope of this specification record.
Embodiment described above only expresses several embodiments of the present invention, and its description is more concrete and detailed, but not Therefore the restriction to the scope of the claims of the present invention can be interpreted as.It should be pointed out that for one of ordinary skill in the art comes Say, without departing from the inventive concept of the premise, some deformations and improvement can also be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (10)

1. a kind of TCP transmission method, it is characterised in that comprise the following steps:
Obtain the message confirmation number of the TCP response messages received by network side;
Obtain the newest confirmation number of server;
If the message confirms number newest confirmation number for being equal to the server, increase the duplicate answer of the TCP response messages Count value;
If the duplicate answer count value is equal to predetermined threshold value, the corresponding TCP numbers of TCP response messages described in local cache are improved According to the transmission priority of message.
2. TCP transmission method according to claim 1, it is characterised in that if the message confirms number to be equal to the service The newest confirmation number of device, it is further comprising the steps of after increasing the duplicate answer count value of the TCP response messages:
Detect that the corresponding tcp data message of the TCP response messages whether there is in local cache;
If so, the TCP response messages that then will be present in local cache corresponding have uploaded the successful tcp data message Discharged.
3. TCP transmission method according to claim 1, it is characterised in that obtain the newest confirmation number of server afterwards, also Comprise the following steps:
If the message of the TCP response messages confirms number newest confirmation number for being more than the server, the server is detected Newest confirmation number corresponding tcp data message whether there is in local cache;
If so, then the message that the newest confirmation number of the server is set to TCP response messages confirmed number, and will be present in this The corresponding successfully tcp data message that uploaded of the newest confirmation number of the server of ground caching is discharged.
4. TCP transmission method according to claim 3, it is characterised in that arrange the newest confirmation number of the server Message for TCP response messages confirms number that and it is corresponding to will be present in the newest confirmation number of the server of local cache It is further comprising the steps of after the tcp data message for successfully uploading is discharged:
By the duplicate answer count value zero setting of the TCP response messages;
The corresponding tcp data message of the TCP response messages is sent to terminal.
5. TCP transmission method according to claim 1, it is characterised in that obtain the newest confirmation number of server afterwards, bag Include following steps:
If the message of the TCP response messages confirms number newest confirmation number for being less than the server, the TCP responses report is sent The corresponding tcp data message of text is to terminal.
6. TCP transmission method according to claim 1, it is characterised in that obtain the TCP response reports by network side reception The message confirmation number of text before, is comprised the following steps:
Receive the tcp data message of side upload of eating dishes without rice or wine;
The serial number of the tcp data message is obtained, and it is according to the order of serial number that tcp data message insertion is local slow Deposit, for network side Fast retransmission;
The tcp data message is sequentially transferred to into normal priority transmit queue.
7. tcp data transmission method according to claim 6, it is characterised in that obtain the sequence of the tcp data message Number, and the packet of the tcp data message is inserted after local cache, also including following step according to the order of serial number Suddenly:
Obtain each tcp data sequence of message number of the tcp data message data stream in local cache;
If there is out of order, each TCP numbers of the out of order tcp data message data stream of acquisition in the serial number of tcp data message data stream According to sequence of message number;
The out of order tcp data message data stream is adjusted according to the tcp data header information.
8. a kind of TCP transmission device, it is characterised in that include:
Message confirmation acquisition module, for obtaining the message confirmation number of the TCP response messages received by network side;
Newest confirmation acquisition module, for obtaining the newest confirmation number of server;
Duplicate answer count value accumulator module, if confirming number newest confirmation number for being equal to the server for the message, increases Plus the duplicate answer count value of the TCP response messages;
Priority improves module, if being equal to predetermined threshold value for the duplicate answer count value, improves TCP described in local cache The transmission priority of the corresponding tcp data message of response message.
9. TCP transmission device according to claim 8, it is characterised in that duplicate answer count value accumulator module includes:
Detection module, for detecting that the corresponding tcp data message of the TCP response messages whether there is in local cache;
Release module, if for being present in local cache, the TCP response messages that will be present in local cache are corresponding The tcp data message for successfully uploading is discharged.
10. TCP transmission device according to claim 8, it is characterised in that also include:
First identification module, if the message for the TCP response messages confirms number newest confirmation number for being more than the server, The corresponding tcp data message of newest confirmation number for detecting the server whether there is in local cache;
Newest confirmation setup module, if being present in local cache, the newest confirmation number of the server is set to into TCP should The message for answering message confirms number, and will be present in that the newest confirmation number of the server of local cache is corresponding successfully to be uploaded The tcp data message discharged.
CN201611226108.8A 2016-12-27 2016-12-27 TCP transmission method and device Active CN106657078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611226108.8A CN106657078B (en) 2016-12-27 2016-12-27 TCP transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611226108.8A CN106657078B (en) 2016-12-27 2016-12-27 TCP transmission method and device

Publications (2)

Publication Number Publication Date
CN106657078A true CN106657078A (en) 2017-05-10
CN106657078B CN106657078B (en) 2020-05-05

Family

ID=58832433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611226108.8A Active CN106657078B (en) 2016-12-27 2016-12-27 TCP transmission method and device

Country Status (1)

Country Link
CN (1) CN106657078B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981229A (en) * 2019-03-25 2019-07-05 京信通信系统(中国)有限公司 Data processing method, device, computer equipment and the storage medium of rlc layer
CN113961212A (en) * 2021-10-29 2022-01-21 重庆长安汽车股份有限公司 OTA installation package deployment method and system based on Ethernet and method for upgrading vehicle controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141443A (en) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 Method and system for detecting TCP insertion type attack
CN102143078A (en) * 2011-03-29 2011-08-03 华为技术有限公司 Forwarding equipment as well as method and system for processing message
CN103442391A (en) * 2013-09-12 2013-12-11 华为终端有限公司 Data transmission method and system as well as user terminal
CN104780028A (en) * 2015-04-02 2015-07-15 京信通信技术(广州)有限公司 Method and equipment for retransmitting TCP (transmission control protocol) data messages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141443A (en) * 2006-09-05 2008-03-12 中兴通讯股份有限公司 Method and system for detecting TCP insertion type attack
CN102143078A (en) * 2011-03-29 2011-08-03 华为技术有限公司 Forwarding equipment as well as method and system for processing message
CN103442391A (en) * 2013-09-12 2013-12-11 华为终端有限公司 Data transmission method and system as well as user terminal
CN104780028A (en) * 2015-04-02 2015-07-15 京信通信技术(广州)有限公司 Method and equipment for retransmitting TCP (transmission control protocol) data messages

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981229A (en) * 2019-03-25 2019-07-05 京信通信系统(中国)有限公司 Data processing method, device, computer equipment and the storage medium of rlc layer
CN113961212A (en) * 2021-10-29 2022-01-21 重庆长安汽车股份有限公司 OTA installation package deployment method and system based on Ethernet and method for upgrading vehicle controller
CN113961212B (en) * 2021-10-29 2024-05-10 重庆长安汽车股份有限公司 OTA installation package deployment method and system based on Ethernet and method for upgrading vehicle controller

Also Published As

Publication number Publication date
CN106657078B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN102387009B (en) Uplink transmission method of radio link control layer and evolutionary node B
KR101638195B1 (en) A method and appratus for flow control between rlc and pdcp in a communication
CN101588225B (en) Quick retransmission technique based on packet switching network
KR100839267B1 (en) Methods and apparatus to optimize delivery of multicast content using probabilistic feedback
US8730885B2 (en) Method for improved robust header compression with low signal energy
EP2144391B1 (en) Method for transmitting retransmission request and receiving side device
JP2010532639A5 (en)
CN101119183A (en) Retransmission control method and transmission equipment
CN104486051A (en) Data retransmission method and device
CN105934907A (en) Radio resource scheduling method and apparatus
CN102740403A (en) Method and apparatus for access in terminal of communication network
CN101132257B (en) Condition report transmission method and sending terminal equipment thereof
CN106171004A (en) A kind of RLC packet shunt method and base station
KR101532222B1 (en) Communication system and method for connecting of rrc therein
CN103338184A (en) Data transmitting method and apparatus, data receiving apparatus and data transmission system
CN101697630B (en) Method and device for reporting status of wireless link extended buffer area
CN104184568B (en) The data transmission method and system of communication system
RU2008124979A (en) METHOD FOR DATA TRANSFER AND METHOD FOR REPEATING DATA
CN103703828B (en) Data transmission method and equipment
CN102804664B (en) Communication system, communication device, communication method, and program
CN103716141A (en) Signal transmission method and apparatus for user equipment in mobile communication system
CN106657078A (en) TCP (Transmission Control Protocol) transmission method and device
US20100144364A1 (en) Retransmission control method and transmitting-side apparatus
CN101699782B (en) Processing method and device of wireless link retransmitted data
TWI814957B (en) Communication device and communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180214

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Comba Telecom System (China) Co., Ltd.

Applicant after: Comba Telecom Systems (Guangzhou) Co., Ltd.

Applicant after: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant after: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

Address before: 510663 Guangdong city of Guangzhou province Guangzhou economic and Technological Development Zone Jinbi Road No. 6

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200117

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Patentee after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Patentee before: Comba Telecom System (China) Ltd.

CP01 Change in the name or title of a patent holder