CN101179502A - Method and system for forwarding stream media - Google Patents

Method and system for forwarding stream media Download PDF

Info

Publication number
CN101179502A
CN101179502A CNA2007101793918A CN200710179391A CN101179502A CN 101179502 A CN101179502 A CN 101179502A CN A2007101793918 A CNA2007101793918 A CN A2007101793918A CN 200710179391 A CN200710179391 A CN 200710179391A CN 101179502 A CN101179502 A CN 101179502A
Authority
CN
China
Prior art keywords
relay server
client
media
medium data
stream medium
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
CNA2007101793918A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2007101793918A priority Critical patent/CN101179502A/en
Publication of CN101179502A publication Critical patent/CN101179502A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a system and a method for forwarding stream media data, which realize crossing of a private network by adding a relay server positioned at a public network between a client-side and a forwarding server; therefore, no matter whether the client-side and the relay server are in different private networks, the delay server is capable of requesting the stream media data from a media source toward the relay server and forwarding the stream media data to the client-side. Obviously, the reliability of stream media communications for the client-side is improved, thereby effectively increasing satisfaction degree of the user.

Description

A kind of repeater system of stream medium data and retransmission method
Technical field
The present invention relates to the communication data retransmission technique, be specifically related to a kind of repeater system and retransmission method of stream medium data.
Background technology
In the Streaming Media structure that adopts user terminal/server framework, for alleviating the pressure of streaming media server, be provided with forwarding (Relay) server between client and source of media, this Relay server is responsible for the stream medium data from source of media is offered client.
At present, source of media and client all are deployed in the private network usually.When practical application, if the Relay server lays respectively in the different private networks with client, just can't successfully establish a communications link between client and the Relay server so, so client can't be obtained required stream medium data from source of media by the Relay server.
Obviously, exist client can't normally obtain the situation of stream medium data from source of media at present, this has obviously reduced the reliability that client is carried out streaming media communication, has reduced user satisfaction.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of repeater system and retransmission method of stream medium data, carries out the reliability of streaming media communication to improve client, improves user satisfaction.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of repeater system of stream medium data, this system comprises client, Relay Server, Relay server, the source of media that links to each other successively; Wherein,
Described client is used for establishing a communications link with described Relay Server, and to this Relay Server request stream medium data;
Described Relay server is used for establishing a communications link with described Relay Server, and the stream medium data that provides described client to ask to described Relay Server;
Described source of media is used for providing stream medium data to described Relay server;
Described Relay Server is used for according to described the communicating to connect of setting up with client, Relay server, for client provides stream medium data.
Described Relay Server is a streaming media server, is arranged at public network.
Described source of media further links to each other with registrar.
A kind of retransmission method of stream medium data adds Relay Server between client of carrying out streaming media communication and Relay server; This method comprises:
Described client and described Relay server all establish a communications link with described Relay Server; This Relay Server is based on described the communicating to connect of setting up, for client provides stream medium data.
The method that described client and described Relay Server establish a communications link is:
Client is set up flow media session with Relay Server and is connected.
The method that described Relay server and described Relay Server establish a communications link is:
Setting up signaling between Relay server and Relay Server is connected.
Described Relay server further establishes a communications link with source of media.
Describedly be for client provides the method for stream medium data:
Described Relay Server receives by described Relay server will be the stream medium data that client provided, and this stream medium data is sent to this client;
Perhaps, the source of media request stream medium data that described Relay Server is connected to described Relay server, the stream medium data that this source of media is asked Relay Server sends to Relay Server by the Relay server, and the described stream medium data that Relay Server will be received sends to described client.
This method further comprises:
Described Relay Server is defined as described client provides the source of media of stream medium data to set up communicating to connect of support streaming media communication with described Relay server as yet, and Relay Server sends the message that comprises the failure sign to this client.
The described Relay Server that adds is positioned at public network.
As seen, the repeater system of stream medium data provided by the present invention and retransmission method owing to set up the Relay Server that is positioned at public network between client and Relay server, have been realized passing through private network; Therefore, no matter whether client is positioned at different private networks with the Relay server, and this Relay Server all can be to the stream medium data of Relay server requests from source of media, and this stream medium data is transmitted to client.
Obviously, the reliability that client is carried out streaming media communication is significantly improved, and then user satisfaction is effectively improved.
Description of drawings
Fig. 1 is the repeater system figure of the stream medium data of one embodiment of the invention;
Fig. 2 is the forwarding process figure of the stream medium data of one embodiment of the invention;
Fig. 3 is the forwarding process sketch of stream medium data of the present invention.
Embodiment
Below in conjunction with accompanying drawing the technology of the present invention is described in detail.
Referring to Fig. 1, Fig. 1 is the repeater system figure of the stream medium data of one embodiment of the invention.Among Fig. 1, client, Relay Server, Relay server, source of media link to each other successively.Wherein, Relay Server is the streaming media server of setting up between client and Relay server, is arranged at usually in the public network such as internet, to realize passing through private network.
During concrete the application, at first between source of media and Relay server, set up signaling and be connected with flow media session and be connected, between Relay server and Relay Server, set up signaling again and be connected.At this moment, client just can set up and Relay Server between flow media session, and to Relay Server request stream medium data; This, Relay Server just can based on and the Relay server between communicate to connect, request is from the stream medium data of source of media, and this stream medium data is transmitted to client.
Particularly, the signaling of between source of media and Relay server, setting up be connected can have multiple, as: transmission control protocol (TCP) connects.And, source of media be connected with signaling between the Relay server set up after, can carry out the transmitting-receiving of keep-alive information between source of media and the Relay server, to keep the smoothness that source of media is connected with signaling between the Relay server always.
Setting up the method that described flow media session connects between source of media and Relay server is generally: source of media sends real time streaming protocol (rtsp) announcement (ANNOUNCE) message that comprises the Session Description Protocol relevant with subsequent session (SDP) information to the Relay server, and the SDP information (can be stored in the internal memory or with file mode and be stored in other position) that the preservation of Relay server is received is also returned response (Response) message to source of media; Source of media sends to the Relay server and sets up (RTSP SETUP) message, and the Relay server returns Response message to source of media; Source of media sends RTSP record (RECORD) message to the Relay server, and the Relay server returns Response message to source of media.
The form of RTSPANNOUNCE message is generally:
ANNOUNCE?rtsp://<RelaySvr?ip>/<codec?guid>.sdp;Method=TCP;<CodecIP>;<rtsp?port>;Resolution=CIF;...
Wherein,<RelaySvr ip〉be Internet protocol (IP) address of Relay server,<codec guid〉be the GUID (GUID) of source of media, " Method=TCP " is used to specify the streaming media data transmission mode,<Code IP〉be the IP address of source of media,<rtsp port〉be the RTSP serve port that source of media provides, " Resolution=CIF " is used to specify the form of stream medium data.
Usually, the Relay server can send to Relay Server with set up the GUID that signaling is connected the source of media that is connected with flow media session with self,, set up signaling and be connected with flow media session and be connected the sign of this Relay server and corresponding preservation of described GUID of receiving by Relay Server to confirm described Relay server and described source of media.In addition, source of media also periodically sends RTSP option (OPTIONS) message to the Relay server, and accept the corresponding return value (this return value is contained in the Response message usually) that the Relay server returns, safeguard that according to this return value source of media is connected smoothness with signaling between the Relay server again.
The signaling of between Relay server and Relay Server, setting up be connected can have multiple, as: TCP connects.Flow media session between client foundation and the Relay Server, and to the method for Relay Server request stream medium data be: client sends the RTSP that comprises GUID (can regard requested GUID as) to Relay Server and describes (DESCRIBE) message, Relay Server obtains GUID from the RTSP DESCRIBE message of receiving, in the GUID that self preserves, search this GUID, and when finding this GUID (if do not find this GUID, Relay Server determines that then the pairing source of media of this GUID can't provide streaming media service to client at present, and then return the Response message that comprises failure sign to client, and no longer carry out subsequent operation) determine that the pairing source of media of this GUID has been set up with the Relay server and support communicating to connect of streaming media communication, and then return to client and to comprise the successfully Response message of sign.
Receive from Relay Server comprise successfully the Response message of sign the time, client sends RTSP SETUP message to Relay Server, Relay Server returns Response message to client; Client sends RTSP to Relay Server and plays (PLAY) message, and Relay Server returns Response message to client.
The Relay Server request from the stream medium data of source of media and the method that is transmitted to client is: Relay Server sends RTSP to the pairing Relay server of requested GUID parameter (SET_PARAMETER) message is set, this RTSP SET_PARAMETER forwards that the Relay server will be received is given corresponding source of media, and returns Response message to Relay Server.Receive that the source of media of described RTSP SET_PARAMETER message returns Response message to the Relay server, also to support real-time application host-host protocol/send stream medium data based on modes such as the RTCP Real-time Transport Control Protocol (RTP/RTCP OVER UDP) of User Datagram Protoco (UDP) or RTP/RTCP OVER TCP.The Relay server receives the stream medium data from source of media, and the stream medium data of receiving is transmitted to client in the mode of supporting RTP/RTCP by Relay Server.
Need to prove, before sending described RTSP SET_PARAMETER message, if Relay Server has received the stream medium data that client is asked by the Relay server, the described stream medium data that then directly will receive of Relay Server sends to client so, and no longer carries out the subsequent operations such as transmission of RTSPSET_PARAMETER message.
In actual applications, except using RTSP, RTP, RTCP transport stream media data, can also use FTP, HTTP transport stream media data.And when source of media was fixed network side source of media, source of media can link to each other with the Relay server by communication networks such as internet; When source of media was mobile side source of media, source of media can be passed through base station (BS), packet data serving node (PDSN) links to each other with the Relay server.In like manner, when client was fixed clients, client can link to each other with the Relay server by fixed communication network; When client was mobile client, source of media can be passed through BS, PDSN and link to each other with the Relay server.
In addition, source of media can also link to each other with registrar (RGM), by the management functions such as registration of RGM realization to source of media.Have, in the fixed network side, streaming media data transmission realizes by UDP usually again; In mobile side, streaming media data transmission realizes by TCP usually.
By as seen,, realized passing through to private network owing between client and Relay server, set up the Relay Server that is positioned at public network at the description of Fig. 1; Therefore, no matter whether client is positioned at different private networks with the Relay server, and this Relay Server all can be to the stream medium data of Relay server requests from source of media, and this stream medium data is transmitted to client.Obviously, the reliability that client is carried out streaming media communication is significantly improved, and then user satisfaction is effectively improved.
Referring to Fig. 2, Fig. 2 is the forwarding process figure of the stream medium data of one embodiment of the invention, and this flow process may further comprise the steps:
Step 201: between source of media and Relay server, set up signalings such as TCP is connected and connect.
Step 202: source of media sends the RTSPANNOUNCE message that comprises the SDP information relevant with subsequent session to the Relay server.
Step 203:Relay server is preserved the SDP information (can be stored in the internal memory or with file mode and be stored in other position) receive and is returned Response message to source of media.
Step 204: source of media sends RTSP SETUP message to the Relay server.
Step 205:Relay server returns Response message to source of media.
Step 206: source of media sends RTSP RECORD message to the Relay server.
Step 207:Relay server returns Response message to source of media.
Step 208: source of media periodically sends RTSP OPTIONS message to the Relay server.
Step 209:Relay server returns the Response message that comprises return value to source of media; Source of media safeguards that according to described return value self is connected smoothness with signaling between the Relay server.
Usually, the Relay server can send to Relay Server with set up the GUID that signaling is connected the source of media that is connected with flow media session with self,, set up signaling and be connected with flow media session and be connected the sign of this Relay server and corresponding preservation of described GUID of receiving by Relay Server to confirm described Relay server and described source of media.
Step 210: between Relay server and Relay Server, set up signalings such as TCP is connected and connect.
Step 211: client sends the RTSP DESCRIBE message that comprises GUID (can regard requested GUID as) to Relay Server.
Step 212: Relay Server obtains GUID from the RTSP DESCRIBE message of receiving, in the GUID that self preserves, search this GUID, and it is (certain when finding this GUID, if do not find this GUID, Relay Server determines that then the pairing source of media of this GUID can't provide streaming media service to client at present, and then return the Response message that comprises failure sign to client, and no longer carry out subsequent operation) determine that the pairing source of media of this GUID has been set up with the Relay server and support communicating to connect of streaming media communication, and then return to client and to comprise the successfully Response message of sign.
Step 213: receive from Relay Server comprise successfully the Response message of sign the time, client sends RTSP SETUP message to Relay Server.
Step 214: Relay Server returns Response message to client.
Step 215: client sends RTSP PLAY message to Relay Server.
Step 216: Relay Server returns Response message to client.
Step 217: Relay Server sends RTSPSET_PARAMETER message to the pairing Relay server of requested GUID.
Certainly, before sending described RTSP SET_PARAMETER message, if Relay Server has received the stream medium data that client is asked, the described stream medium data that then directly will receive of Relay Server sends to client so, and not in the subsequent operations such as transmission of carrying out RTSP SET_PARAMETER message.
Step 218 to step 219:Relay server is given corresponding source of media with the RTSP SET_PARAMETER forwards of receiving, and returns Response message to Relay Server.
Step 220: the source of media of receiving described RTSP SET_PARAMETER message is returned Response message to the Relay server.
Step 221: source of media sends stream medium data to support modes such as RTP/RTCP OVER UDP or RTP/RTCP OVER TCP.
Step 222 to step 223:Relay server receives the stream medium data from source of media, and the stream medium data of receiving is transmitted to client in the mode of supporting RTP/RTCP by Relay Server.
In conjunction with description, can briefly show stream medium data forwarding process of the present invention with Fig. 3 at Fig. 1, Fig. 2.Referring to Fig. 3, Fig. 3 is the forwarding process sketch of stream medium data of the present invention, and this flow process may further comprise the steps:
Step 301: between client and Relay server, add Relay Server.
Step 302: client and Relay server all establish a communications link with Relay Server.
Step 303: Relay Server is based on described the communicating to connect of setting up, for client provides stream medium data.
By the above as seen, system and method for the present invention owing to set up the Relay Server that is positioned at public network between client and Relay server, has been realized passing through private network; Therefore, no matter whether client is positioned at different private networks with the Relay server, and this Relay Server all can be to the stream medium data of Relay server requests from source of media, and this stream medium data is transmitted to client.Obviously, the reliability that client is carried out streaming media communication is significantly improved, and then user satisfaction is effectively improved.

Claims (10)

1. the repeater system of a stream medium data is characterized in that, this system comprises client, Relay Server, forwarding Relay server, the source of media that links to each other successively; Wherein,
Described client is used for establishing a communications link with described Relay Server, and to this Relay Server request stream medium data;
Described Relay server is used for establishing a communications link with described Relay Server, and the stream medium data that provides described client to ask to described Relay Server;
Described source of media is used for providing stream medium data to described Relay server;
Described Relay Server is used for according to described the communicating to connect of setting up with client, Relay server, for client provides stream medium data.
2. system according to claim 1 is characterized in that described Relay Server is a streaming media server, is arranged at public network.
3. system according to claim 1 and 2 is characterized in that described source of media further links to each other with registrar.
4. the retransmission method of a stream medium data is characterized in that, adds Relay Server between client of carrying out streaming media communication and Relay server; This method comprises:
Described client and described Relay server all establish a communications link with described Relay Server; This Relay Server is based on described the communicating to connect of setting up, for client provides stream medium data.
5. method according to claim 4 is characterized in that, the method that described client and described Relay Server establish a communications link is:
Client is set up flow media session with Relay Server and is connected.
6. method according to claim 4 is characterized in that, the method that described Relay server and described Relay Server establish a communications link is:
Setting up signaling between Relay server and Relay Server is connected.
7. method according to claim 4 is characterized in that, described Relay server further establishes a communications link with source of media.
8. according to claim 4 or 7 described methods, it is characterized in that, describedly be for client provides the method for stream medium data:
Described Relay Server receives by described Relay server will be the stream medium data that client provided, and this stream medium data is sent to this client;
Perhaps, the source of media request stream medium data that described Relay Server is connected to described Relay server, the stream medium data that this source of media is asked Relay Server sends to Relay Server by the Relay server, and the described stream medium data that Relay Server will be received sends to described client.
9. according to each described method of claim 4 to 6, it is characterized in that this method further comprises:
Described Relay Server is defined as described client provides the source of media of stream medium data to set up communicating to connect of support streaming media communication with described Relay server as yet, and Relay Server sends the message that comprises the failure sign to this client.
10. method according to claim 4 is characterized in that, the described Relay Server of interpolation is positioned at public network.
CNA2007101793918A 2007-12-12 2007-12-12 Method and system for forwarding stream media Pending CN101179502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101793918A CN101179502A (en) 2007-12-12 2007-12-12 Method and system for forwarding stream media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101793918A CN101179502A (en) 2007-12-12 2007-12-12 Method and system for forwarding stream media

Publications (1)

Publication Number Publication Date
CN101179502A true CN101179502A (en) 2008-05-14

Family

ID=39405593

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101793918A Pending CN101179502A (en) 2007-12-12 2007-12-12 Method and system for forwarding stream media

Country Status (1)

Country Link
CN (1) CN101179502A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437036B (en) * 2008-12-22 2012-08-29 北京中企开源信息技术有限公司 Document transmission method and system capable of supporting NAT/firewall traversing
CN103152444A (en) * 2013-03-25 2013-06-12 华为技术有限公司 Network address translation and message transmission method, device and system of trunking scheme
CN116708381A (en) * 2023-08-04 2023-09-05 腾讯科技(深圳)有限公司 Cross-network data transmission method and device, storage medium and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437036B (en) * 2008-12-22 2012-08-29 北京中企开源信息技术有限公司 Document transmission method and system capable of supporting NAT/firewall traversing
CN103152444A (en) * 2013-03-25 2013-06-12 华为技术有限公司 Network address translation and message transmission method, device and system of trunking scheme
CN103152444B (en) * 2013-03-25 2016-08-03 华为技术有限公司 The network address translation of trunking scheme and message transmitting method and device, system
CN116708381A (en) * 2023-08-04 2023-09-05 腾讯科技(深圳)有限公司 Cross-network data transmission method and device, storage medium and electronic equipment
CN116708381B (en) * 2023-08-04 2023-11-14 腾讯科技(深圳)有限公司 Cross-network data transmission method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
EP3311534B1 (en) Method and apparatus for multipath media delivery
US7996543B2 (en) Client-to-client direct RTP exchange in a managed client-server network
AU2013207642B2 (en) Wireless communication system for offline participation in a display session
CN101674228B (en) Method, device and system for realizing streaming media communication
US7953123B2 (en) Method and system for controlling the establishment of communications channels for allowing transmission of multimedia information
EP2005714A2 (en) Fast handover using sip
JP2011502381A (en) Method of passing through a SIP signal message address translation device by temporary use of the TCP transport protocol
US20150341705A1 (en) Network content delivery method using a delivery helper node
CN105580338A (en) Presence and on-device proxying
EP2109285A1 (en) Conference system and method
CN102215276A (en) Video monitoring system and method of media traverse of network address translation equipment
CN101179480B (en) Method for forwarding stream media
US20130290517A1 (en) Nat traversal under tcp for real time streaming protocol
WO2009039891A1 (en) Method of controlling a communication device
GB2408409A (en) Speech quality control in internet protocol communications
CA2840972C (en) Communication system for establishing a real-time communication session
CN101094159B (en) Method for penetrating through private network of media stream
CN101179502A (en) Method and system for forwarding stream media
US20120023224A1 (en) Method and system for measuring individual network round-trip delays in ip gateways
JP4868606B2 (en) Streaming transmission control method
US8843583B2 (en) Method and system for allowing a client device to receive service when an IP multimedia gateway does not possess a capability to provide the service
Costa et al. A p2p architecture to support mobile real-time multimedia communications
EP1879361A1 (en) Fast handover using sip
JP4790067B2 (en) IP network system, gateway device and IP device
Bányász et al. VoIP Mobility Issues

Legal Events

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

Open date: 20080514