CN101854286A - 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
CN101854286A
CN101854286A CN200910081075A CN200910081075A CN101854286A CN 101854286 A CN101854286 A CN 101854286A CN 200910081075 A CN200910081075 A CN 200910081075A CN 200910081075 A CN200910081075 A CN 200910081075A CN 101854286 A CN101854286 A CN 101854286A
Authority
CN
China
Prior art keywords
udp
user datagram
bag
datagram protoco
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.)
Granted
Application number
CN200910081075A
Other languages
Chinese (zh)
Other versions
CN101854286B (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 User Datagram Protoco (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 User Datagram Protoco (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, User Datagram Protoco (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 by 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 that there are the following problems at least in the prior art:
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 needed to wrap cutting, just can transmit at the IP layer.Like this, cause losing of UDP message after the cutting with regard to making UDP message bag after the cutting be more prone to be subjected to the influence of network reason, thereby make whole UDP bag be dropped.
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 User Datagram Protoco (UDP).
In the process that realizes technical solution of the present invention, the invention provides a kind of data flow sending method based on User Datagram Protoco (UDP).This method comprises:
With the multi-medium data cutting is the data segment that is not more than preset value;
Described data segment is encapsulated in the User Datagram Protoco (UDP) bag;
Transmission carries the User Datagram Protoco (UDP) bag of described User Datagram Protoco (UDP) bag.
In the process that realizes technical solution of the present invention, the invention provides a kind of data flow method of reseptance based on User Datagram Protoco (UDP).This method comprises:
Reception carries the User Datagram Protoco (UDP) bag of described User Datagram Protoco (UDP) bag;
Described User Datagram Protoco (UDP) bag is sorted.
In the process that realizes technical solution of the present invention, the present invention also provides a kind of data flow dispensing device based on User Datagram Protoco (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 described data segment is encapsulated in User Datagram Protoco (UDP) bag;
Information transmitting unit is used to send the User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag.
In the process that realizes technical solution of the present invention, the present invention also provides a kind of data flow receiving system based on User Datagram Protoco (UDP).This device comprises:
Information receiving unit is used to receive the User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag;
The data sorting unit is used for described User Datagram Protoco (UDP) bag is sorted.
A kind of data flow sending, receiving method and device based on User Datagram Protoco (UDP) that the embodiment of the invention provides are by being the data segment that is not more than preset value with the multi-medium data cutting; And described data segment is encapsulated in the User Datagram Protoco (UDP) bag; Transmission carries the User Datagram Protoco (UDP) bag of described User Datagram Protoco (UDP) bag to client.Wherein, owing to describedly send to the User Datagram Protoco (UDP) bag load of carrying in the User Datagram Protoco (UDP) bag of client and be not more than preset value, describedly when the described User Datagram Protoco (UDP) bag that carries User Datagram Protoco (UDP) bag is transferred to the IP layer, do not need to 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 described UDP bag that carries described User Datagram Protoco (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 User Datagram Protoco (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 User Datagram Protoco (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 User Datagram Protoco (UDP);
The first embodiment flow chart of a kind of data flow method of reseptance based on User Datagram Protoco (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 User Datagram Protoco (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 User Datagram Protoco (UDP).
Embodiment
Below in conjunction with accompanying drawing a kind of data flow sending, receiving method and device based on User Datagram Protoco (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 User Datagram Protoco (UDP) of providing of the embodiment of the invention; 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: video data and voice data two classes; 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: described data segment is encapsulated in the User Datagram Protoco (UDP) bag;
Data segment after the described multi-medium data cutting is encapsulated in the User Datagram Protoco (UDP) bag; Video-data fragment after the cutting and audio data section can be encapsulated in respectively in the user data User Datagram Protoco (UDP) bag.
103: send the User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag.
It should be noted that described User Datagram Protoco (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 described User Datagram Protoco (UDP) is as shown in the table:
Figure B2009100810756D0000041
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 described 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 B2009100810756D0000051
Because that uses the UDP transmission has only video and audio frequency two class data, so available bit8 is that 1 what identify that son comprises is video data; With bit8 is 0 to identify son what comprise is voice data.Because stream numbering is to identify a client and server end by 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, mostly is 32 most.
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 and son bag timestamp field time are elaborated again; Above-described son bag load size field size and son bag timestamp field time all occur at every turn.Whether described field occurs deciding according to 2 bit positions of sub-packet header type.Its implication is expressed as follows table respectively:
Figure B2009100810756D0000052
It is also to be noted that because the load data of a son bag mostly is 128 bytes most, transmit if each UDP bag only carries a son bag, 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 by 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 carry out quickly audio ﹠ video synchronously.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 User Datagram Protoco (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 provide service for client;
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: if the idle transmission channel and the related resource of service are not provided for client, sending to connect expires the message informing 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 described multi-medium data cutting; This preset value can be 128 bytes;
205: described data segment is encapsulated in the User Datagram Protoco (UDP) bag;
206:, described User Datagram Protoco (UDP) bag is sorted according to time sequencing;
207: the load summation is not more than the approaching User Datagram Protoco (UDP) bag bonding of described time sequencing of 546 bytes, and is encapsulated in the User Datagram Protoco (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 to unpack.Therefore, when the sub-bag of described User Datagram Protoco (UDP) institute data carried by data was not more than 128 bytes, a UDP bag can carry 4 User Datagram Protoco (UDP) bags.
It is also to be noted that, when encapsulation UDP bag, can carry out son bag bonding by the 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 User Datagram Protoco (UDP) bag;
3, timestamp near the time, if having video frequency user data newspaper agreement bag and audio user datagram protocol bag, then this two classes is wrapped combined crosswise;
4, UDP bag total load length can not surpass 546 bytes.If a bonding son bag makes load may surpass 546 bytes, then should will should put into next UDP bag by the child bag.
208: send the User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag.
It is also to be noted that, after server end sends the described User Datagram Protoco (UDP) bag of some,
Server end judges whether active client is connected with described server end;
If active client is connected with described server end, then continue to send the User Datagram Protoco (UDP) bag;
If active client and described server end disconnect, then stop to send the User Datagram Protoco (UDP) bag.
As shown in Figure 3, a kind of data flow dispensing device that provides for the embodiment of the invention based on User Datagram Protoco (UDP); In the process that realizes the embodiment of the invention, this device comprises:
Judging unit 301 is used for having judged whether that idle transmission channel and related resource provide service for client when request is set up in the connection that receives the client transmission;
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 described data segment is encapsulated in User Datagram Protoco (UDP) bag; Wherein, described User Datagram Protoco (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 described User Datagram Protoco (UDP) bag is sorted;
Son bag bonding element 306 is used for the load summation is not more than the approaching User Datagram Protoco (UDP) bag bonding of described time sequencing of 546 bytes, and is encapsulated in the User Datagram Protoco (UDP) bag.
Information transmitting unit 307 is used to send the User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag; If also be used for not providing for client the idle transmission channel and the related resource of service, sending to connect expires the message informing client.
It should be noted that this device also comprises:
After server end sends the described User Datagram Protoco (UDP) bag of some, also comprise:
The connection judgment unit is used to judge whether active client is connected with described server end;
If active client is connected with described server end, then continue to send the User Datagram Protoco (UDP) bag;
If active client and described server end disconnect, then stop to send the User Datagram Protoco (UDP) bag.
As shown in Figure 4, first embodiment of a kind of data flow method of reseptance based on User Datagram Protoco (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 User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag;
402: described User Datagram Protoco (UDP) bag is sorted.
As shown in Figure 5, second embodiment of a kind of data flow method of reseptance based on User Datagram Protoco (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 User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag;
502: described User Datagram Protoco (UDP) bag is sorted;
503: whether the order of judging described User Datagram Protoco (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 may be lost, and also may postpone;
It should be noted that when the order of described User Datagram Protoco (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 described User Datagram Protoco (UDP) bag of losing carries configuration information; That is to say that client is not received the packet of disappearance yet, then confirms described data-bag lost, and judges further whether the described User Datagram Protoco (UDP) bag of losing carries configuration information after timer is regularly super; 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 described UDP that loses wraps whether carry configuration information.
If the described UDP bag of losing carries configuration information, then send described User Datagram Protoco (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 determine 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 determine 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 User Datagram Protoco (UDP) bag of losing carried is not configuration information, then the User Datagram Protoco (UDP) bag according to current reception upgrades synchronously.For example: behind timer expiry, client end will be numbered minimum UDP and be unwrapped the beginning after m, each passage is sought first load that contains timestamp bag respectively, utilize the timestamp in these load bags 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 disconnects from server, when perhaps causing connection termination owing to the network reason, server should be able to obtain message, stop continue to send the UDP bag, this can be by allowing 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 do not receive feedback data packet in the regular hour 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 described User Datagram Protoco (UDP) bag of some when client after,
Send feedback data packet; Wherein, described feedback data packet is used for announcement server end and client maintenance connection status.Herein, client can be by 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.
As shown in Figure 6, a kind of data flow receiving system that provides for the embodiment of the invention based on User Datagram Protoco (UDP); In the process that realizes the embodiment of the invention, this device comprises:
Information receiving unit 601 is used to receive the User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag;
Data sorting unit 602 is used for described User Datagram Protoco (UDP) bag is sorted.
Order judging unit 603 is used to judge whether the order of described User Datagram Protoco (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 User Datagram Protoco (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 described User Datagram Protoco (UDP) bag of losing carries configuration information;
The retransmission information transmitting element carries configuration information if be used for the described User Datagram Protoco (UDP) bag of losing, and then sends described User Datagram Protoco (UDP) bag retransmission information;
Synchronous updating block, if what be used for that the described User Datagram Protoco (UDP) bag of losing carries is not configuration information, then the User Datagram Protoco (UDP) bag according to current reception upgrades synchronously.
It is also to be noted that, after receiving described User Datagram Protoco (UDP) bag,
The feedback data packet transmitting element is used to send feedback data packet; Wherein, described 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 by start unit; Promptly
Described 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 User Datagram Protoco (UDP) that the embodiment of the invention provides are by being the data segment that is not more than preset value with the multi-medium data cutting; And described data segment is encapsulated in the User Datagram Protoco (UDP) bag; Transmission carries the User Datagram Protoco (UDP) bag of described User Datagram Protoco (UDP) bag to client.Wherein, owing to describedly send to the User Datagram Protoco (UDP) bag load of carrying in the User Datagram Protoco (UDP) bag of client and be not more than preset value, describedly when the described User Datagram Protoco (UDP) bag that carries User Datagram Protoco (UDP) bag is transferred to the IP layer, do not need to 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 described UDP bag that carries described User Datagram Protoco (UDP) bag, reduce the losing probability after the cutting of UDP message bag greatly, thereby improved the client-side multimedia play quality.
Through the above description of the embodiments, 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 finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise step as above-mentioned method embodiment, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, 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 (19)

1. the data flow sending method based on User Datagram Protoco (UDP) is characterized in that, comprising:
With the multi-medium data cutting is the data segment that is not more than preset value;
Described data segment is encapsulated in the User Datagram Protoco (UDP) bag;
Transmission carries the User Datagram Protoco (UDP) bag of described User Datagram Protoco (UDP) bag.
2. the data flow sending method based on User Datagram Protoco (UDP) according to claim 1 is characterized in that, described described data segment is encapsulated in after the step in the User Datagram Protoco (UDP) bag, also comprises:
According to time sequencing, described User Datagram Protoco (UDP) bag is sorted;
The load summation is not more than the approaching User Datagram Protoco (UDP) bag bonding of described time sequencing of 546 bytes, and is encapsulated in the User Datagram Protoco (UDP) bag.
3. the data flow sending method based on User Datagram Protoco (UDP) according to claim 1, it is characterized in that, described User Datagram Protoco (UDP) bag comprises: sub-packet header type field, son bag load size field, son bag timestamp field and son bag payload data field.
4. according to any described data flow sending method in the claim 1 to 3, it is characterized in that described is to be not more than before the step of the data segment of preset value with the multi-medium data cutting, also comprises based on User Datagram Protoco (UDP):
When request is set up in the connection that receives the client transmission, judged whether that idle transmission channel and related resource provide service for client;
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, sending to connect expires the message informing client.
5. the data flow sending method based on User Datagram Protoco (UDP) according to claim 4 is characterized in that, after server end sends the described User Datagram Protoco (UDP) bag of some, also comprises:
Judge whether active client is connected with described server end;
If active client is connected with described server end, then continue to send the User Datagram Protoco (UDP) bag;
If active client and described server end disconnect, then stop to send the User Datagram Protoco (UDP) bag.
6. the data flow method of reseptance based on User Datagram Protoco (UDP) is characterized in that, comprising:
Reception carries the User Datagram Protoco (UDP) bag of described User Datagram Protoco (UDP) bag;
Described User Datagram Protoco (UDP) bag is sorted.
7. the data flow method of reseptance based on User Datagram Protoco (UDP) according to claim 6 is characterized in that, also comprises:
Whether the order of judging described User Datagram Protoco (UDP) bag is continuous;
If the order of described User Datagram Protocol bag is discontinuous, then carries out corresponding packet loss and handle.
8. the data flow method of reseptance based on User Datagram Protoco (UDP) according to claim 7 is characterized in that, when the order of described User Datagram Protoco (UDP) bag is discontinuous,
Start timer;
Regularly overtime when timer, judge whether the described User Datagram Protoco (UDP) bag of losing carries configuration information;
If the described User Datagram Protoco (UDP) bag of losing carries configuration information, then send described User Datagram Protoco (UDP) bag retransmission information;
If what the described User Datagram Protoco (UDP) bag of losing carried is not configuration information, then the User Datagram Protoco (UDP) bag according to current reception upgrades synchronously.
9. according to any described data flow method of reseptance in the claim 6 to 8, it is characterized in that based on User Datagram Protoco (UDP), after receiving described User Datagram Protoco (UDP) bag,
Send feedback data packet; Wherein, described feedback data packet is used for announcement server end and client maintenance connection status.
10. the data flow method of reseptance based on User Datagram Protoco (UDP) according to claim 9 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.
11. the data flow dispensing device based on User Datagram Protoco (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 described data segment is encapsulated in User Datagram Protoco (UDP) bag;
Information transmitting unit is used to send the User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag.
12. the data flow dispensing device based on User Datagram Protoco (UDP) according to claim 11 is characterized in that, also comprises:
Sequencing unit is used for according to time sequencing, and described User Datagram Protoco (UDP) bag is sorted;
Son bag bonding element is used for the load summation is not more than the approaching User Datagram Protoco (UDP) bag bonding of described time sequencing of 546 bytes, and is encapsulated in the User Datagram Protoco (UDP) bag.
13., it is characterized in that when request was set up in the connection that receives the client transmission, this device also comprised according to claim 11 or 12 described data flow dispensing devices based on User Datagram Protoco (UDP):
Judging unit is used for having judged whether that idle transmission channel and related resource provide service for client when request is set up in the connection that receives the client transmission;
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;
Described information transmitting unit, if also be used for not providing for client the idle transmission channel and the related resource of service, sending to connect expires the message informing client.
14. the data flow dispensing device based on User Datagram Protoco (UDP) according to claim 13 is characterized in that, after server end sends the described User Datagram Protoco (UDP) bag of some, also comprises:
The connection judgment unit is used to judge whether active client is connected with described server end;
If active client is connected with described server end, then continue to send the User Datagram Protoco (UDP) bag;
If active client and described server end disconnect, then stop to send the User Datagram Protoco (UDP) bag.
15. the data flow receiving system based on User Datagram Protoco (UDP) is characterized in that, comprising:
Information receiving unit is used to receive the User Datagram Protoco (UDP) bag that carries described User Datagram Protoco (UDP) bag;
The data sorting unit is used for described User Datagram Protoco (UDP) bag is sorted.
16. the data flow receiving system based on User Datagram Protoco (UDP) according to claim 15 is characterized in that, also comprises:
The order judging unit is used to judge whether the order of described User Datagram Protoco (UDP) bag is continuous;
The packet loss processing unit is discontinuous if be used for the order of described User Datagram Protocol bag, then carries out corresponding packet loss and handles.
17. the data flow receiving system based on User Datagram Protoco (UDP) according to claim 16 is characterized in that, when the order of described User Datagram Protoco (UDP) bag is discontinuous, also comprises:
The timer start unit is used to start timer;
The information type judging unit is used for when timer regularly overtimely, judges whether the described User Datagram Protoco (UDP) bag of losing carries configuration information;
The retransmission information transmitting element carries configuration information if be used for the described User Datagram Protoco (UDP) bag of losing, and then sends described User Datagram Protoco (UDP) bag retransmission information;
Synchronous updating block, if what be used for that the described User Datagram Protoco (UDP) bag of losing carries is not configuration information, then the User Datagram Protoco (UDP) bag according to current reception upgrades synchronously.
18. according to any described data flow receiving system in the claim 15 to 17, it is characterized in that based on User Datagram Protoco (UDP), after receiving described User Datagram Protoco (UDP) bag,
The feedback data packet transmitting element is used to send feedback data packet; Wherein, described feedback data packet is used for announcement server end and client maintenance connection status.
19. the data flow receiving system based on User Datagram Protoco (UDP) according to claim 18 is characterized in that, when client and server end carry out data interaction,
Start unit is used to start timer, perhaps counter;
Described 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.
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 true CN101854286A (en) 2010-10-06
CN101854286B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325158A (en) * 2011-07-15 2012-01-18 四川长虹电器股份有限公司 Dynamic multi-thread broadcasting transmitting and analysis method
CN102647621A (en) * 2012-04-28 2012-08-22 武汉兴图新科电子股份有限公司 Video synchronous playback device and method
WO2017212461A1 (en) * 2016-06-10 2017-12-14 International Business Machines Corporation Persistent flow identifiers enabling disparate applications
CN109327730A (en) * 2018-09-11 2019-02-12 视联动力信息技术股份有限公司 A kind of method and apparatus of data packet downloading
CN109379386A (en) * 2018-12-13 2019-02-22 广州市百果园信息技术有限公司 A kind of method for message transmission, device, equipment and medium
CN110535978A (en) * 2019-10-08 2019-12-03 湖南新云网科技有限公司 Data transmission method, device, system and intelligent wearable equipment and storage medium
CN110557655A (en) * 2019-09-06 2019-12-10 香港乐蜜有限公司 video picture display method and device, electronic equipment and storage medium
CN110912942A (en) * 2019-12-30 2020-03-24 深圳市瑞云科技有限公司 Method for reducing UDP message sending time delay
CN113259370A (en) * 2021-06-03 2021-08-13 腾讯科技(深圳)有限公司 Data transmission method, device, equipment, system and readable storage medium
CN114070877A (en) * 2021-11-18 2022-02-18 北京云上曲率科技有限公司 Data transmission method based on user datagram protocol, server and client

Family Cites Families (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
CN1221116C (en) * 2002-09-04 2005-09-28 清华同方股份有限公司 Multicast method for distributing mass file applied to satellite data broadcasting system
CN1256832C (en) * 2002-09-13 2006-05-17 北京威速科技有限公司 Forward error correction in internet multimedia realtime communication

Cited By (22)

* 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
CN102325158A (en) * 2011-07-15 2012-01-18 四川长虹电器股份有限公司 Dynamic multi-thread broadcasting transmitting and analysis method
CN102647621A (en) * 2012-04-28 2012-08-22 武汉兴图新科电子股份有限公司 Video synchronous playback device and method
CN102647621B (en) * 2012-04-28 2014-07-23 武汉兴图新科电子股份有限公司 Video synchronous playback device and method
WO2017212461A1 (en) * 2016-06-10 2017-12-14 International Business Machines Corporation Persistent flow identifiers enabling disparate applications
GB2566226A (en) * 2016-06-10 2019-03-06 Ibm Persistent flow identifiers enabling disparate applications
US10250511B2 (en) 2016-06-10 2019-04-02 International Business Machines Corporation Persistent flow identifiers enabling disparate applications
GB2566226B (en) * 2016-06-10 2019-07-31 Ibm Persistent flow identifiers enabling disparate applications
US10693796B2 (en) 2016-06-10 2020-06-23 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
CN109327730A (en) * 2018-09-11 2019-02-12 视联动力信息技术股份有限公司 A kind of method and apparatus of data packet downloading
CN109379386A (en) * 2018-12-13 2019-02-22 广州市百果园信息技术有限公司 A kind of method for message transmission, device, equipment and medium
WO2021042783A1 (en) * 2019-09-06 2021-03-11 香港乐蜜有限公司 Video image display method and apparatus, electronic device and storage medium
CN110557655A (en) * 2019-09-06 2019-12-10 香港乐蜜有限公司 video picture display method and device, electronic equipment and storage medium
CN110557655B (en) * 2019-09-06 2021-10-26 卓米私人有限公司 Video picture display method and device, electronic equipment and storage medium
US12052452B2 (en) 2019-09-06 2024-07-30 Joyme Pte. Ltd. Method and apparatus for displaying video image, electronic device and storage medium
CN110535978A (en) * 2019-10-08 2019-12-03 湖南新云网科技有限公司 Data transmission method, device, system and intelligent wearable equipment and storage medium
CN110912942A (en) * 2019-12-30 2020-03-24 深圳市瑞云科技有限公司 Method for reducing UDP message sending time delay
CN110912942B (en) * 2019-12-30 2021-09-21 深圳市瑞云科技有限公司 Method for reducing UDP message sending time delay
CN113259370A (en) * 2021-06-03 2021-08-13 腾讯科技(深圳)有限公司 Data transmission method, device, equipment, system and readable storage medium
CN114070877A (en) * 2021-11-18 2022-02-18 北京云上曲率科技有限公司 Data transmission method based on user datagram protocol, server and client
CN114070877B (en) * 2021-11-18 2023-10-20 北京云上曲率科技有限公司 Data transmission method, server and client based on user datagram protocol

Also Published As

Publication number Publication date
CN101854286B (en) 2012-09-05

Similar Documents

Publication Publication Date Title
CN101854286B (en) UDP (User Datagram Protocol)-based data stream sending-receiving method and device
US6694471B1 (en) System and method for periodic retransmission of messages
US7397819B2 (en) Packet compression system, packet restoration system, packet compression method, and packet restoration method
KR100608844B1 (en) RADIO COMMUNICATION SYSTEM PROVIDING VoIP SERVICE
KR101366803B1 (en) Communication method and apparatus using hyper text transfer protocol
JP4414311B2 (en) Multimedia streaming service system and method
CN100407698C (en) Data transmission method for wireless link control layer
US7865610B2 (en) Point to multipoint reliable protocol for synchronous streaming data in a lossy IP network
CN104270684B (en) It is a kind of towards the video/audio network transmission system and method applied in real time
JP4560213B2 (en) Multiple reception confirmation management system in data network
MXPA04007663A (en) Time-slice signaling for broadband digital broadcasting.
WO2011000200A1 (en) Effective streaming media transmission method
RU2010110600A (en) METHOD AND DEVICE FOR TRANSMISSION OF SPEECH INFORMATION WITH COMMUTATION OF CHANNELS ON NETWORKS WITH COMMUTATION OF PACKAGES
EP1914933B1 (en) Method and apparatus for retransmission request reduction in a network
US8416786B2 (en) Data transport container for transferring data in a high speed internet protocol network
CN110474721A (en) Method of transmitting video data, device and computer readable storage medium
WO2006086691A2 (en) A network for providing a streaming service
CN109246486A (en) A kind of framing method and device
KR20150083428A (en) Packet retransmission method and apparatus, and retransmission request method and apparatus in mmt system
CN110062295A (en) A kind of file resource acquisition methods and system
JP3933555B2 (en) DATA DISTRIBUTION SYSTEM, DATA DISTRIBUTION DEVICE, DATA DISTRIBUTION METHOD, DATA DISTRIBUTION PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
WO2024093812A1 (en) Low-latency transmission control method, receiving terminal and sending terminal
CN106790576A (en) A kind of interactive desktop synchronization
CN106790030A (en) Multi-screen collaboration audio transmission service end, client, system and its processing method
Zink et al. LC-RTP (loss collection RTP): reliability for video caching in the Internet

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120905

Termination date: 20170401