CN110839140B - Method and device for generating monitoring directory - Google Patents

Method and device for generating monitoring directory Download PDF

Info

Publication number
CN110839140B
CN110839140B CN201810942843.1A CN201810942843A CN110839140B CN 110839140 B CN110839140 B CN 110839140B CN 201810942843 A CN201810942843 A CN 201810942843A CN 110839140 B CN110839140 B CN 110839140B
Authority
CN
China
Prior art keywords
monitoring
organization
node
organization node
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810942843.1A
Other languages
Chinese (zh)
Other versions
CN110839140A (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 CN201810942843.1A priority Critical patent/CN110839140B/en
Publication of CN110839140A publication Critical patent/CN110839140A/en
Application granted granted Critical
Publication of CN110839140B publication Critical patent/CN110839140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for generating a monitoring directory, which are applied to a video network. The method comprises the following steps: the method comprises the steps that a video network monitoring platform obtains original data sent by a monitoring co-transfer server and/or a third-party monitoring platform, wherein the original data comprises information of monitoring resources and information of original organization nodes; the video network monitoring platform determines whether a missing organization node exists according to the information of the monitoring resource and the information of the original organization node; if yes, inserting a custom organization node as a missing organization node; the video network monitoring platform generates a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes, and respectively mounts the monitoring resources to the affiliated organization nodes according to the information of the monitoring resources. According to the embodiment of the invention, the monitoring directory generated according to the optimized information is more accurate, so that the user can check the monitoring directory more accurately and efficiently, and the user experience is improved.

Description

Method and device for generating monitoring directory
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a method and an apparatus for generating a monitoring directory.
Background
Video surveillance is an important component of security systems. Video monitoring is widely applied to many occasions due to intuition, accuracy, timeliness and rich information content. In recent years, with the rapid development of computers, networks, image processing and transmission technologies, video monitoring technologies have been developed. The traditional monitoring system comprises front-end monitoring equipment, a transmission cable and a video monitoring platform. The front-end monitoring equipment transmits the collected monitoring video to the video monitoring platform, and a user can check the real-time monitoring video on the video monitoring platform.
The video monitoring platform can arrange the information of the front-end monitoring equipment so as to be convenient for a user to check. However, when the information of the monitoring device is obtained, conditions such as information loss and the like can be caused due to unavoidable factors such as misoperation of monitoring resource access personnel, incomplete database data, network transmission loss and the like, so that the information organized by the video monitoring platform is disordered and inaccurate, the accuracy and efficiency are low when a user checks the information, and the user experience is reduced.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a method for generating a monitoring directory and a corresponding apparatus for generating a monitoring directory that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a method for generating a monitoring directory, where the method is applied to a video network, the video network includes a video network monitoring platform and a monitoring coordination server, and the internet includes a third party monitoring platform, and the method includes:
the video network monitoring platform acquires original data sent by the monitoring co-transfer server and/or the third-party monitoring platform, wherein the original data comprises information of monitoring resources and information of original organization nodes;
the video network monitoring platform determines whether a missing organization node exists according to the information of the monitoring resource and the information of the original organization node;
if the video network monitoring platform determines that the user-defined organization node exists, inserting a user-defined organization node as the missing organization node;
and the video network monitoring platform generates a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes, and respectively mounts the monitoring resources to the affiliated organization nodes according to the information of the monitoring resources.
Preferably, the step of determining, by the video networking monitoring platform, whether there is a missing organization node according to the information of the monitoring resource and the information of the original organization node includes: the video network monitoring platform determines each organization node corresponding to the monitoring resource and a superior organization node and/or a subordinate organization node of each organization node according to the information of the monitoring resource; the video network monitoring platform searches the upper level organization node and the lower level organization node from the information of the original organization node; and if the video network monitoring platform does not find a certain organization node, determining that the missing organization node exists, and taking the unsearched organization node as the missing organization node.
Preferably, the step of determining, by the video network monitoring platform, each organization node corresponding to the monitoring resource according to the information of the monitoring resource includes: the video network monitoring platform sequentially extracts codes of corresponding digits from the equipment identification of the monitoring resource according to preset increments until a certain code is the same as the administrative region identification to which the monitoring resource belongs; and the video network monitoring platform takes each code as an administrative region identifier and takes one administrative region identifier as an organization node.
Preferably, the step of the video network monitoring platform generating a monitoring organization directory tree according to the original organization node and the custom organization node, and respectively mounting the monitoring resources on the organization nodes to which the monitoring resources belong according to the information of the monitoring resources includes: the video network monitoring platform generates a monitoring organization directory tree according to the superior-inferior relation between the original organization nodes and the user-defined organization nodes; if the video network monitoring platform judges that the father equipment identifier of the monitoring resource does not comprise the virtual organization identifier to which the monitoring resource belongs, searching an organization node corresponding to the administrative region identifier to which the monitoring resource belongs from the monitoring organization directory tree as the organization node to which the monitoring resource belongs, and mounting the monitoring resource on the organization node to which the monitoring resource belongs; otherwise, searching an organization node corresponding to the virtual organization identifier to which the monitoring resource belongs from the monitoring organization directory tree as the organization node to which the monitoring resource belongs, and mounting the monitoring resource on the organization node to which the monitoring resource belongs.
Preferably, the information of the monitoring resource includes an equipment identifier of the monitoring resource, and after the step of acquiring, by the video networking monitoring platform, the original data sent by the monitoring co-ordination server and/or the third party monitoring platform, the method further includes: the video network monitoring platform judges whether the coding format of the equipment identification of the monitoring resource is a correct national standard protocol coding format; if not, the coding format of the equipment identification of the monitoring resource is corrected to be the correct national standard protocol coding format.
Preferably, the step of acquiring, by the video networking monitoring platform, the original data sent by the monitoring co-transformation server and/or the third party monitoring platform includes: the video network monitoring platform acquires a video network protocol data packet which is sent by the monitoring protocol conversion server through the video network and encapsulates the original data, and/or acquires a national standard protocol data packet which is sent by the third party monitoring platform through the internet and encapsulates the original data; the video networking protocol data packet comprises path information, and the path information is used for indicating a transmission path of the video networking protocol data packet in the video networking.
On the other hand, the embodiment of the invention also discloses a device for generating the monitoring directory, the device is applied to the video network, the video network comprises a video network monitoring platform and a monitoring protocol conversion server, the internet comprises a third party monitoring platform, and the video network monitoring platform comprises:
an obtaining module, configured to obtain original data sent by the monitoring co-transformation server and/or the third-party monitoring platform, where the original data includes information of monitoring resources and information of an original organization node;
the determining module is used for determining whether the missing organization nodes exist according to the information of the monitoring resources and the information of the original organization nodes;
the inserting module is used for inserting the self-defined organization node as the missing organization node if the existence is determined;
and the generating module is used for generating a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes and respectively mounting the monitoring resources to the affiliated organization nodes according to the information of the monitoring resources.
Preferably, the determining module comprises: the node determining unit is used for determining each organization node corresponding to the monitoring resource and a superior organization node and/or a subordinate organization node of each organization node according to the information of the monitoring resource; the node searching unit is used for searching the superior organization node and the inferior organization node from the information of the original organization node; and the missing processing unit is used for determining that the missing organization node exists if a certain organization node is not found, and taking the organization node which is not found as the missing organization node.
Preferably, the information of the monitored resource includes an equipment identifier of the monitored resource and an administrative area identifier to which the monitored resource belongs, the coding formats of the equipment identifier of the monitored resource and the administrative area identifier to which the monitored resource belongs are national standard protocol coding formats, and the node determining unit is specifically configured to sequentially extract codes of corresponding digits from the equipment identifier of the monitored resource according to preset increments until a certain code is the same as the administrative area identifier to which the monitored resource belongs; and taking each code as an administrative region identifier, and taking one administrative region identifier as an organization node.
Preferably, the information about the monitored resource includes an administrative area identifier to which the monitored resource belongs and a parent device identifier of the monitored resource, and the generating module includes: the directory generation unit is used for generating a monitoring organization directory tree according to the superior-inferior relation between the original organization nodes and the user-defined organization nodes; a resource mounting unit, configured to, if it is determined that the parent device identifier of the monitoring resource does not include the virtual organization identifier to which the monitoring resource belongs, search, from the monitoring organization directory tree, an organization node corresponding to the administrative area identifier to which the monitoring resource belongs as an organization node to which the monitoring resource belongs, and mount the monitoring resource to the organization node to which the monitoring resource belongs; otherwise, searching an organization node corresponding to the virtual organization identifier to which the monitoring resource belongs from the monitoring organization directory tree as the organization node to which the monitoring resource belongs, and mounting the monitoring resource on the organization node to which the monitoring resource belongs.
In the embodiment of the invention, a video network monitoring platform acquires original data sent by a monitoring co-transformation server and/or a third-party monitoring platform, wherein the original data comprises information of monitoring resources and information of original organization nodes; determining whether a missing organization node exists according to the information of the monitoring resource and the information of the original organization node; if yes, inserting a custom organization node as a missing organization node; the video network monitoring platform generates a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes, and respectively mounts the monitoring resources to the affiliated organization nodes according to the information of the monitoring resources. Therefore, the embodiment of the invention can realize the butt joint of the video network monitoring platform and the third party monitoring platform, thereby realizing the sharing of monitoring resources of the Internet and the video network; and the video network monitoring platform optimizes the acquired information and supplements missing organization nodes, so that the monitoring directory generated according to the optimized information is more accurate, the user can check the monitoring directory more accurately and efficiently, and the user experience is improved.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
fig. 5 is a flowchart illustrating steps of a method for generating a monitoring directory according to a first embodiment of the present invention;
fig. 6 is a flowchart illustrating steps of a method for generating a monitoring directory according to a second embodiment of the present invention;
fig. 7 is a block diagram of a monitoring list generation apparatus according to a third embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
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 networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of 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 video networking destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet coordination 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 data packets, and is 64 bytes if the data packet is a variety of protocol packets, and is 32+1024 or 1056 bytes if the data packet is a unicast data 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, and its position is between the reserved bytes and payload of the packet.
Based on the characteristics of the video network, the generation scheme of the monitoring directory provided by the embodiment of the invention follows the protocol of the video network to optimize the original data, so that a more accurate monitoring directory is generated.
Example one
The method for generating the monitoring directory can be applied to the video network. In the monitoring system of the video network, the monitoring system can comprise a video network monitoring platform and a monitoring transfer server, wherein the video network monitoring platform is connected with the monitoring transfer server, and the monitoring transfer server can be connected with a plurality of monitoring resources. The monitoring protocol conversion server can be understood as a gateway and is responsible for accessing external monitoring resources (such as monitoring equipment on the internet) into the video networking monitoring platform, the monitoring resources transmit acquired monitoring videos to the monitoring protocol conversion server based on corresponding internet protocol codes, the monitoring protocol conversion server can convert monitoring data based on the internet protocol into monitoring data based on the video networking protocol and transmit the monitoring data to the video networking monitoring platform, and therefore browsing and controlling of the monitoring resources on the internet in the video networking is achieved. In the internet, the system can comprise a third-party monitoring platform, the third-party monitoring platform can be in butt joint with the video network monitoring platform, and the video network monitoring platform can send monitoring data to the third-party monitoring platform, so that monitoring resources in the video network can be shared to the internet platform.
Referring to fig. 5, a flowchart illustrating steps of a method for generating a monitoring directory according to a first embodiment of the present invention is shown.
The method for generating the monitoring directory of the embodiment of the invention can comprise the following steps:
step 501, the video network monitoring platform obtains the original data sent by the monitoring collaboration server and/or the third party monitoring platform.
In the embodiment of the invention, one or more monitoring transfer servers can be arranged, and because the number of monitoring resources is huge, the arrangement of a plurality of monitoring servers can avoid the heavy burden of one monitoring transfer server. Each monitoring co-rotation server can access a plurality of monitoring resources, the monitoring co-rotation server can acquire information of each monitoring resource connected with the monitoring co-rotation server, acquire information of each original organization node according to the information of the monitoring resources, and send the information of the monitoring resources and the information of the original organization nodes as original data to the video networking monitoring platform.
The video networking monitoring platform can also be interfaced with one or more third party monitoring platforms. Each third-party monitoring platform can access a plurality of monitoring resources, and the third-party monitoring platform can acquire information of each monitoring resource connected with the third-party monitoring platform, acquire information of each original organization node according to the information of the monitoring resources, and send the information of the monitoring resources and the information of the original organization nodes to the video network monitoring platform as original data.
The information of the monitoring resource and the information of the original organization node may be in the form of initial encoded information as original data, or may be integrated into the form of an original monitoring directory as original data. It should be noted that the raw data may further include other information, such as a device identifier of the monitoring coordination server, an account of the third-party monitoring platform, and the like.
Here, "and/or" means that either one of the two or both of them can be selected. That is, the video network monitoring platform may only obtain the original data sent by the monitoring co-transformation server, may also only obtain the original data sent by the third party monitoring platform, and may also obtain the monitoring data sent by both the monitoring co-transformation server and the original data sent by the third party monitoring platform.
In the embodiment of the present invention, the third-party monitoring platform may be any suitable dedicated monitoring platform, such as a public security system monitoring platform, a medical system monitoring platform, and the like. The monitoring resource may be NVR (Network Video Recorder), DVR (Digital Video Recorder), IPC (IP camera), and other devices.
Step 502, the video network monitoring platform determines whether there is a missing organization node according to the information of the monitoring resource and the information of the original organization node.
Some important information, such as information of a certain organization node, may be missing from the original data acquired by the video network monitoring platform, and if the video network monitoring platform generates the monitoring directory according to the original data, the monitoring directory will be inaccurate.
Therefore, in the embodiment of the invention, the video network monitoring platform can optimize the original data. The video network monitoring platform can determine whether the missing organization nodes exist according to the information of the monitoring resources and the information of the original organization nodes. The organization node may be understood as a node corresponding to each level of administrative region.
And 503, if the video network monitoring platform determines that the node exists, inserting a custom organization node as the missing organization node.
If the video network monitoring platform determines that the missing organization node exists, the custom organization node can be inserted as the missing organization node. For the missing organization nodes, the inserted organization nodes can be collectively called as custom organization nodes, and corresponding names and other information can be set for the user-defined organization nodes according to actual conditions.
Step 504, the video network monitoring platform generates a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes, and mounts the monitoring resources to the affiliated organization nodes respectively according to the information of the monitoring resources.
The video network monitoring platform can generate a monitoring organization directory tree according to the original organization nodes and the inserted custom organization nodes. The monitoring organization directory tree can be understood as a tree formed by nodes corresponding to each level of administrative regions to which the monitoring resources belong. According to the information of the monitoring resources, the organization node to which the monitoring resources belong can be determined, so that each monitoring resource is respectively mounted on the organization node to which the monitoring resource belongs in the monitoring organization directory tree. After the installation, the monitoring organization directory tree and the monitoring resources installed therein jointly form a monitoring directory.
Because the user-defined organization nodes supplement the missing organization nodes in the original organization nodes, the generated monitoring organization directory tree is more accurate, and the mounting of the monitoring resources is more accurate.
The user of the video network monitoring platform can check the corresponding monitoring resource according to the generated monitoring directory, and the third-party monitoring platform can also check the corresponding monitoring resource according to the generated monitoring directory, so that the method is more accurate.
In the embodiment of the invention, the video network monitoring platform can be butted with a third-party monitoring platform, so that the internet and the video network can share monitoring resources; and the video network monitoring platform optimizes the acquired information and supplements missing organization nodes, so that the monitoring directory generated according to the optimized information is more accurate, the user can check the monitoring directory more accurately and efficiently, and the user experience is improved.
Example two
Referring to fig. 6, a flowchart illustrating steps of a method for generating a monitoring directory according to a second embodiment of the present invention is shown.
The method for generating the monitoring directory of the embodiment of the invention can comprise the following steps:
step 601, the video network monitoring platform sends the preset registration information to each third party monitoring platform respectively.
In a specific implementation, the video networking monitoring platform (also described as a video networking monitoring and networking management scheduling platform) can be divided into a front-end display (webpage) and a back-end service, and the front end, that is, a video networking monitoring client, is responsible for displaying an overall monitoring directory, calling a monitoring video, and configuring the video networking monitoring and networking management scheduling platform. The back end, also called MServer, is responsible for the unified management of all accessed monitoring resources in the whole video network and the docking service of the monitoring system of the third-party monitoring platform. Therefore, the video networking monitoring platform related in the embodiment of the present invention may specifically be an MServer in the video networking monitoring platform.
If the third-party monitoring platform wants to realize the butt joint with the video network monitoring platform so as to share the monitoring resources of the video network monitoring platform, the third-party monitoring platform can be firstly registered on the video network monitoring platform. The video network monitoring platform and the third-party monitoring platform can perform bidirectional interaction through the internet.
In the embodiment of the present invention, registration information may be configured in advance for each third-party monitoring platform in the video networking monitoring platform, and the registration information may include information such as an IP address, a port number, an account number, and a password of the third-party monitoring platform. The video network monitoring platform can respectively send the registration information of each third-party monitoring platform to the corresponding third-party monitoring platform after being started.
In a specific implementation, the third party monitoring platform may be a national standard (GB/T28181) platform. Therefore, the video networking monitoring platform (specifically, the MServer) may encapsulate the registration information into a national standard protocol data packet based on a national standard protocol (GB/T28181 protocol), and send the national standard protocol data packet to a corresponding third party monitoring platform through the internet.
The third-party monitoring platform analyzes the national standard protocol data packet after receiving the national standard protocol data packet, acquires the registration information in the national standard protocol data packet, and can register on the video network monitoring platform according to the registration information. For example, a registration interface may be provided on the third-party monitoring platform, and the user may fill registration information such as an account number and a password in the registration interface, click a registration button to register, and reply a registration response to the video network monitoring platform. After receiving the registration response replied by the third-party monitoring platform, the video network monitoring platform determines that the third-party monitoring platform is successfully registered. After the registration is successful, the video network monitoring platform can provide service for the third party monitoring platform with successful registration.
Step 602, the video network monitoring platform obtains the original data sent by the monitoring co-rotation server and/or the third party monitoring platform.
The video network monitoring platform and the monitoring transfer server can perform bidirectional interaction through the video network. In a specific implementation, the monitoring coordination server may obtain information of each monitoring resource connected to itself, obtain information of each original organization node according to the information of the monitoring resources, and use the information of the monitoring resources and the information of the original organization node as original data. And the monitoring protocol conversion server packages the original data into a video networking protocol data packet and sends the video networking protocol data packet to a video networking monitoring platform through the video networking. For example, the monitoring protocol conversion server may send an internet of view 0x0004C protocol data packet to the internet of view monitoring platform, where the data packet carries original data.
In a preferred embodiment, the monitoring protocol conversion server encapsulates the raw data based on the video networking protocol, and the obtained video networking protocol data packet may include path information, where the path information is used to indicate a transmission path of the video networking protocol data packet in the video networking. The path information may include a source address and a destination address, the source address may be an address of the monitoring protocol server (e.g., a MAC address of the monitoring protocol server, etc.), and the destination address may be an address of the video networking monitoring platform (e.g., a MAC address of the MServer, an IP address, etc.). The monitoring protocol conversion server can send the video networking protocol data packet to the video networking monitoring platform through the video networking according to the path information, so that the routing process in the similar internet is not needed, and the data transmission is simplified.
The video network monitoring platform and the third-party monitoring platform can perform bidirectional interaction through the internet. In a specific implementation, the third-party monitoring platform is a national standard platform, and the third-party monitoring platform can acquire information of each monitoring resource connected to the third-party monitoring platform, acquire information of each original organization node according to the information of the monitoring resources, and use the information of the monitoring resources and the information of the original organization nodes as original data. And the third-party monitoring platform encapsulates the original data into a national standard protocol data packet and sends the national standard protocol data packet to the video networking monitoring platform through the Internet.
In the embodiment of the present invention, the information of the monitoring resource may include a device identifier of the monitoring resource, an administrative area identifier to which the monitoring resource belongs, a parent device identifier of the monitoring resource, a name of the monitoring resource, an address of the monitoring resource, a state of the monitoring resource, a code name, and the like. For the parent device identifier of the monitoring resource, if the monitoring resource has a parent device, the monitoring resource is the parent device identifier, if the monitoring resource does not have a parent device, the monitoring resource is the system identifier, and if the monitoring resource belongs to the virtual organization, the monitoring resource should simultaneously include the virtual organization identifier to which the monitoring resource belongs. The information of the original organization node may include an administrative area name corresponding to the original organization node, an administrative area identifier corresponding to the original organization node, and the like, and if a virtual organization exists, the information may further include a virtual organization name corresponding to the original organization node, a virtual organization identifier corresponding to the original organization node, and the like. The information of the monitoring resource and the information of the original organization node can be encoded by using a coding mode of a national standard protocol (such as a GB/T28181 protocol), so that various information of the monitoring resource and various information of the original organization node can be represented as the code of the national standard protocol corresponding to the information.
In a preferred embodiment, the video network monitoring platform can also perform operations such as debugging, correcting and the like on the original data.
For example, the video network monitoring platform may determine whether the coding format of the device identifier of the monitoring resource is a correct international protocol coding format. If not, the coding format of the equipment identification of the monitoring resource is corrected to be the correct national standard protocol coding format.
In a specific implementation, the video network monitoring platform can judge whether the coding format of the equipment identifier of the monitored resource is formed by 20 decimal digits of five segments of central coding, industry coding, type coding, network identifier and serial number, and if not, the coding format of the equipment identifier of the monitored resource can be determined not to be the correct national standard protocol coding format; if yes, the coding format of the equipment identifier of the monitoring resource can be determined to be the correct national standard protocol coding format. Therefore, the video network monitoring platform can modify the coding format of the equipment identifier of the monitoring resource into a format consisting of five 20 decimal digits including the correct central coding, the industry coding, the type coding, the network identifier and the serial number.
In another specific implementation, if the coding format of the device identifier of the monitored resource is 20 decimal digits composed of five segments of center coding, industry coding, type coding, network identifier and serial number, the video networking monitoring platform can further judge whether the coding format of each segment is the decimal digit composition of the corresponding digit of the segment, and if not, the coding format of the device identifier of the monitored resource can be determined not to be the correct national standard protocol coding format; if yes, the coding format of the equipment identifier of the monitoring resource can be determined to be the correct national standard protocol coding format. Therefore, the video network monitoring platform can modify the coding format of the wrong segment into a format consisting of the correct decimal digits of the digit number corresponding to the segment.
Certainly, other information in the original data (such as an administrative area identifier to which the monitoring resource belongs, a parent device identifier of the monitoring resource, and the like) may also be checked for errors and corrected in the above manner, which is not described in detail herein again in the embodiments of the present invention.
Step 603, the video network monitoring platform determines whether there is a missing organization node according to the information of the monitoring resource and the information of the original organization node.
After receiving a video networking protocol data packet sent by the monitoring protocol conversion server and/or a national standard protocol data packet sent by a third-party monitoring platform, the video networking monitoring platform analyzes the corresponding data packet to acquire original data carried in the data packet, and specifically acquires information of monitoring resources and information of original organization nodes.
And the video network monitoring platform determines whether the missing organization nodes exist according to the information of the monitoring resources and the information of the original organization nodes. In a preferred embodiment, this step 603 may include the following sub-steps a 1-A3:
a1, the video network monitoring platform determines each organization node corresponding to the monitoring resource, and the superior organization node and/or the inferior organization node of each organization node according to the information of the monitoring resource.
In a specific implementation, the video network monitoring platform may determine each organization node corresponding to the monitoring resource according to the device identifier of the monitoring resource and the administrative area identifier to which the monitoring resource belongs, and the coding formats of the device identifier of the monitoring resource and the administrative area identifier to which the monitoring resource belongs are national standard protocol coding formats, so that the device identifier of the monitoring resource and the administrative area identifier to which the monitoring resource belongs may represent corresponding national standard protocol codes.
The step of determining, by the video network monitoring platform, each organization node corresponding to the monitoring resource according to the information of the monitoring resource may specifically include: the video network monitoring platform sequentially extracts codes of corresponding digits from the equipment identification of the monitoring resource according to preset increments until a certain code is the same as the administrative region identification to which the monitoring resource belongs; the video network monitoring platform takes each code as an administrative region identifier, and takes one administrative region identifier as an organization node. In the embodiment of the invention, the preset increment can be set to be 2 according to the format of the national standard protocol code.
For example, the national standard protocol code corresponding to the Device identifier (Device ID) of a certain monitoring resource is 65020501001320000001, and the national standard protocol code corresponding to the administrative region identifier to which the monitoring resource belongs is 65020501. Therefore, the first two-bit code 65, the first four-bit code 6502, the first six-bit code 650205 and the first eight-bit code 65020501 are extracted from the national standard protocol code corresponding to the device identifier of the monitored resource, and each code is used as an administrative region identifier and an administrative region identifier as an organization node, that is, each code corresponds to an organization node.
And determining the superior organization node and/or the inferior organization node of each organization node according to the coding rule corresponding to the organization node. For example, as described above, the lower organization node of the organization node corresponding to the code 65 is the organization node corresponding to the code 6502, and there is no upper organization node; the upper organization node of the organization node corresponding to the code 6502 is the organization node corresponding to the code 65, and the lower organization node is the organization node corresponding to the code 650205; the upper organization node of the organization node corresponding to the code 650205 is the organization node corresponding to the code 6502, and the lower organization node is the organization node corresponding to the code 65020501; the upper organization node of the organization node corresponding to the code 65020501 is the organization node corresponding to the code 650205, and there is no lower organization node.
A2, the video network monitoring platform searches the upper level organization node and the lower level organization node from the information of the original organization node.
The information of the original organization node may include an administrative region identifier corresponding to the original organization node. Therefore, the video network monitoring platform can search the administrative region identifiers corresponding to the original organization nodes, and the identifiers are the same as the administrative region identifiers corresponding to the upper level organization nodes and the lower level organization nodes.
And A3, if the video network monitoring platform does not find a certain organization node, determining that the missing organization node exists, and taking the not found organization node as the missing organization node.
If the administrative region identifier corresponding to the original organization node does not have the identifier identical to the administrative region identifier corresponding to the certain organization node, it can be determined that the missing organization node exists, and the organization node which is not found is the missing organization node.
For example, for the four organizational nodes described above: if the organization node corresponding to the code 65, the organization node corresponding to the code 6502, the organization node corresponding to the code 650205 and the organization node corresponding to the code 65020501 are found in the administrative region identifier corresponding to the original organization node, the organization node corresponding to the code 65, the organization node corresponding to the code 650205 and the code 65020501 are not found, the organization node corresponding to the code 6502 is not found, and thus the organization node corresponding to the code 6502 that is not found is the missing organization node.
And step 604, if the video networking monitoring platform determines that the node exists, inserting a custom organization node as the missing organization node.
If the original data has missing organization nodes, if the monitoring directory is generated according to the original data, the directory will be confused and inaccurate. For example, if the organization node corresponding to the code 6502 is not found in the information of the original organization node, when the directory is generated, the organization node corresponding to the code 65020501 may be directly mounted on the organization node corresponding to the code 65, and the organization node corresponding to the code 650205 may be mounted on the organization node corresponding to the code 65020501, which results in confusion between the upper and lower levels.
In the embodiment of the present invention, for the above situation, if the video networking monitoring platform determines that there is a missing organization node, a custom organization node may be inserted as the missing organization node. Since the specific name of this missing organizational node is not known in fact, it can be uniformly named as a custom organizational node. For example, the above missing organization node is the organization node corresponding to the code 6502, so a custom organization node may be inserted to replace the missing organization node, and the code of the administrative region identifier corresponding to the custom organization node is 6502.
Step 605, the video network monitoring platform generates a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes, and mounts the monitoring resources to the affiliated organization nodes respectively according to the information of the monitoring resources.
After the missing organization nodes are supplemented, the original organization nodes and the custom organization nodes are combined to become more complete information. Therefore, the video network monitoring platform can generate a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes, and mount the monitoring resources to the affiliated organization nodes respectively according to the information of the monitoring resources.
In a preferred embodiment, this step 605 may include the following sub-steps B1-B2:
b1, the video network monitoring platform generates a monitoring organization directory tree according to the superior and inferior relations of the original organization nodes and the user-defined organization nodes.
That is, the monitored organization directory tree includes multiple levels of organization nodes, and each organization node corresponds to an administrative region or a virtual organization. In the monitoring organization directory tree, the description for each organization node may include information such as a Name (Name), a Device ID (Device ID), and the like corresponding to the organization node, and if there is a virtual organization, they may also include information such as a virtual organization Name, a virtual organization ID, and the like corresponding to the organization node.
B2, if the video network monitoring platform determines that the parent device identifier of the monitoring resource does not include the virtual organization identifier to which the monitoring resource belongs, searching an organization node corresponding to the administrative region identifier to which the monitoring resource belongs from the monitoring organization directory tree as the organization node to which the monitoring resource belongs, and mounting the monitoring resource on the organization node to which the monitoring resource belongs; otherwise (that is, the parent device identifier of the monitored resource includes the virtual organization identifier to which the monitored resource belongs), the organization node corresponding to the virtual organization identifier to which the monitored resource belongs is searched from the monitored organization directory tree as the organization node to which the monitored resource belongs, and the monitored resource is mounted on the organization node to which the monitored resource belongs.
The description for each monitoring resource may include information such as a Name (Name) of the monitoring resource, a Device identifier (Device ID) of the monitoring resource, an administrative area identifier (Civil Code) to which the monitoring resource belongs, a Parent Device identifier (Parent ID) of the monitoring resource, a Status (Status) of the monitoring resource, and the like.
Therefore, the monitoring organization directory tree and the mounted monitoring resources uniformly form the monitoring directory.
The embodiment of the invention mainly meets the requirement that a monitoring organization directory tree which is closest to the reality, clear in hierarchical relation, correct in logical relation and provided with self-defined correction completion is generated for a discrete resource collection table of a directory which may be missing, so that the monitoring resources can be correctly mounted, and the situation that the directory display is disordered due to the fact that a parent directory cannot be found and the monitoring resources are mounted on a top root directory is avoided. The technical scheme aims at organizing catalogues and resources in a large amount based on the ideas of list indexing, pre-occupying and layer-by-layer construction, correctly constructing a complete catalog tree and correctly mounting monitoring resources. The organization catalogue is combed by the method of theoretical inference, pre-occupation and subsequent replacement of the upper and lower-level organization catalogues of each node of the organization catalogue, and then the construction of a catalogue tree is carried out on the combed organization catalogue list. Finally, the monitoring resources are mounted. After the monitoring resources are shared with a plurality of third-party monitoring platforms, massive original unordered organization catalogs and monitoring resource data can be sorted, and the monitoring resources can be correctly mounted.
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.
EXAMPLE III
Referring to fig. 7, a block diagram of a monitoring directory generation apparatus according to a third embodiment of the present invention is shown. The device can be applied to the video network, and the video network comprises a video network monitoring platform and a monitoring transfer server, and the internet comprises a third party monitoring platform.
The generation device of the monitoring catalog of the embodiment of the invention can comprise the following modules positioned on a video network monitoring platform:
the video networking monitoring platform may include:
an obtaining module 701, configured to obtain original data sent by the monitoring co-ordination server and/or the third-party monitoring platform, where the original data includes information of monitoring resources and information of an original organization node;
a determining module 702, configured to determine whether there is a missing organization node according to the information of the monitoring resource and the information of the original organization node;
an inserting module 703, configured to insert a custom organization node as the missing organization node if it is determined that the custom organization node exists;
a generating module 704, configured to generate a monitoring organization directory tree according to the original organization nodes and the custom organization nodes, and mount the monitoring resources to the affiliated organization nodes respectively according to the information of the monitoring resources.
In a preferred embodiment, the determining module comprises: the node determining unit is used for determining each organization node corresponding to the monitoring resource and a superior organization node and/or a subordinate organization node of each organization node according to the information of the monitoring resource; the node searching unit is used for searching the superior organization node and the inferior organization node from the information of the original organization node; and the missing processing unit is used for determining that the missing organization node exists if a certain organization node is not found, and taking the organization node which is not found as the missing organization node.
In a preferred embodiment, the information of the monitored resource includes an equipment identifier of the monitored resource and an administrative area identifier to which the monitored resource belongs, the coding formats of the equipment identifier of the monitored resource and the administrative area identifier to which the monitored resource belongs are national standard protocol coding formats, and the node determining unit is specifically configured to sequentially extract codes of corresponding digits from the equipment identifier of the monitored resource according to preset increments until a certain code is the same as the administrative area identifier to which the monitored resource belongs; and taking each code as an administrative region identifier, and taking one administrative region identifier as an organization node.
In a preferred embodiment, the information about the monitored resource includes an identifier of an administrative area to which the monitored resource belongs and an identifier of a parent device of the monitored resource, and the generating module includes: the directory generation unit is used for generating a monitoring organization directory tree according to the superior-inferior relation between the original organization nodes and the user-defined organization nodes; a resource mounting unit, configured to, if it is determined that the parent device identifier of the monitoring resource does not include the virtual organization identifier to which the monitoring resource belongs, search, from the monitoring organization directory tree, an organization node corresponding to the administrative area identifier to which the monitoring resource belongs as an organization node to which the monitoring resource belongs, and mount the monitoring resource to the organization node to which the monitoring resource belongs; otherwise, searching an organization node corresponding to the virtual organization identifier to which the monitoring resource belongs from the monitoring organization directory tree as the organization node to which the monitoring resource belongs, and mounting the monitoring resource on the organization node to which the monitoring resource belongs.
In a preferred embodiment, the information of the monitoring resource includes a device identifier of the monitoring resource, and the video network monitoring platform further includes: the judging module is used for judging whether the coding format of the equipment identifier of the monitoring resource is a correct national standard protocol coding format or not; and the correcting module is used for correcting the coding format of the equipment identifier of the monitoring resource into a correct national standard protocol coding format if the equipment identifier of the monitoring resource is not in the correct national standard protocol coding format.
In a preferred embodiment, the obtaining module is specifically configured to obtain a video networking protocol data packet that is sent by the monitoring coordination server through a video networking and encapsulates the original data, and/or obtain a national standard protocol data packet that is sent by the third-party monitoring platform through the internet and encapsulates the original data; the video networking protocol data packet comprises path information, and the path information is used for indicating a transmission path of the video networking protocol data packet in the video networking.
In the embodiment of the invention, the video network monitoring platform can be butted with a third-party monitoring platform, so that the internet and the video network can share monitoring resources; and the video network monitoring platform optimizes the acquired information and supplements missing organization nodes, so that the monitoring directory generated according to the optimized information is more accurate, the user can check the monitoring directory more accurately and efficiently, and the user experience is improved.
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.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
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.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications 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 method for generating a monitoring directory and the device for generating a monitoring directory provided by the present invention are described in detail above, 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 understanding 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 (10)

1. A method for generating a monitoring directory is applied to a video network, wherein the video network comprises a video network monitoring platform and a monitoring coordination server, the internet comprises a third party monitoring platform, and the method comprises the following steps:
the video network monitoring platform acquires original data sent by the monitoring co-transfer server and/or the third-party monitoring platform, wherein the original data comprises information of monitoring resources and information of original organization nodes;
the video network monitoring platform determines whether a missing organization node exists according to information of a superior organization node and/or a subordinate organization node of each organization node corresponding to the monitoring resource and the original organization node; wherein, the superior organization node and/or the inferior organization node of each organization node corresponding to the monitoring resource is determined according to the information of the monitoring resource;
if the video network monitoring platform determines that the user-defined organization node exists, inserting a user-defined organization node as the missing organization node;
the video network monitoring platform generates a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes, and respectively mounts the monitoring resources to the affiliated organization nodes according to the information of the monitoring resources; the monitoring organization directory tree is a tree formed by nodes corresponding to all levels of administrative regions to which each monitoring resource belongs.
2. The method according to claim 1, wherein the step of determining, by the video network monitoring platform, whether there is a missing organization node according to information of an upper level organization node and/or a lower level organization node of each organization node corresponding to the monitoring resource and the original organization node includes:
the video network monitoring platform searches the upper level organization node and the lower level organization node from the information of the original organization node;
and if the video network monitoring platform does not find a certain organization node, determining that the missing organization node exists, and taking the unsearched organization node as the missing organization node.
3. The method according to claim 2, wherein the information of the monitoring resource comprises an equipment identifier of the monitoring resource and an administrative area identifier of the monitoring resource, and the coding format of the equipment identifier of the monitoring resource and the administrative area identifier of the monitoring resource is a national standard protocol coding format,
the step that the video network monitoring platform determines each organization node corresponding to the monitoring resource according to the information of the monitoring resource comprises the following steps:
the video network monitoring platform sequentially extracts codes of corresponding digits from the equipment identification of the monitoring resource according to preset increments until a certain code is the same as the administrative region identification to which the monitoring resource belongs;
and the video network monitoring platform takes each code as an administrative region identifier and takes one administrative region identifier as an organization node.
4. The method of claim 1, wherein the information of the monitoring resource comprises an identification of an administrative area to which the monitoring resource belongs and an identification of a parent device of the monitoring resource,
the step that the video network monitoring platform generates a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes, and respectively mounts the monitoring resources on the affiliated organization nodes according to the information of the monitoring resources comprises the following steps:
the video network monitoring platform generates a monitoring organization directory tree according to the superior-inferior relation between the original organization nodes and the user-defined organization nodes;
if the video network monitoring platform judges that the father equipment identifier of the monitoring resource does not comprise the virtual organization identifier to which the monitoring resource belongs, searching an organization node corresponding to the administrative region identifier to which the monitoring resource belongs from the monitoring organization directory tree as the organization node to which the monitoring resource belongs, and mounting the monitoring resource on the organization node to which the monitoring resource belongs; otherwise, searching an organization node corresponding to the virtual organization identifier to which the monitoring resource belongs from the monitoring organization directory tree as the organization node to which the monitoring resource belongs, and mounting the monitoring resource on the organization node to which the monitoring resource belongs.
5. The method according to claim 1, wherein the information of the monitoring resource includes a device identifier of the monitoring resource, and after the step of the video networking monitoring platform acquiring the raw data sent by the monitoring co-rotation server and/or the third party monitoring platform, the method further includes:
the video network monitoring platform judges whether the coding format of the equipment identification of the monitoring resource is a correct national standard protocol coding format;
if not, the coding format of the equipment identification of the monitoring resource is corrected to be the correct national standard protocol coding format.
6. The method according to claim 1, wherein the step of the video networking monitoring platform acquiring the original data sent by the monitoring co-transformation server and/or the third party monitoring platform comprises:
the video network monitoring platform acquires a video network protocol data packet which is sent by the monitoring protocol conversion server through the video network and encapsulates the original data, and/or acquires a national standard protocol data packet which is sent by the third party monitoring platform through the internet and encapsulates the original data;
the video networking protocol data packet comprises path information, and the path information is used for indicating a transmission path of the video networking protocol data packet in the video networking.
7. The utility model provides a generation device of control catalogue, its characterized in that, the device is applied to in the video networking, includes video networking control platform and control corotation server in the video networking, includes third party's control platform in the internet, video networking control platform includes:
an obtaining module, configured to obtain original data sent by the monitoring co-transformation server and/or the third-party monitoring platform, where the original data includes information of monitoring resources and information of an original organization node;
a determining module, configured to determine whether there is a missing organization node according to information of a higher level organization node and/or a lower level organization node of each organization node corresponding to the monitoring resource and the original organization node; wherein, the superior organization node and/or the inferior organization node of each organization node corresponding to the monitoring resource is determined according to the information of the monitoring resource;
the inserting module is used for inserting the self-defined organization node as the missing organization node if the existence is determined;
the generating module is used for generating a monitoring organization directory tree according to the original organization nodes and the user-defined organization nodes and respectively mounting the monitoring resources on the affiliated organization nodes according to the information of the monitoring resources; the monitoring organization directory tree is a tree formed by nodes corresponding to all levels of administrative regions to which each monitoring resource belongs.
8. The apparatus of claim 7, wherein the determining module comprises:
the node searching unit is used for searching the superior organization node and the inferior organization node from the information of the original organization node;
and the missing processing unit is used for determining that the missing organization node exists if a certain organization node is not found, and taking the organization node which is not found as the missing organization node.
9. The apparatus according to claim 8, wherein the information of the monitoring resource includes an equipment identifier of the monitoring resource and an administrative area identifier of the monitoring resource, and the coding format of the equipment identifier of the monitoring resource and the administrative area identifier of the monitoring resource is a national standard protocol coding format,
the node determining unit is specifically configured to sequentially extract codes of corresponding digits from the device identifiers of the monitoring resources according to preset increments until a certain code is the same as the administrative area identifier to which the monitoring resource belongs; and taking each code as an administrative region identifier, and taking one administrative region identifier as an organization node.
10. The apparatus of claim 7, wherein the information of the monitoring resource comprises an identification of an administrative area to which the monitoring resource belongs and an identification of a parent device of the monitoring resource,
the generation module comprises:
the directory generation unit is used for generating a monitoring organization directory tree according to the superior-inferior relation between the original organization nodes and the user-defined organization nodes;
a resource mounting unit, configured to, if it is determined that the parent device identifier of the monitoring resource does not include the virtual organization identifier to which the monitoring resource belongs, search, from the monitoring organization directory tree, an organization node corresponding to the administrative area identifier to which the monitoring resource belongs as an organization node to which the monitoring resource belongs, and mount the monitoring resource to the organization node to which the monitoring resource belongs; otherwise, searching an organization node corresponding to the virtual organization identifier to which the monitoring resource belongs from the monitoring organization directory tree as the organization node to which the monitoring resource belongs, and mounting the monitoring resource on the organization node to which the monitoring resource belongs.
CN201810942843.1A 2018-08-17 2018-08-17 Method and device for generating monitoring directory Active CN110839140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810942843.1A CN110839140B (en) 2018-08-17 2018-08-17 Method and device for generating monitoring directory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810942843.1A CN110839140B (en) 2018-08-17 2018-08-17 Method and device for generating monitoring directory

Publications (2)

Publication Number Publication Date
CN110839140A CN110839140A (en) 2020-02-25
CN110839140B true CN110839140B (en) 2021-09-10

Family

ID=69574294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810942843.1A Active CN110839140B (en) 2018-08-17 2018-08-17 Method and device for generating monitoring directory

Country Status (1)

Country Link
CN (1) CN110839140B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123357A (en) * 2014-07-17 2014-10-29 浙江宇视科技有限公司 Method and device for querying checkpoint
CN105357333A (en) * 2015-11-21 2016-02-24 浙江宇视科技有限公司 National standard code register server and video monitoring system
CN106777118A (en) * 2016-12-16 2017-05-31 武汉大学 A kind of quick abstracting method of geographical vocabulary based on fuzzy dictionary tree
CN106815346A (en) * 2017-01-18 2017-06-09 济南浪潮高新科技投资发展有限公司 A kind of synchronous migration method for being classified code multi-stage data
CN108052526A (en) * 2017-11-07 2018-05-18 深圳云天励飞技术有限公司 Monitoring area right management method, device and storage medium
CN108093206A (en) * 2016-11-21 2018-05-29 北京视联动力国际信息技术有限公司 A kind of resource monitoring method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7657648B2 (en) * 2007-06-21 2010-02-02 Microsoft Corporation Hybrid tree/mesh overlay for data delivery

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123357A (en) * 2014-07-17 2014-10-29 浙江宇视科技有限公司 Method and device for querying checkpoint
CN105357333A (en) * 2015-11-21 2016-02-24 浙江宇视科技有限公司 National standard code register server and video monitoring system
CN108093206A (en) * 2016-11-21 2018-05-29 北京视联动力国际信息技术有限公司 A kind of resource monitoring method and system
CN106777118A (en) * 2016-12-16 2017-05-31 武汉大学 A kind of quick abstracting method of geographical vocabulary based on fuzzy dictionary tree
CN106815346A (en) * 2017-01-18 2017-06-09 济南浪潮高新科技投资发展有限公司 A kind of synchronous migration method for being classified code multi-stage data
CN108052526A (en) * 2017-11-07 2018-05-18 深圳云天励飞技术有限公司 Monitoring area right management method, device and storage medium

Also Published As

Publication number Publication date
CN110839140A (en) 2020-02-25

Similar Documents

Publication Publication Date Title
CN109672856B (en) Resource synchronization method and device
CN109889780B (en) Data synchronization method and device
CN109167960B (en) Method and system for processing video stream data
CN109714527B (en) Method and device for controlling video network camera in internet
CN109617956B (en) Data processing method and device
CN109309806B (en) Video conference management method and system
CN110190973B (en) Online state detection method and device
CN109672857B (en) Information processing method and device for monitoring resources
CN110381030B (en) Method and device for processing synchronization request
CN110381119B (en) Method, system and device for acquiring log information and storage medium
CN109660753B (en) Resource synchronization method and device
CN110557319B (en) Message processing method and device based on video network
CN109802952B (en) Monitoring data synchronization method and device
CN109743555B (en) Information processing method and system based on video network
CN110839142B (en) Monitoring directory sharing method and device
CN109803119B (en) Method and device for monitoring information transmission
CN110557273A (en) Terminal state warning method and device
CN110677617A (en) Data processing method and device
CN110493149B (en) Message processing method and device
CN110134892B (en) Loading method and system of monitoring resource list
CN109963107B (en) Audio and video data display method and system
CN109743360B (en) Information processing method and device
CN110519554B (en) Monitoring detection method and device
CN111212255A (en) Monitoring resource obtaining method and device and computer readable storage medium
CN109688073B (en) Data processing method and system based on 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