CN101094159B - Method for penetrating through private network of media stream - Google Patents
Method for penetrating through private network of media stream Download PDFInfo
- Publication number
- CN101094159B CN101094159B CN200710138984XA CN200710138984A CN101094159B CN 101094159 B CN101094159 B CN 101094159B CN 200710138984X A CN200710138984X A CN 200710138984XA CN 200710138984 A CN200710138984 A CN 200710138984A CN 101094159 B CN101094159 B CN 101094159B
- Authority
- CN
- China
- Prior art keywords
- forwarding
- media
- stream
- client
- private network
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000000149 penetrating effect Effects 0.000 title claims description 20
- 230000005540 biological transmission Effects 0.000 claims abstract description 31
- 230000004044 response Effects 0.000 claims description 5
- 238000004321 preservation Methods 0.000 claims description 4
- 230000002452 interceptive effect Effects 0.000 claims description 2
- 230000002596 correlated effect Effects 0.000 abstract 2
- 230000000875 corresponding effect Effects 0.000 abstract 1
- 239000012467 final product Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000004353 relayed correlation spectroscopy Methods 0.000 description 1
- 238000010561 standard procedure Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method comprises: the media relay source at private network side actively establishes a transmission link with the relay server; said relay server saves the correlated relation between the media relay source and said transmission link; after receiving the stream service request from client side, according to correlated relation between pre-saved media relay source and transmission link; finding out the transmission link corresponding to the media relay source, and combining new stream media request; said media relay server transmits new stream service request to the media relay source, and establishes the stream media session with the media relay source, and based on the established transmission link, receives and saves the stream media data from the media relay source, and transmits the stream media data to client side.
Description
Technical field
The present invention relates to multimedia technology field, be specifically related to a kind of method of penetrating through private network of media stream.
Background technology
Along with development of internet technology, a kind of new medium technique arises at the historic moment, stream media technology that Here it is.Streaming Media is meant the continuous time-base media that uses the stream transmission technology in network, as audio frequency, video or multimedia file.The stream service can provide continual audio/video flow to the user, satisfies the online dynamically audio-visual demand of watching of user, and stream media technology is used greatly in media-on-demand field and medium living broadcast field.This type of stream media system adopts C/S (client/server) framework usually, and as the stream service providers, streaming media server is the application bottleneck of system.For alleviating the pressure of streaming media server, introduce the load that Relay (forwarding) server is shared streaming media server at stream media system, stream medium data on the forwarding server cache flow media server, so a part of user can visit the data of streaming media server by the visit forwarding server.
Yet there is following shortcoming in this method of transmitting by forwarding server: when forwarding media source at private network, forwarding server is when public network, forwarding server can't be asked forwarding media source, and causes serv-fail.
Summary of the invention
In order to overcome problems of the prior art, the present invention proposes a kind of method of penetrating through private network of media stream, to realize the forwarding of forwarding server to the Media Stream that is positioned at the private network forwarding media source.。
The present invention specifically is achieved in that
A kind of method of penetrating through private network of media stream, carry out following processing:
The forwarding media source that is in private network side is initiatively set up transmissions links to forwarding server;
Described forwarding server is preserved forwarding media source transmissions links corresponding relation therewith;
Described forwarding server according to the forwarding media source of prior preservation and the corresponding relation of transmissions links, finds the transmissions links corresponding with forwarding media source and forms new stream service request after accepting client stream service request;
Described forwarding server sends new stream service request to forwarding media source, sets up the flow media session with forwarding media source, and receives and preserve the stream medium data of forwarding media source based on the transmissions links of setting up, and is forwarded to client.
Further, after described forwarding server is accepted client stream service request, comprise that one judges that whether forwarding server set up the step of transmissions links with forwarding media source.
Further, described judge that whether forwarding server has set up the step of transmissions links with forwarding media source after, comprise that a forwarding server resolves the step of the desired forwarding media source information of client.
Further, described forwarding server is preserved after the stream medium data of the forwarding media source that receives, and before being forwarded to client, comprises that one need to judge whether the step of forwarding stream media data to client based on number of clients.
Further, described forwarding server is preserved the stream medium data of the forwarding media source that receives, and is forwarded between the client, comprises the steps:
Described forwarding server will with the interactive information of the session of forwarding media source, send to client as client stream service request response;
Described client is set up flow media session with forwarding server after receiving the stream service request response.
Further, the method for described penetrating through private network of media stream comprises step: described forwarding server is when receiving the stream medium data of the same forwarding media source of another client-requested, and directly the stream medium data with the forwarding media source preserved is forwarded to client.
Further, between described forwarding server and the forwarding media source transmissions links based on Transmission Control Protocol.
Compared with prior art, the method for a kind of penetrating through private network of media stream of the present invention on the one hand, adopts source of media initiatively to connect to forwarding server, has guaranteed that the source of media that is positioned at private network can realize transmitting; On the other hand, changed traditional forwarding service procedure, will penetrate connection and be connected with multiplexing one of private network side transmission of flow media data; Again, when the request of client, just transmit relevant source of media data, saved bandwidth.
Description of drawings
Fig. 1 is the method applied environment deployment diagram of a kind of penetrating through private network of media stream of the present invention;
Fig. 2 is the flow chart of penetrating through private network of media stream of the present invention.
Embodiment
In the concrete enforcement environment as shown in Figure 1, forwarding server (being the QTSS RELAY among Fig. 1) is in the public network side, and encoder is transmitted the source as medium, is in private network side.
Monitor terminal among Fig. 1 can also can be fixed terminal for portable terminal as the client of the service of transmitting.Client can connect forwarding server by mobile network or fixed network.Forwarding server can also can be transmitted the stream medium data in source by fixed network request medium by the mobile network.Encoder is can the response flow request, and the equipment of stream medium data is provided.
In the present embodiment, fixed clients will be by the encoder data of forwarding server request mobile network side.For making present embodiment have more illustrative, the Media Stream of fixed terminal and forwarding server is by UDP transmission (common RTSP stream), forwarding server with at the Media Stream of the encoder (forwarding source) of mobile network's side by TCP transmission (following the RTSP agreement, i.e. RTP/RTCP over TCP mode).Certainly, under the situation that does not deviate from spirit of the present invention and essence thereof, those of ordinary skill in the art also can realize monitor terminal and forwarding server by other transmission meanss, or the transmission of the Streaming Media between forwarding server and the encoder (forwarding source).
As shown in Figure 2, the concrete implementation step of the method for a kind of penetrating through private network of media stream of the present invention is as follows:
Step 201, the encoder that is in private network side are initiatively set up a TCP link to forwarding server.
Step 202, forwarding server are preserved this TCP link and are transmitted the corresponding relation in source with medium.
Step 203, monitor terminal send the forwarding flow request to forwarding server, and stream request form is followed the RTSP stream request form of standard, can add control information in the stream request, by server and unified the getting final product of determining of client.The stream request is in this enforcement: rtsp: //<RelaySvr ip 〉/<codec guid〉.sdp; Method=TCP;<Codec IP 〉;<rtsp port 〉;<URL 〉; Wherein<and RelaySvr ip〉be the IP address of Relay server,<codec guid〉be the uniqueness mark of encoder, Method=TCP specifies between Relay server and forwarding source and transmits data by RTP/RTCP over TCP mode,<Code IP〉be the IP address of encoder,<rtsp port〉the RTSP serve port that provides for encoder,<URL〉be particular content to the encoder request, can be sky.
After step 204, forwarding server are received the forwarding flow request that monitor terminal sends, judge whether to have set up and link with encoder (forwarding source).If set up link then directly arrive step 205, otherwise analyze wherein information, parse encoder information that monitor terminal requires, do following 2 processing:
According to encoder information find previous preservation, the TCP corresponding with encoder link.
2. form new RTSP request rtspt: //<codec ip 〉:<rtsp port 〉/<URL〉..., wherein rtspt shows that request adopts the mode of RTP/RTCP over TCP to transmit data.
Step 205, forwarding server utilize this new RTSP request, and the TCP link by previous foundation is set up the session based on RTP/RTCP over TCP to encoder request stream medium data.This process is that standard procedure can be with reference to rfc 2326 documents " RFC 2326-Real Time Streaming Protocol (RTSP) ".Forwarding server needs the SDP information of preservation and encoder (forwarding source) in the process of this step, receive and preserve the stream medium data of encoder.
Step 206, forwarding server will with the session SDP information of encoder, send to monitor terminal as RTSP Describe request responding.After monitor terminal receives RTSP Describe request responding, follow the requirement of RTSP standard agreement RTP/RTCP over UDP, continue to set up the RTSP/SDP/RTP/RTCP flow media session by RTSP Setup, RTSPPlay method and forwarding server.
After the medium streaming session of step 207, forwarding server and client was set up, forwarding server sent to monitor terminal with the media data of the encoder of buffer memory, and monitor terminal just can be visited the media data of encoder like this.
Wherein, in step 205, the method that forwarding server is preserved session SDP information has two kinds: the one, this information is kept in the local file, and in case system restarts, can also obtain information by reading local file; Another kind is directly this SDP information to be kept in the internal memory, and this mode is no longer obtained after system restarts;
Wherein, in step 206, when the number of clients of encoder was 0, the forwarding server automatic disconnection was connected with encoder, the action of repeating step 203 when waiting for the request comes of new client.
When a plurality of monitor terminal request one and same coding device, if being connected with the TCP of encoder, sets up forwarding server, forwarding server directly sends to monitor terminal with the stream medium data of encoder and gets final product, and does not need to set up new stream again with encoder and is connected, and saves the network bandwidth.
Certainly, implementation model of the present invention not only is suitable for the method with the RTSP/RTP/RTCP transport stream, and by simple deformation, forwarding server also can dynamically be transmitted the data that other network transmission protocols such as using FTP/HTTP transmit.
Compared with prior art, the method for penetrating through private network of media stream disclosed by the invention on the one hand, adopts source of media initiatively to connect to forwarding server, has guaranteed that the source of media that is positioned at private network can realize transmitting; On the other hand, changed traditional forwarding service procedure, will penetrate connection and be connected with multiplexing one of private network side transmission of flow media data; Again, when the request of client, just transmit relevant source of media data, saved bandwidth.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (8)
1. the method for a penetrating through private network of media stream is characterized in that:
The forwarding media source that is in private network side is initiatively set up transmissions links to forwarding server;
Described forwarding server is preserved forwarding media source transmissions links corresponding relation therewith;
After described forwarding server is accepted client stream service request, according to the forwarding media source of prior preservation and the corresponding relation of transmissions links, find the transmissions links corresponding with forwarding media source and form new stream service request, the stream service request that client is sent comprises the RTSP Service-Port that forwarding server address, forwarding media source address and forwarding media source provide;
Described forwarding server sends new stream service request to forwarding media source, sets up the flow media session with forwarding media source, and receives and preserve the stream medium data of forwarding media source based on the transmissions links of setting up, and is forwarded to client.
2. the method for penetrating through private network of media stream as claimed in claim 1 is characterized in that, after described forwarding server is accepted client stream service request, comprises that one judges that whether forwarding server set up the step of transmissions links with forwarding media source.
3. the method for penetrating through private network of media stream as claimed in claim 2, it is characterized in that, described judge that whether forwarding server has set up the step of transmissions links with forwarding media source after, comprise that a forwarding server resolves the step of the desired forwarding media source information of client.
4. as the method for claim 1 or 2 or 3 described penetrating through private network of media stream, it is characterized in that, described forwarding server is preserved after the stream medium data of the forwarding media source that receives, and before being forwarded to client, comprise that one need to judge whether the step of forwarding stream media data to client based on number of clients.
5. the method for penetrating through private network of media stream as claimed in claim 4 is characterized in that, judge whether to need the forwarding stream media data to the step of client based on number of clients, when client is non-vanishing, comprises the steps:
Described forwarding server will with the interactive information of forwarding media source session, send to client as client stream service request response;
Described client is set up flow media session with forwarding server after receiving the stream service request response.
6. the method for penetrating through private network of media stream as claimed in claim 4, it is characterized in that, judging whether to need the forwarding stream media data to the step of client based on number of clients, when client is zero, comprising that a forwarding server interrupts the step that links with encoder automatically.
7. the method for penetrating through private network of media stream as claimed in claim 1, it is characterized in that, the method of described penetrating through private network of media stream comprises step: described forwarding server is when receiving the stream medium data of the same forwarding media source of another client-requested, and directly the stream medium data with the forwarding media source preserved is forwarded to client.
8. the method for penetrating through private network of media stream as claimed in claim 1 is characterized in that, transmissions links is based on Transmission Control Protocol between described forwarding server and the forwarding media source.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710138984XA CN101094159B (en) | 2007-07-18 | 2007-07-18 | Method for penetrating through private network of media stream |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710138984XA CN101094159B (en) | 2007-07-18 | 2007-07-18 | Method for penetrating through private network of media stream |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101094159A CN101094159A (en) | 2007-12-26 |
| CN101094159B true CN101094159B (en) | 2010-06-09 |
Family
ID=38992197
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200710138984XA Active CN101094159B (en) | 2007-07-18 | 2007-07-18 | Method for penetrating through private network of media stream |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101094159B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102104505B (en) * | 2009-12-22 | 2013-09-04 | 浙江宇视科技有限公司 | Method for processing signaling, and control server, decoder and encoder |
| CN102572512A (en) * | 2011-12-26 | 2012-07-11 | 深圳市融创天下科技股份有限公司 | Method and device for uploading stream media data on demand |
| CN103561060B (en) * | 2013-10-17 | 2017-08-11 | 北京京东尚科信息技术有限公司 | Communication linkage method and transfer server under a kind of multi-thread environment |
| CN104023206B (en) * | 2014-06-04 | 2017-06-13 | 浙江宇视科技有限公司 | Media Stream concentrates retransmission method and device |
| CN104168457B (en) * | 2014-08-18 | 2017-05-17 | 浙江宇视科技有限公司 | Method and device for playing multiple media streams on demand |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1588922A (en) * | 2004-09-28 | 2005-03-02 | 王安生 | Method for calling control and medium pass through private net in SIP soft exchange system |
| CN1592300A (en) * | 2003-09-02 | 2005-03-09 | 华为技术有限公司 | Implementation method of multimedia protocol traversal network address translation equipment |
| CN1633100A (en) * | 2003-12-24 | 2005-06-29 | 华为技术有限公司 | Method and system for multimedia service network address translation traversal |
| EP1693998A1 (en) * | 2003-12-24 | 2006-08-23 | Huawei Technologies Co., Ltd. | A method for achieving the conversion and traverse of network address and system thereof |
| CN1929481A (en) * | 2006-09-30 | 2007-03-14 | 四川长虹电器股份有限公司 | Method for flow media cross-over NAT equipment based on UDP |
-
2007
- 2007-07-18 CN CN200710138984XA patent/CN101094159B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1592300A (en) * | 2003-09-02 | 2005-03-09 | 华为技术有限公司 | Implementation method of multimedia protocol traversal network address translation equipment |
| CN1633100A (en) * | 2003-12-24 | 2005-06-29 | 华为技术有限公司 | Method and system for multimedia service network address translation traversal |
| EP1693998A1 (en) * | 2003-12-24 | 2006-08-23 | Huawei Technologies Co., Ltd. | A method for achieving the conversion and traverse of network address and system thereof |
| CN1588922A (en) * | 2004-09-28 | 2005-03-02 | 王安生 | Method for calling control and medium pass through private net in SIP soft exchange system |
| CN1929481A (en) * | 2006-09-30 | 2007-03-14 | 四川长虹电器股份有限公司 | Method for flow media cross-over NAT equipment based on UDP |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101094159A (en) | 2007-12-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100759954B1 (en) | Method for signaling client rate capacity in multimedia streaming | |
| CN101383959B (en) | Method, system and customer equipment obtaining key frame in stream media service | |
| CN101179480B (en) | Method for forwarding stream media | |
| JP5474983B2 (en) | Network apparatus and method for setting up an IPTV session | |
| US20150130891A1 (en) | Two-way audio and video communication utilizing segment-based adaptive streaming techniques | |
| US20110320629A1 (en) | Stream media server, client terminal and method and system for downloading stream media | |
| CN101119475B (en) | System and method for realizing video-on-demand request redirection in IPTV system | |
| JP2008530835A (en) | On-demand multi-channel streaming sessions over packet-switched networks | |
| Bielievtsov et al. | Network Technology for Transmission of Visual Information. | |
| CN102215276A (en) | Video monitoring system and method of media traverse of network address translation equipment | |
| CN101094159B (en) | Method for penetrating through private network of media stream | |
| JP2012501133A (en) | Method for transferring a video session between a fixed multimedia device and a mobile multimedia device | |
| CN101083628B (en) | Method for dynamic forwarding media source | |
| CN106470222A (en) | A kind of document transmission method, device and application server | |
| CN112714131A (en) | Cross-platform microphone connecting method and device, storage medium and electronic equipment | |
| US20120331510A1 (en) | Method, server and system for providing real-time video service in telecommunication network | |
| CN116074297B (en) | Video transmission method, system and related equipment | |
| CN102821309A (en) | System and method for transferring streaming media based on desktop sharing | |
| CN201928397U (en) | Audio-video transmission system based on real time streaming protocol (RTSP) and compatible with various video coding terminals access | |
| US8619117B2 (en) | Method for transmitting multimedia ticker information | |
| JP6532159B2 (en) | Real time video communication quality evaluation method and system | |
| CN101188605A (en) | A system for forwarding stream media | |
| TWI573448B (en) | Streaming connection management method and system | |
| CN101179502A (en) | Method and system for forwarding stream media | |
| KR101528268B1 (en) | System and method for streaming content to remote locations |
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 |