CN104168457B - Method and device for playing multiple media streams on demand - Google Patents
Method and device for playing multiple media streams on demand Download PDFInfo
- Publication number
- CN104168457B CN104168457B CN201410406922.2A CN201410406922A CN104168457B CN 104168457 B CN104168457 B CN 104168457B CN 201410406922 A CN201410406922 A CN 201410406922A CN 104168457 B CN104168457 B CN 104168457B
- Authority
- CN
- China
- Prior art keywords
- video monitoring
- client terminal
- equipment
- monitoring equipment
- address
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a method and device for playing multiple media streams on demand. The method comprises the steps that a first service link is used for sending a target channel media stream service establishing informing report to a video monitoring client-side, wherein the service establishing informing report carries a private network IP address of video monitoring equipment, an expected private network port number, a public network IP address converted by NAT gateway equipment and an expected public network port number; a service stream guiding report sent to the public network IP address and the expected public network port number by the video monitoring client-side is received and a second service link for the video monitoring equipment and the video monitoring client-side is established, wherein the stream guiding report carries a target channel identifier; the second service link is used for sending media streams of a target channel to the video monitoring client-side. By means of the method and device for playing the multiple media streams on demand, the perforating process of STUN is omitted and the service monitoring efficiency is improved.
Description
Technical field
The present invention relates to technical field of video monitoring, more particularly to a kind of multipath media stream order method and device.
Background technology
In order to save the quantity and protection private network safety of public network IP address, operator can dispose NAT in private network exit position
(Network Address Translation, network address translation) gateway device, the NAT gateway equipment is used for private network IP
Address and public network IP address are mutually changed, wherein, multiple private network IP address can be converted to identical by NAT gateway equipment
One public network IP address, only need to distinguish corresponding private network IP address using the different port number after conversion.As shown in figure 1,
(IP1, Port1), (IP2, Port2), (IP3, Port3) in private network can be respectively converted into public network by NAT gateway equipment
(IPA, PortA1), (IPA, PortA2), (IPA, PortA3).
By taking field of video monitoring as an example, video monitoring client terminal and video monitoring equipment can respectively be located at different privates
Net, and be probably each to be respectively positioned under certain NAT gateway equipment.When between video monitoring client terminal and video monitoring equipment will
When carrying out the Signalling exchange and media data transmission of P2P, need by STUN (Simple Traversal of UDP over
The UDP simple traversals of NATs, NAT) detection and STUN crossing process could communicate.
Assume there is video camera all the way under video monitoring equipment, when video monitoring client terminal will check that the road video camera is corresponding
During live media flow data, first, STUN detections are performed, by detection, video monitoring equipment can know that the video monitoring sets
Standby private network IP address and the local port number of the current live stream of the transmission video camera corresponding public affairs after the conversion of NAT gateway equipment
Net IP address and public network port number, for example, it is assumed that the private network IP address of video monitoring equipment is b, currently used local port
Number be b1, obtain after STUN detections NAT gateway equipment will (b, b1) change after corresponding (B, B1).In the same manner, video monitoring client
Hold and detect the public network IP after obtaining the NAT gateway equipment conversion that its private network IP address and certain port numbers are connected by it through STUN
Address and port numbers (C, C1).After STUN detections, then perform STUN and pass through, mainly video monitoring client terminal and video
The public network IP address and public network port number of the opposite end that monitoring device is obtained according to detection (can be by the mutual both sides of video server
Detection information), service link is got through by burrowing message, such as video monitoring client terminal is got through and above-mentioned video monitoring equipment
(B, B1) between service link after, communications can be started between video monitoring equipment and video monitoring client terminal live
Media stream data.
Above-mentioned is by taking monitor client program request all the way live code stream as an example, if while carrying out the fact program request of multichannel video camera
Business, then need to repeat STUN detections and STUN passed through, and constantly repeating STUN detection process can introduce more extra
Time delay, has an impact to the requirement of real-time of monitoring business, and the efficiency of monitoring business is very low.
The content of the invention
In view of this, the present invention provides a kind of multipath media stream order method and device, to improve monitoring efficiency.
A kind of multipath media stream order method is embodiments provided, the video prison being located in monitoring networking is applied to
Control equipment, the video monitoring equipment manages multiple passages, each passage one image capture device of correspondence, the monitoring networking
Also include video monitoring client terminal and network address translation NAT gateway equipment, the video monitoring client terminal and video monitoring set
It is standby to be located at different private networks, it is connected with public network by NAT gateway equipment respectively, methods described includes:
Destination channel media stream service request message is received, and receives the first service link notice message of multiplexing, described the
One service link is the transmission link that the video monitoring equipment and the video monitoring client terminal have been set up;
Using the video monitoring equipment side IP address and port numbers of the first service link as source IP address and source
Slogan, using the IP address and port numbers of the video monitoring client terminal side of the first service link as purpose IP address and mesh
Port numbers, send destination channel media stream service to the video monitoring client terminal and set up notice message, the business is set up
Notice message carries the private network IP address of the video monitoring equipment, expects private network port numbers, and the expectation private network port numbers are
The desired use of private network port numbers and destination channel mark of the video monitoring equipment transmission destination channel Media Stream,
It is private with the corresponding public network IP address of private network IP address, expectation after the outlet NAT gateway equipment conversion by the video monitoring equipment
The corresponding expectation public network port number of net port numbers;
Receive the business that the video monitoring client terminal is sent to the public network IP address and the expectation public network port number
Drain message, sets up the second service link of the video monitoring equipment and the video monitoring client terminal, the drain message
Carry destination channel mark;
Using second service link, the Media Stream of the destination channel is sent to the video monitoring client terminal.
The embodiment of the present invention additionally provides a kind of multipath media stream order method, is applied to the video being located in monitoring networking
Monitor client, the monitoring networking also includes video monitoring equipment and NAT gateway equipment, and the video monitoring equipment management is more
Individual passage, each passage one image capture device of correspondence, the video monitoring client terminal and video monitoring equipment are located at difference
Private network, be connected with public network by NAT gateway equipment respectively, methods described includes:
Send the message of video monitoring equipment destination channel Media Stream described in acquisition request;
Receive the video monitoring equipment and be multiplexed the destination channel media stream service foundation notice that the first service link sends
Message, first service link is the transmission link that the video monitoring client terminal and the video monitoring equipment have been set up,
The business sets up notice message and carries destination channel mark, the private network IP address of the video monitoring equipment and video prison
Control equipment sends the expectation private network port numbers of destination channel Media Stream and exports NAT gateway through the video monitoring equipment
The public network IP address and conversion that the equipment conversion private network IP address is obtained expects the expectation public network port that private network port numbers are obtained
Number;
It is determined that the destination channel that the business is set up in notice message is designated the passage of acquisition request Media Stream
After mark, drain message is sent to the public network IP address and the expectation public network port number, set up the video monitoring client
End and the second service link of the video monitoring equipment;
Receive the destination channel media stream data that the video monitoring equipment is sent based on the second service link.
The embodiment of the present invention additionally provides a kind of multipath media stream order method, is applied to video surveillance network, described to regard
Frequency monitoring network includes video monitoring client terminal, video monitoring equipment, video monitoring server and NAT gateway equipment, described to regard
Frequency monitoring device manages multiple passages, and each passage one image capture device of correspondence, the video monitoring server is located at public affairs
Net, the video monitoring client terminal and video monitoring equipment are located at different private networks, respectively by NAT gateway equipment and public network phase
Even, methods described includes:
Video monitoring client terminal to video monitoring server sends acquisition request video monitoring equipment destination channel Media Stream
Service request message;
The video monitoring server query monitor relation table, checks the video monitoring client terminal and the video monitoring
Whether equipment has built up media monitoring relation, if it is not, then the video monitoring client terminal and the video monitoring equipment enter
The UDP simple traversals STUN detection of row NAT and STUN are passed through, and set up the video monitoring client terminal and the video monitoring equipment
Between transmission link, the video monitoring equipment issues the video monitoring client terminal the destination channel Media Stream, such as
Fruit is then to continue;
Video monitoring server sends the report of the first service link of multiplexing to video monitoring equipment and video monitoring client terminal
Text, and send the destination channel media stream service request message of the video monitoring client terminal request to video monitoring equipment;
Video monitoring equipment receives destination channel media stream service request message, and receives multiplexing the first service link notice
Message, first service link is the transmission link that the video monitoring equipment and the video monitoring client terminal have been set up;
Video monitoring equipment uses the video monitoring equipment side IP address and port numbers of the first service link as source
IP address and source port number, using the IP address and port numbers of the video monitoring client terminal side of the first service link as mesh
IP address and destination slogan, to the video monitoring client terminal send destination channel media stream service set up notice message,
The business sets up notice message and carries the private network IP address of the video monitoring equipment, expects private network port numbers and target
Gap marker, the expectation private network port numbers are that the video monitoring equipment sends the desired use of of destination channel Media Stream
Private network port numbers;
The NAT gateway equipment of outlet that video monitoring equipment is located fills the private network in the business sets up notice message
The expectation public network port number that public network IP address that IP address conversion is obtained, the expectation private network port numbers are converted to;
Video monitoring client terminal receives the business and sets up notice message, if in the message carry gap marker and
The gap marker of request is identical, then set up public network IP address described in notice message and the expectation public network port to the business
Number send business drain message, set up the second service link of the video monitoring equipment and the video monitoring client terminal, institute
State drain message and carry destination channel mark;
Video monitoring equipment utilizes second service link, and the Media Stream for sending the destination channel is supervised to the video
Control client.
The embodiment of the present invention additionally provides a kind of video monitoring equipment, in video monitoring networking, the video monitoring
The multiple passages of equipment control, each passage one image capture device of correspondence, the monitoring networking also includes video monitoring client
End and network address translation NAT gateway equipment, the video monitoring client terminal and video monitoring equipment are located at different private networks, point
Not Tong Guo NAT gateway equipment be connected with public network, including:
Receiving unit, for receiving destination channel media stream service request message, and reception the first service link of multiplexing leads to
Know message, first service link is the chain that the video monitoring equipment and the video monitoring client terminal have been set up
Road;
Transmitting element, for using the video monitoring equipment side IP address and port numbers of the first service link as source
IP address and source port number, using the IP address and port numbers of the video monitoring client terminal side of the first service link as mesh
IP address and destination slogan, to the video monitoring client terminal send destination channel media stream service set up notice message,
The business sets up notice message and carries the private network IP address of the video monitoring equipment, expects private network port numbers, the expectation
Private network port numbers are the desired use of private network port numbers and mesh that the video monitoring equipment sends destination channel Media Stream
The corresponding public network IP of private network IP address after marking gap marker and being changed by the outlet NAT gateway equipment of the video monitoring equipment
Address, the corresponding expectation public network port number of expectation private network port numbers;
Unit is set up, for receiving the video monitoring client terminal public network IP address and the expectation public network are sent to
The business drain message of port numbers, sets up the second service link of the video monitoring equipment and the video monitoring client terminal,
The drain message carries destination channel mark;
The transmitting element, is additionally operable to be sent using second service link Media Stream of the destination channel to institute
State video monitoring client terminal.
The embodiment of the present invention additionally provides a kind of video monitoring client terminal, in video monitoring networking, the monitoring group
Net also includes video monitoring equipment and NAT gateway equipment, and the video monitoring equipment manages multiple passages, each passage correspondence one
Individual image capture device, the video monitoring client terminal and video monitoring equipment are located at different private networks, respectively by NAT gateway
Equipment is connected with public network, including:
Transmitting element, for sending the message of video monitoring equipment destination channel Media Stream described in acquisition request;
Receiving unit, for receiving the video monitoring equipment destination channel Media Stream that the first service link sends is multiplexed
Business sets up notice message, and first service link is that the video monitoring client terminal and the video monitoring equipment are set up
Transmission link, the business set up notice message carry destination channel mark, the private network IP address of the video monitoring equipment
The expectation private network port numbers of destination channel Media Stream are sent with the video monitoring equipment and through the video monitoring equipment
The public network IP address and conversion that the outlet NAT gateway equipment conversion private network IP address is obtained expects the phase that private network port numbers are obtained
Hope public network port number;
Unit is set up, for it is determined that the destination channel that the business is set up in notice message is designated acquisition request
After the gap marker of Media Stream, drain message is sent to the public network IP address and the expectation public network port number, set up described
Second service link of video monitoring client terminal and the video monitoring equipment;
The receiving unit, is additionally operable to receive the destination channel that the video monitoring equipment is sent based on the second service link
Media stream data.
A kind of video surveillance network is embodiments provided, the video surveillance network includes video monitoring client
End, video monitoring equipment, video monitoring server and NAT gateway equipment, the video monitoring equipment manages multiple passages, each
Passage one image capture device of correspondence, the video monitoring server is located at public network, the video monitoring client terminal and video
Monitoring device is located at different private networks, is connected with public network by NAT gateway equipment respectively, including:
Video monitoring client terminal, for sending acquisition request video monitoring equipment destination channel matchmaker to video monitoring server
Body stream service request message;
The video monitoring server, for query monitor relation table, checks the video monitoring client terminal and described regards
Whether frequency monitoring device has built up media monitoring relation, if it is not, then the video monitoring client terminal and the video monitoring
Equipment carries out the UDP simple traversals STUN detection of NAT and STUN is passed through, and sets up the video monitoring client terminal and video prison
Transmission link between control equipment, the video monitoring equipment issues the video monitoring client the destination channel Media Stream
End, if it is, continuing;
The video monitoring server, is additionally operable to send the first industry of multiplexing to video monitoring equipment and video monitoring client terminal
The message of business link, and send the destination channel media stream service of the video monitoring client terminal request to video monitoring equipment
Request message;
Video monitoring equipment, for receiving destination channel media stream service request message, and receives the first business chain of multiplexing
Road notice message, first service link is the transmission that the video monitoring equipment and the video monitoring client terminal have been set up
Link;
The video monitoring equipment, is also used for video monitoring equipment side IP address and the end of the first service link
Slogan is used as source IP address and source port number, the IP address and end using the video monitoring client terminal side of the first service link
Slogan sends destination channel media stream service and sets up as purpose IP address and destination slogan to the video monitoring client terminal
Notice message, the business set up notice message carry the video monitoring equipment private network IP address, expect private network port numbers,
And destination channel mark, it is described to expect that private network port numbers are institute's phases that the video monitoring equipment sends destination channel Media Stream
The private network port numbers that prestige is used;
The NAT gateway equipment of outlet that the video monitoring equipment is located, for filling out in setting up notice message in the business
Fill the expectation public network port that the public network IP address, the expectation private network port numbers that the private network IP address is converted to is converted to
Number;
The video monitoring client terminal, is additionally operable to receive the business and sets up notice message, if carried in the message
Gap marker it is identical with the gap marker of request, then set up public network IP address described in notice message and described to the business
Expect that public network port number sends business drain message, set up the second of the video monitoring equipment and the video monitoring client terminal
Service link, the drain message carries destination channel mark;
The video monitoring equipment, is additionally operable to send the Media Stream of the destination channel using second service link
To the video monitoring client terminal.
Embodiments provide a kind of multipath media stream order method and device, video monitoring equipment and video monitoring
Client carries out STUN by the message that burrows passes through and sets up the first service link, subsequently, for this video monitoring equipment and this regard
The business of frequency monitor client, can be multiplexed first service link carries out the transmission of equipment room data message, in video monitoring
Equipment to video monitoring client terminal send business set up notice message when, by the private network IP address of video monitoring equipment and transmission
The corresponding private network port numbers of destination channel are added to the business and set up in notice message, and NAT gateway equipment is receiving the report
Changed when literary, the public network IP address and public network port number after conversion is added to into the business and is set up in notice message, will
The business sets up notice message and is sent to video monitoring client terminal, after video monitoring client terminal is according to the conversion of video monitoring equipment side
Public network IP address and public network port number, set up the second service link with video monitoring equipment, and obtain using the second service link
The data of destination channel are taken, the process that burrows that STUN is passed through is reduced, the efficiency of monitoring business is improve.
Description of the drawings
Fig. 1 is a kind of NAT gateway device network address conversion schematic diagram that prior art is provided;
Fig. 2 is the application scenario diagram of multipath media stream order method provided in an embodiment of the present invention;
Fig. 3 is method flow diagram provided in an embodiment of the present invention;
Fig. 4 is the method flow diagram that another embodiment of the present invention is provided;
Fig. 5 is the method flow diagram that another embodiment of the present invention is provided;
Fig. 6 is the hardware environment Organization Chart of video monitoring equipment operation provided in an embodiment of the present invention;
Fig. 7 is video monitoring equipment structural representation provided in an embodiment of the present invention;
Fig. 8 is the hardware environment Organization Chart of video monitoring client terminal operation provided in an embodiment of the present invention;
Fig. 9 is video monitoring equipment structural representation provided in an embodiment of the present invention;
Figure 10 is video surveillance network structural representation provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example is applied, the scope of protection of the invention is belonged to.
In order that multipath media stream order method provided in an embodiment of the present invention is easier to understand, first with reference to Fig. 2
A kind of optional application scenarios of the order method are illustrated, as shown in Fig. 2 monitoring system mainly includes:Headend equipment and rear end set
It is standby.Wherein, headend equipment can be video camera, manually or electrically camera lens, head, protective cover, audiomonitor, alarm detector and many
Function decoder etc., is mainly used in the destination object of the monitoring site in itself monitoring range, and IPC1, IPC2 are shown in Fig. 2
And IPC3, here only represents the headend equipment of monitoring system with IPC (IP camera, web camera).Wherein, rear end sets
Standby can be central control equipment or sub-control control equipment etc., and video monitoring equipment as shown in Figure 2 is rear end equipment, and rear end sets
Standby can be NVR (Network Video Recorder i.e. network hard disk video recorder) or DVR (Digital Video
Recorder DVRs), rear end equipment is mainly used in receiving the image scene that each headend equipment is gathered, so that regarding
Frequency monitor client utilizes and the service link between video monitoring client terminal is by the passage when the data of a certain paths are obtained
Data is activation to video monitoring client terminal.
Wherein, as shown in Fig. 2 video monitoring equipment accesses and manage multiple video cameras, each video camera correspondence video prison
One passage of control equipment, for example, video monitoring client terminal obtains the data of the first paths, then illustrate video monitoring client terminal
It is the image scene for needing to obtain IPC1 collections.Service link is the chain set up between video monitoring equipment and video monitoring client terminal
Road, for realizing the transmission of the information data between video monitoring equipment and video monitoring client terminal.
Due to private network side of the video monitoring equipment in Fig. 2 in NAT gateway device A, video monitoring client terminal is in NAT
The private network side of gateway device B, therefore, it is necessary first to STUN detections are performed, by detection, video monitoring equipment can know itself
Private network IP address, and send the private network port numbers of the current code stream corresponding public network IP address after the conversion of NAT gateway device A
IPA and public network port number PortA, in the same manner, video monitoring client terminal knows the private network IP address of itself, the private of the current code stream of reception
Net port numbers corresponding public network IP address IPB and public network port number PortB after NAT gateway equipment B conversions.
When video monitoring client terminal obtains the data of a certain paths, video monitoring equipment and video monitoring client are needed
End is passed through to obtain the public network IP address and public network port number of opposite end according to STUN, after passing through successfully, is built using crossing process
Vertical service link obtains the data of a certain paths.
The embodiment of the present invention on the basis of said process, only using a STUN crossing process, it becomes possible to reach difference
Obtain or while obtain multiplexer channel media stream data, to improve monitoring efficiency.
Embodiment one
As shown in figure 3, for a kind of schematic flow sheet of multipath media stream order method provided in an embodiment of the present invention, this
The method of bright embodiment is performed by video monitoring equipment, and video monitoring equipment manages multiple passages, each passage correspondence one
Individual image capture device, the monitoring networking also includes video monitoring client terminal and NAT gateway equipment, the video monitoring client terminal and
Video monitoring equipment is located at different private networks, is connected with public network by NAT gateway equipment respectively, may comprise steps of:
Step 301:Destination channel media stream service request message is received, and receives the first service link of multiplexing and notify report
Text, first service link is the transmission link that the video monitoring equipment and the video monitoring client terminal have been set up.
Wherein, the first service link is the link set up using STUN crossing technologies.Service link a is as first with Fig. 2
Service link, service link a is used to transmit the Media Stream that IPC1 is gathered between video monitoring equipment and video monitoring client terminal
Data, carry the link identification of the service link a for needing multiplexing in notice message, for example, represent the service link with " a ".
IPC2 fact code streams are watched in video monitoring client terminal request, then the second of IPC2 correspondence video monitoring equipments now
Passage, then second channel be destination channel.
Video monitoring equipment receives the request that video monitoring client terminal asks the second road media stream data, for example, now regards
Frequency monitor client wants the fact for checking IPC2.Video monitoring equipment also receives the notice message of the first service link a of multiplexing.
Step 302:Using the video monitoring equipment side IP address and port numbers of the first service link as source IP address
And source port number, using the IP address and port numbers of the video monitoring client terminal side of the first service link as purpose IP address
And destination slogan, sending destination channel media stream service to the video monitoring client terminal and set up notice message, the business is set up
Notice message carries the private network IP address of the video monitoring equipment, expects private network port numbers, and the expectation private network port numbers are that this is regarded
Frequency monitoring device sends the desired use of private network port numbers and destination channel mark of destination channel Media Stream and by this
The corresponding public network IP address of private network IP address, expectation private network port numbers after the outlet NAT gateway equipment conversion of video monitoring equipment
Corresponding expectation public network port number.
Because prior art is in the data that IPC is gathered every all the way that order video monitoring device is connected, it is required for
Service link is set up using STUN detections and STUN crossing process so that the time delay of monitoring is serious, and the efficiency of monitoring business is very
It is low, therefore, the embodiment of the present invention has been set up service link a, sets with video monitoring video monitoring client terminal is subsequently set up
Corresponding to the second road IPC2 of standby transmission during the service link of code stream, using the service link a having built up to video monitoring client
End transmission business sets up notice message, and the business sets up the private network IP address and transmission mesh that notice message carries video monitoring equipment
Mark channel bit stream is corresponding to expect private network port numbers (IP2, Port2), and the business sets up notice message through NAT gateway equipment
During A, (IP2, Port2) is converted to public network IP address and expects public network port number (IPA, PortA2) by NAT gateway device A, and
Should (IPA, the PortA2) business of being added on set up in notice message and be sent to video monitoring client terminal so that video monitoring is objective
Family end sets up notice message and video monitoring equipment and sets up service link b according to the business, so as to beating of reducing that STUN passes through
Hole process, improves the efficiency of monitoring business.
Wherein, the business that video monitoring equipment sends is set up in notice message and also carries destination channel mark channel2,
So that video monitoring client terminal is when receiving the business and setting up notice message, according to destination channel mark channel2, sentence
The channel information of the disconnected destination channel for being whether itself institute's acquisition request data, due to video monitoring client terminal acquisition request IPC2
Data, therefore the destination channel mark channel2 that the business is set up in notice message is video monitoring client terminal and asked
Obtain the passage of data.
Step 303:Receive the industry that the video monitoring client terminal is sent to the public network IP address and the expectation public network port number
Business drain message, sets up second service link of the video monitoring equipment and the video monitoring client terminal, and the drain message is carried
Destination channel is identified.
Step 304:Using second service link, the Media Stream for sending the destination channel gives the video monitoring client terminal.
Video monitoring equipment is receiving the business drain message that video monitoring client terminal sends, purpose IP of the drain message
The private network IP address and destination channel corresponding phase of address and destination slogan (IPA, PortA2), respectively video monitoring equipment
The public network IP address hoped after private network port numbers (IP2, Port2) conversion and expectation public network port number (IPA, PortA2), in video
When monitoring device receives the business drain message of video monitoring client terminal transmission, the video monitoring carried using the drain message
The IP address and IP port numbers of client-side, and according to (IP2, Port2), set up video monitoring client terminal and set with video monitoring
Service link b corresponding to the second road media stream data IPC2 live media streams of standby transmission.Video monitoring equipment utilizes the business
The media stream data that IPC2 is gathered is sent to video monitoring client terminal by link b.
The embodiment of the present invention is passed through set up a service link and sends business to video monitoring client terminal using STUN
Notice message is set up, is transmitted corresponding to the second paths Media Stream with video monitoring equipment so as to set up video monitoring client terminal
Service link, the business sets up in notice message the private network IP address and video monitoring equipment distribution for carrying video monitoring equipment
Transmission video monitoring client terminal need obtain data destination channel correspondence Media Stream expectation private network port numbers, and pass through
Public network IP address and expect public network port number, video monitoring client terminal that NAT gateway equipment is changed when the message is received
According to the public network IP address after the conversion of video monitoring equipment side and expectation public network port number, with video monitoring equipment the second industry is set up
Business link, and the data of destination channel are obtained using the second service link, the process that burrows that STUN is passed through is reduced, improve prison
The efficiency of control business.
Embodiment two
As shown in figure 4, for a kind of schematic flow sheet of multipath media stream order method provided in an embodiment of the present invention, this
The method of bright embodiment is performed by video monitoring client terminal, is applied to the video monitoring client terminal being located in monitoring networking,
The monitoring networking also includes video monitoring equipment and NAT gateway equipment, and the video monitoring equipment manages multiple passages, each passage
One image capture device of correspondence, the video monitoring client terminal and video monitoring equipment are located at different private networks, respectively by NAT
Gateway device is connected with public network, may comprise steps of:
Step 401:Send the message of the acquisition request video monitoring equipment destination channel Media Stream.
Step 402:The destination channel media stream service for receiving video monitoring equipment multiplexing first service link transmission is built
Vertical notice message, first service link is the transmission link that the video monitoring client terminal and the video monitoring equipment have been set up,
The business sets up notice message and carries destination channel mark, the private network IP address of the video monitoring equipment and the video monitoring equipment
Send the expectation private network port numbers of destination channel Media Stream and through the video monitoring equipment outlet NAT gateway equipment conversion
The public network IP address and conversion that the private network IP address is obtained expects the expectation public network port number that private network port numbers are obtained.
The second tunnel that the destination channel Media Stream is connected with video monitoring client terminal acquisition request with video monitoring equipment
The data instance that passage channel2 is gathered, after the business for receiving video monitoring equipment transmission sets up notice message, root
The destination channel mark channel2 of notice message carrying is set up according to the business, it is determined whether with the mesh that requesting itself obtains data
Whether passage channel2 is identical for mark, in the case of judged result identical, it is determined that it is correct that the business sets up notice message
's.If judged result is differed, it is determined that the service announcements message is mistake, then sending to video monitoring server again please
Ask obtain video monitoring equipment destination channel Media Stream message, until the judged result it is identical.
Step 403:It is determined that the destination channel that the business is set up in notice message is designated acquisition request Media Stream
After gap marker, drain message is sent to the public network IP address and the expectation public network port number, set up the video monitoring client terminal
With the second service link of the video monitoring equipment.
Step 404:Receive the destination channel media stream data that the video monitoring equipment is sent based on the second service link.
Video monitoring client terminal sets up notice message and sends drain message to video monitoring equipment according to the business, wherein,
The business is set up notice message carrying public network IP address, expect public network port number as drain message purpose IP address,
Destination slogan.The drain message also carries destination channel mark channel2, so that video monitoring equipment receives the drain
Message identifies channel2 according to the destination channel, by the data is activation corresponding to destination channel mark channel2 to video
Monitor client.
After causing video monitoring equipment to receive drain message, set up video monitoring client terminal and pass with video monitoring equipment
The service link b of defeated destination channel Media Stream.Pass through when the destination channel media stream data that video monitoring equipment sends is received
What service link b was received.
Embodiment of the present invention video monitoring client terminal receives the business of video monitoring equipment transmission and sets up notice message, due to
The business sets up the expectation private network port in notice message corresponding to the private network IP address of carrying video monitoring equipment, destination channel
Number, and the public network IP address after conversion and expectation public network port number, video monitoring client terminal is according to the public network IP after the conversion
Address and expectation public network port number set up the service link corresponding to the destination channel with video monitoring equipment, so as to using the mesh
Service link corresponding to mark passage, obtains the data of destination channel, so as to reduce the process that burrows that STUN is passed through, improves
The efficiency of monitoring business.
Embodiment three
Fig. 5 is the flow chart of another multi-path media streaming on demand provided in an embodiment of the present invention, is applied to video monitoring net
Network, the video surveillance network includes video monitoring client terminal, video monitoring equipment, video monitoring server and NAT gateway equipment,
The video monitoring equipment manages multiple passages, and each passage one image capture device of correspondence, the video monitoring server is located at
Public network, the video monitoring client terminal and video monitoring equipment are located at different private networks, respectively by NAT gateway equipment and public network phase
Even.The method can include:
Step 501:Video monitoring client terminal sends acquisition request video monitoring equipment target and leads to video monitoring server
Road media stream service request message.
The service request message carries gap marker, the user of the destination channel of video monitoring client terminal acquisition request data
The mark of mark, video monitoring client terminal mark and video monitoring equipment.
For example, as shown in Fig. 2 IPC2 corresponding to video monitoring client terminal acquisition request the second paths of video monitoring equipment
Data, the gap marker of the destination channel of the monitoring acquisition request data that the data acquisition request is carried is channel2.
Step 502:Video monitoring server is deposited in advance according to the ID and the mark of video monitoring equipment, inquiry
The media monitoring relation table of storage, checks whether video monitoring client terminal and video monitoring equipment have built up media monitoring relation,
If it is, continuing.
Wherein, the ID can be the account and password logged on video monitoring client terminal.According to user
The difference of mark, to should ID authority it is also different.For example, account can be:zhanghao;Password can be with
It is * * * * * *.Video monitoring server is can to search media monitoring according to the ID to the authority of the account and password
Relation table.It is to forbid searching media monitoring relation table to the authority of other accounts and password.
Video monitoring server is when media monitoring relation table is checked, if media monitoring relation table includes and the video prison
Service link mark corresponding to the mark of control client identification and video monitoring equipment, then show the video monitoring client terminal
Service link is established between the video monitoring equipment.
If not including the mark with the video monitoring client terminal mark and video monitoring equipment in media monitoring relation table
Corresponding service link mark, shows not setting up service link between the video monitoring client terminal and the video monitoring equipment,
Then set up the service link between video monitoring client terminal and the video monitoring equipment, video monitoring service using STUN Detection Techniques
Device records and the information of the service link set up using STUN Detection Techniques is stored in media monitoring relation table.
In embodiments of the present invention, media monitoring relation table is as shown in table 1:
Table 1:
According to table 1, video monitoring server is in the video monitoring client terminal mark carried according to data acquisition request
And video monitoring equipment mark is when the media monitoring relation table is searched, if the media monitoring relation table includes that the data are obtained
Video monitoring client terminal mark, the mark of video monitoring equipment that request is carried are taken, then shows that video monitoring client terminal is regarded with this
Service link is established between frequency monitoring device;Otherwise, then show not built between video monitoring client terminal and the video monitoring equipment
Found service link.
With video monitoring client terminal and video monitoring equipment 1 that video monitoring client terminal is designated video monitoring client terminal 1
Service link having been established, and only having been established as a example by a service link a, the service link set up has been video monitoring
The service link set up using STUN crossing technologies between client and video monitoring equipment.For causing video monitoring client terminal root
The media stream data of IPC1 corresponding to the first paths of video monitoring equipment is obtained according to the service link a having built up.
Or there is a plurality of built vertical service link, this plurality of service link can otherwise non-STUN detections and
The mode of passing through is set up, for example, can be set up by the present invention program mode, and built business link mode of setting up one's own business is not limited at this
System.
Step 503:Video monitoring server to video monitoring equipment and video monitoring client terminal send the first business of multiplexing
The message of link, and send the destination channel media stream service request of the video monitoring client terminal request to video monitoring equipment
Message.
Wherein, the business of multiplexing first that video monitoring server sends to video monitoring equipment and video monitoring client terminal
In the message of link, the mark of first service link is carried.
Because video monitoring client terminal does not receive video monitoring server for service request report in preset time period
The message that text is returned, then may proceed to send service request message to video monitoring server.Therefore, video monitoring server is needed
The message of the first service link of multiplexing is sent to video monitoring client terminal.Video monitoring client terminal is receiving the video monitoring clothes
The message of the service link of multiplexing first that business device sends, can wait video monitoring equipment to send out using the service link set up
The message sent.
Step 504:Video monitoring equipment receives destination channel media stream service request message, and receives the first business of multiplexing
Link notice message, first service link is the chain that the video monitoring equipment and the video monitoring client terminal have been set up
Road.
Step 505:Video monitoring equipment uses video monitoring equipment side IP address and port numbers of the first service link
As source IP address and source port number, made using the IP address and port numbers of the video monitoring client terminal side of the first service link
For purpose IP address and destination slogan, send destination channel media stream service to the video monitoring client terminal and set up notice report
Text, the business sets up notice message and carries the private network IP address of the video monitoring equipment, expects that private network port numbers and target are logical
Road is identified, and the expectation private network port numbers are the desired use of private network ends that the video monitoring equipment sends destination channel Media Stream
Slogan.
Step 506:NAT gateway device A receives the business of video monitoring equipment transmission and sets up notice message, and business is built
The private network IP address and destination channel of the video monitoring equipment that vertical notice message is carried are corresponding to expect that private network port numbers are carried out
Conversion, and by the public network IP address after conversion and expect that public network port number is filled into the business and sets up in notice message, and will
Business sets up notice message and is sent to the NAT gateway equipment B that video monitoring client terminal is connected, so that NAT gateway equipment B should
Business sets up notice message and is sent to video monitoring client terminal.
Simultaneously NAT gateway equipment is the private network IP address, expectation private network port numbers and public network IP address, expectation public network port
Number mapping relations preserve, subsequently to complete public network IP address, to expect public network port number to private network IP address, expectation private network end
The address conversion of slogan.
Step 507:Video monitoring client terminal receives the business and sets up notice message, if the passage mark carried in the message
Knowledge is identical with the gap marker of request, then set up the public network IP address and the expectation public network port number in notice message to the business
The business drain message of transmission, sets up second service link of the video monitoring equipment and the video monitoring client terminal, the drain
Message carries destination channel mark.
Wherein, the public network IP address of the drain message that video monitoring client terminal sends, public network port number are set by video monitoring
The NAT gateway equipment of standby side, according to the internal public network for preserving and private net address conversion table, is converted to video monitoring equipment corresponding
Private network IP address and expectation private network port numbers.Specifically, video monitoring client terminal receives the business and sets up after notice message, root
Expect private network port numbers after the conversion of NAT gateway equipment according to the private network IP address and destination channel of video monitoring equipment are corresponding
Public network IP address and expect public network port number, video monitoring client terminal send drain message, set up pin with video monitoring equipment
Service link b to the second paths.A service link, video are often set up in video monitoring client terminal and video monitoring equipment
Monitor client sends the information of the service link with regard to setting up, video prison with video monitoring equipment to video monitoring server
Control server is stored in the information of the service link with regard to setting up in media monitoring relation table.
Step 508:Video monitoring equipment utilizes second service link, the Media Stream for sending the destination channel to give the video
Monitor client.
Said process with the process of video monitoring client terminal program request data of passage all the way, when video monitoring client terminal it is same
When program request two-way or multiplexer channel data when, the embodiment of the present invention is with the number of video monitoring client terminal simultaneously program request two paths
According to as a example by, the method can include with the difference of the data in program request a-road-through road in Fig. 7:
In step 501, the video monitoring client terminal sets to the acquisition request video monitoring that video monitoring server sends
In standby destination channel media stream service request message, the passage of two destination channels of acquisition request media stream data can be carried
Mark, or video monitoring client terminal send respectively two service request messages to video monitoring server.
In step 503, video monitoring server can send a service request message, the industry to video monitoring equipment
The destination channel mark of video monitoring client terminal request Media Stream can be carried in business request message.Can also send two industry
Business request message, carries respectively the destination channel that corresponding video monitoring client terminal asks Media Stream in each service request message
Mark.
In step 505, the business that video monitoring equipment sends is set up in notice message, can include two destination channels
Expectation private network port numbers corresponding to the IP address of corresponding video monitoring equipment, each destination channel, and public network IP ground
Location and expectation public network port number.Can also be that two business of video monitoring equipment transmission set up notice message.
In step 506, step 507, video monitoring client terminal receives business and sets up after notice message, is built according to business
Vertical notice message, sends drain message to corresponding video monitoring equipment respectively.Video monitoring equipment is received after drain message
Media stream data is returned using corresponding service link.
According to such scheme, video monitoring equipment carries out STUN and passes through foundation with video monitoring client terminal by the message that burrows
First service link, using first service link transmission of each equipment room data message is carried out, and video monitoring equipment to
When video monitoring client terminal transmission business sets up notice message, by the private network IP address of video monitoring equipment and video monitoring visitor
Family end needs that the destination channel for obtaining data is corresponding to expect that private network port numbers are added to the business and set up in notice message, and
NAT gateway equipment is changed when the message is received, and the public network IP address after conversion and expectation public network port number are added to
The business is set up in notice message, the business is set up into notice message and is sent to video monitoring client terminal, video monitoring client
Hold according to the public network IP address after the conversion of video monitoring equipment side and expect public network port number, to video monitoring equipment drain is sent
Message, and the second service link is set up with video monitoring client terminal after video equipment receives drain message, and utilize second
Service link returns the media stream data of destination channel, reduces the process that burrows that STUN is passed through, and according to the present invention program, can
With the data of program request multiplexer channel simultaneously, the efficiency of monitoring business is improve.
As shown in Figure 6, Figure 7, a kind of video monitoring equipment is embodiments provided, in video monitoring networking,
The video monitoring equipment manages multiple passages, and each passage one image capture device of correspondence, monitoring networking is also supervised including video
Control client and network address translation NAT gateway equipment, video monitoring client terminal and video monitoring equipment are located at different private networks,
It is connected with public network by NAT gateway equipment respectively.Device embodiment can be realized by software, it is also possible to by hardware or soft
The mode of combination of hardware is realized.From for hardware view, as shown in fig. 6, be located for embodiment of the present invention video monitoring equipment setting
A kind of standby hardware structure diagram, in addition to the CPU shown in Fig. 6, internal memory, network interface and nonvolatile memory, implements
The equipment that device is located in example can also generally include other hardware, such as be responsible for processing the forwarding chip of message.With software
As a example by realization, as shown in fig. 7, as the device on a logical meaning, being deposited non-volatile by the CPU of its place equipment
Corresponding computer program instructions read what operation in internal memory was formed in reservoir.The video monitoring equipment 70 that the present embodiment is provided
Including:
Receiving unit 701, for receiving destination channel media stream service request message, and receives the first service link of multiplexing
Notice message, first service link is the chain that the video monitoring equipment and the video monitoring client terminal have been set up
Road;
Transmitting element 702, for being made using the video monitoring equipment side IP address of the first service link and port numbers
For source IP address and source port number, made using the IP address and port numbers of the video monitoring client terminal side of the first service link
For purpose IP address and destination slogan, send destination channel media stream service to the video monitoring client terminal and set up notice report
Text, the business sets up notice message and carries the private network IP address of the video monitoring equipment, expects private network port numbers, the phase
Hope private network port numbers be the video monitoring equipment send destination channel Media Stream desired use of private network port numbers and
Destination channel identify and by the video monitoring equipment outlet NAT gateway equipment conversion after the corresponding public network of private network IP address
IP address, the corresponding expectation public network port number of expectation private network port numbers;
Unit 703 is set up, for receiving the video monitoring client terminal public network IP address and the expectation are sent to
The business drain message of public network port number, sets up the second business chain of the video monitoring equipment and the video monitoring client terminal
Road, the drain message carries destination channel mark;
The transmitting element, is additionally operable to be sent using second service link Media Stream of the destination channel to institute
State video monitoring client terminal.
As shown in Figure 8, Figure 9, a kind of video monitoring client terminal is embodiments provided, positioned at video monitoring networking
In, wherein, monitoring networking also includes video monitoring equipment and NAT gateway equipment, and the video monitoring equipment manages multiple passages,
Each passage one image capture device of correspondence, the video monitoring client terminal and video monitoring equipment are located at different private networks,
It is connected with public network by NAT gateway equipment respectively.Device embodiment can be realized by software, it is also possible to by hardware or soft
The mode of combination of hardware is realized.From for hardware view, as shown in figure 8, be located for embodiment of the present invention video monitoring equipment setting
A kind of standby hardware structure diagram, in addition to the CPU shown in Fig. 8, internal memory, network interface and nonvolatile memory, implements
The equipment that device is located in example can also generally include other hardware, such as be responsible for processing the forwarding chip of message.With software
As a example by realization, as shown in figure 9, as the device on a logical meaning, being deposited non-volatile by the CPU of its place equipment
Corresponding computer program instructions read what operation in internal memory was formed in reservoir.The video monitoring client terminal 90 includes:
Transmitting element 901, for sending the message of video monitoring equipment destination channel Media Stream described in acquisition request;
Receiving unit 902, for receiving the video monitoring equipment destination channel matchmaker that the first service link sends is multiplexed
Body stream business sets up notice message, first service link be the video monitoring client terminal and the video monitoring equipment
The transmission link of foundation, the business sets up notice message and carries destination channel mark, the private network IP of the video monitoring equipment
Address and the video monitoring equipment send the expectation private network port numbers of destination channel Media Stream and through the video monitoring
The public network IP address and conversion that the equipment outlet NAT gateway equipment conversion private network IP address is obtained expects that private network port numbers are obtained
Expectation public network port number;
Unit 903 is set up, for it is determined that the destination channel that the business is set up in notice message is designated request
After obtaining the gap marker of Media Stream, drain message is sent to the public network IP address and the expectation public network port number, set up
Second service link of the video monitoring client terminal and the video monitoring equipment;
The receiving unit 902, is additionally operable to receive the target that the video monitoring equipment is sent based on the second service link
Passage media stream data.
As shown in Figure 10, the embodiment of the present invention has carried a kind of video surveillance network, and video surveillance network includes video monitoring
Client, video monitoring equipment, video monitoring server and NAT gateway equipment, video monitoring equipment manages multiple passages, each
Passage one image capture device of correspondence, video monitoring server is located at public network, video monitoring client terminal and video monitoring equipment
Positioned at different private networks, it is connected with public network by NAT gateway equipment respectively.The video surveillance network 100 includes:
Video monitoring client terminal 1001, leads to for sending acquisition request video monitoring equipment target to video monitoring server
Road media stream service request message;
The video monitoring server 1002, for query monitor relation table, checks the video monitoring client terminal and institute
State whether video monitoring equipment has built up media monitoring relation, if it is not, then the video monitoring client terminal and the video
Monitoring device carries out the UDP simple traversals STUN detection of NAT and STUN is passed through, and sets up the video monitoring client terminal and described regards
Transmission link between frequency monitoring device, the video monitoring equipment issues the video monitoring the destination channel Media Stream
Client, if it is, continuing;
The video monitoring server 1002, is additionally operable to send multiplexing the to video monitoring equipment and video monitoring client terminal
The message of one service link, and send the destination channel Media Stream of the video monitoring client terminal request to video monitoring equipment
Service request message;
Video monitoring equipment 1003, for receiving destination channel media stream service request message, and receives the first industry of multiplexing
Business link notice message, first service link is that the video monitoring equipment and the video monitoring client terminal are set up
Transmission link;
The video monitoring equipment 1003, is also used for the video monitoring equipment side IP address of the first service link
With port numbers as source IP address and source port number, using the IP address of the video monitoring client terminal side of the first service link
With port numbers as purpose IP address and destination slogan, to the video monitoring client terminal destination channel media stream service is sent
Notice message is set up, the business sets up notice message and carries the private network IP address of the video monitoring equipment, expects private network end
Slogan and destination channel are identified, and the expectation private network port numbers are that the video monitoring equipment sends destination channel Media Stream
Desired use of private network port numbers;
The NAT gateway equipment 1004 of outlet that the video monitoring equipment is located, for setting up notice message in the business
The expectation public network that public network IP address that the middle filling private network IP address is converted to, the expectation private network port numbers are converted to
Port numbers;
The video monitoring client terminal 1001, is additionally operable to receive the business and sets up notice message, if in the message
The gap marker of carrying with request gap marker it is identical, then to the business set up public network IP address described in notice message and
It is described to expect the business drain message that public network port number sends, set up the video monitoring equipment and the video monitoring client terminal
The second service link, the drain message carries destination channel mark;
The video monitoring equipment 1003, is additionally operable to send the matchmaker of the destination channel using second service link
Body stream gives the video monitoring client terminal.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.
Claims (6)
1. a kind of multipath media stream order method, is applied to the video monitoring equipment being located in monitoring networking, the video monitoring
The multiple passages of equipment control, each passage one image capture device of correspondence, the monitoring networking also includes video monitoring client
End and network address translation NAT gateway equipment, the video monitoring client terminal and video monitoring equipment are located at different private networks, point
Not Tong Guo NAT gateway equipment be connected with public network, it is characterised in that methods described includes:
Destination channel media stream service request message is received, and receives the notice message for being multiplexed the first service link, it is described
First service link is the transmission link that the video monitoring equipment and the video monitoring client terminal have been set up;
Using the video monitoring equipment side IP address and port numbers of the first service link as source IP address and source port number,
Using the IP address and port numbers of the video monitoring client terminal side of the first service link as purpose IP address and destination
Slogan, sends destination channel media stream service and sets up notice message to the video monitoring client terminal, and the business is set up and notified
Message carries the private network IP address of the video monitoring equipment, expects private network port numbers, and the expectation private network port numbers are described
Video monitoring equipment sends the desired use of private network port numbers and destination channel mark and quilt of destination channel Media Stream
The corresponding public network IP address of private network IP address, expectation private network end after the outlet NAT gateway equipment conversion of the video monitoring equipment
The corresponding expectation public network port number of slogan;
Receive the business drain that the video monitoring client terminal is sent to the public network IP address and the expectation public network port number
Message, sets up the second service link of the video monitoring equipment and the video monitoring client terminal, and the drain message is carried
Destination channel is identified;
Using second service link, the Media Stream of the destination channel is sent to the video monitoring client terminal.
2. a kind of multipath media stream order method, is applied to the video monitoring client terminal being located in monitoring networking, the monitoring group
Net also includes video monitoring equipment and NAT gateway equipment, and the video monitoring equipment manages multiple passages, each passage correspondence one
Individual image capture device, the video monitoring client terminal and video monitoring equipment are located at different private networks, respectively by NAT gateway
Equipment is connected with public network, it is characterised in that methods described includes:
Send the message of video monitoring equipment destination channel Media Stream described in acquisition request;
The destination channel media stream service for receiving the video monitoring equipment multiplexing the first service link transmission sets up notice message,
First service link is the transmission link that the video monitoring client terminal and the video monitoring equipment have been set up, the industry
Business is set up notice message and carries destination channel mark, the private network IP address of the video monitoring equipment and the video monitoring equipment
Send the expectation private network port numbers of destination channel Media Stream and turn through video monitoring equipment outlet NAT gateway equipment
Change public network IP address that the private network IP address obtains and the expectation public network port number that private network port numbers are obtained is expected in conversion;
It is determined that the destination channel that the business is set up in notice message is designated the gap marker of acquisition request Media Stream
Afterwards, send drain message to the public network IP address and the expectation public network port number, set up the video monitoring client terminal and
Second service link of the video monitoring equipment;
Receive the destination channel media stream data that the video monitoring equipment is sent based on the second service link.
3. a kind of multipath media stream order method, is applied to video surveillance network, and the video surveillance network includes video monitoring
Client, video monitoring equipment, video monitoring server and NAT gateway equipment, the video monitoring equipment manages multiple passages,
Each passage one image capture device of correspondence, the video monitoring server is located at public network, the video monitoring client terminal and
Video monitoring equipment is located at different private networks, is connected with public network by NAT gateway equipment respectively, it is characterised in that methods described
Including:
Video monitoring client terminal to video monitoring server sends acquisition request video monitoring equipment destination channel media stream service
Request message;
The video monitoring server query monitor relation table, checks the video monitoring client terminal and the video monitoring equipment
Whether media monitoring relation is had built up, if it is not, then the video monitoring client terminal and the video monitoring equipment carry out NAT
UDP simple traversals STUN detection and STUN pass through, set up between the video monitoring client terminal and the video monitoring equipment
Transmission link, the video monitoring equipment issues the video monitoring client terminal the destination channel Media Stream, if it is,
Then continue;
Video monitoring server sends the message of the first service link of multiplexing to video monitoring equipment and video monitoring client terminal, and
And send the destination channel media stream service request message of the video monitoring client terminal request to video monitoring equipment;
Video monitoring equipment receives destination channel media stream service request message, and receives for being multiplexed the logical of the first service link
Know message, first service link is the chain that the video monitoring equipment and the video monitoring client terminal have been set up
Road;
Video monitoring equipment uses the video monitoring equipment side IP address and port numbers of the first service link as source IP ground
Location and source port number, using the IP address and port numbers of the video monitoring client terminal side of the first service link as purpose IP
Address and destination slogan, send destination channel media stream service and set up notice message to the video monitoring client terminal, described
Business sets up notice message and carries the private network IP address of the video monitoring equipment, expects private network port numbers and destination channel
Mark, it is described to expect that private network port numbers are the desired use of private networks that the video monitoring equipment sends destination channel Media Stream
Port numbers;
The NAT gateway equipment of outlet that video monitoring equipment is located fills the private network IP ground in the business sets up notice message
The expectation public network port number that public network IP address that location is converted to, the expectation private network port numbers are converted to;
Video monitoring client terminal receives the business and sets up notice message, if the gap marker carried in the message and request
Gap marker it is identical, then set up public network IP address described in notice message and the expectation public network port number to the business and send out
Business drain message is sent, the second service link of the video monitoring equipment and the video monitoring client terminal is set up, it is described to draw
Stream packet carries destination channel mark;
Video monitoring equipment utilizes second service link, and the Media Stream for sending the destination channel gives video monitoring visitor
Family end.
4. a kind of video monitoring equipment, in video monitoring networking, the video monitoring equipment manages multiple passages, and each leads to
Road one image capture device of correspondence, the video monitoring networking also includes video monitoring client terminal and network address translation NAT
Gateway device, the video monitoring client terminal and video monitoring equipment be located at different private networks, respectively by NAT gateway equipment with
Public network is connected, it is characterised in that include:
Receiving unit, for receiving destination channel media stream service request message, and receives for being multiplexed the first service link
Notice message, first service link is the chain that the video monitoring equipment and the video monitoring client terminal have been set up
Road;
Transmitting element, for using the video monitoring equipment side IP address and port numbers of the first service link as source IP ground
Location and source port number, using the IP address and port numbers of the video monitoring client terminal side of the first service link as purpose IP
Address and destination slogan, send destination channel media stream service and set up notice message to the video monitoring client terminal, described
Business sets up notice message and carries the private network IP address of the video monitoring equipment, expects private network port numbers, the expectation private network
Port numbers are that the desired use of private network port numbers and target of the video monitoring equipment transmission destination channel Media Stream are logical
Road identify and by the video monitoring equipment outlet NAT gateway equipment conversion after the corresponding public network IP address of private network IP address,
Expect the corresponding expectation public network port number of private network port numbers;
Unit is set up, for receiving the video monitoring client terminal public network IP address and the expectation public network port are sent to
Number business drain message, set up the second service link of the video monitoring equipment and the video monitoring client terminal, it is described
Drain message carries destination channel mark;
The transmitting element, the Media Stream for being additionally operable to be sent using second service link destination channel is regarded to described
Frequency monitor client.
5. a kind of video monitoring client terminal, in video monitoring networking, the video monitoring networking also sets including video monitoring
Standby and NAT gateway equipment, the video monitoring equipment manages multiple passages, each passage one image capture device of correspondence, institute
State video monitoring client terminal and video monitoring equipment is located at different private networks, be connected with public network by NAT gateway equipment respectively, its
It is characterised by, including:
Transmitting element, for sending the message of video monitoring equipment destination channel Media Stream described in acquisition request;
Receiving unit, for receiving the video monitoring equipment destination channel media stream service that the first service link sends is multiplexed
Notice message is set up, first service link is the biography that the video monitoring client terminal and the video monitoring equipment have been set up
Transmission link, the business sets up notice message and carries destination channel mark, the private network IP address of the video monitoring equipment and institute
State video monitoring equipment and send the expectation private network port numbers of destination channel Media Stream and through video monitoring equipment outlet
The public network IP address and conversion that the NAT gateway equipment conversion private network IP address is obtained expects that the expectation that private network port numbers are obtained is public
Net port numbers;
Unit is set up, for it is determined that the destination channel that the business is set up in notice message is designated acquisition request media
After the gap marker of stream, drain message is sent to the public network IP address and the expectation public network port number, set up the video
Second service link of monitor client and the video monitoring equipment;
The receiving unit, is additionally operable to receive the destination channel media that the video monitoring equipment is sent based on the second service link
Flow data.
6. a kind of video surveillance network, the video surveillance network includes video monitoring client terminal, video monitoring equipment, video prison
Control server and NAT gateway equipment, the video monitoring equipment manages multiple passages, and each passage one image acquisition of correspondence sets
Standby, the video monitoring server is located at public network, and the video monitoring client terminal and video monitoring equipment are located at different private networks,
It is connected with public network by NAT gateway equipment respectively, it is characterised in that include:
Video monitoring client terminal, for sending acquisition request video monitoring equipment destination channel Media Stream to video monitoring server
Service request message;
The video monitoring server, for query monitor relation table, checks the video monitoring client terminal and video prison
Whether control equipment has built up media monitoring relation, if it is not, then the video monitoring client terminal and the video monitoring equipment
The detection of UDP simple traversals STUN and STUN for carrying out NAT is passed through, and sets up the video monitoring client terminal and the video monitoring sets
Transmission link between standby, the video monitoring equipment issues the video monitoring client terminal the destination channel Media Stream,
If it is, continuing;
The video monitoring server, is additionally operable to send the first business chain of multiplexing to video monitoring equipment and video monitoring client terminal
The message on road, and send the destination channel media stream service request of the video monitoring client terminal request to video monitoring equipment
Message;
Video monitoring equipment, for receiving destination channel media stream service request message, and receives for being multiplexed the first business chain
The notice message on road, first service link is the biography that the video monitoring equipment and the video monitoring client terminal have been set up
Transmission link;
The video monitoring equipment, is also used for the video monitoring equipment side IP address and port numbers of the first service link
As source IP address and source port number, using the IP address and port numbers of the video monitoring client terminal side of the first service link
As purpose IP address and destination slogan, send destination channel media stream service to the video monitoring client terminal and set up notice
Message, the business set up notice message carry the video monitoring equipment private network IP address, expect private network port numbers and
Destination channel is identified, described to expect that private network port numbers are that the desired of video monitoring equipment transmission destination channel Media Stream makes
Private network port numbers;
The NAT gateway equipment of outlet that the video monitoring equipment is located, for filling institute in setting up notice message in the business
State the expectation public network port number that the public network IP address, the expectation private network port numbers that private network IP address is converted to is converted to;
The video monitoring client terminal, is additionally operable to receive the business and sets up notice message, if what is carried in the message is logical
Road mark is identical with the gap marker of request, then set up public network IP address described in notice message and the expectation to the business
Public network port number sends business drain message, sets up the second business of the video monitoring equipment and the video monitoring client terminal
Link, the drain message carries destination channel mark;
The video monitoring equipment, is additionally operable to be sent using second service link Media Stream of the destination channel to institute
State video monitoring client terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410406922.2A CN104168457B (en) | 2014-08-18 | 2014-08-18 | Method and device for playing multiple media streams on demand |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410406922.2A CN104168457B (en) | 2014-08-18 | 2014-08-18 | Method and device for playing multiple media streams on demand |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104168457A CN104168457A (en) | 2014-11-26 |
CN104168457B true CN104168457B (en) | 2017-05-17 |
Family
ID=51912062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410406922.2A Active CN104168457B (en) | 2014-08-18 | 2014-08-18 | Method and device for playing multiple media streams on demand |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104168457B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105721625A (en) * | 2016-02-03 | 2016-06-29 | 迈普通信技术股份有限公司 | Method for implementing communication between private network devices, private network devices and center end device |
CN105933198B (en) * | 2016-04-21 | 2020-01-14 | 浙江宇视科技有限公司 | Device for establishing direct connection VPN tunnel |
CN106412505A (en) * | 2016-09-29 | 2017-02-15 | 浙江大华技术股份有限公司 | Video display method and apparatus in P2P mode |
CN106454416B (en) * | 2016-10-21 | 2019-12-13 | 浙江宇视科技有限公司 | synchronous playback method and device |
CN107027007B (en) * | 2017-04-12 | 2019-07-05 | 南京三宝弘正视觉科技有限公司 | A kind of video sharing method and system |
CN110366008B (en) * | 2018-03-26 | 2021-10-08 | 阿里巴巴(中国)有限公司 | Multimedia resource request identification method, device and storage medium |
CN110891185A (en) * | 2019-11-21 | 2020-03-17 | 深圳警翼软件技术有限公司 | Method for realizing distributed storage of acquisition workstations in internet scene without public network IP address |
CN112449111A (en) * | 2020-11-13 | 2021-03-05 | 珠海大横琴科技发展有限公司 | Monitoring equipment processing method and device |
CN114363665B (en) * | 2021-12-16 | 2023-11-07 | 深圳市捷视飞通科技股份有限公司 | Multi-service code stream pushing method, system, computer equipment and storage medium |
CN114866854B (en) * | 2022-04-20 | 2023-12-05 | 杭州博联智能科技股份有限公司 | Video access mode dynamic allocation method, system, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094159A (en) * | 2007-07-18 | 2007-12-26 | 中兴通讯股份有限公司 | Method for penetrating through private network of media stream |
CN101465858A (en) * | 2008-12-31 | 2009-06-24 | 中兴通讯股份有限公司 | Method for implementing private network penetration of monitoring business, network appliance and server |
CN103716589A (en) * | 2013-12-26 | 2014-04-09 | 浙江宇视科技有限公司 | Method and device for reducing NVR live forwarding relay |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102148879A (en) * | 2010-10-22 | 2011-08-10 | 华为技术有限公司 | Port mapping method and device and communication system |
-
2014
- 2014-08-18 CN CN201410406922.2A patent/CN104168457B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094159A (en) * | 2007-07-18 | 2007-12-26 | 中兴通讯股份有限公司 | Method for penetrating through private network of media stream |
CN101465858A (en) * | 2008-12-31 | 2009-06-24 | 中兴通讯股份有限公司 | Method for implementing private network penetration of monitoring business, network appliance and server |
CN103716589A (en) * | 2013-12-26 | 2014-04-09 | 浙江宇视科技有限公司 | Method and device for reducing NVR live forwarding relay |
Also Published As
Publication number | Publication date |
---|---|
CN104168457A (en) | 2014-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104168457B (en) | Method and device for playing multiple media streams on demand | |
CN105656680B (en) | Network camera control method and device | |
KR101758681B1 (en) | Communication system, and data transmitting method in the system | |
CN103957287A (en) | Internet of things device P2P connection method based on NAT penetration adapter | |
CN102843442B (en) | Method for configuring networked cameras | |
CN102404396B (en) | Method, device and system for identifying peer-to-peer (P2P) flow and equipment | |
CN109391704B (en) | Cross-private-network access method and device for video monitoring equipment | |
US20130339509A1 (en) | Networking systems | |
CN105847343B (en) | Public network information detection method, apparatus and system for point-to-point transmission | |
CN102143172B (en) | Method and equipment for transmitting video data | |
CN105553809B (en) | A kind of STUN tunnel management method and device | |
CN106716939A (en) | Improved qos in data stream delivery | |
CN104243520A (en) | Remote monitoring method, device and system | |
CN103036789B (en) | File transmitting method, device and network gateway devices | |
CN106331195B (en) | Data receiving and sending method and device | |
KR100844380B1 (en) | Appratus for managing subscriber terminal and method thereof, recording medium for realizing the same | |
EP2690832B1 (en) | Communication device, communication system, and communication method | |
CN112019563B (en) | Video data forwarding and transmitting system and method | |
CN106789999B (en) | Method and device for tracking video source | |
CN104506405A (en) | Method and device for cross-domain access | |
CN102075588A (en) | Method and system for realizing network address translation (NAT) transversing and equipment | |
CN102904761A (en) | NVR (network video recorder) stacking method and NVR | |
CN104410841A (en) | MAC (media access control) layer based connection method and device | |
KR101828546B1 (en) | Surveillance system | |
JP6317630B2 (en) | Tunnel connection device, tunnel termination device, connection control method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |