CN105430320A - Audio and video media data transmission method based on UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) - Google Patents
Audio and video media data transmission method based on UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) Download PDFInfo
- Publication number
- CN105430320A CN105430320A CN201510813638.1A CN201510813638A CN105430320A CN 105430320 A CN105430320 A CN 105430320A CN 201510813638 A CN201510813638 A CN 201510813638A CN 105430320 A CN105430320 A CN 105430320A
- Authority
- CN
- China
- Prior art keywords
- rtp
- tcp
- udp
- audio
- nack
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/6437—Real-time Transport Protocol [RTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64784—Data processing by the network
- H04N21/64792—Controlling the complexity of the content stream, e.g. by dropping packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses an audio and video media data transmission method based on a UDP (User Datagram Protocol) and a TCP (Transmission Control Protocol), which is applied to VOIP (Voice over Internet Phone) and audio and video conference services. The method comprises the following steps of: before a terminal or a server sends a RTP (Real Time Protocol) packet, creating a RTP/UDP channel, and additionally establishing a TCP connection; in the normal transmission process, sending and receiving the RTP packet by using the RTP/UDP channel; when a receiving end finds packet loss, generating an NACK (Negative Acknowledgement) request, and sending the NACK request to a sending end by the TCP connection to request retransmission of the lost packet; and after the sending end receives the NACK request, analyzing the NACK request, and sending the RTP packet which needs to be retransmitted to the receiving end by the TCP connection. Utilization of the characteristics of good real-time performance and reliable transmission of an RTP can ensure that repeated NACK and retransmission of the lost packet can be reduced on the premise of rapidly transmitting audio and video data, so that use efficiency of a network bandwidth is improved.
Description
Technical field
the invention belongs to media data network transmission technology field, be specifically related to a kind of method that RTP based on UDP and TCP wraps transmission and packet loss re-transmission.
Background technology
rTP(RTP) abbreviation that to be Real-timeTransportProtocol be, be generally used for the real-time Transmission of audio-video frequency media data, be widely used in VOIP and audio/video conference business.RTP carries out and transmits in order, but does not ensure transmit or prevent unordered transmission, and also the reliability of uncertain bottom-layer network, easily occurs the problems such as packet loss.
therefore when receiving terminal finds that there is packet loss, request packet loss is needed to retransmit, because NACK uses RTCP/UDP to transmit usually, transmitting terminal does not also know that receiving terminal receives NACK, be easy to the situation occurring needing repeatedly NACK repetitive requests, the re-transmission packet loss that transmitting terminal also can repeat thereupon, brings unnecessary network bandwidth consumption, and the present invention therefore.
Summary of the invention
for above-mentioned technical problem, the present invention seeks to: a kind of audio-video frequency media data transmission method based on UDP and TCP is provided, simplify the processing procedure that RTP bag packet loss retransmits, reduce network bandwidth consumption.
technical scheme of the present invention is:
based on an audio-video frequency media data transmission method of UDP and TCP, be applied to VOIP, audio/video conference business, it is characterized in that, said method comprising the steps of:
(1) before terminal or server send RTP bag, create RTP/UDP passage, set up a TCP in addition and connect;
(2) when normal transmission, use RTP/UDP passage to send and receive RTP bag;
(3) when receiving terminal finds that there is packet loss, generate NACK request, connected send to transmitting terminal by TCP, request packet loss retransmits;
(4) after transmitting terminal receives NACK request, resolve NACK request, by the RTP bag needing to retransmit, connected by TCP, send to receiving terminal.
preferably, bag sequence number drawn together by described RTP handbag.
preferably, described NACK request comprises the bag sequence number of packet loss.
compared with prior art, advantage of the present invention is:
the present invention has fully utilized the feature of RTP fast transport and TCP transmitting, improves the efficiency that packet loss retransmits.Have the following advantages: 1, there will not be the NACK of repetition to ask; 2, there will not be the packet loss of repetition to retransmit, reduce overhead and network bandwidth consumption.
Accompanying drawing explanation
below in conjunction with drawings and Examples, the invention will be further described:
fig. 1 is the flow chart of the audio-video frequency media data transmission method that the present invention is based on UDP and TCP.
Embodiment
for making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with embodiment also with reference to accompanying drawing, the present invention is described in more detail.Should be appreciated that, these describe just exemplary, and do not really want to limit the scope of the invention.In addition, in the following description, the description to known features and technology is eliminated, to avoid unnecessarily obscuring concept of the present invention.
embodiment:
the present invention takes following step to carry out audio-video frequency media transfer of data:
a, between transmitting terminal and receiving terminal, set up a RTP/UDP passage and be connected with a TCP;
b, when network condition is better, by RTP/UDP transmit RTP bag;
c, when receiving terminal finds that there is packet loss, generate NACK(RTCP bag), by TCP connect send to transmitting terminal;
d, receiving terminal resolve NACK request, connected carry out packet loss re-transmission by TCP.
the present invention cites an actual example and is described:
(1) transmitting terminal and receiving terminal set up RTP/UDP passage and TCP is connected;
(2) transmitting terminal sends RTP bag to receiving terminal, and bag serial number range is 21521 ~ 21535;
(3) suppose that receiving terminal has received RTP bag from network, find that there is two packet losses, sequence number is 21526 and 21528;
(4) receiving terminal generates NACK request, carries sequence number 21526 and 21528, is connected send by TCP;
(5), after transmitting terminal receives NACK, resolve the sequence number of wherein carrying, by sequence number be 21526 with 21528 RTP bag is connected re-transmission to receiving terminal by TCP.
the method simplifies the processing procedure that RTP bag packet loss retransmits, and reduces network bandwidth consumption.
should be understood that, above-mentioned embodiment of the present invention only for exemplary illustration or explain principle of the present invention, and is not construed as limiting the invention.Therefore, any amendment made when without departing from the spirit and scope of the present invention, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.In addition, claims of the present invention be intended to contain fall into claims scope and border or this scope and border equivalents in whole change and modification.
Claims (3)
1., based on an audio-video frequency media data transmission method of UDP and TCP, be applied to VOIP, audio/video conference business, it is characterized in that, said method comprising the steps of:
(1) before terminal or server send RTP bag, create RTP/UDP passage, set up a TCP in addition and connect;
(2) when normal transmission, use RTP/UDP passage to send and receive RTP bag;
(3) when receiving terminal finds that there is packet loss, generate NACK request, connected send to transmitting terminal by TCP, request packet loss retransmits;
(4) after transmitting terminal receives NACK request, resolve NACK request, by the RTP bag needing to retransmit, connected by TCP, send to receiving terminal.
2. the audio-video frequency media data transmission method based on UDP and TCP according to claim 1, bag sequence number drawn together by described RTP handbag.
3. the audio-video frequency media data transmission method based on UDP and TCP according to claim 1, described NACK request comprises the bag sequence number of packet loss.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510813638.1A CN105430320A (en) | 2015-11-23 | 2015-11-23 | Audio and video media data transmission method based on UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510813638.1A CN105430320A (en) | 2015-11-23 | 2015-11-23 | Audio and video media data transmission method based on UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105430320A true CN105430320A (en) | 2016-03-23 |
Family
ID=55508219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510813638.1A Pending CN105430320A (en) | 2015-11-23 | 2015-11-23 | Audio and video media data transmission method based on UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105430320A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209464A (en) * | 2016-07-19 | 2016-12-07 | 上海斐讯数据通信技术有限公司 | The discovery method of terminal, terminal and management system thereof |
CN110225419A (en) * | 2019-05-15 | 2019-09-10 | 深圳市麦谷科技有限公司 | A kind of packet loss repeating method for realizing flow control |
CN111641877A (en) * | 2020-06-04 | 2020-09-08 | 伟乐视讯科技股份有限公司 | Video gateway transmission method and system |
US10959125B2 (en) | 2018-12-19 | 2021-03-23 | Industrial Technology Research Institute | Collaborative transmission method and transmission device based on UDP and TCP connections |
CN112738096A (en) * | 2020-12-29 | 2021-04-30 | 湖南博匠信息科技有限公司 | Efficient and reliable data transmission method and system |
CN112866178A (en) * | 2019-11-27 | 2021-05-28 | 北京沃东天骏信息技术有限公司 | Method and device for audio data transmission |
CN115766519A (en) * | 2022-10-24 | 2023-03-07 | 株洲华通科技有限责任公司 | Data transmission method and system for portable communication equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1041823A2 (en) * | 1999-03-31 | 2000-10-04 | Kabushiki Kaisha Toshiba | Content distribution apparatus, content receiving apparatus, and content distribution method |
CN101945266A (en) * | 2010-08-20 | 2011-01-12 | 山东神戎电子股份有限公司 | Adaptive method for wireless network video stream transmission |
CN103686446A (en) * | 2013-12-06 | 2014-03-26 | 广州华多网络科技有限公司 | Method and system for retransmitting lost packet in video data transmission |
-
2015
- 2015-11-23 CN CN201510813638.1A patent/CN105430320A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1041823A2 (en) * | 1999-03-31 | 2000-10-04 | Kabushiki Kaisha Toshiba | Content distribution apparatus, content receiving apparatus, and content distribution method |
CN101945266A (en) * | 2010-08-20 | 2011-01-12 | 山东神戎电子股份有限公司 | Adaptive method for wireless network video stream transmission |
CN103686446A (en) * | 2013-12-06 | 2014-03-26 | 广州华多网络科技有限公司 | Method and system for retransmitting lost packet in video data transmission |
Non-Patent Citations (1)
Title |
---|
陈静,等: "一种适用于移动通信网的流媒体传输策略", 《杭州电子科技大学学报》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209464A (en) * | 2016-07-19 | 2016-12-07 | 上海斐讯数据通信技术有限公司 | The discovery method of terminal, terminal and management system thereof |
US10959125B2 (en) | 2018-12-19 | 2021-03-23 | Industrial Technology Research Institute | Collaborative transmission method and transmission device based on UDP and TCP connections |
CN110225419A (en) * | 2019-05-15 | 2019-09-10 | 深圳市麦谷科技有限公司 | A kind of packet loss repeating method for realizing flow control |
CN112866178A (en) * | 2019-11-27 | 2021-05-28 | 北京沃东天骏信息技术有限公司 | Method and device for audio data transmission |
CN112866178B (en) * | 2019-11-27 | 2023-09-05 | 北京沃东天骏信息技术有限公司 | Method and device for transmitting audio data |
CN111641877A (en) * | 2020-06-04 | 2020-09-08 | 伟乐视讯科技股份有限公司 | Video gateway transmission method and system |
CN112738096A (en) * | 2020-12-29 | 2021-04-30 | 湖南博匠信息科技有限公司 | Efficient and reliable data transmission method and system |
CN115766519A (en) * | 2022-10-24 | 2023-03-07 | 株洲华通科技有限责任公司 | Data transmission method and system for portable communication equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105430320A (en) | Audio and video media data transmission method based on UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) | |
US9661657B2 (en) | TCP traffic adaptation in wireless systems | |
US20190268797A1 (en) | Data transmission method and apparatus | |
EP2601757B1 (en) | Method and apparatus for converting a multicast session to a unicast session | |
CN102006283B (en) | Data transmission method and device | |
CN110995697A (en) | Big data transmission method and system | |
CN106209915A (en) | A kind of real time flow medium radio transmitting method and system thereof | |
US8024788B2 (en) | Method and apparatus for reliable, high speed data transfers in a high assurance multiple level secure environment | |
CN102217258B (en) | Detection processing method, data sending terminal, data receiver and communication system | |
CN102694810B (en) | TCP ground acceleration method for satellite network | |
WO2023093879A1 (en) | Data transmission method and apparatus, device, and storage medium | |
KR101600060B1 (en) | Protocol booster for sctp in multicast networks | |
CN109067796A (en) | A kind of data transmission method and device | |
WO2016161594A1 (en) | Data transmission method and apparatus | |
US20060259845A1 (en) | Method and apparatus for acknowledging a bitwise data chunk in wireline and wireless communication systems | |
CN113824540B (en) | Multicast retransmission method, device, server and storage medium | |
CN105227276B (en) | A kind of peer-to-peer network data transmission method based on UDT | |
CN112994851B (en) | Method and device for supporting differentiated negotiable parallel data communication | |
CN116074401B (en) | Method for realizing transmission layer protocol on programmable exchanger | |
CN102904764A (en) | Data transmission device and transmission method thereof | |
US7738459B2 (en) | Method, system and apparatus for reliably transmitting packets of an unreliable protocol | |
Wang et al. | Applying PR-SCTP to transport SIP traffic | |
CN103107952A (en) | Method for preventing network packet loss of RTP media packets | |
CN115348336A (en) | Universal transmission architecture for heterogeneous data streams | |
WO2014100973A1 (en) | Video processing method, device and 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160323 |
|
RJ01 | Rejection of invention patent application after publication |