CN101499968A - Multimedia data transmission method and system - Google Patents

Multimedia data transmission method and system Download PDF

Info

Publication number
CN101499968A
CN101499968A CNA2008102415723A CN200810241572A CN101499968A CN 101499968 A CN101499968 A CN 101499968A CN A2008102415723 A CNA2008102415723 A CN A2008102415723A CN 200810241572 A CN200810241572 A CN 200810241572A CN 101499968 A CN101499968 A CN 101499968A
Authority
CN
China
Prior art keywords
udp
client
burrows
port
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008102415723A
Other languages
Chinese (zh)
Inventor
李福堂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship 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 Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CNA2008102415723A priority Critical patent/CN101499968A/en
Publication of CN101499968A publication Critical patent/CN101499968A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is applicable to the field of data transmission and provides a method for transmitting multimedia data and a system thereof. The method comprises the following steps: a client side obtains a punching UDP interception port sent by a server by an RTSP protocol and transmits a UDP punching data packet to the server by the obtained punching UDP interception port; according to the UDP punching data packet sent by the client port, the server obtains a private network address of the client side to receive the multimedia data and the corresponding relation between the port of the client side and the port of a transfer device, and then according to the obtained private network address and the corresponding relation, the multimedia data is transmitted to the transfer device by the UDP protocol; according to the private network address for the client side to receive the multimedia data and the corresponding relation, the transfer device transmits the multimedia data to the client side, thus greatly increasing the concurrency performance of the server.

Description

A kind of transmission method of multi-medium data and system
Technical field
The invention belongs to field of data transmission, relate in particular to a kind of transmission method and system of multi-medium data.
Background technology
At present, the protocol suite that fhe global the Internet adopted is a TCP/IP protocol suite, and IP is the network layer protocol in the TCP/IP protocol suite, is the core of this protocol suite; The version number of IP agreement is 4 at present, and the IP address is 32.Because the fast development of internet, the IP address resource is exhausted day by day, under IPV6 also far away can the situation of complete upgrading, have mode only with acting server, realization in-house network address and public network address are changed and realize to enter the Internet, the acting server of intermediation is a transferring equipment, promptly network address translation (Network Address Translation, NAT).
Video request program general using real-time streaming protocol on the internet (Real Time Streaming Protocol, RTSP) carry out interactive communication, utilize RTP (Real time Transport Protocol, RTP) encapsulation video/audio, RTSP is operated in tcp protocol layer, RTP is operated in User Datagram Protoco (UDP) (UserDatagram Protocol, UDP) layer, the situation that video request program on the internet is passed through by transferring equipment, video server (RTSP Server) places public network, has a public network address, and videoconference client (RTSPClient), be placed on private network as set-top box or player etc., it is connected to video server by a transferring equipment with public network address, obtains audio/video flow.
After the transferring equipment conversion, RTSP Server receives that the IP address of RTSP Client 1,2 all can change the public network address of transferring equipment into, just port is different, for example, the data that a certain port of client sends, after the transferring equipment conversion, what RTSP Server saw may be the data that a certain port in the transferring equipment sends; Equally, when RTSP Server sends to client to video data, also be a port that sends to transferring equipment earlier, 116.69.6.100:8000 port for example, and transferring equipment can send to client port to this IP bag.
Transferring equipment is carried out port translation automatically, the port translation operation all is transparent to RTSP Server and RTSP Client, and RTSP Client is when communicating by letter with RTSP Server, RTSP Client only notifies the private net address and the port at its place of RTSPServer, RTSP Server is on public network, obviously can't send to data on this RTSP Client private net address and the port, RTSP Server need know that the client that transferring equipment address that this RTSP Client private net address is corresponding with port and port could be correctly send to private network to data gets on.
Usually adopt RTP over RTSP (TCP) method to send multi-medium data, the connection of this data transmission method for uplink is that RTSP Client at first initiates, two-way link has been set up at the very start, and port translation is the transparent work of transferring equipment, can traffic impactingly not play.But adopt RTP over RTSP (TCP) method to send the concurrent performance that video/audio reduces RTSP Server, TCP keeps connecting, and consumption of natural resource is than using the UDP height.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of transmission method of multi-medium data, is intended to solve prior art and adopts RTP over RTSP (TCP) method to send multi-medium data, causes the problem of the concurrent performance reduction of RTSP Server.
The embodiment of the invention is achieved in that a kind of transmission method of multi-medium data, and described method comprises the steps:
Client is obtained the UDP listening port that burrows that server sends by the RTSP agreement, and sends the UDP packet that burrows by the described UDP listening port that burrows that obtains to described server;
The UDP that described server sends according to the described client packet that burrows, obtain private net address and the port of described client and the corresponding relation of transferring equipment port of described client receiving multimedia data, and, multi-medium data is sent to described transferring equipment by udp protocol according to described private net address that gets access to and corresponding relation;
Described transferring equipment is forwarded to described client according to the private net address and the corresponding relation of described client receiving multimedia data with described multi-medium data.
Another purpose of the embodiment of the invention is to provide a kind of transmission system of multi-medium data, and this system comprises client, server and transferring equipment:
Client is used for obtaining the UDP listening port that burrows that server sends by the RTSP agreement, and sends the UDP packet that burrows by the described UDP listening port that burrows that obtains to described server;
Server, be used for the packet that burrows according to the UDP that described client sends, obtain private net address and the port of described client and the corresponding relation of transferring equipment port of described client receiving multimedia data, and, multi-medium data is sent to described transferring equipment by udp protocol according to described private net address that gets access to and corresponding relation; And
Transferring equipment is used for private net address and corresponding relation according to described client receiving multimedia data, and the multi-medium data that described server is sent is transmitted to described client.
In the present invention, client sends the UDP packet that burrows by the UDP listening port that burrows that comprises in the improved RTSP agreement to server, server obtains the private net address of client receiving multimedia data and the corresponding relation of port and transferring equipment port according to this UDP packet that burrows, and according to private net address and corresponding relation, by udp protocol multi-medium data is sent to transferring equipment, transferring equipment is transmitted to client with multi-medium data, has improved the concurrent performance of server greatly.
Description of drawings
Fig. 1 is the realization schematic diagram of the transmission method of the multi-medium data that provides of the embodiment of the invention;
Fig. 2 is the block diagram of the transmission system of the multi-medium data that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Client sends the UDP packet that burrows by the UDP listening port that burrows that comprises in the improved RTSP agreement to server, server obtains the private net address of client receiving multimedia data and the corresponding relation of port and transferring equipment port according to this UDP packet that burrows, and according to this private net address and corresponding relation, server sends to transferring equipment by udp protocol with multi-medium data, and transferring equipment is transmitted to client with this multi-medium data.
In embodiments of the present invention, server sends the multi-medium data of user's program request to client by transferring equipment.
In embodiments of the present invention, Fig. 1 is the realization schematic diagram of the transmission method of the multi-medium data that provides of the embodiment of the invention, and its detailed step is as described below:
1, user end to server sends the request of obtaining the UDP listening port that burrows.
In embodiments of the present invention, carry RTSP session identification tag information (Session id) in the request that user end to server sends.
2, the server UDP listening port that will burrow sends to client.
In embodiments of the present invention, step 1 and 2 mutual by the RTSP protocol communication, the RTSP SETUP of RTSP agreement order comprises the burrow UDP listening port that burrows of packet of UDP that server receives client.
3, user end to server sends the packet that burrows.
In embodiments of the present invention, client sends three packets that burrow to server continuously, guarantees that server receives this packet that burrows, and wherein, the form of the packet that burrows is: NAT:Session id.
4, server is replied the OK packet that burrows to client.
5, the burrow session identification tag information of packet and the RTSP session identification tag information in the step 1 of the UDP that receives detected contrast.
In embodiments of the present invention, the session identification tag information of the packet that burrows and the RTSP session identification tag information in the step 1 are detected contrast, confirm as same Session, prevent that undelegated client from obtaining the multi-medium data resource that server sends.
6, according to the UDP packet that burrows, obtain the private net address of client receiving multimedia data and the corresponding relation of port and transferring equipment port.
In embodiments of the present invention,, revise Session information, the private network IP address port of the client that keeps among original Session is revised as corresponding transferring equipment public network IP address port according to the UDP packet that burrows.
In embodiments of the present invention, before the step of the corresponding relation of the private net address that obtains the client receiving multimedia data and port and transferring equipment port, also need between the server and client side, set up a communication port, this communication port is by the transferring equipment transfer, and transferring equipment is transparent to the server and client side.
7, server sends to the transferring equipment port with multi-medium data by udp protocol.
8, according to corresponding relation in the step 6, transferring equipment is transmitted to client with multi-medium data.
Fig. 2 is the block diagram of the transmission system of the multi-medium data that provides of the embodiment of the invention, for convenience of explanation, has only provided the part relevant with the embodiment of the invention among the figure.
The transmission system of the multi-medium data that the embodiment of the invention provides comprises client, transferring equipment and server, and client is obtained the UDP listening port that burrows by the RTSP agreement, and sends the UDP packet that burrows by the UDP listening port that burrows to server; According to this UDP packet that burrows, server obtains the private net address of client receiving multimedia data and the corresponding relation of port and transferring equipment port, and according to this corresponding relation, by udp protocol multi-medium data is sent to transferring equipment, transferring equipment is transmitted to client with this multi-medium data.
In embodiments of the present invention, obtain when burrowing the UDP listening port in client, the server and client side communicates by the RTSP agreement, and the RTSP SETUP of RTSP agreement order comprises the burrow UDP listening port that burrows of packet of UDP that server receives client.
In embodiments of the present invention, server receives UDP that client sends and burrows behind the packet, sends the OK packet that burrows to client, and the burrow session identification tag information of packet of UDP is detected, and prevents that undelegated client from obtaining multi-medium data.
In embodiments of the present invention, server receives UDP that client sends and burrows behind the packet, sets up communication port between the server and client side; Server sends to the transferring equipment port by UDP with multi-medium data; According to private net address and port, transferring equipment is forwarded to client with multi-medium data.
In embodiments of the present invention, client sends the UDP packet that burrows by the UDP listening port that burrows that comprises in the improved RTSP agreement to server, server obtains the private net address of client receiving multimedia data and the corresponding relation of port and transferring equipment port according to this UDP packet that burrows, and according to private net address and corresponding relation, server sends to transferring equipment by udp protocol and communication channel with multi-medium data, transferring equipment is transmitted to client with this multi-medium data, improved the concurrent performance of server greatly, and solved under the bad situation of client bandwidth, increase the problem of system delay.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is can control relevant hardware by program to finish, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1, a kind of transmission method of multi-medium data is characterized in that, described method comprises the steps:
Client is obtained the UDP listening port that burrows that server sends by the RTSP agreement, and sends the UDP packet that burrows by the described UDP listening port that burrows that obtains to described server;
The UDP that described server sends according to the described client packet that burrows, obtain private net address and the port of described client and the corresponding relation of transferring equipment port of described client receiving multimedia data, and, multi-medium data is sent to described transferring equipment by udp protocol according to described private net address that gets access to and corresponding relation;
Described transferring equipment is forwarded to described client according to the private net address and the corresponding relation of described client receiving multimedia data with described multi-medium data.
2, the method for claim 1 is characterized in that, the RTSP SETUP of described RTSP agreement order comprises the burrow UDP listening port that burrows of packet of UDP that described server receives described client.
3, the method for claim 1, it is characterized in that, described client is obtained the UDP listening port that burrows by the RTSP agreement, and sends UDP by the described UDP listening port that burrows that obtains to server and burrow and also comprise the steps: after the step of packet
Described server sends the OK packet that burrows to described client after the UDP that receives described client transmission burrows packet;
The session identification tag information of packet of burrowing the UDP that described server sends described client detects.
4, the method for claim 1 is characterized in that, and is described according to described private net address that gets access to and corresponding relation, by udp protocol the step that multi-medium data sends to described transferring equipment specifically comprised the steps:
Set up the communication port between the described server and client side;
Described server sends to the transferring equipment port by the communication port and the udp protocol of described foundation with multi-medium data.
5, a kind of transmission system of multi-medium data is characterized in that, described system comprises client, server and transferring equipment:
Client is used for obtaining the UDP listening port that burrows that server sends by the RTSP agreement, and sends the UDP packet that burrows by the described UDP listening port that burrows that obtains to described server;
Server, be used for the packet that burrows according to the UDP that described client sends, obtain private net address and the port of described client and the corresponding relation of transferring equipment port of described client receiving multimedia data, and, multi-medium data is sent to described transferring equipment by udp protocol according to described private net address that gets access to and corresponding relation; And
Transferring equipment is used for private net address and corresponding relation according to described client receiving multimedia data, and the multi-medium data that described server is sent is transmitted to described client.
6, system as claimed in claim 5 is characterized in that, the RTSP SETUP of described RTSP agreement order comprises the burrow UDP listening port that burrows of packet of UDP that described server receives described client.
7, system as claimed in claim 5, it is characterized in that, the UDP that receives the transmission of described client burrows behind the packet, described server also is used for sending the OK packet that burrows to described client, and the burrow session identification tag information of packet of the UDP that described client sends is detected.
8, system as claimed in claim 5 is characterized in that, sets up communication port between described server and client side.
9, system as claimed in claim 8 is characterized in that, described server sends to the transferring equipment port by the communication channel and the udp protocol of described foundation with multi-medium data.
CNA2008102415723A 2008-12-26 2008-12-26 Multimedia data transmission method and system Pending CN101499968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102415723A CN101499968A (en) 2008-12-26 2008-12-26 Multimedia data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102415723A CN101499968A (en) 2008-12-26 2008-12-26 Multimedia data transmission method and system

Publications (1)

Publication Number Publication Date
CN101499968A true CN101499968A (en) 2009-08-05

Family

ID=40946854

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102415723A Pending CN101499968A (en) 2008-12-26 2008-12-26 Multimedia data transmission method and system

Country Status (1)

Country Link
CN (1) CN101499968A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158884A (en) * 2014-08-20 2014-11-19 北京比邻在线信息技术有限公司 Voice communication method based on mobile Internet
CN104426833A (en) * 2013-08-19 2015-03-18 北大方正集团有限公司 Method and system for realizing teaching communication based on UDP
CN104768076A (en) * 2014-01-06 2015-07-08 腾讯科技(北京)有限公司 Video playing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426833A (en) * 2013-08-19 2015-03-18 北大方正集团有限公司 Method and system for realizing teaching communication based on UDP
CN104768076A (en) * 2014-01-06 2015-07-08 腾讯科技(北京)有限公司 Video playing method and device
CN104768076B (en) * 2014-01-06 2019-05-03 腾讯科技(北京)有限公司 Video broadcasting method and device
CN104158884A (en) * 2014-08-20 2014-11-19 北京比邻在线信息技术有限公司 Voice communication method based on mobile Internet
CN104158884B (en) * 2014-08-20 2018-02-23 北京比邻在线信息技术有限公司 Voice communication method based on mobile internet

Similar Documents

Publication Publication Date Title
US10034058B2 (en) Method and apparatus for distributing video
CN103581699B (en) Video playing method, streaming media server and streaming media playing system
US8942678B2 (en) Content distributing system, content distributing apparatus, terminal device and content distributing method
US20090106394A1 (en) Method of establishing a tunnel between network terminal devices passing through firewall
CN101309203B (en) Network media service method
US20090222576A1 (en) Method and apparatus for reducing power consumption of a network communication device receiving streaming content via an ip-based network
CN102882865B (en) The method of multimedia agency service control is realized based on socks5 agency agreement
WO2012074777A1 (en) Method and apparatus for distributing video
CN107819809A (en) The method and device of operation is synchronized to content
Bielievtsov et al. Network Technology for Transmission of Visual Information.
US9425975B2 (en) Multicast transmission using a unicast protocol
CN101499968A (en) Multimedia data transmission method and system
CN101515934B (en) Method, device and communication system for forwarding scalable video coded data message
CN101453474B (en) Terminal, information inserting system and method
CN109698859B (en) Data storage method and device based on video network
US8549160B2 (en) Personal media relay for rebroadcasting streaming data
CN101465858B (en) Method for implementing private network penetration of monitoring business, network appliance and server
CN101212332A (en) Stream recording method, apparatus and system
EP4060964A1 (en) Method and apparatus for processing multicast signal
CN101977306A (en) Two-way video monitoring method and system
CN110086772B (en) Method and system for acquiring monitoring video
RU2013127119A (en) OPTIMIZATION OF MULTIMEDIA IN REAL TIME DURING REMOTE SESSIONS
CN101179502A (en) Method and system for forwarding stream media
KR102272335B1 (en) Method and server for providing contents through udp based multicast and user device
US8484717B2 (en) Accessing method and multimedia system using thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1135811

Country of ref document: HK

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090805

REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1135811

Country of ref document: HK