CN101753586A - Method for transmitting data, process method for receiving data and device - Google Patents

Method for transmitting data, process method for receiving data and device Download PDF

Info

Publication number
CN101753586A
CN101753586A CN201010034290A CN201010034290A CN101753586A CN 101753586 A CN101753586 A CN 101753586A CN 201010034290 A CN201010034290 A CN 201010034290A CN 201010034290 A CN201010034290 A CN 201010034290A CN 101753586 A CN101753586 A CN 101753586A
Authority
CN
China
Prior art keywords
data
packet
length
subpackage
buffering area
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
CN201010034290A
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.)
Sumavision Technologies Co Ltd
Original Assignee
Sumavision Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumavision Technologies Co Ltd filed Critical Sumavision Technologies Co Ltd
Priority to CN201010034290A priority Critical patent/CN101753586A/en
Publication of CN101753586A publication Critical patent/CN101753586A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for transmitting data, and a process method and a device for receiving data, belonging to the field of communication. The method for transmitting the data comprises the steps of: ensuring data structure corresponding to data to be transmitted, ensuring command type and data length, memorizing current data according to the appointed mode of an data packet when firstly transiting the data in the data structure, and transmitting the current data by the means of TCP, wherein the appointed mode of the data packet comprises an command packet head and the current data, and the command packet head carries the command type and the data length. By adopting the appointed mode of the data packet to transmit the data, the invention leads the receiving party to be capable of correctly packaging the received data packet based on the length, and reliably transmitting the data with sequence and structural information.

Description

Send method, reception processing method of data and the device of data
Technical field
The present invention relates to the communications field, more specifically, relate to the method and apparatus that sends data, and receive processing method of data and device.
Background technology
In application development process, often need send to the Another application program to data from an application program reliably, and the data of transmission are generally the data of order, band structure (fixed length or random length), and the recipient need carry out subpackage to these data usually and handle.
Following several mode is arranged in the related data transmission technology:
1) adopt UDP (User Datagram Protocol, User Datagram Protoco (UDP)) to carry out the Network Transmission of data
Udp protocol is a datagram mode, data send singly by packet, adopt UDP to carry out the data network transmission, and its packet is lost possibly, perhaps the order of packet can change, so udp protocol is not suitable for order and the demanding transfer of data of transmission reliability.
2) adopt TCP (Transport Control Protocol, transmission control protocol) to carry out the Network Transmission of data
Transmission Control Protocol is a stream mode, is a connection-oriented transport layer protocol, and the target of TCP is for the user provides reliable end-to-end connection, guarantee information errorless transmission in order; It is except providing basic data-transformation facility, for guaranteeing that reliability has also adopted a series of measures such as data number, verification and calculating, data validation etc.Transmission Control Protocol all is numbered each data byte that transmits, and asks the recipient to return confirmation (Ack), and Transmission Control Protocol is a kind of reliable data transport service.Because TCP is a stream mode, and tcp data is package not, there is not the border, the recipient may once receive the part of some packets or a packet and next packet or several bags or the like, packet one by one when the data of recipient's reception at this moment are not transmission, but packet has adhered to together i.e. " sticking bag ".If TCP transmission this moment is the data message that structure (data structure of fixed length, random length data structure) arranged, then can causes the recipient to carry out subpackage and handle these data.
3) adopt RPC (Remote Procedure Call Protocol, remote procedure call) to carry out the Network Transmission of data
When RPC carries out transfer of data, need packing data to be sent is sent to the recipient singly with the packet of accomplishing fluently then; The recipient will receive processing according to different data structures.And RPC depends on operating system in a way, depends on the developing instrument of application program, can not cross-platform communication; In addition, RPC is that the communication of passive type can not the proactive notification communication, and this mode adopts different developing instrument or platforms or needs the situation of both-way communication not carry out smoothly for different manufacturers.
The inventor finds that in realizing process of the present invention said method all can not transmit reliably order, the data of structural information are arranged, and does not still have feasible solution for this problem at present.
Summary of the invention
The present invention aims to provide a kind of method and apparatus that sends data, and receives processing method of data and device, can transmit the data and the general data that the order are arranged, structural information is arranged reliably.
According to an aspect of the present invention, provide a kind of method that sends data, described method comprises:
Definite data structure that needs the data correspondence of transmission;
Determine command type and data length according to described data structure;
When sending the data in the described data structure first, store current data, and send described current data in the TCP mode according to the data designated packet format;
Wherein, described data designated packet format comprises order packet header and described current data, and described command type and described data length are carried in described order packet header.
According to a further aspect in the invention, also provide a kind of reception processing method of data, described method comprises:
To buffering area, described packet comprises order packet header with the metadata cache in the packet that receives, and described command type and described data length are carried in described order packet header;
According to described data length the data in the described buffering area are carried out subpackage;
Handle according to the packet of described command type after subpackage.
According to a further aspect in the invention, also provide a kind of device that sends data, described device comprises:
The data structure determination module is used for determining the data structure of the data correspondence of needs transmission;
Type and length determination module are used for determining command type and data length according to described data structure determination module established data structure;
Sending module when being used for sending the data of described data structure first, is stored current data according to the data designated packet format, and is sent described current data in the TCP mode;
Wherein, described data designated packet format comprises order packet header and described current data, and described type and definite command type and the data length of length determination module are carried in described order packet header.
According to a further aspect in the invention, also provide a kind of processing unit that receives data, described device comprises:
Cache module, the metadata cache that is used for the packet that will receive is to buffering area, and described packet comprises order packet header, and described command type and described data length are carried in described order packet header;
The subpackage module is used for according to described data length the data of described buffering area being carried out subpackage;
Processing module is used for the command type according to described order packet header, and the packet after the subpackage of described subpackage module is handled.
Because adopted data designated packet format transmission data, this form can carry data length, and then make the recipient carry out correct subpackage to the packet that receives based on this length, so overcome " sticking bag " problem in the correlation technique, and then reached reliably that transmission has order, the data of structural information and the effect of general data are arranged.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the method flow diagram of the transmission data that the embodiment of the invention 1 provides;
Fig. 2 shows the reception processing method of data flow chart that the embodiment of the invention 2 provides;
Fig. 3 shows the structured flowchart of the device of the transmission data that the embodiment of the invention 4 provides;
Fig. 4 shows the structured flowchart of the processing unit of the reception data that the embodiment of the invention 5 provides.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Embodiment 1
Present embodiment provides a kind of method that sends data, referring to Fig. 1, and the method flow diagram of the transmission data that provide for present embodiment, this method comprises:
Step S102: definite data structure that needs the data correspondence of transmission;
The data structure of the type definition correspondence of the data that present embodiment sends in advance as required, the data length in the different data structures may be different; In the time that data will be sent, determine the data structure of the current data correspondence that will send according to definition;
Step S104: determine command type and data length according to above-mentioned data structure;
Step S106: when sending the data in the above-mentioned data structure first, store current data, and send current data in the TCP mode according to the data designated packet format;
Wherein, this data designated packet format is as shown in table 1, comprises order packet header and data, and the data here refer to above-mentioned current data, i.e. the data that send of desire this time, and command type and data length are carried in this order packet header.
Table 1
Order packet header Data (m byte, m>=0)
Command type in the present embodiment is in order to offer recipient's indication information, to indicate the recipient how current data is handled; Data length refers to the length of the data in the above-mentioned data structure, this length may with the equal in length of the data of current transmission, also may be unequal.
For example, data length in data structure is 1000 bytes, and when sending data in the TCP mode, each data that send are 500 bytes, when then sending the data in this data structure first, data length in the order packet header is 1000 bytes, during non-data that send first in this data structure, then can send according to the TCP mode in the correlation technique, even " sticking bag " phenomenon occurs, because the recipient can determine the number of data in this data structure according to the data length in the order packet header, promptly can determine the border of this data structure, then can from " sticking bag ", extract the data in this data structure, and then solve the problem that " sticking bag " brought.
The transmit leg of present embodiment is according to top data packet format, and send data in the data structure first with the TCP mode, concrete restriction is not done in transmission for follow-up data in this data structure, the transmission of follow-up data can be adopted the form of above-mentioned packet, also can adopt the mode of the TCP in the correlation technique, and the follow-up data bag can not carry data length.Adopt the data in the said method transmission data structure, the data of streaming are handled as the data of UDP datagram, handle the work basis for the recipient carries out subpackage, make the recipient can determine the border of the data in this data structure, overcome the problem that " sticking bag " causes.
Embodiment 2
Present embodiment also provides a kind of reception processing method of data, and this method is based on that the method for the transmission data that embodiment 1 provides carries out, and referring to Fig. 2, is the reception processing method of data flow chart that present embodiment provides, and this method comprises:
Step 202: with the metadata cache in the packet that receives to buffering area; This packet comprises order packet header, and wherein, command type and data length are carried in order packet header;
For not comprising order packet header in the packet that receives, directly it is buffered into buffering area;
Step 204: the data in the buffering area are carried out subpackage according to above-mentioned data length;
Because application program is not provided with the TCP_NODELAY attribute for TCP, when transmitting data in the TCP mode, for improving efficiency of transmission, transmit leg just sends bag data after often will collecting abundant data, if the data that send several times all seldom continuously, usually TCP once sends after can wrapping these data synthetic according to optimized Algorithm, and the recipient just receives " sticking bag " like this; Perhaps, recipient's process is untimely, also can cause the data of reception to occur " sticking bag "; After the recipient of present embodiment receives data, it is cached in the buffering area, by a thread data in the buffering area is carried out the subpackage analyzing and processing, make the recipient can receive the data and correct processing of different pieces of information structure the recipient.
The subpackage of present embodiment is achieved as follows: judge that this data length is whether less than the length of the data in the described buffering area, if the data of taking out this data length from buffering area if not, are waited for receiving next packet as a packet.
During concrete enforcement, the data length in the buffering area can be made as A, the data length that carry in order packet header is B;
1) if A<B
Show that then the data in the pending buffering area still constitute complete structure data inadequately, need to wait for that carrying out subpackage again after merging with next bag data handles;
2) if A>=B
Show that then the data in the pending buffering area constitute the rarest complete structure data, extract the data that length is B, this packet is carried out analyzing and processing, handle the length (being B) that this bag back buffering area deducts this bag.And then carry out recurrence and handle, up to handle (being A=0) maybe need wait for merge with next bag data after again row handle (A<B);
Step 206: handle according to the packet of mentioned order type after to subpackage.
Present embodiment is handled by the data that adopt the transmission of data designated packet format are carried out subpackage, realize that order is arranged arbitrarily, structural information (data structure of fixed length, random length data structure) general Network Transmission is reliably arranged, assurance data correct reception reliably from the transmit leg to recipient handled.
The method that the foregoing description 1 and embodiment 2 provide had both combined the package method of UDP mode, made data be surrounded by the border, had the advantage of the datagram mode that can analyze, also combined the TCP mode, had safe and reliable transfer of data advantage.
Embodiment 3
Present embodiment provides a kind of method that sends data, method difference shown in Figure 1 is among this method and the embodiment 1, when sending data, also carry the command header sign in its order packet header in the present embodiment, whether the data of current transmission are carried out buffer memory in order to the indication recipient.
The data that send when needs are common data, for example, need to send be the Continuous Flow data (as: file) of not band structure the time, the recipient does not need to carry out subpackage to these data and handles, therefore, do not need these data are carried out buffer memory yet, can handle according to common processing method after receiving these data, for this reason, present embodiment carries the command header sign in order packet header, whether current data is carried out buffer memory in order to the indication recipient, for example, this command header of making an appointment is masked as 1, for needs carry out buffer memory to current data, the command header of making an appointment is masked as 0, for not needing that current data is carried out buffer memory.
Present embodiment also provides a kind of reception processing method of data, this method is based on that the method for the above-mentioned transmission data of present embodiment carries out, method difference shown in Figure 2 is among the processing method of present embodiment and the embodiment 2, the command header sign is also carried in the order packet header of the packet that receives, therefore, after receiving packet, at first need to judge whether that according to the command header sign needs carry out buffer memory to the data of current reception; If the data of current reception are carried out buffer memory; If not, directly handle the data of current transmission.
Present embodiment is by adopting data designated packet format transmission data, realize that order is arranged arbitrarily, structural information (data structure of fixed length, random length data structure) general Network Transmission is reliably arranged, assurance data correct reception reliably from the transmit leg to recipient handled; Simultaneously,, can carry out, in this way, reach the purpose of further Optimizing operation according to the processing mode of routine for the data of band structure not.The method that present embodiment provides had both combined the package method of UDP mode, made data be surrounded by the border, had the advantage of the datagram mode that can analyze, also combined the TCP mode, had safe and reliable transfer of data advantage.
Embodiment 4
Present embodiment provides a kind of device that sends data, referring to Fig. 3, and the structured flowchart of the device of the transmission data that provide for present embodiment, this device comprises:
Data structure determination module 302 is used for determining the data structure of the data correspondence of needs transmission;
Type and length determination module 304 are used for determining command type and data length according to data structure determination module 302 established data structures;
Sending module 306 when being used for sending the data of above-mentioned data structure first, is stored current data according to the data designated packet format, and is sent this current data in the TCP mode; Wherein, the data designated packet format comprises order packet header and current data, and command type and the data length that type and length determination module 304 determined carried in order packet header.
Preferably, the command header sign is also carried in mentioned order packet header, whether the data of current transmission is carried out buffer memory in order to the indication recipient.
Wherein, this data designated packet format comprises order packet header and data, and the data here refer to above-mentioned current data, i.e. the data that send of desire this time, and command type and data length are carried in this order packet header.
Command type in the present embodiment is in order to offer recipient's indication information, to indicate the recipient how current data is handled; Data length refers to the length of the data in the above-mentioned data structure, this length may with the equal in length of the data of current transmission, also may be unequal.
The device of the transmission data of present embodiment is according to top data packet format, and send data in the data structure first with the TCP mode, concrete restriction is not done in transmission for follow-up data in this data structure, the transmission of follow-up data can be adopted the form of above-mentioned packet, also can adopt the mode of the TCP in the correlation technique, and the follow-up data bag can not carry data length.Adopt the data in the said method transmission data structure, the data of streaming can be handled as the data of UDP datagram, handle the work basis for the recipient carries out subpackage, make the recipient can determine the border of the data in this data structure, overcome the problem that " sticking bag " causes.
Embodiment 5
Present embodiment provides a kind of processing unit that receives data, referring to Fig. 4, and the structural representation of the processing unit of the reception data that provide for present embodiment, this device comprises:
Cache module 402, the metadata cache that is used for the packet that will receive is to buffering area, and this packet comprises order packet header, orders packet header to carry command type and data length;
Subpackage module 404 is used for according to above-mentioned data length the data of buffering area being carried out subpackage;
Processing module 406 is used for the command type according to order packet header, and the packet after 404 subpackages of subpackage module is handled.
Preferably, subpackage module 404 comprises:
Judging unit 4041 is used for judging that above-mentioned data length is whether less than the length of the data of buffering area;
When subpackage processing unit 4042, the judged result that is used for judging unit 4041 are above-mentioned data lengths less than the length of the data of buffering area, from buffering area, take out the data of above-mentioned data length as a packet; When if above-mentioned data length is not less than the length of the data in the buffering area, after wait receives next packet, carry out subpackage again.
Preferably, also carry the command header sign in the mentioned order packet header;
Correspondingly, this device also comprises:
Command header sign judge module is used for judging whether that according to the command header sign needs carry out buffer memory to the data of current reception; If, trigger cache module 402 data in the packet that receives are carried out buffer memory, if not, trigger the processing module 406 direct data of handling in the packet that receives.
When transmit leg transmits data in the TCP mode, for improving efficiency of transmission, transmit leg just sends bag data after often will collecting abundant data, if the data that send several times all seldom continuously, usually TCP once sends after can wrapping these data synthetic according to optimized Algorithm, and the recipient just receives " sticking bag " like this; Perhaps, recipient's process is untimely, also can cause the data of reception to occur " sticking bag "; After the processing unit of the reception data of present embodiment receives data, by cache module 402 it is cached in the buffering area, carry out the subpackage analyzing and processing by the data in 404 pairs of buffering areas of subpackage module, make the processing unit that receives data can receive the data and correct processing of different pieces of information structure.
The subpackage module 404 of present embodiment is achieved as follows: the data length in the buffering area can be made as A, the data length that carry in order packet header is B;
1) if A<B
Show that then the data in the pending buffering area still constitute complete structure data inadequately, need to wait for that carrying out subpackage again after merging with next bag data handles;
2) if A>=B
Show that then the data in the pending buffering area constitute the rarest complete structure data, extract the data that length is B, this packet is carried out analyzing and processing, handle the length (being B) that this bag back buffering area deducts this bag.And then carry out recurrence and handle, up to handle (being A=0) maybe need wait for merge with next bag data after again row handle (A<B).
Present embodiment is handled by the data that adopt the transmission of data designated packet format are carried out subpackage, realize that order is arranged arbitrarily, structural information (data structure of fixed length, random length data structure) general Network Transmission is reliably arranged, guarantee data correct processing of reception reliably from the transmit leg to recipient, simultaneously, also can handle data not with data structure.
Method that the foregoing description provides or device can be used on high speed overall view monitoring platform, this high speed overall view monitoring platform is a highway video monitoring platform software, its can not only integrated different manufacturers equipment, also can support the cascade different manufacturers the sub-video supervisory control system and with the fusion of other operation systems.
When carrying out communication, to realize order, the Network Transmission of reliable in structure be arranged, such as the tree-shaped site information data of needs synchronous transmission, encoder information data, DECODER information data or the like with the sub-video supervisory control system of different manufacturers.In on high speed overall view monitoring platform, using, after the receiving station information, just can carry out the processing of received code device information or DECODER information, that is to say that Data Receiving is sequential, simultaneously, site information, encoder information, DECODER information be have structure and be random length.Certainly, not every recipient's convection model data all need to handle, if the data of transmission are the Continuous Flow data (as file transfer) of not band structure, then needn't separate (abbreviation subpackage) to the bag of adhesion.But in actual applications, the data of transmission are generally the data of band structure, at this moment just need do subpackage and handle.
During concrete the application, at first the data that high speed overall view monitoring platform need be transmitted become different data structures such as predefines such as site information, encoder information, DECODER information; And will transmit request corresponding in the process of data and reply and be defined as different command, such as the order of CMD_GetStationInfo definition acquisition request site information; CMD_RetStationInfo is defined as and replys the order of returning site information.
Define a packet then, this packet comprises order packet header and data, wherein orders packet header to comprise command header sign (option), command type and data length; Wherein, whether the command header sign is handled the data that receive in order to the indication recipient, and whether the present embodiment middle finger needs the data that receive are carried out caching process; How command type is handled the data that receive in order to the indication recipient; Data length is the length of all data in the data structure of data correspondence of current transmission, in order to inform the border of this data structure of recipient, provides the basis for the recipient carries out subpackage.
Order being arranged, the information data of structure is arranged with other system of producer reliable transmission in high speed overall view monitoring platform is the key of system synchronous information, these data need the recipient to carry out the subpackage processing, handle in order to carry out correct subpackage, require: packet loss can not appear in 1) reliable transmission; 2) Chuan Shu data are sequential, can not occur out of order, the front data influential to the data of back; 3) Chuan Shu data are data of band structure, and this data structure may fixed length or random length.
In order to satisfy above-mentioned requirements, when adopting the data that send first in this data structure, store current data, and send current data in the TCP mode according to above-mentioned data packet format; Still adopt the TCP mode in the correlation technique to send for the follow-up data in the data structure.
Consider in the data transmission procedure and occur " sticking bag " phenomenon possibly, the recipient does not directly just handle after receiving above-mentioned packet, but in the buffering area of the metadata cache in the packet, by a thread data in the buffering area are carried out subpackage again, and analyzing and processing, wherein, the specific implementation of subpackage is identical with method among embodiment 2 and the embodiment 3, no longer describes in detail here.
Said method or device are used in " high speed overall view monitoring platform " project, and by test, can use for a long time.
From above description, as can be seen, the above embodiments of the present invention have realized having arbitrarily order, structural information (data structure of fixed length, random length data structure) general Network Transmission have reliably been arranged, and assurance data correct reception reliably from the transmit leg to recipient handled.Simultaneously, above-mentioned technology has versatility, can use under different developing instruments, different platform.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, carry out by calculation element thereby they can be stored in the storage device, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method that sends data is characterized in that, described method comprises:
Definite data structure that needs the data correspondence of transmission;
Determine command type and data length according to described data structure;
When sending the data in the described data structure first, store current data, and send described current data in the TCP mode according to the data designated packet format;
Wherein, described data designated packet format comprises order packet header and described current data, and described command type and described data length are carried in described order packet header.
2. method according to claim 1 is characterized in that, the command header sign is also carried in described order packet header, whether described current data is carried out buffer memory in order to the indication recipient.
3. one kind receives processing method of data, it is characterized in that described method comprises:
To buffering area, described packet comprises order packet header with the metadata cache in the packet that receives, and described command type and described data length are carried in described order packet header;
According to described data length the data in the described buffering area are carried out subpackage;
Handle according to the packet of described command type after subpackage.
4. method according to claim 3 is characterized in that, according to described data length the data in the described buffering area is carried out subpackage and comprises:
Judge described data length whether less than the length of the data in the described buffering area, if the data of taking out described data length from described buffering area are as a packet, if not, wait for receive next packet after, carry out subpackage again.
5. method according to claim 3 is characterized in that, the command header sign is also carried in described order packet header;
Correspondingly, described method also comprises:
Judge whether that according to described command header sign needs carry out buffer memory to the data of current reception;
If the data of described current reception are carried out buffer memory;
If not, directly handle the data of described current reception.
6. a device that sends data is characterized in that, described device comprises:
The data structure determination module is used for determining the data structure of the data correspondence of needs transmission;
Type and length determination module are used for determining command type and data length according to described data structure determination module established data structure;
Sending module when being used for sending the data of described data structure first, is stored current data according to the data designated packet format, and is sent described current data in the TCP mode;
Wherein, described data designated packet format comprises order packet header and described current data, and described type and definite command type and the data length of length determination module are carried in described order packet header.
7. device according to claim 6 is characterized in that, the command header sign is also carried in described order packet header, whether the data of current transmission is carried out buffer memory in order to the indication recipient.
8. a processing unit that receives data is characterized in that, described device comprises:
Cache module, the metadata cache that is used for the packet that will receive is to buffering area, and described packet comprises order packet header, and described command type and described data length are carried in described order packet header;
The subpackage module is used for according to described data length the data of described buffering area being carried out subpackage;
Processing module is used for the command type according to described order packet header, and the packet after the subpackage of described subpackage module is handled.
9. device according to claim 8 is characterized in that, described subpackage module comprises:
Judging unit is used for judging that described data length is whether less than the length of the data of described buffering area;
When subpackage processing unit, the judged result that is used for described judging unit are described data lengths less than the length of the data of described buffering area, from described buffering area, take out the data of described data length as a packet; When if described data length is not less than the length of the data in the described buffering area, after wait receives next packet, carry out subpackage again.
10. device according to claim 8 is characterized in that, described order is also carried the command header sign in the packet header;
Correspondingly, described device also comprises:
Command header sign judge module is used for judging whether that according to described command header sign needs carry out buffer memory to the data of current reception; If, trigger described cache module the data in the packet that receives are carried out buffer memory, if not, trigger the direct data of handling in the packet that receives of described processing module.
CN201010034290A 2010-01-20 2010-01-20 Method for transmitting data, process method for receiving data and device Pending CN101753586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010034290A CN101753586A (en) 2010-01-20 2010-01-20 Method for transmitting data, process method for receiving data and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010034290A CN101753586A (en) 2010-01-20 2010-01-20 Method for transmitting data, process method for receiving data and device

Publications (1)

Publication Number Publication Date
CN101753586A true CN101753586A (en) 2010-06-23

Family

ID=42479984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010034290A Pending CN101753586A (en) 2010-01-20 2010-01-20 Method for transmitting data, process method for receiving data and device

Country Status (1)

Country Link
CN (1) CN101753586A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325010A (en) * 2011-09-13 2012-01-18 浪潮(北京)电子信息产业有限公司 Processing device and method for avoiding sticky data packets
CN102984253A (en) * 2012-11-27 2013-03-20 山东中创软件工程股份有限公司 Transmission control protocol sticky package processing method and device
CN103023602A (en) * 2011-09-20 2013-04-03 镇江雅迅软件有限责任公司 Data transmission fault tolerance system based on Socket protocol
CN103532668A (en) * 2013-10-12 2014-01-22 成都阜特科技股份有限公司 Method for ensuring integrity and correctness of TCP (transmission control protocol) communication data
CN104410613A (en) * 2014-11-20 2015-03-11 广西大学 A method and device for processing transmitting control protocol data adhering
CN104917732A (en) * 2014-03-13 2015-09-16 深圳市赛格导航科技股份有限公司 Method of binding encoders and decoders with multiple clients and system
CN105262970A (en) * 2015-10-14 2016-01-20 深圳先进技术研究院 Packaging method and system based on image data
CN105681322A (en) * 2016-02-24 2016-06-15 清德智体(北京)科技有限公司 Network streaming media frame data acquisition method
CN105991223A (en) * 2015-02-13 2016-10-05 Tcl集团股份有限公司 Method and system for preventing packet splicing in TCP network data transmission
CN107040549A (en) * 2017-06-08 2017-08-11 山大鲁能信息科技有限公司 A kind of TCP packet splicings processing method, server and system
CN107135167A (en) * 2017-04-19 2017-09-05 畅捷通信息技术股份有限公司 Data transmission method, data transmission device and server
CN107241436A (en) * 2017-07-18 2017-10-10 山东亚华电子股份有限公司 A kind of method of the transmission of TCP network high-speeds packet splicing and storage
CN109257355A (en) * 2018-09-26 2019-01-22 郑州云海信息技术有限公司 One kind being based on Transmission Control Protocol data transmission method, system and associated component
CN111724262A (en) * 2020-06-24 2020-09-29 上海金仕达软件科技有限公司 Follow-up packet query system of application server and working method thereof
CN112702322A (en) * 2020-12-17 2021-04-23 中国电子科技集团公司第四十一研究所 Communication data packet exception handling method for intelligent management of production line
CN114125081A (en) * 2021-10-27 2022-03-01 桂林长海发展有限责任公司 Received data processing method and device and storage medium
CN114546922A (en) * 2020-11-27 2022-05-27 新疆金风科技股份有限公司 Serial port communication method and device for wind power plant

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325010A (en) * 2011-09-13 2012-01-18 浪潮(北京)电子信息产业有限公司 Processing device and method for avoiding sticky data packets
CN103023602A (en) * 2011-09-20 2013-04-03 镇江雅迅软件有限责任公司 Data transmission fault tolerance system based on Socket protocol
CN102984253B (en) * 2012-11-27 2015-10-14 山东中创软件工程股份有限公司 A kind of transmission control protocol glues packet processing method and device
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
CN103532668B (en) * 2013-10-12 2016-11-23 成都阜特科技股份有限公司 A kind of method guaranteeing that TCP communication data are complete and correct
CN104917732A (en) * 2014-03-13 2015-09-16 深圳市赛格导航科技股份有限公司 Method of binding encoders and decoders with multiple clients and system
CN104917732B (en) * 2014-03-13 2018-07-20 深圳市赛格导航科技股份有限公司 A kind of multi-client binds the method and system of encoder and decoder
CN104410613A (en) * 2014-11-20 2015-03-11 广西大学 A method and device for processing transmitting control protocol data adhering
CN105991223A (en) * 2015-02-13 2016-10-05 Tcl集团股份有限公司 Method and system for preventing packet splicing in TCP network data transmission
CN105262970A (en) * 2015-10-14 2016-01-20 深圳先进技术研究院 Packaging method and system based on image data
CN105262970B (en) * 2015-10-14 2018-12-04 深圳先进技术研究院 A kind of packaging method based on view data and system
CN105681322A (en) * 2016-02-24 2016-06-15 清德智体(北京)科技有限公司 Network streaming media frame data acquisition method
CN105681322B (en) * 2016-02-24 2019-08-23 清德智体(北京)科技有限公司 A kind of frame data acquisition methods of network flow-medium
CN107135167A (en) * 2017-04-19 2017-09-05 畅捷通信息技术股份有限公司 Data transmission method, data transmission device and server
CN107040549A (en) * 2017-06-08 2017-08-11 山大鲁能信息科技有限公司 A kind of TCP packet splicings processing method, server and system
CN107040549B (en) * 2017-06-08 2021-03-19 山大鲁能信息科技有限公司 TCP (Transmission control protocol) sticky packet processing method, server and system
CN107241436A (en) * 2017-07-18 2017-10-10 山东亚华电子股份有限公司 A kind of method of the transmission of TCP network high-speeds packet splicing and storage
CN109257355A (en) * 2018-09-26 2019-01-22 郑州云海信息技术有限公司 One kind being based on Transmission Control Protocol data transmission method, system and associated component
CN111724262A (en) * 2020-06-24 2020-09-29 上海金仕达软件科技有限公司 Follow-up packet query system of application server and working method thereof
CN111724262B (en) * 2020-06-24 2024-03-22 上海金仕达软件科技股份有限公司 Subsequent package query system of application server and working method thereof
CN114546922A (en) * 2020-11-27 2022-05-27 新疆金风科技股份有限公司 Serial port communication method and device for wind power plant
CN114546922B (en) * 2020-11-27 2024-05-31 金风科技股份有限公司 Serial port communication method and device for wind power plant
CN112702322A (en) * 2020-12-17 2021-04-23 中国电子科技集团公司第四十一研究所 Communication data packet exception handling method for intelligent management of production line
CN114125081A (en) * 2021-10-27 2022-03-01 桂林长海发展有限责任公司 Received data processing method and device and storage medium
CN114125081B (en) * 2021-10-27 2023-09-22 桂林长海发展有限责任公司 Method and device for processing received data and storage medium

Similar Documents

Publication Publication Date Title
CN101753586A (en) Method for transmitting data, process method for receiving data and device
CN108965484B (en) Internet of things data transmission method, system and terminal
CN104539739B (en) A kind of system, method and device that file uploads
CN109905205B (en) Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system
CN102480462B (en) Universal protocol adapting method and device
US7355992B2 (en) Relay for extended range point-to-point wireless packetized data communication system
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN101217429B (en) A determination method of the initiation relationship within TCP messages based on TCP timestamp options
CN106452688A (en) Beidou data lost message retransmission method and system
CN110418376A (en) Data transmission method and device
CN104025550B (en) The method and device of information is obtained from data item
WO2009021417A1 (en) A method, system and device for transmitting and receiving the network data
CN103973421A (en) File transmitting method and device
WO2018018627A1 (en) Data transmission method and system, and receiving device
CN108200020A (en) A kind of industry big data safe transmission device and method
CN110213756A (en) A kind of data transmission method, device and its relevant device
CN105791154A (en) Data transmission method and device based on UDP (User Datagram Protocol)
CN103795518A (en) Method, device, and system for synchronizing port modes between devices
CN105635802A (en) Transmission method of digital media data and device
CN107508828A (en) A kind of very-long-range data interaction system and method
CN110248379A (en) The performance test methods and device of base station in WLAN
CN104868973A (en) Data integrity verifying method and system
EP3672189B1 (en) Data transmission method, device and system
US9762353B2 (en) Data packet for bidirectional transmission of data packets during data transmission between a first and a second communication appliance, and method for transmitting such a data packet
CN103532726B (en) Information distribution system

Legal Events

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

Application publication date: 20100623