CN110445640B - Monitoring service control method, system, electronic equipment and storage medium - Google Patents

Monitoring service control method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN110445640B
CN110445640B CN201910620274.3A CN201910620274A CN110445640B CN 110445640 B CN110445640 B CN 110445640B CN 201910620274 A CN201910620274 A CN 201910620274A CN 110445640 B CN110445640 B CN 110445640B
Authority
CN
China
Prior art keywords
service
service information
monitoring
message
monitoring service
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
CN201910620274.3A
Other languages
Chinese (zh)
Other versions
CN110445640A (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 CN201910620274.3A priority Critical patent/CN110445640B/en
Publication of CN110445640A publication Critical patent/CN110445640A/en
Application granted granted Critical
Publication of CN110445640B publication Critical patent/CN110445640B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • 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

Abstract

The embodiment of the application provides a monitoring service control method, a monitoring service control system, electronic equipment and a storage medium, wherein the method comprises the following steps: after the user terminal obtains the authority of watching the target monitoring service, the intermediate server receives second service information sent by the user terminal and provides the user terminal with a function of monitoring the generated message aiming at the second service information; and then the intermediate server receives a message of stopping watching the target monitoring service sent by the service control server, and generates a message of stopping the target monitoring service aiming at the second service information after judging that the service control server has the authority of controlling the target monitoring service, so that the user terminal finishes the target monitoring service when monitoring the message of stopping the target monitoring service. The method and the system realize forced termination of the monitoring service watched by the user terminal through the service management and control server under the condition that the bandwidth resource of the national trunk is limited, and can better manage and control the monitoring service.

Description

Monitoring service control method, system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a monitoring service control method, a monitoring service control system, an electronic device, and a storage medium.
Background
Technological advances have made it convenient for people to interact with other terminal devices through applications installed on mobile terminals, such as: and watching the monitoring resources of the video networking monitoring equipment through the video networking software. Because the service management server manages the services of all the video networking software watching the monitoring resources of the video networking monitoring equipment, under the condition that the bandwidth resources of the national trunk are limited, the service management server has the requirement of forcing some video networking software to quit watching the services of the monitoring resources of the video networking monitoring equipment so as to better manage the services of the monitoring resources of the video networking monitoring equipment.
In the related art, if a user needs to quit a service of monitoring resources of a certain viewing networked monitoring device, a service management server needs to send reminding information to the user, the user actively clicks a button for quitting the related service after seeing the reminding information, and if the user does not actively click or forgets to click the button for quitting the related service, the related service cannot be ended.
Disclosure of Invention
The embodiment of the application provides a monitoring service control method, a monitoring service control system, electronic equipment and a storage medium, and aims to realize that a user terminal is forcibly ended to watch a monitoring service through a service management and control server under the condition that national trunk bandwidth resources are limited, so that the monitoring service is better managed and controlled.
A first aspect of an embodiment of the present application provides a monitoring service control method, where the method is applied to a video networking system, and the system includes: the system comprises a service control server, a video network conference management platform and an intermediate server, wherein a user terminal is respectively in communication connection with the service control server, the video network conference management platform and the intermediate server, and the video network conference management platform is respectively in communication connection with the service control server and the intermediate server;
the method comprises the following steps:
after acquiring the authority of watching a target monitoring service, the user terminal sends first service information to the service control server, wherein the first service information corresponds to the target monitoring service;
the user terminal requests an address of an intermediate server from the video networking conference management platform after receiving a response aiming at the first service information returned by the service management and control server;
the user terminal sends second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, and monitors a message aiming at the second service information generated in the intermediate server;
when the service management and control server needs to stop the user terminal from watching the target monitoring service, the first service information is sent to the video networking conference management platform, so that the video networking conference management platform sends the first service information to the intermediate server;
the intermediate server searches the service information matched with the first service information, judges whether the service control server has the authority for controlling the target monitoring service or not according to the matched service information and the second service information, and generates a message for stopping watching the monitoring service aiming at the second service information if the service control server has the authority;
and when the user terminal monitors the message which aims at the second service information and stops watching the monitoring service, the target monitoring service is ended.
Optionally, the user terminal runs at least one monitoring service; the message for stopping viewing the monitoring service for the second service information comprises: the target co-forwarding main message number, the target monitoring number and the target terminal number;
when the user terminal monitors the message of stopping watching the monitoring service aiming at the second service information, the target monitoring service is ended, which comprises the following steps:
obtaining the target co-forwarding main message number, the target monitoring number and the target terminal number from the message of stopping watching the monitoring service;
determining a first monitoring service according to the target co-forwarding main message number, the target monitoring number and the target terminal number;
determining a target monitoring service matched with the first monitoring service in the at least one monitoring service;
judging whether the user terminal is watching the target monitoring service;
and if the user terminal is watching the target monitoring service, ending the target monitoring service.
A second aspect of the embodiments of the present application provides a monitoring service control method, where the method is applied to an intermediate server in a video networking system, and the system includes: the system comprises a service control server, a video network conference management platform and an intermediate server, wherein a user terminal is respectively in communication connection with the service control server, the video network conference management platform and the intermediate server, and the video network conference management platform is respectively in communication connection with the service control server and the intermediate server;
the method comprises the following steps:
receiving second service information sent by the user terminal, wherein the user terminal is used for: after the authority of watching a target monitoring service is obtained, first service information is sent to the service control server, wherein the first service information corresponds to the target monitoring service; after receiving a response to the first service information returned by the service management and control server, requesting an address of an intermediate server from the video networking conference management platform; sending second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, monitoring a message aiming at the second service information generated in the intermediate server, and ending the target monitoring service when monitoring the message aiming at the second service information and stopping watching the monitoring service;
receiving first service information sent by the video networking conference management platform, wherein the first service information is sent to the video networking conference management platform when the service management and control server needs to stop the user terminal from watching the target monitoring service;
searching the service information matched with the first service information, judging whether the service control server has the authority for controlling the target monitoring service according to the matched service information and the second service information, and if the service control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information so that the user terminal finishes the target monitoring service when monitoring the message for stopping watching the monitoring service aiming at the second service information.
Optionally, the intermediate server is a message middleware server;
after receiving the second service information sent by the user terminal and before receiving the first service information sent by the video network conference management platform, the method further includes:
creating a second monitoring service message queue according to the second service information so that the user terminal monitors messages in the second monitoring service message queue at any moment;
searching the service information matched with the first service information, judging whether the service control server has the authority for controlling the target monitoring service according to the matched service information and the second service information, and if the service control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information, wherein the message comprises:
searching a first monitoring service message queue matched with the first service information, judging whether the first monitoring service message queue is the same as the second monitoring service message queue, and if the first monitoring service message queue is the same as the second monitoring service message queue, adding the message of stopping watching the monitoring service aiming at the second service information in the second monitoring service message queue.
Optionally, the second service information includes a second co-transfer main message number and a second terminal number, where the second co-transfer main message number includes a second monitoring number; the first service information comprises a first co-transfer main message number and a first terminal number, and the first co-transfer main message number comprises a first monitoring number;
the creating a second monitoring service message queue according to the second service information includes:
acquiring the second monitoring number from the second co-forwarding main message number;
creating the second monitoring service message queue by adopting a key value pair storage mode, wherein the key value of the second monitoring service message queue comprises: the second co-forwarding main message number, the second monitoring number and the second terminal number;
the searching for the first monitoring service message queue matched with the first service information and judging whether the first monitoring service message queue is the same as the second monitoring service message queue comprises the following steps:
acquiring the first monitoring number from the first co-forwarding main message number;
searching a first monitoring service message queue containing a key value which is the same as the first co-rotating main message number, the first monitoring number and the first terminal number;
and judging that the key value of the first monitoring service message queue is the same as the key value of the second monitoring service message queue.
Optionally, the determining whether the service management and control server has a right to control the target monitoring service includes:
judging whether the matched service information is the same as the second service information;
and if the matched service information is the same as the second service information, determining that the service control server has the authority for controlling the target monitoring service.
Optionally, after the receiving the second service information sent by the user terminal, the method further includes:
sending a heartbeat packet to the user terminal according to a preset period so that the user terminal can monitor a message aiming at the second service information generated in the intermediate server;
if the service management and control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information, wherein the message comprises:
and if the service management and control server has the authority, generating the message for stopping watching the monitoring service aiming at the second service information, and adding the message for stopping watching the monitoring service aiming at the second service information into the heartbeat packet.
A third aspect of the embodiments of the present application provides a video networking system, where the system includes:
the service management and control server is used for: receiving first service information sent by the user terminal, and returning a response aiming at the first service information; when the user terminal needs to stop watching the target monitoring service, the first service information is sent to the video networking conference management platform, so that the video networking conference management platform sends the first service information to the intermediate server;
a video networking conference management platform for: sending the address of the intermediate server to the user terminal; receiving the first service information sent by the service management and control server, and forwarding the first service information to the intermediate server;
an intermediate server to: receiving second service information sent by the user terminal; receiving first service information sent by the video networking conference management platform; and searching the service information matched with the first service information, judging whether the service control server has the authority for controlling the target monitoring service according to the matched service information and the second service information, and if the service control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information.
A fourth aspect of the embodiments of the present application provides an intermediate server, where the intermediate server includes:
a first receiving module, configured to receive second service information sent by the user terminal, where the user terminal is configured to: after the authority of watching a target monitoring service is obtained, first service information is sent to the service control server, wherein the first service information corresponds to the target monitoring service; after receiving a response to the first service information returned by the service management and control server, requesting an address of an intermediate server from the video networking conference management platform; sending second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, monitoring a message aiming at the second service information generated in the intermediate server, and ending the target monitoring service when monitoring the message aiming at the second service information and stopping watching the monitoring service;
the second receiving module is used for receiving first service information sent by the video network conference management platform, wherein the first service information is sent to the video network conference management platform when the service management and control server needs to stop the user terminal from watching the target monitoring service;
the searching module is used for searching the service information matched with the first service information;
the judging module is used for judging whether the service control server has the authority of controlling the target monitoring service;
and the generating module is used for generating a message for stopping watching the monitoring service aiming at the second service information when the service management and control server has the authority so as to end the target monitoring service when the user terminal monitors the message for stopping watching the monitoring service aiming at the second service information.
A fifth aspect of embodiments of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method according to the first aspect of the present application are implemented.
A sixth aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps in the method according to the first aspect of the present application.
In the embodiment of the application, after acquiring the right to watch the target monitoring service, the user terminal sends the second service information to the intermediate server in advance, and monitors the message aiming at the second service information generated by the intermediate server; and when the service management and control server needs to forcibly stop the target monitoring service watched by the user terminal, the first service information is sent to the intermediate server through the video networking conference management platform. After receiving the first service information, the intermediate server judges whether the service control server has the authority for controlling the target monitoring service according to the service information matched with the first service information and the second service information, if the service control server has the authority, a message for stopping watching the monitoring service aiming at the second service information is generated, so that when the user terminal monitors the message for watching the monitoring service, the target monitoring service is ended. The method and the system solve the problem that the monitoring resource of the monitoring equipment cannot be forcibly ended by the terminal equipment due to the fact that the interface of the video networking software cannot be called in the related technology, realize that the monitoring service watched by the user terminal is forcibly ended by the service management and control server under the condition that the bandwidth resource of the national trunk is limited, and can better manage and control the monitoring service.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic view of a video networking of the present application;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present application;
fig. 3 is a schematic diagram of a hardware architecture of an access switch of the present application;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present application;
fig. 5 is a schematic view of an implementation scenario of a monitoring service control method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a monitoring service control method according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating ending a target monitoring service according to an embodiment of the present application;
fig. 8 is another flowchart of a monitoring traffic control method according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a process of determining whether a service management and control server has an authority to control a monitoring service according to an embodiment of the present application;
FIG. 10 is a schematic diagram of an intermediary server shown in one embodiment of the present application;
fig. 11 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
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 some, but not all, embodiments of the present application. 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 video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and 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 two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video network and the unified video platform is different from the traditional server, the streaming media transmission of the video network and the unified video platform is established on the basis of connection orientation, the data processing capability of the video network and the unified video platform is irrelevant to flow and 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 one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a 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 a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 204 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
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 and audio coding and 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 types: node server, node exchanger, 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. Video networking 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:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, which is located between the reserved bytes and the payload of the packet.
Based on the characteristics of the video network, one of the core concepts of the embodiment of the invention is provided, following the protocol of the video network, after acquiring the right of watching the target monitoring service, the user terminal sends the second service information to the intermediate server in advance, and monitors the message aiming at the second service information generated by the intermediate server; when the service management and control server needs to forcibly stop the target monitoring service watched by the user terminal, the first service information is sent to the intermediate server through the video networking conference management platform, wherein the first service information is sent to the service management and control server by the user terminal before the second service information is sent to the intermediate server. After receiving the first service information, the intermediate server judges whether the service control server has the authority for controlling the target monitoring service according to the service information matched with the first service information and the second service information, if the service control server has the authority, a message for stopping watching the monitoring service aiming at the second service information is generated, so that when the user terminal monitors the message for watching the monitoring service, the target monitoring service is ended.
Fig. 5 is a schematic view of an implementation scenario of a monitoring service control method according to an embodiment of the present application. The implementation scenario includes a video networking system 100 and a plurality of user terminals 200, where the video networking system 100 is in communication connection with the plurality of terminal users 200 respectively, and provides a service of watching monitoring services for the plurality of user terminals 200. The video networking system 100 includes: the system comprises a service management and control server, a video networking conference management platform and an intermediate server; the user terminal 200 is respectively in communication connection with the service control server, the video networking conference management platform and the intermediate server, and the video networking conference management platform is respectively in communication connection with the service control server and the intermediate server; the user terminal 200 may be a Personal Computer (PC), a tablet computer, a smart phone, or the like. When the ue in this application is any ue 200 in fig. 1.
In each embodiment of the present application, the user terminal is installed with video networking software for watching video networking monitoring services, and if not specifically stated, the user terminal performs communication interaction with the service management and control server, the video networking conference management platform, and the intermediate server through the video networking software.
The user terminal can be located in the video networking environment or other network environments (such as the Internet), and when the user terminal is located in the video networking environment, the user terminal can directly communicate and interact with the video networking system, and when the user terminal is located in other network environments, the user terminal can indirectly communicate and interact with the video networking system through the collaboration server. In the embodiments of the present application, the user terminal is located in a video networking environment, unless otherwise specified.
A first aspect of the embodiments of the present application provides a monitoring service control method, which is applied to the video networking system 100 in fig. 1. Fig. 6 is a flowchart of a monitoring service control method according to an embodiment of the present application, and referring to fig. 6, the method includes the following steps:
step S11: and after acquiring the authority of watching the target monitoring service, the user terminal sends first service information to the service control server, wherein the first service information corresponds to the target monitoring service.
In this embodiment, a monitoring resource that watches a monitoring device needs to handle a monitoring service, and one monitoring service corresponds to one service information. When the user terminal wants to watch the monitoring resource of the target monitoring device, the request for watching the target monitoring service can be initiated to the service control server through the video networking software, and when the message which permits the user terminal to watch the target monitoring service and is returned by the service control server is obtained, the user terminal is indicated to obtain the permission for watching the target monitoring service.
The target monitoring service is as follows: and the user terminal watches the service of the monitoring resource of the target monitoring equipment. The first service information includes at least: and the main message number and the terminal number are transferred in an auxiliary mode. The auxiliary transfer main message number is a main message number which is distributed to video networking software installed on a user terminal and used for watching a target monitoring service by a video networking auxiliary transfer server, a monitoring number is arranged below the main message number, and target monitoring equipment can be uniquely determined according to the monitoring number. The terminal number is the number of the user terminal viewing the target monitoring service.
The service control server is a platform which can watch the monitoring resources of the monitoring equipment in real time, transact the services (namely, monitoring services) for watching the monitoring resources of the monitoring equipment for the user terminal, and control the transacted monitoring services of all the user terminals.
Step S12: and after receiving a response aiming at the first service information returned by the service management and control server, the user terminal requests the address of an intermediate server from the video networking conference management platform.
The response to the first service information, namely: and the business control server returns a message which permits the user terminal to watch the target monitoring business.
Step S13: and the user terminal sends second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, and monitors a message aiming at the second service information generated in the intermediate server.
After receiving the message of requesting the address of the intermediate server sent by the user terminal, the video network conference management platform returns the address of the intermediate server to the user terminal, so that the user terminal can find the intermediate server according to the address.
And the second service information also corresponds to the target monitoring service. In a normal case (i.e. in a case that no communication error occurs during the communication interaction between the user terminal and the video networking system), the second service information is the same as the first service information. The purpose of the user terminal sending the second service information to the intermediate server is to facilitate listening to messages generated in the intermediate server for the second service information.
Specifically, listening to the message for the second service information generated in the intermediate server refers to: once the message associated with the second service information is generated in the intermediate server, the user terminal may immediately obtain the generated message.
Step S14: and when the service control server needs to stop the user terminal from watching the target monitoring service, the first service information is sent to the video networking conference management platform, so that the video networking conference management platform sends the first service information to the intermediate server.
The first service information sent by the service management and control server to the video networking conference management platform may be included in the stop request, that is: the service management and control server may send a stop request indicating that the user terminal stops watching the target monitoring service to the video networking conference management platform, where the stop request carries the first service information. And then the video network conference management platform sends the stop request to the intermediate server.
Step S15: the intermediate server searches the service information matched with the first service information, judges whether the service control server has the authority for controlling the target monitoring service or not according to the matched service information and the second service information, and generates a message for stopping watching the monitoring service aiming at the second service information if the service control server has the authority.
The intermediate server firstly analyzes the stop request and obtains first service information, and then searches the service information matched with the first service information. The service information matched with the first service information refers to the service information of which the similarity with the first service information is greater than a first preset threshold, that is: the similarity between the co-transfer main message number and the terminal number in the first service information and the co-transfer main message number and the terminal number of the successfully matched service information is greater than a first preset threshold value.
And aiming at the message of the second service information for stopping watching the monitoring service, namely the message for stopping watching the target monitoring service, when the intermediate server determines that the service control server has the authority for controlling the target monitoring service, the intermediate server generates the message for stopping watching the target monitoring service.
Step S16: and when the user terminal monitors the message which aims at the second service information and stops watching the monitoring service, the target monitoring service is ended.
Because the user terminal monitors the message aiming at the second service information generated in the intermediate server, when the user terminal monitors the message of stopping watching the target monitoring service, the target monitoring service is ended without the user actively clicking a button for ending the target monitoring service or agreeing to end the target monitoring service.
In the embodiment of the application, after acquiring the right to watch the target monitoring service, the user terminal sends the second service information to the intermediate server in advance, and monitors the message aiming at the second service information generated by the intermediate server; when the service management and control server needs to forcibly stop the target monitoring service watched by the user terminal, the first service information is sent to the intermediate server through the video networking conference management platform, wherein the first service information is sent to the service management and control server by the user terminal before the second service information is sent to the intermediate server. After receiving the first service information, the intermediate server judges whether the service control server has the authority for controlling the target monitoring service according to the service information matched with the first service information and the second service information, if the service control server has the authority, a message for stopping watching the monitoring service aiming at the second service information is generated, so that when the user terminal monitors the message for watching the monitoring service, the target monitoring service is ended. The method and the system solve the problem that the monitoring resource of the monitoring equipment cannot be forcibly ended by the terminal equipment due to the fact that the interface of the video networking software cannot be called in the related technology, realize that the monitoring service watched by the user terminal is forcibly ended by the service management and control server under the condition that the bandwidth resource of the national trunk is limited, and can better manage and control the monitoring service.
In the embodiment of the application, the user terminal runs at least one monitoring service; the message for stopping viewing the monitoring service for the second service information includes: the target co-forwarding main message number, the target monitoring number and the target terminal number. Fig. 7 is a flowchart illustrating ending a target monitoring service according to an embodiment of the present application. Referring to fig. 7, step S16 may include the steps of:
step S161: acquiring the target co-forwarding main message number, the target monitoring number and the target terminal number from the message which aims at the second service information and stops watching the monitoring service;
step S162: determining a first monitoring service according to the target co-forwarding main message number, the target monitoring number and the target terminal number;
step S163: determining a target monitoring service matched with the first monitoring service in the at least one monitoring service;
step S164: judging whether the user terminal is watching the target monitoring service;
step S165: and if the user terminal is watching the target monitoring service, ending the target monitoring service.
In this embodiment, when monitoring a message for stopping watching a monitoring service for second service information, a user terminal first obtains a target co-forwarding main message number, a target monitoring number, and a target terminal number from the message; then determining the monitoring service matched with the contained service information, the target co-transfer main message number, the target monitoring number and the target terminal number, namely the target monitoring service; and judging whether the user terminal is watching the target monitoring service, and if the user terminal is watching the target monitoring service, ending the target monitoring service. In the process, the target monitoring service can be forcibly stopped without actively clicking a button for ending the target monitoring service by a user or acquiring the permission of the user terminal.
A second aspect of the present embodiment provides a monitoring service control method, which is applied to an intermediate server in the video networking system in fig. 1.
Fig. 8 is another flowchart of a monitoring service control method according to an embodiment of the present application. Referring to fig. 8, the monitoring service control method of the present application includes the following steps:
step S21: receiving second service information sent by the user terminal, wherein the user terminal is used for: after the authority of watching a target monitoring service is obtained, first service information is sent to the service control server, wherein the first service information corresponds to the target monitoring service; after receiving a response to the first service information returned by the service management and control server, requesting an address of an intermediate server from the video networking conference management platform; sending second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, monitoring a message aiming at the second service information generated in the intermediate server, and ending the target monitoring service when monitoring the message aiming at the second service information and stopping watching the monitoring service;
step S22: receiving first service information sent by the video networking conference management platform, wherein the first service information is sent to the video networking conference management platform when the service management and control server needs to stop the user terminal from watching the target monitoring service;
step S23: searching the service information matched with the first service information, judging whether the service control server has the authority for controlling the target monitoring service according to the matched service information and the second service information, and if the service control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information so that the user terminal finishes the target monitoring service when monitoring the message for stopping watching the monitoring service aiming at the second service information.
In this embodiment, on one hand, the intermediate server receives the second service information sent by the user terminal, and provides the user terminal with a function of constantly monitoring and generating a message for the second service information; on the other hand, the user terminal receives the first service information sent by the video networking conference management platform, finds out the service information matched with the first service information from the numerous service information, and then determines whether the service management and control server has the authority to control the target monitoring service according to the matched service information and the second service information, and the specific determination process can refer to the foregoing, which is not described herein again. And when the service control server is judged to have the authority of controlling the target monitoring service, generating a message for stopping watching the monitoring service aiming at the second service information, namely generating a message for stopping watching the target monitoring service, so that the user terminal can finish the target monitoring service when monitoring the message.
Optionally, in this application, the intermediate server is a message middleware server. After step S21 and before step S22, the method further comprises the following steps:
and creating a second monitoring service message queue according to the second service information so that the user terminal monitors messages in the second monitoring service message queue at any time.
The message middleware server creates a second monitoring service message queue corresponding to the second service information when receiving the second service information sent by the user terminal, and provides a function of constantly monitoring messages in the second monitoring service message queue for the user terminal. A plurality of monitoring service message queues are stored in the message middleware server, and the same user terminal may create a plurality of monitoring service message queues in the message middleware server, for example: if a user terminal wants to watch N monitoring services, the user terminal needs to create N monitoring service message queues in the message middleware server in advance, and the N monitoring service message queues correspond to the monitoring services respectively.
On this basis, step S23 includes the following steps:
searching a first monitoring service message queue matched with the first service information;
judging whether the first monitoring service message queue is the same as the second monitoring service message queue;
and if the first monitoring service message queue is the same as the second monitoring service message queue, adding the message for stopping watching the monitoring service aiming at the second service information in the second monitoring service message queue.
If the service management and control server needs to forcibly stop the target monitoring service, the message middleware server needs to be controlled to add the message for stopping watching the monitoring service to a second monitoring service message queue corresponding to the target monitoring service, therefore, the service management and control server sends a stop request containing the first service information to the message middleware server through the video networking conference management platform, so that the message middleware server can quickly find the second monitoring service message queue according to the first service information, and further add the message for stopping watching the target monitoring service in the second monitoring service message queue, and if the message for stopping watching the target monitoring service is added to other monitoring service message queues established by the user terminal, the message for stopping watching the monitoring service monitored by the user terminal is not corresponding to the monitoring services corresponding to other monitoring service message queues, further resulting in that the user terminal cannot end the target monitoring service.
On the basis of the foregoing embodiment, further, the second service information may include a second co-transfer main message number and a second terminal number, where the second co-transfer main message number includes a second monitoring number; the first service information may include a first co-rotation main message number and a first terminal number, and the first co-rotation main message number includes a first monitoring number.
Creating a second monitoring service message queue according to the second service information may include:
acquiring the second monitoring number from the second co-forwarding main message number;
creating the second monitoring service message queue by adopting a key value pair storage mode, wherein the key value of the second monitoring service message queue comprises: the second co-forwarding main message number, the second monitoring number and the second terminal number.
In the present application, a second monitoring service message queue is created in a Key-value database in a storage manner of a Key value pair, and a message middleware server may use a second co-rotation main message number, a second monitoring number, and a second terminal number in second service information as a value of a Key, for example: if the target monitoring service is a key (or the second service information is a key), if the second negotiation main message number is "XXX", the value of the second monitoring number is "YYY", and the second terminal number is "ZZZ", the value of the key may be "XXX YYY ZZZ". Of course, the value of the key may be generated in other manners as long as the value includes the second relay main message number, the second monitoring number, and the second terminal number.
Searching for a first monitoring service message queue matched with the first service information, including:
acquiring the first monitoring number from the first co-forwarding main message number;
searching a first monitoring service message queue containing a key value which is the same as the first co-rotation main message number, the first monitoring number and the first terminal number;
judging whether the first monitoring service message queue is the same as the second monitoring service message queue, including:
and judging that the key value of the first monitoring service message queue is the same as the key value of the second monitoring service message queue.
In this embodiment, the message middleware server extracts the first co-rotation main message number, the first monitoring number and the first terminal number from the first service information, obtains a value according to the form of "the first co-rotation main message number + the first monitoring number + the first terminal number" given above, determines whether the value is the same as the value corresponding to the key of the target monitoring service (or, the second service information), determines that the service control server has the authority to control the target monitoring service if the value is the same as the value corresponding to the key of the target monitoring service, and adds a message to stop watching the target monitoring service in the second monitoring service message queue, so that the user terminal ends the target monitoring service when monitoring the message to stop watching the target monitoring service.
Fig. 9 is a flowchart illustrating a process of determining whether a service management and control server has an authority to control a monitoring service according to an embodiment of the present application. Referring to fig. 9, the process of determining whether the service management and control server has the authority to control the target monitoring service includes the following steps:
step S31: and judging whether the matched service information is the same as the second service information.
Step S32: and if the matched service information is the same as the second service information, determining that the service control server has the authority for controlling the target monitoring service.
In this application, the manner of determining whether the service management and control server has the authority to control the target monitoring service may be: and judging whether the matched service information is the same as the second service information, and if so, determining that the service control server has the authority of controlling the target monitoring service.
In addition, the manner of determining whether the service management and control server has the authority to control the target monitoring service may be multiple, for example, when the similarity between the successfully matched service information and the second service information is greater than a second preset threshold, it is determined that the service management and control server has the authority to control the target monitoring service, which is not limited in this application.
Optionally, in the present application, after step S21, the following steps may also be included:
and sending a heartbeat packet to the user terminal according to a preset period so that the user terminal can monitor the message aiming at the second service information generated in the intermediate server.
On this basis, if the service management and control server has the authority, generating a message for stopping watching the monitoring service for the second service information, including:
and if the service control server has the authority, generating the message for stopping watching the monitoring service aiming at the second service information, and adding the message for stopping watching the monitoring service aiming at the second service information into the heartbeat packet.
The method and the device have the advantages that the purpose of forcibly ending the target monitoring service watched by the user terminal is achieved by creating the monitoring service message queue in the message middleware server and enabling the user terminal to monitor the created monitoring service message queue constantly, the message middleware server can also periodically send heartbeat packets to the user terminal, when the service management and control server needs to forcibly end the target monitoring service, the message for stopping the target monitoring service is added into the heartbeat packets and sent to the user terminal, so that the user terminal can obtain the message for stopping the target monitoring service by analyzing the heartbeat packets, and the target monitoring service is further ended.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
An embodiment of the present application provides a video networking system, including:
the service management and control server is used for: receiving first service information sent by the user terminal, and returning a response aiming at the first service information; when the user terminal needs to stop watching the target monitoring service, the first service information is sent to the video networking conference management platform, so that the video networking conference management platform sends the first service information to the intermediate server;
a video networking conference management platform for: sending the address of the intermediate server to the user terminal; receiving the first service information sent by the service management and control server, and forwarding the first service information to the intermediate server;
an intermediate server to: receiving second service information sent by the user terminal; receiving first service information sent by the video networking conference management platform; and searching the service information matched with the first service information, judging whether the service control server has the authority for controlling the target monitoring service according to the matched service information and the second service information, and if the service control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information.
Optionally, the user terminal includes:
a first obtaining module, configured to obtain the target co-forwarding main message number, the target monitoring number, and the target terminal number from the message of stopping watching the monitoring service for the second service information;
a first determining module, configured to determine a first monitoring service according to the target co-rotation main message number, the target monitoring number, and the target terminal number;
a second determining module, configured to determine, in the at least one monitoring service, a target monitoring service that matches the first monitoring service;
the processing module is used for judging whether the user terminal is watching the target monitoring service;
and the termination module is used for terminating the target monitoring service when the user terminal is watching the target monitoring service.
Fig. 10 is a schematic diagram of an intermediate server according to an embodiment of the present application. Referring to fig. 10, the mediation server 1000 of the present application includes:
a first receiving module 1001, configured to receive second service information sent by the user terminal, where the user terminal is configured to: after the authority of watching a target monitoring service is obtained, first service information is sent to the service control server, wherein the first service information corresponds to the target monitoring service; after receiving a response to the first service information returned by the service management and control server, requesting an address of an intermediate server from the video networking conference management platform; sending second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, monitoring a message aiming at the second service information generated in the intermediate server, and ending the target monitoring service when monitoring the message aiming at the second service information and stopping watching the monitoring service;
a second receiving module 1002, configured to receive first service information sent by the video networking conference management platform, where the first service information is sent to the video networking conference management platform when the service management and control server needs to stop the user terminal from watching the target monitoring service;
a searching module 1003, configured to search for service information matched with the first service information;
a judging module 1004, configured to judge whether the service management and control server has an authority to control the target monitoring service;
a generating module 1005, configured to generate a message of stopping watching the monitoring service for the second service information when the service management and control server has the right, so that when the user terminal monitors the message of stopping watching the monitoring service for the second service information, the target monitoring service is ended.
Optionally, the intermediate server is a message middleware server;
the intermediate server further comprises:
a creating module, configured to create a second monitoring service message queue according to the second service information, so that the user terminal constantly monitors messages in the second monitoring service message queue;
the searching module comprises:
the first searching module is used for searching a first monitoring service message queue matched with the first service information;
the judging module comprises:
the first judging module is used for judging whether the first monitoring service message queue is the same as the second monitoring service message queue;
the generation module comprises:
and the first generating module is configured to add, to the second monitoring service message queue, the message for stopping viewing the monitoring service for the second service information when the first monitoring service message queue is the same as the second monitoring service message queue.
Optionally, the second service information includes a second co-transfer main message number and a second terminal number, where the second co-transfer main message number includes a second monitoring number; the first service information comprises a first co-transfer main message number and a first terminal number, and the first co-transfer main message number comprises a first monitoring number;
the creation module comprises:
a second obtaining module, configured to obtain the second monitoring number from the second co-rotation main message number;
a creating submodule, configured to create the second monitoring service message queue in a storage manner of key value pairs, where the key value of the second monitoring service message queue includes: the second co-forwarding main message number, the second monitoring number and the second terminal number;
the first lookup module comprises:
the first searching submodule is used for acquiring the first monitoring number from the first co-rotation main message number; searching a first monitoring service message queue containing a key value which is the same as the first co-rotation main message number, the first monitoring number and the first terminal number;
the first judging module comprises:
and the first judging submodule is used for judging that the key value of the first monitoring service message queue is the same as the key value of the second monitoring service message queue.
Optionally, the determining module further includes:
the second judging module is used for judging whether the matched service information is the same as the second service information;
and the third determining module is used for determining that the service control server has the authority for controlling the target monitoring service when the matched service information is the same as the second service information.
Optionally, the intermediate server further includes:
a message sending module, configured to send a heartbeat packet to the user terminal according to a preset period, so that the user terminal may monitor a message, which is generated in the intermediate server and is directed to the second service information;
the generation module comprises:
and the second generating module is configured to generate the message for stopping watching the monitoring service for the second service information when the service management and control server has the right, and add the message for stopping watching the monitoring service for the second service information to the heartbeat packet.
Based on the same inventive concept, another embodiment of the present application provides an electronic device 1100, as shown in fig. 11. Fig. 11 is a schematic diagram of an electronic device according to an embodiment of the application. The electronic device comprises a memory 1102, a processor 1101 and a computer program stored on the memory and executable on the processor, which when executed performs the steps of the method according to any of the embodiments of the present application.
Based on the same inventive concept, another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method according to any of the above-mentioned embodiments of the present application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
As will be appreciated by one skilled in the art, 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 present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The monitoring service control method, system, electronic device and storage medium provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A monitoring service control method is applied to a video networking system, and the system comprises: the system comprises a service control server, a video network conference management platform and an intermediate server, wherein a user terminal is respectively in communication connection with the service control server, the video network conference management platform and the intermediate server, and the video network conference management platform is respectively in communication connection with the service control server and the intermediate server;
the method comprises the following steps:
after acquiring the authority of watching a target monitoring service, the user terminal sends first service information to the service control server, wherein the first service information corresponds to the target monitoring service;
after receiving a response to the first service information returned by the service control server, the user terminal requests an address of an intermediate server from the video networking conference management platform;
the user terminal sends second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, and monitors a message aiming at the second service information generated in the intermediate server;
when the service management and control server needs to stop the user terminal from watching the target monitoring service, the first service information is sent to the video networking conference management platform, so that the video networking conference management platform sends the first service information to the intermediate server;
the intermediate server searches the service information matched with the first service information, judges whether the service control server has the authority for controlling the target monitoring service or not according to the matched service information and the second service information, and generates a message for stopping watching the monitoring service aiming at the second service information if the service control server has the authority;
and when the user terminal monitors the message which aims at the second service information and stops watching the monitoring service, the target monitoring service is ended.
2. The method of claim 1, wherein the user terminal is running at least one monitoring service; the message for stopping viewing the monitoring service for the second service information comprises: the target co-forwarding main message number, the target monitoring number and the target terminal number;
when the user terminal monitors the message of stopping watching the monitoring service aiming at the second service information, the target monitoring service is ended, and the method comprises the following steps:
acquiring the target co-forwarding main message number, the target monitoring number and the target terminal number from the message which aims at the second service information and stops watching the monitoring service;
determining a first monitoring service according to the target co-forwarding main message number, the target monitoring number and the target terminal number;
determining a target monitoring service matched with the first monitoring service in the at least one monitoring service;
judging whether the user terminal is watching the target monitoring service;
and if the user terminal is watching the target monitoring service, ending the target monitoring service.
3. A monitoring service control method is applied to an intermediate server in a video networking system, and the system comprises: the system comprises a service control server, a video network conference management platform and an intermediate server, wherein a user terminal is respectively in communication connection with the service control server, the video network conference management platform and the intermediate server, and the video network conference management platform is respectively in communication connection with the service control server and the intermediate server;
the method comprises the following steps:
receiving second service information sent by the user terminal, wherein the user terminal is used for: after the authority of watching a target monitoring service is obtained, first service information is sent to the service control server, wherein the first service information corresponds to the target monitoring service; after receiving a response to the first service information returned by the service management and control server, requesting an address of an intermediate server from the video networking conference management platform; sending second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, monitoring a message aiming at the second service information generated in the intermediate server, and ending the target monitoring service when monitoring the message aiming at the second service information and stopping watching the monitoring service;
receiving first service information sent by the video networking conference management platform, wherein the first service information is sent to the video networking conference management platform when the service management and control server needs to stop the user terminal from watching the target monitoring service;
searching the service information matched with the first service information, judging whether the service control server has the authority for controlling the target monitoring service according to the matched service information and the second service information, and if the service control server has the authority, generating the message for stopping watching the monitoring service aiming at the second service information so that the user terminal finishes the target monitoring service when monitoring the message for stopping watching the monitoring service aiming at the second service information.
4. The method of claim 3, wherein the intermediary server is a message middleware server;
after receiving the second service information sent by the user terminal and before receiving the first service information sent by the video networking conference management platform, the method further comprises the following steps:
creating a second monitoring service message queue according to the second service information so that the user terminal monitors messages in the second monitoring service message queue at any moment;
searching the service information matched with the first service information, judging whether the service control server has the authority for controlling the target monitoring service according to the matched service information and the second service information, and if the service control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information, wherein the message comprises:
searching a first monitoring service message queue matched with the first service information, judging whether the first monitoring service message queue is the same as the second monitoring service message queue, and if the first monitoring service message queue is the same as the second monitoring service message queue, adding the message of stopping watching the monitoring service aiming at the second service information in the second monitoring service message queue.
5. The method of claim 4, wherein the second service information comprises a second co-rotating main message number and a second terminal number, and wherein the second co-rotating main message number comprises a second monitoring number; the first service information comprises a first co-transfer main message number and a first terminal number, and the first co-transfer main message number comprises a first monitoring number;
the creating a second monitoring service message queue according to the second service information includes:
acquiring the second monitoring number from the second co-rotation main message number;
creating the second monitoring service message queue by adopting a key value pair storage mode, wherein the key value of the second monitoring service message queue comprises: the second co-forwarding main message number, the second monitoring number and the second terminal number;
the searching for the first monitoring service message queue matched with the first service information and judging whether the first monitoring service message queue is the same as the second monitoring service message queue comprises the following steps:
acquiring the first monitoring number from the first co-rotation main message number;
searching a first monitoring service message queue containing a key value which is the same as the first co-rotating main message number, the first monitoring number and the first terminal number;
and judging that the key value of the first monitoring service message queue is the same as the key value of the second monitoring service message queue.
6. The method according to claim 3, wherein the determining whether the service management and control server has the right to control the target monitoring service includes:
judging whether the matched service information is the same as the second service information;
and if the matched service information is the same as the second service information, determining that the service control server has the authority for controlling the target monitoring service.
7. The method of claim 3, wherein after the receiving the second service information sent by the user terminal, the method further comprises:
sending a heartbeat packet to the user terminal according to a preset period so that the user terminal can monitor a message aiming at the second service information generated in the intermediate server;
if the service management and control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information, wherein the message comprises:
and if the service control server has the authority, generating the message for stopping watching the monitoring service aiming at the second service information, and adding the message for stopping watching the monitoring service aiming at the second service information into the heartbeat packet.
8. A system for visual networking, the system comprising:
the service management and control server is used for: receiving first service information sent by a user terminal, and returning a response aiming at the first service information; when the user terminal needs to stop watching the target monitoring service, the first service information is sent to the video networking conference management platform, so that the video networking conference management platform sends the first service information to an intermediate server;
a video networking conference management platform for: sending the address of the intermediate server to the user terminal; receiving the first service information sent by the service management and control server, and forwarding the first service information to the intermediate server;
an intermediate server to: receiving second service information sent by the user terminal; receiving first service information sent by the video networking conference management platform; and searching the service information matched with the first service information, judging whether the service control server has the authority for controlling the target monitoring service according to the matched service information and the second service information, and if the service control server has the authority, generating a message for stopping watching the monitoring service aiming at the second service information.
9. An intermediary server, the intermediary server comprising:
a first receiving module, configured to receive second service information sent by a user terminal, where the user terminal is configured to: after the authority for watching the target monitoring service is obtained, first service information is sent to a service control server, wherein the first service information corresponds to the target monitoring service; after receiving a response to the first service information returned by the service management and control server, requesting an address of an intermediate server from a video networking conference management platform; sending second service information to the intermediate server according to the address of the intermediate server returned by the video networking conference management platform, monitoring a message aiming at the second service information generated in the intermediate server, and ending the target monitoring service when monitoring the message aiming at the second service information and stopping watching the monitoring service;
the second receiving module is used for receiving first service information sent by the video network conference management platform, wherein the first service information is sent to the video network conference management platform when the service management and control server needs to stop the user terminal from watching the target monitoring service;
the searching module is used for searching the service information matched with the first service information;
the judging module is used for judging whether the service control server has the authority for controlling the target monitoring service;
and the generating module is used for generating a message for stopping watching the monitoring service aiming at the second service information when the service management and control server has the authority so as to end the target monitoring service when the user terminal monitors the message for stopping watching the monitoring service aiming at the second service information.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executed implements the steps of the method according to any of claims 3-7.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 3 to 7.
CN201910620274.3A 2019-07-10 2019-07-10 Monitoring service control method, system, electronic equipment and storage medium Active CN110445640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910620274.3A CN110445640B (en) 2019-07-10 2019-07-10 Monitoring service control method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910620274.3A CN110445640B (en) 2019-07-10 2019-07-10 Monitoring service control method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110445640A CN110445640A (en) 2019-11-12
CN110445640B true CN110445640B (en) 2022-05-06

Family

ID=68430087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910620274.3A Active CN110445640B (en) 2019-07-10 2019-07-10 Monitoring service control method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110445640B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412498A (en) * 2016-08-31 2017-02-15 浙江宇视科技有限公司 Monitoring data acquisition method, and cloud terminal
CN109150905A (en) * 2018-09-27 2019-01-04 视联动力信息技术股份有限公司 A kind of view networked resources method for releasing and view networking share Platform Server
CN109831439A (en) * 2019-02-19 2019-05-31 视联动力信息技术股份有限公司 A kind of method and device that cascade is synchronous

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3012727A1 (en) * 2016-01-27 2017-08-03 Starry, Inc. Premises networking device and method of operation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412498A (en) * 2016-08-31 2017-02-15 浙江宇视科技有限公司 Monitoring data acquisition method, and cloud terminal
CN109150905A (en) * 2018-09-27 2019-01-04 视联动力信息技术股份有限公司 A kind of view networked resources method for releasing and view networking share Platform Server
CN109831439A (en) * 2019-02-19 2019-05-31 视联动力信息技术股份有限公司 A kind of method and device that cascade is synchronous

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于视联网的高清视频互动科普平台监控协转服务器设计与研究;李殿坤;《广播电视网络》;20160731;全文 *

Also Published As

Publication number Publication date
CN110445640A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN109167960B (en) Method and system for processing video stream data
CN109996086B (en) Method and device for inquiring service state of video networking
CN111193788A (en) Audio and video stream load balancing method and device
CN109617956B (en) Data processing method and device
CN110190973B (en) Online state detection method and device
CN110191315B (en) Monitoring and checking method and device based on video network
CN109743550B (en) Method and device for monitoring data flow regulation
CN110650171B (en) Video networking service scheduling system and method
CN110557612B (en) Control method of monitoring equipment and video networking system
CN109768957B (en) Method and system for processing monitoring data
CN111131911A (en) Multicast method and device
CN110519549B (en) Conference terminal list obtaining method and system
CN110289974B (en) Data stream processing method, system and device and storage medium
CN110134892B (en) Loading method and system of monitoring resource list
CN110087147B (en) Audio and video stream transmission method and device
CN109861929B (en) Data caching processing method and device
CN110519554B (en) Monitoring detection method and device
CN110475088B (en) User login method and device
CN110120937B (en) Resource acquisition method, system, device and computer readable storage medium
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN110267110B (en) Concurrent on-demand processing method and system based on video network
CN110445640B (en) Monitoring service control method, system, electronic equipment and storage medium
CN109413460B (en) Method and system for displaying function menu of video network terminal
CN109474848B (en) Video processing method and device based on video network, electronic equipment and medium
CN110475160B (en) Method and device for transmitting video data across video network

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