CN106550222B - Video stream sending method and network camera - Google Patents

Video stream sending method and network camera Download PDF

Info

Publication number
CN106550222B
CN106550222B CN201610964303.4A CN201610964303A CN106550222B CN 106550222 B CN106550222 B CN 106550222B CN 201610964303 A CN201610964303 A CN 201610964303A CN 106550222 B CN106550222 B CN 106550222B
Authority
CN
China
Prior art keywords
network
path
request message
video stream
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610964303.4A
Other languages
Chinese (zh)
Other versions
CN106550222A (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 CN201610964303.4A priority Critical patent/CN106550222B/en
Publication of CN106550222A publication Critical patent/CN106550222A/en
Application granted granted Critical
Publication of CN106550222B publication Critical patent/CN106550222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 

Abstract

The invention discloses a video stream sending method, wherein when a video request message sent by a monitoring client is received, a network camera firstly analyzes the video request message to obtain a network path through which the video request message passes; then judging whether the traffic load of the network path exceeds a preset load threshold value or not through network link information provided by the network monitoring equipment; if the judgment result is yes, the network camera selects a path different from the path of the video request message to send the video stream to the monitoring client, so as to ensure that the flow of the video stream sending path is smaller than a preset load threshold value. Therefore, the video stream can bypass the congestion address field in the network system, the video stream can be rapidly and accurately transmitted to the monitoring client, and the quality of video monitoring and the watching experience of a user are improved. The application also discloses a network camera.

Description

Video stream sending method and network camera
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for sending a video stream, and also particularly, to a network camera.
Background
In the monitoring service, if a monitoring terminal in a certain network segment requests a video picture of a monitoring point location IPC (IP Camera) in another network address segment in a centralized manner, a network link between the two network address segments may be congested. When this occurs, the video traffic will not be able to be transmitted normally. When the network congestion in the middle of the network causes the phenomenon of packet loss of video flow, the phenomena of blocking, screen splash and the like can occur when a monitoring client side watches a monitoring picture, which seriously affects the quality of video monitoring and reduces the watching experience of a user.
In order to solve the above problem, in the prior art, a method of adding a media forwarding server on the monitoring client side is adopted. Specifically, the media forwarding server copies the media traffic sent by the IPC and distributes the copied media traffic to each monitoring terminal.
In the process of implementing the present application, the inventor finds that in the prior art, a method for mitigating network link congestion by deploying a media forwarding server has at least the following problems:
1. since the media forwarding servers need to be additionally deployed at each monitoring client, the monitoring deployment cost of the user is undoubtedly increased, and large-scale monitoring deployment is not facilitated.
2. The method for deploying the media forwarding server can only play a role under the condition that a plurality of clients simultaneously request the same IPC in the same network segment. The method has no effect on the situation that different clients request different IPCs.
3. The media server can only copy and distribute the media data stream, which plays a role in reducing the load of the IPC network to a certain extent, and if the link congestion problem is encountered originally, the streaming media server is also useless.
Therefore, how to select a suitable transmission path for the IPC video stream to bypass the congestion address segment in the network system and ensure that the video stream can be quickly and accurately transmitted to the monitoring client becomes a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The invention provides a video stream sending method which is used for selecting a proper transmission path for an IPC video stream, so that the video stream bypasses a congestion address section in a network system, and the video stream can be quickly and accurately transmitted to a monitoring client. The method is applied to a network system comprising a network camera, network monitoring equipment and a monitoring client, and at least comprises the following steps:
when receiving a video request message sent by the monitoring client, the network camera analyzes the video request message to obtain a network path through which the video request message passes;
the network camera judges whether the traffic load of the network path exceeds a preset load threshold value through network link information provided by the network monitoring equipment;
if the judgment result is yes, the network camera selects a path different from the network path to send the video stream to the monitoring client, so that the traffic load of the sending path of the video stream is smaller than the load threshold.
Preferably, the video request packet includes the network address information of the monitoring client and all the network devices on the network path.
Preferably, the network link information is sent to the network camera by the network monitoring device when it is monitored that a congested address segment exists in the network system, where a traffic load on the congested address segment exceeds the load threshold, and the network link information includes information of all the congested address segments in the network system.
Preferably, the determining, by the network link information provided by the network monitoring device, whether the traffic load of the network path exceeds a preset load threshold specifically includes:
acquiring network address information of each network device on the network path;
determining an address segment passed by the network path according to the network address information of each network device;
if the address field is the same as the congested address field, determining that the traffic load of the network path exceeds the load threshold;
and if the address field is different from the congestion address field, determining that the traffic load of the network path does not exceed the load threshold.
Preferably, the method further comprises the following steps:
and if the judgment result is negative, the network camera sends the video stream to the monitoring client through the network path.
Correspondingly, the present application provides a network camera, which is applied in a network system including the network camera, a network monitoring device and a monitoring client, wherein the network camera at least includes:
the analysis module is used for analyzing the video request message to acquire a network path through which the video request message passes when receiving the video request message sent by the monitoring client;
the judging module is used for judging whether the traffic load of the network path exceeds a preset load threshold value or not through the network link information provided by the network monitoring equipment;
and the path selection module selects a path different from the network path to send the video stream to the monitoring client when the judgment result is yes, so that the traffic load of the sending path of the video stream is smaller than the load threshold.
Preferably, the video request packet includes the network address information of the monitoring client and all the network devices on the network path.
Preferably, the network link information is sent to the network camera by the network monitoring device when it is monitored that a congested address segment exists in the network system, where a traffic load on the congested address segment exceeds the load threshold, and the network link information includes information of all the congested address segments in the network system.
Preferably, the judging module is specifically configured to:
acquiring network address information of each network device on the network path;
determining an address segment passed by the network path according to the network address information of each network device;
if the address field is the same as the congested address field, determining that the traffic load of the network path exceeds the load threshold;
and if the address field is different from the congestion address field, determining that the traffic load of the network path does not exceed the load threshold.
Preferably, the method further comprises the following steps:
and the sending module is used for sending the video stream to the monitoring client through the network path when the judgment result is negative.
By applying the technical scheme of the application, when the video request message sent by the monitoring client is received, the network camera firstly analyzes the video request message to obtain a network path through which the video request message passes; then judging whether the traffic load of the network path exceeds a preset load threshold value or not through network link information provided by the network monitoring equipment; if the judgment result is yes, the network camera selects a path different from the path of the video request message to send the video stream to the monitoring client, so as to ensure that the flow of the video stream sending path is smaller than a preset load threshold value. Therefore, the video stream can bypass the congestion address field in the network system, the video stream can be rapidly and accurately transmitted to the monitoring client, and the quality of video monitoring and the watching experience of a user are improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data stream transmission method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a video stream passing through a congested link according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a video stream passing through an uncongested path according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a request packet sent by a monitoring client according to an embodiment of the present application;
fig. 5 is a schematic diagram of a request packet forwarded by a router B according to a specific embodiment of the present application;
fig. 6 is a schematic diagram of a request packet forwarded by a router F according to a specific embodiment of the present application;
fig. 7 is a schematic diagram of a request packet forwarded by a router E according to a specific embodiment of the present application;
fig. 8 is a schematic diagram of a request packet forwarded by a router a according to a specific embodiment of the present application;
fig. 9 is a schematic diagram of a response video stream message sent by IPC1 according to the embodiment of the present application;
fig. 10 is a schematic diagram of a reply video stream packet forwarded by a router a according to the embodiment of the present application;
fig. 11 is a schematic diagram of a reply video stream packet forwarded by a router E according to the embodiment of the present application;
fig. 12 is a schematic diagram of a reply video stream packet forwarded by a router F according to the embodiment of the present application;
fig. 13 is a schematic diagram of a reply video stream packet forwarded by a router B according to the embodiment of the present application;
fig. 14 is a schematic structural diagram of a network camera according to an embodiment of the present application.
Detailed Description
As described in the background art, in the conventional method for sending a surveillance video stream, a media relay server is added on a surveillance client side, and the media relay server copies the video stream sent by the IPC and distributes the video stream to each surveillance terminal, so as to reduce the video stream sending load of the IPC. The method has the effect of relieving the congestion of the video stream sending path to a certain extent. However, it only works if multiple clients simultaneously request the same IPC for the same network segment. And the media server can only play a role in prevention, and if the problem of link congestion exists originally, the media server cannot play any role in relieving the link congestion.
Therefore, in order to overcome the above drawbacks in the prior art, the present application provides a video stream sending method, which is used to select an appropriate transmission path for an IPC video stream, so that the video stream can bypass a congestion address segment in a network system, and the video stream can be quickly and accurately transmitted to a monitoring client. When a video request message sent by a monitoring client is received, a network camera firstly analyzes the video request message to obtain a network path through which the video request message passes; then judging whether the traffic load of the network path exceeds a preset load threshold value or not through network link information provided by the network monitoring equipment; if the judgment result is yes, the network camera selects a path different from the path of the video request message to send the video stream to the monitoring client, so as to ensure that the traffic load of the video stream sending path is smaller than a preset load threshold value. Therefore, the video stream can bypass the congestion address field in the network system, the video stream can be rapidly and accurately transmitted to the monitoring client, and the quality of video monitoring and the watching experience of a user are improved.
As shown in fig. 1, for a schematic flow chart of a method for sending a video stream provided by the present application, it should be noted that the method is applied to a network system including a network camera, a network monitoring device, and a monitoring client, and a network router is further present between the network camera and the monitoring client for forwarding interaction data between the network camera and the monitoring client. Specifically, the method at least comprises the following steps:
s101, when receiving a video request message sent by a monitoring client, the network camera analyzes the video request message to obtain a network path through which the video request message passes.
In the embodiment of the application, when the monitoring client sends a video request message to the network camera, the monitoring client writes local network address information into the message first, and then sets a record routing option mark in the message. When a network router in the network system receives a video request message sent by a monitoring client, a route recording option is added in the video request message according to a filling principle of recording the route option, and the video request message is forwarded to another router after the network router records the network address information of the router.
In the preferred embodiment of the present application, when the network camera receives a video request message sent by the monitoring client, the video message records route recording options added by all network routers that have forwarded the video message. That is, the video request message not only includes the network address information of the monitoring client, but also includes the network address information of all network devices on the network path through which the video request message passes. By the setting method of the network request message, the network camera can quickly and accurately acquire the path through which the video request message passes.
It should be noted that the above-disclosed method for setting a network request packet is only a preferred embodiment provided in the present application, and based on the core idea of the present application, a person skilled in the art may also use other methods for setting a network request packet, which does not affect the protection scope of the present application.
In the embodiment of the application, the network camera obtains the network address information of the network router through which the video request message passes by analyzing the route record option in the video request message, so as to further obtain the network path through which the video request message passes.
After the network path through which the video request message passes is acquired, the network camera judges whether a video stream needs to be sent from the network path to the monitoring client according to the specific link congestion condition of the network path.
Through the above step S101, the network camera can quickly and accurately obtain a network path through which the video request message sent by the monitoring client passes, and then the network camera determines whether to send a video stream from the path to the monitoring client according to an actual situation of the network path.
S102, the network camera judges whether the traffic load of a network path through which the video request message passes exceeds a preset load threshold value through network link information provided by the network monitoring equipment.
In the embodiment of the application, after acquiring that a video request message sent by a monitoring client passes through a network path, a network camera judges whether traffic load on the network path exceeds a preset load threshold according to network link information provided by network monitoring equipment.
The load threshold mentioned above refers to a critical value of traffic load when the network path reaches congestion, and when the traffic load on the network path exceeds the load threshold, it indicates that the network path is in a congested state. At this time, if the network camera sends the video stream to the monitoring client through the network path, there is a possibility that the transmission is slow and even errors occur. Meanwhile, the phenomena of blockage, screen splash and the like can occur when the monitoring client side watches the monitoring picture, so that the quality of video monitoring is seriously influenced, and the watching experience of a user is reduced.
When the traffic load on the network path does not exceed the load threshold, the network path is not in a congested state. At this time, if the network camera is capable of smoothly and quickly transmitting the video stream to the monitoring client through the network path. The phenomena of blocking, screen splash and the like can not occur when the monitoring client side watches the monitoring picture.
The load threshold may be set according to an empirical value, and may be calculated according to an actual condition of the network system, and the determination method does not affect the protection scope of the present application.
In a preferred embodiment of the present application, a network link between two network routing devices is referred to as an address segment, and when the traffic load on the address segment exceeds a load threshold, the address segment is referred to as a congested address segment.
In the preferred embodiment of the present application, the network monitoring device is responsible for managing the network topology of the entire monitoring network, monitoring the data traffic pressure of the entire network in real time, and if a traffic congestion occurs in a link from a monitoring front end (network camera) in a certain network address segment to a monitoring client in a specified network, the network monitoring device will detect the network traffic congestion and send out a warning message of the network congestion, and notify the monitoring front end (network camera).
In a preferred embodiment of the present application, the network monitoring device will send network link information to the network camera upon monitoring that there is a congested address segment in the network system. The network link information is obtained by the network monitoring equipment through monitoring the data flow in the network system in real time and recording the congestion address field in the network system. It can be seen that the network link information includes information of all the congested address segments in the network system.
After receiving the network link information sent by the network monitoring equipment, the network camera can acquire the information of the congestion address field in the network system. And then, the network camera judges whether the network path passed by the video request message has congestion phenomenon according to the information of the congestion address field in the network system.
In the preferred embodiment of the present application, the network camera may determine whether the traffic load of the network path through which the video request message passes exceeds a preset load threshold by the following specific method. Specifically, the method at least comprises the following steps:
(1) and acquiring the network address information of each network device on the network path passed by the video request message.
The network camera analyzes the video request message to obtain the network address information of all network devices (preferably network routers) on the network path passed by the video request message.
(2) And determining the address segment passed by the network path according to the network address information of each network device.
After the network address information of all the network devices on the network path is acquired, the network camera determines the address segment passed by the network path according to the network address information of each network device.
(3) And if the address field passed by the network path is the same as the congestion address field, confirming that the traffic load of the network path exceeds a load threshold value.
If the address field passed by the network path is the same as the congestion address field, the network path is indicated to pass through the congestion address field in the network system, and at this time, the traffic load of the network path is considered to exceed the load threshold.
(4) And if the address field passed by the network path is different from the congestion address field, determining that the traffic load of the network path does not exceed the load threshold.
If the address field passed by the network path is different from the congestion address field, it indicates that the network path has not passed through the congestion address field in the network system, and at this time, it is considered that the traffic load of the network path does not exceed the load threshold.
Through the above preferred embodiment, the network camera can quickly and accurately judge whether the traffic load on the network path through which the video request message passes exceeds the preset load threshold. This is the basis for the selection provided later for the routing of the video stream.
It should be noted that the above-disclosed method for determining whether the traffic load of the network path exceeds the preset load threshold is only one preferred embodiment provided in the present application, and based on the core idea of the present application, a person skilled in the art may also adopt other methods for determining whether the traffic load of the network path exceeds the preset load threshold, which does not affect the protection scope of the present application.
In a preferred embodiment of the present application, if it is determined that the traffic load of the network path through which the video request message passes does not exceed the preset load threshold, the network camera sends the video stream to the monitoring client through the network path.
If the traffic load of the network path passed by the video request message does not exceed the preset load threshold, the phenomenon that congestion does not exist on the network path is indicated. At this time, the network camera may directly send the video stream to the monitoring client through the network path.
S103, if the traffic load of the network path through which the video request message passes is judged to exceed the preset load threshold, the network camera selects a path different from the network path to send the video stream to the monitoring client, so that the traffic load of the sending path of the video stream is smaller than the load threshold.
If the traffic load of the network path passed by the video request message exceeds a preset load threshold, the phenomenon that congestion does not exist on the network path is indicated. At this time, if the network camera sends the video stream to the monitoring client through the network path, there is a possibility that the transmission is slow and even an error occurs. Meanwhile, the phenomena of blocking, screen splash and the like can occur when a monitoring client side watches the monitoring picture, which seriously affects the quality of video monitoring and reduces the watching experience of users.
Therefore, in the embodiment of the present application, when the traffic load of a network path through which a video request message passes exceeds a preset load threshold, the network camera selects a path different from the network path to send a video stream to the monitoring client, and the traffic load of the selected path is smaller than the load threshold. Therefore, the video stream sent to the monitoring client by the network camera can bypass the congestion address section in the network system, the video stream can be rapidly and accurately transmitted to the monitoring client, and the quality of video monitoring and the watching experience of a user are improved.
As can be seen from the description of the above specific flow, by applying the technical scheme of the present application, when receiving a video request message sent by a monitoring client, a network camera first obtains a network path through which the video request message passes by parsing the video request message; then judging whether the traffic load of the network path exceeds a preset load threshold value or not through network link information provided by the network monitoring equipment; if the judgment result is yes, the network camera selects a path different from the path of the video request message to send the video stream to the monitoring client, so as to ensure that the flow of the video stream sending path is smaller than a preset load threshold value. Therefore, the video stream can bypass the congestion address field in the network system, the video stream can be rapidly and accurately transmitted to the monitoring client, and the quality of video monitoring and the watching experience of a user are improved.
In order to further illustrate the technical idea of the present invention, the technical solution of the present application will now be described with reference to a specific solution flow.
The invention mainly solves the problem of a receiving end that video streams cannot be efficiently sent in real time when the burst network is congested in a video monitoring network. The invention aims to meet the link requirements of low time delay and low packet loss rate of a network link by video stream.
To more clearly explain the technical idea of the present application, the operation of the network device involved in the present application will be described first.
(1) IMP (network monitoring equipment)
The IMP is used for managing the network topology of the whole monitoring network, monitoring the data traffic pressure of the whole monitoring network in real time, and if the traffic congestion occurs in a link from a monitoring front end (IPC) in a certain network address field to a monitoring client in a specified network, the IMP detects the network traffic congestion, sends out the alarm information of the network congestion and informs the IPC (monitoring camera).
(2)IPC
After receiving the request message of the monitoring client, the IPC firstly analyzes and acquires the address pair through which the request message passes, then judges whether the network link between the address pairs is congested, and if so, reselects a new path when sending the video stream to the monitoring client so as to enable the video stream to avoid the congested network link.
(3) Monitoring client
The monitoring client carries the record route option, records the information of the local network segment in the message, and records the address information of the output interface passing through the router.
Based on the description of the main network devices, the specific process of the present application is as follows:
the network devices and the interface addresses involved in the present process are shown in table 1 below
Figure BDA0001145299320000121
Table 1. network device and interface address table involved in this process
As shown in FIG. 2, when a plurality of monitoring clients (PC1) with address segment of 202.15.8.0/24 request a plurality of IPC1 with address segment of 202.15.7.0/24 simultaneously, video traffic is sequentially sent to router B through routers such as A, C, D, but because the number of requested IPC1 paths is excessive and the number of requested monitoring terminals is excessive, temporary traffic bursts occur on the links between intermediate routing nodes A, C, D, B, and congestion occurs. At this time, the IMP will send an alarm message to IPC1, notifying IPC1 that congestion occurs between routing nodes A, C, D, B, and notifying all network segment address pairs (source address and destination address) on the link that link congestion occurs to all IPC1 with an address segment 202.15.7.0/24. The set of address segment address pairs stored at this point on IPC1 is shown in table 2 below:
source network segment address Source network segment mask Destination network segment address Destination network segment mask
202.15.7.0 255.255.255.0 202.15.8.0 255.255.255.0
202.15.7.0 255.255.255.0 202.15.100.0 255.255.255.0
202.15.7.0 255.255.255.0 202.15.101.0 255.255.255.0
202.15.7.0 255.255.255.0 202.15.102.0 255.255.255.0
Table 2. network segment corresponding table of congestion address
If there is a monitoring request matched with the address segment pair (containing the destination address segment of 202.15.8.0/24), the monitoring front end (IPC1) with the address segment of 202.15.7.0/24 needs to reroute the video traffic, as shown in fig. 3, IPC1 sends the video traffic according to a strict source station routing option, and walks other network links.
In general, in a large network, a routing node through which an IP packet sent by a host passes is different from a routing node through which a response packet of a remote host to the host passes; when a monitoring client (PC1) makes a video request to the IPC1 of a monitoring front end, the request message is firstly encapsulated locally, a record route option mark is set, and a local network address field is written into the request message. An IP address space of 16 bytes at most is reserved in the record routing option, and the data part of the monitoring request message carries network address 202.15.8.0 and mask information of 24 bits of network address field. The brief information is shown in fig. 4 below.
When the packet enters the router B, according to the filling rule for recording the route option, after the route B adds the route recording option to the IP packet, the format of the packet forwarded from the router B to the router F is as shown in fig. 5.
Similarly, after receiving the vod request message from the monitoring client, the router F fills a new record routing option, and then forwards the monitoring request message to the router E, where the IP message answer information forwarded from the router F to the router E is shown in fig. 6.
Similarly, after the new record route option is filled through the route selection function of the IP option, the monitoring request packet is forwarded from the router E to the router a, and at this time, the IP packet answer information forwarded from the router E to the router a is shown in fig. 7.
After receiving the message shown in fig. 7, the router a fills in new route record option information and sends the message to IPC1, where the message information received by IPC1 is shown in fig. 8.
IPC1 parses the message, extracts the routing option information in the IP options, and monitors the network address segment information of the client. It is found that the extracted monitoring client network address field can match the address field pair in table 2. The IPC1 determines that the current video monitoring request needs to be rerouted, and the IPC1 performs source station and route selection when performing all video monitoring service message interactions with the monitoring client. IPC1 must fill routing option information in the IP options in advance for subsequent video stream messages to the monitoring client (PC1) hairstyle. The formatted answer of the video stream message is shown in fig. 9 below.
After the IP packet reaches the router a, the packet is forwarded from the router a to the router E by updating the routing option, and at this time, the format of the packet forwarded from the router a to the router E is generally as shown in fig. 10.
Similarly, the messages received by the router F, B and the destination monitoring client (PC1) are shown in fig. 10, 11 and 12, respectively.
Through the steps, the streaming media successfully avoids the link node B, C with the congested flow, and the video stream is guaranteed to be efficiently transmitted to the monitoring client in real time.
As can be seen from the description of the above specific embodiment, by applying the technical scheme of the present application, when receiving a video request message sent by a monitoring client, a network camera first obtains a network path through which the video request message passes by parsing the video request message; then judging whether the traffic load of the network path exceeds a preset load threshold value or not through network link information provided by the network monitoring equipment; if the judgment result is yes, the network camera selects a path different from the path of the video request message to send the video stream to the monitoring client, so as to ensure that the flow of the video stream sending path is smaller than a preset load threshold value. Therefore, the video stream can bypass the congestion address field in the network system, the video stream can be rapidly and accurately transmitted to the monitoring client, and the quality of video monitoring and the watching experience of a user are improved.
In order to achieve the above technical objective, the present application provides a network camera applied in a network system including the network camera, a network monitoring device and a monitoring client, where the network camera at least includes:
the parsing module 141 is configured to, when receiving a video request packet sent by the monitoring client, parse the video request packet to obtain a network path through which the video request packet passes;
the determining module 142 determines whether the traffic load of the network path exceeds a preset load threshold according to the network link information provided by the network monitoring device;
and the path selection module 143, when the determination result is yes, selects a path different from the network path to send the video stream to the monitoring client, so that the traffic load of the sending path of the video stream is smaller than the load threshold.
In a specific application scenario, the video request packet includes the monitoring client and network address information of all network devices on the network path.
In a specific application scenario, the network link information is sent to the network camera by the network monitoring device when it is monitored that a congested address segment exists in the network system, where a traffic load on the congested address segment exceeds the load threshold, and the network link information includes information of all the congested address segments in the network system.
In a specific application scenario, the determining module is specifically configured to:
acquiring network address information of each network device on the network path;
determining an address segment passed by the network path according to the network address information of each network device;
if the address field is the same as the congested address field, determining that the traffic load of the network path exceeds the load threshold;
and if the address field is different from the congestion address field, determining that the traffic load of the network path does not exceed the load threshold.
In a specific application scenario, the method further includes:
and the sending module is used for sending the video stream to the monitoring client through the network path when the judgment result is negative.
As can be seen from the description of the specific devices, by applying the technical scheme of the present application, when receiving a video request message sent by a monitoring client, a network camera firstly analyzes the video request message to obtain a network path through which the video request message passes; then judging whether the traffic load of the network path exceeds a preset load threshold value or not through network link information provided by the network monitoring equipment; if the judgment result is yes, the network camera selects a path different from the path of the video request message to send the video stream to the monitoring client, so as to ensure that the flow of the video stream sending path is smaller than a preset load threshold value. Therefore, the video stream can bypass the congestion address field in the network system, the video stream can be rapidly and accurately transmitted to the monitoring client, and the quality of video monitoring and the watching experience of a user are improved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by hardware, or by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present invention.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned invention numbers are merely for description and do not represent the merits of the implementation scenarios.
The above disclosure is only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (4)

1. A video stream transmitting method, applied to a network system including a network camera, a network monitoring device and a monitoring client, the method at least comprising:
when a video request message sent by the monitoring client is received, the video request message contains network address information of all network devices on a network path through which the video request message passes, and the network camera analyzes the video request message to obtain the network path through which the video request message passes;
the network camera judges whether the traffic load of the network path exceeds a preset load threshold value through network link information provided by the network monitoring equipment, and specifically includes:
acquiring network address information of each network device on the network path;
determining an address segment passed by the network path according to the network address information of each network device;
if the address field is the same as the congestion address field, determining that the traffic load of the network path exceeds the load threshold;
if the address field is different from the congestion address field, determining that the traffic load of the network path does not exceed the load threshold;
the network link information is sent to the network camera when the network monitoring equipment monitors that a congestion address field exists in the network system, wherein the traffic load on the congestion address field exceeds the load threshold value, and the network link information contains information of all the congestion address fields in the network system;
if the judgment result is yes, the network camera selects a path different from the network path to send the video stream to the monitoring client, so that the traffic load of the sending path of the video stream is smaller than the load threshold.
2. The method of claim 1, further comprising:
and if the judgment result is negative, the network camera sends the video stream to the monitoring client through the network path.
3. A network camera, applied in a network system including a network camera, a network monitoring device and a monitoring client, the network camera at least comprises:
the analysis module is used for analyzing the video request message to acquire the network path passed by the video request message when receiving the video request message sent by the monitoring client, wherein the video request message contains the network address information of all network devices on the network path passed by the video request message;
the judging module is used for judging whether the traffic load of the network path exceeds a preset load threshold value or not through the network link information provided by the network monitoring equipment; the following operations are specifically executed:
acquiring network address information of each network device on the network path;
determining an address segment passed by the network path according to the network address information of each network device;
if the address field is the same as the congestion address field, determining that the traffic load of the network path exceeds the load threshold;
if the address field is different from the congestion address field, determining that the traffic load of the network path does not exceed the load threshold;
the network link information is sent to the network camera when the network monitoring equipment monitors that a congestion address field exists in the network system, wherein the traffic load on the congestion address field exceeds the load threshold value, and the network link information contains information of all the congestion address fields in the network system;
and the path selection module selects a path different from the network path to send the video stream to the monitoring client when the judgment result is yes, so that the traffic load of the sending path of the video stream is smaller than the load threshold.
4. The network camera of claim 3, further comprising:
and the sending module is used for sending the video stream to the monitoring client through the network path when the judgment result is negative.
CN201610964303.4A 2016-10-28 2016-10-28 Video stream sending method and network camera Active CN106550222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610964303.4A CN106550222B (en) 2016-10-28 2016-10-28 Video stream sending method and network camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610964303.4A CN106550222B (en) 2016-10-28 2016-10-28 Video stream sending method and network camera

Publications (2)

Publication Number Publication Date
CN106550222A CN106550222A (en) 2017-03-29
CN106550222B true CN106550222B (en) 2020-08-28

Family

ID=58395226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610964303.4A Active CN106550222B (en) 2016-10-28 2016-10-28 Video stream sending method and network camera

Country Status (1)

Country Link
CN (1) CN106550222B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259375B (en) * 2021-06-10 2021-09-28 长视科技股份有限公司 Video service response method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325270A (en) * 2011-09-13 2012-01-18 北京网康科技有限公司 Network video identification method and network video identification device thereof
CN103458466A (en) * 2012-05-30 2013-12-18 株式会社日立制作所 Flow control device, flow control method, network flow management system, and network flow management method
CN104010160A (en) * 2013-02-25 2014-08-27 杭州海康威视系统技术有限公司 Mainline management method of video monitoring system and device thereof
CN104410582A (en) * 2014-12-10 2015-03-11 国家电网公司 Traffic balancing method for electric power communication network based on traffic prediction
CN105450732A (en) * 2015-11-06 2016-03-30 北京奇虎科技有限公司 Data transmission method, device and system
CN105991474A (en) * 2015-05-18 2016-10-05 杭州迪普科技有限公司 Traffic scheduling method, traffic scheduling device and network device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631065B (en) * 2008-07-16 2012-04-18 华为技术有限公司 Method and device for controlling congestion of wireless multi-hop network
CN102647312B (en) * 2012-05-09 2015-08-05 浙江宇视科技有限公司 A kind of detection method of whole net multicast topology and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325270A (en) * 2011-09-13 2012-01-18 北京网康科技有限公司 Network video identification method and network video identification device thereof
CN103458466A (en) * 2012-05-30 2013-12-18 株式会社日立制作所 Flow control device, flow control method, network flow management system, and network flow management method
CN104010160A (en) * 2013-02-25 2014-08-27 杭州海康威视系统技术有限公司 Mainline management method of video monitoring system and device thereof
CN104410582A (en) * 2014-12-10 2015-03-11 国家电网公司 Traffic balancing method for electric power communication network based on traffic prediction
CN105991474A (en) * 2015-05-18 2016-10-05 杭州迪普科技有限公司 Traffic scheduling method, traffic scheduling device and network device
CN105450732A (en) * 2015-11-06 2016-03-30 北京奇虎科技有限公司 Data transmission method, device and system

Also Published As

Publication number Publication date
CN106550222A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
Nam et al. Towards QoE-aware video streaming using SDN
EP3050258B1 (en) Methods, systems, and computer readable media for diameter load and overload information and virtualization
US8977886B2 (en) Method and apparatus for rapid disaster recovery preparation in a cloud network
WO2008148334A1 (en) Method, system and apparatus thereof for detecting abnormal receipt of message
JP5784139B2 (en) Communications system
CN111555982B (en) Method and system for intelligently routing message based on IPv6 extension header
CN110661708B (en) Network optimization method, system and network equipment
US20160198199A1 (en) Method and apparatus for controlling streaming of video content
CN106302001B (en) Service fault detection method, related device and system in data communication network
CN113572654B (en) Network performance monitoring method, network equipment and storage medium
CN111224889A (en) Data transmission method and device
CN106550222B (en) Video stream sending method and network camera
CN111698161B (en) Message processing method and device
US20160344791A1 (en) Network node bandwidth management
WO2018177003A1 (en) Charging method, and related device and system
KR101051710B1 (en) Multiple session establishment method and node using same
CN112583650B (en) SR-BE tunnel link detection method and system in SPN
CN111787368A (en) Server testing method and device
JP2020205531A (en) Network monitoring device, transmission device, and network monitoring method
CN111131840A (en) Method and device for switching network of video service system
Barbera et al. CLAPS: a cross-layer analysis platform for P2P video streaming
Natalino et al. Functional metrics to evaluate network vulnerability to disasters
US9806939B2 (en) Method and apparatus for linear protection switching
CN110798645A (en) Alarm method and system based on video network
US9893958B2 (en) Method and system for service assurance and capacity management using post dial delays

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant