CN111356017A - Video monitoring network equipment keep-alive method and device - Google Patents

Video monitoring network equipment keep-alive method and device Download PDF

Info

Publication number
CN111356017A
CN111356017A CN201811581728.2A CN201811581728A CN111356017A CN 111356017 A CN111356017 A CN 111356017A CN 201811581728 A CN201811581728 A CN 201811581728A CN 111356017 A CN111356017 A CN 111356017A
Authority
CN
China
Prior art keywords
nvt
state
media stream
keep
alive
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
CN201811581728.2A
Other languages
Chinese (zh)
Other versions
CN111356017B (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 CN201811581728.2A priority Critical patent/CN111356017B/en
Publication of CN111356017A publication Critical patent/CN111356017A/en
Application granted granted Critical
Publication of CN111356017B publication Critical patent/CN111356017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server

Abstract

The invention discloses a keep-alive method and a keep-alive device of video monitoring network equipment, when a network video server NVT (network video server) normally gets online and requests streaming successfully on an NVC (network video server), the NVC marks the online state of the NVT as TURE and marks the state of a media stream as TURE; when the interruption of the media stream is detected, identifying the state of the media stream as FALSE, if the state of the media stream is found to be FALSE, sending a message to NVT by the NVC to determine the state of the NVT, if the state of the NVT is determined to be normal, requesting the media stream from the NVT again, if the request of the stream is successful, identifying the state of the media stream as TURE, and if the request of the stream is failed, continuing sending the message to the NVT to determine the state of the NVT; and if the NVT state is determined to be abnormal, identifying the online state as FALSE, reacquiring the NVT information, and requesting the media stream from the NVT. The method and the device increase the connection stability between the NVT and the NVC in the monitoring networking, and are suitable for various networking conditions.

Description

Video monitoring network equipment keep-alive method and device
Technical Field
The invention belongs to the technical field of equipment keep-alive, and particularly relates to a keep-alive method and device for video monitoring network equipment.
Background
The current video monitoring network is widely applied, the monitoring equipment of the network comprises a front-end camera (IPC), a rear-end video recorder (NVR), an all-in-one machine (management platform) and various mobile clients and PC clients, wherein the main function of the IPC is to acquire real-time images, the main function of the NVR is to provide video storage and management of the IPC, the all-in-one machine is a management platform of a complete solution, and the mobile clients and the PC clients can more conveniently access the real-time monitoring condition in the monitoring network.
The ONVIF defined device types include: NETWORK VIDEO service (NETWORK VIDEO TRANSMITTER, NVT) and NETWORK VIDEO CLIENT (NETWORK VIDEO CLIENT, NVC). Wherein NVT sends media streams such as video encoder EC, webcam IPC; the NVC receives the media stream and controls NVT devices, such as a Network Video Recorder (NVR). The video monitoring network has a plurality of types of networking conditions, for example, the networking between IPC and NVR (NVR is used as NVC, and IPC is used as NVT), the common networking mode is that IPC is added to NVR in a local area network, and the IPC and NVR are in the same switch, so that the network condition between the IPC and the NVR is good; in addition, the IPC and the NVR are connected across the network and are positioned in different NATs, and in this case, because a router is additionally arranged in the middle, networking information is more complex.
In any case, in order to better manage the IPC and store the real-time video information, the NVR needs to acquire the current online state of the IPC in time, so a mechanism is needed between the NVR and the IPC to ensure that the NVR can know the real-time state of the IPC in time, which is called a keep-alive mechanism. Generally, whether a device exists in a network or whether a certain network device normally adopts a ping packet, a TCP connection establishment mode, and the like is judged, but under the condition that the network environment is relatively complex, the common mode is restricted, for example, due to various limitations on a router, the ping packet or the TCP connection establishment mode may not ensure normal keep-alive between an ICP and an NVR, and therefore a keep-alive mechanism of the network device also needs to be adjusted.
The communication protocols between the NVT and the NVC in the current video monitoring network commonly comprise an RTSP protocol, an ONVIF protocol and a national standard protocol; the national standard protocol adopts an interactive mode defined by national standard, wherein the keep-alive scheme is that NVT actively sends a message to NVC for keep-alive, the ONVIF protocol does not stipulate an inter-device keep-alive scheme, and most of the schemes adopt NVC to send a certain ONVIF message to NVT at regular time, or ping packets to an IP address of the NVT at regular time, or actively try to establish TCP connection with the NVT through the NVC; the purpose of keeping alive between the NVC and the NVT of the video monitoring network can be achieved through message interaction, ping packet response and TCP connection establishment.
The keep-alive modes of sending the ONVIF message, the ping packet and establishing the TCP connection are only suitable for simple networking, and the NVC and the NVT are in networking of the same local area network. Under some special networking, normal keep-alive between the customer NVC and the NVT cannot be ensured, for example, in certain networking with higher security requirement and networking crossing NAT, a router is configured to forbid sending of a ping message, and a ping packet is filtered by the router and cannot be kept alive in a ping packet mode; or the router sets Syn anti-attack, the TCP connection established at regular time may be considered as an attack behavior by the router and filtered by the router; aiming at most IPCs with poor performance in the market, frequent sending of ONVIF messages leads to increased performance pressure of the IPC, and severe restarting or DOWN conditions of IPC equipment can be caused.
Disclosure of Invention
The invention aims to provide a video monitoring network equipment keep-alive method and a video monitoring network equipment keep-alive device, which can enable the NVC and the NVT of a monitoring network to be adaptive to various complex network environments and greatly improve the stability of the video monitoring network.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a keep-alive method of video monitoring network equipment is applied to network video client NVC equipment in a video monitoring network, and comprises the following steps:
when the NVT of the network video server normally gets online successfully on the NVC, the NVT marks the online state of the NVT as TURE and marks the state of the media stream as TURE;
when the interruption of the media stream is detected, the state identification position of the media stream is FALSE;
periodically detecting each identification bit, if the identification bit of the media stream state is found to be FALSE, sending a message to NVT by the NVC to determine the NVT state, if the NVT state is determined to be normal, requesting the media stream from the NVT again, if the request for the stream is successful, identifying the position of the media stream state as TURE, and if the request for the stream is failed, continuing sending the message to the NVT to determine the NVT state;
if the NVT state is determined to be abnormal, the online state identification position is FALSE;
and when the online state identification position is detected to be FALSE periodically, the NVT information is acquired again, and the media stream is requested from the NVT.
Further, the identifying the media stream status as FALSE when the media stream interruption is detected includes:
and when the media stream interruption is detected to exceed a preset time threshold, identifying the media stream state as FALSE.
Further, the sending a message to the NVT to determine the NVT status includes:
and sending a message to the NVT at regular time in a polling mode to determine the state of the NVT.
Further, if it is determined that the NVT status is abnormal, identifying the online status as FALSE, including:
and if the NVT responds abnormally, continuing to send a message to the NVT at regular time to determine the NVT state, determining that the NVT state is abnormal after the number of times of responding to the abnormality exceeds a preset number threshold, and identifying the position of the online state as FALSE.
Further, a keep-alive status flag bit is set on the NVC, and when the network video server NVT normally requests a stream on the NVC successfully, the keep-alive status flag bit is set to true;
if the request flow fails, continuing to send messages to the NVT to determine the NVT state, including:
identifying whether the keep-alive state is FALSE;
and periodically detecting each identification bit, and if the keep-alive state identification bit is found to be FALSE, sending a message to the NVT to determine the NVT state.
The invention also provides a video monitoring network equipment keep-alive device, which is applied to network video client NVC equipment in a video monitoring network, and comprises the following components:
the initial online module is used for marking the online state of the NVT as TURE and marking the state of the media stream as TURE by the NVC when the NVT of the network video server side normally requests the stream to be online successfully on the NVC;
the cut-off detection module is used for marking the state of the media stream as FALSE when the cut-off of the media stream is detected;
the identification bit detection module is used for periodically detecting each identification bit, if the identification bit of the media stream state is found to be FALSE, the NVC sends a message to the NVT to determine the NVT state, if the NVT state is determined to be normal, the NVT is requested for the media stream again, if the request for the media stream is successful, the identification position of the media stream state is TURE, and if the request for the media stream is failed, the NVT continues to send a message to determine the NVT state; if the NVT state is determined to be abnormal, the online state identification position is FALSE;
and the flow re-requesting module is used for re-acquiring the NVT information and requesting the media flow from the NVT when the online state identification position is detected to be FALSE periodically.
Further, when the interruption detection module detects interruption of the media stream, the interruption detection module identifies the media stream status as FALSE, and performs the following operations:
and when the media stream interruption is detected to exceed a preset time threshold, identifying the media stream state as FALSE.
Further, the flag detection module sends a message to the NVT to determine the NVT status, and performs the following operations:
and sending a message to the NVT at regular time in a polling mode to determine the state of the NVT.
Further, when determining that the NVT status is abnormal and setting the online status flag to FALSE, the flag detecting module executes the following operations:
and if the NVT responds abnormally, continuing to send a message to the NVT at regular time to determine the NVT state, determining that the NVT state is abnormal after the number of times of responding to the abnormality exceeds a preset number threshold, and identifying the position of the online state as FALSE.
Further, a keep-alive state identification bit is also set on the video monitoring network equipment keep-alive device, and when the network video server NVT normally goes online on the NVC and requests streaming successfully, the initial online module also identifies whether the keep-alive state identification bit is FALSE;
when the flow request fails and the message is continuously sent to the NVT to determine the state of the NVT, the identification bit detection module further executes the following operations:
identifying whether the keep-alive state is at a TRUE position;
the identification bit detection module also periodically detects each identification bit, and if the keep-alive state identification bit is TRUE, a message is sent to the NVT to determine the NVT state.
The keep-alive method and the device for the video monitoring network equipment adopt a mode of combining live stream and an ONVIF interface to keep the equipment between NVT and NVC in a monitoring network alive, the keep-alive mode can still ensure the normal keep-alive of the equipment aiming at the networking mode that a router forbids and the router opens SYN attack prevention, the connection stability between the NVT and the NVC in the monitoring networking is increased, the method and the device are suitable for various networking conditions, the diversity of the monitoring network networking is increased, and the security of the monitoring network networking is also increased after the router opens the forbidding and the SYN attack prevention.
Drawings
FIG. 1 is a flow chart of a keep-alive method of a video monitoring network device according to an embodiment of the present invention;
FIG. 2 is a flowchart of the keep-alive process of IPC and NVR according to the embodiment of the present invention.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the drawings and examples, which should not be construed as limiting the present invention.
As shown in fig. 1, a keep-alive method for a video monitoring network device is applied to a network video client NVC device in a video monitoring network, and includes:
when the NVT of the network video server normally gets online successfully on the NVC, the NVT marks the online state of the NVT as TURE and marks the state of the media stream as TURE;
when the interruption of the media stream is detected, the state identification position of the media stream is FALSE;
periodically detecting each identification bit, if the identification bit of the media stream state is found to be FALSE, sending a message to NVT by the NVC to determine the NVT state, if the NVT state is determined to be normal, requesting the media stream from the NVT again, if the request for the stream is successful, identifying the position of the media stream state as TURE, and if the request for the stream is failed, continuing sending the message to the NVT to determine the NVT state;
if the NVT state is determined to be abnormal, the online state identification position is FALSE;
and when the online state identification position is detected to be FALSE periodically, the NVT information is acquired again, and the media stream is requested from the NVT.
In this embodiment, the interaction between the NVT and the NVC is sent based on an OpenNetwork Video Interface form (network Video Interface form), where in the ONVIF, the message interaction uses a SOAP protocol, and other parts, such as an audio/Video stream, are performed through RTP/RTSP. Hereinafter, unless otherwise specified, the description will be made based on the ONVIF protocol as an example. It should be noted that the ONVIF protocol is adopted to be suitable for monitoring devices of any manufacturer, and for devices of the same manufacturer, message interaction may also be performed by using a manufacturer proprietary protocol, which is not described in detail below.
In a video monitoring network, a network video server NVT is added into an NVC through an ONVIF protocol, the NVC actively sends an ONVIF protocol message to the NVT, necessary parameters and resource information are obtained from the NVT, after the parameters and the resource information are completely obtained, the NVC considers that the NVT is registered on the NVC, then the NVC requests the NVT to send a media stream, the NVT sends the media stream to the NVC and then requests the media stream to be completed, the state of the media stream is marked as TURE, and the state of the online state is marked as TURE.
In the media stream transmission process, due to a network problem or a problem of the device itself, the media stream sent by the NVT to the NVC may be abnormal, and a situation that no media stream is sent occurs. When the NVC detects that the media stream interruption exceeds a preset time threshold, the NVT and the NVC can be considered to have a problem in the link, and the media stream state is identified as FALSE.
In this embodiment, the NVC periodically detects each flag bit, and performs corresponding operations according to the state of the flag bit. When the periodic detection is carried out, if the status identification bit of the media stream is found to be FALSE, the media stream link is considered to have a problem, and the media stream transmission needs to be reestablished. At this point, the NVC may send a message to the NVT to determine the NVT status.
Sending a message to the NVT to determine the NVT status, there are two cases:
1. and if the NVT receives the message sent by the NVC and responds, the NVT state is determined to be normal, the NVC requests the NVT to send the media stream, and if the request for the stream is successful, the state identification position of the media stream is TURE. If the request stream fails, then a message continues to be sent to the NVT to determine NVT status.
2. If the NVT does not respond, continuously sending a message to the NVT at regular time to determine the NVT state, and after the number of times of response abnormity exceeds a preset number threshold, determining that the NVT state is abnormal, considering that the NVT is offline, and identifying the position of the online state as FALSE.
In this embodiment, the NVC will periodically detect each flag, and once the presence flag is found to be FALSE, restart the online process of the NVT, where the process is as follows:
the NVC actively sends an ONVIF protocol message to the NVT, necessary parameters and resource information are obtained from the NVT, the NVT is considered to be registered on the NVC to be on line after the parameters and the resource information are completely obtained, then the NVC requests the NVT to send a media stream, the NVT sends the media stream to the NVC and then requests the media stream to be completed, the state identification position of the media stream is TURE, and the on-line state identification position is TURE.
It should be noted that, in order to increase the accuracy of detecting whether to cut off the stream, when the stream cut off is detected, the embodiment identifies the media stream state as FALS, and includes:
and when the media stream interruption is detected to exceed a preset time threshold, identifying the media stream state as FALSE.
The real flow interruption is determined through a preset time threshold, and the misjudgment caused by the gap of the media flow is avoided.
According to one embodiment of the invention, when the message is sent to the NVT to determine the NVT state, the message is sent to the NVT at regular time in a polling mode to determine the NVT state.
The polling results in the following two cases:
1. at this time, it is determined that the NVT status is normal, the NVC sends a media stream to the NVT request, and if the request for the stream is successful, the media stream status is identified as true. If the request stream fails, then a message continues to be sent to the NVT to determine NVT status.
2. If the NVT does not respond, continuously sending a message to the NVT at regular time to determine the NVT state, and after the number of times of response abnormity exceeds a preset number threshold, determining that the NVT state is abnormal, considering that the NVT is offline, and identifying the position of the online state as FALSE.
The above method is further illustrated by a specific embodiment, in which IPC is used as NVT and network hard disk recorder NVR is used as NVC, as shown in fig. 2:
the IPC is added to the NVR through the ONVIF protocol to receive NVR management, the NVR calls an interface defined by the ONVIF protocol to acquire various resource information of the IPC in the process, requests live stream of the IPC to the NVR, and considers that the IPC is normally on line on the NVR after the information acquisition is completed and the live stream is successfully requested.
And the NVR side marks the position of the online state as TURE and marks the position of the media stream state as TURE.
After the IPC is normally on line on the NVR, the NVR periodically checks (within 5-30 seconds) whether each identification bit between the IPC and the NVR is normal or not.
If the live stream between the IPC and the NVR is abnormal and the live stream is disconnected, the NVR can automatically detect that the live stream is disconnected, reports an event inside the NVR, and when the NVR detects that the interruption of the media stream exceeds a preset time threshold, the NVR considers that the link between the IPC and the NVR is in a problem, and sets the state identification position of the media stream to be an abnormal state FALSE.
When the NVR periodically detects whether the identification bit is normal, if the identification bit of the media stream state is found to be abnormal, a message is sent to the IPC to determine the IPC state.
If the IPC response is normal, sending a media stream to the IPC request, sending the media stream to the NVR by the IPC, then requesting the completion of the media stream, and setting the status identification position of the media stream to TURE, namely requesting live stream again;
if the request for the live stream is unsuccessful, NVR sends a message to IPC at regular time in a polling mode to determine the IPC state, if the IPC receives the message sent by NVR and responds, NVR sends the live stream to the IPC request, and if the request for the stream is successful, the state of the media stream is marked as TURE.
If the IPC does not respond, the NVR continuously sends a message to the IPC at regular time to determine the IPC state, and after the number of response exceptions exceeds a preset number threshold, the IPC is considered to be offline, and the online state identification position is FALSE.
When the next period check is carried out, the NVR detects that the online state identification position is set to FALSE, the NVR can go online again, namely the NVR can actively send an ONVIF protocol message to the IPC and obtain necessary parameters and resource information from the IPC, the NVR considers that the IPC is registered online on the NVR after the parameters and the resource information are completely obtained, then the NVR can request the IPC to send a media stream, the IPC sends the media stream to the NVR and then requests the media stream to be completed, the media stream state identification position is TURE, and the online state identification position is TURE.
In another embodiment of the present invention, the embodiment further sets a keep-alive status flag, and when the network video server NVT normally requests streaming on the NVC successfully, the keep-alive status flag is set to FALSE.
Namely, an identification bit is added: and whether the keep-alive state identifies a bit.
In this embodiment, if the request for streaming fails, the step of continuing to send a message to the NVT to determine the NVT status includes:
identifying whether the keep-alive state is at a TURE position;
and periodically detecting each identification bit, and if the keep-alive state identification bit is found to be TURE, sending a message to the NVT to determine the NVT state.
In this embodiment, after the loss request is failed, whether the keep-alive status flag is set to TURE or not is determined, so that each flag is periodically detected, and if it is found that whether the keep-alive status flag is set to TURE or not, a message is sent to NVT to determine the NVT status. Namely, during periodic detection, as long as whether the keep-alive state identification bit is TURE is found, the message is sent to the NVT to determine the NVT state, so that whether subsequent polling is achieved or not is not needed, the message is sent to the NVT to determine the NVT state as soon as possible, keep-alive is started, and the connection stability between the NVT and the NVC in the monitoring networking is further improved.
Corresponding to the above method, an embodiment of a video monitoring network device keep-alive device is also provided herein, which is applied to a network video client NVC device in a video monitoring network, and the video monitoring network device keep-alive device includes:
the initial online module is used for marking the online state of the NVT as TURE and marking the state of the media stream as TURE by the NVC when the NVT of the network video server side normally requests the stream to be online successfully on the NVC;
the cut-off detection module is used for marking the state of the media stream as FALSE when the cut-off of the media stream is detected;
the identification bit detection module is used for periodically detecting each identification bit, if the identification bit of the media stream state is found to be FALSE, the NVC sends a message to the NVT to determine the NVT state, if the NVT state is determined to be normal, the NVT is requested for the media stream again, if the request for the media stream is successful, the identification position of the media stream state is TURE, and if the request for the media stream is failed, the NVT continues to send a message to determine the NVT state; if the NVT state is determined to be abnormal, the online state identification position is FALSE;
and the flow re-requesting module is used for re-acquiring the NVT information and requesting the media flow from the NVT when the online state identification position is detected to be FALSE periodically.
The apparatus of the present embodiment corresponds to the above method, and since the above method has been described in detail, the apparatus will be further described only by specific examples, and will not be described in detail.
In an embodiment of the present invention, when the interruption detecting module detects interruption of the media stream, the interruption detecting module identifies the media stream status as FALSE, and performs the following operations:
and when the media stream interruption is detected to exceed a preset time threshold, identifying the media stream state as FALSE.
In another embodiment of the present invention, the flag detecting module sends a message to the NVT to determine the NVT status, and performs the following operations:
and sending a message to the NVT at regular time in a polling mode to determine the state of the NVT.
In another embodiment of the present invention, when determining that the NVT status is abnormal and setting the online status flag to FALSE, the flag detecting module executes the following operations:
and if the NVT responds abnormally, continuing to send a message to the NVT at regular time to determine the NVT state, determining that the NVT state is abnormal after the number of times of responding to the abnormality exceeds a preset number threshold, and identifying the position of the online state as FALSE.
In another embodiment of the present invention, the keep-alive device of the video monitoring network device further sets a keep-alive status flag bit, and the initial online module further identifies whether the keep-alive status flag bit is FALSE when the network video server NVT requests the stream to be successfully online normally on the NVC;
when the flow request fails and the message is continuously sent to the NVT to determine the state of the NVT, the identification bit detection module further executes the following operations:
identifying whether the keep-alive state is at a TRUE position;
the identification bit detection module also periodically detects each identification bit, and if the keep-alive state identification bit is TRUE, a message is sent to the NVT to determine the NVT state.
The above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and those skilled in the art can make various corresponding changes and modifications according to the present invention without departing from the spirit and the essence of the present invention, but these corresponding changes and modifications should fall within the protection scope of the appended claims.

Claims (10)

1. A keep-alive method of video monitoring network equipment is applied to network video client NVC equipment in a video monitoring network, and is characterized in that the keep-alive method of the video monitoring network equipment comprises the following steps:
when the NVT of the network video server normally gets online successfully on the NVC, the NVT marks the online state of the NVT as TURE and marks the state of the media stream as TURE;
when the interruption of the media stream is detected, the state identification position of the media stream is FALSE;
periodically detecting each identification bit, if the identification bit of the media stream state is found to be FALSE, sending a message to NVT by the NVC to determine the NVT state, if the NVT state is determined to be normal, requesting the media stream from the NVT again, if the request for the stream is successful, identifying the position of the media stream state as TURE, and if the request for the stream is failed, continuing sending the message to the NVT to determine the NVT state;
if the NVT state is determined to be abnormal, the online state identification position is FALSE;
and when the online state identification position is detected to be FALSE periodically, the NVT information is acquired again, and the media stream is requested from the NVT.
2. A video surveillance network device keep-alive method as claimed in claim 1, wherein said identifying a media stream status as FALSE upon detection of a media stream break comprises:
and when the media stream interruption is detected to exceed a preset time threshold, identifying the media stream state as FALSE.
3. The video surveillance network device keep-alive method of claim 1, wherein the sending a message to the NVT to determine the NVT status comprises:
and sending a message to the NVT at regular time in a polling mode to determine the state of the NVT.
4. A video surveillance network device keep-alive method according to claim 3, wherein identifying the presence status as FALSE if it is determined that the NVT status is abnormal comprises:
and if the NVT responds abnormally, continuing to send a message to the NVT at regular time to determine the NVT state, determining that the NVT state is abnormal after the number of times of responding to the abnormality exceeds a preset number threshold, and identifying the position of the online state as FALSE.
5. A keep-alive method for video monitoring network equipment according to claim 1, wherein a keep-alive status flag is further set on the NVC, and when the network video server NVT normally requests a stream to be successful on the NVC, the keep-alive status flag is also set to FALSE;
if the request flow fails, continuing to send messages to the NVT to determine the NVT state, including:
identifying whether the keep-alive state is at a TRUE position;
and periodically detecting each identification bit, and if the keep-alive state identification bit is TRUE, sending a message to the NVT to determine the NVT state.
6. The utility model provides a video monitoring network equipment keep-alive device, is applied to network video customer end NVC equipment in the video monitoring network, its characterized in that, video monitoring network equipment keep-alive device includes:
the initial online module is used for marking the online state of the NVT as TURE and marking the state of the media stream as TURE by the NVC when the NVT of the network video server side normally requests the stream to be online successfully on the NVC;
the cut-off detection module is used for marking the state of the media stream as FALSE when the cut-off of the media stream is detected;
the identification bit detection module is used for periodically detecting each identification bit, if the identification bit of the media stream state is found to be FALSE, the NVC sends a message to the NVT to determine the NVT state, if the NVT state is determined to be normal, the NVT is requested for the media stream again, if the request for the media stream is successful, the identification position of the media stream state is TURE, and if the request for the media stream is failed, the NVT continues to send a message to determine the NVT state; if the NVT state is determined to be abnormal, the online state identification position is FALSE;
and the flow re-requesting module is used for re-acquiring the NVT information and requesting the media flow from the NVT when the online state identification position is detected to be FALSE periodically.
7. The video monitoring network device keep-alive apparatus of claim 6, wherein the flow break detection module identifies the media flow status as FALSE when detecting the flow break of the media flow, and performs the following operations:
and when the media stream interruption is detected to exceed a preset time threshold, identifying the media stream state as FALSE.
8. The video monitoring network device keep-alive apparatus of claim 6, wherein the flag bit detection module sends a message to the NVT to determine the NVT status, and performs the following operations:
and sending a message to the NVT at regular time in a polling mode to determine the state of the NVT.
9. A video monitoring network equipment keep-alive device according to claim 8, wherein the flag detection module performs the following operations when determining that the NVT status is abnormal and setting the online status flag to FALSE:
and if the NVT responds abnormally, continuing to send a message to the NVT at regular time to determine the NVT state, determining that the NVT state is abnormal after the number of times of responding to the abnormality exceeds a preset number threshold, and identifying the position of the online state as FALSE.
10. The video monitoring network equipment keep-alive device of claim 6, wherein the video monitoring network equipment keep-alive device is further provided with a keep-alive status flag bit, and the initial online module is further configured to determine whether the keep-alive status flag bit is FALSE when the network video server NVT normally online on the NVC to request streaming success;
when the flow request fails and the message is continuously sent to the NVT to determine the state of the NVT, the identification bit detection module further executes the following operations:
identifying whether the keep-alive state is at a TRUE position;
the identification bit detection module also periodically detects each identification bit, and if the keep-alive state identification bit is TRUE, a message is sent to the NVT to determine the NVT state.
CN201811581728.2A 2018-12-24 2018-12-24 Video monitoring network equipment keep-alive method and device Active CN111356017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811581728.2A CN111356017B (en) 2018-12-24 2018-12-24 Video monitoring network equipment keep-alive method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811581728.2A CN111356017B (en) 2018-12-24 2018-12-24 Video monitoring network equipment keep-alive method and device

Publications (2)

Publication Number Publication Date
CN111356017A true CN111356017A (en) 2020-06-30
CN111356017B CN111356017B (en) 2022-05-13

Family

ID=71193767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811581728.2A Active CN111356017B (en) 2018-12-24 2018-12-24 Video monitoring network equipment keep-alive method and device

Country Status (1)

Country Link
CN (1) CN111356017B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205404A (en) * 2020-08-31 2022-03-18 浙江宇视科技有限公司 Media stream holding method, device, electronic equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996997A (en) * 2006-12-14 2007-07-11 华为技术有限公司 A method and device for processing stream media service exception
US20100312899A1 (en) * 2009-06-08 2010-12-09 Microsoft Corporation Determining an efficient keep-alive interval for a network connection
CN101980482A (en) * 2010-11-17 2011-02-23 广东威创视讯科技股份有限公司 Method for monitoring network connection and system thereof
CN103078964A (en) * 2012-12-21 2013-05-01 浙江宇视科技有限公司 Method and device capable of establishing business between NVC (Network Video Client) equipment and NVT (Network Video Transmitter) equipment
CN103716323A (en) * 2013-12-31 2014-04-09 厦门悦讯信息科技有限公司 Method for maintaining long connection by sending heartbeat packet
CN104010052A (en) * 2014-06-11 2014-08-27 浙江宇视科技有限公司 UPnP-based media connecting method in monitoring system
US20140244726A1 (en) * 2013-02-25 2014-08-28 Hangzhou H3C Technologies Co., Ltd. Assignment of Point-to-Point Over Ethernet (PPPoE) Session IDs
US20150142982A1 (en) * 2013-11-15 2015-05-21 Microsoft Corporation Preservation of connection session
CN104853235A (en) * 2015-05-12 2015-08-19 西安诺瓦电子科技有限公司 Method for interacting with display screen terminal
US20150365370A1 (en) * 2014-06-16 2015-12-17 Genesys Telecommunications Laboratories, Inc. Intelligent resource manager service recovery including request retransmissions
CN105451071A (en) * 2015-11-18 2016-03-30 腾讯科技(深圳)有限公司 Video stream processing method, device and system
CN105471869A (en) * 2015-11-23 2016-04-06 珠海全志科技股份有限公司 Internet television content request connection reuse method and system thereof
CN106303702A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Connection status inspection method, device and intelligent television system
CN107040742A (en) * 2017-03-10 2017-08-11 浙江宇视科技有限公司 A kind of method for detecting abnormality and network hard disk video recorder NVR
CN107820136A (en) * 2017-11-17 2018-03-20 哈尔滨工大服务机器人有限公司 A kind of video transmission method and system based on P2P

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996997A (en) * 2006-12-14 2007-07-11 华为技术有限公司 A method and device for processing stream media service exception
US20100312899A1 (en) * 2009-06-08 2010-12-09 Microsoft Corporation Determining an efficient keep-alive interval for a network connection
CN101980482A (en) * 2010-11-17 2011-02-23 广东威创视讯科技股份有限公司 Method for monitoring network connection and system thereof
CN103078964A (en) * 2012-12-21 2013-05-01 浙江宇视科技有限公司 Method and device capable of establishing business between NVC (Network Video Client) equipment and NVT (Network Video Transmitter) equipment
US20140244726A1 (en) * 2013-02-25 2014-08-28 Hangzhou H3C Technologies Co., Ltd. Assignment of Point-to-Point Over Ethernet (PPPoE) Session IDs
US20150142982A1 (en) * 2013-11-15 2015-05-21 Microsoft Corporation Preservation of connection session
CN103716323A (en) * 2013-12-31 2014-04-09 厦门悦讯信息科技有限公司 Method for maintaining long connection by sending heartbeat packet
CN104010052A (en) * 2014-06-11 2014-08-27 浙江宇视科技有限公司 UPnP-based media connecting method in monitoring system
US20150365370A1 (en) * 2014-06-16 2015-12-17 Genesys Telecommunications Laboratories, Inc. Intelligent resource manager service recovery including request retransmissions
CN104853235A (en) * 2015-05-12 2015-08-19 西安诺瓦电子科技有限公司 Method for interacting with display screen terminal
CN106303702A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Connection status inspection method, device and intelligent television system
CN105451071A (en) * 2015-11-18 2016-03-30 腾讯科技(深圳)有限公司 Video stream processing method, device and system
CN105471869A (en) * 2015-11-23 2016-04-06 珠海全志科技股份有限公司 Internet television content request connection reuse method and system thereof
CN107040742A (en) * 2017-03-10 2017-08-11 浙江宇视科技有限公司 A kind of method for detecting abnormality and network hard disk video recorder NVR
CN107820136A (en) * 2017-11-17 2018-03-20 哈尔滨工大服务机器人有限公司 A kind of video transmission method and system based on P2P

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
M SAIFUR RAHMAN等: ""Using adaptive heartbeat rate on long-lived TCP connections"", 《2016 INTERNATIONAL CONFERENCE ON NETWORKING SYSTEMS AND SECURITY (NSYSS)》 *
冯浩: ""基于UDP的监控系统可靠传输协议的设计与实现"", 《中国优秀硕士学位论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205404A (en) * 2020-08-31 2022-03-18 浙江宇视科技有限公司 Media stream holding method, device, electronic equipment and storage medium
CN114205404B (en) * 2020-08-31 2024-03-29 浙江宇视科技有限公司 Media stream holding method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111356017B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US8086732B1 (en) Method and apparatus for rate limiting client requests
US20210176117A1 (en) Control Plane Device Switching Method and Apparatus, and Forwarding-Control Separation System
EP1768031A1 (en) Unauthorized connection detection system and unauthorized connection detection method
KR101419579B1 (en) Method for enabling faster recovery of client applications in the event of server failure
CN114422571B (en) Quantum communication client disconnection reconnection system and method
WO2008141584A1 (en) Message processing method, system, and equipment
EP2698948A1 (en) Method and device for determining failure elimination based on oam protocol
CN101953139A (en) DHCP initialization responsive to network layer connectivity
CN108924485B (en) Client real-time video stream interrupt processing method and system and monitoring system
WO2011015068A1 (en) Failure detection method and system
CN113079367B (en) State detection method and device for monitoring equipment
CN107454184B (en) Method for establishing stable network connection between Android client and server
CN111356017B (en) Video monitoring network equipment keep-alive method and device
CN111083176B (en) Cloud self-adaptive online method and device for monitoring camera
US11689928B2 (en) Detecting unauthorized access to a wireless network
JP4160493B2 (en) Packet communication monitoring apparatus and packet communication monitoring method
CN102801555A (en) Network interruption recovering method and device
CN114500216B (en) Device and method for remote management and maintenance through network
TWI394402B (en) Network detecting device and method of network quality detecting thereof
CN111163040B (en) Renegotiated session reestablishment method and device
US20160149787A1 (en) Data transmission system, data transmission monitoring method, and computer-readable medium
CN111953667A (en) Terminal scanning method and device
CN109672545B (en) Method, device, equipment and storage medium for processing link detection message
CN111565130A (en) TCP connection detection method and system
CN112672140A (en) Camera identification method and device

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