CN108809686B - Resource synchronization method and device, electronic equipment and computer readable storage medium - Google Patents

Resource synchronization method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN108809686B
CN108809686B CN201710561523.7A CN201710561523A CN108809686B CN 108809686 B CN108809686 B CN 108809686B CN 201710561523 A CN201710561523 A CN 201710561523A CN 108809686 B CN108809686 B CN 108809686B
Authority
CN
China
Prior art keywords
identification information
resource
monitoring
module
synchronization
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
CN201710561523.7A
Other languages
Chinese (zh)
Other versions
CN108809686A (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 CN201710561523.7A priority Critical patent/CN108809686B/en
Publication of CN108809686A publication Critical patent/CN108809686A/en
Application granted granted Critical
Publication of CN108809686B publication Critical patent/CN108809686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention provides a resource synchronization method, which comprises the following steps: when determining that the resources are synchronous, sending a request to a monitoring resource gateway; acquiring first identification information of monitoring equipment from the monitoring resource gateway, wherein the monitoring equipment communicates through the monitoring resource gateway; comparing the first identification information with second identification information in a resource database; and updating the second identification information in the resource database according to the comparison result. And an engineer is not required to manually modify the configuration file for resource synchronization. In addition, the resource synchronization scheme provided by the embodiment of the invention does not need to restart the server when the resources are synchronously acquired, and the video network server does not need to stop the service for a short time.

Description

Resource synchronization method and device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a resource synchronization method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of network technologies, bidirectional communications such as video conferences and video teaching are widely popularized in the aspects of life, work, learning and the like of users. In the prior art, when monitoring equipment is added or the monitored area of the monitoring equipment changes in the use process of the unified management platform for the video networking, in order to achieve synchronization of monitoring resource information, the traditional resource synchronization implementation mode is that when the monitoring equipment with information is added or the monitored area of the monitoring equipment is modified, an engineer manually modifies a configuration file of a resource synchronization server, and restarts the server to achieve synchronization operation of the resource information.
For the resource information synchronization mode in the prior art, an engineer is required to manually perform resource synchronization to consume human resources, and the video networking unified management platform can stop service for a short time.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a resource synchronization method and a corresponding apparatus that overcome or at least partially solve the above problems.
In order to solve the above problems, the present invention discloses a resource synchronization method, which is applied in a video network and comprises: when determining that the resources are synchronous, sending a request to a monitoring resource gateway; acquiring first identification information of monitoring equipment from the monitoring resource gateway, wherein the monitoring equipment communicates through the monitoring resource gateway; comparing the first identification information with second identification information in a resource database; and updating the second identification information in the resource database according to the comparison result.
Preferably, before the step of sending a request to a monitoring resource gateway when it is determined that the resources are synchronized, the method further comprises: the object storage server detects whether monitoring equipment is accessed; if yes, generating a resource synchronization request triggering option in a webpage interface of the object storage server; and when the selection operation of the option is received, sending a resource synchronization instruction to a resource synchronization server.
Preferably, the identification information includes: monitoring equipment identification and monitoring area identification, wherein the step of updating the second identification information in the resource database according to the comparison result comprises the following steps: determining whether second identification information with the same monitoring equipment identification as the first identification information exists in the resource database or not aiming at each piece of first identification information; if not, adding the first identification information to the resource database; if so, judging whether the monitoring area identification of the first identification information is consistent with the monitoring area identification of the second identification information; if not, replacing the second identification information in the resource database with the first identification information.
Preferably, after the step of updating the resource database according to the comparison result, the method further includes: acquiring updated second identification information from the resource database; and sending the updated second identification information to the object storage server to be displayed on a webpage interface of the object storage server.
In order to solve the above problem, the present invention also discloses a resource synchronization device, which comprises: the sending request module is used for sending a request to the monitoring resource gateway when the resource synchronization is determined; the first acquisition module is used for acquiring first identification information of monitoring equipment from the monitoring resource gateway, wherein the monitoring equipment communicates through the monitoring resource gateway; the comparison module is used for comparing the first identification information with second identification information in a resource database; and the updating module is used for updating the second identification information in the resource database according to the comparison result.
Preferably, the apparatus further comprises: the detection module is used for detecting whether the monitoring equipment is accessed by the object storage server before the request is sent to the monitoring resource gateway when the request sending module determines that the resources are synchronous; the generating module is used for generating a resource synchronization request triggering option in a webpage interface of the object storage server if the detection result of the detecting module is positive; and the instruction sending module is used for sending a resource synchronization instruction to the resource synchronization server when the selection operation of the option is received.
Preferably, the identification information includes: monitoring device identification and control area identification, the update module includes: a determining submodule, configured to determine, for each piece of the first identification information, whether second identification information having the same monitoring device identification as the first identification information exists in the resource database; the adding submodule is used for adding the first identification information into the resource database if the first identification information is not in the resource database; the judgment submodule is used for judging whether the monitoring area identifier of the first identification information is consistent with the monitoring area identifier of the second identification information if the monitoring area identifier of the first identification information is consistent with the monitoring area identifier of the second identification information; and the replacing sub-module is used for replacing the second identification information in the resource database with the first identification information if the judgment result of the judging sub-module is negative.
Preferably, the apparatus further comprises: the second obtaining module is used for obtaining updated second identification information from the resource database after the updating module updates the resource database according to the comparison result; and the sending module is used for sending the updated second identification information to the object storage server so as to display the second identification information on a webpage interface of the object storage server.
In order to solve the above problem, the present invention also discloses an electronic device, including: a memory, a processor and a resource synchronization program stored on the memory and executable on the processor, the resource synchronization program when executed by the processor implementing the steps of the resource synchronization method.
In order to solve the above problem, the present invention further discloses a computer-readable storage medium, wherein a resource synchronization program is stored on the computer-readable storage medium, and the resource synchronization program implements the steps of the resource synchronization method when executed by a processor.
Compared with the prior art, the invention has the following advantages:
according to the resource synchronization scheme provided by the embodiment of the invention, when a resource synchronization request is received by applying the characteristics of the video network, the second identification information in the resource database is automatically updated according to the comparison between the acquired first identification information and the second identification information in the resource database, and an engineer does not need to manually modify a configuration file to perform resource synchronization. In addition, the resource synchronization scheme provided by the embodiment of the invention does not need to restart the server when the resources are synchronously acquired, and the video network server does not need to stop the service for a short time.
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 resource synchronization method according to a first embodiment of the present invention;
FIG. 6 is a flowchart illustrating steps of a resource synchronization method according to a second embodiment of the present invention;
fig. 7 is a block diagram of a resource synchronization apparatus according to a third embodiment of the present invention;
fig. 8 is a block diagram of a resource synchronization apparatus according to a fourth embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to a fifth 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 destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Based on the above characteristics of the video network, one of the core concepts of the embodiments of the present invention is provided, and when a resource synchronization request is received, the update of the second identification information in the resource database is completed according to the comparison between the acquired first identification information and the second identification information in the resource database, following the protocol of the video network.
Example one
Referring to fig. 5, a flowchart illustrating steps of a resource synchronization method according to a first embodiment of the present invention is shown.
The resource synchronization method provided by the embodiment of the invention comprises the following steps:
step 501, when determining that the resources are synchronous, sending a request to a monitoring resource gateway.
When the monitoring equipment is added or the area monitored by the monitoring equipment changes, the object storage server generates a resource synchronization instruction and sends the instruction to the resource synchronization receiver, and the resource synchronization receiver determines that resource synchronization operation needs to be executed after receiving the resource synchronization request and sends a request for acquiring identification information to the resource monitoring gateway.
For example: the method comprises the steps that 2 monitoring resource gateways are accessed under a video network unified management platform, five monitoring devices are accessed into each monitoring resource gateway, when one monitoring device is added to a certain resource monitoring gateway, resource synchronization is determined to be needed, or for the monitoring device accessed by each resource monitoring gateway, if information corresponding to the monitoring device changes, resource synchronization is also triggered.
Compared with the prior art, the resource synchronization method provided by the embodiment of the invention does not need an engineer to manually modify the configuration file to trigger the resource synchronization request, and actively triggers resource synchronization by monitoring the access of new monitoring equipment or monitoring the change of the identification information of the original monitoring equipment.
Step 502, obtaining first identification information of the monitoring equipment from the monitoring resource gateway.
Wherein, each monitoring device communicates through a monitoring resource gateway.
Identification information includes, but is not limited to: geographical position information, installation place information, maintenance personnel information, affiliated unit information, monitoring area identification, monitoring equipment identification and the like.
Step 503, comparing the first identification information with the second identification information in the resource database.
And comparing the geographic position, the installation place, the maintenance personnel, the affiliated unit, the monitoring area and the like in each acquired first identification information with the specific information contained in each second identification information correspondingly.
And 504, updating the second identification information in the resource database according to the comparison result.
For each first identification information, when the first identification information is inconsistent with the second identification information, the resource database needs to be updated.
According to the resource synchronization method provided by the embodiment of the invention, when a resource synchronization request is received by applying the characteristics of the video network, the second identification information in the resource database is automatically updated according to the comparison between the acquired first identification information and the second identification information in the resource database, and an engineer does not need to manually modify a configuration file to perform resource synchronization. In addition, the resource synchronization scheme provided by the embodiment of the invention does not need to restart the server when the resources are synchronously acquired, and the video network server does not need to stop the service for a short time.
Example two
Referring to fig. 6, a flowchart of steps of a resource synchronization method according to a second embodiment of the present invention is shown.
The resource synchronization method provided by the embodiment of the invention specifically comprises the following steps:
step 601, the object storage server detects whether a monitoring device is accessed.
And 602, if yes, generating a resource synchronization request triggering option in a webpage interface of the object storage server.
If not, step 601 is continuously executed until step 602 is executed after the monitoring device is detected to be accessed.
Step 603, when receiving the selection operation of the option, sending a resource synchronization instruction to the resource synchronization server.
When an Object Storage Service (OSS) server detects that a monitoring device is accessed, a resource synchronization request is triggered at a web interface end of the OSS server. When a new monitoring resource is accessed through the internal private communication protocol of the video network, a trigger option is generated in a webpage interface of the object storage server, and a user can select whether resource synchronization is needed or not, or when the selection operation of the user is not received within a preset time, a resource synchronization request is automatically sent to the resource synchronization server.
Step 604, when the resource synchronization is determined, a request is sent to the monitoring resource gateway.
The resource synchronization server receives a resource synchronization request sent by the OSS server, analyzes the resource synchronization request, and sends a request for acquiring the first identification information to the monitoring resource gateway according to the analyzed resource synchronization request.
Wherein, the monitoring resource gateway stores the identification information that each supervisory equipment corresponds, and when new supervisory equipment inserts monitoring resource gateway, monitoring resource gateway also can store new supervisory equipment's identification information, and wherein, identification information can include: geographical position information, installation place information, maintenance personnel information, affiliated unit information, monitoring area identification, monitoring equipment identification and the like.
Step 605, obtaining the first identification information of the monitoring device from the monitoring resource gateway.
Wherein, each monitoring device communicates through a monitoring resource gateway.
Step 606: and determining whether second identification information with the same monitoring equipment identification as the first identification information exists in the resource database or not aiming at each piece of first identification information.
Wherein the identification information includes: the monitoring equipment identification and the monitoring area identification are compared with each other according to the acquired first identification information and the second identification information, and the geographical position, the installation place, the maintainers, the affiliated units and the like of each first identification information are compared with the geographical position, the installation place, the maintainers, the affiliated units and the like of each second identification information.
Step 607: if not, the first identification information is added to the resource database.
And if the monitoring equipment identifier of the first identification information is consistent with the monitoring equipment identifier of the second identification information, indicating that a new monitoring equipment is accessed, adding the acquired first identifier into the resource database, and completing the updating of the resource database.
Step 608: and if so, judging whether the monitoring area identification of the first identification information is consistent with the monitoring area identification of the second identification information.
And if the first identification information and the second identification information are consistent, acquiring the monitoring area identification of each piece of first identification information and the monitoring area identification of each piece of second identification information, and matching.
Step 609: and if not, replacing the second identification information in the resource database with the first identification information.
If not, it indicates that the identification information of the original monitoring device has changed, for example, a certain monitoring device changes from a front monitoring door to a rear monitoring door.
And step 610, acquiring the updated second identification information from the resource database.
And 611, sending the updated second identification information to the object storage server to be displayed on a webpage interface of the object storage server.
According to the resource synchronization method provided by the embodiment of the invention, when a resource synchronization request is received by applying the characteristics of the video network, the second identification information in the resource database is automatically updated according to the comparison between the acquired first identification information and the second identification information in the resource database, and an engineer does not need to manually modify a configuration file to perform resource synchronization. In addition, the resource synchronization scheme provided by the embodiment of the invention does not need to restart the server when the resources are synchronously acquired, and the video network server does not need to stop the service for a short time.
EXAMPLE III
Referring to fig. 7, a block diagram of a resource synchronization apparatus according to a third embodiment of the present invention is shown.
The resource synchronization device provided by the embodiment of the invention comprises: a request sending module 701, configured to send a request to a monitoring resource gateway when resource synchronization is determined; a first obtaining module 702, configured to obtain first identification information of a monitoring device from the monitoring resource gateway, where each monitoring device communicates through the monitoring resource gateway; a comparing module 703, configured to compare the first identification information with second identification information in a resource database; an updating module 704, configured to update the second identifier information in the resource database according to the comparison result.
According to the resource synchronization device provided by the embodiment of the invention, when a resource synchronization request is received by applying the characteristics of the video network, the second identification information in the resource database is automatically updated according to the comparison between the acquired first identification information and the second identification information in the resource database, and an engineer does not need to manually modify a configuration file to perform resource synchronization. In addition, the resource synchronization scheme provided by the embodiment of the invention does not need to restart the server when the resources are synchronously acquired, and the video network server does not need to stop the service for a short time.
Example four
Referring to fig. 8, a block diagram of a resource synchronization apparatus according to a fourth embodiment of the present invention is shown.
The resource synchronization device provided by the embodiment of the invention comprises: a request sending module 801, configured to send a request to a monitoring resource gateway when resource synchronization is determined; a first obtaining module 802, configured to obtain first identification information of a monitoring device from the monitoring resource gateway, where each monitoring device communicates through the monitoring resource gateway; a comparing module 803, configured to compare the first identification information with second identification information in a resource database; the updating module 804 is configured to update the second identification information in the resource database according to the comparison result.
Preferably, the apparatus further comprises: a detecting module 805, configured to detect, by the object storage server, whether a monitoring device is accessed before the sending request module sends a request to the monitoring resource gateway when determining that the resource is synchronous; a generating module 806, configured to generate a resource synchronization request triggering option in a web interface of the object storage server if a detection result of the detecting module is yes; a sending instruction module 807, configured to send a resource synchronization instruction to the resource synchronization server when the selection operation on the option is received.
Preferably, the identification information includes: the update module 804 includes: a determining submodule 8041, configured to determine, for each piece of first identification information, whether there is second identification information that has the same monitoring device identification as the first identification information in the resource database; an adding sub-module 8042, configured to add the first identification information to the resource database if the first identification information is not included in the resource database; a determining submodule 8043, configured to determine whether the monitoring area identifier of the first identification information is consistent with the monitoring area identifier of the second identification information if the monitoring area identifier of the first identification information is consistent with the monitoring area identifier of the second identification information; a replacing sub-module 8044, configured to replace the second identification information in the resource database with the first identification information if the determination result of the determining sub-module is negative.
Preferably, the apparatus further comprises: a second obtaining module 807, configured to obtain updated second identifier information from the resource database after the updating module updates the resource database according to the comparison result; a sending module 808, configured to send the updated second identification information to the object storage server, so as to be displayed on a web interface of the object storage server.
According to the resource synchronization device provided by the embodiment of the invention, when a resource synchronization request is received by applying the characteristics of the video network, the second identification information in the resource database is automatically updated according to the comparison between the acquired first identification information and the second identification information in the resource database, and an engineer does not need to manually modify a configuration file to perform resource synchronization. In addition, the resource synchronization scheme provided by the embodiment of the invention does not need to restart the server when the resources are synchronously acquired, and the video network server does not need to stop the service for a short time.
EXAMPLE five
Referring to fig. 9, a block diagram of an electronic device according to a fifth embodiment of the present invention is shown.
Fig. 9 is a block diagram illustrating an architecture of an electronic device 900 for resource synchronization in accordance with an example embodiment. For example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like. In the embodiment of the invention, the electronic equipment is a computer.
Referring to fig. 9, electronic device 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 919.
The processing component 902 generally controls overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the electronic device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900.
The multimedia components 908 include a screen that provides an output interface between the electronic device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 904 or transmitted via the communication component 919. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status evaluations of various aspects of the electronic device 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of electronic device 900, sensor assembly 914 may also detect a change in the position of electronic device 900 or a component of electronic device 900, the presence or absence of user contact with electronic device 900, orientation or acceleration/deceleration of electronic device 900, and a change in the temperature of electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 919 is configured to facilitate communications between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 919 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 919 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 900 may be a computer or may be a device implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the electronic device 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A computer readable storage medium having instructions therein which, when executed by a processor of an electronic device, enable the electronic device to perform resource synchronization as shown in embodiments of the present invention.
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. For the system 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 resource synchronization method and device provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help 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.
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. For the system 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.

Claims (10)

1. A resource synchronization method is applied to a video network, and comprises the following steps:
when determining that the resources are synchronous, sending a request to a monitoring resource gateway;
acquiring first identification information of monitoring equipment from the monitoring resource gateway, wherein the monitoring equipment communicates through the monitoring resource gateway;
comparing the first identification information with second identification information in a resource database;
and updating the second identification information in the resource database according to the comparison result.
2. The method of claim 1, wherein prior to the step of sending a request to a monitoring resource gateway when determining resource synchronization, the method further comprises:
the object storage server detects whether monitoring equipment is accessed;
if yes, generating a resource synchronization request triggering option in a webpage interface of the object storage server;
and when the selection operation of the option is received, sending a resource synchronization instruction to a resource synchronization server.
3. The method of claim 1, wherein identifying information comprises: monitoring equipment identification and monitoring area identification, wherein the step of updating the second identification information in the resource database according to the comparison result comprises the following steps:
determining whether second identification information with the same monitoring equipment identification as the first identification information exists in the resource database or not aiming at each piece of first identification information;
if not, adding the first identification information to the resource database;
if so, judging whether the monitoring area identification of the first identification information is consistent with the monitoring area identification of the second identification information;
if not, replacing the second identification information in the resource database with the first identification information.
4. The method of claim 1, wherein after the step of updating the resource database according to the comparison result, the method further comprises:
acquiring updated second identification information from the resource database;
and sending the updated second identification information to an object storage server to be displayed on a webpage interface of the object storage server.
5. An apparatus for resource synchronization, the apparatus comprising:
the sending request module is used for sending a request to the monitoring resource gateway when the resource synchronization is determined;
the first acquisition module is used for acquiring first identification information of monitoring equipment from the monitoring resource gateway, wherein the monitoring equipment communicates through the monitoring resource gateway;
the comparison module is used for comparing the first identification information with second identification information in a resource database;
and the updating module is used for updating the second identification information in the resource database according to the comparison result.
6. The apparatus of claim 5, further comprising:
the detection module is used for detecting whether the monitoring equipment is accessed by the object storage server before the request is sent to the monitoring resource gateway when the request sending module determines that the resources are synchronous;
the generating module is used for generating a resource synchronization request triggering option in a webpage interface of the object storage server if the detection result of the detecting module is positive;
and the instruction sending module is used for sending a resource synchronization instruction to the resource synchronization server when the selection operation of the option is received.
7. The apparatus of claim 5, wherein the identification information comprises: monitoring device identification and control area identification, the update module includes:
a determining submodule, configured to determine, for each piece of the first identification information, whether second identification information having the same monitoring device identification as the first identification information exists in the resource database;
the adding submodule is used for adding the first identification information into the resource database if the first identification information is not in the resource database;
the judgment submodule is used for judging whether the monitoring area identifier of the first identification information is consistent with the monitoring area identifier of the second identification information if the monitoring area identifier of the first identification information is consistent with the monitoring area identifier of the second identification information;
and the replacing sub-module is used for replacing the second identification information in the resource database with the first identification information if the judgment result of the judging sub-module is negative.
8. The apparatus of claim 5, further comprising:
the second obtaining module is used for obtaining updated second identification information from the resource database after the updating module updates the resource database according to the comparison result;
and the sending module is used for sending the updated second identification information to the object storage server so as to display the second identification information on a webpage interface of the object storage server.
9. An electronic device, characterized in that the electronic device comprises: memory, a processor and a resource synchronization program stored on the memory and executable on the processor, the resource synchronization program when executed by the processor implementing the steps of the resource synchronization method according to any of claims 1 to 4.
10. A computer-readable storage medium, having stored thereon a resource synchronization program which, when executed by a processor, implements the steps of the resource synchronization method of any one of claims 1 to 4.
CN201710561523.7A 2017-07-11 2017-07-11 Resource synchronization method and device, electronic equipment and computer readable storage medium Active CN108809686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710561523.7A CN108809686B (en) 2017-07-11 2017-07-11 Resource synchronization method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710561523.7A CN108809686B (en) 2017-07-11 2017-07-11 Resource synchronization method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108809686A CN108809686A (en) 2018-11-13
CN108809686B true CN108809686B (en) 2022-02-25

Family

ID=64094538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710561523.7A Active CN108809686B (en) 2017-07-11 2017-07-11 Resource synchronization method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108809686B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108880849B (en) * 2017-10-12 2021-10-19 视联动力信息技术股份有限公司 Statistical method, device and system for attribute information
CN109635039B (en) * 2018-11-23 2021-08-24 金色熊猫有限公司 Multi-data center data synchronization method and system
CN109525463B (en) * 2018-12-18 2020-08-28 视联动力信息技术股份有限公司 Method and device for detecting 64-bit video networking protocol communication function
CN110071959B (en) * 2019-03-05 2022-01-18 视联动力信息技术股份有限公司 Method and device for timing synchronization of third-party national standard resources
CN110099140A (en) * 2019-05-05 2019-08-06 苏州阳野自动化系统有限公司 A kind of intelligent gateway distribution determination method
CN110224988B (en) * 2019-05-10 2023-04-07 视联动力信息技术股份有限公司 Image data processing method, system and device and storage medium
CN110557611B (en) * 2019-08-28 2021-12-17 视联动力信息技术股份有限公司 Information synchronization method, device and storage medium
CN111858749A (en) * 2020-06-15 2020-10-30 武汉旷视金智科技有限公司 Bottom library synchronization method, device and electronic system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219295A (en) * 2014-08-25 2014-12-17 上海烟草集团有限责任公司 Server-side configuration based information display method and system for mobile equipment
CN105488200A (en) * 2015-12-08 2016-04-13 小米科技有限责任公司 Webpage display method and device
CN106850717A (en) * 2015-12-07 2017-06-13 南京南瑞继保电气有限公司 A kind of method of the monitoring industrial data collection gateway real time data based on webpage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219295A (en) * 2014-08-25 2014-12-17 上海烟草集团有限责任公司 Server-side configuration based information display method and system for mobile equipment
CN106850717A (en) * 2015-12-07 2017-06-13 南京南瑞继保电气有限公司 A kind of method of the monitoring industrial data collection gateway real time data based on webpage
CN105488200A (en) * 2015-12-08 2016-04-13 小米科技有限责任公司 Webpage display method and device

Also Published As

Publication number Publication date
CN108809686A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108809686B (en) Resource synchronization method and device, electronic equipment and computer readable storage medium
CN108574688B (en) Method and device for displaying participant information
CN108632558B (en) Video call method and device
CN110493554B (en) Method and system for switching speaking terminal
CN110572607A (en) Video conference method, system and device and storage medium
CN109660816B (en) Information processing method and device
CN110099240B (en) Control method and device for video conference
CN109561072B (en) Link detection method and system
CN108574689B (en) Method and device for video call
CN110049273B (en) Video networking-based conference recording method and transfer server
CN109191808B (en) Alarm method and system based on video network
CN109194915B (en) Video data processing method and system
CN110557612B (en) Control method of monitoring equipment and video networking system
CN109963108B (en) One-to-many talkback method and device
CN109862307B (en) Video conference initiating method and device
CN109525663B (en) Video data display method and system
CN108989737B (en) Data playing method and device and electronic equipment
CN110519549B (en) Conference terminal list obtaining method and system
CN110198384B (en) Communication method based on video networking and transfer server
CN110381285B (en) Conference initiating method and device
CN110049069B (en) Data acquisition method and device
CN110401808B (en) Conference control method and device
CN110198429B (en) Method and device for video conference hierarchical scheduling
CN110830763A (en) Monitoring video inspection method and device
CN110737519A (en) theme switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100000 Dongcheng District, Beijing, Qinglong Hutong 1, 1103 house of Ge Hua building.

Applicant after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd.

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

Applicant before: BEIJING VISIONVERA INTERNATIONAL INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant