CN109982034B - Access request processing method and device in video monitoring system - Google Patents

Access request processing method and device in video monitoring system Download PDF

Info

Publication number
CN109982034B
CN109982034B CN201810922569.1A CN201810922569A CN109982034B CN 109982034 B CN109982034 B CN 109982034B CN 201810922569 A CN201810922569 A CN 201810922569A CN 109982034 B CN109982034 B CN 109982034B
Authority
CN
China
Prior art keywords
streaming media
media service
service node
access request
characteristic information
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
CN201810922569.1A
Other languages
Chinese (zh)
Other versions
CN109982034A (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.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology 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 Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Publication of CN109982034A publication Critical patent/CN109982034A/en
Application granted granted Critical
Publication of CN109982034B publication Critical patent/CN109982034B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • 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
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Abstract

The embodiment of the application provides an access request processing method and device in a video monitoring system, wherein the method comprises the following steps: receiving an access request triggered by a monitoring point; acquiring characteristic information of a streaming media service node, wherein the characteristic information comprises at least one of the following items: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node; determining a redirected streaming media service node according to the characteristic information; and redirecting the access request to the redirected streaming media service node. Therefore, according to the technical scheme, the access request can be redirected to any streaming media service node meeting the conditions according to the characteristic information of the streaming media service node, namely, one monitoring point can correspond to a plurality of streaming media service nodes, so that the distribution bottleneck of the whole video monitoring system can be avoided.

Description

Access request processing method and device in video monitoring system
Technical Field
The present application relates to the field of video monitoring technologies, and in particular, to a method and an apparatus for processing an access request in a video monitoring system.
Background
With the rapid development of computer technology, video monitoring technology has also made great progress, and video monitoring systems are beginning to enter people's lives and play important roles, for example, in the aspects of traffic, security and the like. At present, a video monitoring system generally comprises a cluster management node, a plurality of streaming media service nodes and a plurality of monitoring points, wherein the cluster management node is configured to redirect a video access request of a user to a corresponding streaming media service node, the streaming media service node is configured to obtain streaming media requested by the user from the corresponding monitoring point, the corresponding streaming media service node provides streaming media service to the user, the monitoring point is configured to perform video acquisition on a monitoring environment to generate streaming media, and the monitoring point may be a camera.
In the prior art, a corresponding relationship between a monitoring point and a streaming media service node is pre-established and stored in a cluster management node, where one monitoring point corresponds to one streaming media service node, and one streaming media service node may correspond to one or more monitoring points. When a user requests streaming media generated by a certain monitoring point, the cluster management node redirects the access request of the user to the streaming media service node uniquely corresponding to the monitoring point according to the corresponding relation, and the streaming media service node provides streaming media service for the user.
However, since one monitoring point can only correspond to one specific streaming media service node, when the service user of the specific streaming media service node exceeds the upper limit, the corresponding streaming media service cannot be provided, resulting in a distribution bottleneck of the whole video monitoring system.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for processing an access request in a video monitoring system, so as to avoid a distribution bottleneck of the entire video monitoring system.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, a method for processing an access request in a video monitoring system is provided, where the method is applied to a cluster management node, and the method includes:
receiving an access request triggered by a monitoring point;
acquiring characteristic information of a streaming media service node, wherein the characteristic information comprises at least one of the following items: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node;
determining a redirected streaming media service node according to the characteristic information;
and redirecting the access request to the redirected streaming media service node, and processing the access request by the redirected streaming media service node.
In a second aspect, an access request processing apparatus in a video monitoring system is provided, which is applied to a cluster management node, and the apparatus includes:
an access request receiving unit, configured to receive an access request triggered by a monitoring point;
the device comprises a characteristic information acquisition unit, a characteristic information acquisition unit and a processing unit, wherein the characteristic information acquisition unit is used for acquiring the characteristic information of a streaming media service node, and the characteristic information comprises at least one of the following items: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node;
a redirection node determination unit, configured to determine a redirection streaming media service node according to the feature information acquired by the feature information acquisition unit;
and the access request processing unit is used for redirecting the access request to the redirected streaming media service node, and the redirected streaming media service node processes the access request.
In a third aspect, a computer device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the bus; a memory for storing a computer program; and the processor is used for executing the program stored in the memory and realizing the steps of the access request processing method in the video monitoring system.
In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the access request processing method in the video surveillance system.
As can be seen from the technical solutions provided in the embodiments of the present application, a redirected streaming media service node may be selected according to characteristic information of each streaming media service node in a video monitoring system, an access request is redirected to the redirected streaming media service node, and then the redirected streaming media service node provides a streaming media service for a user. Compared with the prior art, the method and the device for monitoring the video streaming media service node have the advantages that the access request can be redirected to any streaming media service node meeting the conditions according to the characteristic information of the streaming media service node, namely, one monitoring point can correspond to a plurality of streaming media service nodes, so that the distribution bottleneck of the whole video monitoring system can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a diagram of an example of a video surveillance system of one embodiment of the present application;
FIG. 2 is a flow diagram of a method for access request processing in a video surveillance system according to an embodiment of the present application;
FIG. 3 is a flow diagram of a method of access request processing in a video surveillance system according to another embodiment of the present application;
FIG. 4 is a flow diagram of a method of access request processing in a video surveillance system according to another embodiment of the present application;
FIG. 5 is a flow diagram of a method of access request processing in a video surveillance system according to another embodiment of the present application;
FIG. 6 is a flow diagram of a method of access request processing in a video surveillance system according to another embodiment of the present application;
FIG. 7 is a flow diagram of a method of access request processing in a video surveillance system according to another embodiment of the present application;
FIG. 8 is a schematic block diagram of a computer device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an access request processing apparatus in a video surveillance system according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an access request processing method and device in a video monitoring system.
First, a method for processing an access request in a video monitoring system according to an embodiment of the present application is described below.
It should be noted that the method provided in the embodiment of the present application is applicable to a cluster management node in a video monitoring system, and fig. 1 shows an architecture diagram of the video monitoring system, where the video monitoring system includes: the system comprises a cluster management node 10, a plurality of streaming media service nodes 11 and a plurality of monitoring points 12, wherein the cluster management node 10, the plurality of streaming media service nodes 11 and the plurality of monitoring points 12 communicate through a network. When the cluster management node 10 receives an access request triggered by a certain monitoring point 12 from a terminal device (e.g., a smart phone, a computer), a redirected streaming media service node is selected from the streaming media service nodes 11, and the access request is redirected to the redirected streaming media service node.
In this embodiment, the monitoring point refers to a monitoring device, and in practical application, the monitoring device may include: cameras, digital video recorders, and the like. The streaming media service node may be a video forwarding server.
Fig. 2 is a flowchart of an access request processing method in a video surveillance system according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
in S201, an access request triggered for a monitoring point is received.
In the embodiment of the application, the cluster management node can be in communication connection with the terminal device, when a user needs to check a monitoring video collected by a certain monitoring point, the user can trigger an access request for the monitoring point on the terminal device, the terminal device sends the access request to the cluster management node, and the cluster management node receives the access request for the monitoring point.
For convenience of description, in the embodiments of the present application, the monitoring point M will be used to represent the monitoring point corresponding to the access request.
In S202, obtaining feature information of the streaming media service node, where the feature information includes at least one of the following: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node.
In this embodiment of the present application, the relationship between the streaming media service node and the monitoring point refers to a relationship between the streaming media service node and the monitoring point M in the video monitoring system, and specifically, the relationship may include two situations: before or now, the streaming media service node takes the stream from the monitoring point M, and before the streaming media service node takes the stream from the monitoring point M; the "fetching" refers to obtaining the video code stream collected by the monitoring point from the monitoring point.
In this embodiment of the present application, the connection state of the streaming media service node refers to a connection state of the streaming media service node in the video monitoring system, and specifically, the connection state may include two situations: the connection number is full and is not full; the full connection number refers to that the current connection number of the streaming media service node is equal to the maximum connection number, and the non-full connection number refers to that the current connection number of the streaming media service node is smaller than the maximum connection number.
In this embodiment of the present application, the session right of the connection on the streaming media service node refers to a session right of the connection on the streaming media service node in the video monitoring system, and specifically, the session right of the connection may include two situations: administrator privileges and general user privileges.
In this embodiment, the load of the streaming media service node refers to a load of the streaming media service node in the video monitoring system, where the load may be represented by a load value, and the load value may be obtained by performing weighted summation operation on an access frequency, a CPU usage condition, a memory usage condition, and a network usage condition of the streaming media service node.
In this embodiment of the application, the cluster management node may receive, in advance, the feature information reported by each streaming media service node, and store the feature information to the local of the cluster management node, and preferably, store the feature information to the memory, where in an optional implementation, the S202 may include:
and acquiring the characteristic information of the streaming media service node from the local of the cluster management node.
In the embodiment of the application, each streaming media service node can periodically report the characteristic information of the streaming media service node, such as the identifier, the IP address, the port number, the current connection number, the maximum connection number, the monitoring point list, the access frequency, the CPU usage, the memory usage, the network usage, and the like, at a certain time interval, wherein the monitoring point list records the identifier of the monitoring point which has been taken by the streaming media service node before.
In another optional embodiment, on the basis of the previous embodiment, before obtaining the feature information of the streaming media service node locally from the cluster management node, the implementation may further include:
sending a control instruction to the streaming media service node, wherein the control instruction is used for indicating the streaming media service node to report the characteristic information to the cluster management node;
judging whether the characteristic information reported by the streaming media service node is received within a preset time length;
if the characteristic information is received within the preset time length, the characteristic information received within the preset time length is used as the characteristic information of the streaming media service node;
and if the characteristic information is not received within the preset time length, acquiring the characteristic information of the streaming media service node from the local of the cluster management node.
In this embodiment of the application, when receiving an access request, a cluster management node may trigger and instruct each streaming media service node to report current feature information, that is, trigger each streaming media service node to report feature information in real time, and if each streaming media service node reports feature information to the cluster management node within a preset time (for example, within 5 seconds), perform a subsequent step of determining a redirected streaming media service node by using the feature information reported by each streaming media service node in real time, otherwise, perform a subsequent step of determining a redirected streaming media service node by using the feature information of each streaming media service node acquired by the cluster management node in advance.
In another alternative embodiment, the embodiment may add the following steps to any of the above embodiments:
and in the case that the streaming media service node is detected to be offline, deleting the characteristic information related to the offline streaming media service node.
In the embodiment of the application, after a certain streaming media service node is offline, the feature information on the cluster management node related to the certain streaming media service node is deleted, the streaming media service node is not scheduled any more, and the session related to the streaming media service node is not scheduled and adjusted any more.
In this embodiment of the present application, when receiving an access request, a step of determining a streaming media service node that indicates each streaming media service node to report current feature information and performs subsequent redirection by using the feature information reported by each streaming media service node in real time may also be triggered, where in another optional implementation, the step S202 may include:
sending a control instruction to the streaming media service node, wherein the control instruction is used for indicating the streaming media service node to report the characteristic information to the cluster management node;
and receiving the characteristic information reported by the streaming media service node.
In S203, the redirected streaming media service node is determined according to the acquired feature information.
In this embodiment of the present application, the redirected streaming media service node refers to a streaming media service node for performing streaming media service for the access request.
In S204, the access request is redirected to the redirected streaming media service node, and the redirected streaming media service node processes the access request.
In the embodiment of the application, after receiving an access request, a redirected streaming media service node acquires a stream from a monitoring point M, and sends the acquired streaming media to a terminal device corresponding to the access request.
As can be seen from the foregoing embodiments, in the embodiments, a redirected streaming media service node may be selected according to characteristic information of each streaming media service node in a video monitoring system, an access request is redirected to the redirected streaming media service node, and then the redirected streaming media service node provides a streaming media service for a user. Compared with the prior art, the method and the device for monitoring the video streaming media service node have the advantages that the access request can be redirected to any streaming media service node meeting the conditions according to the characteristic information of the streaming media service node, namely, one monitoring point can correspond to a plurality of streaming media service nodes, so that the distribution bottleneck of the whole video monitoring system can be avoided.
In addition, when the access request is scheduled, the number of the service nodes in the video monitoring system can be dynamically controlled because the access request does not depend on a specific streaming media service node in the video monitoring system, and the service nodes can be dynamically increased or deleted in real time, so that the streaming media service has linear expansion capability.
When a streaming media service node is added in the video monitoring system, the newly added streaming media service node is connected to a cluster management node, and the characteristic information of the streaming media service node is reported to the cluster management node; after receiving the characteristic information reported by the streaming media service node, the cluster management node stores the characteristic information and adds the streaming media service node into a scheduling queue.
When the streaming media service node in the video monitoring system needs to be deleted, the cluster management node can directly delete the locally stored characteristic information corresponding to the streaming media service node, and a subsequently received access request can not be scheduled to the corresponding streaming media service node any more, so that the purpose of dynamic deletion is achieved.
Fig. 3 is a flowchart of an access request processing method in a video surveillance system according to another embodiment of the present application, where the feature information of the streaming media service node includes: in the case of the relationship between the streaming media service node and the monitoring point and the connection status of the streaming media service node, as shown in fig. 3, the method may include the following steps:
in S301, an access request triggered for a monitoring point is received.
In S302, characteristic information of the streaming media service node is obtained, where the characteristic information includes a relationship between the streaming media service node and the monitoring point and a connection state of the streaming media service node.
In this embodiment of the present application, the relationship between the streaming media service node and the monitoring point refers to a relationship between the streaming media service node and the monitoring point M in the video monitoring system, and specifically, the relationship may include two situations: before or now, the streaming media service node takes the stream from the monitoring point M, and before the streaming media service node takes the stream from the monitoring point M; the "fetching" refers to obtaining the video code stream collected by the monitoring point from the monitoring point.
In this embodiment of the present application, the connection state of the streaming media service node refers to a connection state of the streaming media service node in the video monitoring system, and specifically, the connection state may include two situations: the connection number is full and is not full; the full connection number refers to that the current connection number of the streaming media service node is equal to the maximum connection number, and the incomplete connection number refers to that the current connection number of the streaming media service node is smaller than the maximum connection number.
In S303, the streaming media service node that has fetched the stream from the monitoring point and whose connection number is not full is determined as a redirected streaming media service node.
In the embodiment of the application, whether a streaming media service node which takes a stream from the monitoring point M exists in the video monitoring system can be judged, and if so, whether a streaming media service node with a less than full connection number exists in the streaming media service node which takes the stream from the monitoring point M can be judged; or whether the streaming media service nodes with the connection number less than the full exist in the video monitoring system or not can be judged first, and if the streaming media service nodes with the connection number less than the full exist in the streaming media service nodes with the connection number taken from the monitoring point M or not; the embodiments of the present application do not limit this.
In the embodiment of the application, when one streaming media service node is taken from the monitoring point and the connection number is not full, the streaming media service node is determined as a redirected streaming media service node; when the number of streaming media service nodes which take the streams from the monitoring point and have not full connection number is multiple, one streaming media service node can be randomly selected from the plurality of streaming media service nodes to be determined as the redirected streaming media service node, or one streaming media service node with lowest load/lowest accessed frequency can be selected from the plurality of streaming media service nodes to be determined as the redirected streaming media service node.
Preferably, when there are a plurality of streaming media service nodes which are not full of connection number and take streams from the monitoring point, the streaming media service node which is not full of connection number and take streams from the monitoring point M is determined first, and the streaming media service node with the largest connection number with the monitoring point M in the determined streaming media service nodes is determined as the redirected streaming media service node.
In S304, the access request is redirected to the redirected streaming media service node, and the redirected streaming media service node processes the access request.
As can be seen from the foregoing embodiments, after receiving an access request triggered by a monitoring point, the embodiment can redirect the access request to any streaming media service node that fetches a stream from the monitoring point and has a connection number less than a full number according to the feature information of the streaming media service node, instead of redirecting to a specific streaming media service node, that is, one monitoring point may correspond to multiple streaming media service nodes, so that a distribution bottleneck of the entire video monitoring system can be avoided.
Fig. 4 is a flowchart of an access request processing method in a video surveillance system according to another embodiment of the present application, where the feature information of the streaming media service node includes: in the case of the relationship between the streaming media service node and the monitoring point, the connection status of the streaming media service node, and the session right of the connection on the streaming media service node, as shown in fig. 4, at this time, the method may include the following steps:
in S401, an access request triggered by a monitoring point is received, where the access request carries session permission information.
In S402, characteristic information of the streaming media service node is obtained, where the characteristic information includes a relationship between the streaming media service node and the monitoring point, a connection state of the streaming media service node, and a session right of connection on the streaming media service node.
In this embodiment of the present application, the relationship between the streaming media service node and the monitoring point refers to a relationship between the streaming media service node and the monitoring point M in the video monitoring system, and specifically, the relationship may include two situations: before or now, the streaming media service node takes the stream from the monitoring point M, and before the streaming media service node takes the stream from the monitoring point M; the "fetching" refers to obtaining the video code stream collected by the monitoring point from the monitoring point.
In this embodiment of the present application, the connection state of the streaming media service node refers to a connection state of the streaming media service node in the video monitoring system, and specifically, the connection state may include two situations: the connection number is full and is not full; the full connection number refers to that the current connection number of the streaming media service node is equal to the maximum connection number, and the non-full connection number refers to that the current connection number of the streaming media service node is smaller than the maximum connection number.
In this embodiment of the present application, the session right of the connection on the streaming media service node refers to a session right of the connection on the streaming media service node in the video monitoring system, and specifically, the session right of the connection may include two situations: administrator rights and general user rights; wherein the administrator rights are higher than the ordinary user rights.
In S403, it is determined that the streaming media service node where the stream is taken from the monitoring point, the connection number is full, and the session right is lower than that of the access request, the connection in the streaming media service node is disconnected, and the streaming media service node with the disconnected connection is determined as a redirected streaming media service node.
In the embodiment of the application, whether a streaming media service node which fetches a stream from a monitoring point M exists in a video monitoring system or not can be judged, if so, whether a streaming media service node which does not have a full number of connections exists in the streaming media service node which fetches the stream from the monitoring point M or not can be judged, if all streaming media service nodes which have a full number of connections exist, whether a connection with a session authority lower than that of an access request exists in the streaming media service node which has a full number of connections or not can be judged, if so, the connection with the session authority lower than that of the access request is disconnected, and the access request is redirected to the streaming media service node which is disconnected with the session authority lower than that of the access request. When the number of the connections with the session authority lower than that of the access requests is more than that of the access requests, one of the connections can be randomly disconnected, and the access requests can be redirected to the disconnected streaming media service node, or the connection with the lowest session authority can be disconnected, and the access requests can be redirected to the disconnected streaming media service node.
In S404, the access request is redirected to the redirected streaming media service node, and the redirected streaming media service node processes the access request.
As can be seen from the foregoing embodiments, after receiving an access request triggered for a monitoring point, according to the feature information of a streaming media service node, the embodiment can redirect the access request to any streaming media service node where a connection that takes a stream from the monitoring point and has a session right lower than that of the access request is located, that is, one monitoring point may correspond to multiple streaming media service nodes, so that a distribution bottleneck of the entire video monitoring system can be avoided.
In another embodiment provided by the present application, on the basis of the embodiment shown in fig. 4, before S403, the method may further include the following steps:
under the condition that the connection number of the streaming media service node which takes the stream from the monitoring point M is full, judging whether the streaming media service node with the connection number which is not full exists;
if the streaming media service node with the connection number not full exists, determining the streaming media service node with the connection number not full and the lowest load as a redirected streaming media service node;
if there is no streaming service node with a connection number less than full, the above step S403 is executed.
In this embodiment of the present application, determining whether there is a streaming media service node with a connection number that is not full may include: and judging whether streaming media service nodes with less than full connection number exist in the streaming media service nodes except the streaming media service node which takes the stream from the monitoring point M in the video monitoring system, if so, selecting the streaming media service node with the lowest load from the determined streaming media service nodes which do not take the stream from the monitoring point M and have less than full connection number as a redirected streaming media service node.
Fig. 5 is a flowchart of an access request processing method in a video surveillance system according to another embodiment of the present application, where the feature information of the streaming media service node includes: in the case of the relationship between the streaming media service node and the monitoring point, the connection status of the streaming media service node, and the load of the streaming media service node, as shown in fig. 5, at this time, the method may include the following steps:
in S501, an access request triggered for a monitoring point is received.
In S502, characteristic information of the streaming media service node is obtained, where the characteristic information includes a relationship between the streaming media service node and the monitoring point, a connection state of the streaming media service node, and a load of the streaming media service node.
In this embodiment of the present application, the relationship between the streaming media service node and the monitoring point refers to a relationship between the streaming media service node and the monitoring point M in the video monitoring system, and specifically, the relationship may include two situations: before or now, the streaming media service node takes the stream from the monitoring point M, and before the streaming media service node takes the stream from the monitoring point M; the "fetching" refers to obtaining the video code stream collected by the monitoring point from the monitoring point.
In this embodiment of the present application, the connection state of the streaming media service node refers to a connection state of the streaming media service node in the video monitoring system, and specifically, the connection state may include two situations: the connection number is full and is not full; the full connection number refers to that the current connection number of the streaming media service node is equal to the maximum connection number, and the incomplete connection number refers to that the current connection number of the streaming media service node is smaller than the maximum connection number.
In this embodiment, the load of the streaming media service node refers to a load of the streaming media service node in the video monitoring system, where the load may be represented by a load value, and the load value may be obtained by performing weighted summation operation on an access frequency, a CPU usage condition, a memory usage condition, and a network usage condition of the streaming media service node.
In S503, if there is no streaming service node that fetches a stream from the monitoring point, the streaming service node with the lowest load and less connection number is determined as the redirected streaming service node.
In the embodiment of the application, it may be determined whether there is a streaming media service node that fetches a stream from the monitoring point M in the video monitoring system, and if not, a group of streaming media service nodes with the lowest load is selected from the video monitoring system, and finally, it is determined whether there is a streaming media service node with a connection number that is not full in the streaming media service nodes with the lowest load. Or when the streaming media service node which is streamed from the monitoring point M is not available in the video monitoring system, selecting the streaming media service node with the number of connections less than the full number from the video monitoring system, and then selecting the streaming media service node with the lowest load from the streaming media service nodes with the number of connections less than the full number as the redirected streaming media service node.
In the embodiment of the application, under the condition that no streaming media service node for fetching streams from a monitoring point exists, when one streaming media service node with the lowest load and less connection number is used, the streaming media service node is determined as a redirected streaming media service node; when the number of streaming media service nodes with the lowest load and less than full connection number is multiple, one streaming media service node may be randomly selected from the multiple streaming media service nodes and determined as a redirected streaming media service node, or one streaming media service node with the lowest connection number/lowest visited frequency may be selected from the multiple streaming media service nodes and determined as a redirected streaming media service node, which is not limited in the embodiment of the present application.
In S504, the access request is redirected to the redirected streaming media service node, and the redirected streaming media service node processes the access request.
As can be seen from the foregoing embodiments, in the embodiments, after receiving an access request triggered for a monitoring point, the access request can be redirected to any streaming media service node with the lowest load and a connection number that is not full according to the feature information of the streaming media service node, that is, one monitoring point may correspond to multiple streaming media service nodes, so that a distribution bottleneck of the entire video monitoring system can be avoided.
Fig. 6 is a flowchart of an access request processing method in a video surveillance system according to another embodiment of the present application, where the feature information of the streaming media service node includes: in the case of the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session right of the connection on the streaming media service node, and the load of the streaming media service node, as shown in fig. 6, at this time, the method may include the following steps:
in S601, an access request triggered by a monitoring point is received, where the access request carries session permission information.
In S602, characteristic information of the streaming media service node is obtained, where the characteristic information includes a relationship between the streaming media service node and the monitoring point, a connection state of the streaming media service node, a session right of connection on the streaming media service node, and a load of the streaming media service node.
In this embodiment of the present application, the relationship between the streaming media service node and the monitoring point refers to a relationship between the streaming media service node and the monitoring point M in the video monitoring system, and specifically, the relationship may include two situations: before or now, the streaming media service node takes the stream from the monitoring point M, and before the streaming media service node takes the stream from the monitoring point M; the "fetching" refers to obtaining the video code stream collected by the monitoring point from the monitoring point.
In this embodiment of the present application, the connection state of the streaming media service node refers to a connection state of the streaming media service node in the video monitoring system, and specifically, the connection state may include two situations: the connection number is full and is not full; the full connection number refers to that the current connection number of the streaming media service node is equal to the maximum connection number, and the incomplete connection number refers to that the current connection number of the streaming media service node is smaller than the maximum connection number.
In this embodiment of the present application, the session right of the connection on the streaming media service node refers to a session right of the connection on the streaming media service node in the video monitoring system, and specifically, the session right of the connection may include two situations: administrator rights and general user rights; wherein the administrator rights are higher than the ordinary user rights.
In this embodiment, the load of the streaming media service node refers to a load of the streaming media service node in the video monitoring system, where the load may be represented by a load value, and the load value may be obtained by performing weighted summation operation on an access frequency, a CPU usage condition, a memory usage condition, and a network usage condition of the streaming media service node.
In S603, in the case that there is no streaming media service node that fetches a stream from the monitoring point, it is determined that the streaming media service node is the streaming media service node whose load is the lowest, the number of connections is full, and the session right is lower than that of the connection of the access request, the connection in the streaming media service node is disconnected, and the streaming media service node that is disconnected is determined as a redirected streaming media service node.
In the embodiment of the application, whether a streaming media service node which takes a stream from a monitoring point M exists in a video monitoring system or not can be judged first, if not, a group of streaming media service nodes with the lowest load are selected from the video monitoring system, and finally, whether streaming media service nodes with the lower connection number exist in the streaming media service nodes with the lowest load or not is judged, if all streaming media service nodes with the full connection number exist, whether a connection with a session right lower than that of an access request exists in the streaming media service nodes with the full connection number or not is judged, if so, the connection with the session right lower than that of the access request is disconnected, and the access request is redirected to the streaming media service node with the session right lower than that of the access request. Or, it may be determined whether there is a streaming media service node that fetches a stream from the monitoring point M in the video monitoring system, if not, then it is determined whether there is a streaming media service node whose connection number is not full in the video monitoring system, if not, then a group of streaming media service nodes with the lowest load is selected from the video monitoring system, and finally it is determined whether there is a connection whose session authority is lower than the access request in the streaming media service node with the lowest load and whose connection number is full, if so, then the connection whose session authority is lower than the access request is disconnected, and the access request is redirected to the streaming media service node whose session authority is lower than the access request.
In S604, the access request is redirected to the redirected streaming media service node, and the redirected streaming media service node processes the access request.
As can be seen from the foregoing embodiments, in the embodiments, after receiving an access request triggered for a monitoring point, according to the feature information of a streaming media service node, the access request can be redirected to any streaming media service node where a connection with the lowest load and full connection number and with session permission lower than that of the access request is located, that is, one monitoring point may correspond to multiple streaming media service nodes, so that a distribution bottleneck of the entire video monitoring system can be avoided.
For the embodiments shown in fig. 5 and fig. 6, the assignment relationship between the redirected streaming media service node and the monitoring point M may also be saved, so that when the access request is received again, the access request is processed by using the assignment relationship.
To facilitate a comprehensive understanding of the technical solution provided by the embodiment of the present application, the following description is made with reference to fig. 7, where fig. 7 is a flowchart of an access request processing method in a video surveillance system according to another embodiment of the present application, and as shown in fig. 7, the method may include the following steps:
in S701, an access request triggered for a monitoring point is received.
In S702, it is determined whether there is a streaming media service node fetching a stream from the monitoring point, if so, S703 is executed, otherwise, S710 is executed.
In S703, a streaming media service node that fetches a stream from the monitoring point is determined.
In S704, it is determined whether the connection number of the streaming media service node is full, if so, S706 is executed, otherwise, S705 is executed.
In S705, the streaming media service node that has fetched the stream from the monitoring point and whose number of connections is not full and the number of connections with the monitoring point is the maximum is determined as the redirected streaming media service node, and then S714 is performed.
In S706, it is determined whether there is a streaming media service node in the video surveillance system that is not streaming from the surveillance point and has a connection number less than full, if so, S707 is executed, otherwise, S708 is executed.
In S707, the streaming media service node that is not streamed from the monitoring point in the video monitoring system, has a connection number less than full and has the lowest load is determined as the redirected streaming media service node, and then S714 is performed.
In S708, it is determined whether a connection with a session right lower than the access request exists in the streaming media service node that has fetched the stream from the monitoring point and the connection number is full, if so, S709 is executed, otherwise, S712 is executed.
In S709, it is determined that the session right is lower than the streaming service node where the connection requested by the access request is located, the connection is disconnected, the streaming service node disconnected from the connection is determined as a redirected streaming service node, and then S714 is performed.
In S710, it is determined whether there is a streaming service node with the lowest load and a connection number that is not full, if so, S711 is executed, otherwise, S712 is executed.
In S711, the streaming service node with the lowest load and less connection number is determined as the redirected streaming service node, and then S714 is performed.
In S712, it is determined whether there is a connection with session authority lower than the access request, if so, S713 is executed, otherwise, the access request processing flow is ended.
In S713, it is determined that the session right is lower than the streaming service node where the connection of the access request is located, the connection is disconnected, the streaming service node disconnected from the connection is determined as a redirected streaming service node, and then S714 is performed.
In S714, the access request is redirected to the redirected streaming service node.
Illustratively, after receiving the access request Q for the monitoring point M, the cluster management node first determines whether a streaming media service node has taken a stream from the monitoring point M before, if there is streaming media service node Si to take stream from monitoring point M before, then further judge if the connection number of streaming media service node Si is full, if the number of connections of the streaming service node Si is not full, the access request Q is redirected to the streaming service node Si, if the number of connections of the streaming media service node Si is full, further determining whether there is a streaming media service node whose number of connections is not full and which is not fetching the stream from the monitoring point M in the video monitoring system, if so, redirecting the access request Q to the streaming media service node, otherwise disconnecting the connection with the session authority lower than that of the access request Q in the streaming media service node Si, and redirecting the access request Q to the streaming media service node Si.
If no streaming media service node Si fetches the stream from the monitoring point M before, that is, the monitoring point M is possibly a newly added monitoring point, further judging whether a streaming media service node Tj with the lowest load and less than full connection number exists, and if the streaming media service node Tj exists, redirecting the access request Q to the streaming media service node Tj. If the streaming media service node Tj does not exist, disconnecting the streaming media service node with the lowest load and the full connection number, wherein the session authority of the streaming media service node is lower than that of the access request Q, and redirecting the access request Q to the disconnected streaming media service node.
In addition, if the session authority of each connection in the streaming media service node with the lowest load and the full number of connections is higher than the access request Q, another streaming media service node can be selected from the video monitoring system, and the access request Q is redirected to the streaming media service node.
Therefore, the cluster management node can store the relationship between the monitoring point and the plurality of streaming media service nodes according to the respective monitoring point lists reported by the streaming media service nodes, so that when a certain terminal device requests the same monitoring point video, a group of streaming media service nodes corresponding to the monitoring point can be quickly found according to the relationship, the streaming media service node with the connection number not full and the distribution number of the monitoring point being the maximum is found in the group of streaming media service nodes, and if the connection numbers of the group of streaming media service nodes are full, one streaming media service node with the lowest load is searched from other streaming media service nodes. And if the connection number of all the streaming media service nodes is full, preempting the group of streaming media service nodes corresponding to the monitoring point according to the authority.
FIG. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. Referring to fig. 8, at a hardware level, the computer device includes a processor, and optionally further includes a communication bus, a communication interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the computer device may also include hardware required for other services.
The processor, the communication interface, and the memory may be connected to each other by a communication bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form an access request processing device in the video monitoring system on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
receiving an access request triggered by a monitoring point;
acquiring characteristic information of a streaming media service node, wherein the characteristic information comprises at least one of the following items: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node;
determining a redirected streaming media service node according to the characteristic information;
and redirecting the access request to the redirected streaming media service node, and processing the access request by the redirected streaming media service node.
The method executed by the access request processing device in the video monitoring system according to the embodiment shown in fig. 8 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The computer device may also execute the method in fig. 2, and implement the functions of the access request processing apparatus in the video monitoring system in the embodiment shown in fig. 2, which are not described herein again in this embodiment of the present application.
Of course, besides the software implementation, the computer device of the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
The embodiment of the application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the computer program realizes receiving an access request triggered by a monitoring point; acquiring characteristic information of a streaming media service node, wherein the characteristic information comprises at least one of the following items: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node; determining a redirected streaming media service node according to the characteristic information; and redirecting the access request to the redirected streaming media service node, and processing the access request by the redirected streaming media service node.
Fig. 9 is a schematic structural diagram of an access request processing apparatus in a video surveillance system according to an embodiment of the present application, where the apparatus is applied to a cluster management node. Referring to fig. 9, in a software implementation, an access request processing apparatus 900 in a video surveillance system may include: an access request receiving unit 901, a feature information acquiring unit 902, a redirection node determining unit 903, and an access request processing unit 904, wherein,
an access request receiving unit 901, configured to receive an access request triggered by a monitoring point;
a characteristic information obtaining unit 902, configured to obtain characteristic information of a streaming media service node, where the characteristic information includes at least one of the following: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node;
a redirection node determining unit 903, configured to determine a redirection streaming media service node according to the feature information acquired by the feature information acquiring unit 902;
an access request processing unit 904, configured to redirect the access request to the redirected streaming media service node, where the redirected streaming media service node processes the access request.
As can be seen from the foregoing embodiments, in the embodiments, a redirected streaming media service node may be selected according to characteristic information of each streaming media service node in a video monitoring system, an access request is redirected to the redirected streaming media service node, and then the redirected streaming media service node provides a streaming media service for a user. Compared with the prior art, the method and the device have the advantages that the access request can be redirected to any streaming media service node meeting the conditions according to the characteristic information of the streaming media service node instead of being redirected to a specific streaming media service node, so that the load of the streaming media service node in the video monitoring system is more balanced, and the distribution bottleneck of the whole video monitoring system is avoided.
Optionally, as an embodiment, the redirection node determining unit 903 may include:
and the first redirection node determining subunit is configured to determine, as the redirected streaming media service node, the streaming media service node that is obtained from the monitoring point and has a connection number that is less than the full number.
Optionally, as an embodiment, the first redirection node determining subunit is specifically configured to:
determining the streaming media service nodes which take the streams from the monitoring points and have less connection numbers;
and determining the streaming media service node with the maximum number of connections with the monitoring point in the determined streaming media service nodes as a redirected streaming media service node.
Optionally, as an embodiment, the access request carries session permission information; the redirection node determining unit 903 may include:
a second redirection node determination subunit, configured to determine a streaming media service node where the connection that is full in number of connections and has lower session permission than the access request is located and which takes the stream from the monitoring point;
disconnecting the connection in the streaming service node;
and determining the streaming media service node disconnected with the connection as a redirected streaming media service node.
Optionally, as an embodiment, the second redirection node determining subunit is further configured to, when the number of connections of the streaming media service node that fetches a stream from the monitoring point is full, determine whether there is a streaming media service node whose number of connections is not full;
if the streaming media service node with the connection number not full exists, determining the streaming media service node with the connection number not full and the lowest load as a redirected streaming media service node;
and if the streaming media service node with the connection number not full does not exist, triggering and executing the operation of determining the streaming media service node where the connection number is full and the session authority is lower than that of the access request.
Optionally, as an embodiment, the redirection node determining unit 903 may include:
and the third redirection node determining subunit is configured to determine, as the redirected streaming media service node, the streaming media service node with the lowest load and less connection number in the case that there is no streaming media service node that takes a stream from the monitoring point.
Optionally, as an embodiment, the access request carries session permission information; the redirection node determining unit 903 may include:
a fourth redirection node determination subunit, configured to determine, in the absence of a streaming media service node that fetches a stream from the monitoring point, a streaming media service node where a connection with the lowest load, a full connection number, and a lower session permission than the access request is located;
disconnecting the connection in the streaming service node;
and determining the streaming media service node disconnected with the connection as a redirected streaming media service node.
Optionally, as an embodiment, the apparatus may further include:
the pre-receiving unit is used for receiving the characteristic information reported by the streaming media service node in advance and storing the characteristic information to the local;
the characteristic information obtaining unit 902 may include:
and the characteristic information acquisition subunit is used for locally acquiring the characteristic information of the streaming media service node from the cluster management node.
Optionally, as an embodiment, the apparatus may further include:
a control instruction sending unit, configured to send a control instruction to a streaming media service node, where the control instruction is used to instruct the streaming media service node to report feature information to the cluster management node;
the judging unit is used for judging whether the characteristic information reported by the streaming media service node is received within a preset time length or not, and taking the characteristic information received within the preset time length as the characteristic information of the streaming media service node under the request that the judging result is yes; and under the condition that the judgment result is negative, triggering the characteristic information acquisition subunit to execute the operation of locally acquiring the characteristic information of the streaming media service node from the cluster management node.
Optionally, as an embodiment, the apparatus may further include:
and the characteristic information deleting unit is used for deleting the characteristic information related to the offline streaming media service node under the condition that the offline streaming media service node is detected.
Optionally, as an embodiment, the feature information obtaining unit 902 may include:
a control instruction sending subunit, configured to send a control instruction to a streaming media service node, where the control instruction is used to instruct the streaming media service node to report feature information to the cluster management node;
and the characteristic information receiving subunit is used for receiving the characteristic information reported by the streaming media service node.
The access request processing device 900 in the video monitoring system may also execute the method in the embodiment shown in fig. 2, and implement the functions of the access request processing device in the video monitoring system in the embodiment shown in fig. 9, which are not described herein again in this embodiment of the present application.
In short, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Claims (11)

1. An access request processing method in a video monitoring system is applied to a cluster management node, and is characterized by comprising the following steps:
receiving an access request triggered by a monitoring point;
acquiring characteristic information of a streaming media service node, wherein the characteristic information comprises at least one of the following items: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node;
determining a redirected streaming media service node according to the characteristic information;
redirecting the access request to the redirected streaming media service node, and processing the access request by the redirected streaming media service node;
the determining the redirected streaming media service node according to the characteristic information comprises:
determining the streaming media service node which takes the stream from the monitoring point and has less connection number as a redirected streaming media service node;
the determining, as a redirected streaming media service node, a streaming media service node that takes a stream from the monitoring point and has a connection number that is not full includes:
determining the streaming media service nodes which take the streams from the monitoring points and have less connection numbers;
and determining the streaming media service node with the maximum number of connections with the monitoring point in the determined streaming media service nodes as a redirected streaming media service node.
2. The method of claim 1, wherein the access request carries session permission information; the determining the redirected streaming media service node according to the characteristic information comprises:
determining a streaming media service node where the connection which is taken from the monitoring point and has full connection number and lower session authority than the access request is located;
disconnecting the connection in the streaming service node;
and determining the streaming media service node disconnected with the connection as a redirected streaming media service node.
3. The method of claim 2, wherein prior to the determining that the number of connections is full and the session rights are lower than the streaming media service node where the connection of the access request is located, the method further comprises:
under the condition that the connection number of the streaming media service node which takes the stream from the monitoring point is full, judging whether the streaming media service node with the connection number which is not full exists;
if the streaming media service node with the connection number not full exists, determining the streaming media service node with the connection number not full and the lowest load as a redirected streaming media service node;
if the streaming media service node with the connection number not full does not exist, the step of determining the streaming media service node which takes the stream from the monitoring point, has the connection number full and has the session authority lower than that of the access request is executed.
4. The method of claim 1, wherein the determining the redirected streaming media service node according to the characteristic information comprises:
and under the condition that no streaming media service node for taking the stream from the monitoring point exists, determining the streaming media service node with the lowest load and less connection number as the redirected streaming media service node.
5. The method of claim 1, wherein the access request carries session permission information; the determining the redirected streaming media service node according to the characteristic information comprises:
under the condition that no streaming media service node which takes streams from the monitoring point exists, determining the streaming media service node which has the lowest load, is full in connection number and has lower session authority than the connection of the access request;
disconnecting the connection in the streaming service node;
and determining the streaming media service node disconnected with the connection as a redirected streaming media service node.
6. The method of claim 1, wherein the method further comprises:
receiving characteristic information reported by a streaming media service node in advance, and storing the characteristic information to the local;
the acquiring the characteristic information of the streaming media service node includes:
and locally acquiring the characteristic information of the streaming media service node from the cluster management node.
7. The method of claim 6, wherein prior to said locally obtaining feature information of a streaming media service node from the cluster management node, further comprising:
sending a control instruction to a streaming media service node, wherein the control instruction is used for indicating the streaming media service node to report characteristic information to the cluster management node;
judging whether the characteristic information reported by the streaming media service node is received within a preset time length;
if the characteristic information is received in the preset time length, taking the characteristic information received in the preset time length as the characteristic information of the streaming media service node;
and if the characteristic information is not received within the preset time length, locally acquiring the characteristic information of the streaming media service node from the cluster management node.
8. The method of claim 6, wherein the method further comprises:
and in the case that the streaming media service node is detected to be offline, deleting the characteristic information related to the offline streaming media service node.
9. The method of claim 1, wherein the obtaining of the feature information of the streaming media service node comprises:
sending a control instruction to a streaming media service node, wherein the control instruction is used for indicating the streaming media service node to report characteristic information to the cluster management node;
and receiving the characteristic information reported by the streaming media service node.
10. An access request processing device in a video monitoring system, applied to a cluster management node, the device comprising:
an access request receiving unit, configured to receive an access request triggered by a monitoring point;
the device comprises a characteristic information acquisition unit, a characteristic information acquisition unit and a processing unit, wherein the characteristic information acquisition unit is used for acquiring the characteristic information of a streaming media service node, and the characteristic information comprises at least one of the following items: the relationship between the streaming media service node and the monitoring point, the connection state of the streaming media service node, the session authority of the connection on the streaming media service node and the load of the streaming media service node;
a redirection node determination unit, configured to determine a redirection streaming media service node according to the feature information acquired by the feature information acquisition unit;
an access request processing unit, configured to redirect the access request to the redirected streaming media service node, where the redirected streaming media service node processes the access request;
the redirection node determination unit includes:
a first redirection node determining subunit, configured to determine a streaming media service node that fetches a stream from the monitoring point and has a connection number that is less than a full number;
and determining the streaming media service node with the maximum number of connections with the monitoring point in the determined streaming media service nodes as a redirected streaming media service node.
11. The computer equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the bus; a memory for storing a computer program; a processor for executing a program stored in the memory to perform the method steps of any of claims 1 to 9.
CN201810922569.1A 2017-12-28 2018-08-14 Access request processing method and device in video monitoring system Active CN109982034B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711466329 2017-12-28
CN2017114663297 2017-12-28

Publications (2)

Publication Number Publication Date
CN109982034A CN109982034A (en) 2019-07-05
CN109982034B true CN109982034B (en) 2021-02-02

Family

ID=67075983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810922569.1A Active CN109982034B (en) 2017-12-28 2018-08-14 Access request processing method and device in video monitoring system

Country Status (1)

Country Link
CN (1) CN109982034B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532943B (en) * 2020-11-30 2022-12-27 苏州浪潮智能科技有限公司 Monitoring video distribution method, device, equipment and storage medium
CN113556585B (en) * 2021-07-21 2022-11-04 中国建设银行股份有限公司 Video stream limiting method and device
CN113873301A (en) * 2021-09-22 2021-12-31 深圳市商汤科技有限公司 Video stream acquisition method and device, server and storage medium
CN115150592A (en) * 2022-09-02 2022-10-04 浙江大华技术股份有限公司 Audio and video transmission method, server and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001218194A (en) * 1999-11-15 2001-08-10 Canon Inc Control method for image pickup unit and image distributing system, controller for image pickup unit, system and device for distributing image and device and method for distributing data
CN1495634A (en) * 2002-06-27 2004-05-12 上海汉唐科技有限公司 Server clustering load balancing method and system
CN101094391A (en) * 2007-06-26 2007-12-26 南京联创网络科技有限公司 Strategy method for video binding thin resources of diversiform video exchange routes
CN103686201A (en) * 2012-09-14 2014-03-26 方正国际软件(北京)有限公司 Wireless mobile video monitoring system and wireless mobile video monitoring method
CN104010160A (en) * 2013-02-25 2014-08-27 杭州海康威视系统技术有限公司 Mainline management method of video monitoring system and device thereof
CN107257387A (en) * 2017-08-18 2017-10-17 四川长虹电器股份有限公司 Adaptive load balancing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2743949A1 (en) * 2010-06-22 2011-12-22 Iwatchlife System and method of local resource delivery

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001218194A (en) * 1999-11-15 2001-08-10 Canon Inc Control method for image pickup unit and image distributing system, controller for image pickup unit, system and device for distributing image and device and method for distributing data
CN1495634A (en) * 2002-06-27 2004-05-12 上海汉唐科技有限公司 Server clustering load balancing method and system
CN101094391A (en) * 2007-06-26 2007-12-26 南京联创网络科技有限公司 Strategy method for video binding thin resources of diversiform video exchange routes
CN103686201A (en) * 2012-09-14 2014-03-26 方正国际软件(北京)有限公司 Wireless mobile video monitoring system and wireless mobile video monitoring method
CN104010160A (en) * 2013-02-25 2014-08-27 杭州海康威视系统技术有限公司 Mainline management method of video monitoring system and device thereof
CN107257387A (en) * 2017-08-18 2017-10-17 四川长虹电器股份有限公司 Adaptive load balancing method

Also Published As

Publication number Publication date
CN109982034A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109982034B (en) Access request processing method and device in video monitoring system
CN109842781B (en) Monitoring video playing method, device, system, media server and storage medium
WO2016180182A1 (en) Service package recommendation method and device
US10070302B2 (en) Internet of things (IoT) delay tolerant wireless network service
US10931755B2 (en) Method and apparatus for managing a shared storage system
CN109391512B (en) Service publishing method and device and electronic equipment
US20150088995A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN110650209B (en) Method and device for realizing load balancing
US20210058811A1 (en) Method and apparatus for detecting time series data
CN110677684B (en) Video processing method, video access method, distributed storage method and distributed video access system
CN112671897B (en) Access method, device, storage medium, equipment and product of distributed system
CN109522462B (en) Cloud query method, device, equipment and storage medium based on block chain
CN113517985A (en) File data processing method and device, electronic equipment and computer readable medium
CN108124021B (en) Method, device and system for obtaining Internet Protocol (IP) address and accessing website
CN112464257A (en) Data detection method and device for data detection
CN107509097B (en) Video sharing method and device and sharing server
CN107819761B (en) Data processing method and device and readable storage medium
EP4027678A1 (en) Authorization in cellular communication systems
CN107342981B (en) Sensor data transmission method and device and virtual reality head-mounted equipment
CN110581784A (en) node health check method, device and equipment
CN113055350B (en) Data transmission method, device, equipment and readable storage medium
CN114328129A (en) Message sending method, device, equipment and storage medium
US10742802B2 (en) Methods and devices for verifying a communication number
CN114296869A (en) Server node service method and device based on TCP long connection
CN114528264A (en) Data synchronization method and system

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