CN105450651A - Monitoring video code stream dynamic route selection method and device - Google Patents

Monitoring video code stream dynamic route selection method and device Download PDF

Info

Publication number
CN105450651A
CN105450651A CN201510883692.3A CN201510883692A CN105450651A CN 105450651 A CN105450651 A CN 105450651A CN 201510883692 A CN201510883692 A CN 201510883692A CN 105450651 A CN105450651 A CN 105450651A
Authority
CN
China
Prior art keywords
coding
network equipment
frame transmission
priority
decoding
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.)
Granted
Application number
CN201510883692.3A
Other languages
Chinese (zh)
Other versions
CN105450651B (en
Inventor
周迪
赵晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201510883692.3A priority Critical patent/CN105450651B/en
Publication of CN105450651A publication Critical patent/CN105450651A/en
Application granted granted Critical
Publication of CN105450651B publication Critical patent/CN105450651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/60Media handling, encoding, streaming or conversion
    • H04L65/608Streaming protocols, e.g. RTP or RTCP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/10Flow control or congestion control
    • H04L47/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/32Network-specific arrangements or communication protocols supporting networked applications for scheduling or organising the servicing of application requests, e.g. requests for application data transmissions involving the analysis and optimisation of the required network resources
    • H04L67/322Network-specific arrangements or communication protocols supporting networked applications for scheduling or organising the servicing of application requests, e.g. requests for application data transmissions involving the analysis and optimisation of the required network resources whereby quality of service [QoS] or priority requirements are taken into account

Abstract

The invention discloses a monitoring video code stream dynamic route selection method and device, which are applied to coding side outlet network equipment. The method comprises the following steps: calculating priorities of a plurality of routing paths in a network according to a routing protocol by the coding side outlet network equipment, generating initial routing entries from a highest priority to a lowest priority, and transmitting media streams to decoding side outlet network equipment through a routing path with the highest priority in the network; and receiving a frame transmission delay or a packet loss rate fed back by the decoding side outlet network equipment, raising the priority of a next routing entry according to a sequence of the initial routing entries, and selecting a routing path with the highest priority in the network after the priority is raised in order to transmit the media streams. Through adoption of the method and the device, the problem of bursts or delays in the media streams forwarded by coding equipment can be solved, and the problems of lagging and non-smoothness of videos output by the decoding equipment are solved.

Description

A kind of method of monitor video code stream dynamics route selection and device
Technical field
The invention belongs to the communications field, in particular to a kind of method and device of monitor video code stream dynamics route selection.
Background technology
Along with the development of IP video monitoring service, the monitoring application across wide area network is more and more, and the network qualities such as the bandwidth of wide area network, time delay, packet loss are difficult to ensure; The self-built private network of part industry customer energy, but each Distribution of Institutions of industry is in various places, and the scale of private network is also very large, and along with the continuous expansion of private network scale, the reliability quality of private network also can exist certain problem, and also needs through wide area network transmission between some private network.
When wide area network, private network two kinds of network construction form long-distance transmissions, all there is the problem being difficult to ensure in the bandwidth sum quality of intermediate conveyor link.The general network transmission quality being judged Media Stream by frame propagation delay time, frame transmission rate or packet loss in prior art.When remote watching camera video, if the encoding device of camera side, as IPC (InternetProtocolcamera, network cameras) or encoder send video code flow and there is burst or the problem of time delay, the bandwidth that is subject to again when being transmitted by intermediate line link is again limited, time delay, the impact of the network qualities such as shake, there is packet loss in the video code flow that video code flow may be caused to arrive decoding device (client or decoder), frame propagation delay time is excessive, the quality problems such as frame transmission rate excessive (i.e. code stream burst), now, the video image that decoding device decoding exports just there will be video card and to pause slack phenomenon.Affecting the factor that monitor client video card pauses is I frame (Intra-codedpicture, in-frame encoding picture frame) size, I frame transmission rate, I frame transmission delay and relevant P frame (Predictive-codedPicture, predictive-coded picture frame) interval, wherein, I frame transmission rate, I frame transmission delay and relevant P frame period are all subject to the impact of go-between quality.
Video code flow generally re-sends in network by encoding device after smoothing, flow through to cause greatly to avoid instantaneous code and packet loss, time delay are caused to the impact of intermediary network device, and decoding device side receiver module opens large buffer memory according to the video packets situation received, cushion the video code flow of frame time delay, the Media Stream frame transmission delay being sent to decoding device so just can meet the requirements.But because the transmission quality of go-between is uncontrollable, as bandwidth deficiency, shake, time delay, still the problem that code stream happens suddenly or frame transmission delay is excessive is there is when causing video packets to arrive decoding device, now need the amount of buffered data strengthening decoding device, if but the buffering of decoding device arranges excessive, decoded picture time delay can be caused very large, video-see and the operational requirements of client's real-time cannot be met.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of method and device of monitor video code stream dynamics route selection are provided, the burst that the Media Stream forwarded to solve encoding device exists or latency issue, simultaneously, Media Stream can being solved in the impact by being subject to again the network quality such as network broadband restriction, time delay and shake during Internet Transmission, there is the excessive or frame transmission rate of packet loss, frame transmission delay excessive video decoding device being decoded export when causing Media Stream to arrive decoding device and occurring that card pauses slack problem.
The object of the present invention is achieved like this: a kind of method of monitor video code stream dynamics route selection, be applied in the coding side outlet network equipment, the method comprises: utilize Routing Protocol calculate the priority of many routed paths in network and generate initial route entry from high to low according to priority by the coding side outlet network equipment, and the step of the decoding side outlet network equipment is flow to by the routed path transmission medium that network medium priority is the highest, also comprise the steps:
After the frame transmission delay of receipt decoding side outlet network equipment feedback or packet loss, according to the priority of next route entry of order lift of initial route entry, then select to promote the routed path media stream that network medium priority is the highest after priority.
Further, described frame transmission delay or packet loss feed back to the coding side outlet network equipment.
Further, after the frame transmission rate of described coding side outlet network equipment receipt decoding side outlet network equipment feedback or packet loss, the coding side outlet network equipment carries out traffic shaping to the Media Stream of subsequent transmission.
Further, described frame transmission rate feeds back to the coding side outlet network equipment when frame transmission rate is more than or equal to frame transmission rate predetermined threshold value.
Further, described traffic shaping is that the quantity by adjusting transmission frame message per second realizes, the quantity≤frame transmission rate predetermined threshold value/bag mean size of transmission frame message per second.
Further, when described frame transmission rate is more than or equal to frame transmission rate predetermined threshold value, the decoding side outlet network equipment carries out traffic shaping to the Media Stream received.
Utilize method of the present invention, invention additionally provides a kind of device of monitor video code stream dynamics route selection.
A kind of device of monitor video code stream dynamics route selection, be applied in the network equipment of coding side, this device comprises: calculate the priority of many routed paths in network by Routing Protocol and generate the routing module of initial route entry according to priority from high to low, and the media stream module of the decoding side network equipment is flow to by the routed path transmission medium that network medium priority is the highest, this device also comprises coding side media flow quality monitoring modular, after the frame transmission delay that described coding side media flow quality monitoring modular receives decoding side network equipment feedback or packet loss, sending routed path selects signal to routing module,
Described routing module is selected after signal receiving routed path, and according to the priority of next route entry of order lift of initial route entry, described media stream model choice promotes the highest routed path media stream of network medium priority after priority.
Further, described frame transmission delay or packet loss feed back to coding side media flow quality monitoring modular.
Further, also comprise coding side Media Stream traffic shaping module, after the frame transmission rate that described coding side media flow quality monitoring modular receives decoding side network equipment feedback or packet loss, transmitted traffic reshaping signal gives coding side Media Stream traffic shaping module;
Coding side Media Stream traffic shaping module carries out traffic shaping to the Media Stream of subsequent transmission after receiving traffic shaping signal.
Further, described frame transmission rate feeds back to coding side media flow quality monitoring modular when frame transmission rate is more than or equal to frame transmission rate predetermined threshold value.
Beneficial effect of the present invention: integrated medium current mass monitoring modular in the network equipment of encoding device place network egress, the coding side outlet network equipment is according to the receiving media stream packets frame propagation delay time of the decoding side outlet network equipment feedback received or packet loss, when there is frame transmission delay or packet loss is abnormal, the coding side outlet network equipment reselects routed path and carrys out media stream, particularly, the present invention is the priority by promoting next route entry in initial route entry, and the routed path that after selecting to promote priority, routing table medium priority is the highest carrys out media stream, improve the transmission quality of Media Stream, avoid network bandwidth deficiency or quality owing to giving tacit consent to coupling routed path not good, video code flow is caused to there is packet loss, the problems such as time delay, decoding device decoding output video is avoided to occur a card slack phenomenon.The coding side outlet network equipment of the present invention dynamically selects the routed path transmitted targetedly according to the transport quality parameters of Media Stream, realize the high-quality transmission of Media Stream.
Similarly; integrated medium stream traffic shaping module in the network equipment of encoding device place network egress; coding side outlet Media Stream traffic shaping module can according to the frame transmission rate of decoding side outlet network equipment feedback or packet loss; judge frame transmission rate exception or packet loss extremely; start and traffic shaping is carried out to the larger media code stream of burst; the coding side outlet network equipment is made outwards to send message with more uniform speed; avoid the moment code stream owing to being transferred to decoding device excessive; exceed reception and the buffer capacity of downstream network, cause packet loss.Simultaneously, when the side outlet network equipment of decoding detects that its receiving media stream frame transmission rate is abnormal, the Media Stream traffic shaping module be integrated in the decoding side outlet network equipment also starts carries out traffic shaping to the larger Media Stream of burst, level and smooth code stream, avoids the video card exported after decoding to pause slack problem further.
When detecting frame transmission delay and the frame transmission rate of Media Stream, because the data volume of I frame in Media Stream is comparatively large, have the greatest impact to the transmission quality of Media Stream, the present invention only detects the transmission delay of I frame and I frame transmission rate, can computation complexity be reduced, accelerate system running speed.
By the media flow transmission quality parameter information detected in the increase of RTCP message extended field, the decoding side outlet network equipment can give the coding side outlet network equipment by the multiple media flow transmission quality parameter information of disposable feedback, the coding side outlet network equipment can more fully process the Media Stream forwarded, and obtains the Media Stream of more good quality.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of embodiment of the present invention monitor video dynamics route selection device;
Fig. 2 is embodiment of the present invention media stream rate waveform figure;
Fig. 3 is the network distribution schematic diagram of one of them specific embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, also by specific embodiment, the invention will be further described, and following examples are descriptive, are not determinate, can not limit protection scope of the present invention with this.
See Fig. 1, the method of a kind of monitor video code stream dynamics route selection of the present invention, be applied in the coding side outlet network equipment, change method to comprise: utilize Routing Protocol calculate the priority of many routed paths in network (being go-between) here and generate initial route entry from high to low according to priority by the coding side outlet network equipment, and the coding side outlet network equipment flows to the step of the decoding side outlet network equipment by the routed path transmission medium that network medium priority is the highest, wherein, the destination address of many routed paths is identical, the coding side outlet network equipment is according to the priority of each route entry, isoparametric optimum Match is spent to select a routed path forwarding media stream, the decoding side outlet network equipment is arrived by the routed path media stream in network, the decoding side network equipment detects media flow transmission mass parameters such as the frame propagation delay time of the Media Stream received, frame transmission rate and packet loss and judges, particularly, within a period of time, if detect frame transmission rate to be more than or equal to frame transmission rate predetermined threshold value (being the media stream receiver speed of setting) here, the decoding side outlet network equipment carries out traffic shaping to the Media Stream of receipt of subsequent, level and smooth code stream, improves the follow-up media flow quality being transmitted to decoding device, if detect that frame transmission rate or packet loss or frame transmission delay are more than or equal to respective predetermined threshold value and (correspond to frame transmission rate predetermined threshold value respectively here, packet loss predetermined threshold value, frame transmission delay predetermined threshold value), the decoding side network equipment is by RTCP (Real-timeTransportProtocolControlProtocol, RTP control protocol) message expanded signalling is by the frame transmission rate of Media Stream (i.e. code stream burst), the media flow transmission mass parameters such as packet loss or frame propagation delay time feed back to the coding side outlet network equipment, after the coding side outlet network equipment receives RTCP message, parse in RTCP message the media flow transmission mass parameter of side outlet network equipment feedback of decoding, then media flow transmission mass parameter is analyzed, specific as follows:
If frame transmission rate or packet loss field are not empty, namely the side outlet network equipment of encoding receives frame transmission rate or the packet loss information of decoding side outlet network equipment feedback, illustrate that Media Stream is too fast or there is the problem of packet loss at decoding side joint time receiving frame transmission rate, the coding side outlet network equipment carries out traffic shaping to the Media Stream of follow-up forwarding, level and smooth code stream, the coding side outlet network equipment is made outwards to send message with more uniform speed, avoid the moment code stream owing to being transferred to decoding device excessive, exceed reception and the buffer capacity of downstream network, cause packet loss, thus avoid decoding device decoding output video to occur a card slack phenomenon,
If frame propagation delay time or packet loss field are not empty, namely after the frame propagation delay time that the side outlet network equipment of encoding receives decoding side network equipment feedback or packet loss information, the coding side outlet network equipment is then according to the priority of next route entry of order lift of initial route entry, namely the identical but priority of next route entry that priority is lower of destination address in initial route entry is promoted, the priority of the route entry that the priority of next route entry is mated comparatively is before higher, then the routed path media stream that after selection lifting priority, route entry medium priority is the highest, avoid the network bandwidth deficiency due to the highest routed path of the priority of former coupling or the not good transmission quality affecting Media Stream of quality, namely the side outlet network equipment is encoded according to the frame propagation delay time of the decoding side outlet network equipment received or the feedback of packet loss, dynamically select the routed path of media stream, if the coding side outlet network equipment does not receive frame propagation delay time and packet loss, the coding side outlet network equipment then continues according to the highest routed path forwarding media stream of the priority of former coupling.
For the setting of frame transmission delay predetermined threshold value and frame transmission rate predetermined threshold value, see Fig. 2, Y-axis unit is bit, X-axis is the time, during actual transmission Media Stream, packet is not that continuous print sends always, but there is certain time interval, I frame sign as sent between 2.08 to 2.10 seconds is about 1000Kbit, momentary rate is 1000Kbit/0.02s=50000Kbit/s, i.e. 50Mbps, and the media stream speed size of coding side reality is 4Mbps, the visible situation that there is code stream burst, as solved not in time, the quality of subsequent decoding device decodes output video can be had influence on.Post thicker in Fig. 2 is last data packet locations of every frame, the transmission delay of I frame to be last bag of I frame 2.100 seconds with last of previous frame the wrap difference 0.058 second of 2.042 seconds, i.e. 58ms.Can add up certain empirical value by actual test decode effect, for avoiding introducing larger time delay, general I frame forward delay interval is not more than 150ms, and the maximum of I frame transmission rate is no more than 60Mbps.Data volume due to I frame is generally the several times of P frame, the probability that the burst of general I frame transmission delay, transmission rate, packet loss go wrong is also larger, therefore in the present embodiment, the predetermined threshold value of frame transmission delay is set to 150ms, the predetermined threshold value of frame transmission rate is set to 60Mbps.For the setting of packet loss predetermined threshold value, can dynamically set according to the actual requirements, in the present embodiment, the predetermined threshold value of packet loss is set as 0.5%.
Utilize method of the present invention, invention additionally provides a kind of device of monitor video code stream dynamics route selection, be applied in the coding side outlet network equipment, comprise media flow quality monitoring modular and Media Stream traffic shaping module, wherein, media flow quality monitoring modular in the coding side outlet network equipment is called coding side media flow quality monitoring modular, media flow quality monitoring modular in the decoding side outlet network equipment is called decoding side media flow quality monitoring modular, Media Stream traffic shaping module in the coding side outlet network equipment is called coding side Media Stream traffic shaping module, Media Stream traffic shaping module in the decoding side outlet network equipment is called decoding side Media Stream traffic shaping module.Particularly, media flow quality monitoring modular and Media Stream traffic shaping module can be integrated in the network equipment respectively, then are placed on encoding device and decoding device place network exit.The coding side outlet network equipment is placed on encoding device place network exit, the decoding side outlet network equipment is placed on decoding device place network exit, the coding side outlet network equipment also comprises the media stream module (not shown in figure 1) to decoding device media stream, wherein, the coding side outlet network equipment and decode side outlet network equipment selectable router or switch.
The device of the present embodiment also comprises the routing module in the exit being arranged on encoding device place network, and routing module also in accessible site to existing router or switch, then is placed on the exit of encoding device place network.
Routing module calculates the priority of many routed paths in network by Routing Protocol and generates initial route entry from high to low according to priority, media stream module flows to decoding network equipment by the routed path transmission medium that network medium priority is the highest, decoding side media flow quality monitoring modular detects the frame transmission delay of the Media Stream received and packet loss and judges, if when frame transmission delay or packet loss are more than or equal to respective predetermined threshold value, the parameter value being more than or equal to respective predetermined threshold value is fed back to coding side media flow quality monitoring modular by decoding side media flow quality monitoring modular, coding side media flow quality monitoring modular is after receiving frame transmission delay or packet loss, sending routed path selects signal to routing selecting module, after routing selecting module receives the message reselecting routed path, according to the priority of next route entry of order lift of initial route entry, then, the routed path media stream that after media stream model choice lifting priority, network medium priority is the highest.
The feedback message of coding media flow quality monitoring modular receipt decoding side, side media flow quality monitoring modular, when side media flow quality monitoring modular of encoding receives frame transmission rate or packet loss, transmitted traffic reshaping signal gives coding side Media Stream traffic shaping module, and coding side Media Stream traffic shaping module carries out traffic shaping to the Media Stream of subsequent transmission after receiving traffic shaping signal; When side media flow quality monitoring module monitors of encoding is to frame transmission delay or packet loss, sending routed path selects signal to routing selecting module, after routing selecting module receives the message reselecting routed path, according to the priority of next route entry of order lift of initial route entry, then, the routed path media stream that after media stream model choice lifting priority, network medium priority is the highest.
Decoding side media flow quality monitoring modular is resolved the Media Stream received, statistics all kinds Media Stream bag (such as RTP or TS), calculate the media flow transmission mass parameters such as packet loss, frame propagation delay time, frame transmission rate and judge, if when frame transmission rate is more than or equal to frame transmission rate predetermined threshold value, decoding side media flow quality monitoring modular then notifies that decoding side Media Stream traffic shaping module carries out traffic shaping to the Media Stream of receipt of subsequent, if same frame transmission rate, packet loss or frame transmission delay are more than or equal to respective when establishing threshold value, the frame transmission rate of respective predetermined threshold value will be more than or equal to by RTCP message expanded signalling, packet loss or transmission delay feed back to coding side media flow quality monitoring modular, coding side media flow quality monitoring modular is after receiving above-mentioned media flow quality parameter, according to the media flow quality parameter received, further informed code side Media Stream Shaping Module carries out traffic shaping to the Media Stream of subsequent transmission or notifies that the transmission route path of routing module to Media Stream reselects.
Wherein, RTP (Real-timeTransportProtocol, Data Transport Protocol) for real-time transmission data, the information that this agreement provides comprises: timestamp (for synchronous), sequence number (for packet loss and detection of reordering) and load format (coded formats for illustration of data).TS (TransportStream, synthesis transport stream) is that subpackage sends, each Bao Changwei 188 byte.The structure of bag is that packet header is 4 bytes, and load is 184 bytes.Very eurypalynous data can be inserted, as video, audio frequency, self-defined information etc. in TS stream.
The calculating of packet loss is fairly simple, and the present embodiment adds up the packet loss of all media stream datas of transmission.For the calculating of frame transmission delay and frame transmission rate, due to I frame having the greatest impact to whole transmission quality, be reduce computation complexity, only can calculate propagation delay time and the I frame transmission rate of I frame.Particularly, packet loss calculates by the sequence number of RTP or TS heading, and in a measurement period, the computing formula of packet loss is: packet loss=number of dropped packets/bag sum;
RTP header can parse the end flag (i.e. RTPmarker) of every frame, terminate flag and equal the bag of 1 for last bag of this frame, decoding side media flow quality monitoring modular, to the time corresponding to I frame in RTP packet parsing acquisition Media Stream and P frame end position, can calculate the propagation delay time of I frame: I frame propagation delay time=(receiving time of last bag of current I frame)-(receiving time of last bag of a upper P frame) according to analysis result.
TS message also can find I frame, P frame end position according to the explanation in " TS judges I frame, P frame mode " in abbreviation and Key Term definition, and obtain I frame and the time corresponding to P frame end position, thus calculate the propagation delay time of I frame: I frame propagation delay time=(receiving the time of last bag of current I frame)-(receiving the time of last bag of a P frame).Namely RTP or TS message calculates the formula of I frame propagation delay time is identical, just identifies that I frame is different with the mode that P frame end identifies.
The computing formula of I frame transmission rate is: the size of data summation/I frame in I frame transmission rate=all packets of I frame sends total duration.
Decoding side media flow quality monitoring modular adds up a period of time, as in 60 seconds, calculate the media flow transmission mass parameters such as packet loss, I frame propagation delay time, I frame transmission rate and judge, if one or more in above-mentioned mass parameter are more than or equal to respective predetermined threshold value, correspondence markings is anomalous mass parameter, anomalous mass parameter is then fed back to the coding side outlet network equipment by RTCP message by the decoding side outlet network equipment, and the informed code side outlet network equipment operates.
In the present embodiment, content as shown in table 1 is increased in RTCP message extended field, wherein, media stream identification and media streaming networks information field are supplied to the necessary information of coding side outlet this Media Stream of network device processing, by by packet loss, I frame propagation delay time, I frame transmission rate is increased in RTCP message, make the decoding side outlet network equipment once can feed back the transport quality parameters of multiple Media Stream to the coding side outlet network equipment, the coding side outlet network equipment is processed by the Media Stream of mass parameter to transmission of feedback, more fully can avoid the quality problems of media flow transmission.
In table 1, code stream type is RTP or TS, corresponding Media Stream represents and is respectively SSRC (synchronizationsourceidentifier, 32, mark synchronisation source), (TS is unique distinguishing mark in flowing for PID, for identifying that TS wraps the data carried), media streaming networks information comprises source IP, source port, the information of object IP and destination interface, decoding side media flow quality monitoring modular detects that frame average delay is 180ms, frame transmission rate is 80Mbps, average packet loss ratio is 0.5%, and judge that frame transmission delay is greater than default frame transmission delay value, frame transmission rate is greater than default frame transmission rate value, average packet loss ratio equals default packet loss threshold value, decoding side media flow quality monitoring modular notice decoding effluent amount Shaping Module carries out traffic shaping to Media Stream, simultaneously, by frame transmission delay, frame transmission rate and packet loss feed back to coding side media flow quality monitoring modular by RTCP message in the lump, coding side media flow quality monitoring modular judges to receive frame transmission delay, after frame transmission rate and packet loss, informed code effluent amount Shaping Module carries out traffic shaping, simultaneously, notice routing module is according to the priority of next route entry of order lift of initial route entry, and after lifting routing priority, the routed path media stream the highest by media stream model choice network medium priority.
The message of coding side Media Stream traffic shaping module and decode Media Stream traffic shaping module difference received code side, side media flow quality monitoring modular, decoding side media flow quality monitoring modular, to the smoothing adjustment of the frame transmission rate of Media Stream, particularly, traffic shaping is that the quantity by adjusting transmission frame message per second realizes, the quantity≤frame transmission rate predetermined threshold value/bag mean size of transmission frame message per second.Frame transmission rate predetermined threshold value can set as required, and in the present embodiment, frame transmission rate predetermined threshold value size is 60Mbps, is the maximum of the frame transmission rate under 100Mbps bandwidth.Bag mean size decides according to the Media Stream difference of different encapsulated type, and Media Stream bag encapsulation format common at present generally has RTP, TS etc.If RTP Media Stream bag mean size is 1300byte, then the maximum rate of transmission frame message is 60Mbit/ (1300 × 8) bit, approximates 5769 message/seconds.
Wherein in a specific embodiment, see Fig. 3, in the coding side switch address of decoding side outlet switch configuration map network, the address that the coding side outlet switch of such as 1.1.1.10 network is is 1.1.1.1, source address just by message when the follow-up media flow transmission judging to receive is abnormal determines the object IP address of feeding back RTCP message, the IP address of side outlet switch of namely encoding.Wherein, the destination interface of RTCP message is configurable.
Coding side outlet switch has three routed paths to the route of decoding device (target ip address is 2.2.2.20), three initial route entrys are generated from high to low according to priority in the routing table by Routing Protocol, wherein, Routing Protocol can carry out the Routing Protocol setting or be routine in prior art as required.Encoding device (is IPC here, web camera) (be PC here at media stream to decoding device, Personalcomputer, personal computer) time, by coupling the 1st article of route entry under default situations, namely select address in routing table to be the routed path forwarding media stream of 3.3.3.1, the route of initial route entry is expressed as follows:
Route entry Destination address Priority Next hop address
1 2.2.2.20/24 1 3.3.3.1
2 2.2.2.20/24 2 4.4.4.1
3 2.2.2.20/24 3 5.5.5.1
Decoding side outlet switch receives the Media Stream that IPC (IP address is 1.1.1.10) sends over, media flow quality monitoring modular in decoding side outlet switch detects and calculates the I frame propagation delay time of this Media Stream, the media flow transmission mass parameters such as I frame transmission rate and packet loss, if I frame propagation delay time, when I frame transmission rate or packet loss are more than or equal to respective predetermined threshold value, correspondence markings is anomaly parameter, Media Stream Shaping Module in decoding side outlet switch starts the traffic shaping operation to receiving Media Stream, decoding side outlet switch then sends the RTCP message carrying anomaly parameter and extremely encodes in side outlet switch.
Media flow quality monitoring modular in coding side outlet switch receives the RTCP message of decoding side outlet switch and resolves it, as the media stream source address 1.1.1.10 of RTCP message feedback, source port is 10002, destination address 2.2.2.20, and destination interface is 20000.If the media flow quality monitoring modular in coding side outlet switch receives I frame transmission rate or packet loss to judging after RTCP packet parsing, coding side outlet switch then sends a message to Media Stream Shaping Module in its equipment, starts the operation of the traffic shaping to follow-up forwarding media stream.If receive I frame propagation delay time or packet loss to judging after RTCP packet parsing, coding side outlet switch then notifies the priority of the routing module in its equipment according to order lift the 2nd route entry of route entry initial in network routing table, and the routing table after network route entry priority promotion is expressed as follows:
Route entry Destination address Priority Next hop address
1 2.2.2.20/24 2 3.3.3.1
2 2.2.2.20/24 1 4.4.4.1
3 2.2.2.20/24 3 5.5.5.1
By the routed path of selection the 2nd route entry during coding side outlet switch this media stream message of forwarding next time, avoid the not good transmission affecting Media Stream of network quality due to the routed path of the 1st route entry.
Coding side outlet switch dynamically selects routing forwarding path according to the RTCP message of decoding side outlet switch feedback, such as, in next measurement period, the packet loss of the Media Stream that the routed path of media flow quality monitoring module monitors the 2nd route entry in decoding side outlet switch forwards or I frame transmission delay still abnormal, can again by RTCP message notifying coding side outlet switch, coding side outlet switch then promotes the routing priority of the 3rd route entry, selects the routed path of the 3rd route entry to forward this Media Stream.
The above; it is only preferred embodiment of the present invention; not the present invention is imposed any restrictions, every above embodiment is done according to the technology of the present invention essence any simple modification, change and equivalent structure change, all still belong to the protection range of technical solution of the present invention.

Claims (10)

1. the method for a monitor video code stream dynamics route selection, be applied in the coding side outlet network equipment, the method comprises: utilize Routing Protocol calculate the priority of many routed paths in network and generate initial route entry from high to low according to priority by the coding side outlet network equipment, and the step of the decoding side outlet network equipment is flow to by the routed path transmission medium that network medium priority is the highest, it is characterized in that, also comprise the steps:
After the frame transmission delay of receipt decoding side outlet network equipment feedback or packet loss, according to the priority of next route entry of order lift of initial route entry, then select to promote the routed path media stream that network medium priority is the highest after priority.
2. the method for monitor video code stream dynamics route selection as claimed in claim 1, is characterized in that, described frame transmission delay or packet loss feed back to the coding side outlet network equipment.
3. the method for monitor video code stream dynamics route selection as claimed in claim 1, it is characterized in that, after the frame transmission rate of described coding side outlet network equipment receipt decoding side outlet network equipment feedback or packet loss, the coding side outlet network equipment carries out traffic shaping to the Media Stream of subsequent transmission.
4. the method for monitor video code stream dynamics route selection as claimed in claim 3, is characterized in that, described frame transmission rate feeds back to the coding side outlet network equipment when frame transmission rate is more than or equal to frame transmission rate predetermined threshold value.
5. the method for the monitor video code stream dynamics route selection as described in claim 3 or 4, it is characterized in that, described traffic shaping is that the quantity by adjusting transmission frame message per second realizes, the quantity≤frame transmission rate predetermined threshold value/bag mean size of transmission frame message per second.
6. the method for the monitor video code stream dynamics route selection as described in claim 3 or 4, is characterized in that, when described frame transmission rate is more than or equal to frame transmission rate predetermined threshold value, the decoding side outlet network equipment carries out traffic shaping to the Media Stream received.
7. the device of a monitor video code stream dynamics route selection, be applied in the network equipment of coding side, this device comprises: calculate the priority of many routed paths in network by Routing Protocol and generate the routing module of initial route entry according to priority from high to low, and the media stream module of the decoding side network equipment is flow to by the routed path transmission medium that network medium priority is the highest, it is characterized in that, also comprise coding side media flow quality monitoring modular, after the frame transmission delay that described coding side media flow quality monitoring modular receives decoding side network equipment feedback or packet loss, sending routed path selects signal to routing module,
Described routing module is selected after signal receiving routed path, and according to the priority of next route entry of order lift of initial route entry, described media stream model choice promotes the highest routed path media stream of network medium priority after priority.
8. the device of monitor video code stream dynamics route selection as claimed in claim 7, it is characterized in that, described frame transmission delay or packet loss feed back to coding side media flow quality monitoring modular.
9. the device of monitor video code stream dynamics route selection as claimed in claim 7, it is characterized in that, also comprise coding side Media Stream traffic shaping module, after the frame transmission rate that described coding side media flow quality monitoring modular receives decoding side network equipment feedback or packet loss, transmitted traffic reshaping signal gives coding side Media Stream traffic shaping module;
Coding side Media Stream traffic shaping module carries out traffic shaping to the Media Stream of subsequent transmission after receiving traffic shaping signal.
10. the device of monitor video code stream dynamics route selection as claimed in claim 9, is characterized in that, described frame transmission rate feeds back to coding side media flow quality monitoring modular when frame transmission rate is more than or equal to frame transmission rate predetermined threshold value.
CN201510883692.3A 2015-12-04 2015-12-04 Method and device for monitoring dynamic routing of video code stream Active CN105450651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510883692.3A CN105450651B (en) 2015-12-04 2015-12-04 Method and device for monitoring dynamic routing of video code stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510883692.3A CN105450651B (en) 2015-12-04 2015-12-04 Method and device for monitoring dynamic routing of video code stream

Publications (2)

Publication Number Publication Date
CN105450651A true CN105450651A (en) 2016-03-30
CN105450651B CN105450651B (en) 2021-07-02

Family

ID=55560428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510883692.3A Active CN105450651B (en) 2015-12-04 2015-12-04 Method and device for monitoring dynamic routing of video code stream

Country Status (1)

Country Link
CN (1) CN105450651B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109348282A (en) * 2018-11-19 2019-02-15 深圳市炬力北方微电子有限公司 A kind of wireless method and device for throwing screen time delay of reduction
CN109391847A (en) * 2017-08-08 2019-02-26 中国电信股份有限公司 The monitoring method and monitoring device of Streaming Media Caton
CN109951722A (en) * 2019-02-27 2019-06-28 腾讯科技(深圳)有限公司 The transmission method and transmitting device of video data
CN109982008A (en) * 2017-12-28 2019-07-05 浙江宇视科技有限公司 Taking turn switching method, device and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1698133A (en) * 2002-04-08 2005-11-16 先进微装置公司 Improved erase method for a dual bit memory cell
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
CN1883223A (en) * 2003-11-21 2006-12-20 艾利森电话股份有限公司 Link adaptation for point-to-multipoint channel
CN101075957A (en) * 2007-06-26 2007-11-21 上海大学 Method for controlling AVS fluid-medium transmission
CN101399769A (en) * 2007-09-27 2009-04-01 维里逊服务机构有限公司 Path testing and switching
CN101510991A (en) * 2009-04-03 2009-08-19 杭州华三通信技术有限公司 Method, apparatus and system for implementing port thermal backup of video signal conference
CN101611601A (en) * 2007-02-14 2009-12-23 朗讯科技公司 The signaling architecture that is used for the wireless communication system streaming media service based on the agency
CN101888664A (en) * 2010-06-25 2010-11-17 陶洋 Video multi-path parallel transfer method in wireless self-organization network
CN102098198A (en) * 2010-12-31 2011-06-15 北京华环电子股份有限公司 Ethernet protection method and device
CN102523486A (en) * 2011-12-31 2012-06-27 北京佳讯飞鸿电气股份有限公司 Method for realizing self adaptation to dynamic code stream bandwidth in video scheduling system
CN103152284A (en) * 2013-03-18 2013-06-12 神州数码网络(北京)有限公司 Method for balancing multipath output intelligent loads of router and router
US20130194913A1 (en) * 2012-01-31 2013-08-01 Huawei Technologies Co., Ltd. Method, apparatus and system for interconnected ring protection
CN104602133A (en) * 2014-11-21 2015-05-06 腾讯科技(北京)有限公司 Multimedia file shearing method and terminal as well as server

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1698133A (en) * 2002-04-08 2005-11-16 先进微装置公司 Improved erase method for a dual bit memory cell
CN1883223A (en) * 2003-11-21 2006-12-20 艾利森电话股份有限公司 Link adaptation for point-to-multipoint channel
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
CN101611601A (en) * 2007-02-14 2009-12-23 朗讯科技公司 The signaling architecture that is used for the wireless communication system streaming media service based on the agency
CN101075957A (en) * 2007-06-26 2007-11-21 上海大学 Method for controlling AVS fluid-medium transmission
CN101399769A (en) * 2007-09-27 2009-04-01 维里逊服务机构有限公司 Path testing and switching
CN101510991A (en) * 2009-04-03 2009-08-19 杭州华三通信技术有限公司 Method, apparatus and system for implementing port thermal backup of video signal conference
CN101888664A (en) * 2010-06-25 2010-11-17 陶洋 Video multi-path parallel transfer method in wireless self-organization network
CN102098198A (en) * 2010-12-31 2011-06-15 北京华环电子股份有限公司 Ethernet protection method and device
CN102523486A (en) * 2011-12-31 2012-06-27 北京佳讯飞鸿电气股份有限公司 Method for realizing self adaptation to dynamic code stream bandwidth in video scheduling system
US20130194913A1 (en) * 2012-01-31 2013-08-01 Huawei Technologies Co., Ltd. Method, apparatus and system for interconnected ring protection
CN103152284A (en) * 2013-03-18 2013-06-12 神州数码网络(北京)有限公司 Method for balancing multipath output intelligent loads of router and router
CN104602133A (en) * 2014-11-21 2015-05-06 腾讯科技(北京)有限公司 Multimedia file shearing method and terminal as well as server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391847A (en) * 2017-08-08 2019-02-26 中国电信股份有限公司 The monitoring method and monitoring device of Streaming Media Caton
CN109982008A (en) * 2017-12-28 2019-07-05 浙江宇视科技有限公司 Taking turn switching method, device and electronic equipment
CN109348282A (en) * 2018-11-19 2019-02-15 深圳市炬力北方微电子有限公司 A kind of wireless method and device for throwing screen time delay of reduction
CN109951722A (en) * 2019-02-27 2019-06-28 腾讯科技(深圳)有限公司 The transmission method and transmitting device of video data

Also Published As

Publication number Publication date
CN105450651B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN105450651A (en) Monitoring video code stream dynamic route selection method and device
CN101909060B (en) Qos control method suitable for real-time streaming media transmission of mobile videos
KR100408525B1 (en) System and method of network adaptive real- time multimedia streaming
US7190670B2 (en) Method and apparatus for multimedia streaming in a limited bandwidth network with a bottleneck link
US20150289003A1 (en) Method and Apparatus for Distributing Media Content Services
CN101039254B (en) Media data regrouping method and packet server
JPWO2006054442A1 (en) Transmitting apparatus, receiving apparatus, and communication system
CN101909208B (en) Video wireless transmission control method suitable for CDMA2000
KR20060125779A (en) Fast signalling procedure for streaming services quality of service managing in wireless networks
CN105306888B (en) Mobile video monitor bandwidth self-adaption method based on packet loss differentiating
US20110066746A1 (en) Synchronized data streaming
CA2428325A1 (en) Transmitting and receiving real-time data
CN103079234A (en) Multi-network self-adaption toggle selection transmission method and wireless video transmission system
US8520699B2 (en) Apparatus and methods for providing a communication quality feedback of an end-to-end communication path
CN101552660A (en) Method as well as device and communication system for retransmitting streaming media data
CN104703051B (en) Code stream sending method and device
CN103166974A (en) Stream media wireless transmission method based on mix protocol of transmission control protocol and user datagram protocol
CN104980819A (en) Video transmission method and device
CN106170950A (en) The method for detecting operation state of a kind of node and device
CN102333209A (en) Data transmission method and equipment applied to video monitoring system
EP3547690A1 (en) Real-time video transmission method of multipath network
CN102523486A (en) Method for realizing self adaptation to dynamic code stream bandwidth in video scheduling system
CN101123611B (en) A transmission method for stream media data
JP2011216950A (en) Base station apparatus, radio transmission method in base station apparatus, and radio communication system
JP5877960B2 (en) Receiving apparatus, system, program and method for controlling video frame rate based on transmission bit rate

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