CN106953905B - Inter-domain directory sharing method and device - Google Patents

Inter-domain directory sharing method and device Download PDF

Info

Publication number
CN106953905B
CN106953905B CN201710151337.6A CN201710151337A CN106953905B CN 106953905 B CN106953905 B CN 106953905B CN 201710151337 A CN201710151337 A CN 201710151337A CN 106953905 B CN106953905 B CN 106953905B
Authority
CN
China
Prior art keywords
domain
directory
subordinate
directory information
synchronization mechanism
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
CN201710151337.6A
Other languages
Chinese (zh)
Other versions
CN106953905A (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201710151337.6A priority Critical patent/CN106953905B/en
Publication of CN106953905A publication Critical patent/CN106953905A/en
Application granted granted Critical
Publication of CN106953905B publication Critical patent/CN106953905B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4523Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using lightweight directory access protocol [LDAP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/282Hierarchical databases, e.g. IMS, LDAP data stores or Lotus Notes
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method and a device for sharing an inter-domain directory, which are applied to a superior domain in a multi-level multi-domain networking system, wherein the multi-level multi-domain networking system further comprises at least one subordinate domain, the subordinate domain comprises at least one monitoring device, and the method comprises the following steps: after sending a message for indicating successful registration to any one of the at least one subordinate domain, acquiring directory information of monitoring equipment allowing resource sharing in any one subordinate domain based on a preset synchronization mechanism, and storing the directory information in a locally stored directory database; receiving a notification message which is sent by any lower domain and used for indicating that the directory information changes; and updating the directory database according to the notification message. By applying the method, the efficiency of sharing the directory information of the monitoring equipment from the lower domain to the upper domain can be improved.

Description

Inter-domain directory sharing method and device
Technical Field
The present application relates to the field of video surveillance technologies, and in particular, to a method and an apparatus for sharing an inter-domain directory.
Background
In a large monitoring network application system, an upper domain can be accessed to lower domains with tens of millions of scales, and each lower domain can be accessed to monitoring equipment with millions of scales, such as a camera. In the prior art, an inter-domain synchronization protocol of a new national standard GB/T28181 is adopted to share directory information of a monitoring device in a subordinate domain to a superior domain, and specifically, after the subordinate domain successfully registers with the superior domain, the subordinate domain may send a NOTIFY message to the superior domain, where the NOTIFY message carries directory information of the monitoring device that the subordinate domain allows resource sharing, and after receiving the NOTIFY message, the superior domain updates a local directory database and returns a message indicating that the directory information is successfully received to the subordinate domain.
However, the number of directory information carried in one NOTIFY message is 10 at most, that is, the subordinate domain can share the directory information of 10 monitoring devices to the superior domain at most once, so that when the monitoring device accessed by the subordinate domain reaches a million-level scale, the subordinate domain sends the NOTIFY message to the superior domain many times, which results in very low efficiency of inter-domain directory sharing, and the superior domain receives a large number of NOTIFY messages, which causes the superior domain to bear a large pressure and is prone to errors in the process of updating the local directory database.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for sharing a directory between domains, so as to improve the efficiency of sharing directory information of a monitoring device from a lower domain to an upper domain.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the embodiments of the present application, there is provided an inter-domain directory sharing method, applied to an upper domain in a multi-level multi-domain networking system, where the multi-level multi-domain networking system further includes at least one lower domain, and the lower domain includes at least one monitoring device, the method includes:
after sending a message for indicating successful registration to any one of the at least one subordinate domain, acquiring directory information of monitoring equipment allowing resource sharing in any one subordinate domain based on a preset synchronization mechanism, and storing the directory information in a locally stored directory database;
receiving a notification message which is sent by any lower domain and used for indicating that the directory information changes;
and updating the directory database according to the notification message.
Optionally, the synchronization mechanism includes: a database synchronization mechanism;
the obtaining of the directory information of the monitoring device allowing resource sharing in any subordinate domain based on the preset synchronization mechanism includes:
and acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time based on the database synchronization mechanism.
Optionally, the synchronization mechanism includes: lightweight directory access protocol LDAP synchronization mechanism;
the obtaining of the directory information of the monitoring device allowing resource sharing in any subordinate domain based on the preset synchronization mechanism includes:
based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time;
or, based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain in batches.
Optionally, the receiving the notification message sent by any lower domain and used for indicating that the directory information changes includes:
based on a preset time interval, sending a directory acquisition request to any subordinate domain;
and receiving a notification message which is sent by any lower domain according to the directory acquisition request and used for indicating that the directory information changes.
Optionally, the directory information includes a device code of the monitoring device, where the device code includes a domain identifier of a subordinate domain to which the monitoring device belongs;
the method further comprises the following steps:
when an acquisition instruction for requesting to acquire resources on any monitoring device is detected, acquiring a device code of any monitoring device from directory information of any monitoring device;
analyzing the device code of any monitoring device to obtain a domain identifier of a subordinate domain to which the monitoring device belongs;
searching a corresponding relation between a locally stored domain identifier and a signaling gateway identifier according to the domain identifier of the subordinate domain to which any monitoring device belongs to obtain the signaling gateway identifier corresponding to the domain identifier of the subordinate domain to which any monitoring device belongs;
and sending a resource acquisition request to any monitoring equipment according to the corresponding signaling gateway identifier.
According to a second aspect of the embodiments of the present application, there is provided an inter-domain directory sharing apparatus, which is applied to an upper domain in a multi-level multi-domain networking system, where the multi-level multi-domain networking system further includes at least one lower domain, and the lower domain includes at least one monitoring device, the apparatus includes:
a directory obtaining module, configured to, after sending a message indicating that registration is successful to any one of the at least one subordinate domain, obtain, based on a preset synchronization mechanism, directory information of the monitoring device that allows resource sharing in any one of the subordinate domains, and store the directory information in a directory database that is locally stored;
a message receiving module, configured to receive a notification message sent by any lower domain and used for indicating that the directory information changes;
and the directory updating module is used for updating the directory database according to the notification message.
Optionally, the synchronization mechanism includes: a database synchronization mechanism;
the catalog acquisition module is specifically configured to:
and acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time based on the database synchronization mechanism.
Optionally, the synchronization mechanism includes: lightweight directory access protocol LDAP synchronization mechanism;
the catalog acquisition module is specifically configured to:
based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time;
or, based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain in batches.
Optionally, the message receiving module includes:
the sending submodule is used for sending a directory acquisition request to any subordinate domain based on a preset time interval;
and the receiving submodule is used for receiving a notification message which is sent by any lower domain according to the directory acquisition request and is used for indicating that the directory information changes.
Optionally, the directory information includes a device code of the monitoring device, where the device code includes a domain identifier of a subordinate domain to which the monitoring device belongs;
the device further comprises:
the code acquisition module is used for acquiring the equipment code of any monitoring equipment from the directory information of any monitoring equipment when an acquisition instruction for requesting to acquire resources on any monitoring equipment is detected;
the identifier obtaining module is used for analyzing the device code of any monitoring device to obtain the domain identifier of the subordinate domain to which the monitoring device belongs;
a gateway determining module, configured to search a correspondence between a locally stored domain identifier and a signaling gateway identifier according to a domain identifier of a subordinate domain to which the monitoring device belongs, and obtain a signaling gateway identifier corresponding to the domain identifier of the subordinate domain to which the monitoring device belongs;
and the resource request module is used for sending a resource acquisition request to any monitoring equipment according to the corresponding signaling gateway identifier.
It can be seen from the foregoing embodiments that, by pre-configuring a synchronization mechanism in the upper domain and the lower domain, and based on the synchronization mechanism, the upper domain obtains the directory information of the monitoring device that allows resource sharing in the lower domain, thereby implementing directory sharing between the upper domain and the lower domain, and because based on the synchronization mechanism, the upper domain can obtain all directory information in the lower domain at a time or obtain directory information in the lower domain in batches, thereby improving the efficiency of sharing the directory information of the monitoring device from the lower domain to the upper domain.
Drawings
Fig. 1 is a schematic view of an application scenario for implementing an inter-domain directory sharing method according to an embodiment of the present application;
FIG. 2A is a flowchart of an embodiment of an inter-domain directory sharing method according to the present application;
FIG. 2B is an example of a device encoding format of the present application;
fig. 3 is a hardware structure diagram of a network device where the inter-domain directory sharing apparatus of the present application is located;
FIG. 4 is a block diagram of an inter-domain directory sharing apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The video monitoring system is an important component of a safety precaution system, and the video monitoring system is widely applied to multiple fields, such as the construction of safe cities, due to the advantages of intuition, convenience, rich information content and the like. In the field of, for example, safe city construction, a large monitoring system is usually configured as a multi-level and multi-domain monitoring system, for example, a video monitoring system of a country may include a country-level monitoring subsystem, a plurality of provincial-level monitoring subsystems, a plurality of city-level monitoring subsystems, and the like. In the national video monitoring system, a national monitoring subsystem may be set as an upper-level domain, each provincial monitoring subsystem may be set as a lower-level domain of the national monitoring subsystem, each urban monitoring subsystem may be set as a lower-level domain of the corresponding provincial monitoring subsystem, and so on.
The superior domain and each subordinate domain are used as relatively independent video monitoring systems, and sharing of video monitoring resources between domains can be achieved through an IP network. The subordinate domain can select which monitoring equipment resources accessed by the subordinate domain can be shared to the superior domain, and adopt an inter-domain synchronization protocol of a new national standard GB/T28181 standard to share the directory information of the monitoring equipment allowing resource sharing to the superior domain, wherein the directory information can comprise equipment codes, display names, address codes, authority function codes, father node address codes, activity states and the like of the monitoring equipment, and the superior domain can store the directory information shared by the subordinate domain in a locally stored directory database. When a user logs in a superior domain through a client, the superior domain can display a subordinate domain equipment list to the user according to a locally stored directory database, so that the user can conveniently and intuitively acquire related information of the subordinate domain, such as display names and quantity of subordinate domain access monitoring equipment, states of the monitoring equipment and the like.
However, with the continuous development of video monitoring systems, a million-scale monitoring device can be accessed in a lower domain, and if the above-described inter-domain synchronization protocol according to the new national standard GB/T28181 standard is still used, directory information of the monitoring device accessed in the lower domain is shared to an upper domain, in a sharing process, at most 10 entries of directory information can be carried by a NOTIFY message, so that the lower domain inevitably sends NOTIFY messages to the upper domain many times, which results in very low efficiency of sharing directory information from the lower domain to the upper domain, and since the upper domain receives a large number of NOTIFY messages, the upper domain bears a large pressure, and errors are easily caused in the process of updating a locally stored directory database according to the NOTIFY messages.
In order to improve the efficiency of sharing directory information from a lower domain to an upper domain, the application provides an inter-domain directory sharing method.
Please refer to fig. 1, which is a schematic view of an application scenario for implementing the inter-domain directory sharing method according to the embodiment of the present application, where fig. 1 includes: upper domain 11, lower domain 12, gateway 13 to gateway 1 n. The upper domain 11 may include a management server 111, a directory synchronization server 112, a database server 113, and signaling gateways 114 to 11 n; the lower domain 12 may include therein a management server 121, a directory server 122, and IPCs 123 to 12 n.
In the upper domain 11, the directory synchronization server 112 may establish a directory sharing channel with the directory synchronization server 122 in the lower domain 12 through the inter-domain directory sharing method provided by the present invention, and obtain the directory information that can be synchronized in the directory synchronization server 122 through the synchronization mechanism provided by the present application; after the directory synchronization server 112 obtains the directory information, the directory information may be sent to the database server 113, and the database server 113 may maintain a directory database; a user (not shown in fig. 1) can access the management server 111 through a client (not shown in fig. 1), and the management server 111 presents a directory list of monitoring devices that can allow resource sharing in the lower domain 12 to the user based on a directory database in the database server 113; the upper domain 11 can perform signaling interaction with the lower domain 12 through one signaling gateway from the signaling gateway 114 to the signaling gateway 11 n; it is understood that the lower domain 11 illustrated in fig. 1 is only an example, and in practical applications, other devices may also exist in the upper domain 11, and the present application does not limit this.
In the lower domain 12, a user (not shown in fig. 1) may access the management server 121 through a client (not shown in fig. 1) to configure monitoring devices, such as IPCs 123 to IPCs 12n, accessed in the lower domain 12, for example, to configure network addresses of the monitoring devices, whether resource sharing is allowed, and the like, and the directory management server 122 may be configured to manage directory information of the IPCs 123 to IPCs 12n, and may also push the directory information to the upper domain 11 through a synchronization mechanism provided in the present application.
It should be noted that fig. 1 only illustrates one lower domain, in practical applications, the upper domain 11 may correspond to a plurality of lower domains, and the upper domain 11 may perform signaling interaction with the plurality of lower domains through the signaling gateways 114 to 11n, which is not limited in this application.
It should be noted that, in the present application, when the upper domain 11 corresponds to a plurality of lower domains, each lower domain corresponds to only one signaling gateway in the upper domain 11, and specifically, based on what kind of consideration, the following description may be referred to, and the detailed description is not given herein.
In order to make the inter-domain directory sharing method provided by the present application clearly and intuitively understood by those skilled in the art, the following embodiments are listed for illustration.
Referring to fig. 2A, a flowchart of an embodiment of the inter-domain directory sharing method according to the present application is shown, based on the application scenario illustrated in fig. 1, where the method is applicable to the directory synchronization server 112 located in the upper domain 11 in fig. 1, and includes the following steps:
step 201: after sending a message for indicating successful registration to any one of the at least one subordinate domain, obtaining the directory information of the monitoring device allowing resource sharing in any one of the subordinate domains based on a preset synchronization mechanism, and storing the directory information in a locally stored directory database.
As shown in fig. 1, the subordinate domain 12 may send a Register message for registration to the superior domain 11 by using a Register method defined in RFC 3261, and after receiving the Register message, the superior domain 11 verifies registration information carried by the Register message to determine whether the subordinate domain that requires registration meets the registration condition, and if the registration meets the registration condition, registers the subordinate domain and sends a message indicating that the registration is successful to the subordinate domain.
In the present application, the synchronization mechanism may be configured in the upper domain 11 and the lower domain 12 in advance, and it should be noted that the synchronization mechanism configured in the upper domain 11 and the lower domain 12 may be the same. Taking the case that the lower domain 12 shares the directory information with the upper domain 11, after the upper domain 11 sends a message indicating that the registration is successful to the lower domain 12, the directory information of the monitoring device in the lower domain 12 that allows resource sharing may be obtained based on a preset synchronization mechanism.
In an alternative implementation, the synchronization mechanism may be a database synchronization mechanism. For example, a database synchronization system may be installed in the directory synchronization server 112 and the directory synchronization server 122 in advance, and after the lower domain 12 successfully registers with the upper domain 11, the database synchronization system may start a synchronization process, and the database synchronization system in the directory synchronization server 122 actively pushes directory information to the database synchronization system in the directory synchronization server 112; alternatively, the database synchronization system in the directory synchronization server 112 actively obtains directory information from the database synchronization system in the directory synchronization server 122.
It should be noted that, based on the database synchronization mechanism, the database synchronization system in the directory synchronization server 122 may send all directory information to the database synchronization system in the directory synchronization server 112 at a time, that is, the upper domain 11 may obtain the directory information of all monitoring devices allowing resource sharing in the lower domain 12 at a time based on the database synchronization mechanism.
In another alternative implementation, the synchronization mechanism may be an LDAP (Lightweight directory access Protocol) synchronization mechanism. LDAP is based on the TCP/IP protocol and is a protocol that can be used to publish directory information to many different resources. An LDAP database may be established in the management server 121 based on the LDAP protocol, and the LDAP database includes directory information of monitoring devices allowing resource sharing and accessed by the lower domain 12, and based on the LDAP synchronization mechanism, the lower domain 12 may transmit the directory information in the LDAP database to the upper domain 11 in batches, or transmit the directory information to the upper domain 11 at a time, that is, based on the LDAP synchronization mechanism, the lower domain 11 may acquire the directory information of all monitoring devices allowing resource sharing in the lower domain 12 in batches, or acquire the directory information of all monitoring devices allowing resource sharing in the lower domain 12 at a time.
In the present application, after acquiring the directory information of all monitoring devices allowing resource sharing in the lower domain 12, the upper domain 11 may store the directory information in a locally stored directory database, for example, in the directory database of the database server 113.
Step 202: receiving a notification message indicating that the directory information has changed, which is transmitted from any one of the lower domains.
In an alternative implementation, when the directory information of the monitoring device that allows resource sharing in the lower domain 12 changes, the "change" may include addition, deletion, modification, and the like of the directory information, for example, if a monitoring device that allows resource sharing is newly added in the lower domain 12, then the directory information of the monitoring device may be added in the directory information, and the lower domain 12 may send notification information indicating that the directory information changes to the upper domain 11 based on a preset time interval.
In another alternative implementation, the lower domain 11 may actively send a directory retrieval request to the lower domain 12 based on a preset time interval, for example, every 15 minutes, and the subsequent upper domain 11 may receive a notification message sent by the lower domain 12 according to the directory retrieval request to indicate that the directory information changes.
Step 203: and updating the directory database according to the notification message.
In addition, in this application, it should be further noted that, based on the synchronization mechanism provided in this application, when the lower domain 12 sends the directory information to the upper domain 11, the directory information does not pass through any signaling gateway from the signaling gateway 114 to the signaling gateway 11n, so that a gateway path required for signaling interaction between the upper domain 11 and the lower domain 12 cannot be established in the upper domain 11, and in order to implement subsequent signaling interaction between the upper domain 11 and the lower domain 12, in this application, a uniform format may be set for the device code included in the directory information of the lower domain, specifically, the device code of this application may carry the domain identifier of the lower domain to which the monitoring device belongs, for example, as shown in fig. 2B, which is an example of the device code format of this application.
Moreover, as can be seen from the above description, a lower domain corresponds to a signaling gateway, and in the present application, the corresponding relationship between the domain identifier and the signaling gateway identifier may be stored in the upper domain 11 in advance, for example, the following table 1 is an example of the corresponding relationship between the domain identifier and the signaling gateway identifier:
TABLE 1
Domain identification Signaling gateway identification
Lower domain
11 Gateway 114
A user (not shown in fig. 1) of the upper domain 11 may access the management server 111 of the upper domain through a client (not shown in fig. 1), and send a control instruction for acquiring any monitoring device, for example, a monitoring resource of the IPC113, to the management server 111, specifically, the control instruction may be used to request to acquire a real-time monitoring resource on the IPC113, or a monitoring resource of the IPC113 in a specified time period, and when the management server 111 detects the control instruction, the management server 111 may acquire a device code of the IPC113 from directory information of the IPC113 according to the control instruction, for example, as shown in fig. 2B, and then, a domain identifier of the lower domain 12 to which the IPC belongs 113 is obtained by parsing from the device code, for example, as shown in fig. 2B, the first 6 bytes of the device code are parsed, and the domain.
The management server 111 may continue to look up the corresponding relationship illustrated in table 1 according to the domain identifier, so as to obtain a signaling gateway identifier corresponding to the domain identifier of the domain, for example, "gateway 114", so that the management server 113 may send a resource acquisition request to the signaling gateway 114 according to the signaling gateway identifier "gateway 114", and perform subsequent interaction procedures by a signaling gateway (not shown in fig. 1) in the lower domain 12 and the corresponding IPC 113.
Up to this point, by setting a uniform format for device encoding and pre-storing the correspondence between the signaling gateway identifier and the domain identifier, communication between the upper domain 11 and the lower domain 12 can be achieved.
It can be seen from the foregoing embodiments that, by pre-configuring a synchronization mechanism in the upper domain and the lower domain, and based on the synchronization mechanism, the upper domain obtains the directory information of the monitoring device that allows resource sharing in the lower domain, thereby implementing directory sharing between the upper domain and the lower domain, and because based on the synchronization mechanism, the upper domain can obtain all directory information in the lower domain at a time or obtain directory information in the lower domain in batches, thereby improving the efficiency of sharing the directory information of the monitoring device from the lower domain to the upper domain.
Corresponding to the embodiment of the inter-domain directory sharing method, the application also provides an embodiment of an inter-domain directory sharing device.
The embodiment of the inter-domain directory sharing device can be applied to network equipment, such as a server. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the network device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 3, the present application is a hardware structure diagram of a network device in which an inter-domain directory sharing apparatus is located, except for the processor 31, the memory 32, the network interface 33, and the nonvolatile memory 34 shown in fig. 3, the network device in which the apparatus is located in the embodiment may also include other hardware according to an actual function of the network device, which is not described again.
Referring to fig. 4, a block diagram of an embodiment of an inter-domain directory sharing apparatus according to the present application may be applied to an upper domain in a multi-level multi-domain networking system, where the multi-level multi-domain networking system further includes at least one lower domain, and the lower domain includes at least one monitoring device, and the apparatus may include: a catalog acquisition module 41, a message receiving module 42, and a catalog update module 43.
The directory obtaining module 41 may be configured to, after sending a message indicating that registration is successful to any one of the at least one subordinate domain, obtain, based on a preset synchronization mechanism, directory information of a monitoring device that allows resource sharing in any one of the subordinate domains, and store the directory information in a directory database stored locally;
the message receiving module 42 may be configured to receive a notification message sent by any lower domain and used for indicating that the directory information changes;
the catalog update module 43 may be configured to update the catalog database according to the notification message.
In an embodiment, the synchronization mechanism may include: a database synchronization mechanism;
the catalog acquisition module 41 may be specifically configured to:
and acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time based on the database synchronization mechanism.
In an embodiment, the synchronization mechanism may include: lightweight directory access protocol LDAP synchronization mechanism;
the catalog acquisition module 41 may be specifically configured to:
based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time;
or, based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain in batches.
In an embodiment, the message receiving module 42 may include (not shown in fig. 4):
the sending submodule can be used for sending a directory acquisition request to any subordinate domain based on a preset time interval;
the receiving submodule may be configured to receive a notification message, which is sent by any lower domain according to the directory acquisition request and is used to indicate that the directory information changes.
In an embodiment, the directory information may include a device code of the monitoring device, and the device code may include a domain identifier of a lower domain to which the monitoring device belongs;
the apparatus may further comprise (not shown in fig. 4):
the code acquiring module may be configured to acquire a device code of any monitoring device from directory information of the any monitoring device when an acquiring instruction for requesting to acquire a resource on the any monitoring device is detected;
the identifier obtaining module may be configured to obtain, from the device code of any monitoring device, a domain identifier of a subordinate domain to which the any monitoring device belongs by parsing;
the gateway determining module may be configured to search a correspondence between a locally stored domain identifier and a signaling gateway identifier according to a domain identifier of a subordinate domain to which the monitoring device belongs, and obtain a signaling gateway identifier corresponding to the domain identifier of the subordinate domain to which the monitoring device belongs;
and the resource request module may be configured to send a resource acquisition request to any monitoring device according to the corresponding signaling gateway identifier.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. An inter-domain directory sharing method is applied to an upper domain in a multi-level multi-domain networking system, the multi-level multi-domain networking system further comprises at least one lower domain, and the lower domain comprises at least one monitoring device, and the method comprises the following steps:
after sending a message for indicating successful registration to any one of the at least one subordinate domain, acquiring directory information of monitoring equipment allowing resource sharing in any one subordinate domain based on a preset synchronization mechanism, and storing the directory information in a locally stored directory database; the lower domain sends the directory information to the upper domain based on the synchronization mechanism without passing through a signaling gateway arranged between the upper domain and the lower domain;
when a notification message which is sent by any lower domain and used for representing the change of the directory information is received, updating the directory database according to the notification message;
when an acquisition instruction for requesting to acquire resources on any monitoring device is received, acquiring a device code of any monitoring device from directory information of any monitoring device; analyzing the device code of any monitoring device to obtain a domain identifier of a subordinate domain to which the monitoring device belongs; searching a corresponding relation between a locally stored domain identifier and a signaling gateway identifier according to the domain identifier of the subordinate domain to which any monitoring device belongs to obtain the signaling gateway identifier corresponding to the domain identifier of the subordinate domain to which any monitoring device belongs; and sending a resource acquisition request to any monitoring equipment according to the corresponding signaling gateway identifier.
2. The method of claim 1, wherein the synchronization mechanism comprises: a database synchronization mechanism;
the obtaining of the directory information of the monitoring device allowing resource sharing in any subordinate domain based on the preset synchronization mechanism includes:
and acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time based on the database synchronization mechanism.
3. The method of claim 1, wherein the synchronization mechanism comprises: lightweight directory access protocol LDAP synchronization mechanism;
the obtaining of the directory information of the monitoring device allowing resource sharing in any subordinate domain based on the preset synchronization mechanism includes:
based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time;
or, based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain in batches.
4. The method according to claim 1, wherein the receiving the notification message sent by any one of the subordinate domains for indicating that the directory information changes comprises:
based on a preset time interval, sending a directory acquisition request to any subordinate domain;
and receiving a notification message which is sent by any lower domain according to the directory acquisition request and used for indicating that the directory information changes.
5. An inter-domain directory sharing apparatus applied to an upper domain in a multi-level multi-domain networking system, wherein the multi-level multi-domain networking system further comprises at least one lower domain, and the lower domain comprises at least one monitoring device, the apparatus comprising:
a directory obtaining module, configured to, after sending a message indicating that registration is successful to any one of the at least one subordinate domain, obtain, based on a preset synchronization mechanism, directory information of the monitoring device that allows resource sharing in any one of the subordinate domains, and store the directory information in a directory database that is locally stored; the lower domain sends the directory information to the upper domain based on the synchronization mechanism without passing through a signaling gateway arranged between the upper domain and the lower domain;
a message receiving module, configured to receive a notification message sent by any lower domain and used for indicating that the directory information changes;
the directory updating module is used for updating the directory database according to the notification message;
the code acquisition module is used for acquiring the equipment code of any monitoring equipment from the directory information of any monitoring equipment when an acquisition instruction for requesting to acquire resources on any monitoring equipment is detected;
the identifier obtaining module is used for analyzing the device code of any monitoring device to obtain the domain identifier of the subordinate domain to which the monitoring device belongs;
a gateway determining module, configured to search a correspondence between a locally stored domain identifier and a signaling gateway identifier according to a domain identifier of a subordinate domain to which the monitoring device belongs, and obtain a signaling gateway identifier corresponding to the domain identifier of the subordinate domain to which the monitoring device belongs;
and the resource request module is used for sending a resource acquisition request to any monitoring equipment according to the corresponding signaling gateway identifier.
6. The apparatus of claim 5, wherein the synchronization mechanism comprises: a database synchronization mechanism;
the catalog acquisition module is specifically configured to:
and acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time based on the database synchronization mechanism.
7. The apparatus of claim 5, wherein the synchronization mechanism comprises: lightweight directory access protocol LDAP synchronization mechanism;
the catalog acquisition module is specifically configured to:
based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain at one time;
or, based on the LDAP synchronization mechanism, acquiring the directory information of all monitoring devices allowing resource sharing in any subordinate domain in batches.
8. The apparatus of claim 5, wherein the message receiving module comprises:
the sending submodule is used for sending a directory acquisition request to any subordinate domain based on a preset time interval;
and the receiving submodule is used for receiving a notification message which is sent by any lower domain according to the directory acquisition request and is used for indicating that the directory information changes.
CN201710151337.6A 2017-03-14 2017-03-14 Inter-domain directory sharing method and device Active CN106953905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710151337.6A CN106953905B (en) 2017-03-14 2017-03-14 Inter-domain directory sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710151337.6A CN106953905B (en) 2017-03-14 2017-03-14 Inter-domain directory sharing method and device

Publications (2)

Publication Number Publication Date
CN106953905A CN106953905A (en) 2017-07-14
CN106953905B true CN106953905B (en) 2020-08-28

Family

ID=59466994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710151337.6A Active CN106953905B (en) 2017-03-14 2017-03-14 Inter-domain directory sharing method and device

Country Status (1)

Country Link
CN (1) CN106953905B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278223B (en) * 2018-03-15 2022-05-13 华为技术有限公司 Video monitoring system and management method of video monitoring resources
CN110677617A (en) * 2018-07-03 2020-01-10 视联动力信息技术股份有限公司 Data processing method and device
CN110839141A (en) * 2018-08-17 2020-02-25 视联动力信息技术股份有限公司 Resource acquisition method and device
CN110839142B (en) * 2018-08-17 2021-12-03 视联动力信息技术股份有限公司 Monitoring directory sharing method and device
CN109672856B (en) * 2018-11-14 2021-02-09 视联动力信息技术股份有限公司 Resource synchronization method and device
CN109889780B (en) * 2019-01-31 2021-01-22 视联动力信息技术股份有限公司 Data synchronization method and device
CN109743555B (en) * 2019-02-02 2020-09-08 视联动力信息技术股份有限公司 Information processing method and system based on video network
CN111698454B (en) * 2019-03-12 2022-12-23 浙江宇视科技有限公司 Inter-domain resource pushing method and device for dynamically selecting optimal path
CN110087025B (en) * 2019-03-18 2021-07-30 视联动力信息技术股份有限公司 Directory verification method and device
CN110166740B (en) * 2019-04-10 2021-06-29 视联动力信息技术股份有限公司 Method and device for monitoring resource processing
CN110263030A (en) * 2019-05-06 2019-09-20 视联动力信息技术股份有限公司 Data capture method and device based on view networking
CN110381029B (en) * 2019-06-20 2022-03-01 视联动力信息技术股份有限公司 Monitoring resource synchronization method and device
CN110362628A (en) * 2019-06-20 2019-10-22 视联动力信息技术股份有限公司 A kind of synchronous method and device cascading file
CN110557611B (en) * 2019-08-28 2021-12-17 视联动力信息技术股份有限公司 Information synchronization method, device and storage medium
CN113949732A (en) * 2021-10-18 2022-01-18 重庆紫光华山智安科技有限公司 Analysis task management method, device and system, main management equipment and storage medium
CN114726835B (en) * 2022-03-28 2022-12-02 慧之安信息技术股份有限公司 Gateway directory information sending method and device based on caching technology
CN117768663B (en) * 2024-02-22 2024-05-10 天讯瑞达通信技术有限公司 Multi-protocol cascade gateway

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295306A (en) * 2007-04-26 2008-10-29 国际商业机器公司 Operation method and corresponding device for modifying clause name in catalog server
CN103888729A (en) * 2014-03-19 2014-06-25 浙江宇视科技有限公司 Method and device for synchronizing camera information between video monitoring platforms
CN105357333A (en) * 2015-11-21 2016-02-24 浙江宇视科技有限公司 National standard code register server and video monitoring system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295306A (en) * 2007-04-26 2008-10-29 国际商业机器公司 Operation method and corresponding device for modifying clause name in catalog server
CN103888729A (en) * 2014-03-19 2014-06-25 浙江宇视科技有限公司 Method and device for synchronizing camera information between video monitoring platforms
CN105357333A (en) * 2015-11-21 2016-02-24 浙江宇视科技有限公司 National standard code register server and video monitoring system

Also Published As

Publication number Publication date
CN106953905A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN106953905B (en) Inter-domain directory sharing method and device
US11088903B2 (en) Hybrid cloud network configuration management
KR102577139B1 (en) Smart contract-based data processing methods, devices, and storage media
CN108197200B (en) Log tracking method and device, computer equipment and storage medium
US20210243262A1 (en) System for controlling user interaction via an application with remote servers
CN108228814B (en) Data synchronization method and device
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
US10015684B2 (en) Method and apparatus for managing specific resource in wireless communication system
CN107169094B (en) Information aggregation method and device
CN111182089B (en) Container cluster system, method and device for accessing big data assembly and server
EP2214372B1 (en) Method and apparatus for tracking device management data changes
US8977758B2 (en) Service bus system, service bus device, and method for assuring connection uniqueness
CN109040337A (en) A kind of information query method, Edge Server and information query system
CN110263579A (en) A kind of data processing method, system and relevant device
CN114979158B (en) Resource monitoring method, system, equipment and computer readable storage medium
CN111917896A (en) Credible domain name resolution method, system, electronic equipment and storage medium
US8484289B2 (en) Network based audience measurement
CN106156258B (en) Method, device and system for counting data in distributed storage system
CN107995062B (en) RPC-based traffic management integrated platform remote service real-time processing method and system
CN104954505B (en) Monitoring method and system for DNS data updating overall process
CN101561955B (en) Method for managing data sharing in personal data bank and network side device
KR101353472B1 (en) The sever, the system and the method for providing dynamic domain name service
CN115562757A (en) Data processing method, configuration center system, electronic device, and storage medium
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN112087327B (en) Information state acquisition method and apparatus, storage medium, and electronic apparatus

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