CN111835717B - Method and device for acquiring monitoring code stream and readable storage medium - Google Patents

Method and device for acquiring monitoring code stream and readable storage medium Download PDF

Info

Publication number
CN111835717B
CN111835717B CN202010501582.7A CN202010501582A CN111835717B CN 111835717 B CN111835717 B CN 111835717B CN 202010501582 A CN202010501582 A CN 202010501582A CN 111835717 B CN111835717 B CN 111835717B
Authority
CN
China
Prior art keywords
monitoring
server
cooperative
request
code stream
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
CN202010501582.7A
Other languages
Chinese (zh)
Other versions
CN111835717A (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202010501582.7A priority Critical patent/CN111835717B/en
Publication of CN111835717A publication Critical patent/CN111835717A/en
Application granted granted Critical
Publication of CN111835717B publication Critical patent/CN111835717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for acquiring a monitoring code stream and a readable storage medium, wherein the method comprises the following steps: the method comprises the steps of receiving a monitoring request sent by a monitoring client, sending the monitoring request to a target cooperative server, receiving a monitoring response sent by the target cooperative server, wherein the monitoring response comprises address information, port identification and idle video network numbers of the target cooperative server, generating a Session Initiation Protocol (SIP) request according to the address information, the port identification and monitoring equipment identification, sending the SIP request to the monitoring server, receiving an SIP success response sent by the monitoring server, and sending the idle video network numbers to the monitoring client in response to the SIP success response, so that the monitoring client receives monitoring code streams sent by the target cooperative server through the idle video network numbers, and the pressure of a first cooperative server is reduced to a certain extent.

Description

Method and device for acquiring monitoring code stream and readable storage medium
Technical Field
The invention relates to the field of communication, in particular to a method and a device for acquiring a monitoring code stream and a readable storage medium.
Background
The monitoring server based on the video networking can control the monitoring equipment accessed to the corotation server, and the signaling interaction is carried out between the monitoring client and the corotation server and between the corotation server and the monitoring server, so that the monitoring client can acquire and display the monitoring code stream from the monitoring equipment.
In the prior art, a monitoring client sends a monitoring request to a co-rotating server to request monitoring code streams of certain monitoring devices, the co-rotating server sends the monitoring request to the monitoring server, the monitoring server obtains the monitoring code streams of the monitoring devices and sends the monitoring code streams to the co-rotating server, and the co-rotating server sends the received monitoring code streams to the monitoring client for display. Currently, the stress of the corotation server is large.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are provided to provide a method, apparatus, and readable storage medium for acquiring a monitoring code stream, which overcome or at least partially solve the foregoing problems.
In order to solve the above problems, an embodiment of the present invention discloses a method for acquiring a monitoring code stream, which is applied to a first cooperative server and includes:
receiving a monitoring request sent by a monitoring client, wherein the monitoring request comprises a monitoring equipment identifier;
sending the monitoring request to a target corotation server;
receiving a monitoring response sent by the target cooperative server, wherein the monitoring response comprises address information, a port identifier and an idle video networking number of the target cooperative server;
Generating a Session Initiation Protocol (SIP) request according to the address information, the port identification and the monitoring equipment identification, and sending the SIP request to a monitoring server;
and receiving a SIP success response sent by the monitoring server, and responding to the SIP success response, and sending the idle video network number to the monitoring client so that the monitoring client receives a monitoring code stream sent by the target cooperative forwarding server through the idle video network number, wherein the monitoring code stream is a code stream obtained by the monitoring server from monitoring equipment corresponding to the monitoring equipment identifier.
The embodiment of the invention also discloses a monitoring code stream acquisition method which is applied to the target cooperative server and comprises the following steps:
receiving a monitoring request sent by a first coordination server, wherein the monitoring request is sent to the first coordination server by a monitoring client, and the monitoring request comprises a monitoring equipment identifier;
sending a monitoring response to the first cooperative server, wherein the monitoring response comprises address information, port identification and idle video networking number of the target cooperative server, so that the first cooperative server generates a Session Initiation Protocol (SIP) request according to the monitoring equipment identification, the address information and the port identification, and sends the SIP request to the monitoring server;
Receiving a monitoring code stream of monitoring equipment corresponding to the monitoring equipment identifier, which is sent by the monitoring server according to the address information and the port identifier;
and sending the monitoring code stream to the monitoring client through the idle video network number.
The embodiment of the invention also discloses a monitoring code stream acquisition method which is applied to the monitoring server and comprises the following steps:
receiving a Session Initiation Protocol (SIP) request sent by a first coordination server, wherein the SIP request comprises a monitoring equipment identifier, address information of a target coordination server and a port identifier, and the monitoring equipment identifier is an identifier included in a monitoring request sent by a monitoring client to the first coordination server;
sending a SIP success response to the first cooperative server, so that the first cooperative server responds to the SIP success response and sends an idle video networking number to the monitoring client, wherein the idle video networking number is determined by the target cooperative server in response to the monitoring request sent by the first cooperative server;
and acquiring a monitoring code stream of the monitoring equipment corresponding to the monitoring equipment identifier, and sending the monitoring code stream to the target cooperative server according to the address information and the port identifier.
The embodiment of the invention also discloses a monitoring code stream acquisition device which is arranged on the first cooperative rotation server and comprises:
the receiving module is used for receiving a monitoring request sent by the monitoring client, wherein the monitoring request comprises a monitoring equipment identifier;
the sending module is used for sending the monitoring request to the target corotation server;
the receiving module is further configured to receive a monitoring response sent by the target cooperative server, where the monitoring response includes address information, a port identifier, and an idle video networking number of the target cooperative server;
the sending module is further configured to generate a session initiation protocol SIP request according to the address information, the port identifier, and the monitoring device identifier, and send the SIP request to a monitoring server;
the receiving module is further configured to receive a SIP success response sent by the monitoring server, and send the idle internet-of-view number to the monitoring client in response to the SIP success response, so that the monitoring client receives, through the idle internet-of-view number, a monitoring code stream sent by the target co-ordination server, where the monitoring code stream is a code stream obtained by the monitoring server from a monitoring device corresponding to the monitoring device identifier.
The embodiment of the invention also discloses a monitoring code stream acquisition device which is arranged on the target cooperative server and comprises the following components:
the system comprises a request receiving module, a monitoring module and a monitoring module, wherein the request receiving module is used for receiving a monitoring request sent by a first coordination server, the monitoring request is sent to the first coordination server by a monitoring client, and the monitoring request comprises a monitoring equipment identifier;
the response sending module is used for sending a monitoring response to the first cooperative server, wherein the monitoring response comprises address information, port identification and idle video networking number of the target cooperative server, so that the first cooperative server generates a Session Initiation Protocol (SIP) request according to the monitoring equipment identification, the address information and the port identification, and sends the SIP request to the monitoring server;
the code stream receiving module is used for receiving a monitoring code stream of the monitoring equipment, which is sent by the monitoring server according to the address information and the port identification and corresponds to the monitoring equipment identification;
and the code stream sending module is used for sending the monitoring code stream to the monitoring client through the idle video network number.
The embodiment of the invention also discloses a monitoring code stream acquisition device, which comprises:
One or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the monitoring code stream acquisition method described above.
The embodiment of the invention also discloses a computer readable storage medium, and a stored computer program causes a processor to execute the method for acquiring the monitoring code stream.
The embodiment of the invention has the following advantages:
according to the monitoring code stream obtaining device provided by the embodiment, a monitoring request sent by a monitoring client is received, the monitoring request comprises a monitoring equipment identifier, the monitoring request is sent to a target cooperative server, a monitoring response sent by the target cooperative server is received, the monitoring response comprises address information, port identifiers and idle video network numbers of the target cooperative server, a Session Initiation Protocol (SIP) request is generated according to the address information, the port identifiers and the monitoring equipment identifiers, the SIP request is sent to the monitoring server, an SIP success response sent by the monitoring server is received, the idle video network numbers are sent to the monitoring client in response to the SIP success response, so that the monitoring client receives a monitoring code stream sent by the target cooperative server through the idle video network numbers, and the monitoring code stream is a code stream obtained by the monitoring server from a monitoring device corresponding to the monitoring equipment identifier. The first cooperative server is only used for processing the signaling, does not participate in the receiving and forwarding of the monitoring code stream, but receives the monitoring code stream by the target cooperative server and forwards the monitoring code stream, namely the signaling and the monitoring code stream are respectively processed by different cooperative servers, so that the pressure of the first cooperative server is reduced to a certain extent.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a flowchart of steps of a method for acquiring a monitoring code stream according to an embodiment of the present invention;
fig. 2 is a system architecture diagram of a method for acquiring a monitoring code stream according to an embodiment of the present invention;
FIG. 3 is a system architecture diagram of another method for acquiring a monitoring code stream according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a monitoring code stream acquiring device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another monitoring code stream acquiring device according to an embodiment of the present invention;
Fig. 6 is a schematic structural diagram of another monitoring code stream acquiring device according to an embodiment of the present invention;
FIG. 7 is a networking schematic of the present invention for a video networking;
FIG. 8 is a schematic diagram of the hardware architecture of a node server according to the present invention;
fig. 9 is a schematic diagram of a hardware architecture of an access switch according to the present invention;
fig. 10 is a schematic hardware structure of an ethernet corotating gateway according to the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In order to more clearly describe the embodiment of the present invention, the prior art is first described with reference to the acquisition flow of the monitoring code stream: the monitoring client sends a monitoring request to the cooperative server to request the monitoring code streams of some monitoring devices, the cooperative server sends the monitoring request to the monitoring server, the monitoring server obtains the monitoring code streams of the monitoring devices and sends the monitoring code streams to the cooperative server, and the cooperative server sends the received monitoring code streams to the monitoring client for display. The corotation server processes the monitoring request and the monitoring code stream simultaneously, so that the pressure of the corotation server is high.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a method for acquiring a monitoring code stream according to an embodiment of the present invention, where the method is applied to a first coordination server, and the method includes the following steps:
step 101, receiving a monitoring request sent by a monitoring client, wherein the monitoring request comprises a monitoring equipment identifier.
The monitoring client is also called Tanggla, and is responsible for displaying the whole monitoring catalogue, calling the monitoring video and configuring various unified management platforms for monitoring the video networking.
The co-rotating server is also called a monitoring access server and is responsible for accessing monitoring equipment (also described as monitoring resources) of the Internet and/or monitoring equipment of a third-party national standard lower-level platform into the video networking, so that the browsing and control of the monitoring equipment on the Internet in the video networking can be realized.
Specifically, referring to fig. 2, fig. 2 is a system architecture diagram of a method for acquiring a monitoring code stream according to an embodiment of the present invention. The monitoring client may receive an operation instruction executed by the user, so that a monitoring request is sent to the first corotation server in response to the operation instruction, where the monitoring request includes a monitoring device identifier.
The monitoring client may send a monitoring request to the first coordination server at a time, where the monitoring request includes an identifier of a monitoring device. The monitoring client may send a monitoring request to the corotation server multiple times to request monitoring code streams of multiple monitoring devices.
And 102, sending a monitoring request to the target corotation server.
And after the first corotation server receives the monitoring request, the first corotation server sends the monitoring request to the target corotation server.
The target cooperative server may be a pre-deployed server (i.e., a cooperative server is further deployed in addition to the first cooperative server), and after the first cooperative server receives the monitoring request, the first cooperative server may send the monitoring request to the cooperative server, where the cooperative server is the target cooperative server). Either any one of a plurality of servers that are pre-deployed or the one that is selected from the plurality of servers that has the least current pressure.
It should be noted that only one cooperative server is deployed in the prior art, and after the cooperative server receives the monitoring request, the cooperative server directly sends the monitoring request to the monitoring server to obtain the monitoring code stream of the monitoring device. In this embodiment, the first coordination server sends the monitoring request to the target coordination service after receiving the monitoring request. The upper part of the monitoring server belongs to a national standard lower stage platform, and can manage the monitoring equipment which is mounted under the monitoring server, and the monitoring equipment is a camera for example.
And step 103, receiving a monitoring response sent by the target cooperative server, wherein the monitoring response comprises address information, port identification and idle video networking number of the target cooperative server.
After receiving the monitoring request, the target cooperative server selects one idle video network number from at least one idle video network number of the target cooperative server, and sends a monitoring response to the first cooperative server, wherein the monitoring response comprises address information of the target cooperative server, port identification and the selected idle video network number. Correspondingly, the first corotation server receives the monitoring response sent by the target corotation server. The address information may be an internet protocol (IP, internetProtocol) address, among others.
And 104, generating a Session Initiation Protocol (SIP) request according to the address information, the port identification and the monitoring equipment identification, and sending the SIP request to the monitoring server.
The first cooperative server generates a session initiation protocol (SIP, sessionInitiateProtocol) request according to the address information, the port identifier and the monitoring device identifier, that is, the SIP request includes the monitoring device identifier, the address information of the target cooperative server and the port identifier. The first corotation server sends SIP request to the monitoring server.
And 105, receiving a SIP success response sent by the monitoring server, and responding to the SIP success response, and sending an idle video network number to the monitoring client so that the monitoring client receives a monitoring code stream sent by the target cooperative server through the idle video network number, wherein the monitoring code stream is a code stream obtained by the monitoring server from the monitoring equipment corresponding to the monitoring equipment identifier.
After receiving the SIP request sent by the first coordination server, the monitoring server can determine whether the SIP request is legal (i.e. determine whether the SIP request meets the requirement of the session initiation protocol), and if the SIP request is legal, the monitoring server sends a SIP success response to the first coordination server. Correspondingly, the first cooperative transfer server receives the SIP successful response and sends the idle video network number selected by the target cooperative transfer server to the monitoring client, so that the monitoring client receives the monitoring code stream sent by the target cooperative transfer server through the idle video network number, and the monitoring code stream is the code stream acquired by the monitoring server from the monitoring equipment corresponding to the monitoring equipment identifier.
After receiving the SIP request, the monitoring server obtains a monitoring code stream of the monitoring device corresponding to the monitoring device identifier according to the monitoring device identifier included in the SIP request, and sends the obtained monitoring code stream to the target cooperative server. Because the monitoring server sends the monitoring code stream to the target cooperative server, and correspondingly, the target cooperative server receives the monitoring code stream, the first cooperative server does not need to receive the monitoring code stream and forward the monitoring code stream, and the pressure of the first cooperative server is reduced to a certain extent.
In addition, in the embodiment of the invention, the pressure of the first corotation server is reduced, so that the first corotation server can process more monitoring requests and the efficiency of processing the monitoring requests can be improved to a certain extent.
According to the monitoring code stream obtaining method provided by the embodiment, a monitoring request sent by a monitoring client is received, the monitoring request comprises a monitoring equipment identifier, the monitoring request is sent to a target cooperative server, a monitoring response sent by the target cooperative server is received, the monitoring response comprises address information, port identifiers and idle video network numbers of the target cooperative server, a Session Initiation Protocol (SIP) request is generated according to the address information, the port identifiers and the monitoring equipment identifiers, the SIP request is sent to the monitoring server, an SIP success response sent by the monitoring server is received, the idle video network numbers are sent to the monitoring client in response to the SIP success response, the monitoring client is enabled to receive the monitoring code stream sent by the target cooperative server through the idle video network numbers, and the monitoring code stream is a code stream obtained by the monitoring server from the monitoring equipment corresponding to the monitoring equipment identifier. The first cooperative server is only used for processing the signaling, does not participate in the receiving and forwarding of the monitoring code stream, but receives the monitoring code stream by the target cooperative server and forwards the monitoring code stream, namely the signaling and the monitoring code stream are respectively processed by different cooperative servers, so that the pressure of the first cooperative server is reduced to a certain extent.
Referring to fig. 3, fig. 3 is a signaling flow chart of another method for acquiring a monitoring code stream according to an embodiment of the present invention, where the method includes the following steps:
step 301, a first coordination server receives a monitoring request sent by a monitoring client.
Step 302, the first corotation server determines a target corotation server from the plurality of second corotation servers according to the states of the plurality of second corotation servers and the number of idle video networking numbers of each second corotation server.
Step 302 may be implemented in two ways:
mode one: determining a third corotation server in an online state from a plurality of second corotation servers according to the state of each second corotation server; if the number of the third cooperative servers is one and the third cooperative servers have idle video networking numbers, sending a request to the third cooperative servers; and if a successful response sent by the third cooperative server is received, the third cooperative server is used as a target cooperative server.
It should be noted that, heartbeat interaction is performed between the first coordination server and each second coordination server, where the first coordination server may send a heartbeat request to each second coordination server, and if a heartbeat response sent by the second coordination server is received within a preset time, the second coordination server is considered to be in an online state; if the heartbeat response sent by the second cooperative server is not received within the preset time, the second cooperative server is considered to be in an offline state. The second cooperative rotating server can send the number of the idle video networking numbers of the second cooperative rotating server to the first cooperative rotating server in the heartbeat response, so that the first cooperative rotating server can acquire the states (including an on-line state and an off-line state) of the second cooperative rotating servers and the number of the idle video networking numbers of each second cooperative rotating server, and the target cooperative rotating server can be determined from the second cooperative rotating servers according to the states of the second cooperative rotating servers and the number of the idle video networking numbers of each second cooperative rotating server.
It should be noted that, because the determined target cooperative server is an online cooperative server and the target cooperative server has an idle internet-of-view number, the target cooperative server can select an idle internet-of-view number from the idle internet-of-view numbers, and send the selected idle internet-of-view number to the first cooperative server. And the first cooperative forwarding server can send the selected idle video network number to the monitoring client after receiving the SIP success response sent by the monitoring server, so that the monitoring client can receive the monitoring code stream sent by the target cooperative forwarding server through the selected idle video network number.
In addition, as a plurality of second cooperative servers are arranged, each second cooperative server has the opportunity to serve as a target cooperative server under the condition of being in an on-line state to receive and forward the monitoring code stream, so that the monitoring client can acquire the monitoring code stream of more monitoring devices. For example, there are 5 second cooperated servers, and when the 5 second cooperated servers are all in an on-line state, each second cooperated server forwards the monitoring code stream of 20 monitoring devices, and then the 5 second cooperated servers can forward the monitoring code stream of 100 monitoring devices. In the prior art, only one cooperative server is responsible for signaling interaction and receiving and forwarding of monitoring code streams, and the monitoring code streams of 100 monitoring devices cannot be forwarded at the same time due to overlarge pressure of the cooperative server. Therefore, the method for acquiring the monitoring code stream provided in the embodiment can improve the concurrency quantity of the monitoring code stream to a certain extent.
Mode two: determining a fourth corotation server in an online state from a plurality of second corotation servers according to the state of each second corotation server;
if the number of the fourth cooperative servers is at least two, determining the number of idle video networking numbers of each fourth cooperative server;
determining the maximum number in all numbers, and sending a request to a fourth cooperative server corresponding to the maximum number;
and if a successful response sent by the fourth cooperative server corresponding to the maximum number is received, taking the fourth cooperative server corresponding to the maximum number as a target cooperative server.
The fourth cooperative servers corresponding to the maximum number are servers in an online state and have the idle internet of view numbers of the maximum number, so that the current load of the fourth cooperative servers corresponding to the maximum number is the lowest, and therefore, the first cooperative server can send a request to the fourth cooperative servers corresponding to the maximum number, and after receiving a successful response sent by the fourth cooperative servers corresponding to the maximum number, the fourth cooperative servers corresponding to the maximum number can be used as target cooperative servers, so that one cooperative server with the lowest current load can be determined from the fourth cooperative servers in the online state as the target cooperative server, and load balancing among the fourth cooperative servers can be realized.
If the number of the fourth cooperating servers corresponding to the maximum number is plural, one server may be selected as the target cooperating server from the fourth cooperating servers corresponding to the maximum number. Because the load of the determined target cooperative server is lower, the efficiency of forwarding the monitoring code stream by the target cooperative server can be accelerated to a certain extent, and the time period required by the monitoring client waiting for receiving the monitoring code stream is reduced.
Step 303, the first corotation server sends a monitoring request to the target corotation server.
Correspondingly, the target cooperative server receives a monitoring request sent by the first cooperative server, wherein the monitoring request is sent to the first cooperative server by the monitoring client, and the monitoring request comprises a monitoring equipment identifier.
Step 304, the target cooperative server sends a monitoring response to the first cooperative server, wherein the monitoring response comprises address information, port identification and idle video networking number of the target cooperative server.
In step 305, the first co-rotating server generates a session initiation protocol SIP request according to the monitoring device identifier, the address information and the port identifier, and sends the SIP request to the monitoring server.
Correspondingly, the monitoring server receives a Session Initiation Protocol (SIP) request sent by the first coordination server.
Step 306, the monitoring server sends a SIP success response to the first coordination server.
In step 307, the first co-forwarding server receives the SIP success response sent by the monitoring server, and sends an idle internet of view number to the monitoring client in response to the SIP success response.
Step 308, the monitoring server obtains the monitoring code stream of the monitoring device corresponding to the monitoring device identifier, and sends the monitoring code stream to the target cooperative server according to the address information and the port identifier.
And 309, the target cooperative forwarding server sends a monitoring code stream to the monitoring client through the idle video network number.
According to the monitoring code stream obtaining method, as the plurality of second cooperative servers are arranged, each second cooperative server has the opportunity to serve as the target cooperative server under the condition that the second cooperative server is in an on-line state, the monitoring code stream is received and forwarded, and therefore the monitoring client can obtain monitoring code streams of more monitoring devices. And under the condition that the number of the fourth cooperative servers is at least two, the server with the largest number in each fourth cooperative server is used as the target cooperative server, so that load balancing is realized, and the problem that one part of the second cooperative servers are overloaded and the other part of the second cooperative servers are overloaded is avoided.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a monitoring code stream obtaining apparatus according to an embodiment of the present invention, where the apparatus 400 may be disposed on a first coordination server, and the apparatus 400 includes:
a receiving module 410, configured to receive a monitoring request sent by a monitoring client, where the monitoring request includes a monitoring device identifier;
a sending module 420, configured to send a monitoring request to a target corotation server;
the receiving module 410 is further configured to receive a monitoring response sent by the target cooperative server, where the monitoring response includes address information, a port identifier, and an idle internet of view number of the target cooperative server;
the sending module 420 is further configured to generate a session initiation protocol SIP request according to the address information, the port identifier, and the monitoring device identifier, and send the SIP request to the monitoring server;
the receiving module 410 is further configured to receive a SIP success response sent by the monitoring server, and send an idle internet-of-view number to the monitoring client in response to the SIP success response, so that the monitoring client receives, through the idle internet-of-view number, a monitoring code stream sent by the target co-ordination server, where the monitoring code stream is a code stream obtained by the monitoring server from a monitoring device corresponding to the monitoring device identifier.
According to the monitoring code stream obtaining device provided by the embodiment, a monitoring request sent by a monitoring client is received, the monitoring request comprises a monitoring equipment identifier, the monitoring request is sent to a target cooperative server, a monitoring response sent by the target cooperative server is received, the monitoring response comprises address information, port identifiers and idle video network numbers of the target cooperative server, a Session Initiation Protocol (SIP) request is generated according to the address information, the port identifiers and the monitoring equipment identifiers, the SIP request is sent to the monitoring server, an SIP success response sent by the monitoring server is received, the idle video network numbers are sent to the monitoring client in response to the SIP success response, so that the monitoring client receives a monitoring code stream sent by the target cooperative server through the idle video network numbers, and the monitoring code stream is a code stream obtained by the monitoring server from a monitoring device corresponding to the monitoring equipment identifier. The first cooperative server is only used for processing the signaling, does not participate in the receiving and forwarding of the monitoring code stream, but receives the monitoring code stream by the target cooperative server and forwards the monitoring code stream, namely the signaling and the monitoring code stream are respectively processed by different cooperative servers, so that the pressure of the first cooperative server is reduced to a certain extent.
Optionally, the method further comprises:
and the determining module is used for determining the target corotation server from the plurality of second corotation servers according to the states of the plurality of second corotation servers and the number of idle video networking numbers of each second corotation server.
Optionally, the determining module is specifically configured to determine, according to a state of each second cooperative server, a third cooperative server in an online state from the plurality of second cooperative servers;
if the number of the third cooperative servers is one and the third cooperative servers have idle video networking numbers, sending a request to the third cooperative servers;
and if a successful response sent by the third cooperative server is received, the third cooperative server is used as a target cooperative server.
Optionally, the determining module is specifically configured to determine, according to a state of each second cooperative server, a fourth cooperative server in an online state from the plurality of second cooperative servers;
if the number of the fourth cooperative servers is at least two, determining the number of idle video networking numbers of each fourth cooperative server;
determining the maximum number in all numbers, and sending a request to a fourth cooperative server corresponding to the maximum number;
And if a successful response sent by the fourth cooperative server corresponding to the maximum number is received, taking the fourth cooperative server corresponding to the maximum number as a target cooperative server.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another monitoring code stream obtaining apparatus according to an embodiment of the present invention, where the apparatus 500 may be disposed on a target cooperative server, and includes:
the request receiving module 510 is configured to receive a monitoring request sent by the first coordination server, where the monitoring request is sent by the monitoring client to the first coordination server, and the monitoring request includes a monitoring device identifier;
the response sending module 520 is configured to send a monitoring response to the first coordination server, where the monitoring response includes address information, port identifier and idle internet of view number of the target coordination server, so that the first coordination server generates a session initiation protocol SIP request according to the monitoring device identifier, the address information and the port identifier, and sends the SIP request to the monitoring server;
the code stream receiving module 530 is configured to receive a monitoring code stream of a monitoring device, which is sent by the monitoring server according to the address information and the port identifier and corresponds to the monitoring device identifier;
the code stream sending module 540 is configured to send a monitoring code stream to the monitoring client through the idle internet of view number.
According to the monitoring code stream obtaining device provided by the embodiment, the target cooperative server receives the monitoring code stream of the monitoring equipment corresponding to the monitoring equipment identifier, which is sent by the monitoring server, so that the receiving and forwarding of the monitoring code stream can be shared, and the problem of overlarge pressure of the first cooperative server is avoided.
Referring to fig. 6, fig. 6 is a schematic structural diagram of still another monitoring code stream obtaining apparatus according to an embodiment of the present invention, where the apparatus 600 may be disposed in a monitoring server, and includes:
a receiving module 610, configured to receive a session initiation protocol SIP request sent by a first coordination server, where the SIP request includes a monitoring device identifier, address information of a target coordination server, and a port identifier, where the monitoring device identifier is an identifier included in a monitoring request sent by a monitoring client to the first coordination server;
a sending module 620, configured to send a SIP success response to the first cooperative server, so that the first cooperative server responds to the SIP success response, and sends an idle internet-of-view number to the monitoring client, where the idle internet-of-view number is determined by the target cooperative server in response to the monitoring request sent by the first cooperative server;
the obtaining module 630 is configured to obtain a monitoring code stream of the monitoring device corresponding to the monitoring device identifier, and send the monitoring code stream to the target cooperative server according to the address information and the port identifier.
According to the monitoring code stream obtaining device provided by the embodiment, the monitoring code stream is sent to the target cooperative server through the monitoring server, rather than the monitoring code stream is sent to the first cooperative server as in the prior art, so that the pressure of the first cooperative server can be reduced to a certain extent.
In addition, the embodiment of the present invention further provides a monitoring code stream acquiring device, where the monitoring code stream acquiring device includes one or more processors and one or more machine-readable media storing instructions thereon, and when executed by the one or more processors, the one or more machine-readable media cause the device to execute the processes of the monitoring code stream acquiring method embodiment of the foregoing embodiment, and the same technical effects can be achieved, so that repetition is avoided and no further description is given here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above embodiment of the method for acquiring a monitoring code stream, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. The computer readable storage medium may be a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or the like.
For the product embodiments, since the technical solutions of the device embodiments described above are applied, the description is relatively simple, and reference should be made to the description of the device embodiments for relevant points.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device comprising the element.
The foregoing has described in detail a method for acquiring a monitor code stream and a device for acquiring a monitor code stream, in which specific examples are applied to illustrate the principles and embodiments of the present invention, and the above description of the examples is only for helping to understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the idea of the present invention, the present disclosure should not be construed as limiting the present invention in summary.
For a better understanding of embodiments of the present invention, the following description of the video networking is presented to one skilled in the art:
the partial techniques applied by the video networking are as follows:
network technology (network technology)
The network technology innovation of the internet of vision improves on the traditional Ethernet (Ethernet) to face the potentially huge video traffic on the network. Unlike mere network packet switching (PacketSwitching) or network circuit switching (circumscribing), the technology of video networking employs PacketSwitching to meet Streaming requirements. The video networking technology has the flexibility, simplicity and low price of packet switching, and simultaneously has the quality and the safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching technology (switching technology)
The video network adopts the two advantages of the asynchronization and the packet switching of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, has full-network end-to-end seamless connection, and is directly connected with the user terminal to directly bear the IP data packet. The user data does not need any format conversion in the whole network. The video networking is a higher-level form of Ethernet, is a real-time exchange platform, can realize real-time transmission of full-network large-scale high-definition video which cannot be realized by the current Internet, and pushes numerous network video applications to high definition and unification.
Server technology (Servertechnology)
The server technology on the video networking and unified video platform is different from the server in the traditional sense, the streaming media transmission is based on connection-oriented basis, the data processing capability is irrelevant to the flow and the communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than hundred times than that of a traditional server.
Storage technology (Storage technology)
The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system for adapting to the ultra-large capacity and ultra-large flow media content, the program information in the server instruction is mapped to a specific hard disk space, the media content does not pass through the server any more, the media content is instantly and directly delivered to a user terminal, and the waiting time of the user is generally less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical motion of magnetic head seek of the hard disk, the resource consumption only accounts for 20% of the IP Internet of the same grade, but the concurrent flow which is 3 times greater than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network security technology (networksecurity technology)
The structural design of the video networking thoroughly structurally solves the network security problem puzzling the Internet by means of independent permission of each service, complete isolation of equipment and user data and the like, generally does not need antivirus programs or firewalls, eliminates attacks of hackers and viruses, and provides a structural carefree security network for users.
Service innovation technology (serviceinformation technology)
The unified video platform fuses services with transmissions, whether a single user, private network users or a network aggregate, but automatically connects at a time. The user terminal, the set top box or the PC is directly connected to the unified video platform, so that various multimedia video services are obtained. The unified video platform adopts a menu type table allocation mode to replace the traditional complex application programming, and can realize complex application by using very few codes, thereby realizing 'infinite' new business innovation.
Networking of the video networking is as follows:
the video networking is a centrally controlled network structure, which may be of the tree network, star network, ring network, etc., but on the basis of this there is a need for a centralized control node in the network to control the whole network.
As shown in fig. 7, the view network is divided into an access network and a metropolitan area network.
The devices of the access network part can be mainly divided into 3 classes: node server, access switch, terminal (including various set-top boxes, code boards, memories, etc.). The node server is connected with an access switch, which can be connected with a plurality of terminals and can be connected with an Ethernet.
The node server is a node with a centralized control function in the access network, and can control the access switch and the terminal. The node server may be directly connected to the access switch or may be directly connected to the terminal.
Similarly, devices of the metropolitan area network portion can also be classified into 3 categories: metropolitan area server, node switch, node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is the node server of the access network part, namely the node server belongs to the access network part and also belongs to the metropolitan area network part.
The metropolitan area server is a node with centralized control function in the metropolitan area network, and can control a node switch and a node server. The metropolitan area server may be directly connected to the node switch or directly connected to the node server.
Thus, the whole video network is a hierarchical centralized control network structure, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star, ring and the like.
The access network part can be vividly called as a unified video platform (part in a dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform can be interconnected and intercommunicated through metropolitan area and wide area video networking.
View networking device classification
1.1 devices in the visual network according to the embodiment of the present invention may be mainly classified into 3 types: a server, a switch (including an ethernet gateway), a terminal (including various set-top boxes, a code board, a memory, etc.). The view networking can be divided into metropolitan area networks (or national networks, global networks, etc.) and access networks as a whole.
1.2 devices in the access network part can be mainly classified into 3 classes: node server, access switch (including Ethernet gateway), terminal (including various set-top boxes, code board, memory, etc.).
The specific hardware structure of each access network device is as follows:
the node server:
as shown in fig. 8, the device mainly comprises a network interface module 801, a switching engine module 802, a CPU module 803 and a disk array module 804;
Wherein, the packets coming in from the network interface module 801, the cpu module 803 and the disk array module 804 all enter the switching engine module 802; the switching engine module 802 performs an operation of looking up the address table 808 on the incoming packet, thereby obtaining packet steering information; and stores the packet into a queue of a corresponding packet buffer 806 according to the packet's guiding information; discarding if the queue of the packet buffer 806 is nearly full; the switch engine module 802 polls all packet buffer queues for forwarding if the following conditions are met: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero. The disk array module 804 mainly controls the hard disk, including initializing, reading and writing operations on the hard disk; the CPU module 803 is mainly responsible for protocol processing with access switches, terminals (not shown), configuration of address tables 808 (including downstream protocol packet address tables, upstream protocol packet address tables, data packet address tables), and configuration of the disk array module 804.
Access switch:
as shown in fig. 9, mainly includes a network interface module (a downstream network interface module 901, an upstream network interface module 902), a switching engine module 903, and a CPU module 904;
wherein, a packet (uplink data) coming in from the downlink network interface module 901 enters the packet detection module 905; the packet detection module 905 detects whether the Destination Address (DA), source Address (SA), packet type, and packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id), and enters the switching engine module 903, otherwise, discards the packet; packets (downstream data) coming in from the upstream network interface module 902 enter the switching engine module 903; the data packet coming in by the CPU module 904 enters the switching engine module 903; the switching engine module 903 performs an operation of looking up an address table 906 on an incoming packet, thereby obtaining packet guiding information; if a packet entering the switch engine module 903 is sent from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 907 in combination with the stream identifier (stream-id); discarding if the queue of the packet buffer 907 is nearly full; if the packet entering the switching engine module 903 is not sent from the downlink network interface to the uplink network interface, storing the data packet into a queue of a corresponding packet buffer 907 according to the packet guiding information; if the queue of the packet buffer 907 is nearly full, it is discarded.
The switch engine module 903 polls all packet buffer queues, in two cases in the present embodiment:
if the queue is sent from the downlink network interface to the uplink network interface, the following conditions are satisfied for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
if the queue is not addressed by the downstream network interface to the upstream network interface, the following condition is satisfied for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero.
The rate control module 909 is configured by the CPU module 904 to generate tokens for all packet buffer queues going from the downstream network interface to the upstream network interface at programmable intervals for controlling the rate of upstream forwarding.
The CPU module 904 is mainly responsible for protocol processing with the node server, configuration of the address table 909, and configuration of the rate control module 909.
Ethernet corotation gateway:
as shown in fig. 10, the network interface module (downlink network interface module 1001, uplink network interface module 1002), switching engine module 1003, CPU module 1004, packet detection module 1005, rate control module 1008, address table 1006, packet buffer 1007, MAC addition module 1009, and MAC deletion module 1010 are mainly included.
Wherein, the data packet coming in from the downlink network interface module 1001 enters the packet detection module 1005; the packet detection module 1005 detects whether the ethernet MACDA, ethernet MACSA, ethernet length orframetype, video network destination address DA, video network source address SA, video network packet type and packet length of the data packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC delete module 1010 subtracts MACDA, MACSA, lengthorframetype (2 bytes) and enters the corresponding receive buffer, otherwise discards;
the downlink network interface module 1001 detects the sending buffer of the port, if there is a packet, acquires the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet's internet of view, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet co-ordination gateway, and the ethernet length hondrimetype, and sends.
The function of the other modules in the ethernet corotation gateway is similar to that of the access switch.
And (3) a terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set top box mainly comprises a network interface module, a video/audio encoding/decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 classes: node server, node switch, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. View networking data packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), source Address (SA), reserved bytes, payload (PDU), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DASAReservedPayloadCRC
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), 256 possibilities are at most provided, the second byte to the sixth byte are metropolitan area network addresses, and the seventh and eighth bytes are access network addresses;
the Source Address (SA) is also composed of 8 bytes (bytes), defined identically to the Destination Address (DA);
the reserved bytes consist of 2 bytes;
the payload portion has different lengths according to the types of the different datagrams, and is 64 bytes if it is various protocol packets, and 32+1024=1056 bytes if it is a unicast packet, and is of course not limited to the above 2 types;
The CRC consists of 4 bytes and its calculation method follows the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of the metropolitan area network is a pattern, there may be 2 or even more than 2 connections between two devices, i.e. there may be more than 2 connections between node switches and node servers, node switches and node switches, node switches and node servers. However, the metropolitan area network address of the metropolitan area network device is unique, and in order to accurately describe the connection relationship between metropolitan area network devices, parameters are introduced in the embodiment of the present invention: a tag to uniquely describe a metropolitan area network device.
In this specification, the definition of a label is similar to that of MPLS (multiprotocol label switch), and if there are two connections between device a and device B, there are 2 labels for a packet from device a to device B, and 2 labels for a packet from device B to device a. The label is split into label and label out, and assuming that the label (in label) of the packet entering the device a is 0x0000, the label (out label) of the packet when leaving the device a may become 0x0001. The network access process of the metropolitan area network is a network access process under centralized control, that is, the address allocation and label allocation of the metropolitan area network are all led by the metropolitan area server, the node switch and the node server are all passively executed, which is different from the label allocation of the MPLS, which is the result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metropolitan area network mainly includes the following parts:
DA SA Reserved label (Label) Payload CRC
I.e. Destination Address (DA), source Address (SA), reserved bytes (Reserved), labels, payload (PDU), CRC. Wherein the format of the tag may be defined with reference to the following: the tag is 32 bits, with the high 16bit reservation, with only the low 16bit, and its position is between the reserved bytes and payload of the packet.

Claims (10)

1. The method for acquiring the monitoring code stream is characterized by being applied to a first cooperative server and comprising the following steps:
receiving a monitoring request sent by a monitoring client, wherein the monitoring request comprises a monitoring equipment identifier;
sending the monitoring request to a target corotation server;
receiving a monitoring response sent by the target cooperative server, wherein the monitoring response comprises address information, a port identifier and an idle video networking number of the target cooperative server;
generating a Session Initiation Protocol (SIP) request according to the address information, the port identification and the monitoring equipment identification, and sending the SIP request to a monitoring server;
and receiving a SIP success response sent by the monitoring server, and responding to the SIP success response, and sending the idle video network number to the monitoring client so that the monitoring client receives a monitoring code stream sent by the target cooperative forwarding server through the idle video network number, wherein the monitoring code stream is a code stream obtained by the monitoring server from monitoring equipment corresponding to the monitoring equipment identifier.
2. The method of claim 1, further comprising, prior to said sending the monitoring request to the target collaboration server:
and determining the target corotation server from the plurality of second corotation servers according to the states of the plurality of second corotation servers and the number of idle video networking numbers of each second corotation server.
3. The method of claim 2, wherein the determining the target corotation server from the plurality of second corotation servers according to the states of the plurality of second corotation servers and the number of idle video networking numbers of each of the second corotation servers comprises:
determining a third corotation server in an online state from the plurality of second corotation servers according to the state of each second corotation server;
if the number of the third cooperative servers is one and the third cooperative servers have idle video networking numbers, sending a request to the third cooperative servers;
and if a successful response sent by the third cooperative server is received, the third cooperative server is used as the target cooperative server.
4. The method of claim 2, wherein the determining the target corotation server from the plurality of second corotation servers according to the states of the plurality of second corotation servers and the number of idle video networking numbers of each of the second corotation servers comprises:
determining a fourth corotation server in an online state from the plurality of second corotation servers according to the state of each second corotation server;
if the number of the fourth cooperative servers is at least two, determining the number of idle video networking numbers of each fourth cooperative server;
determining the maximum number in all numbers, and sending a request to a fourth cooperative server corresponding to the maximum number;
and if a successful response sent by the fourth cooperative server corresponding to the maximum number is received, taking the fourth cooperative server corresponding to the maximum number as the target cooperative server.
5. The method for acquiring the monitoring code stream is characterized by being applied to a target cooperative server and comprising the following steps:
receiving a monitoring request sent by a first coordination server, wherein the monitoring request is sent to the first coordination server by a monitoring client, and the monitoring request comprises a monitoring equipment identifier;
Sending a monitoring response to the first cooperative server, wherein the monitoring response comprises address information, port identification and idle video networking number of the target cooperative server, so that the first cooperative server generates a Session Initiation Protocol (SIP) request according to the monitoring equipment identification, the address information and the port identification, and sends the SIP request to the monitoring server;
receiving a monitoring code stream of monitoring equipment corresponding to the monitoring equipment identifier, which is sent by the monitoring server according to the address information and the port identifier;
and sending the monitoring code stream to the monitoring client through the idle video network number.
6. The method for acquiring the monitoring code stream is characterized by being applied to a monitoring server and comprising the following steps:
receiving a Session Initiation Protocol (SIP) request sent by a first coordination server, wherein the SIP request comprises a monitoring equipment identifier, address information of a target coordination server and a port identifier, and the monitoring equipment identifier is an identifier included in a monitoring request sent by a monitoring client to the first coordination server;
sending a SIP success response to the first cooperative turning server so that the first cooperative turning server responds to the SIP success response and sends an idle video networking number to the monitoring client;
Acquiring a monitoring code stream of the monitoring equipment corresponding to the monitoring equipment identifier, and sending the monitoring code stream to the target cooperative server according to the address information and the port identifier;
and the idle video networking number is used for receiving the monitoring code stream sent to the monitoring client by the target cooperative server.
7. The utility model provides a monitoring code stream acquisition device which is characterized in that, set up in first corotation server, include:
the receiving module is used for receiving a monitoring request sent by the monitoring client, wherein the monitoring request comprises a monitoring equipment identifier;
the sending module is used for sending the monitoring request to the target corotation server;
the receiving module is further configured to receive a monitoring response sent by the target cooperative server, where the monitoring response includes address information, a port identifier, and an idle video networking number of the target cooperative server;
the sending module is further configured to generate a session initiation protocol SIP request according to the address information, the port identifier, and the monitoring device identifier, and send the SIP request to a monitoring server;
the receiving module is further configured to receive a SIP success response sent by the monitoring server, and send the idle internet-of-view number to the monitoring client in response to the SIP success response, so that the monitoring client receives, through the idle internet-of-view number, a monitoring code stream sent by the target co-ordination server, where the monitoring code stream is a code stream obtained by the monitoring server from a monitoring device corresponding to the monitoring device identifier.
8. The utility model provides a monitoring code stream acquisition device which is characterized in that, set up in the target and cooperated the server, include:
the system comprises a request receiving module, a monitoring module and a monitoring module, wherein the request receiving module is used for receiving a monitoring request sent by a first coordination server, the monitoring request is sent to the first coordination server by a monitoring client, and the monitoring request comprises a monitoring equipment identifier;
the response sending module is used for sending a monitoring response to the first cooperative server, wherein the monitoring response comprises address information, port identification and idle video networking number of the target cooperative server, so that the first cooperative server generates a Session Initiation Protocol (SIP) request according to the monitoring equipment identification, the address information and the port identification, and sends the SIP request to the monitoring server;
the code stream receiving module is used for receiving a monitoring code stream of the monitoring equipment, which is sent by the monitoring server according to the address information and the port identification and corresponds to the monitoring equipment identification;
and the code stream sending module is used for sending the monitoring code stream to the monitoring client through the idle video network number.
9. A monitoring code stream acquisition device, characterized by comprising:
One or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the monitoring code stream acquisition method of any of claims 1 to 6.
10. A computer-readable storage medium, characterized in that a computer program stored therein causes a processor to execute the monitoring code stream acquisition method according to any one of claims 1 to 6.
CN202010501582.7A 2020-06-04 2020-06-04 Method and device for acquiring monitoring code stream and readable storage medium Active CN111835717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010501582.7A CN111835717B (en) 2020-06-04 2020-06-04 Method and device for acquiring monitoring code stream and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010501582.7A CN111835717B (en) 2020-06-04 2020-06-04 Method and device for acquiring monitoring code stream and readable storage medium

Publications (2)

Publication Number Publication Date
CN111835717A CN111835717A (en) 2020-10-27
CN111835717B true CN111835717B (en) 2023-05-12

Family

ID=72897555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010501582.7A Active CN111835717B (en) 2020-06-04 2020-06-04 Method and device for acquiring monitoring code stream and readable storage medium

Country Status (1)

Country Link
CN (1) CN111835717B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115051978B (en) * 2022-08-15 2022-11-01 广东采日能源科技有限公司 Equipment monitoring implementation method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881147A (en) * 2017-12-29 2018-11-23 北京视联动力国际信息技术有限公司 A kind of data processing method and device of view networking
CN109525460A (en) * 2018-11-26 2019-03-26 视联动力信息技术股份有限公司 A kind of method and apparatus of view networking number resource monitoring
CN110062191A (en) * 2019-04-17 2019-07-26 视联动力信息技术股份有限公司 A kind of multi-party group meeting method and server based on view networking
CN110557612A (en) * 2019-08-30 2019-12-10 视联动力信息技术股份有限公司 control method of monitoring equipment and video networking system
CN110971628A (en) * 2018-09-29 2020-04-07 杭州阿启视科技有限公司 Cloud video data acquisition method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110137438A1 (en) * 2009-12-07 2011-06-09 Vimicro Electronics Corporation Video conference system and method based on video surveillance system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881147A (en) * 2017-12-29 2018-11-23 北京视联动力国际信息技术有限公司 A kind of data processing method and device of view networking
CN110971628A (en) * 2018-09-29 2020-04-07 杭州阿启视科技有限公司 Cloud video data acquisition method
CN109525460A (en) * 2018-11-26 2019-03-26 视联动力信息技术股份有限公司 A kind of method and apparatus of view networking number resource monitoring
CN110062191A (en) * 2019-04-17 2019-07-26 视联动力信息技术股份有限公司 A kind of multi-party group meeting method and server based on view networking
CN110557612A (en) * 2019-08-30 2019-12-10 视联动力信息技术股份有限公司 control method of monitoring equipment and video networking system

Also Published As

Publication number Publication date
CN111835717A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN109218654A (en) A kind of view networking conference control method and system
CN110620896B (en) Conference establishing method, system and device
CN109617956B (en) Data processing method and device
CN110475090B (en) Conference control method and system
CN111447393B (en) Conference maintenance method, conference maintenance device and readable storage medium
CN110475125A (en) Video transcoding method and device
CN110650171B (en) Video networking service scheduling system and method
CN111193767B (en) Request data sending method and device and clustered server system
CN111327868B (en) Method, terminal, server, equipment and medium for setting conference speaking party roles
CN110113557B (en) Multistage conference implementation method and video networking system
CN111835717B (en) Method and device for acquiring monitoring code stream and readable storage medium
CN111193904B (en) Inspection control method and device and readable storage medium
CN109347930A (en) A kind of task processing method and device
CN110417792B (en) Communication method, system, gateway device and storage medium
CN110336710B (en) Terminal testing method, system and device and storage medium
CN109889380A (en) A kind of transmission rate processing method and system of data packet
CN111669536B (en) Number management method and device based on video networking, electronic equipment and storage medium
CN111683228B (en) Data transmission method and device based on video networking, electronic equipment and storage medium
CN111355916B (en) Method, device, equipment and storage medium for establishing video networking communication connection
CN111614714B (en) Data processing method and device of service system
CN111225241B (en) Communication method and device
CN110798450B (en) Audio and video data processing method and device and storage medium
CN110267110B (en) Concurrent on-demand processing method and system based on video network
CN110493311B (en) Service processing method and device
CN111131781B (en) Method and device for acquiring monitoring video data and readable storage medium

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
CP03 Change of name, title or address

Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013

Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113

Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China