CN102469079B - Method, system and device for transmitting live streams - Google Patents
Method, system and device for transmitting live streams Download PDFInfo
- Publication number
- CN102469079B CN102469079B CN201010539393.5A CN201010539393A CN102469079B CN 102469079 B CN102469079 B CN 102469079B CN 201010539393 A CN201010539393 A CN 201010539393A CN 102469079 B CN102469079 B CN 102469079B
- Authority
- CN
- China
- Prior art keywords
- priority
- live
- live stream
- dynamic priority
- camera
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000012544 monitoring process Methods 0.000 claims abstract description 82
- 238000012545 processing Methods 0.000 claims abstract description 29
- 238000012423 maintenance Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 230000032683 aging Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method, a system and a device for transmitting live streams. The method comprises the following steps that: a video manager (VM) receives a live monitoring request from a video coder (VC), acquires the dynamic priorities of the live streams, and transmits the live monitoring request carrying the dynamic priorities of the live streams to an EC; the EC makes the dynamic priorities carried in the live streams, and transmits the live streams; and network equipment receives the live streams, and transmits the live streams according to the dynamic priories of the live stream when a network is congested. By the invention, the live streams can be subjected to differential quality of service (QoS) processing, and the packet loss of the live streams is reduced.
Description
Technical Field
The present invention relates to the field of video surveillance technologies, and in particular, to a method, a system, and an apparatus for transmitting a live stream.
Background
With the development of video and audio data encoding and decoding technology and network storage technology, video monitoring technology has also been developed. The video monitoring technology is a key technology in a security system, digitalizes image data of a camera, transmits and stores the digitalized image data on an Internal network, and a video monitoring client selects the image data to download and play according to needs, so that the aim of remote monitoring is fulfilled.
Fig. 1 is a schematic structural diagram of a conventional Video monitoring system, which includes a camera, a Video Encoder (EC), a Video Management server (VM), a Video Client (VC), a network device, and the like. The EC can encode the analog video signal generated by the camera to generate digital image data, and can send the image data to VC by unicast or multicast according to the request. The VM is used for centrally managing all devices in the video monitoring system, scheduling various video monitoring services, and managing and allocating monitoring user rights, and the VM has a connection relationship with all devices in the system (the connection relationship is not shown in fig. 1). The VC can choose to play either the live stream or the playback stream to enable real-time monitoring or viewing of historical video playback. The network device is used for forwarding video streams in the system, and the video streams comprise live streams, playback streams and the like.
When selecting to order a live stream of a specified EC and camera connection channel in real time, the VC firstly sends an authentication request to the VM; after the VM passes the authentication of the VC, sending an instruction to a specified EC; the EC encapsulates the image data into a live stream according to the instruction, wherein the destination IP address of the live stream is the network port IP address of the VC or the multicast IP address which is allocated to the VC by the VM in advance, and the EC also carries the priority of a Differential Service Code Point (DSCP) which is deployed in advance in the live stream. And the EC sends the live stream out, when the network equipment in the monitoring system receives the live stream, the queue scheduling and congestion processing are carried out according to the DSCP priority carried by the live stream, the live stream is added into the queue corresponding to the DSCP priority, and the live stream is forwarded. The live stream is finally forwarded to the VC, which decodes and plays it directly.
The DSCP priority of the live stream is higher than that of other data service streams transmitted in the network, so that the live stream can be transmitted preferentially; however, DSCP priorities of all live streams transmitted in the system are the same, and the network device performs QoS processing only according to the DSCP priorities when forwarding the live streams, and does not distinguish each live stream. In view of the foregoing, when the network is congested, such as when the burst live video demand exceeds the expected value, the network device will cause all live streams to be dropped when congestion processing is performed, thereby affecting the live monitoring traffic of all VCs.
Disclosure of Invention
The invention provides a method for transmitting live streams, which can perform differential OoS processing on the live streams, thereby reducing the packet loss rate of the live streams.
The invention also provides a system, a VM, an EC and network equipment for transmitting the live stream, which can perform differential OoS processing on the live stream, thereby reducing the packet loss rate of the live stream.
The technical scheme of the invention is realized as follows:
a method of transmitting a live stream for use in a video surveillance system including a camera, an EC, a VM, a VC, and a network device, the method comprising:
the VM stores the first priority of the VC, the second priority of the mark of a communication channel between the EC and the camera, and the corresponding relation between the combination of the first priority and the second priority and the dynamic priority of the live stream;
a VM receives a live monitoring request from a VC, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel communicated by an EC and a camera which request monitoring; the VM respectively acquires a first priority of the VC and a second priority of the mark of the channel where the EC and the camera are communicated through the mark of the VC and the mark of the channel where the EC and the camera are communicated, and searches the corresponding relation through the acquired first priority and second priority to acquire a dynamic priority of a corresponding live stream; the VM carries the dynamic priority of the live stream in a live monitoring request, and forwards the live monitoring request to the EC;
the EC carries the dynamic priority in a live stream in a channel communicated with the EC and the camera which request to monitor, and sends the live stream;
the network equipment receives the live stream, and when network congestion occurs, the live stream is forwarded according to the dynamic priority of the live stream.
A system for transmitting a live stream, comprising a VM, an EC, and a network device; wherein,
the VM is used for storing the first priority of the VC, the second priority of the mark of a channel communicated with the EC and the camera, and the corresponding relation between the combination of the first priority and the second priority and the live stream dynamic priority; receiving a live monitoring request from a VC, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel communicated with an EC and a camera, which are requested to be monitored, respectively acquiring a first priority of the VC and a second priority of the identifier of the channel communicated with the EC and the camera through the identifier of the VC and the identifier of the channel communicated with the EC and the camera, searching the corresponding relation through the acquired first priority and the acquired second priority, and acquiring a dynamic priority of a corresponding live stream; carrying the dynamic priority of the live stream in a live monitoring request, and forwarding the live monitoring request to the EC;
the EC is used for carrying the dynamic priority carrying in a live stream in a channel communicated with the EC and the camera which request to monitor, and sending the live stream;
and the network equipment is used for receiving the live stream, and forwarding the live stream according to the dynamic priority of the live stream when network congestion occurs.
A VM comprises a corresponding relation storage module, a request receiving module, a searching module and a request forwarding module; wherein,
the corresponding relation storage module is used for storing the corresponding relation between the first priority of the VC, the second priority of the mark of the communication channel between the EC and the camera, the combination of the first priority and the second priority and the dynamic priority of the live stream;
the request receiving module is used for receiving a live monitoring request from the VC, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel communicated between the EC and the camera;
the searching module is used for respectively acquiring a first priority of the VC and a second priority of the EC and the identification of the channel communicated with the camera through the identification of the VC and the identification of the channel communicated with the camera, searching the corresponding relation through the acquired first priority and the acquired second priority, and acquiring the corresponding dynamic priority of the live stream;
the request forwarding module is configured to carry the dynamic priority of the live stream in the live monitoring request received by the receiving module, and forward the live monitoring request to the EC.
An EC, comprising: an adding module and a sending module; wherein,
the adding module is used for carrying dynamic priority in a live stream in a channel where the EC and the camera which request monitoring are communicated according to a live monitoring request sent by the VM;
and the sending module is used for sending the live stream carrying the dynamic priority.
A network device, comprising: the device comprises a receiving module, a judging module and a forwarding module; wherein,
the receiving module is used for receiving the live stream carrying the corresponding dynamic priority;
the judging module is used for judging whether network congestion occurs or not, and when the network congestion occurs, the forwarding module is indicated to perform forwarding processing;
and the forwarding module is used for forwarding the live stream according to the dynamic priority of the live stream according to the indication of the judging module.
Therefore, the method, the system and the device for transmitting the live stream dynamically generate the dynamic priority of the live stream according to the importance of the video monitoring user and the importance of the monitoring area, and carry the dynamic priority in the live stream transmitted in the monitoring system; when the forwarding device receives the live stream, if network congestion occurs, forwarding processing can be performed on the live stream according to the dynamic priority of the live stream, so that differential OoS processing on the live stream is realized, and the packet loss rate of the live stream is reduced.
Drawings
FIG. 1 is a schematic diagram of a conventional video surveillance system;
FIG. 2 is a flow chart of a method for transmitting live streams according to the present invention;
FIG. 3 is a flow chart of a process of encapsulating a live stream in an embodiment of the invention;
FIG. 4 is a flow chart of QoS processing for a live stream in an embodiment of the present invention;
FIG. 5 is a schematic diagram of a system for transmitting live streams according to the present invention;
FIG. 6 is a schematic structural diagram of a VM proposed by the present invention;
FIG. 7 is a schematic diagram of the structure of an EC according to the present invention;
fig. 8 is a schematic structural diagram of a network device according to the present invention.
Detailed Description
The invention provides a method for transmitting a live stream, which can ensure that services can be distinguished under the condition of limited bandwidth resources by distinguishing important monitoring clients and important monitoring areas and carrying out stream-based QoS (quality of service) processing on the live stream of a monitoring service according to a strategy, thereby minimizing the influence of the bandwidth resources on the live stream.
Fig. 2 is a flowchart of a method for transmitting a live stream according to the present invention, which includes the following steps:
step 201: the VM stores the first priority of the VC, the second priority of the mark of a communication channel between the EC and the camera, and the corresponding relation between the combination of the first priority and the second priority and the dynamic priority of the live stream;
step 202: a VM receives a live monitoring request from a VC, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel communicated by an EC and a camera which request monitoring; the VM respectively acquires a first priority of the VC and a second priority of the mark of the channel where the EC and the camera are communicated through the mark of the VC and the mark of the channel where the EC and the camera are communicated, and searches the corresponding relation through the acquired first priority and second priority to acquire a dynamic priority of a corresponding live stream; the VM carries the dynamic priority of the live stream in a live monitoring request, and forwards the live monitoring request to the EC;
step 203: the EC carries the dynamic priority in a live stream in a channel communicated with the EC and the camera which request to monitor, and sends the live stream;
step 204: the network equipment receives the live stream, and when network congestion occurs, the live stream is forwarded according to the dynamic priority of the live stream.
The following detailed description refers to specific embodiments. The present embodiment can be divided into the following stages:
the first stage is as follows: the VM stores the priority and the corresponding relation:
the VM prestores a first priority of the VC, a second priority of the EC and a channel identifier communicated with the camera (the channel identifier is in one-to-one correspondence with a monitoring area of the EC), and a corresponding relation between a combination of the first priority and the second priority and a live stream dynamic priority. For example, a first priority of VC may be classified by importance as a1, B1, and C1, and a second priority of EC identified by the channel connecting the camera may be classified by importance as a2, B2, and C2. The correspondence of the combination of the first priority and the second priority to the dynamic priority of the live stream is shown in table 1 below:
TABLE 1
As shown in table 1, there are 9 cases in the combination of the first priority and the second priority, and there are 9 dynamic priorities for the live stream. 9 dynamic priorities can be set from high to low as: A1A2, A1B2, A1C2, B1A2, B1B2, B1C2, C1A2, C1B2, and C1C 2.
It should be noted that the correspondence between the combination of the first priority and the second priority and the live stream dynamic priority is only one mode proposed in this embodiment, and other algorithms may be adopted to set the correspondence between the combination of the first priority and the second priority and the live stream dynamic priority.
And a second stage: EC encapsulates live stream:
fig. 3 is a flowchart of a process of encapsulating a live stream according to an embodiment of the present invention, where the process includes the following steps:
step 301: when the VC requests a live video of a channel for connecting an EC and a camera, sending a live monitoring request to the VM, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel for requesting monitoring of the EC and the camera;
step 302: the VM acquires a first priority of the VC according to the identification of the VC, wherein the acquired first priority is A1; acquiring a second priority of the identifications of the channels communicated with the EC and the camera according to the identifications of the channels communicated with the EC and the camera which request monitoring, wherein the acquired second priority is B2; according to the corresponding relation shown in the first priority A1 and the second priority B2 lookup table 1, acquiring that the dynamic priority of the corresponding live stream is A1B 2;
step 303: the VM carries the dynamic priority A1B2 in a live monitoring request, and forwards the live monitoring request to a corresponding EC;
step 304: if the EC supports the dynamic priority provided by the invention, replying a request success message to the VM; if not, a request failure message is replied to the VM.
Step 305: and after the EC replies a request success message to the VM, carrying the dynamic priority A1B2 in the live stream of the EC and camera connection channel requested by the VC, and sending the live stream. In addition, the EC may also carry the DSCP priority of the live stream (e.g., DSCP priority of 32) in the live stream for compatibility with existing processing methods. If the EC does not support the dynamic priority proposed by the present invention, the EC adopts the existing processing mode, i.e. carries the DSCP priority of the live stream in the live stream, and sends out the live stream.
After the above process, the second phase of the embodiment is completed, that is, the dynamic priority of the live stream defined by the present invention is carried in the live stream, and the live stream is sent out.
And a third stage: the forwarding device performs QoS processing on the live stream:
at this stage, after receiving the live stream transmitted in the network, the network device in the monitoring system performs forwarding processing on the live stream according to the dynamic priority of the live stream, thereby implementing differential QoS processing on the live stream.
Fig. 4 is a flowchart of QoS processing on a live stream in an embodiment of the present invention, where the QoS processing includes the following steps:
step 401: and the network equipment receives the live stream and adds the live stream into the corresponding queue according to the DSCP priority carried in the live stream.
Step 402: when network congestion occurs, the network device classifies the streams according to the characteristics of the monitored live stream, and records a quintuple table entry corresponding to the live stream, wherein the quintuple table entry comprises: source address, source port, destination address, destination port, and dynamic priority. The quintuple table entry of the live stream is a temporary table entry and exists only when the monitoring network is congested; when the network congestion disappears, the quintuple table entry of the live stream is deleted after the set aging timer is overtime, so that the network oscillation can be avoided.
As table 2 illustrates an example of a five-tuple table entry:
TABLE 2
Step 403: the network device determines whether the sum of the bandwidths required by all live streams in the queue (denoted as BW2) is greater than the bandwidth provided by the network (denoted as BW1), and determines that BW2 > BW1 because there is network congestion at this time, and continues to perform step 404.
Step 404: the network device searches the quintuple table shown in the table 2 to obtain the information of the live stream with the lowest dynamic priority in the queue. In table 2, there are 2 live streams with the lowest dynamic priority, namely live stream 06 and live stream 07.
Step 405: the network device further selects a live stream requiring the largest bandwidth from the live stream 06 and the live stream 07, in this embodiment, the live stream 07 requiring the largest bandwidth, and the network device configures and executes a QoS Policy, which is called Policy 1(Policy 1), where the content of Policy 1 is: the live stream 07 is discarded.
Step 406: the network equipment judges whether the sum (BW2) of the bandwidths required by the residual live streams in the queue is larger than the bandwidth (BW1) provided by the network again, and if so, the information of the live stream with the lowest dynamic priority in the queue at the moment is acquired. At this time, if the dynamic priority is the live stream 06, the network device reconfigures and executes a QoS Policy, which is called Policy 2, where the content of Policy 2 is: the live stream 06 is discarded.
Step 407: the network device judges whether the sum of the bandwidths (BW2) needed by the remaining live flows in the queue is larger than the bandwidth (BW1) provided by the network again, if not, the timer of the five-tuple entry is set and started, and when the timer is overtime, if no newly added live flows, namely BW2 is not larger than BW1 all the time, the five-tuple entry is deleted. The network device can also set and start the timer of the QoS strategy, and delete the QoS strategy when the timer of the QoS strategy is overtime.
In addition, in other embodiments of the present invention, when network congestion occurs, if more than 2 live streams with the lowest dynamic priority exist in the queue, the network device may also select the live stream with the latest queue among the live streams for discarding; that is, if more than 2 live streams with the lowest dynamic priority are found in the queue, the QoS policy is set as follows: and discarding the live stream which arrives at the latest queue in the live streams with the lowest dynamic priority in the more than 2 live streams.
In addition, in other embodiments of the present invention, when network congestion occurs, the network device may not drop the live stream with the lowest dynamic priority; but the DSCP priority of the live stream with the lowest dynamic priority is modified to be the lowest, so that the live stream is transferred into the queue corresponding to the lowest DSCP priority. In this way, these live streams can be forwarded when the user bandwidth is not fully used.
Through the above process, the network device realizes the differentiated QoS processing of the live stream. In the above process, the network device follows the following processing policy for the live stream: for live streams with different dynamic priorities, the bandwidth resources of the live streams with high dynamic priorities are preferentially ensured; for live streams with the same dynamic priority, preferentially ensuring bandwidth resources of the live streams with less required bandwidth; for live streams with the same dynamic priority and the same required bandwidth, live streams arriving earlier in the queue (i.e. live streams with longer quintuple entries setup time) are preferentially guaranteed, and the live stream arriving latest in the queue is marked and discarded.
In addition, if the EC in the system does not support the function of encapsulating the dynamic priority, the network device may not extract the dynamic priority corresponding to the live stream when receiving the live stream; in this case, the network device may default the dynamic priority of the live stream to a predetermined value (e.g., B1C2), and then record the information of the live stream into the five-tuple entry.
The present invention further provides a system for transmitting a live stream, and as shown in fig. 5, the system for transmitting a live stream according to the present invention is schematically configured, and includes a VM, an EC, and a network device; wherein,
the VM 501 is used for storing the first priority of the VC, the second priority of the mark of a channel communicated with the EC and the camera, and the corresponding relation between the combination of the first priority and the second priority and the dynamic priority of the live stream; receiving a live monitoring request from a VC, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel communicated with an EC and a camera, which are requested to be monitored, respectively acquiring a first priority of the VC and a second priority of the identifier of the channel communicated with the EC and the camera through the identifier of the VC and the identifier of the channel communicated with the EC and the camera, searching the corresponding relation through the acquired first priority and the acquired second priority, and acquiring a dynamic priority of a corresponding live stream; carry the dynamic priority of the live stream in a live monitoring request, forward the live monitoring request to the EC 502;
the EC 502 is configured to carry the dynamic priority in a live stream in a channel connected between the EC and the camera, and send the live stream;
the network device 503 is configured to receive a live stream, and when network congestion occurs, forward the live stream according to the dynamic priority of the live stream.
The present invention further provides a VM, as shown in fig. 6, which is a schematic structural diagram of the VM provided in the present invention, and the VM includes a correspondence saving module 601, a request receiving module 602, a searching module 603, and a request forwarding module 604; wherein,
the correspondence storage module 601 is configured to store a correspondence between a first priority of the VC, a second priority of a channel identifier where the EC and the camera are connected, and a combination of the first priority and the second priority, and a dynamic priority of the live stream;
the request receiving module 602 is configured to receive a live monitoring request from a VC, where the live monitoring request includes an identifier of the VC and an identifier of a channel through which an EC and a camera that request monitoring communicate;
the searching module 603 is configured to obtain a first priority of the VC and a second priority of the EC and the identification of the channel where the camera is connected through the identification of the VC and the identification of the channel where the EC and the camera are connected, respectively, search the correspondence through the obtained first priority and the obtained second priority, and obtain a dynamic priority of a corresponding live stream;
the request forwarding module 604 is configured to carry the dynamic priority of the live stream in the live monitoring request received by the receiving module 602, and forward the live monitoring request to the EC.
The present invention further provides an EC, as shown in fig. 7, which is a schematic structural diagram of the EC provided by the present invention, and the EC includes: an adding module 701 and a sending module 702; wherein,
the adding module 701 is configured to carry a dynamic priority in a live stream in a channel where the EC and the camera that request monitoring communicate with each other according to a live monitoring request sent by the VM;
the sending module 702 is configured to send the live stream carrying the dynamic priority.
The present invention further provides a network device, as shown in fig. 8, which is a schematic structural diagram of the network device provided by the present invention, and the network device includes: a receiving module 801, a judging module 802 and a forwarding module 803; wherein,
the receiving module 801 is configured to receive a live stream carrying a corresponding dynamic priority;
the determining module 802 is configured to determine whether a network congestion occurs, and when the network congestion occurs, instruct the forwarding module 803 to perform forwarding processing;
the forwarding module 803 is configured to forward the live stream according to the dynamic priority of the live stream according to the instruction of the determining module 802.
In the foregoing network device, the forwarding module 803 may include: the table entry maintenance submodule and the processing submodule; wherein,
the table entry maintenance submodule may be configured to record a quintuple table entry of each live stream, where the quintuple table entry includes a source address, a source port, a destination address, a destination port, and a dynamic priority; when a timer setting instruction from the processing submodule is received, a timer of the quintuple table item is set and started, and when the timer of the quintuple table item is overtime, the quintuple table item is deleted;
the processing submodule is used for judging whether the sum of the bandwidths required by all the live streams is larger than the bandwidth provided by the network, if so, searching a quintuple table item, acquiring the information of the live stream with the lowest dynamic priority, and executing a QoS strategy according to the information, wherein the QoS strategy is as follows: discarding the live stream with the lowest dynamic priority, or modifying the DSCP priority of the live stream with the lowest dynamic priority to be the lowest; and re-judging whether the sum of the bandwidths required by all the remaining live streams is larger than the bandwidth provided by the network or not, and sending a timer setting instruction to the table entry maintenance submodule until the judgment result is not larger than the bandwidth provided by the network.
In summary, the method, the system and the device for transmitting the live stream provided by the invention can dynamically generate the dynamic priority of the live stream according to the importance of the video monitoring user and the importance of the monitoring area, and the EC carries the dynamic priority in the live stream transmitted in the monitoring system; when the forwarding device receives the live stream, if the network congestion occurs, the forwarding device can forward the live stream according to the dynamic priority of the live stream, so that differential OoS processing is performed on the live stream, and the phenomenon that live stream service is damaged at one time when the network congestion occurs in the existing system is solved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for transmitting a live stream, applied to a video surveillance system comprising a video camera, a video encoder EC, a video management server VM, a video surveillance user VC and network devices, characterized in that it comprises:
the VM stores the first priority of the VC, the second priority of the mark of a communication channel between the EC and the camera, and the corresponding relation between the combination of the first priority and the second priority and the dynamic priority of the live stream;
a VM receives a live monitoring request from a VC, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel communicated by an EC and a camera which request monitoring; the VM respectively acquires a first priority of the VC and a second priority of the mark of the channel where the EC and the camera are communicated through the mark of the VC and the mark of the channel where the EC and the camera are communicated, and searches the corresponding relation through the acquired first priority and second priority to acquire a dynamic priority of a corresponding live stream; the VM carries the dynamic priority of the live stream in a live monitoring request, and forwards the live monitoring request to the EC;
the EC carries the dynamic priority in a live stream in a channel communicated with the EC and the camera which request to monitor, and sends the live stream;
the network equipment receives the live stream, and when network congestion occurs, the live stream is forwarded according to the dynamic priority of the live stream.
2. The method of claim 1, wherein the EC further carries Differentiated Services Code Point (DSCP) priorities of live streams in the live streams before sending the live streams;
after receiving the live stream, the network equipment forwards the live stream according to the dynamic priority of the live stream when network congestion occurs; and when no network congestion occurs, forwarding the live stream according to the DSCP priority of the live stream.
3. The method of claim 2, wherein when congestion occurs in the network, the network device performs forwarding processing on the live stream according to the dynamic priority of the live stream, and comprises:
A. recording a five-tuple table entry of each live stream, wherein the five-tuple table entry comprises a source address, a source port, a destination address, a destination port and a dynamic priority;
B. judging whether the sum of the bandwidths required by all the live streams is larger than the bandwidth provided by the network, if so, executing the step C; if not, setting and starting a timer of the quintuple table entry, and deleting the quintuple table entry when the timer of the quintuple table entry is overtime;
C. searching the quintuple table item, acquiring the information of the live stream with the lowest dynamic priority, executing a QoS strategy by using the information, and continuously executing the step B;
the QoS strategy is as follows: the live stream with the lowest dynamic priority is dropped or the DSCP priority of the live stream with the lowest dynamic priority is modified to be the lowest.
4. The method according to claim 3, wherein in step C, when more than 2 live streams with the lowest dynamic priority are found, the live streams with the lowest dynamic priority in the QoS policy are:
the live stream with the largest bandwidth is required in the live streams with the lowest dynamic priority;
or, the latest live stream is reached from among the 2 or more live streams with the lowest dynamic priority.
5. The method of claim 3, wherein the step C further comprises, after the QoS policy is executed:
and setting and starting a timer of the QoS strategy, and deleting the QoS strategy when the timer of the QoS strategy is overtime.
6. A system for transmitting a live stream comprising a video management server VM, a video encoder EC and network devices; wherein,
the VM is used for storing a first priority of a video monitoring user VC, a second priority of a channel mark communicated with the EC and the camera, and a corresponding relation between a combination of the first priority and the second priority and a live stream dynamic priority; receiving a live monitoring request from a VC, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel communicated with an EC and a camera, which are requested to be monitored, respectively acquiring a first priority of the VC and a second priority of the identifier of the channel communicated with the EC and the camera through the identifier of the VC and the identifier of the channel communicated with the EC and the camera, searching the corresponding relation through the acquired first priority and the acquired second priority, and acquiring a dynamic priority of a corresponding live stream; carrying the dynamic priority of the live stream in a live monitoring request, and forwarding the live monitoring request to the EC;
the EC is used for carrying the dynamic priority in a live stream in a channel communicated with the EC and the camera which request to monitor, and sending the live stream;
and the network equipment is used for receiving the live stream, and forwarding the live stream according to the dynamic priority of the live stream when network congestion occurs.
7. A video management server VM is characterized in that the VM comprises a corresponding relation storage module, a request receiving module, a searching module and a request forwarding module; wherein,
the corresponding relation storage module is used for storing the corresponding relation between the first priority of the video monitoring user VC, the second priority of the channel identification of the video encoder EC and the video camera, and the combination of the first priority and the second priority and the live stream dynamic priority;
the request receiving module is used for receiving a live monitoring request from the VC, wherein the live monitoring request comprises an identifier of the VC and an identifier of a channel communicated between the EC and the camera;
the searching module is used for respectively acquiring a first priority of the VC and a second priority of the EC and the identification of the channel communicated with the camera through the identification of the VC and the identification of the channel communicated with the camera, searching the corresponding relation through the acquired first priority and the acquired second priority, and acquiring the corresponding dynamic priority of the live stream;
the request forwarding module is configured to carry the dynamic priority of the live stream in the live monitoring request received by the receiving module, and forward the live monitoring request to the EC.
8. A video Encoder (EC), the EC comprising: an adding module and a sending module; wherein,
the adding module is used for carrying a dynamic priority in a live stream in a channel where EC and a camera which are requested to be monitored are communicated according to a live monitoring request sent by a video management server VM, wherein the dynamic priority is obtained by the VM through a corresponding relation between a first priority of a video monitoring user VC and a second priority of a channel mark where EC and camera are communicated and the dynamic priority, and the dynamic priority is carried in the live monitoring request for sending;
and the sending module is used for sending the live stream carrying the dynamic priority.
9. A network device, characterized in that the network device comprises: the device comprises a receiving module, a judging module and a forwarding module; wherein,
the receiving module is used for receiving a live stream carrying a corresponding dynamic priority, wherein the dynamic priority is obtained by a video management server VM through a corresponding relation between a combination of a first priority of a video monitoring user VC and a second priority of a channel identifier communicated with a video camera and the dynamic priority, and the dynamic priority is carried in a live monitoring request and sent to the EC, so that the EC carries the dynamic priority in the live stream for sending;
the judging module is used for judging whether network congestion occurs or not, and when the network congestion occurs, the forwarding module is indicated to perform forwarding processing;
and the forwarding module is used for forwarding the live stream according to the dynamic priority of the live stream according to the indication of the judging module.
10. The network device of claim 9, wherein the forwarding module comprises: the table entry maintenance submodule and the processing submodule; wherein,
the table entry maintenance submodule is used for recording a quintuple table entry of each live stream, and the quintuple table entry comprises a source address, a source port, a destination address, a destination port and a dynamic priority; when a timer setting instruction from the processing submodule is received, a timer of the quintuple table item is set and started, and when the timer of the quintuple table item is overtime, the quintuple table item is deleted;
the processing submodule is used for judging whether the sum of the bandwidths required by all the live streams is larger than the bandwidth provided by the network, if so, searching a quintuple table item, acquiring the information of the live stream with the lowest dynamic priority, and executing a QoS strategy by using the information, wherein the QoS strategy is as follows: discarding the live stream with the lowest dynamic priority, or modifying the Differentiated Services Code Point (DSCP) priority of the live stream with the lowest dynamic priority to be the lowest; and re-judging whether the sum of the bandwidths required by all the remaining live streams is larger than the bandwidth provided by the network or not, and sending a timer setting instruction to the table entry maintenance submodule until the judgment result is not larger than the bandwidth provided by the network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010539393.5A CN102469079B (en) | 2010-11-08 | 2010-11-08 | Method, system and device for transmitting live streams |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010539393.5A CN102469079B (en) | 2010-11-08 | 2010-11-08 | Method, system and device for transmitting live streams |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102469079A CN102469079A (en) | 2012-05-23 |
CN102469079B true CN102469079B (en) | 2015-01-14 |
Family
ID=46072254
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010539393.5A Expired - Fee Related CN102469079B (en) | 2010-11-08 | 2010-11-08 | Method, system and device for transmitting live streams |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102469079B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209675A (en) * | 2016-06-15 | 2016-12-07 | 浙江宇视科技有限公司 | Transmission method, device and the system of a kind of data stream |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686445B (en) * | 2013-12-03 | 2017-04-19 | 浙江宇视科技有限公司 | Method and device for dynamically regulating Qos (quality of service) of video monitoring network |
CN106559683B (en) * | 2016-11-16 | 2020-05-19 | 浙江宇视科技有限公司 | QoS priority dynamic adjustment method and device for monitoring service |
CN109688432B (en) * | 2017-10-18 | 2022-12-27 | 北京京东尚科信息技术有限公司 | Information transmission method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101060618A (en) * | 2006-04-21 | 2007-10-24 | 孟智平 | Intelligent TV wall monitor system and its storage system |
CN101127755A (en) * | 2006-08-15 | 2008-02-20 | 深圳洪迪实业有限公司 | Real time video image transmission method and system |
CN101547159A (en) * | 2009-05-13 | 2009-09-30 | 杭州华三通信技术有限公司 | Method and device for preventing network congestion |
-
2010
- 2010-11-08 CN CN201010539393.5A patent/CN102469079B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101060618A (en) * | 2006-04-21 | 2007-10-24 | 孟智平 | Intelligent TV wall monitor system and its storage system |
CN101127755A (en) * | 2006-08-15 | 2008-02-20 | 深圳洪迪实业有限公司 | Real time video image transmission method and system |
CN101547159A (en) * | 2009-05-13 | 2009-09-30 | 杭州华三通信技术有限公司 | Method and device for preventing network congestion |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209675A (en) * | 2016-06-15 | 2016-12-07 | 浙江宇视科技有限公司 | Transmission method, device and the system of a kind of data stream |
CN106209675B (en) * | 2016-06-15 | 2019-08-02 | 浙江宇视科技有限公司 | A kind of transmission method of data flow, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN102469079A (en) | 2012-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8045454B2 (en) | Multimedia data flow dropping | |
CN105245469B (en) | Data transmission method, device and system | |
US10009189B2 (en) | System and method for a managed network with quality-of-service management | |
US8208483B2 (en) | Ethernet switching | |
JP5637471B2 (en) | Service control method and system, evolved node B, and packet data network gateway | |
KR102107514B1 (en) | Method and apparatus for managing dynamic que in broadcasting system | |
CN109889373B (en) | Method, device and system for transmitting alarm information | |
CN102469079B (en) | Method, system and device for transmitting live streams | |
KR102198701B1 (en) | Method and apparatus for transmitting and receiving information in a multimedia system | |
WO2010040307A1 (en) | Route scheduling method, device and system for media stream monitoring | |
CN108881948B (en) | Method and system for video inspection network polling monitoring video | |
US20100293290A1 (en) | Relay device, terminal, priority communication control method, program, and recording medium | |
JP2005204157A (en) | Stream filtering system, content distribution system and stream filtering method as well as program | |
KR20160110428A (en) | Method and apparatus of transmitting media data related information in multimedia transmission system | |
CN110661992A (en) | Data processing method and device | |
CN110519549B (en) | Conference terminal list obtaining method and system | |
US8305920B2 (en) | Method, system and terminal for determining QoS level | |
US8081653B2 (en) | Communication apparatus and control method thereof | |
CN110049069B (en) | Data acquisition method and device | |
CN110139059B (en) | Method and device for allocating video networking resources | |
US9215088B2 (en) | Identification of application sessions | |
EP4398554A1 (en) | Data transmission method, and device | |
WO2006013618A1 (en) | Transmission control device | |
CN109257660B (en) | Communication method and device based on video network | |
WO2022002003A1 (en) | Information determining method and device |
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 | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |
|
CP03 | Change of name, title or address | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150114 Termination date: 20201108 |
|
CF01 | Termination of patent right due to non-payment of annual fee |