CN101854286B - UDP (User Datagram Protocol)-based data stream sending-receiving method and device - Google Patents

UDP (User Datagram Protocol)-based data stream sending-receiving method and device Download PDF

Info

Publication number
CN101854286B
CN101854286B CN200910081075A CN200910081075A CN101854286B CN 101854286 B CN101854286 B CN 101854286B CN 200910081075 A CN200910081075 A CN 200910081075A CN 200910081075 A CN200910081075 A CN 200910081075A CN 101854286 B CN101854286 B CN 101854286B
Authority
CN
China
Prior art keywords
udp
bag
data
udp bag
client
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.)
Expired - Fee Related
Application number
CN200910081075A
Other languages
Chinese (zh)
Other versions
CN101854286A (en
Inventor
吕品
郭宗明
王常波
白东岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CN200910081075A priority Critical patent/CN101854286B/en
Publication of CN101854286A publication Critical patent/CN101854286A/en
Application granted granted Critical
Publication of CN101854286B publication Critical patent/CN101854286B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses UDP (User Datagram Protocol)-based data stream sending-receiving method and device, relating to the technical field of multi-media network communication and aiming to solve the problem that since UDP packet is larger, a packet is easy to lose during network transmission after an IP layer is segmented in the prior art. The UDP-based data stream sending method comprises the steps of: segmenting multi-media data into data segments not larger than a preset value; packaging the data segments in a UDP sub-packet; and sending a UDP packet carrying the UDP sub-packet. The invention can be adopted to reduce the probability of UDP packet loss during IP layer data transmission and can improve the timeliness of data stream.

Description

Data flow sending, receiving method and device based on UDP
Technical field
The present invention relates to the multimedia network communication technical field, relate in particular to a kind of data flow transmission technology based on UDP.
Background technology
Along with the fast development that multi-media network is used, the application that network is looked audio frequency more and more widely.Under the certain condition of bandwidth, the transmission requirement of network multimedia data is high efficient and reliable as much as possible.But because the data volume that multi-medium data has is big, real-time requires high, needs to select different bottom-layer network host-host protocols according to the concrete different emphasis of using, and then designs the transmission method of different video/audio data flows.
At present, TCP (Transmission Control Protocol, transmission control protocol) and UDP (UserDatagram Protocol, UDP) are two kinds and use the network transmission protocol widely.In the transmission of network multimedia data is used, connection-oriented, reliable data flow transmission that TCP provides, and UDP provides non-connection-oriented, insecure data flow transmission.TCP can guarantee the reliability of transmission data through the packet loss retransmission mechanism; And the transmission speed of UDP is very fast, and expense is also little than TCP.If network multimedia transmission requirement real-time is higher, promptly data transmission bauds is very fast, for obliterated data certain tolerance is arranged then, and then this network-multimedia application can adopt the mechanism based on UDP to realize.
In realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
When network multimedia The data UDP mechanism was carried out data flow transmission, because that UDP provides is non-connection-oriented, insecure data flow transmission was so be easy to cause losing of packet in the transmitting data stream.Especially when the bag of the UDP in the network multimedia data transmission procedure was big, described UDP bag at first need wrap cutting, just can transmit at the IP layer.Like this, the losing of UDP message with regard to making UDP message bag after the cutting be more prone to receive the influence of network reason and after causing cutting abandons thereby make whole UDP encapsulate.
Summary of the invention
In order to solve in the prior art, because the UDP bag is bigger, the problem that packet is lost in Network Transmission easily after the IP layer cutting that is caused.The invention provides a kind of data flow sending, receiving method and device based on UDP.
In the process that realizes technical scheme of the present invention, the invention provides a kind of data flow sending method based on UDP.This method comprises:
With the multi-medium data cutting is the data segment that is not more than preset value;
Said data segment is encapsulated in the UDP bag;
Transmission carries the UDP bag of said UDP bag.
In the process that realizes technical scheme of the present invention, the invention provides a kind of data flow method of reseptance based on UDP.This method comprises:
Reception carries the UDP bag of said UDP bag;
Described UDP bag is sorted.
In the process that realizes technical scheme of the present invention, the present invention also provides a kind of data flow dispensing device based on UDP.This device comprises:
Data cutting unit, being used for the multi-medium data cutting is the data segment that is not more than preset value;
Son bag acquiring unit is used for said data segment is encapsulated in UDP bag;
Information transmitting unit is used to send the UDP bag that carries said UDP bag.
In the process that realizes technical scheme of the present invention, the present invention also provides a kind of data flow receiving system based on UDP.This device comprises:
Information receiving unit is used to receive the UDP bag that carries said UDP bag;
The data sorting unit is used for described UDP bag is sorted.
A kind of data flow sending, receiving method and device based on UDP that the embodiment of the invention provides are through being the data segment that is not more than preset value with the multi-medium data cutting; And said data segment is encapsulated in the UDP bag; Transmission carries the UDP bag of said UDP bag and gives client.Wherein, Owing to describedly send to the UDP bag load of carrying in the UDP bag of client and be not more than preset value, saidly when the said UDP bag that carries UDP bag is transferred to the IP layer, need not carry out cutting and just can directly transmit.Compare with transmitting at IP after the prior art UDP cutting that load is bigger; The embodiment of the invention can not need cutting directly to transmit at the IP layer the said UDP bag that carries said UDP bag; Reduce the losing probability after the cutting of UDP message bag greatly, thereby improved the client-side multimedia play quality.
Description of drawings
The first embodiment flow chart of a kind of data flow sending method based on UDP that Fig. 1 provides for the embodiment of the invention;
The second embodiment flow chart of a kind of data flow sending method based on UDP that Fig. 2 provides for the embodiment of the invention;
A kind of data flow dispensing device structural representation that Fig. 3 provides for the embodiment of the invention based on UDP;
The first embodiment flow chart of a kind of data flow method of reseptance based on UDP that Fig. 4 provides for the embodiment of the invention;
The second embodiment flow chart of a kind of data flow method of reseptance based on UDP that Fig. 5 provides for the embodiment of the invention;
A kind of data flow receiving system structural representation that Fig. 6 provides for the embodiment of the invention based on UDP.
Embodiment
Below in conjunction with accompanying drawing a kind of data flow sending, receiving method and device based on UDP that the embodiment of the invention provides is described in detail.
As shown in Figure 1, first embodiment of a kind of data flow sending method based on UDP that the embodiment of the invention provides; In the process that realizes the embodiment of the invention, this method comprises:
101: with the multi-medium data cutting is the data segment that is not more than preset value; Because the multi-medium data that transmits based on udp protocol comprises: two types of video data and voice datas; Carry out cutting so the multi-medium data cutting just will be transferred to the video data and the voice data of client.Wherein, described preset value can be 128 bytes.
102: said data segment is encapsulated in the UDP bag;
Data segment after the said multi-medium data cutting is encapsulated in the UDP bag; Can video-data fragment after the cutting and audio data section be encapsulated in respectively in the user data UDP bag.
103: send the UDP bag that carries said UDP bag.
It should be noted that said UDP bag, comprising: sub-packet header type field, son bag load size field, son bag timestamp field and son bag payload data field.The sub-packet format of said UDP is as shown in the table:
Figure G2009100810756D00041
Wherein, HeadType is a sub-packet header type field, is used to indicate the type in this sub-packet header; Size is a son bag load size field, is used to indicate the size of this child bag load, does not comprise the size of each field in the son bag; The size of said son bag load can not surpass 128 bytes; Time is a son bag timestamp field, is used to indicate the timestamp of this child bag.
Below each bit position of HeadType is elaborated, its form is as shown in the table:
Figure G2009100810756D00051
Because that uses the UDP transmission has only video and two types of data of audio frequency, so available bit8 1 identifies that sub what comprise is video data; Using bit8 is that 0 what identify that son comprises is voice data.Because stream numbering is to identify a client and server end through 5 bit positions to set up after the connection number of transmission network stream simultaneously, therefore, can transmit 32 network flows simultaneously at most between the client and server end.That is to say that same connection can be transmitted a plurality of network flows simultaneously, is at most 32.
It should be noted that a plurality of network flows that the above same connection can be transmitted simultaneously can adjust maximum network flows according to the needs of actual conditions.
Below antithetical phrase bag load size field size is elaborated with son bag timestamp field time again; Above-described son bag load size field size and son bag timestamp field time all occur at every turn.Whether said field occurs deciding according to 2 bit positions of sub-packet header type.Its implication is represented respectively like following table:
Bits Sub-packet header long (byte) Explanation
00 5 A current Zi Bao and a last sub-packet have the same channels numbering, different child bag load sizes and son bag timestamp
01 4 A current Zi Bao and a last sub-packet have same channels numbering and son bag load size, different child bag timestamps
10 2 A current Zi Bao and a last sub-packet have same channels numbering and son bag timestamp, different child bag load sizes
11 1 A current Zi Bao and a last sub-packet have same channels numbering, son bag timestamp and son bag load size
It is also to be noted that because the load data of a sub-packet is at most 128 bytes, transmit if each UDP bag only carries a sub-packet, then the packet header expense is relatively large.Non-divided when transmitting in order both to guarantee that UDP wraps in the IP layer, make UDP packet header expense reduce again, the embodiment of the invention can also adopt intersects the son bag and carries out transfer of data.Promptly allow a UDP bag once can transmit a plurality of child bags that bond together, at receiving terminal the bag content of bonding is recombinated through the numbering of distinguishing different passages and stream.Make that so once transmission can be transmitted polytype content, and the short child bag sheet of several different types can provide better real-time property.For example, in UDP bag load simultaneously the Voice & Video data, compared with sending audio pack and video packets successively, client can be carried out the synchronous of audio & video quickly.In addition, when packet drop occurring,, also less after losing to the influence of client terminal playing multi-medium data because the volume of transmitted data of each each type is little.
As shown in Figure 2, second embodiment of a kind of data flow sending method based on UDP that provides for the embodiment of the invention; In the process that realizes the embodiment of the invention, this method comprises:
201: when request is set up in the connection that receives the client transmission, judged whether that idle transmission channel and related resource are that client provides service;
202:, obtain the required multi-medium data of client if promising client provides the idle transmission channel and the related resource of service; Continue execution in step 204;
203:, send to connect and expire the message informing client if the idle transmission channel and the related resource of service are not provided for client.
204: with the multi-medium data cutting is the data segment that is not more than preset value; That is to say that the multi-medium data that client is needed carries out cutting, is the data segment that is not more than preset value with said multi-medium data cutting; This preset value can be 128 bytes;
205: said data segment is encapsulated in the UDP bag;
206:, said UDP bag is sorted according to time sequencing;
207: the load summation is not more than the approaching UDP bag bonding of said time sequencing of 546 bytes, and is encapsulated in the UDP bag;
It should be noted that; The embodiment of the invention is limited in the size that UDP wraps load in 546 bytes; Load adds UDP packet header length 8 bytes, UDP number field length 2 bytes and IP packet header length 20 bytes like this; Just be not higher than 576 bytes of public network MTU MTU, generally no longer need unpack.Therefore, when the sub-bag of described UDP institute data carried by data was not more than 128 bytes, a UDP bag can carry 4 UDPs bags.
It is also to be noted that, when encapsulation UDP bag, can carry out son bag bonding through following method:
1, arranges video frequency user data newspaper agreement son bag and audio user datagram protocol bag respectively according to time sequencing;
When 2, timestamp is kept off, according to timestamp sequential combination UDP bag;
3, timestamp near the time, if having video frequency user data newspaper agreement bag and audio user datagram protocol bag, then these two types sons are wrapped combined crosswise;
4, UDP bag total load length can not surpass 546 bytes.If a bonding sub-packet makes load possibly surpass 546 bytes, then should be with putting into next UDP bag by the child bag.
208: send the UDP bag that carries said UDP bag.
It is also to be noted that, after server end sends the said UDP bag of some,
Server end judges whether active client is connected with said server end;
If active client is connected with said server end, then continue to send the UDP bag;
If active client and said server end break off, then stop to send the UDP bag.
A kind of data flow dispensing device as shown in Figure 3, as to provide for the embodiment of the invention based on UDP; In the process that realizes the embodiment of the invention, this device comprises:
Judging unit 301 is used for when request is set up in the connection that receives the client transmission, having judged whether that idle transmission channel and related resource are that client provides service;
Data capture unit 302 if be used for idle transmission channel and the related resource that promising client provides service, obtains the required multi-medium data of client;
Data cutting unit 303, being used for the multi-medium data cutting is the data segment that is not more than preset value; This preset value can be 128 bytes;
Son bag acquiring unit 304 is used for said data segment is encapsulated in UDP bag; Wherein, said UDP wraps institute's data carried by data and is not more than 128 bytes;
Sequencing unit 305 is used for according to time sequencing, and said UDP bag is sorted;
Son bag bonding element 306 is used for the load summation is not more than the approaching UDP bag bonding of said time sequencing of 546 bytes, and is encapsulated in the UDP bag.
Information transmitting unit 307 is used to send the UDP bag that carries said UDP bag; If also be used for not providing the idle transmission channel and the related resource of service, send to connect and expire the message informing client for client.
It should be noted that this device also comprises:
After server end sends the said UDP bag of some, also comprise:
The connection judgment unit is used to judge whether active client is connected with said server end;
If active client is connected with said server end, then continue to send the UDP bag;
If active client and said server end break off, then stop to send the UDP bag.
As shown in Figure 4, first embodiment of a kind of data flow method of reseptance based on UDP that provides for the embodiment of the invention; In the process that realizes the embodiment of the invention, this method comprises:
401: receive the UDP bag that carries said UDP bag;
402: described UDP bag is sorted.
As shown in Figure 5, second embodiment of a kind of data flow method of reseptance based on UDP that provides for the embodiment of the invention; In the process that realizes the embodiment of the invention, this method comprises:
501: receive the UDP bag that carries said UDP bag;
502: described UDP bag is sorted;
503: whether the order of judging described UDP bag is continuous;
504:, then carry out corresponding packet loss and handle if the order of described User Datagram Protocol bag is discontinuous.For example: its data packet disorder that receives when client terminal to discover; Be the m that is numbered of the current UDP bag that should receive of client, and actual reception to the UDP bag be numbered n, and n is greater than m; The UDP bag that then is numbered between m and the n possibly lost, and also possibly postpone;
It should be noted that when the order of described UDP bag is discontinuous,
Start timer; Wait for a period of time, if promptly client wait for during this period of time in the UDP bag is reordered the bag of while latency delays.
Regularly overtime when timer, judge whether the said UDP bag of losing carries configuration information; That is to say that client is not received the packet of disappearance yet, then confirms said data-bag lost, and judges further whether the said UDP bag of losing carries configuration information after timer is regularly ultra; For example: after t that timer is fixed time is overtime, still lacks the UDP bag between m and the n and then think described UDP packet loss, judge the said UDP that loses wraps whether carry configuration information.
If the described UDP bag of losing carries configuration information, then send said UDP bag retransmission information; Owing between the channel number of transmitting multimedia data and the numbering of media stream corresponding relation is arranged; So when receiving the load bag of 5 of sub-packet header less thaies; And when contained channel number is current non-existent numbering in should the header packet information of child bag, can confirm to have taken place the situation of the load packet loss of new stream.When the load packet loss of new stream, whether retransmit whether the data playback information that depends on new stream is configuration information, whether that is to say to retransmit needs to confirm whether the data message that carries in this child bag is the configuration information that client is carried out data playback; If be configuration information, then retransmit; If not configuration information, then abandon.
If what the described UDP bag of losing carried is not configuration information, then the UDP bag according to current reception upgrades synchronously.For example: behind timer expiry; Client end will be numbered minimum UDP packet start after m; Each passage is sought first load that contains timestamp bag respectively; Utilize the timestamp in these loads bag to upgrade synchronously, before this timestamp the child bag all abandon, and according to these timestamps each passage is carried out corresponding synchronous and upgrades.
It is also to be noted that; When client is broken off from server; When perhaps causing connection termination owing to the network reason; Server should be able to obtain message, stops continue to send the UDP bag, and this can be through letting client receive that whenever some UDP bag back returns a feedback data packet to server end and realize.To accept this feedback data packet overtime or in the regular hour, do not receive feedback data packet when server end, and then server end can judge that connection interrupts, and stops to send the UDP bag.That is to say,
Receive the said UDP bag of some when client after,
Send feedback data packet; Wherein, said feedback data packet is used for announcement server end and client maintenance connection status.Here, client can be through starting timer, perhaps counter; The transmission of Control and Feedback packet; When described timer timing to or the counting of counter when satisfying condition, send feedback data packet.
A kind of data flow receiving system as shown in Figure 6, as to provide for the embodiment of the invention based on UDP; In the process that realizes the embodiment of the invention, this device comprises:
Information receiving unit 601 is used to receive the UDP bag that carries said UDP bag;
Data sorting unit 602 is used for described UDP bag is sorted.
Order judging unit 603 is used to judge whether the order of described UDP bag is continuous;
Packet loss processing unit 604 is discontinuous if be used for the order of described User Datagram Protocol bag, then carries out corresponding packet loss and handles.
It should be noted that when the order of described UDP bag is discontinuous, also comprise:
The timer start unit is used to start timer;
The information type judging unit is used for when timer regularly overtimely, judges whether the said UDP bag of losing carries configuration information;
The retransmission information transmitting element carries configuration information if be used for the described UDP bag of losing, and then sends said UDP bag retransmission information;
Synchronous updating block, if what be used for that the described UDP bag of losing carries is not configuration information, then the UDP bag according to current reception upgrades synchronously.
It is also to be noted that, after receiving said UDP bag,
The feedback data packet transmitting element is used to send feedback data packet; Wherein, said feedback data packet is used for announcement server end and client maintenance connection status.Concretely:
When client and server end carried out data interaction, client can also start the transmission that timer or counter come the Control and Feedback packet through start unit; Promptly
Said feedback data packet transmitting element, be used for when described timer timing to or the counting of counter when satisfying condition, send feedback data packet; Wherein, described feedback data packet is used for the connection status of announcement server end active client and server end.
A kind of data flow sending, receiving method and device based on UDP that the embodiment of the invention provides are through being the data segment that is not more than preset value with the multi-medium data cutting; And said data segment is encapsulated in the UDP bag; Transmission carries the UDP bag of said UDP bag and gives client.Wherein, Owing to describedly send to the UDP bag load of carrying in the UDP bag of client and be not more than preset value, saidly when the said UDP bag that carries UDP bag is transferred to the IP layer, need not carry out cutting and just can directly transmit.Compare with transmitting at IP after the prior art UDP cutting that load is bigger; The embodiment of the invention can not need cutting directly to transmit at the IP layer the said UDP bag that carries said UDP bag; Reduce the losing probability after the cutting of UDP message bag greatly, thereby improved the client-side multimedia play quality.
Description through above execution mode; One of ordinary skill in the art will appreciate that: realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium, and this program comprises the step like above-mentioned method embodiment when carrying out; Described storage medium, as: ROM/RAM, magnetic disc, CD etc.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (16)

1. the data flow sending method based on UDP is characterized in that, comprising:
With the multi-medium data cutting is the data segment that is not more than preset value;
Said data segment is encapsulated in the UDP bag;
According to time sequencing, said UDP bag is sorted;
The load summation is not more than the approaching UDP bag bonding of said time sequencing of 546 bytes, and is encapsulated in the UDP bag;
Transmission carries the UDP bag of said UDP bag;
Wherein, said UDP bag comprises: sub-packet header type field, son bag load size field, son bag timestamp field and son bag payload data field.
2. the data flow sending method based on UDP according to claim 1 is characterized in that, said is to be not more than before the step of the data segment of preset value with the multi-medium data cutting, also comprises:
When request is set up in the connection that receives the client transmission, judged whether that idle transmission channel and related resource are that client provides service;
If promising client provides the idle transmission channel and the related resource of service, obtain the required multi-medium data of client;
If the idle transmission channel and the related resource of service are not provided for client, send to connect and expire the message informing client.
3. the data flow sending method based on UDP according to claim 2 is characterized in that, after server end sends the said UDP bag of some, also comprises:
Judge whether active client is connected with said server end;
If active client is connected with said server end, then continue to send the UDP bag;
If active client and said server end break off, then stop to send the UDP bag.
4. the data flow method of reseptance based on UDP is characterized in that, comprising:
Reception carries the UDP bag of said UDP bag;
Described UDP bag is sorted; The said UDP bag that carries said UDP bag is sent by server end; It comprises: be encapsulated in the approaching UDP bag of time sequencing that the load summation that bonds together in the UDP bag is not more than 546 bytes; Wherein, Multi-medium data is to be not more than the data segment of preset value to be encapsulated in the UDP bag by cutting, and said UDP comprises: sub-packet header type field, son bag load size field, son bag timestamp field and son bag payload data field.
5. the data flow method of reseptance based on UDP according to claim 4 is characterized in that, also comprises:
Whether the order of judging described UDP bag is continuous;
If the order of described User Datagram Protocol bag is discontinuous, then carries out corresponding packet loss and handle.
6. the data flow method of reseptance based on UDP according to claim 5 is characterized in that, when the order of described UDP bag is discontinuous,
Start timer;
Regularly overtime when timer, judge whether the said UDP bag of losing carries configuration information;
If the described UDP bag of losing carries configuration information, then send said UDP bag retransmission information;
If what the described UDP bag of losing carried is not configuration information, then the UDP bag according to current reception upgrades synchronously.
7. according to any described data flow method of reseptance in the claim 4 to 6, it is characterized in that based on UDP, after receiving said UDP bag,
Send feedback data packet; Wherein, said feedback data packet is used for announcement server end and client maintenance connection status.
8. the data flow method of reseptance based on UDP according to claim 7 is characterized in that, when client and server end carry out data interaction,
Start timer, perhaps counter;
When described timer timing to or the counting of counter when satisfying condition, send feedback data packet; Wherein, described feedback data packet is used for the connection status of announcement server end active client and server end.
9. the data flow dispensing device based on UDP is characterized in that, comprising:
Data cutting unit, being used for the multi-medium data cutting is the data segment that is not more than preset value;
Son bag acquiring unit is used for said data segment is encapsulated in UDP bag;
Sequencing unit is used for according to time sequencing, and said UDP bag is sorted;
Son bag bonding element is used for the load summation is not more than the approaching UDP bag bonding of said time sequencing of 546 bytes, and is encapsulated in the UDP bag;
Information transmitting unit is used to send the UDP bag that carries said UDP bag;
Wherein, said UDP bag comprises: sub-packet header type field, son bag load size field, son bag timestamp field and son bag payload data field.
10. the data flow dispensing device based on UDP according to claim 9 is characterized in that this device also comprises:
Judging unit is used for when request is set up in the connection that receives the client transmission, having judged whether that idle transmission channel and related resource are that client provides service;
Data capture unit if be used for idle transmission channel and the related resource that promising client provides service, obtains the required multi-medium data of client;
Said information transmitting unit if also be used for not providing for client the idle transmission channel and the related resource of service, sent to connect and is expired the message informing client.
11. the data flow dispensing device based on UDP according to claim 10 is characterized in that, also comprises:
The connection judgment unit is used for after server end sends the said UDP bag of some, judging whether active client is connected with said server end;
If active client is connected with said server end, then continue to send the UDP bag;
If active client and said server end break off, then stop to send the UDP bag.
12. the data flow receiving system based on UDP is characterized in that, comprising:
Information receiving unit is used to receive the UDP bag that carries said UDP bag;
The data sorting unit is used for described UDP bag is sorted;
The said UDP bag that carries said UDP bag is sent by server end; It comprises: be encapsulated in the approaching UDP bag of time sequencing that the load summation that bonds together in the UDP bag is not more than 546 bytes; Wherein, Multi-medium data is to be not more than the data segment of preset value to be encapsulated in the UDP bag by cutting, and said UDP comprises: sub-packet header type field, son bag load size field, son bag timestamp field and son bag payload data field.
13. the data flow receiving system based on UDP according to claim 12 is characterized in that, also comprises:
The order judging unit is used to judge whether the order of described UDP bag is continuous;
The packet loss processing unit is discontinuous if be used for the order of described UDP bag, then carries out corresponding packet loss and handles.
14. the data flow receiving system based on UDP according to claim 13 is characterized in that, also comprises:
The timer start unit is used for when the order of described UDP bag is discontinuous, starts timer;
The information type judging unit is used for when timer regularly overtimely, judges whether the UDP bag of losing carries configuration information;
The retransmission information transmitting element carries configuration information if be used for the described UDP bag of losing, and then sends said UDP bag retransmission information;
Synchronous updating block, if what be used for that the described UDP bag of losing carries is not configuration information, then the UDP bag according to current reception upgrades synchronously.
15., it is characterized in that according to any described data flow receiving system in the claim 12 to 14 based on UDP, also comprise,
The feedback data packet transmitting element is used for after information receiving unit receives said UDP bag, sends feedback data packet; Wherein, said feedback data packet is used for announcement server end and client maintenance connection status.
16. the data flow receiving system based on UDP according to claim 15 is characterized in that, also comprises,
Start unit is used for when client and server end carry out data interaction, starting timer, perhaps counter;
Said feedback data packet transmitting element, also be used for when described timer timing to or the counting of counter when satisfying condition, send feedback data packet; Wherein, described feedback data packet is used for the connection status of announcement server end active client and server end.
CN200910081075A 2009-04-01 2009-04-01 UDP (User Datagram Protocol)-based data stream sending-receiving method and device Expired - Fee Related CN101854286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910081075A CN101854286B (en) 2009-04-01 2009-04-01 UDP (User Datagram Protocol)-based data stream sending-receiving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910081075A CN101854286B (en) 2009-04-01 2009-04-01 UDP (User Datagram Protocol)-based data stream sending-receiving method and device

Publications (2)

Publication Number Publication Date
CN101854286A CN101854286A (en) 2010-10-06
CN101854286B true CN101854286B (en) 2012-09-05

Family

ID=42805563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910081075A Expired - Fee Related CN101854286B (en) 2009-04-01 2009-04-01 UDP (User Datagram Protocol)-based data stream sending-receiving method and device

Country Status (1)

Country Link
CN (1) CN101854286B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325158B (en) * 2011-07-15 2014-08-20 四川长虹电器股份有限公司 Dynamic multi-thread broadcasting transmitting and analysis method
CN102647621B (en) * 2012-04-28 2014-07-23 武汉兴图新科电子股份有限公司 Video synchronous playback device and method
US10250511B2 (en) * 2016-06-10 2019-04-02 International Business Machines Corporation Persistent flow identifiers enabling disparate applications
CN109327730B (en) * 2018-09-11 2020-05-26 视联动力信息技术股份有限公司 Method and device for downloading data packet
CN109379386A (en) * 2018-12-13 2019-02-22 广州市百果园信息技术有限公司 A kind of method for message transmission, device, equipment and medium
CN110557655B (en) * 2019-09-06 2021-10-26 卓米私人有限公司 Video picture display method and device, electronic equipment and storage medium
CN110535978B (en) * 2019-10-08 2021-06-25 湖南新云网科技有限公司 Data transmission method, device and system, intelligent wearable device and storage medium
CN110912942B (en) * 2019-12-30 2021-09-21 深圳市瑞云科技有限公司 Method for reducing UDP message sending time delay
CN113259370B (en) * 2021-06-03 2021-11-02 腾讯科技(深圳)有限公司 Data transmission method, device, equipment, system and readable storage medium
CN114070877B (en) * 2021-11-18 2023-10-20 北京云上曲率科技有限公司 Data transmission method, server and client based on user datagram protocol

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481132A (en) * 2002-09-04 2004-03-10 清华同方股份有限公司 Multicast method for distributing mass file applied to satellite data broadcasting system
CN1482779A (en) * 2002-09-13 2004-03-17 北京威速科技有限公司 Forward error correction in internet multimedia realtime communication
US7002993B1 (en) * 2000-08-18 2006-02-21 Juniper Networks, Inc. Method and apparatus providing media aggregation in a packet-switched network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002993B1 (en) * 2000-08-18 2006-02-21 Juniper Networks, Inc. Method and apparatus providing media aggregation in a packet-switched network
CN1481132A (en) * 2002-09-04 2004-03-10 清华同方股份有限公司 Multicast method for distributing mass file applied to satellite data broadcasting system
CN1482779A (en) * 2002-09-13 2004-03-17 北京威速科技有限公司 Forward error correction in internet multimedia realtime communication

Also Published As

Publication number Publication date
CN101854286A (en) 2010-10-06

Similar Documents

Publication Publication Date Title
CN101854286B (en) UDP (User Datagram Protocol)-based data stream sending-receiving method and device
US7558247B2 (en) Optimized radio bearer configuration for voice over IP
JP3799326B2 (en) Packet transmission method and packet reception method
US7397819B2 (en) Packet compression system, packet restoration system, packet compression method, and packet restoration method
US6694471B1 (en) System and method for periodic retransmission of messages
US7865610B2 (en) Point to multipoint reliable protocol for synchronous streaming data in a lossy IP network
US20060222010A1 (en) Method of performing a layer operation in a communications network
CN106209915A (en) A kind of real time flow medium radio transmitting method and system thereof
WO2011000200A1 (en) Effective streaming media transmission method
US20100020682A1 (en) Communication device, communication method, and recording medium
EP1914933B1 (en) Method and apparatus for retransmission request reduction in a network
WO2009006804A1 (en) A method for transmitting mobile multimedia broadcast service data flow and a multiplexing frame for transmitting
US8416786B2 (en) Data transport container for transferring data in a high speed internet protocol network
WO2006086691A2 (en) A network for providing a streaming service
JP3933555B2 (en) DATA DISTRIBUTION SYSTEM, DATA DISTRIBUTION DEVICE, DATA DISTRIBUTION METHOD, DATA DISTRIBUTION PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
Zink et al. LC-RTP (loss collection RTP): reliability for video caching in the Internet
US8391284B2 (en) Usage of feedback information for multimedia sessions
CN106790030A (en) Multi-screen collaboration audio transmission service end, client, system and its processing method
WO2005065060A2 (en) Optimized radio bearer configuration for voice over ip
WO2010009652A1 (en) Transmission method for multiplex data stream
CN210129959U (en) Wireless local area network audio stream transmission system
KR20040089156A (en) Method of Controlling Channel for Providing Multimedia Contents in Mobile Communication Network
WO2013097611A1 (en) Data processing method, device and system
JP4120290B2 (en) Media gateway, stored data distribution system, stored data distribution method and program thereof
JP2006229412A (en) Apparatus for data transmission

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120905

Termination date: 20170401

CF01 Termination of patent right due to non-payment of annual fee