CN105991223A - Method and system for preventing packet splicing in TCP network data transmission - Google Patents

Method and system for preventing packet splicing in TCP network data transmission Download PDF

Info

Publication number
CN105991223A
CN105991223A CN201510077379.0A CN201510077379A CN105991223A CN 105991223 A CN105991223 A CN 105991223A CN 201510077379 A CN201510077379 A CN 201510077379A CN 105991223 A CN105991223 A CN 105991223A
Authority
CN
China
Prior art keywords
data
round
robin queue
location
storage
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
CN201510077379.0A
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.)
TCL Corp
Original Assignee
TCL 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 TCL Corp filed Critical TCL Corp
Priority to CN201510077379.0A priority Critical patent/CN105991223A/en
Publication of CN105991223A publication Critical patent/CN105991223A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a system for preventing packet splicing in TCP network data transmission. Through adopting a circular queue to cache network data, and an operation interface is provided for processing the data. As the data are stored circularly, after storage of the circular queue arrives at the end, following received data are stored circularly at the beginning of the circular queue, and data in the read circular queue are cleared, the received data are circularly stored in the queue. When the method and the system of the invention are used, a caller does not need to maintain many parameters, and while the transmission efficiency is not reduced, the possibility of wrong data transmission caused by packet splicing between data packets in the case of TCP network data transmission is reduced.

Description

The method and system of antiseized bag in a kind of TCP transmitted data on network
Technical field
The present invention relates to the information communications field, the method and system of antiseized bag during a kind of TCP transmission data.
Background technology
TCP is connection-oriented transport layer protocol, its target is to provide reliable end to end connection, the transmission that guarantee information is the most errorless, it is in addition to providing basic data-transformation facility, additionally uses data number, verifies and calculate, the series of measures such as data validation to be to ensure reliability.
TCP glues bag and refers to that some packets that sender sends stick into a bag when recipient receives, from receiving in terms of relief area, and the tail of the head the most previous bag data of rear bag data.The reason causing viscous bag phenomenon is many, and it both may be caused by sender, it is also possible to is caused by recipient.The viscous bag that sender causes is caused by Transmission Control Protocol itself, and TCP is for improving efficiency of transmission, and sender just sends bag data after often collecting abundant data.If the data sent several times continuously are all little, usual TCP once can send after these Data Synthesis one being wrapped according to optimized algorithm, and such recipient just have received viscous bag data.The viscous bag that recipient causes is owing to recipient's consumer process receives data not in time, thus causes viscous bag phenomenon.This is because recipient is first placed on system the data received receives relief area, consumer process fetches data from this relief area, if previous bag data are not yet taken away by consumer process when next bag data arrives, after then next bag data is put into and just receives previous bag data when system receives relief area, and consumer process receives relief area according to buffer size set in advance from system and fetches data, many bags data are the most once got.Viscous bag situation has two kinds, a kind of be coherent bag be all complete packet, another kind of situation is coherent to be surrounded by incomplete bag.
Not every viscous bag phenomenon is required for processing, if the data of transmission are the continuous flow datas (as file transmits) of not band structure, then and need not the bag of adhesion separately.But in actual applications, the data of transmission are usually the data of band structure, at this moment it are accomplished by doing subpackage and process.
But in actual applications, the data of transmission are usually the data of band structure, at this moment it are accomplished by doing subpackage and process.
Under normal circumstances, in order to avoid the viscous bag of data, prior art uses certain methods avoid: one is by arranging socket parameter, just send after forcing to send data immediately rather than wait relief area completely;Two is the viscous bag caused for recipient, then can pass through optimum program design, simplify the measure such as receiving process workload, raising receiving process priority so that it is receive data in time, thus avoid viscous bag phenomenon as far as possible;Three is that by bag data by texture field, manual control receives several times, is then combined with by Reception Control, avoids viscous bag by this means.Above-mentioned three kinds of measures, have its weak point.Although the first programming method to set up can avoid the viscous bag that sender causes, but eliminates optimized algorithm, reduce network transmitting efficiency, affect the performance of application program.Second method can only reduce the viscous probability wrapped, but can not avoid viscous bag completely, and when transmission frequency is higher, or owing to network burst may make certain time period packet arrive recipient comparatively fast, recipient is it is also possible that have little time to receive, thus causes viscous bag.Although the third method avoids viscous bag, but application program is inefficient, is not suitable for the occasion of application in real time.
The solution that a kind of comparison of existing use is thorough is: recipient creates a pretreatment thread, and the packet received is carried out pretreatment, by the bag of adhesion separately.Concrete: the network data of reception is stored in array, from the starting position of array, read length field L, if the valid data in array are more than or equal to L, then according to L, from array, extract a packet p, then, by the remaining data of array, re-move the starting position of array, be further continued for receiving data or analyzing whether remaining data meets the condition extracting a packet.The shortcoming of the method is, after having processed data, it is necessary to data re-move the starting position of array, otherwise when continuing to data, may because array remaining space is not enough cannot receiving network data completely, additionally, the valid data length of array, needs extra parameter maintenance.
Therefore, prior art existing defects, need to be improved and develop.
Summary of the invention
The reason of data can not be received in time due to TCP network transmission itself or recipient when present invention aims to above-mentioned TCP transmitted data on network of the prior art, cause the defect that viscous bag occurs between the packet of transmission, it is provided that the method and system of antiseized bag during a kind of TCP transmission data.
Technical scheme is as follows:
A kind of method of antiseized bag during TCP transmission data, wherein, is applied to data receiver, and described method includes:
A, in advance transmission data buffer area in set up round-robin queue;
B, receive from the data of sender, and the data of reception are arranged in order storage in round-robin queue, and judge round-robin queue, whether the data of storage contain complete packet from the starting position of storage data, if containing, perform step C, otherwise repeat this step;
C, extract this complete packet, and remove the data corresponding to this complete packet extracted in described round-robin queue;Whether it is aligned to judge at the ending of round-robin queue to the data received in described round-robin queue simultaneously, if being aligned at ending, then performs step D, otherwise return step B;
D, subsequently received data are carried out from the starting position of round-robin queue the storage of subsequent cycle.
The method of antiseized bag during described TCP transmission data, wherein, also includes step A1 in above-mentioned steps A:
A1, the location that starts being provided for positioning the starting position and end position wherein storing data in round-robin queue identify and terminate location mark.
The method of antiseized bag during described TCP transmission data, wherein, also includes in described step C:
After removing in described round-robin queue the data corresponding to complete data packet, the described location mark that starts is automatically moved to the starting end of next complete data packet corresponding storage position;
Described step B also includes:
The data of reception being arranged in order after storing in round-robin queue, the described location mark that terminates is automatically moved to the end position of data storage.
The method of antiseized bag during described TCP transmission data, wherein, above-mentioned steps C also includes: judge whether the data stored in round-robin queue contain the method for complete packet and be: judge that whether tentation data length is less than or equal to the valid data length of storage in round-robin queue, if less than or equal to, it is judged to containing complete packet, is otherwise judged to not contain;
Described valid data are a length of: when starting location mark when terminating before the mark of location, location mark and the queue length terminated between the mark of location is started described, when starting location and identifying after end location identifies, then it is positioned at described beginning and terminates to position the queue length before mark with being positioned at after location identifies.
The method of antiseized bag during described TCP transmission data, wherein, further comprises the steps of: before described step A
In the buffer area for transmitting data, it is provided for setting up the memory headroom of round-robin queue in advance.
The system of antiseized bag during a kind of TCP transmission data, wherein, is applied to data receiver, and described system includes:
Round-robin queue sets up module, sets up round-robin queue in advance in the buffer area of transmission data;
The data of reception for receiving from the data of sender, and are arranged in order storage in round-robin queue, and judge whether the data stored round-robin queue contain complete packet from the starting position of storage data by data storage judge module;
Data are extracted and remove module, for extracting this complete packet, and remove the data corresponding to this complete packet extracted in described round-robin queue;Whether it is aligned to judge at the ending of round-robin queue to the data received in described round-robin queue simultaneously;
Subsequently received data at the data arrangement received in described round-robin queue to the ending of round-robin queue, are then carried out the storage of subsequent cycle by circulation memory module from the starting position of round-robin queue.
The system of antiseized bag during described TCP transmission data, wherein, described round-robin queue sets up module and includes mark location unit;
Described mark location unit, identifies for the location that starts being provided for positioning the starting position and end position wherein storing data in round-robin queue and terminates location mark.
The system of antiseized bag during described TCP transmission data, wherein, described data storage judge module includes terminating location mark mobile unit;Described data are extracted and are removed module and include starting location mark mobile unit;
The described location that starts identifies mobile unit, for after the data corresponding to complete data packet in the described round-robin queue of removing, is automatically moved to store corresponding to next complete data packet the starting end of position by the described location mark that starts;
Described terminating location mark mobile unit, for the data of reception being arranged in order storage to after in round-robin queue, the described location mark that terminates is automatically moved to the end position of data storage.
The system of antiseized bag during described TCP transmission data, wherein, described system also includes: memory setting module;
Described memory setting module, is used for being provided for setting up in advance in the buffer area for transmitting data the memory headroom of round-robin queue.
Beneficial effect: the method and system of a kind of antiseized bag of TCP transmitted data on network provided by the present invention, by using round-robin queue's buffer network data, and provides operation interface, processes data.Owing to data are circulation storages, after round-robin queue stores at ending, the data next received, can circulate and be stored in round-robin queue beginning, and data can be eliminated in the round-robin queue read, therefore, the data received can circulate and store in queue, and use the method and system, caller need not safeguard a lot of parameters, while not reducing efficiency of transmission, when decreasing TCP transmitted data on network, viscous bag phenomenon is occurred to cause the possibility of data transmission fault.
Accompanying drawing explanation
The flow chart of steps of the method for a kind of antiseized bag of TCP transmitted data on network that Fig. 1 provides for the present invention.
The arrangement schematic diagram of round-robin queue's storage data in the method for a kind of antiseized bag of TCP transmitted data on network that Fig. 2 a-Fig. 2 e provides for the present invention.
The method specific embodiment schematic diagram of a kind of antiseized bag of TCP transmitted data on network that Fig. 3 provides for the present invention.
The system structure principle schematic of a kind of antiseized bag of TCP transmitted data on network that Fig. 4 provides for the present invention.
Detailed description of the invention
The invention provides the method and system of a kind of antiseized bag of TCP transmitted data on network, below in conjunction with accompanying drawing embodiments of the invention, described method and system are described in detail.
Based in the prior art by creating a pretreatment thread in recipient's buffer memory, first the packet received is carried out pretreatment, wherein, owing to needing after the complete data packet of the storage extracted in array every time, the data of remaining storage need to re-move the starting position of array, then it is further continued for receiving data and the extracting data complete data packet from remaining storage, mention data every time all must move remaining storage data and numerical value all problems such as the extra maintenance of the data needs of storage from bringing, the invention provides and a kind of use round-robin queue to carry out the method that data storage prevents from viscous bag between packet.
The invention provides a kind of method of antiseized bag during TCP transmission data, be applied to data receiver, as it is shown in figure 1, said method comprising the steps of:
S1, in advance transmission data buffer area in set up round-robin queue.
In order to prevent sender from sending, and there is the situation of viscous bag in the packet that recipient can not receive in time, first setting up round-robin queue in the buffer area for storing transmission data, described round-robin queue is for being circulated storage to the data kept in buffer area.
S2, receive from the data of sender, and the data of reception are arranged in order storage in round-robin queue, and judge round-robin queue, whether the data of storage contain complete packet from the starting position of storage data, if containing, perform step C, otherwise repeat this step.
Receive the data that sender sends, the data received are arranged in order in round-robin queue according to the sequencing received.Judge whether queue has been received by complete packet from the starting position of storage queue, if receiving, performing step S3, otherwise continuing to data.
S3, extract this complete packet, and remove the data corresponding to this complete packet extracted in described round-robin queue;Whether it is aligned to judge at the ending of round-robin queue to the data received in described round-robin queue simultaneously, if being aligned at ending, then performs step S4, otherwise return step S2.
Extract the complete packet detected in above-mentioned steps S2, replicate the content comprised in described packet, and remove the data corresponding to described packet comprised in round-robin queue, from but round-robin queue described in position shared by packet idle, it is simple to the storage of next packet.
S4, subsequently received data are carried out from the starting position of round-robin queue the storage of subsequent cycle
Next the data received are carried out from the starting position of round-robin queue the storage of subsequent cycle, i.e. restarts to carry out the storage of data from the starting position of round-robin queue.
When the present invention is, data circulate storage in round-robin queue, when i.e. reading data, it is read out from the effective starting end all preserving data from round-robin queue every time, and the data dump after reading, the starting position then storing data stores the starting position of packet along with the removing of packet also is moved into the next one, and when the data arrangement received stores at the ending of round-robin queue, then automatically store from the starting end of round-robin queue, it is achieved thereby that on the premise of the storage invariant position of the data of storage, prevent the viscous bag problem between packet, improve the efficiency of transmission data.
In order to enable preferably to round-robin queue storing the starting end of data and terminating end and position, also include step S11 in above-mentioned steps S1:
S11, the location that starts being provided for positioning the starting position and end position wherein storing data in round-robin queue identify and terminate location mark.
As shown in Figure 2 a, before round-robin queue does not starts to store data, location mark in the storage data of round-robin queue has the starting position and end position that data store, as in figure with the beginning of begin mark storage data, at the end with end mark storage data.Owing to not storing data in round-robin queue in Fig. 2 a, therefore on it, begin mark and the end mark of display are positioned at round-robin queue's same position.
If Fig. 2 b is the schematic diagram that in round-robin queue, storage has packet P1 and P2, as shown in the figure, round-robin queue receives packet P1 and P2 from recipient, and use starts location mark and end location identifies the position to the data wherein stored and is identified, as it can be seen, begin mark is expressed as starting location mark, before it is positioned at packet P1 storage position, described end mark represents that terminating location identifies, after it is positioned at packet P2 storage position.
Fig. 2 c is when proceeding by the detection of complete data packet at mark, when detecting that in round-robin queue, storage has complete data packet P1, after complete data packet P1 is extracted and removed, stores the structural representation of data in round-robin queue from starting to position.As it can be seen, after packet is eliminated, wherein the position of storage packet P1 is idle, therefore starts the beginning of the packet P2 wherein stored during location mark moves, the starting position storing data in round-robin queue is positioned.
When round-robin queue receiving packet P3 again Fig. 2 d is statement in above-mentioned Fig. 2 c, store, then terminate to position after mark is automatically moved to packet P3, i.e. end mark shown in figure there occurs change according to storing data in round-robin queue, there occurs movement.
Fig. 2 e is at the ending of the queue that the data stored when round-robin queue have arrived, then terminate location mark and automatically return to the starting end of round-robin queue, the position being stored the data received positions, that is to say when packet P5 is saved in the starting end of round-robin queue, then packet P5 ending segment is designated the end position of data storage, and the packet being newly received is stored in free buffer region below, end position, and detect whether that storage has complete data packet from begin home position, and after extracting complete packet, remove corresponding data, thus the data received that achieve a butt joint are circulated storage.
As described in above-mentioned Fig. 2 b-Fig. 2 c, step S4 also includes:
After removing in described round-robin queue the data corresponding to complete data packet, the described location mark that starts is automatically moved to the starting end of next complete data packet corresponding storage position;
Described in Fig. 2 a-Fig. 2 b as described above, step S2 also includes:
The data of reception being arranged in order after storing in round-robin queue, the described location mark that terminates is automatically moved to the end position of data storage.
In order to enable more accurately to whether round-robin queue is contained complete packet, in above-mentioned steps S3, judge whether the data stored in round-robin queue contain the method for complete packet and be: judge that whether tentation data length is less than or equal to the valid data length of storage in round-robin queue, if less than or equal to, it is judged to, containing complete packet, otherwise be judged to not contain complete packet;
Described valid data are a length of: when starting location mark when terminating before the mark of location, location mark and the queue length terminated between the mark of location is started described, when starting location and identifying after end location identifies, then it is positioned at described beginning and terminates to position the queue length before mark with being positioned at after location identifies.The valid data a length of begin mark (i.e. starting location mark) and the end that such as store data in Fig. 2 d in round-robin queue identify the data length between (i.e. terminating to position mark), and the valid data a length of begin mark storing data in Fig. 2 e in round-robin queue (the most described location that starts identifies) afterwards and is positioned at the data length before end mark (i.e. terminating location to identify).
In order to enable buffer zone is set up round-robin queue, further comprised the steps of: before described step S1
S0, the buffer area of data is being provided for setting up the memory headroom of round-robin queue for transmitting in advance.
It is illustrated in figure 3 the method for the antiseized bag flow chart of steps when specific embodiment during a kind of TCP transmission data provided by the present invention, as it can be seen, when specifically implementing, said method comprising the steps of:
When H1, beginning, initially set up the round-robin queue prestored for the data that sender is sent.
H2, the data of reception TCP transmission, and write data in round-robin queue, and mobile end location, the position mark being according to the data of storage in round-robin queue in real time.
H3, while the data received are stored into round-robin queue, the recipient of data is from starting to position the field of a length of I of home position reading, and judge that whether this field length is less than or equal to valid data length, if less than or equal to, judged in round-robin queue, there is at least one complete packet, then perform step H5, otherwise, return to step H2 and continue to data, illustrate round-robin queue does not exist complete packet.
The complete packet that H5, extraction detect, and empty this packet data in round-robin queue, and mobile beginning positions the starting position being identified to next packet storage.
As a example by c++ language, the interface that round-robin queue provides is as follows:
1、long init(long size)
Round-robin queue opens up the memory headroom that size is size.
2、long writeBuffer(const char *pData, long len)
TCP receives the network data of a length of len, is written to round-robin queue.
3、long readBuffer(char *pBuf, long len)
From the beginning of round-robin queue begin position, take out the data of a length of len.
4、long readBytes(char *pBuf, long len)
From the beginning of round-robin queue begin position, read the data of a length of len.
5、long getDataLength()
Return the length of valid data in round-robin queue.
6、longgetBufferSize()
Return the size of round-robin queue.
Wherein, the difference of readBuffer, readBytes is, after readBuffer reads data, the position of begin vernier can be moved, i.e. taken out network data, and readBytes is only by data copy portion, that is to say and whether be used only for default data length less than or equal to the effective length storing data, it is less than or equal to, then reads data by readBuffer, otherwise read data not by readBuffer.
Based on the above method, present invention also offers the system of antiseized bag during a kind of TCP transmission data, as shown in Figure 4, described system includes:
Round-robin queue sets up module 10, sets up round-robin queue in advance in the buffer area of transmission data;Its function is as described in above-mentioned steps S1.
The data of reception for receiving from the data of sender, and are arranged in order storage in round-robin queue by data receiver memory module 20;Its function is as described in above-mentioned steps S2.
From the starting position of storage data, packet judge module 30, for judging round-robin queue, whether the data of storage contain complete packet;Its function is as described in above-mentioned steps S3.
Data are extracted and remove module 40, for when determining in described packet judge module containing complete packet, then extracting this complete packet, and remove the data corresponding to this packet;Its function is as described in above-mentioned steps S4.
Circulation memory module 50, at the data arrangement received in the described round-robin queue of detection to the ending of round-robin queue, then automatically carrying out the storage of subsequent cycle by subsequently received data from the starting position of round-robin queue.Its function is as described in above-mentioned steps S5.
Described round-robin queue sets up module and includes mark location unit;
Described mark location unit, identifies for the location that starts being provided for positioning the starting position and end position wherein storing data in round-robin queue and terminates location mark.
Described data are extracted and are removed module and include terminating location mark mobile unit;Described data receiver memory module includes starting location mark mobile unit;
The described location that starts identifies mobile unit, for after the data corresponding to complete data packet in the described round-robin queue of removing, is automatically moved to store corresponding to next complete data packet the starting end of position by the described location mark that starts;
Described terminating location mark mobile unit, for the data of reception being arranged in order storage to after in round-robin queue, the described location mark that terminates is automatically moved to the end position of data storage.
Described system also includes: memory setting module;
Described memory setting module, is used for being provided for setting up in advance in the buffer area for transmitting data the memory headroom of round-robin queue.
The method and system of a kind of antiseized bag of TCP transmitted data on network provided by the present invention, by using round-robin queue's buffer network data, and provide operation interface, process data.Owing to data are circulation storage, after round-robin queue stores at ending, the data next received, can circulate and be stored in round-robin queue beginning, and data can be eliminated in the round-robin queue read, therefore, the data received can circulate and store in queue, and use the method and system, caller need not safeguard a lot of parameters, while not reducing efficiency of transmission, when decreasing TCP transmitted data on network, occur packet to glue the phenomenon of bag, cause the possibility of data transmission fault.
It should be appreciated that for those of ordinary skills, can be improved according to the above description or be converted, and all these modifications and variations all should be belonged to the protection domain of claims of the present invention.

Claims (9)

1. the method for antiseized bag during TCP transmission data, it is characterised in that be applied to data receiver, described method includes:
A, in advance transmission data buffer area in set up round-robin queue;
B, receive from the data of sender, and the data of reception are arranged in order storage in round-robin queue, and judge round-robin queue, whether the data of storage contain complete packet from the starting position of storage data, if containing, perform step C, otherwise repeat this step;
C, extract this complete packet, and remove the data corresponding to this complete packet extracted in described round-robin queue;Whether it is aligned to judge at the ending of round-robin queue to the data received in described round-robin queue simultaneously, if being aligned at ending, then performs step D, otherwise return step B;
D, subsequently received data are carried out from the starting position of round-robin queue the storage of subsequent cycle.
The method of antiseized bag during TCP transmission data the most according to claim 1, it is characterised in that also include step A1 in above-mentioned steps A:
A1, the location that starts being provided for positioning the starting position and end position wherein storing data in round-robin queue identify and terminate location mark.
The method of antiseized bag during TCP transmission data the most according to claim 2, it is characterised in that also include in described step C:
After removing in described round-robin queue the data corresponding to complete data packet, the described location mark that starts is automatically moved to the starting end of next complete data packet corresponding storage position;
Described step B also includes:
The data of reception being arranged in order after storing in round-robin queue, the described location mark that terminates is automatically moved to the end position of data storage.
The method of antiseized bag during TCP transmission data the most according to claim 2, it is characterized in that, above-mentioned steps C also includes: judge whether the data stored in round-robin queue contain the method for complete packet and be: judge that whether tentation data length is less than or equal to the valid data length of storage in round-robin queue, if less than or equal to, it is judged to containing complete packet, is otherwise judged to not contain;
Described valid data are a length of: when starting location mark when terminating before the mark of location, location mark and the queue length terminated between the mark of location is started described, when starting location and identifying after end location identifies, then it is positioned at described beginning and terminates to position the queue length before mark with being positioned at after location identifies.
The method of antiseized bag during TCP transmission data the most according to claim 1, it is characterised in that further comprise the steps of: before described step A
In the buffer area for transmitting data, it is provided for setting up the memory headroom of round-robin queue in advance.
6. the system of antiseized bag during TCP transmission data, it is characterised in that be applied to data receiver, described system includes:
Round-robin queue sets up module, sets up round-robin queue in advance in the buffer area of transmission data;
The data of reception for receiving from the data of sender, and are arranged in order storage in round-robin queue, and judge whether the data stored round-robin queue contain complete packet from the starting position of storage data by data storage judge module;
Data are extracted and remove module, for extracting this complete packet, and remove the data corresponding to this complete packet extracted in described round-robin queue;Whether it is aligned to judge at the ending of round-robin queue to the data received in described round-robin queue simultaneously;
Subsequently received data at the data arrangement received in described round-robin queue to the ending of round-robin queue, are then carried out the storage of subsequent cycle by circulation memory module from the starting position of round-robin queue.
The system of antiseized bag during TCP transmission data the most according to claim 6, it is characterised in that described round-robin queue sets up module and includes mark location unit;
Described mark location unit, identifies for the location that starts being provided for positioning the starting position and end position wherein storing data in round-robin queue and terminates location mark.
The system of antiseized bag during TCP transmission data the most according to claim 7, it is characterised in that
Described data storage judge module includes terminating location mark mobile unit;Described data are extracted and are removed module and include starting location mark mobile unit;
The described location that starts identifies mobile unit, for after the data corresponding to complete data packet in the described round-robin queue of removing, is automatically moved to store corresponding to next complete data packet the starting end of position by the described location mark that starts;
Described terminating location mark mobile unit, for the data of reception being arranged in order storage to after in round-robin queue, the described location mark that terminates is automatically moved to the end position of data storage.
The system of antiseized bag during TCP transmission data the most according to claim 6, it is characterised in that described system also includes: memory setting module;
Described memory setting module, is used for being provided for setting up in advance in the buffer area for transmitting data the memory headroom of round-robin queue.
CN201510077379.0A 2015-02-13 2015-02-13 Method and system for preventing packet splicing in TCP network data transmission Pending CN105991223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510077379.0A CN105991223A (en) 2015-02-13 2015-02-13 Method and system for preventing packet splicing in TCP network data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510077379.0A CN105991223A (en) 2015-02-13 2015-02-13 Method and system for preventing packet splicing in TCP network data transmission

Publications (1)

Publication Number Publication Date
CN105991223A true CN105991223A (en) 2016-10-05

Family

ID=57042153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510077379.0A Pending CN105991223A (en) 2015-02-13 2015-02-13 Method and system for preventing packet splicing in TCP network data transmission

Country Status (1)

Country Link
CN (1) CN105991223A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107026713A (en) * 2017-03-17 2017-08-08 广东蜂助手网络技术股份有限公司 A kind of method that network speed is improved in the case of network communication bag adhesion
CN107241436A (en) * 2017-07-18 2017-10-10 山东亚华电子股份有限公司 A kind of method of the transmission of TCP network high-speeds packet splicing and storage
CN109347825A (en) * 2018-10-19 2019-02-15 海南易乐物联科技有限公司 A kind of processing method based on the glutinous packet of Transmission Control Protocol data subpackage
CN109682028A (en) * 2019-01-04 2019-04-26 四川虹美智能科技有限公司 Communication means and device inside a kind of air-conditioning
CN109743291A (en) * 2018-12-12 2019-05-10 湖北航天技术研究院总体设计所 A kind of telemetry real time processing system and method based on round-robin queue
CN111245742A (en) * 2019-12-31 2020-06-05 宁波舜宇智能科技有限公司 Data buffering method and device, computer and readable storage medium
CN112702322A (en) * 2020-12-17 2021-04-23 中国电子科技集团公司第四十一研究所 Communication data packet exception handling method for intelligent management of production line
CN112995066A (en) * 2021-02-05 2021-06-18 新天科技股份有限公司 Frame data processing method and device, electronic equipment and storage medium
CN113556331A (en) * 2021-07-08 2021-10-26 深圳华臻信息技术有限公司 TCP sticky package processing method, system and storage medium
CN113596626A (en) * 2021-08-24 2021-11-02 北京理工大学 Intelligent plantar pressure detection system based on identification registration analysis
CN114915382A (en) * 2022-05-16 2022-08-16 南京航空航天大学 AGV wireless communication disconnection retransmission and data packet sticking processing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050141418A1 (en) * 2003-12-08 2005-06-30 Samsung Electronics Co., Ltd. Ring buffer management system and ring buffer management method
CN101686176A (en) * 2008-09-24 2010-03-31 中国移动通信集团辽宁有限公司 Method and device for transmitting and receiving message
CN101753586A (en) * 2010-01-20 2010-06-23 北京数码视讯科技股份有限公司 Method for transmitting data, process method for receiving data and device
CN102325010A (en) * 2011-09-13 2012-01-18 浪潮(北京)电子信息产业有限公司 Processing device and method for avoiding sticky data packets
CN102447628A (en) * 2011-12-22 2012-05-09 苏州阔地网络科技有限公司 Data packet transmission processing method and system
CN102984253A (en) * 2012-11-27 2013-03-20 山东中创软件工程股份有限公司 Transmission control protocol sticky package processing method and device
CN103532668A (en) * 2013-10-12 2014-01-22 成都阜特科技股份有限公司 Method for ensuring integrity and correctness of TCP (transmission control protocol) communication data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050141418A1 (en) * 2003-12-08 2005-06-30 Samsung Electronics Co., Ltd. Ring buffer management system and ring buffer management method
CN101686176A (en) * 2008-09-24 2010-03-31 中国移动通信集团辽宁有限公司 Method and device for transmitting and receiving message
CN101753586A (en) * 2010-01-20 2010-06-23 北京数码视讯科技股份有限公司 Method for transmitting data, process method for receiving data and device
CN102325010A (en) * 2011-09-13 2012-01-18 浪潮(北京)电子信息产业有限公司 Processing device and method for avoiding sticky data packets
CN102447628A (en) * 2011-12-22 2012-05-09 苏州阔地网络科技有限公司 Data packet transmission processing method and system
CN102984253A (en) * 2012-11-27 2013-03-20 山东中创软件工程股份有限公司 Transmission control protocol sticky package processing method and device
CN103532668A (en) * 2013-10-12 2014-01-22 成都阜特科技股份有限公司 Method for ensuring integrity and correctness of TCP (transmission control protocol) communication data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIUCHEN1206: "《TCP粘包处理-RingBuf方法》", 《HTTPS://BLOG.CSDN.NET/LIUCHEN1206/ARTICLE/DETAILS/7075770》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107026713A (en) * 2017-03-17 2017-08-08 广东蜂助手网络技术股份有限公司 A kind of method that network speed is improved in the case of network communication bag adhesion
CN107026713B (en) * 2017-03-17 2018-04-10 广东蜂助手网络技术股份有限公司 A kind of method that network speed is improved in the case of network communication bag adhesion
CN107241436A (en) * 2017-07-18 2017-10-10 山东亚华电子股份有限公司 A kind of method of the transmission of TCP network high-speeds packet splicing and storage
CN109347825B (en) * 2018-10-19 2020-01-14 海南易乐物联科技有限公司 TCP protocol-based data packet and sticky packet processing method
CN109347825A (en) * 2018-10-19 2019-02-15 海南易乐物联科技有限公司 A kind of processing method based on the glutinous packet of Transmission Control Protocol data subpackage
CN109743291A (en) * 2018-12-12 2019-05-10 湖北航天技术研究院总体设计所 A kind of telemetry real time processing system and method based on round-robin queue
CN109682028A (en) * 2019-01-04 2019-04-26 四川虹美智能科技有限公司 Communication means and device inside a kind of air-conditioning
CN111245742A (en) * 2019-12-31 2020-06-05 宁波舜宇智能科技有限公司 Data buffering method and device, computer and readable storage medium
CN112702322A (en) * 2020-12-17 2021-04-23 中国电子科技集团公司第四十一研究所 Communication data packet exception handling method for intelligent management of production line
CN112995066A (en) * 2021-02-05 2021-06-18 新天科技股份有限公司 Frame data processing method and device, electronic equipment and storage medium
CN112995066B (en) * 2021-02-05 2023-10-24 新天科技股份有限公司 Frame data processing method and device, electronic equipment and storage medium
CN113556331A (en) * 2021-07-08 2021-10-26 深圳华臻信息技术有限公司 TCP sticky package processing method, system and storage medium
CN113596626A (en) * 2021-08-24 2021-11-02 北京理工大学 Intelligent plantar pressure detection system based on identification registration analysis
CN114915382A (en) * 2022-05-16 2022-08-16 南京航空航天大学 AGV wireless communication disconnection retransmission and data packet sticking processing method
CN114915382B (en) * 2022-05-16 2024-03-22 南京航空航天大学 AGV wireless communication offline retransmission and data packet sticking processing method

Similar Documents

Publication Publication Date Title
CN105991223A (en) Method and system for preventing packet splicing in TCP network data transmission
CN107040549B (en) TCP (Transmission control protocol) sticky packet processing method, server and system
CN102611611B (en) A kind of log buffer system and method
TWI827754B (en) Mispredict recovery apparatus and method for recovering from mispredicts
CN106934318B (en) Code scanning processing method, device and system
CN102446085A (en) Hardware accelerator module and method for setting up same
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN103023939A (en) Method and system for realizing REST (Radar Electronic Scan Technique) interface of cloud cache on Nginx
CN108989103B (en) Device upgrading method, debugger, network device and network system
JP2012519924A5 (en)
CN103475451A (en) Datagram network transmission method suitable for forward error correction and encryption application
RU2010128565A (en) SYSTEM, METHOD AND DEVICE FOR DATA TRANSFER
CN102298565A (en) Method for decoding and triggering asynchronous serial bus signals
CN103179024A (en) Method and device for filtering mails
CN105843698A (en) Method for automatically adjusting BIOS (basic input/output system) option value
CN107426270A (en) A kind of data breakpoint continuous transmission method of vehicle remote monitoring terminal
CN101499920A (en) Method and apparatus for implementing veneer software download
US9465689B2 (en) Forward error correction synchronization
CN114338270B (en) Data communication method, device, electronic equipment and storage medium
CN103077052A (en) Method and device for processing unsmooth operation problem of mobile terminal
CN109800202A (en) A kind of data transmission system based on PCIE, method and device
CN106657092B (en) Service processing method and device based on SS L/T L S
CN112332952B (en) Underwater acoustic communication method for underwater glider and submerged buoy
CN101924865B (en) Method for quickly obtaining data of set top box
CN105162594B (en) A kind of quick endorsement method and signature device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161005